@lovrabet/rabetbase-cli 2.5.9-beta.1 → 2.5.9
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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x7b9b99=a96_0x48e5;(function(_0x56eccf,_0x3db46b){const _0x521b56=a96_0x48e5,_0x167132=_0x56eccf();while(!![]){try{const _0x4592bc=parseInt(_0x521b56(0xfa))/0x1+-parseInt(_0x521b56(0xfe))/0x2*(-parseInt(_0x521b56(0xe8))/0x3)+-parseInt(_0x521b56(0x100))/0x4+parseInt(_0x521b56(0x113))/0x5+-parseInt(_0x521b56(0x107))/0x6*(parseInt(_0x521b56(0xed))/0x7)+-parseInt(_0x521b56(0x10b))/0x8+parseInt(_0x521b56(0x101))/0x9;if(_0x4592bc===_0x3db46b)break;else _0x167132['push'](_0x167132['shift']());}catch(_0x5cb395){_0x167132['push'](_0x167132['shift']());}}}(a96_0xc5d3,0xf3ef1));function a96_0xc5d3(){const _0x496d64=['11618262lxZjpg','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','name','high-risk-write','5520592bTCVxg','currentPage','push','bool','Multiple\x20recycle-bin\x20logs\x20match\x20Dataset\x20','items','\x20dataset(s)','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','1597230bRUSrq','length','Resolve\x20the\x20duplicate\x20delete-log\x20records\x20before\x20retrying.','dbid=','POST','source','Dataset\x20id','get','\x20dataset(s);\x20','dbid','appCode','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','\x20failed','dbtableConfig','DATA_LIST','/smartapi/recycleBin/resource/restore','pageSize','str','num','map','description','dataset','set','DATASET','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','31026TNCMnm','datasetIds','expected-count','deleteLogId','number','7xwUfrh','tableName','id=','tableData','validation','Required\x20to\x20execute\x20dataset\x20restore','Dataset\x20recycle-bin\x20log\x20not\x20found\x20for\x20Dataset\x20','dbId','paging','all','resourceId','confirm','totalCount','1878523EGjceb','code','Matched\x20','dbName','312exkjos','No\x20deleted\x20dataset\x20found\x20for\x20','2223108ZizyIn','3330540TbkyNY','Restore\x20related\x20pages\x20separately\x20with\x20`rabetbase\x20page\x20restore\x20--id\x20<pageId>\x20--appcode\x20<appCode>`.','isFinite','restore','filter','Restored\x20'];a96_0xc5d3=function(){return _0x496d64;};return a96_0xc5d3();}import{listDatasets,listDeletedPages,listRecycleBinResources,restoreRecycleBinResource}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':a96_0x7b9b99(0xec),'description':a96_0x7b9b99(0x119)},DBID_FLAG={'name':a96_0x7b9b99(0xd7),'type':a96_0x7b9b99(0xec),'description':a96_0x7b9b99(0xd9)},CONFIRM_FLAG={'name':a96_0x7b9b99(0xf8),'type':'boolean','description':a96_0x7b9b99(0xf2)},EXPECTED_COUNT_FLAG={'name':a96_0x7b9b99(0xea),'type':a96_0x7b9b99(0xec),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'},DELETED_PAGE_SIZE=0x64,RECYCLE_BIN_PAGE_SIZE=0x64;export const datasetRestore={'service':a96_0x7b9b99(0xe4),'command':a96_0x7b9b99(0x104),'description':a96_0x7b9b99(0xda),'risk':a96_0x7b9b99(0x10a),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ae71a){const _0x4056f0=a96_0x7b9b99,_0x137f5d=_0x3ae71a[_0x4056f0(0xe1)]('id'),_0x4767d5=_0x3ae71a[_0x4056f0(0xe0)](_0x4056f0(0xfb)),_0x2e5859=_0x3ae71a['num'](_0x4056f0(0xd7)),_0x47dfcd=[_0x137f5d>0x0,Boolean(_0x4767d5),_0x2e5859>0x0][_0x4056f0(0x105)](Boolean);if(_0x47dfcd[_0x4056f0(0x114)]===0x0)throw CliErrors[_0x4056f0(0xf1)](_0x4056f0(0xe7));if(_0x47dfcd[_0x4056f0(0x114)]>0x1)throw CliErrors[_0x4056f0(0xf1)](_0x4056f0(0x108));},async 'dryRun'(_0x424665){const _0x10ab2c=a96_0x7b9b99,_0x311ae5=await resolveTargets(_0x424665);return{'method':_0x10ab2c(0x117),'url':_0x10ab2c(0xde),'body':{'count':_0x311ae5[_0x10ab2c(0x114)],'datasets':_0x311ae5},'description':'Would\x20restore\x20'+_0x311ae5[_0x10ab2c(0x114)]+'\x20deleted\x20Dataset(s)\x20only.\x20Related\x20pages\x20and\x20menus\x20remain\x20deleted\x20until\x20page\x20restore\x20is\x20run\x20explicitly.'};},async 'execute'(_0x417f29){const _0x4d8ce9=a96_0x7b9b99;if(!_0x417f29[_0x4d8ce9(0x10e)](_0x4d8ce9(0xf8)))throw CliErrors[_0x4d8ce9(0xf1)](_0x4d8ce9(0x112),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x156792=await resolveTargets(_0x417f29),_0x5a4c51=[],_0x1695bd=[];for(const _0x2baf3b of _0x156792){try{await restoreRecycleBinResource(_0x2baf3b[_0x4d8ce9(0xeb)]),_0x5a4c51[_0x4d8ce9(0x10d)](_0x2baf3b);}catch(_0x41810c){_0x1695bd[_0x4d8ce9(0x10d)]({..._0x2baf3b,'error':_0x41810c instanceof Error?_0x41810c['message']:String(_0x41810c)});}}if(_0x1695bd['length']>0x0)return{'ok':![],'data':{'requested':_0x156792['length'],'restoredCount':_0x5a4c51[_0x4d8ce9(0x114)],'failedCount':_0x1695bd[_0x4d8ce9(0x114)],'restored':_0x5a4c51,'failed':_0x1695bd,'pagesRestored':![],'pageRestoreHint':_0x4d8ce9(0x102)},'message':_0x4d8ce9(0x106)+_0x5a4c51[_0x4d8ce9(0x114)]+'/'+_0x156792[_0x4d8ce9(0x114)]+_0x4d8ce9(0xd6)+_0x1695bd[_0x4d8ce9(0x114)]+_0x4d8ce9(0xdb)};return{'ok':!![],'data':{'requested':_0x156792[_0x4d8ce9(0x114)],'restoredCount':_0x5a4c51[_0x4d8ce9(0x114)],'restored':_0x5a4c51,'pagesRestored':![],'pageRestoreHint':'Restore\x20related\x20pages\x20separately\x20with\x20`rabetbase\x20page\x20restore\x20--id\x20<pageId>\x20--appcode\x20<appCode>`.'},'message':'Restored\x20'+_0x5a4c51[_0x4d8ce9(0x114)]+_0x4d8ce9(0x111)};}};function a96_0x48e5(_0xe67051,_0x36d12c){_0xe67051=_0xe67051-0xd5;const _0xc5d33f=a96_0xc5d3();let _0x48e597=_0xc5d33f[_0xe67051];return _0x48e597;}async function resolveTargets(_0x561b42){const _0x234b5d=a96_0x7b9b99,_0x312bec=_0x561b42[_0x234b5d(0xe1)]('id'),_0x4ef5a3=_0x561b42[_0x234b5d(0xe0)](_0x234b5d(0xfb)),_0x463cb9=_0x561b42[_0x234b5d(0xe1)](_0x234b5d(0xd7));let _0x21724e;_0x4ef5a3?(_0x21724e=await listDatasets(_0x561b42[_0x234b5d(0xd8)],{'code':_0x4ef5a3,'deleted':!![]}),_0x21724e=_0x21724e['filter'](_0x43c94e=>_0x43c94e[_0x234b5d(0xfb)]===_0x4ef5a3)):(_0x21724e=await listDatasets(_0x561b42['appCode'],{'deleted':!![]}),_0x312bec>0x0&&(_0x21724e=_0x21724e[_0x234b5d(0x105)](_0x532eb3=>_0x532eb3['id']===_0x312bec)),_0x463cb9>0x0&&(_0x21724e=_0x21724e[_0x234b5d(0x105)](_0x5b07fd=>_0x5b07fd[_0x234b5d(0xdc)]?.[_0x234b5d(0xf4)]===_0x463cb9)));if(_0x21724e[_0x234b5d(0x114)]===0x0){const _0x5293d0=_0x4ef5a3||(_0x312bec>0x0?_0x234b5d(0xef)+_0x312bec:_0x234b5d(0x116)+_0x463cb9);throw CliErrors['validation'](_0x234b5d(0xff)+_0x5293d0+'.');}const _0x2be49b=_0x561b42[_0x234b5d(0xe1)]('expected-count');if(_0x2be49b>0x0&&_0x21724e['length']!==_0x2be49b)throw CliErrors[_0x234b5d(0xf1)](_0x234b5d(0xfc)+_0x21724e['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x2be49b+'.');const [_0x3619e5,_0x4167e9]=await Promise[_0x234b5d(0xf6)]([loadDeletedRelatedPageCounts(_0x561b42[_0x234b5d(0xd8)]),loadDatasetRecycleBinLogs(_0x561b42[_0x234b5d(0xd8)])]),_0x30b959=_0x21724e[_0x234b5d(0xe2)](_0x20ff0e=>{const _0x21a055=_0x234b5d,_0x10f433=_0x4167e9[_0x21a055(0x105)](_0x9759c4=>Number(_0x9759c4[_0x21a055(0xf7)])===Number(_0x20ff0e['id']));if(_0x10f433[_0x21a055(0x114)]===0x0)throw CliErrors[_0x21a055(0xf1)](_0x21a055(0xf3)+_0x20ff0e['id']+'.','Restore\x20was\x20not\x20attempted;\x20the\x20legacy\x20restore\x20endpoint\x20is\x20intentionally\x20not\x20used.');if(_0x10f433[_0x21a055(0x114)]>0x1)throw CliErrors[_0x21a055(0xf1)](_0x21a055(0x10f)+_0x20ff0e['id']+';\x20restore\x20is\x20ambiguous.',_0x21a055(0x115));return normalizeTarget(_0x20ff0e,_0x3619e5['get'](_0x20ff0e['id'])??0x0,_0x10f433[0x0]['id']);});return _0x30b959;}async function loadDatasetRecycleBinLogs(_0x419227){const _0x1230c1=a96_0x7b9b99,_0x3743f1=[];let _0x18a1d1=0x1;while(!![]){const _0x26c2c6=await listRecycleBinResources(_0x419227,_0x1230c1(0xe6),{'currentPage':_0x18a1d1,'pageSize':RECYCLE_BIN_PAGE_SIZE});_0x3743f1[_0x1230c1(0x10d)](..._0x26c2c6[_0x1230c1(0x110)]);const _0x1ec47d=_0x26c2c6[_0x1230c1(0xf5)]?.[_0x1230c1(0x10c)]??_0x18a1d1,_0x53aeb6=_0x26c2c6[_0x1230c1(0xf5)]?.['pageSize']??RECYCLE_BIN_PAGE_SIZE,_0x4421d0=_0x26c2c6[_0x1230c1(0xf5)]?.[_0x1230c1(0xf9)]??_0x3743f1[_0x1230c1(0x114)];if(_0x26c2c6['items'][_0x1230c1(0x114)]===0x0||_0x53aeb6<=0x0||_0x1ec47d*_0x53aeb6>=_0x4421d0)return _0x3743f1;const _0x27c021=_0x1ec47d+0x1;if(_0x27c021<=_0x18a1d1)return _0x3743f1;_0x18a1d1=_0x27c021;}}async function loadDeletedRelatedPageCounts(_0x38b487){const _0xf8aff=a96_0x7b9b99,_0xef0bf=new Map();let _0x3ce69a=0x1;while(!![]){const _0x27ea8a=await listDeletedPages(_0x38b487,_0xf8aff(0xdd),{'currentPage':_0x3ce69a,'pageSize':DELETED_PAGE_SIZE}),_0x46db37=Array['isArray'](_0x27ea8a[_0xf8aff(0xf0)])?_0x27ea8a[_0xf8aff(0xf0)]:[];for(const _0x29788d of _0x46db37){const _0x1a8382=Array['isArray'](_0x29788d[_0xf8aff(0xe9)])?new Set(_0x29788d[_0xf8aff(0xe9)][_0xf8aff(0xe2)](_0x41702d=>Number(_0x41702d))[_0xf8aff(0x105)](_0x1ddd46=>Number[_0xf8aff(0x103)](_0x1ddd46))):new Set();for(const _0x566889 of _0x1a8382){_0xef0bf[_0xf8aff(0xe5)](_0x566889,(_0xef0bf[_0xf8aff(0xd5)](_0x566889)??0x0)+0x1);}}const _0x265669=_0x27ea8a[_0xf8aff(0xf5)]?.[_0xf8aff(0x10c)]??_0x3ce69a,_0x48cae7=_0x27ea8a[_0xf8aff(0xf5)]?.[_0xf8aff(0xdf)]??DELETED_PAGE_SIZE,_0xe79257=_0x27ea8a['paging']?.[_0xf8aff(0xf9)]??0x0;if(_0x46db37[_0xf8aff(0x114)]===0x0||_0x48cae7<=0x0||_0x265669*_0x48cae7>=_0xe79257)return _0xef0bf;const _0x25da14=_0x265669+0x1;if(_0x25da14<=_0x3ce69a)return _0xef0bf;_0x3ce69a=_0x25da14;}}function normalizeTarget(_0x364886,_0x3a9b0e,_0x12f2ab){const _0x5867d5=a96_0x7b9b99,_0x24168c=_0x364886['dbtableConfig']??{};return{'id':_0x364886['id'],'code':_0x364886[_0x5867d5(0xfb)],'name':_0x364886[_0x5867d5(0x109)],'description':_0x364886[_0x5867d5(0xe3)],'source':_0x364886[_0x5867d5(0x118)],'dbId':_0x24168c[_0x5867d5(0xf4)],'dbName':_0x24168c[_0x5867d5(0xfd)],'tableName':_0x24168c[_0x5867d5(0xee)],'relatedPageCount':_0x3a9b0e,'deleteLogId':_0x12f2ab};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a97_0x3c0d(_0x405f27,_0xf776b0){_0x405f27=_0x405f27-0x15a;const _0x44e0bc=a97_0x44e0();let _0x3c0d00=_0x44e0bc[_0x405f27];return _0x3c0d00;}const a97_0x252fab=a97_0x3c0d;(function(_0x3544c3,_0x2d45fc){const _0x250866=a97_0x3c0d,_0x4e1792=_0x3544c3();while(!![]){try{const _0x328052=parseInt(_0x250866(0x16a))/0x1+parseInt(_0x250866(0x160))/0x2+parseInt(_0x250866(0x165))/0x3+parseInt(_0x250866(0x170))/0x4*(parseInt(_0x250866(0x161))/0x5)+-parseInt(_0x250866(0x173))/0x6*(-parseInt(_0x250866(0x16b))/0x7)+parseInt(_0x250866(0x17c))/0x8*(-parseInt(_0x250866(0x15b))/0x9)+-parseInt(_0x250866(0x178))/0xa;if(_0x328052===_0x2d45fc)break;else _0x4e1792['push'](_0x4e1792['shift']());}catch(_0x3d47a4){_0x4e1792['push'](_0x4e1792['shift']());}}}(a97_0x44e0,0xc6285));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,listUserDeletedDatasetColumns}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export async function buildUserDeletedFieldListResult({appCode:_0x584059,code:_0x3e647e}){const _0x58d072=a97_0x3c0d,_0x536c9d=_0x3e647e[_0x58d072(0x162)]();if(!_0x536c9d)throw CliErrors[_0x58d072(0x176)](_0x58d072(0x16e));const _0x5d66d8=await getDatasetDetail(_0x536c9d),_0x30d04a=resolveDataset(_0x5d66d8,_0x536c9d),_0x2cef3d=await listUserDeletedDatasetColumns(_0x30d04a['id']),_0x281bbb=_0x2cef3d[_0x58d072(0x17a)](normalizeUserDeletedField)[_0x58d072(0x177)]((_0x13f645,_0x4d36f0)=>{const _0x5e95cc=_0x58d072;if(_0x13f645['code']<_0x4d36f0['code'])return-0x1;if(_0x13f645[_0x5e95cc(0x169)]>_0x4d36f0[_0x5e95cc(0x169)])return 0x1;return _0x13f645['id']-_0x4d36f0['id'];});return{'ok':!![],'data':{'operation':'user-deleted-field-list','appCode':_0x584059,'selector':{'code':_0x536c9d},'dataset':_0x30d04a,'count':_0x281bbb[_0x58d072(0x172)],'fields':_0x281bbb},'message':_0x58d072(0x175)+_0x281bbb[_0x58d072(0x172)]+_0x58d072(0x163)};}export const datasetUserDeletedFieldList={'service':'dataset','command':'user-deleted-field-list','description':'List\x20Dataset\x20fields\x20explicitly\x20deleted\x20by\x20a\x20user','risk':a97_0x252fab(0x164),'structuredErrors':!![],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4e807a){const _0x15f1bf=a97_0x252fab;return buildUserDeletedFieldListResult({'appCode':_0x4e807a[_0x15f1bf(0x16d)],'code':_0x4e807a['str'](_0x15f1bf(0x169))});}};function a97_0x44e0(){const _0x595f40=['modelId','6632GvvbmP','isArray','8424AnuLFI','string','user','datasetId','dataset','335708fhdpdU','5ucqZqM','trim','\x20user-deleted\x20field(s)','read','2288298cvzSbn','Invalid\x20user-deleted\x20Dataset\x20field\x20response.','isInteger','Dataset\x20code:\x20','code','1461515ZfAmNK','1167159iRvTef','object','appCode','--code\x20is\x20required','apiError','4879452sbpJok','Dataset\x20detail\x20did\x20not\x20contain\x20a\x20valid\x20dataset\x20id.','length','30UiCpEv','name','Found\x20','validation','sort','28580860EaFYyO','Expected\x20every\x20field\x20to\x20contain\x20a\x20positive\x20id\x20and\x20non-empty\x20code.','map'];a97_0x44e0=function(){return _0x595f40;};return a97_0x44e0();}export function resolveDataset(_0x15fc18,_0x34d5ed){const _0x1ce954=a97_0x252fab,_0x2fb9c5=isRecord(_0x15fc18[_0x1ce954(0x15f)])?_0x15fc18[_0x1ce954(0x15f)]:{},_0xca065=Number(_0x15fc18[_0x1ce954(0x17b)]??_0x15fc18['id']??_0x2fb9c5[_0x1ce954(0x15e)]);if(!Number[_0x1ce954(0x167)](_0xca065)||_0xca065<=0x0)throw CliErrors[_0x1ce954(0x16f)](_0x1ce954(0x171),_0x1ce954(0x168)+_0x34d5ed);return{'id':_0xca065,'code':String(_0x15fc18['modelCode']??_0x15fc18[_0x1ce954(0x169)]??_0x2fb9c5['datasetCode']??_0x34d5ed),'name':nullableString(_0x15fc18[_0x1ce954(0x174)]??_0x2fb9c5['datasetName'])};}export function normalizeUserDeletedField(_0x16a80b){const _0x10a246=a97_0x252fab,_0x481b77=Number(_0x16a80b['id']),_0x786002=typeof _0x16a80b[_0x10a246(0x169)]===_0x10a246(0x15c)?_0x16a80b[_0x10a246(0x169)][_0x10a246(0x162)]():'';if(!Number['isInteger'](_0x481b77)||_0x481b77<=0x0||!_0x786002)throw CliErrors[_0x10a246(0x16f)](_0x10a246(0x166),_0x10a246(0x179));return{'id':_0x481b77,'code':_0x786002,'displayName':typeof _0x16a80b[_0x10a246(0x174)]===_0x10a246(0x15c)&&_0x16a80b[_0x10a246(0x174)]['trim']()?_0x16a80b[_0x10a246(0x174)]:_0x786002,'deleted':!![],'deletionSource':_0x10a246(0x15d)};}function nullableString(_0x15c79f){const _0x41af8c=a97_0x252fab;return typeof _0x15c79f===_0x41af8c(0x15c)&&_0x15c79f?_0x15c79f:null;}function isRecord(_0x3ad0a4){const _0x27244d=a97_0x252fab;return Boolean(_0x3ad0a4)&&typeof _0x3ad0a4===_0x27244d(0x16c)&&!Array[_0x27244d(0x15a)](_0x3ad0a4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x504777,_0xba2a08){const _0x428541=a98_0x581c,_0x36213c=_0x504777();while(!![]){try{const _0x58b96d=-parseInt(_0x428541(0x100))/0x1+-parseInt(_0x428541(0xfe))/0x2+-parseInt(_0x428541(0x106))/0x3*(-parseInt(_0x428541(0xef))/0x4)+-parseInt(_0x428541(0xf0))/0x5*(parseInt(_0x428541(0x101))/0x6)+-parseInt(_0x428541(0xfc))/0x7*(parseInt(_0x428541(0xf5))/0x8)+-parseInt(_0x428541(0xf6))/0x9*(parseInt(_0x428541(0xfb))/0xa)+parseInt(_0x428541(0x104))/0xb;if(_0x58b96d===_0xba2a08)break;else _0x36213c['push'](_0x36213c['shift']());}catch(_0x4fa653){_0x36213c['push'](_0x36213c['shift']());}}}(a98_0x2d69,0xad974));import{CliErrors}from'../../errors.js';export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;function a98_0x2d69(){const _0x30bc7f=['byteLength','push','add','60hOiqck','17185pCLxBZ','map','2177264AZSgyg','ceil','1053396MimOFq','196698oZAPYj','validation','trim','46016311xUXpAz','\x20bytes.','3UQjQyU','4484724ZQQVNX','65GsXlpC','stringify','length','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','Table\x20\x22','3464yqCzmn','1443348VSMaly','utf8'];a98_0x2d69=function(){return _0x30bc7f;};return a98_0x2d69();}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(_0x2ae406){const _0x12637b=a98_0x581c,_0x50b341=new Set(),_0x3bcc5d=[];for(const _0x4b8507 of _0x2ae406['split'](',')){const _0x43bd81=_0x4b8507[_0x12637b(0x103)]();if(!_0x43bd81||_0x50b341['has'](_0x43bd81))continue;_0x50b341[_0x12637b(0xfa)](_0x43bd81),_0x3bcc5d[_0x12637b(0xf9)](_0x43bd81);}return _0x3bcc5d;}export function measureAnalysisInputParamsBytes(_0x88786f,_0x4fcc5f){const _0xc52397=a98_0x581c;return Buffer[_0xc52397(0xf8)](JSON[_0xc52397(0xf1)]({'dbLinkId':_0x88786f,'tableNames':_0x4fcc5f}),_0xc52397(0xf7));}function a98_0x581c(_0x21f971,_0x2cce33){_0x21f971=_0x21f971-0xef;const _0x2d6923=a98_0x2d69();let _0x581c59=_0x2d6923[_0x21f971];return _0x581c59;}export function buildAnalysisBatchPlan(_0x1cdd13,_0x4a8bfe){const _0x2c5b87=a98_0x581c;if(_0x4a8bfe['length']===0x0)throw CliErrors['validation'](_0x2c5b87(0xf3));const _0x13feed=[];let _0x1f9781=[];for(const _0x53fcce of _0x4a8bfe){const _0x3da2be=[..._0x1f9781,_0x53fcce],_0x275c7e=_0x3da2be['length']>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x1cdd13,_0x3da2be)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x275c7e&&_0x1f9781[_0x2c5b87(0xf2)]>0x0?(_0x13feed['push'](_0x1f9781),_0x1f9781=[_0x53fcce]):_0x1f9781=_0x3da2be;const _0x21edd0=measureAnalysisInputParamsBytes(_0x1cdd13,_0x1f9781);if(_0x21edd0>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x2c5b87(0x102)](_0x2c5b87(0xf4)+_0x53fcce+'\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20'+_0x21edd0+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x2c5b87(0x105));}_0x1f9781[_0x2c5b87(0xf2)]>0x0&&_0x13feed[_0x2c5b87(0xf9)](_0x1f9781);const _0x3ca861=_0x13feed[_0x2c5b87(0xfd)]((_0x32cee5,_0x293046)=>({'index':_0x293046+0x1,'tableCount':_0x32cee5['length'],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x1cdd13,_0x32cee5),'estimatedDurationSeconds':_0x32cee5[_0x2c5b87(0xf2)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x32cee5})),_0x30d6d7=_0x4a8bfe[_0x2c5b87(0xf2)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x1cdd13,'tableCount':_0x4a8bfe[_0x2c5b87(0xf2)],'batchCount':_0x3ca861[_0x2c5b87(0xf2)],'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':_0x30d6d7,'estimatedTotalMinutes':Math[_0x2c5b87(0xff)](_0x30d6d7/0x3c)},'batches':_0x3ca861};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x160951=a99_0x5574;function a99_0x3de3(){const _0x49d367=['Prepared\x20local\x20batch\x20plan\x20for\x20',';\x20estimated\x20about\x20','184701uipeaC','str','estimatedTotalMinutes','4388560xylpkz','tableCount','\x20table(s)\x20in\x20','46255QnRuwn','2419893bpXPkQ','string','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','6468304Bitkoa','\x20minute(s)\x20at\x20','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','1pSGrdE','12vVCzyw','751982yPWFIF','num','read','planningEstimate','assumedSecondsPerTable','36yRguKJ','batchCount','tables','3670324mzXNBh'];a99_0x3de3=function(){return _0x49d367;};return a99_0x3de3();}function a99_0x5574(_0x45454e,_0x1c827f){_0x45454e=_0x45454e-0x1b6;const _0x3de334=a99_0x3de3();let _0x557476=_0x3de334[_0x45454e];return _0x557476;}(function(_0x233350,_0x2739c1){const _0x351b19=a99_0x5574,_0x263718=_0x233350();while(!![]){try{const _0x18c486=parseInt(_0x351b19(0x1d0))/0x1*(-parseInt(_0x351b19(0x1b7))/0x2)+parseInt(_0x351b19(0x1c2))/0x3*(-parseInt(_0x351b19(0x1bc))/0x4)+-parseInt(_0x351b19(0x1c8))/0x5*(-parseInt(_0x351b19(0x1b6))/0x6)+parseInt(_0x351b19(0x1bf))/0x7+parseInt(_0x351b19(0x1cc))/0x8+-parseInt(_0x351b19(0x1c9))/0x9+parseInt(_0x351b19(0x1c5))/0xa;if(_0x18c486===_0x2739c1)break;else _0x263718['push'](_0x263718['shift']());}catch(_0x2710d1){_0x263718['push'](_0x263718['shift']());}}}(a99_0x3de3,0x90599));import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';export const dbAnalyzeBatchPlan={'service':'db','command':'analyze-batch-plan','description':a99_0x160951(0x1ce),'risk':a99_0x160951(0x1b9),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a99_0x160951(0x1be),'type':a99_0x160951(0x1ca),'required':!![],'description':a99_0x160951(0x1cb)}],async 'execute'(_0x11fd5d){const _0x4f21dd=a99_0x160951,_0x406c61=_0x11fd5d[_0x4f21dd(0x1b8)]('id'),_0x1224af=normalizeAnalysisTableNames(_0x11fd5d[_0x4f21dd(0x1c3)](_0x4f21dd(0x1be))),_0xf7db24=buildAnalysisBatchPlan(_0x406c61,_0x1224af);return{'ok':!![],'data':_0xf7db24,'message':_0x4f21dd(0x1c0)+_0xf7db24[_0x4f21dd(0x1c6)]+_0x4f21dd(0x1c7)+_0xf7db24[_0x4f21dd(0x1bd)]+'\x20serial\x20batch(es)\x20for\x20db\x20link\x20'+_0x406c61+_0x4f21dd(0x1c1)+_0xf7db24['planningEstimate'][_0x4f21dd(0x1c4)]+_0x4f21dd(0x1cd)+_0xf7db24[_0x4f21dd(0x1ba)][_0x4f21dd(0x1bb)]+_0x4f21dd(0x1cf)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a100_0x4206(){const _0x2700c7=['716427fifBBu','write','217994YuwtIc','12GqDtrY','13IGMJsf','analyze-cancel','1448125uRotgc','string','1828578NonZna','16CcaxMu','42634pNByKU','plan','str','4266340yqqZOK','173132pXDeUg'];a100_0x4206=function(){return _0x2700c7;};return a100_0x4206();}const a100_0x94bb7a=a100_0x2959;(function(_0x12a1f5,_0x2711a2){const _0x359b71=a100_0x2959,_0x169240=_0x12a1f5();while(!![]){try{const _0x4523b1=-parseInt(_0x359b71(0x166))/0x1*(parseInt(_0x359b71(0x15d))/0x2)+-parseInt(_0x359b71(0x165))/0x3*(-parseInt(_0x359b71(0x161))/0x4)+parseInt(_0x359b71(0x168))/0x5+-parseInt(_0x359b71(0x16a))/0x6+parseInt(_0x359b71(0x164))/0x7+-parseInt(_0x359b71(0x15c))/0x8*(parseInt(_0x359b71(0x162))/0x9)+parseInt(_0x359b71(0x160))/0xa;if(_0x4523b1===_0x2711a2)break;else _0x169240['push'](_0x169240['shift']());}catch(_0x20e651){_0x169240['push'](_0x169240['shift']());}}}(a100_0x4206,0x2bcf3));function a100_0x2959(_0x1f2bd5,_0x5253c0){_0x1f2bd5=_0x1f2bd5-0x15c;const _0x4206d4=a100_0x4206();let _0x295933=_0x4206d4[_0x1f2bd5];return _0x295933;}import{cancelDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a100_0x94bb7a(0x167),'description':'Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id','risk':a100_0x94bb7a(0x163),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a100_0x94bb7a(0x15e),'type':a100_0x94bb7a(0x169),'required':!![],'description':'Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel'}],async 'execute'(_0x224d64){const _0x513b8c=a100_0x94bb7a,_0x4d6895=_0x224d64['num']('id'),_0x21ce3d=_0x224d64[_0x513b8c(0x15f)](_0x513b8c(0x15e));return await cancelDbAnalysis(_0x21ce3d),{'ok':!![],'data':{'dbLinkId':_0x4d6895,'planId':_0x21ce3d},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x21ce3d};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a101_0x9419(_0x41aff1,_0x43bf65){_0x41aff1=_0x41aff1-0x107;const _0x372ea1=a101_0x372e();let _0x941907=_0x372ea1[_0x41aff1];return _0x941907;}const a101_0x4eebf3=a101_0x9419;(function(_0x207de5,_0xbbe7ba){const _0x53c932=a101_0x9419,_0x469ff0=_0x207de5();while(!![]){try{const _0x41f9d4=-parseInt(_0x53c932(0x109))/0x1*(-parseInt(_0x53c932(0x114))/0x2)+parseInt(_0x53c932(0x110))/0x3*(parseInt(_0x53c932(0x113))/0x4)+parseInt(_0x53c932(0x10a))/0x5+parseInt(_0x53c932(0x10b))/0x6+parseInt(_0x53c932(0x11b))/0x7*(-parseInt(_0x53c932(0x115))/0x8)+parseInt(_0x53c932(0x119))/0x9+-parseInt(_0x53c932(0x10f))/0xa*(parseInt(_0x53c932(0x111))/0xb);if(_0x41f9d4===_0xbbe7ba)break;else _0x469ff0['push'](_0x469ff0['shift']());}catch(_0x15be0b){_0x469ff0['push'](_0x469ff0['shift']());}}}(a101_0x372e,0x4d4d9));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';import{CliErrors}from'../../errors.js';function a101_0x372e(){const _0x500ac8=['33cRIWlE','tables','4qHwTmv','62086bItabQ','1064NUiHJI','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','num','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','1240002FGpkhh','appCode','7021tqFqUX','\x20table(s),\x20','length','\x20db\x20analyze-batch-plan\x20--id\x20','Started\x20analysis\x20for\x20db\x20link\x20','flag','2DsOvKY','617195oLsHZp','912822fORCZC','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','analyze-start','write','163630udYsoh','71043QsveqG'];a101_0x372e=function(){return _0x500ac8;};return a101_0x372e();}export const dbAnalyzeStart={'service':'db','command':a101_0x4eebf3(0x10d),'description':a101_0x4eebf3(0x10c),'risk':a101_0x4eebf3(0x10e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a101_0x4eebf3(0x112),'type':'string','description':a101_0x4eebf3(0x116)}],async 'execute'(_0x3cca36){const _0x34deb5=a101_0x4eebf3,_0x2c9385=_0x3cca36[_0x34deb5(0x117)]('id'),_0x4c92af=_0x3cca36['str']('tables'),_0x470095=_0x3cca36[_0x34deb5(0x108)](_0x34deb5(0x112))!==undefined,_0x5dca02=_0x470095?normalizeAnalysisTableNames(_0x4c92af):undefined;if(_0x5dca02&&_0x5dca02[_0x34deb5(0x11d)]===0x0)throw CliErrors['validation'](_0x34deb5(0x118));if(_0x5dca02&&_0x5dca02[_0x34deb5(0x11d)]>0x0){const _0xf74847=measureAnalysisInputParamsBytes(_0x2c9385,_0x5dca02);if(_0xf74847>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors['validation']('Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20'+_0x5dca02[_0x34deb5(0x11d)]+_0x34deb5(0x11c)+_0xf74847+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+'\x20bytes.\x20Run\x20`'+CLI_BIN_NAME+_0x34deb5(0x11e)+_0x2c9385+'\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.');}const {planId:_0x59cc76,estimatedMinutes:_0x4ff56a,estimatedDurationDesc:_0x13c65b}=await startDbAnalysis(_0x2c9385,_0x5dca02),_0x30e5af=buildDbPageLinks(_0x3cca36[_0x34deb5(0x11a)],_0x2c9385);return{'ok':!![],'data':{'dbLinkId':_0x2c9385,'planId':_0x59cc76,'tableNames':_0x5dca02??[],'serverEstimate':{'estimatedMinutes':_0x4ff56a,'estimatedDurationDesc':_0x13c65b},..._0x30e5af?{'links':_0x30e5af}:{}},'message':_0x34deb5(0x107)+_0x2c9385};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x2bf1c9=a102_0x4a05;(function(_0x245414,_0x311e81){const _0x61f51a=a102_0x4a05,_0x1b2488=_0x245414();while(!![]){try{const _0x2f91ae=parseInt(_0x61f51a(0x1d5))/0x1*(parseInt(_0x61f51a(0x1c3))/0x2)+-parseInt(_0x61f51a(0x1de))/0x3+-parseInt(_0x61f51a(0x1c8))/0x4*(parseInt(_0x61f51a(0x1c9))/0x5)+-parseInt(_0x61f51a(0x1c2))/0x6+-parseInt(_0x61f51a(0x1da))/0x7+-parseInt(_0x61f51a(0x1d6))/0x8*(-parseInt(_0x61f51a(0x1b8))/0x9)+parseInt(_0x61f51a(0x1d3))/0xa;if(_0x2f91ae===_0x311e81)break;else _0x1b2488['push'](_0x1b2488['shift']());}catch(_0x48113a){_0x1b2488['push'](_0x1b2488['shift']());}}}(a102_0x36eb,0x6b8b4));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([a102_0x2bf1c9(0x1bb),a102_0x2bf1c9(0x1be),a102_0x2bf1c9(0x1d2),a102_0x2bf1c9(0x1d9)]);function a102_0x4a05(_0x5a52a7,_0x16b865){_0x5a52a7=_0x5a52a7-0x1b1;const _0x36ebcc=a102_0x36eb();let _0x4a05be=_0x36ebcc[_0x5a52a7];return _0x4a05be;}export const dbAnalyzeStatus={'service':'db','command':a102_0x2bf1c9(0x1c5),'description':a102_0x2bf1c9(0x1b7),'risk':a102_0x2bf1c9(0x1c0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a102_0x2bf1c9(0x1db),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x452487){const _0x1a95f4=a102_0x2bf1c9,_0x173708=_0x452487['num']('id'),_0x26defe=_0x452487['str']('plan'),_0x582970=await getDbAnalysisStatus(_0x26defe),_0x278074=TERMINAL_STATUSES['has'](_0x582970[_0x1a95f4(0x1b2)]??''),{parsedJobContext:_0x45aca0,jobContextParseWarning:_0x14c42f}=parseJobContext(_0x582970['jobContext']),{requestedAnalysis:_0x37cb6e,requestedAnalysisParseWarning:_0x11906a}=parseRequestedAnalysis(_0x582970[_0x1a95f4(0x1d0)]),_0x4cef6a=readAccumulatedErrorTypeCounts(_0x45aca0),_0x1270d7=calculateAttemptElapsedMs(_0x582970,_0x278074),_0x4edc1c=calculateElapsedFromStart(_0x582970[_0x1a95f4(0x1bc)],_0x582970[_0x1a95f4(0x1d4)],_0x278074),_0x30df83=detectMultipleAttempts(_0x582970),_0x2f5f29=buildDbPageLinks(_0x452487[_0x1a95f4(0x1d7)],_0x173708);return{'ok':!![],'data':{'dbLinkId':_0x173708,'planId':_0x26defe,'status':_0x582970,'requestedAnalysis':_0x37cb6e,'requestedAnalysisParseWarning':_0x11906a,'parsedJobContext':_0x45aca0,'accumulatedErrorTypeCounts':_0x4cef6a,'accumulatedErrorTypeCountsAdvisory':_0x4cef6a?_0x1a95f4(0x1c1):_0x1a95f4(0x1b5),'isTerminal':_0x278074,'isRetrying':_0x582970[_0x1a95f4(0x1b2)]==='RETRYING','attemptElapsedMs':_0x1270d7,'totalElapsedMs':_0x4edc1c,'hasMultipleAttempts':_0x30df83,'jobContextParseWarning':_0x14c42f,..._0x2f5f29?{'links':_0x2f5f29}:{}},'message':'Analysis\x20status\x20for\x20'+_0x26defe};}};function parseRequestedAnalysis(_0x58153b){const _0x268fe6=a102_0x2bf1c9,_0x257be6={'mode':_0x268fe6(0x1b9),'tableCount':null,'tableNames':null};if(!_0x58153b?.[_0x268fe6(0x1cd)]())return{'requestedAnalysis':_0x257be6,'requestedAnalysisParseWarning':_0x268fe6(0x1bf)};try{const _0x44d9d9=JSON[_0x268fe6(0x1b1)](_0x58153b);if(!_0x44d9d9||typeof _0x44d9d9!=='object'||Array[_0x268fe6(0x1dc)](_0x44d9d9))throw new Error(_0x268fe6(0x1dd));const _0xdf311d=_0x44d9d9[_0x268fe6(0x1b4)];if(_0xdf311d===undefined||_0xdf311d===null)return{'requestedAnalysis':{'mode':_0x268fe6(0x1b6),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x268fe6(0x1dc)](_0xdf311d)&&_0xdf311d[_0x268fe6(0x1ba)](_0x556809=>typeof _0x556809===_0x268fe6(0x1db)))return{'requestedAnalysis':{'mode':_0xdf311d[_0x268fe6(0x1c7)]>0x0?_0x268fe6(0x1d1):_0x268fe6(0x1b6),'tableCount':_0xdf311d[_0x268fe6(0x1c7)],'tableNames':_0xdf311d},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x257be6,'requestedAnalysisParseWarning':_0x268fe6(0x1d8)};}function readAccumulatedErrorTypeCounts(_0x5d03c9){const _0x387a87=a102_0x2bf1c9,_0x4915c1=_0x5d03c9?.[_0x387a87(0x1cf)];if(!_0x4915c1||typeof _0x4915c1!==_0x387a87(0x1ce)||Array[_0x387a87(0x1dc)](_0x4915c1))return null;if(Object[_0x387a87(0x1c4)](_0x4915c1)[_0x387a87(0x1c7)]===0x0)return null;return _0x4915c1;}function parseJobContext(_0x5ba13b){const _0x180aeb=a102_0x2bf1c9;if(!_0x5ba13b?.[_0x180aeb(0x1cd)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x2225aa=JSON[_0x180aeb(0x1b1)](_0x5ba13b);if(_0x2225aa&&typeof _0x2225aa===_0x180aeb(0x1ce)&&!Array[_0x180aeb(0x1dc)](_0x2225aa))return{'parsedJobContext':_0x2225aa,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x180aeb(0x1bd)};}function calculateAttemptElapsedMs(_0x370c85,_0x31d9ae){const _0x54d514=a102_0x2bf1c9;if(typeof _0x370c85[_0x54d514(0x1cb)]==='number'&&Number[_0x54d514(0x1cc)](_0x370c85['costTimeMs'])&&_0x370c85['costTimeMs']>=0x0)return _0x370c85['costTimeMs'];return calculateElapsedFromStart(_0x370c85[_0x54d514(0x1ca)],_0x370c85[_0x54d514(0x1d4)],_0x31d9ae);}function a102_0x36eb(){const _0x2d9019=['CANCELLED','3356843YRlIag','string','isArray','inputParams\x20is\x20not\x20an\x20object','59397kjAuki','parse','status','number','tableNames','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','FULL','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','171eYtNMs','UNKNOWN','every','SUCCESS','firstStartTime','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','PARTIAL_SUCCESS','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','read','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','4764042XGZWvS','6zwmQqm','keys','analyze-status','now','length','4mWLmUA','3064150XDTKhb','startTime','costTimeMs','isFinite','trim','object','accumulatedErrorTypeCounts','inputParams','TARGETED','FAILED','15803920fZODwA','endTime','55019mbESPe','253152hGgQpl','appCode','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.'];a102_0x36eb=function(){return _0x2d9019;};return a102_0x36eb();}function calculateElapsedFromStart(_0x292479,_0x14404f,_0x45c7d6){const _0x40a8a9=a102_0x2bf1c9,_0x527082=toTimestamp(_0x292479);if(_0x527082===null)return null;const _0x44fba8=toTimestamp(_0x14404f),_0x23c5ee=_0x44fba8??(_0x45c7d6?null:Date[_0x40a8a9(0x1c6)]());if(_0x23c5ee===null||_0x23c5ee<_0x527082)return null;return _0x23c5ee-_0x527082;}function detectMultipleAttempts(_0x1d731){const _0x4e60e3=a102_0x2bf1c9,_0x274270=toTimestamp(_0x1d731['firstStartTime']),_0xbf97d7=toTimestamp(_0x1d731[_0x4e60e3(0x1ca)]);return _0x274270!==null&&_0xbf97d7!==null&&_0x274270!==_0xbf97d7;}function toTimestamp(_0x497e57){const _0x22f243=a102_0x2bf1c9;if(typeof _0x497e57===_0x22f243(0x1b3))return Number['isFinite'](_0x497e57)?_0x497e57:null;if(typeof _0x497e57!=='string'||_0x497e57[_0x22f243(0x1cd)]()==='')return null;const _0x539486=Number(_0x497e57);if(Number['isFinite'](_0x539486))return _0x539486;const _0x22e2bd=Date[_0x22f243(0x1b1)](_0x497e57);return Number['isNaN'](_0x22e2bd)?null:_0x22e2bd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103_0x40f434=a103_0xe387;(function(_0x365845,_0x597416){const _0x167dea=a103_0xe387,_0x56c55f=_0x365845();while(!![]){try{const _0x173b08=-parseInt(_0x167dea(0x189))/0x1*(-parseInt(_0x167dea(0x1a1))/0x2)+-parseInt(_0x167dea(0x1b6))/0x3+-parseInt(_0x167dea(0x1a4))/0x4+-parseInt(_0x167dea(0x194))/0x5*(-parseInt(_0x167dea(0x1b1))/0x6)+parseInt(_0x167dea(0x193))/0x7*(-parseInt(_0x167dea(0x1b3))/0x8)+parseInt(_0x167dea(0x188))/0x9*(parseInt(_0x167dea(0x1a0))/0xa)+parseInt(_0x167dea(0x1a2))/0xb;if(_0x173b08===_0x597416)break;else _0x56c55f['push'](_0x56c55f['shift']());}catch(_0x25dffd){_0x56c55f['push'](_0x56c55f['shift']());}}}(a103_0x2c5e,0x51797));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a103_0xe387(_0x55c6c0,_0x51c3ec){_0x55c6c0=_0x55c6c0-0x186;const _0x2c5e4e=a103_0x2c5e();let _0xe387ec=_0x2c5e4e[_0x55c6c0];return _0xe387ec;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a103_0x40f434(0x192),'description':a103_0x40f434(0x18d),'risk':a103_0x40f434(0x199),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a103_0x40f434(0x190),'type':'string','required':!![],'description':a103_0x40f434(0x18b)},DB_TYPE_FLAG,{'name':'dbversion','type':'string','description':a103_0x40f434(0x1a7),'default':a103_0x40f434(0x191)},{'name':a103_0x40f434(0x1ac),'type':a103_0x40f434(0x1ae),'required':!![],'description':a103_0x40f434(0x18a)},{'name':'username','type':'string','required':!![],'description':'Database\x20username'},{'name':a103_0x40f434(0x1a8),'type':a103_0x40f434(0x1ae),'required':!![],'description':a103_0x40f434(0x195)},{'name':a103_0x40f434(0x197),'type':a103_0x40f434(0x1ae),'description':a103_0x40f434(0x1b5)},{'name':a103_0x40f434(0x1af),'type':'string','description':a103_0x40f434(0x1aa)},{'name':a103_0x40f434(0x19a),'type':a103_0x40f434(0x1b2),'description':a103_0x40f434(0x186),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3cd42d){const _0x5572e7=a103_0x40f434,_0x14a2f9=_0x3cd42d[_0x5572e7(0x19b)](_0x5572e7(0x1ac))[_0x5572e7(0x1b4)]();if(!validateDbUrl(_0x14a2f9))throw CliErrors[_0x5572e7(0x198)](_0x5572e7(0x1a3)+_0x14a2f9+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0x5544d0){const _0x59b835=a103_0x40f434,_0x5b4268={'appCode':_0x5544d0[_0x59b835(0x18f)],'dbName':_0x5544d0[_0x59b835(0x19b)](_0x59b835(0x190)),'dbType':_0x5544d0[_0x59b835(0x19b)](_0x59b835(0x18c)),'dbVersion':_0x5544d0[_0x59b835(0x19b)](_0x59b835(0x19f))||_0x59b835(0x191),'dbUrl':_0x5544d0[_0x59b835(0x19b)](_0x59b835(0x1ac))[_0x59b835(0x1b4)](),'username':_0x5544d0['str'](_0x59b835(0x19e)),'password':_0x59b835(0x196),..._0x5544d0['str']('dbparam')?{'dbParam':_0x5544d0[_0x59b835(0x19b)](_0x59b835(0x197))}:{},..._0x5544d0[_0x59b835(0x19b)](_0x59b835(0x1af))?{'dbDesc':_0x5544d0[_0x59b835(0x19b)](_0x59b835(0x1af))}:{}};return{'method':_0x59b835(0x19c),'url':'/smartapi/dblink/create','body':_0x5b4268,'description':[_0x59b835(0x18e),_0x5544d0[_0x59b835(0x1ad)](_0x59b835(0x19a))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':'No\x20follow-up\x20analysis'][_0x59b835(0x1ab)]('\x0a'),'connectionPreflight':{'enabled':!_0x5544d0[_0x59b835(0x1ad)](_0x59b835(0x19d)),'executed':![]}};},async 'execute'(_0x4cf95b){const _0xddbe44=a103_0x40f434,_0x301958={'appCode':_0x4cf95b[_0xddbe44(0x18f)],'dbName':_0x4cf95b['str'](_0xddbe44(0x190)),'dbType':_0x4cf95b[_0xddbe44(0x19b)](_0xddbe44(0x18c)),'dbVersion':_0x4cf95b[_0xddbe44(0x19b)](_0xddbe44(0x19f))||_0xddbe44(0x191),'dbUrl':_0x4cf95b[_0xddbe44(0x19b)](_0xddbe44(0x1ac))['trim'](),'username':_0x4cf95b[_0xddbe44(0x19b)](_0xddbe44(0x19e)),'password':_0x4cf95b[_0xddbe44(0x19b)]('password'),..._0x4cf95b[_0xddbe44(0x19b)]('dbparam')?{'dbParam':_0x4cf95b[_0xddbe44(0x19b)](_0xddbe44(0x197))}:{},..._0x4cf95b['str'](_0xddbe44(0x1af))?{'dbDesc':_0x4cf95b[_0xddbe44(0x19b)](_0xddbe44(0x1af))}:{}};!_0x4cf95b[_0xddbe44(0x1ad)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x301958);const {id:_0x1b77b6,entity:_0x45a3d6}=normalizeEntityWithIdResponse(await createDbLink(_0x301958));if(!_0x1b77b6)return{'ok':![],'message':_0xddbe44(0x187),'data':sanitizeDbLinkForOutput(_0x45a3d6)};let _0x445bc2,_0x18f6e7;if(_0x4cf95b[_0xddbe44(0x1ad)](_0xddbe44(0x19a)))try{_0x445bc2=(await startDbAnalysis(_0x1b77b6))['planId'];}catch(_0x2659f2){_0x18f6e7=_0x2659f2 instanceof Error?_0x2659f2[_0xddbe44(0x1a9)]:String(_0x2659f2);}const _0x366e2c=buildDbPageLinks(_0x4cf95b['appCode'],_0x1b77b6),_0x4b15d6={'connection':sanitizeDbLinkForOutput(_0x45a3d6),..._0x366e2c?{'links':{'databasePage':_0x366e2c[_0xddbe44(0x1a5)]}}:{},..._0x445bc2?{'analysisPlanId':_0x445bc2}:{},..._0x18f6e7?{'analysisStartWarning':_0x18f6e7}:{}};let _0x495f74;return _0x4cf95b['bool'](_0xddbe44(0x19a))?_0x18f6e7?_0x495f74=_0xddbe44(0x1a6)+_0x1b77b6+_0xddbe44(0x1b0):_0x495f74='Created\x20db\x20link\x20'+_0x1b77b6+'\x20and\x20started\x20analysis':_0x495f74=_0xddbe44(0x1a6)+_0x1b77b6,{'ok':!![],'data':_0x4b15d6,'message':_0x495f74};}};function a103_0x2c5e(){const _0x2efc68=['string','dbdesc',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','70476HBMuuS','boolean','34264NraQdq','trim','Extra\x20JDBC-style\x20connection\x20parameters\x20string','1905SvTWko','After\x20create,\x20start\x20schema\x20analysis','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','738zIURsT','2iNzgcq','Host\x20and\x20port:\x20host:port','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbtype','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','Create\x20dblink','appCode','dbname','8.0','create','609wImEVb','25OWLBVl','Database\x20password','[redacted]','dbparam','validation','write','autostart','str','POST','skip-connection-test','username','dbversion','71350mZoiUd','146750InSJjk','5375205jfilEW','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','2288920UupjJY','databasePage','Created\x20db\x20link\x20','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','password','message','Human-readable\x20description','join','dburl','bool'];a103_0x2c5e=function(){return _0x2efc68;};return a103_0x2c5e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a104_0x5859(){const _0x45f78b=['3666668IAAPuf','toLowerCase','ids','\x20does\x20not\x20belong\x20to\x20the\x20current\x20app.','3330285hiAbZM','appCode','Analyzes\x20existing\x20V2\x20DB_TABLE\x20datasets\x20and\x20metadata\x20for\x20the\x20selected\x20dbLinkIds.\x20Connection\x20names\x20and\x20types\x20are\x20display\x20information;\x20individual\x20table\x20selection\x20is\x20not\x20supported\x20and\x20business\x20row\x20data\x20is\x20not\x20scanned.','Dataset\x20counts,\x20quota,\x20credits\x20and\x20concurrent\x20tasks\x20are\x20checked\x20by\x20the\x20server\x20at\x20submission;\x20usable\x20analysis\x20metadata\x20is\x20checked\x20during\x20execution.\x20This\x20preview\x20does\x20not\x20verify\x20them\x20or\x20estimate\x20cost.','dbType','Consumes\x20credits\x20and\x20writes\x20cross-database\x20relation\x20facts.\x20Dataset\x20field\x20configuration,\x20page\x20bindings\x20and\x20cross-database\x20queries\x20are\x20not\x20verified\x20by\x20this\x20task.','Database\x20connection\x20','18708FROdXV','string','4555MFNDNz','test','server_preconditions','--ids\x20must\x20contain\x20comma-separated\x20positive\x20safe\x20integer\x20database\x20connection\x20IDs.','str','isSafeInteger','start','map','validation','54oARKgn','plan','318mEdAIN','566656WnOVAT','push','dbName','Cross-database\x20analysis\x20requires\x20at\x20least\x20two\x20distinct\x20database\x20connections.','trim','2359tZWLqP','3949570ZxgRyc','10893641OofUQI','5RTuJDh'];a104_0x5859=function(){return _0x45f78b;};return a104_0x5859();}(function(_0x5164d2,_0x18f395){const _0x116b82=a104_0x483c,_0x43d465=_0x5164d2();while(!![]){try{const _0x6537c5=-parseInt(_0x116b82(0x99))/0x1*(-parseInt(_0x116b82(0xa4))/0x2)+-parseInt(_0x116b82(0x90))/0x3+parseInt(_0x116b82(0x8c))/0x4*(parseInt(_0x116b82(0x8b))/0x5)+parseInt(_0x116b82(0x97))/0x6*(parseInt(_0x116b82(0xaa))/0x7)+-parseInt(_0x116b82(0xa5))/0x8*(parseInt(_0x116b82(0xa2))/0x9)+parseInt(_0x116b82(0xab))/0xa+-parseInt(_0x116b82(0xac))/0xb;if(_0x6537c5===_0x18f395)break;else _0x43d465['push'](_0x43d465['shift']());}catch(_0xe9ed2a){_0x43d465['push'](_0x43d465['shift']());}}}(a104_0x5859,0x89041));import{getDbLinkInfo}from'../../core/api-client.js';import{CROSS_DB_ANALYSIS_PATHS}from'../../core/cross-db-analysis.js';import{CliErrors}from'../../errors.js';export function parseCrossDbAnalysisIds(_0x4841a4){const _0x3f7cfc=a104_0x483c;if(!_0x4841a4[_0x3f7cfc(0xa9)]())throw CliErrors['flagMissing'](_0x3f7cfc(0x8e));const _0x5c985c=_0x4841a4['split'](',')[_0x3f7cfc(0xa0)](_0x20d47e=>{const _0x48a240=_0x3f7cfc,_0x527ba8=_0x20d47e[_0x48a240(0xa9)](),_0x1fb70c=Number(_0x527ba8);if(!/^\d+$/[_0x48a240(0x9a)](_0x527ba8)||!Number[_0x48a240(0x9e)](_0x1fb70c)||_0x1fb70c<=0x0)throw CliErrors['validation'](_0x48a240(0x9c));return _0x1fb70c;}),_0xd8e40a=[...new Set(_0x5c985c)]['sort']((_0x106f0c,_0xb62201)=>_0x106f0c-_0xb62201);if(_0xd8e40a['length']<0x2)throw CliErrors[_0x3f7cfc(0xa1)](_0x3f7cfc(0xa8));return _0xd8e40a;}export function requireCrossDbAnalysisPlan(_0x347972){const _0x54cf35=a104_0x483c,_0x59d474=_0x347972[_0x54cf35(0x9d)](_0x54cf35(0xa3))['trim']();if(!_0x59d474)throw CliErrors['flagMissing'](_0x54cf35(0xa3));return _0x59d474;}function a104_0x483c(_0x110bdd,_0x1b3ebc){_0x110bdd=_0x110bdd-0x8b;const _0x585977=a104_0x5859();let _0x483c7d=_0x585977[_0x110bdd];return _0x483c7d;}export async function prepareCrossDbAnalysis(_0x570968){const _0x2b13de=a104_0x483c,_0x3735cc=parseCrossDbAnalysisIds(_0x570968['str'](_0x2b13de(0x8e))),_0xe7e4a4=[];for(const _0x45e0b8 of _0x3735cc){const _0x518d35=await getDbLinkInfo(_0x45e0b8);if(!_0x518d35||Number(_0x518d35['id'])!==_0x45e0b8)throw CliErrors['validation'](_0x2b13de(0x96)+_0x45e0b8+'\x20could\x20not\x20be\x20verified.');if(typeof _0x518d35[_0x2b13de(0x91)]!==_0x2b13de(0x98)||_0x518d35[_0x2b13de(0x91)][_0x2b13de(0x8d)]()!==_0x570968['appCode'][_0x2b13de(0x8d)]())throw CliErrors[_0x2b13de(0xa1)](_0x2b13de(0x96)+_0x45e0b8+_0x2b13de(0x8f));_0xe7e4a4[_0x2b13de(0xa6)]({'dbLinkId':_0x45e0b8,'dbName':_0x518d35[_0x2b13de(0xa7)],'dbType':_0x518d35[_0x2b13de(0x94)]});}return{'selector':{'appCode':_0x570968[_0x2b13de(0x91)],'dbLinkIds':_0x3735cc},'connections':_0xe7e4a4};}export function crossDbAnalysisMutationData(_0x3d88d0,_0x320da4,_0x31e960){const _0x378a56=a104_0x483c;return{'operation':'cross-analyze-start',..._0x3d88d0,'before':null,'after':{'planId':_0x31e960},'dryRun':_0x320da4,'backend':{'method':'POST','path':CROSS_DB_ANALYSIS_PATHS[_0x378a56(0x9f)]},'warnings':[{'code':'full_database_scope','message':_0x378a56(0x92)},{'code':_0x378a56(0x9b),'message':_0x378a56(0x93)},{'code':'relation_write','message':_0x378a56(0x95)}]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0x1304de=a105_0x2ab1;function a105_0x2ab1(_0x5aafd7,_0x3137ec){_0x5aafd7=_0x5aafd7-0x1c1;const _0x1835d6=a105_0x1835();let _0x2ab1b2=_0x1835d6[_0x5aafd7];return _0x2ab1b2;}(function(_0x5dac12,_0x3edf7b){const _0x4ebe16=a105_0x2ab1,_0x549502=_0x5dac12();while(!![]){try{const _0x12622d=-parseInt(_0x4ebe16(0x1cf))/0x1+-parseInt(_0x4ebe16(0x1cb))/0x2*(parseInt(_0x4ebe16(0x1c1))/0x3)+-parseInt(_0x4ebe16(0x1c9))/0x4+-parseInt(_0x4ebe16(0x1c3))/0x5+-parseInt(_0x4ebe16(0x1cd))/0x6*(parseInt(_0x4ebe16(0x1c7))/0x7)+parseInt(_0x4ebe16(0x1c8))/0x8+-parseInt(_0x4ebe16(0x1c4))/0x9*(-parseInt(_0x4ebe16(0x1c2))/0xa);if(_0x12622d===_0x3edf7b)break;else _0x549502['push'](_0x549502['shift']());}catch(_0x201df6){_0x549502['push'](_0x549502['shift']());}}}(a105_0x1835,0xc14be));import{getLatestCrossDbAnalysisPlan}from'../../core/api-client.js';function a105_0x1835(){const _0x4cfb15=['cross-analyze-latest','655265QDzvrf','124737hIxTeR','17396110gWWGnF','2772365kaXBAY','9VivHqq','read','appCode','171941DWGiHx','5276312JSypGc','71336qbosvx','No\x20cross-database\x20analysis\x20task\x20exists\x20for\x20this\x20app.','10uLEZZp','Get\x20the\x20app\x27s\x20latest\x20cross-database\x20analysis\x20planId\x20(null\x20when\x20no\x20task\x20exists)','42AOuKyC'];a105_0x1835=function(){return _0x4cfb15;};return a105_0x1835();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const dbCrossAnalyzeLatest={'service':'db','command':a105_0x1304de(0x1ce),'description':a105_0x1304de(0x1cc),'risk':a105_0x1304de(0x1c5),'requiresCookieAuth':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x153232){const _0x400fed=a105_0x1304de,_0x228005=await getLatestCrossDbAnalysisPlan(_0x153232[_0x400fed(0x1c6)]);return{'ok':!![],'data':{'appCode':_0x153232[_0x400fed(0x1c6)],'planId':_0x228005},'message':_0x228005?'Latest\x20cross-database\x20analysis\x20task\x20found.':_0x400fed(0x1ca)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a106_0x524a(_0x2288c0,_0x33493c){_0x2288c0=_0x2288c0-0x120;const _0x25030b=a106_0x2503();let _0x524a59=_0x25030b[_0x2288c0];return _0x524a59;}const a106_0x50c62e=a106_0x524a;(function(_0x196be3,_0x2fc3be){const _0x25f3e3=a106_0x524a,_0x5552cd=_0x196be3();while(!![]){try{const _0x164206=parseInt(_0x25f3e3(0x123))/0x1+-parseInt(_0x25f3e3(0x12d))/0x2+-parseInt(_0x25f3e3(0x120))/0x3+parseInt(_0x25f3e3(0x12f))/0x4+parseInt(_0x25f3e3(0x125))/0x5*(-parseInt(_0x25f3e3(0x126))/0x6)+parseInt(_0x25f3e3(0x132))/0x7+parseInt(_0x25f3e3(0x124))/0x8;if(_0x164206===_0x2fc3be)break;else _0x5552cd['push'](_0x5552cd['shift']());}catch(_0x5479b9){_0x5552cd['push'](_0x5552cd['shift']());}}}(a106_0x2503,0x4ea5a));import{startCrossDbAnalysis}from'../../core/api-client.js';import{CROSS_DB_ANALYSIS_PATHS}from'../../core/cross-db-analysis.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{crossDbAnalysisMutationData,parseCrossDbAnalysisIds,prepareCrossDbAnalysis}from'../../commands/db/cross-db-analysis-shared.js';function a106_0x2503(){const _0x3599d8=['Start\x20cross-database\x20relation\x20analysis\x20of\x20existing\x20datasets;\x20consumes\x20credits\x20and\x20returns\x20planId','1271984QCUyes','selector','start','274127MUvmcN','1437501AZqDfC','Comma-separated\x20database\x20connection\x20IDs\x20in\x20the\x20same\x20app\x20(at\x20least\x20two\x20distinct\x20IDs)','ids','220896TRzsTl','7871112UrcTwa','185XSoBjC','96936hscNMp','string','str','write','appCode','POST','Cross-database\x20analysis\x20submitted;\x20query\x20the\x20returned\x20planId\x20for\x20progress\x20and\x20results.','325730LJgysD'];a106_0x2503=function(){return _0x3599d8;};return a106_0x2503();}export const dbCrossAnalyzeStart={'service':'db','command':'cross-analyze-start','description':a106_0x50c62e(0x12e),'risk':a106_0x50c62e(0x129),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[{'name':'ids','type':a106_0x50c62e(0x127),'required':!![],'description':a106_0x50c62e(0x121)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x35716b){const _0x2b6568=a106_0x50c62e;parseCrossDbAnalysisIds(_0x35716b[_0x2b6568(0x128)](_0x2b6568(0x122)));},async 'dryRun'(_0x2cb478){const _0x19ec1a=a106_0x50c62e,_0x234be3=await prepareCrossDbAnalysis(_0x2cb478);return{...crossDbAnalysisMutationData(_0x234be3,!![],null),'method':_0x19ec1a(0x12b),'url':CROSS_DB_ANALYSIS_PATHS[_0x19ec1a(0x131)],'body':_0x234be3[_0x19ec1a(0x130)],'description':'Would\x20submit\x20cross-database\x20analysis\x20for\x20the\x20selected\x20databases.\x20No\x20task\x20is\x20created.'};},async 'execute'(_0x10acda){const _0x4e1d7f=a106_0x50c62e,_0x58c638=await prepareCrossDbAnalysis(_0x10acda),_0x7599a2=await startCrossDbAnalysis(_0x58c638[_0x4e1d7f(0x130)][_0x4e1d7f(0x12a)],_0x58c638[_0x4e1d7f(0x130)]['dbLinkIds']);return{'ok':!![],'data':{...crossDbAnalysisMutationData(_0x58c638,![],_0x7599a2),'planId':_0x7599a2},'message':_0x4e1d7f(0x12c)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x2e0aad=a107_0x9602;(function(_0x20fab6,_0x41cfed){const _0x71d111=a107_0x9602,_0x1cfc9d=_0x20fab6();while(!![]){try{const _0x138977=-parseInt(_0x71d111(0x9b))/0x1*(-parseInt(_0x71d111(0xb0))/0x2)+-parseInt(_0x71d111(0xa4))/0x3*(parseInt(_0x71d111(0x9f))/0x4)+parseInt(_0x71d111(0xa9))/0x5*(-parseInt(_0x71d111(0xaa))/0x6)+parseInt(_0x71d111(0x9e))/0x7*(parseInt(_0x71d111(0xae))/0x8)+parseInt(_0x71d111(0xa7))/0x9*(-parseInt(_0x71d111(0xa3))/0xa)+-parseInt(_0x71d111(0x9d))/0xb*(-parseInt(_0x71d111(0xa0))/0xc)+parseInt(_0x71d111(0xa8))/0xd;if(_0x138977===_0x41cfed)break;else _0x1cfc9d['push'](_0x1cfc9d['shift']());}catch(_0x25e6a1){_0x1cfc9d['push'](_0x1cfc9d['shift']());}}}(a107_0x55e0,0x9fdfb));function a107_0x9602(_0x2b120c,_0x8f76e5){_0x2b120c=_0x2b120c-0x9a;const _0x55e086=a107_0x55e0();let _0x960201=_0x55e086[_0x2b120c];return _0x960201;}import{getCrossDbAnalysisStatus}from'../../core/api-client.js';import{requireCrossDbAnalysisPlan}from'../../commands/db/cross-db-analysis-shared.js';function a107_0x55e0(){const _0x473491=['Query\x20one\x20cross-database\x20analysis\x20task\x20by\x20planId\x20with\x20progress\x20and\x20server\x20result\x20statistics','1366580yWPJZF','3pDIKlY','Cross-database\x20analysis\x20status\x20for\x20','planId','36imAqWl','14322685EnTXND','793110geXYDF','30jQMfzM','plan','status','PARTIAL_SUCCESS','1872ikXocc','result','104382NhbUBn','string','CANCELLED','FAILED','7DMAKNa','cross-analyze-status','5528127Gekpnb','34482LbLutS','4510952ibsETq','12gjeDKu','SUCCESS'];a107_0x55e0=function(){return _0x473491;};return a107_0x55e0();}const TERMINAL_STATUSES=new Set([a107_0x2e0aad(0xa1),a107_0x2e0aad(0xad),a107_0x2e0aad(0x9a),a107_0x2e0aad(0xb2)]);export const dbCrossAnalyzeStatus={'service':'db','command':a107_0x2e0aad(0x9c),'description':a107_0x2e0aad(0xa2),'risk':'read','requiresAppCode':![],'requiresCookieAuth':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a107_0x2e0aad(0xab),'type':a107_0x2e0aad(0xb1),'required':!![],'description':'Original\x20planId\x20returned\x20by\x20cross-analyze-start\x20or\x20cross-analyze-latest'}],async 'validate'(_0x44ca07){requireCrossDbAnalysisPlan(_0x44ca07);},async 'execute'(_0x18c353){const _0x3457a8=a107_0x2e0aad,_0x7d732c=await getCrossDbAnalysisStatus(requireCrossDbAnalysisPlan(_0x18c353));return{'ok':!![],'data':{..._0x7d732c,'result':_0x7d732c[_0x3457a8(0xaf)]??null,'isTerminal':TERMINAL_STATUSES['has'](_0x7d732c[_0x3457a8(0xac)])},'message':_0x3457a8(0xa5)+_0x7d732c[_0x3457a8(0xa6)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x26b9c8=a108_0x1e05;(function(_0x1b4763,_0x4b4df0){const _0x5a400f=a108_0x1e05,_0x295000=_0x1b4763();while(!![]){try{const _0x1d4219=parseInt(_0x5a400f(0x187))/0x1*(parseInt(_0x5a400f(0x15f))/0x2)+-parseInt(_0x5a400f(0x164))/0x3+parseInt(_0x5a400f(0x17e))/0x4+parseInt(_0x5a400f(0x168))/0x5*(-parseInt(_0x5a400f(0x183))/0x6)+parseInt(_0x5a400f(0x184))/0x7+parseInt(_0x5a400f(0x175))/0x8*(parseInt(_0x5a400f(0x178))/0x9)+parseInt(_0x5a400f(0x16f))/0xa*(parseInt(_0x5a400f(0x15d))/0xb);if(_0x1d4219===_0x4b4df0)break;else _0x295000['push'](_0x295000['shift']());}catch(_0x91c607){_0x295000['push'](_0x295000['shift']());}}}(a108_0x2990,0xaa1b9));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a108_0x2990(){const _0x2b22c0=['datasetDependency','appCode','validation','988752EffEMX','Database\x20connection\x20','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','\x20still\x20has\x20','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','6ayuhok','1591996GnWRIj','Expected\x20','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','549TYSCzH','confirm','582967ecrooq','expected-dataset-count','2122quQusq','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','isInteger','activeDatasetCount','1552623JfYRpO','boolean','flag','Deleted\x20db\x20link\x20','5933220lfTwkm','delete','\x20active\x20DB_TABLE\x20Dataset(s).','number','/smartapi/dblink/delete','all','DB_TABLE','50QUvSRP','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','\x20active\x20Dataset(s),\x20but\x20found\x20','num','high-risk-write','POST','8ldFzop','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','bool','9709704TBDAaI','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.'];a108_0x2990=function(){return _0x2b22c0;};return a108_0x2990();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a108_0x26b9c8(0x188),'type':a108_0x26b9c8(0x165),'description':a108_0x26b9c8(0x170)},EXPECTED_DATASET_COUNT_FLAG={'name':'expected-dataset-count','type':a108_0x26b9c8(0x16b),'description':'Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value'};function a108_0x1e05(_0x3bfef5,_0x2eb502){_0x3bfef5=_0x3bfef5-0x15d;const _0x2990df=a108_0x2990();let _0x1e050f=_0x2990df[_0x3bfef5];return _0x1e050f;}export const dbDelete={'service':'db','command':a108_0x26b9c8(0x169),'description':a108_0x26b9c8(0x180),'risk':a108_0x26b9c8(0x173),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2e3a7b){const _0x50a100=a108_0x26b9c8,_0x2a4324=await loadDeleteImpact(_0x2e3a7b);return assertExpectedDatasetCount(_0x2e3a7b,_0x2a4324[_0x50a100(0x17b)]['activeDatasetCount']),{'method':_0x50a100(0x174),'url':_0x50a100(0x16c),'body':{'id':_0x2a4324['id']},'description':_0x2a4324['datasetDependency'][_0x50a100(0x163)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x2a4324[_0x50a100(0x17b)][_0x50a100(0x163)]+_0x50a100(0x16a):_0x50a100(0x186),..._0x2a4324};},async 'execute'(_0x4589a1){const _0x3eab45=a108_0x26b9c8;if(!_0x4589a1[_0x3eab45(0x177)](_0x3eab45(0x188)))throw CliErrors[_0x3eab45(0x17d)](_0x3eab45(0x176),_0x3eab45(0x179));const _0x2f5dd1=_0x4589a1['num']('id'),_0x2c1ce2=await loadDeleteImpact(_0x4589a1),_0xbdf22=_0x2c1ce2[_0x3eab45(0x17b)]['activeDatasetCount'];assertExpectedDatasetCount(_0x4589a1,_0xbdf22);if(_0xbdf22>0x0)throw CliErrors[_0x3eab45(0x17d)](_0x3eab45(0x17f)+_0x2f5dd1+_0x3eab45(0x181)+_0xbdf22+_0x3eab45(0x161),_0x3eab45(0x17a));return await deleteDbLink(_0x2f5dd1),{'ok':!![],'data':{'id':_0x2f5dd1,'deleted':!![],'activeDatasetCount':_0xbdf22},'message':_0x3eab45(0x167)+_0x2f5dd1};}};async function loadDeleteImpact(_0x5a70c8){const _0x1c044c=a108_0x26b9c8,_0x2303b4=_0x5a70c8['num']('id'),[_0x1db9ed,_0x48ef1e]=await Promise[_0x1c044c(0x16d)]([getDbLinkInfo(_0x2303b4),listDatasets(_0x5a70c8[_0x1c044c(0x17c)],{'source':_0x1c044c(0x16e)})]),_0xc57486=buildDbDatasetDependency(_0x1db9ed,_0x48ef1e);return{'id':_0x2303b4,'connection':sanitizeDbLinkForOutput(_0x1db9ed),'datasetDependency':_0xc57486[_0x1c044c(0x17b)],'activeDatasetCount':_0xc57486[_0x1c044c(0x17b)][_0x1c044c(0x163)],'datasets':_0xc57486['datasets']};}function assertExpectedDatasetCount(_0x1d160e,_0x51c0f7){const _0x100be8=a108_0x26b9c8,_0x52edca=_0x1d160e[_0x100be8(0x166)](_0x100be8(0x15e));if(_0x52edca===undefined||_0x52edca==='')return;const _0x2bdf0f=_0x1d160e[_0x100be8(0x172)](_0x100be8(0x15e));if(!Number[_0x100be8(0x162)](_0x2bdf0f)||_0x2bdf0f<0x0)throw CliErrors['validation'](_0x100be8(0x160));if(_0x2bdf0f!==_0x51c0f7)throw CliErrors[_0x100be8(0x17d)](_0x100be8(0x185)+_0x2bdf0f+_0x100be8(0x171)+_0x51c0f7+'.',_0x100be8(0x182));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a109_0x40a34a=a109_0x34c6;(function(_0x235908,_0x4d9eb7){const _0x5d5dec=a109_0x34c6,_0x12f472=_0x235908();while(!![]){try{const _0x39a98b=-parseInt(_0x5d5dec(0x1cd))/0x1*(-parseInt(_0x5d5dec(0x1c9))/0x2)+parseInt(_0x5d5dec(0x1c8))/0x3*(-parseInt(_0x5d5dec(0x1be))/0x4)+-parseInt(_0x5d5dec(0x1c0))/0x5*(parseInt(_0x5d5dec(0x1bf))/0x6)+parseInt(_0x5d5dec(0x1c4))/0x7+-parseInt(_0x5d5dec(0x1c3))/0x8+-parseInt(_0x5d5dec(0x1c7))/0x9+parseInt(_0x5d5dec(0x1cb))/0xa;if(_0x39a98b===_0x4d9eb7)break;else _0x12f472['push'](_0x12f472['shift']());}catch(_0x4d967b){_0x12f472['push'](_0x12f472['shift']());}}}(a109_0x253e,0x9e835));function a109_0x34c6(_0x4e2541,_0x37e7da){_0x4e2541=_0x4e2541-0x1be;const _0x253e19=a109_0x253e();let _0x34c6e3=_0x253e19[_0x4e2541];return _0x34c6e3;}function a109_0x253e(){const _0x3f8b79=['db\x20link\x20','dbName','4DknaHp','30OMqSXl','579385oWtJbH','read','datasetDependency','3164472pYoOlW','3160675gOTMHQ','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','appCode','11096757DNoSLd','2814120hcUuBA','15394bFZjrZ','detail','28818810NqMCbH','num','60kZZLQb'];a109_0x253e=function(){return _0x3f8b79;};return a109_0x253e();}import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a109_0x40a34a(0x1ca),'description':a109_0x40a34a(0x1c5),'risk':a109_0x40a34a(0x1c1),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5386ef){const _0x1ae6ae=a109_0x40a34a,_0x3d9d92=_0x5386ef[_0x1ae6ae(0x1cc)]('id'),_0x26d453=await getDbLinkInfo(_0x3d9d92),_0x216b05=await listDatasets(_0x26d453[_0x1ae6ae(0x1c6)]||_0x5386ef[_0x1ae6ae(0x1c6)],{'source':'DB_TABLE'}),_0x3949e8=buildDbDatasetDependency(_0x26d453,_0x216b05);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x26d453),'datasetDependency':_0x3949e8[_0x1ae6ae(0x1c2)]},'message':_0x1ae6ae(0x1ce)+_0x3d9d92+':\x20'+_0x26d453[_0x1ae6ae(0x1cf)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x3e3284=a110_0x30f2;(function(_0x350760,_0x25a8dd){const _0xf3273=a110_0x30f2,_0x5be888=_0x350760();while(!![]){try{const _0x540692=-parseInt(_0xf3273(0x116))/0x1*(-parseInt(_0xf3273(0x11b))/0x2)+parseInt(_0xf3273(0x114))/0x3*(-parseInt(_0xf3273(0x111))/0x4)+-parseInt(_0xf3273(0x110))/0x5+parseInt(_0xf3273(0x10d))/0x6+parseInt(_0xf3273(0x10e))/0x7+-parseInt(_0xf3273(0x10c))/0x8+parseInt(_0xf3273(0x11a))/0x9;if(_0x540692===_0x25a8dd)break;else _0x5be888['push'](_0x5be888['shift']());}catch(_0x2d1ade){_0x5be888['push'](_0x5be888['shift']());}}}(a110_0x4f7c,0x24bad));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a110_0x30f2(_0x409550,_0x2abdc3){_0x409550=_0x409550-0x10c;const _0x4f7c76=a110_0x4f7c();let _0x30f22c=_0x4f7c76[_0x409550];return _0x30f22c;}import{CliErrors}from'../../errors.js';function a110_0x4f7c(){const _0x51c38b=['diff-refresh-start','320635ntjixt','12vtKPGj','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','validation','245073NZnxpG','\x20--format\x20compress','54155ooAQwK','num','write','\x20db\x20diff-refresh-status\x20--id\x20','1849464UtRvmN','2jErEuE','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','438192TjvGug','1018812QpYfUS','594762yHIuDB'];a110_0x4f7c=function(){return _0x51c38b;};return a110_0x4f7c();}export const dbDiffRefreshStart={'service':'db','command':a110_0x3e3284(0x10f),'description':a110_0x3e3284(0x11c),'risk':a110_0x3e3284(0x118),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x30b21d){const _0x542997=a110_0x3e3284,_0x457570=_0x30b21d[_0x542997(0x117)]('id'),_0x1e4eed=await startDbTableDiffRefresh(_0x30b21d['appCode'],_0x457570),_0x184291=_0x1e4eed['traceId']?.['trim']();if(!_0x184291)throw CliErrors[_0x542997(0x113)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x457570,'traceId':_0x184291,'status':_0x1e4eed['status']??null,'query':{'command':CLI_BIN_NAME+_0x542997(0x119)+_0x457570+'\x20--plan\x20'+_0x184291+_0x542997(0x115)}},'message':_0x542997(0x112)+_0x457570};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x310330=a111_0x535e;(function(_0x23a2db,_0x5b6823){const _0x4014ea=a111_0x535e,_0x62393f=_0x23a2db();while(!![]){try{const _0x5e11ec=parseInt(_0x4014ea(0x135))/0x1+parseInt(_0x4014ea(0x131))/0x2*(parseInt(_0x4014ea(0x132))/0x3)+parseInt(_0x4014ea(0x126))/0x4+-parseInt(_0x4014ea(0x130))/0x5*(parseInt(_0x4014ea(0x125))/0x6)+-parseInt(_0x4014ea(0x12a))/0x7+-parseInt(_0x4014ea(0x127))/0x8+-parseInt(_0x4014ea(0x12e))/0x9*(-parseInt(_0x4014ea(0x129))/0xa);if(_0x5e11ec===_0x5b6823)break;else _0x62393f['push'](_0x62393f['shift']());}catch(_0x598855){_0x62393f['push'](_0x62393f['shift']());}}}(a111_0x4654,0x222d2));function a111_0x535e(_0x57b08f,_0x1cb59d){_0x57b08f=_0x57b08f-0x124;const _0x4654d5=a111_0x4654();let _0x535e41=_0x4654d5[_0x57b08f];return _0x535e41;}import{getDbAnalysisStatus}from'../../core/api-client.js';function a111_0x4654(){const _0x41e425=['RETRYING','\x20--format\x20compress','num','CANCELLED','UNKNOWN','835602pZNYQU','327024hdHHTc','1960456MkgXvD','string','5225960YGvOdD','1950872mtlyPt','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','PENDING','SUCCESS','9gSqgvE','diff-refresh-status','5rmpvUo','4QOkcRn','204231sByFzI','plan','str','62500IDgVkd','\x20db\x20diff-refresh-status\x20--id\x20','has'];a111_0x4654=function(){return _0x41e425;};return a111_0x4654();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a111_0x310330(0x12d),'FAILED',a111_0x310330(0x13b)]),RUNNING_STATUSES=new Set([a111_0x310330(0x12c),'RUNNING',a111_0x310330(0x138)]);export const dbDiffRefreshStatus={'service':'db','command':a111_0x310330(0x12f),'description':a111_0x310330(0x12b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x310330(0x133),'type':a111_0x310330(0x128),'required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x18364e){const _0x129d2c=a111_0x310330,_0x2f457a=_0x18364e[_0x129d2c(0x13a)]('id'),_0x537e68=_0x18364e[_0x129d2c(0x134)](_0x129d2c(0x133)),_0x4d878e=await getDbAnalysisStatus(_0x537e68),_0x5f1b87=_0x4d878e['status']??null,_0x5cc356=TERMINAL_STATUSES['has'](_0x5f1b87??''),_0x341dbe=_0x5f1b87===_0x129d2c(0x12d),_0x38a626=_0x5cc356||RUNNING_STATUSES[_0x129d2c(0x137)](_0x5f1b87??'');return{'ok':!![],'data':{'dbLinkId':_0x2f457a,'planId':_0x537e68,'status':_0x4d878e,'knownStatus':_0x38a626,'isTerminal':_0x5cc356,'isSuccessful':_0x341dbe,'query':_0x38a626&&!_0x5cc356?{'command':CLI_BIN_NAME+_0x129d2c(0x136)+_0x2f457a+'\x20--plan\x20'+_0x537e68+_0x129d2c(0x139)}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x537e68+':\x20'+(_0x5f1b87??_0x129d2c(0x124))};}};
|