@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2
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/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-file.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/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.d.ts +7 -0
- package/lib/commands/bff/logs.js +1 -0
- 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.d.ts +21 -0
- package/lib/commands/dataset/batch-design.js +1 -0
- 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/delete.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/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.d.ts +2 -0
- package/lib/commands/flow/create.js +1 -0
- package/lib/commands/flow/detail.d.ts +2 -0
- package/lib/commands/flow/detail.js +1 -0
- package/lib/commands/flow/index.d.ts +3 -0
- package/lib/commands/flow/index.js +1 -0
- package/lib/commands/flow/list.d.ts +2 -0
- package/lib/commands/flow/list.js +1 -0
- package/lib/commands/flow/publish.d.ts +2 -0
- package/lib/commands/flow/publish.js +1 -0
- package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
- package/lib/commands/flow/runtime-resources-shared.js +1 -0
- package/lib/commands/flow/runtime-role-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-list.js +1 -0
- package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-user-list.js +1 -0
- package/lib/commands/flow/runtime-user-search.d.ts +2 -0
- package/lib/commands/flow/runtime-user-search.js +1 -0
- package/lib/commands/flow/shared.d.ts +41 -0
- package/lib/commands/flow/shared.js +1 -0
- package/lib/commands/flow/update.d.ts +2 -0
- package/lib/commands/flow/update.js +1 -0
- package/lib/commands/flow/validate.d.ts +3 -0
- package/lib/commands/flow/validate.js +1 -0
- 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/service.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/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/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/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.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- 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.d.ts +6 -0
- 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.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +172 -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.d.ts +55 -0
- package/lib/core/bff/hook-directory.js +1 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +15 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +628 -0
- package/lib/core/flow-config.js +1 -0
- package/lib/core/instant-api-policy/config.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.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- 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/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/types/index.d.ts +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.d.ts +2 -8
- 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.d.ts +2 -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 +27 -8
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
- package/skills/rabetbase/guides/backend-function.md +19 -9
- package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
- package/skills/rabetbase/guides/conflict-detection.md +2 -0
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
- package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
- package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +9 -3
- package/templates/generate-api/client.ts.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a80_0x8bf40b=a80_0x219e;function a80_0xcd38(){const _0x4bbb4a=['18748qUIKGs','modelCode','trim','dataset','4895758PSIyLM','user','5913RFiGrl','str','modelId','1462260CntEbg','name','--code\x20is\x20required','Dataset\x20code:\x20','sort','975692wAGNnA','375aEEYSD','11309200IIGRPB','Invalid\x20user-deleted\x20Dataset\x20field\x20response.','datasetCode','2kczcdP','appCode','apiError','24470eCHvan','length','List\x20Dataset\x20fields\x20explicitly\x20deleted\x20by\x20a\x20user','\x20user-deleted\x20field(s)','543560UKnXHy','code','isInteger','isArray','string','Found\x20','user-deleted-field-list'];a80_0xcd38=function(){return _0x4bbb4a;};return a80_0xcd38();}(function(_0x5033b4,_0x29c0af){const _0x268ecb=a80_0x219e,_0x5cd7b2=_0x5033b4();while(!![]){try{const _0x1b9cb9=-parseInt(_0x268ecb(0x1e8))/0x1*(parseInt(_0x268ecb(0x1ed))/0x2)+-parseInt(_0x268ecb(0x1e9))/0x3*(-parseInt(_0x268ecb(0x1fb))/0x4)+parseInt(_0x268ecb(0x1f4))/0x5+parseInt(_0x268ecb(0x204))/0x6+parseInt(_0x268ecb(0x1ff))/0x7+-parseInt(_0x268ecb(0x1ea))/0x8+parseInt(_0x268ecb(0x201))/0x9*(parseInt(_0x268ecb(0x1f0))/0xa);if(_0x1b9cb9===_0x29c0af)break;else _0x5cd7b2['push'](_0x5cd7b2['shift']());}catch(_0x47ef2f){_0x5cd7b2['push'](_0x5cd7b2['shift']());}}}(a80_0xcd38,0xd0fdc));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:_0x169c89,code:_0x7174d3}){const _0x2b9fde=a80_0x219e,_0x20a836=_0x7174d3[_0x2b9fde(0x1fd)]();if(!_0x20a836)throw CliErrors['validation'](_0x2b9fde(0x206));const _0x508b78=await getDatasetDetail(_0x20a836),_0x561929=resolveDataset(_0x508b78,_0x20a836),_0x29725a=await listUserDeletedDatasetColumns(_0x561929['id']),_0x341ad2=_0x29725a['map'](normalizeUserDeletedField)[_0x2b9fde(0x208)]((_0x35f808,_0x4d6e89)=>{const _0x539dc7=_0x2b9fde;if(_0x35f808[_0x539dc7(0x1f5)]<_0x4d6e89[_0x539dc7(0x1f5)])return-0x1;if(_0x35f808['code']>_0x4d6e89[_0x539dc7(0x1f5)])return 0x1;return _0x35f808['id']-_0x4d6e89['id'];});return{'ok':!![],'data':{'operation':_0x2b9fde(0x1fa),'appCode':_0x169c89,'selector':{'code':_0x20a836},'dataset':_0x561929,'count':_0x341ad2[_0x2b9fde(0x1f1)],'fields':_0x341ad2},'message':_0x2b9fde(0x1f9)+_0x341ad2[_0x2b9fde(0x1f1)]+_0x2b9fde(0x1f3)};}export const datasetUserDeletedFieldList={'service':a80_0x8bf40b(0x1fe),'command':a80_0x8bf40b(0x1fa),'description':a80_0x8bf40b(0x1f2),'risk':'read','structuredErrors':!![],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xa56479){const _0x5ce2fb=a80_0x8bf40b;return buildUserDeletedFieldListResult({'appCode':_0xa56479[_0x5ce2fb(0x1ee)],'code':_0xa56479[_0x5ce2fb(0x202)]('code')});}};function a80_0x219e(_0xdeaebf,_0x4d4cc1){_0xdeaebf=_0xdeaebf-0x1e8;const _0xcd3870=a80_0xcd38();let _0x219e99=_0xcd3870[_0xdeaebf];return _0x219e99;}export function resolveDataset(_0x1a3534,_0x1516e0){const _0x46f337=a80_0x8bf40b,_0x2ce412=isRecord(_0x1a3534[_0x46f337(0x1fe)])?_0x1a3534[_0x46f337(0x1fe)]:{},_0x4588ed=Number(_0x1a3534[_0x46f337(0x203)]??_0x1a3534['id']??_0x2ce412['datasetId']);if(!Number['isInteger'](_0x4588ed)||_0x4588ed<=0x0)throw CliErrors['apiError']('Dataset\x20detail\x20did\x20not\x20contain\x20a\x20valid\x20dataset\x20id.',_0x46f337(0x207)+_0x1516e0);return{'id':_0x4588ed,'code':String(_0x1a3534[_0x46f337(0x1fc)]??_0x1a3534[_0x46f337(0x1f5)]??_0x2ce412[_0x46f337(0x1ec)]??_0x1516e0),'name':nullableString(_0x1a3534[_0x46f337(0x205)]??_0x2ce412['datasetName'])};}export function normalizeUserDeletedField(_0x1685be){const _0x461ed8=a80_0x8bf40b,_0x5199d2=Number(_0x1685be['id']),_0x34e931=typeof _0x1685be[_0x461ed8(0x1f5)]===_0x461ed8(0x1f8)?_0x1685be[_0x461ed8(0x1f5)][_0x461ed8(0x1fd)]():'';if(!Number[_0x461ed8(0x1f6)](_0x5199d2)||_0x5199d2<=0x0||!_0x34e931)throw CliErrors[_0x461ed8(0x1ef)](_0x461ed8(0x1eb),'Expected\x20every\x20field\x20to\x20contain\x20a\x20positive\x20id\x20and\x20non-empty\x20code.');return{'id':_0x5199d2,'code':_0x34e931,'displayName':typeof _0x1685be['name']===_0x461ed8(0x1f8)&&_0x1685be[_0x461ed8(0x205)]['trim']()?_0x1685be[_0x461ed8(0x205)]:_0x34e931,'deleted':!![],'deletionSource':_0x461ed8(0x200)};}function nullableString(_0x3eb618){const _0x53fc17=a80_0x8bf40b;return typeof _0x3eb618===_0x53fc17(0x1f8)&&_0x3eb618?_0x3eb618:null;}function isRecord(_0x38564d){const _0x25b6da=a80_0x8bf40b;return Boolean(_0x38564d)&&typeof _0x38564d==='object'&&!Array[_0x25b6da(0x1f7)](_0x38564d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a81_0x1fd9(_0x23ac49,_0x545de1){_0x23ac49=_0x23ac49-0xec;const _0x150bea=a81_0x150b();let _0x1fd922=_0x150bea[_0x23ac49];return _0x1fd922;}(function(_0x2f2617,_0x2fa666){const _0x1fb1f7=a81_0x1fd9,_0x29d6f7=_0x2f2617();while(!![]){try{const _0x62a08=-parseInt(_0x1fb1f7(0xfb))/0x1+parseInt(_0x1fb1f7(0xf0))/0x2*(-parseInt(_0x1fb1f7(0xf2))/0x3)+-parseInt(_0x1fb1f7(0xf7))/0x4+parseInt(_0x1fb1f7(0xef))/0x5*(-parseInt(_0x1fb1f7(0xfd))/0x6)+-parseInt(_0x1fb1f7(0xf6))/0x7*(parseInt(_0x1fb1f7(0xfc))/0x8)+-parseInt(_0x1fb1f7(0xee))/0x9+parseInt(_0x1fb1f7(0xf1))/0xa;if(_0x62a08===_0x2fa666)break;else _0x29d6f7['push'](_0x29d6f7['shift']());}catch(_0x8b35df){_0x29d6f7['push'](_0x29d6f7['shift']());}}}(a81_0x150b,0xeb030));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(_0x3d3d05){const _0x16dc58=a81_0x1fd9,_0x383325=new Set(),_0x195562=[];for(const _0x6ef0b6 of _0x3d3d05['split'](',')){const _0x3eda6d=_0x6ef0b6[_0x16dc58(0xec)]();if(!_0x3eda6d||_0x383325['has'](_0x3eda6d))continue;_0x383325[_0x16dc58(0xff)](_0x3eda6d),_0x195562[_0x16dc58(0xed)](_0x3eda6d);}return _0x195562;}export function measureAnalysisInputParamsBytes(_0x219f05,_0x430804){const _0x504a0e=a81_0x1fd9;return Buffer['byteLength'](JSON[_0x504a0e(0xf8)]({'dbLinkId':_0x219f05,'tableNames':_0x430804}),_0x504a0e(0xf9));}function a81_0x150b(){const _0x4dac77=['36OuVFrd','map','add','trim','push','7718868mPqJJw','183515nJPZSA','4542KWiNFp','75586840Hvyetc','1491OPeDnA','\x20bytes.','length','heuristic','543333dkzNPU','4688596SIUrJf','stringify','utf8','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','1587371jSaQLI','168LznmsR'];a81_0x150b=function(){return _0x4dac77;};return a81_0x150b();}export function buildAnalysisBatchPlan(_0x570caa,_0x13953e){const _0x290df3=a81_0x1fd9;if(_0x13953e[_0x290df3(0xf4)]===0x0)throw CliErrors['validation'](_0x290df3(0xfa));const _0x5b78da=[];let _0x1f7b90=[];for(const _0x246267 of _0x13953e){const _0x56d0f2=[..._0x1f7b90,_0x246267],_0x12a2e4=_0x56d0f2[_0x290df3(0xf4)]>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x570caa,_0x56d0f2)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x12a2e4&&_0x1f7b90[_0x290df3(0xf4)]>0x0?(_0x5b78da['push'](_0x1f7b90),_0x1f7b90=[_0x246267]):_0x1f7b90=_0x56d0f2;const _0x3a903e=measureAnalysisInputParamsBytes(_0x570caa,_0x1f7b90);if(_0x3a903e>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors['validation']('Table\x20\x22'+_0x246267+'\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20'+_0x3a903e+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x290df3(0xf3));}_0x1f7b90[_0x290df3(0xf4)]>0x0&&_0x5b78da[_0x290df3(0xed)](_0x1f7b90);const _0x237956=_0x5b78da[_0x290df3(0xfe)]((_0x3f66b8,_0x4bd42d)=>({'index':_0x4bd42d+0x1,'tableCount':_0x3f66b8['length'],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x570caa,_0x3f66b8),'estimatedDurationSeconds':_0x3f66b8[_0x290df3(0xf4)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x3f66b8})),_0x3387ad=_0x13953e[_0x290df3(0xf4)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x570caa,'tableCount':_0x13953e[_0x290df3(0xf4)],'batchCount':_0x237956[_0x290df3(0xf4)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':_0x290df3(0xf5),'assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0x3387ad,'estimatedTotalMinutes':Math['ceil'](_0x3387ad/0x3c)},'batches':_0x237956};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x101856=a82_0x1be6;(function(_0xade1e1,_0x19ecab){const _0x58540b=a82_0x1be6,_0x8fdea5=_0xade1e1();while(!![]){try{const _0x238707=parseInt(_0x58540b(0x87))/0x1+parseInt(_0x58540b(0x83))/0x2+-parseInt(_0x58540b(0x7f))/0x3*(parseInt(_0x58540b(0x86))/0x4)+parseInt(_0x58540b(0x85))/0x5+parseInt(_0x58540b(0x7d))/0x6*(-parseInt(_0x58540b(0x8f))/0x7)+parseInt(_0x58540b(0x91))/0x8*(parseInt(_0x58540b(0x82))/0x9)+-parseInt(_0x58540b(0x81))/0xa*(parseInt(_0x58540b(0x7b))/0xb);if(_0x238707===_0x19ecab)break;else _0x8fdea5['push'](_0x8fdea5['shift']());}catch(_0x445795){_0x8fdea5['push'](_0x8fdea5['shift']());}}}(a82_0x19ce,0x3aaf0));import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';function a82_0x19ce(){const _0x1a7ad6=['Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','tableCount','num','tables','\x20minute(s)\x20at\x20','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','read','7UJDYPn',';\x20estimated\x20about\x20','20968wQngos','planningEstimate','878515ZpBaNM','str','633054NiKzcx','assumedSecondsPerTable','39891hhIvrr','batchCount','40FvKVoG','558jlmzis','826016epMZFO','analyze-batch-plan','1473675SXGqCL','132dtBehk','233893Uknvmo'];a82_0x19ce=function(){return _0x1a7ad6;};return a82_0x19ce();}function a82_0x1be6(_0x47793d,_0x246e98){_0x47793d=_0x47793d-0x7b;const _0x19ce72=a82_0x19ce();let _0x1be6b8=_0x19ce72[_0x47793d];return _0x1be6b8;}export const dbAnalyzeBatchPlan={'service':'db','command':a82_0x101856(0x84),'description':'Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','risk':a82_0x101856(0x8e),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a82_0x101856(0x8b),'type':'string','required':!![],'description':a82_0x101856(0x88)}],async 'execute'(_0x1202db){const _0x105e85=a82_0x101856,_0x215b72=_0x1202db[_0x105e85(0x8a)]('id'),_0x3baec6=normalizeAnalysisTableNames(_0x1202db[_0x105e85(0x7c)](_0x105e85(0x8b))),_0x3034a4=buildAnalysisBatchPlan(_0x215b72,_0x3baec6);return{'ok':!![],'data':_0x3034a4,'message':'Prepared\x20local\x20batch\x20plan\x20for\x20'+_0x3034a4[_0x105e85(0x89)]+'\x20table(s)\x20in\x20'+_0x3034a4[_0x105e85(0x80)]+'\x20serial\x20batch(es)\x20for\x20db\x20link\x20'+_0x215b72+_0x105e85(0x90)+_0x3034a4[_0x105e85(0x92)]['estimatedTotalMinutes']+_0x105e85(0x8c)+_0x3034a4[_0x105e85(0x92)][_0x105e85(0x7e)]+_0x105e85(0x8d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0xc3e6fb=a83_0x363e;function a83_0x363e(_0x2d13dd,_0x3a9368){_0x2d13dd=_0x2d13dd-0xa0;const _0x356ee3=a83_0x356e();let _0x363e2c=_0x356ee3[_0x2d13dd];return _0x363e2c;}(function(_0x372149,_0x592af9){const _0x38f322=a83_0x363e,_0x2ed7db=_0x372149();while(!![]){try{const _0x1e3b14=-parseInt(_0x38f322(0xad))/0x1+-parseInt(_0x38f322(0xa8))/0x2+parseInt(_0x38f322(0xa5))/0x3*(-parseInt(_0x38f322(0xab))/0x4)+parseInt(_0x38f322(0xa9))/0x5+parseInt(_0x38f322(0xa0))/0x6+parseInt(_0x38f322(0xa1))/0x7*(-parseInt(_0x38f322(0xa4))/0x8)+parseInt(_0x38f322(0xaf))/0x9;if(_0x1e3b14===_0x592af9)break;else _0x2ed7db['push'](_0x2ed7db['shift']());}catch(_0xc73374){_0x2ed7db['push'](_0x2ed7db['shift']());}}}(a83_0x356e,0x7e3bb));function a83_0x356e(){const _0x2eb558=['3645006YFYQMT','103684pKsMqy','string','analyze-cancel','96zlZEDT','81lvjqJV','Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel','str','118216ytdlfu','1574860nPoQOB','write','144380OhRmKr','num','897742zBeqHI','plan','15333633sXfaRr','Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id'];a83_0x356e=function(){return _0x2eb558;};return a83_0x356e();}import{cancelDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a83_0xc3e6fb(0xa3),'description':a83_0xc3e6fb(0xb0),'risk':a83_0xc3e6fb(0xaa),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a83_0xc3e6fb(0xae),'type':a83_0xc3e6fb(0xa2),'required':!![],'description':a83_0xc3e6fb(0xa6)}],async 'execute'(_0x25e164){const _0x5f707c=a83_0xc3e6fb,_0x1abbc2=_0x25e164[_0x5f707c(0xac)]('id'),_0x1d60a8=_0x25e164[_0x5f707c(0xa7)](_0x5f707c(0xae));return await cancelDbAnalysis(_0x1d60a8),{'ok':!![],'data':{'dbLinkId':_0x1abbc2,'planId':_0x1d60a8},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x1d60a8};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x51d31c=a84_0x1e9b;(function(_0x3a947b,_0x4b9c0d){const _0x304d86=a84_0x1e9b,_0x37d9d7=_0x3a947b();while(!![]){try{const _0x2fbca6=parseInt(_0x304d86(0xff))/0x1*(-parseInt(_0x304d86(0xf4))/0x2)+-parseInt(_0x304d86(0xfe))/0x3*(-parseInt(_0x304d86(0xfb))/0x4)+parseInt(_0x304d86(0xfa))/0x5+parseInt(_0x304d86(0xec))/0x6+-parseInt(_0x304d86(0xe5))/0x7*(parseInt(_0x304d86(0xe9))/0x8)+parseInt(_0x304d86(0xe6))/0x9+-parseInt(_0x304d86(0xf1))/0xa*(parseInt(_0x304d86(0xef))/0xb);if(_0x2fbca6===_0x4b9c0d)break;else _0x37d9d7['push'](_0x37d9d7['shift']());}catch(_0x57c1cc){_0x37d9d7['push'](_0x37d9d7['shift']());}}}(a84_0x1cdc,0x67f33));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';function a84_0x1e9b(_0x1fbcb4,_0x444b40){_0x1fbcb4=_0x1fbcb4-0xe5;const _0x1cdc9d=a84_0x1cdc();let _0x1e9b8c=_0x1cdc9d[_0x1fbcb4];return _0x1e9b8c;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a84_0x1cdc(){const _0x53208c=['validation','25752GCpNIR','tables','\x20db\x20analyze-batch-plan\x20--id\x20','3506640KVErXs','str','\x20bytes.\x20Run\x20`','231SfAOUf','appCode','635350hEiwsP','Started\x20analysis\x20for\x20db\x20link\x20','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','73596oJqexj','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','length','string','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','write','4252670QuyoxB','4SCyPhA','\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.','flag','2448582VkOPHL','13IUDtCM','\x20table(s),\x20','917pScJWW','3680181epjgEi','\x20bytes,\x20limit\x20'];a84_0x1cdc=function(){return _0x53208c;};return a84_0x1cdc();}import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a84_0x51d31c(0xf8),'risk':a84_0x51d31c(0xf9),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a84_0x51d31c(0xea),'type':a84_0x51d31c(0xf7),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x4b5916){const _0x3b38e2=a84_0x51d31c,_0x4825d5=_0x4b5916['num']('id'),_0x330e09=_0x4b5916[_0x3b38e2(0xed)](_0x3b38e2(0xea)),_0x20ff5d=_0x4b5916[_0x3b38e2(0xfd)](_0x3b38e2(0xea))!==undefined,_0x2b736e=_0x20ff5d?normalizeAnalysisTableNames(_0x330e09):undefined;if(_0x2b736e&&_0x2b736e['length']===0x0)throw CliErrors[_0x3b38e2(0xe8)](_0x3b38e2(0xf5));if(_0x2b736e&&_0x2b736e[_0x3b38e2(0xf6)]>0x0){const _0x1fef4d=measureAnalysisInputParamsBytes(_0x4825d5,_0x2b736e);if(_0x1fef4d>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors[_0x3b38e2(0xe8)](_0x3b38e2(0xf3)+_0x2b736e[_0x3b38e2(0xf6)]+_0x3b38e2(0x100)+_0x1fef4d+_0x3b38e2(0xe7)+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+_0x3b38e2(0xee)+CLI_BIN_NAME+_0x3b38e2(0xeb)+_0x4825d5+_0x3b38e2(0xfc));}const {planId:_0x4c549d,estimatedMinutes:_0x1b2b58,estimatedDurationDesc:_0x460a1b}=await startDbAnalysis(_0x4825d5,_0x2b736e),_0x2bfd99=buildDbPageLinks(_0x4b5916[_0x3b38e2(0xf0)],_0x4825d5);return{'ok':!![],'data':{'dbLinkId':_0x4825d5,'planId':_0x4c549d,'tableNames':_0x2b736e??[],'serverEstimate':{'estimatedMinutes':_0x1b2b58,'estimatedDurationDesc':_0x460a1b},..._0x2bfd99?{'links':_0x2bfd99}:{}},'message':_0x3b38e2(0xf2)+_0x4825d5};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x527bf1=a85_0x4099;(function(_0x22c79d,_0x293faf){const _0x1d1f14=a85_0x4099,_0x35329f=_0x22c79d();while(!![]){try{const _0x7350f6=parseInt(_0x1d1f14(0xa8))/0x1+-parseInt(_0x1d1f14(0xa4))/0x2*(parseInt(_0x1d1f14(0xa2))/0x3)+-parseInt(_0x1d1f14(0xbd))/0x4*(-parseInt(_0x1d1f14(0xca))/0x5)+-parseInt(_0x1d1f14(0xbe))/0x6+parseInt(_0x1d1f14(0xcb))/0x7*(parseInt(_0x1d1f14(0xa1))/0x8)+-parseInt(_0x1d1f14(0x9f))/0x9*(parseInt(_0x1d1f14(0xc0))/0xa)+-parseInt(_0x1d1f14(0xa3))/0xb;if(_0x7350f6===_0x293faf)break;else _0x35329f['push'](_0x35329f['shift']());}catch(_0x221b04){_0x35329f['push'](_0x35329f['shift']());}}}(a85_0x5079,0x2e6bd));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([a85_0x527bf1(0xbb),a85_0x527bf1(0xb9),a85_0x527bf1(0xac),a85_0x527bf1(0xa9)]);export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a85_0x527bf1(0xb1),'risk':a85_0x527bf1(0xa7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a85_0x527bf1(0xbc),'type':a85_0x527bf1(0xc4),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x162413){const _0x187d92=a85_0x527bf1,_0x50ed6e=_0x162413[_0x187d92(0xb7)]('id'),_0x3e6595=_0x162413[_0x187d92(0xb3)](_0x187d92(0xbc)),_0xd64de4=await getDbAnalysisStatus(_0x3e6595),_0x8edf2a=TERMINAL_STATUSES[_0x187d92(0xae)](_0xd64de4[_0x187d92(0xcc)]??''),{parsedJobContext:_0x3a9335,jobContextParseWarning:_0x202f8b}=parseJobContext(_0xd64de4['jobContext']),{requestedAnalysis:_0x386858,requestedAnalysisParseWarning:_0x993920}=parseRequestedAnalysis(_0xd64de4[_0x187d92(0xba)]),_0x3d21c9=readAccumulatedErrorTypeCounts(_0x3a9335),_0x21427a=calculateAttemptElapsedMs(_0xd64de4,_0x8edf2a),_0xaf264b=calculateElapsedFromStart(_0xd64de4[_0x187d92(0xab)],_0xd64de4[_0x187d92(0xa6)],_0x8edf2a),_0x5eae0f=detectMultipleAttempts(_0xd64de4),_0x28e0fd=buildDbPageLinks(_0x162413['appCode'],_0x50ed6e);return{'ok':!![],'data':{'dbLinkId':_0x50ed6e,'planId':_0x3e6595,'status':_0xd64de4,'requestedAnalysis':_0x386858,'requestedAnalysisParseWarning':_0x993920,'parsedJobContext':_0x3a9335,'accumulatedErrorTypeCounts':_0x3d21c9,'accumulatedErrorTypeCountsAdvisory':_0x3d21c9?_0x187d92(0xa0):_0x187d92(0xc1),'isTerminal':_0x8edf2a,'isRetrying':_0xd64de4[_0x187d92(0xcc)]===_0x187d92(0xa5),'attemptElapsedMs':_0x21427a,'totalElapsedMs':_0xaf264b,'hasMultipleAttempts':_0x5eae0f,'jobContextParseWarning':_0x202f8b,..._0x28e0fd?{'links':_0x28e0fd}:{}},'message':_0x187d92(0xaf)+_0x3e6595};}};function parseRequestedAnalysis(_0x2eaa2e){const _0x4e9fa5=a85_0x527bf1,_0x3b1195={'mode':_0x4e9fa5(0xc8),'tableCount':null,'tableNames':null};if(!_0x2eaa2e?.[_0x4e9fa5(0xaa)]())return{'requestedAnalysis':_0x3b1195,'requestedAnalysisParseWarning':_0x4e9fa5(0xb5)};try{const _0x281880=JSON[_0x4e9fa5(0x9d)](_0x2eaa2e);if(!_0x281880||typeof _0x281880!==_0x4e9fa5(0xb0)||Array[_0x4e9fa5(0xc9)](_0x281880))throw new Error(_0x4e9fa5(0xb8));const _0x4f00d3=_0x281880[_0x4e9fa5(0xc2)];if(_0x4f00d3===undefined||_0x4f00d3===null)return{'requestedAnalysis':{'mode':_0x4e9fa5(0xc5),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x4e9fa5(0xc9)](_0x4f00d3)&&_0x4f00d3[_0x4e9fa5(0xb2)](_0x1be110=>typeof _0x1be110===_0x4e9fa5(0xc4)))return{'requestedAnalysis':{'mode':_0x4f00d3[_0x4e9fa5(0xb6)]>0x0?_0x4e9fa5(0xad):_0x4e9fa5(0xc5),'tableCount':_0x4f00d3[_0x4e9fa5(0xb6)],'tableNames':_0x4f00d3},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x3b1195,'requestedAnalysisParseWarning':_0x4e9fa5(0xc7)};}function readAccumulatedErrorTypeCounts(_0x3a16d7){const _0x26a8fa=a85_0x527bf1,_0xd3516f=_0x3a16d7?.[_0x26a8fa(0xc6)];if(!_0xd3516f||typeof _0xd3516f!==_0x26a8fa(0xb0)||Array[_0x26a8fa(0xc9)](_0xd3516f))return null;if(Object['keys'](_0xd3516f)['length']===0x0)return null;return _0xd3516f;}function a85_0x4099(_0x23cff5,_0x4b7c4d){_0x23cff5=_0x23cff5-0x9d;const _0x5079cf=a85_0x5079();let _0x4099c8=_0x5079cf[_0x23cff5];return _0x4099c8;}function parseJobContext(_0x17eb77){const _0x470472=a85_0x527bf1;if(!_0x17eb77?.[_0x470472(0xaa)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0xc6c70=JSON[_0x470472(0x9d)](_0x17eb77);if(_0xc6c70&&typeof _0xc6c70===_0x470472(0xb0)&&!Array[_0x470472(0xc9)](_0xc6c70))return{'parsedJobContext':_0xc6c70,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':'jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.'};}function calculateAttemptElapsedMs(_0x214850,_0x4cba5d){const _0x4a91fc=a85_0x527bf1;if(typeof _0x214850[_0x4a91fc(0xcd)]==='number'&&Number[_0x4a91fc(0xc3)](_0x214850[_0x4a91fc(0xcd)])&&_0x214850[_0x4a91fc(0xcd)]>=0x0)return _0x214850[_0x4a91fc(0xcd)];return calculateElapsedFromStart(_0x214850['startTime'],_0x214850[_0x4a91fc(0xa6)],_0x4cba5d);}function a85_0x5079(){const _0x2fcfd8=['inputParams\x20is\x20not\x20an\x20object','PARTIAL_SUCCESS','inputParams','SUCCESS','plan','624NMSOhg','390102OSdLOW','isNaN','297420ABrnuk','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','tableNames','isFinite','string','FULL','accumulatedErrorTypeCounts','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','UNKNOWN','isArray','9520eJEVrI','2617160zqMUai','status','costTimeMs','parse','now','9peALRD','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','8ybrJjD','14466cGXjwV','4147066elkLbe','134puRzsn','RETRYING','endTime','read','314076PlPrhN','CANCELLED','trim','firstStartTime','FAILED','TARGETED','has','Analysis\x20status\x20for\x20','object','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','every','str','startTime','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','length','num'];a85_0x5079=function(){return _0x2fcfd8;};return a85_0x5079();}function calculateElapsedFromStart(_0x28f856,_0x415e01,_0x582c9d){const _0x25ef19=a85_0x527bf1,_0x1bcf21=toTimestamp(_0x28f856);if(_0x1bcf21===null)return null;const _0xf53ed6=toTimestamp(_0x415e01),_0x4eaf2d=_0xf53ed6??(_0x582c9d?null:Date[_0x25ef19(0x9e)]());if(_0x4eaf2d===null||_0x4eaf2d<_0x1bcf21)return null;return _0x4eaf2d-_0x1bcf21;}function detectMultipleAttempts(_0x478b96){const _0xb71bb2=a85_0x527bf1,_0x2d526a=toTimestamp(_0x478b96[_0xb71bb2(0xab)]),_0x462448=toTimestamp(_0x478b96[_0xb71bb2(0xb4)]);return _0x2d526a!==null&&_0x462448!==null&&_0x2d526a!==_0x462448;}function toTimestamp(_0x2d4fc4){const _0x36aa1a=a85_0x527bf1;if(typeof _0x2d4fc4==='number')return Number[_0x36aa1a(0xc3)](_0x2d4fc4)?_0x2d4fc4:null;if(typeof _0x2d4fc4!==_0x36aa1a(0xc4)||_0x2d4fc4['trim']()==='')return null;const _0x54ec8a=Number(_0x2d4fc4);if(Number[_0x36aa1a(0xc3)](_0x54ec8a))return _0x54ec8a;const _0x49f28d=Date[_0x36aa1a(0x9d)](_0x2d4fc4);return Number[_0x36aa1a(0xbf)](_0x49f28d)?null:_0x49f28d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a86_0xf928(_0x5cb2b8,_0x7b6dfb){_0x5cb2b8=_0x5cb2b8-0xd1;const _0x3f4676=a86_0x3f46();let _0xf92816=_0x3f4676[_0x5cb2b8];return _0xf92816;}const a86_0x18819f=a86_0xf928;(function(_0x113b68,_0x178e54){const _0x5b4b6b=a86_0xf928,_0x22e15b=_0x113b68();while(!![]){try{const _0x2cb3f8=parseInt(_0x5b4b6b(0xd9))/0x1*(parseInt(_0x5b4b6b(0xda))/0x2)+-parseInt(_0x5b4b6b(0xef))/0x3*(-parseInt(_0x5b4b6b(0xe2))/0x4)+-parseInt(_0x5b4b6b(0xe1))/0x5+parseInt(_0x5b4b6b(0xd3))/0x6+parseInt(_0x5b4b6b(0xdd))/0x7+parseInt(_0x5b4b6b(0xe4))/0x8+-parseInt(_0x5b4b6b(0xd6))/0x9*(parseInt(_0x5b4b6b(0xee))/0xa);if(_0x2cb3f8===_0x178e54)break;else _0x22e15b['push'](_0x22e15b['shift']());}catch(_0x590f61){_0x22e15b['push'](_0x22e15b['shift']());}}}(a86_0x3f46,0x7a03e));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a86_0x3f46(){const _0x5d5dc9=['boolean','3539864icjYKV','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbtype','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Database\x20password','dbparam','username','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','dbversion','103510TKNSSZ','99jZDGyh','databasePage','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','create','autostart','Database\x20username','/smartapi/dblink/create','string','Create\x20dblink','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','planId','trim','Created\x20db\x20link\x20','skip-connection-test','password','8.0','Extra\x20JDBC-style\x20connection\x20parameters\x20string','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','appCode','5549328XGuuvp','dbdesc',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','1989mMIIbv','write','join','41taljwY','33064YrctRu','No\x20follow-up\x20analysis','str','3945970NuKASy','dbname','dburl','bool','134535UuZfFH','24892CkYhso'];a86_0x3f46=function(){return _0x5d5dc9;};return a86_0x3f46();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a86_0x18819f(0xf2),'description':a86_0x18819f(0xf8),'risk':a86_0x18819f(0xd7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a86_0x18819f(0xde),'type':'string','required':!![],'description':a86_0x18819f(0xe7)},DB_TYPE_FLAG,{'name':a86_0x18819f(0xed),'type':'string','description':a86_0x18819f(0xf1),'default':a86_0x18819f(0xfe)},{'name':a86_0x18819f(0xdf),'type':a86_0x18819f(0xf6),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a86_0x18819f(0xeb),'type':a86_0x18819f(0xf6),'required':!![],'description':a86_0x18819f(0xf4)},{'name':a86_0x18819f(0xfd),'type':a86_0x18819f(0xf6),'required':!![],'description':a86_0x18819f(0xe9)},{'name':a86_0x18819f(0xea),'type':a86_0x18819f(0xf6),'description':a86_0x18819f(0xff)},{'name':a86_0x18819f(0xd4),'type':a86_0x18819f(0xf6),'description':'Human-readable\x20description'},{'name':'autostart','type':a86_0x18819f(0xe3),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3a792c){const _0x327abe=a86_0x18819f,_0x57a451=_0x3a792c['str'](_0x327abe(0xdf))[_0x327abe(0xfa)]();if(!validateDbUrl(_0x57a451))throw CliErrors['validation'](_0x327abe(0xec)+_0x57a451+'\x22',_0x327abe(0xe8));},async 'dryRun'(_0x13b261){const _0x1ddddf=a86_0x18819f,_0xa8dea5={'appCode':_0x13b261[_0x1ddddf(0xd2)],'dbName':_0x13b261['str'](_0x1ddddf(0xde)),'dbType':_0x13b261['str'](_0x1ddddf(0xe6)),'dbVersion':_0x13b261[_0x1ddddf(0xdc)]('dbversion')||'8.0','dbUrl':_0x13b261[_0x1ddddf(0xdc)]('dburl')[_0x1ddddf(0xfa)](),'username':_0x13b261[_0x1ddddf(0xdc)]('username'),'password':'[redacted]',..._0x13b261[_0x1ddddf(0xdc)](_0x1ddddf(0xea))?{'dbParam':_0x13b261[_0x1ddddf(0xdc)](_0x1ddddf(0xea))}:{},..._0x13b261[_0x1ddddf(0xdc)](_0x1ddddf(0xd4))?{'dbDesc':_0x13b261[_0x1ddddf(0xdc)](_0x1ddddf(0xd4))}:{}};return{'method':'POST','url':_0x1ddddf(0xf5),'body':_0xa8dea5,'description':[_0x1ddddf(0xf7),_0x13b261[_0x1ddddf(0xe0)](_0x1ddddf(0xf3))?_0x1ddddf(0xd1):_0x1ddddf(0xdb)][_0x1ddddf(0xd8)]('\x0a'),'connectionPreflight':{'enabled':!_0x13b261['bool'](_0x1ddddf(0xfc)),'executed':![]}};},async 'execute'(_0xcedd10){const _0x9ef43a=a86_0x18819f,_0x25f096={'appCode':_0xcedd10[_0x9ef43a(0xd2)],'dbName':_0xcedd10[_0x9ef43a(0xdc)]('dbname'),'dbType':_0xcedd10[_0x9ef43a(0xdc)](_0x9ef43a(0xe6)),'dbVersion':_0xcedd10[_0x9ef43a(0xdc)](_0x9ef43a(0xed))||_0x9ef43a(0xfe),'dbUrl':_0xcedd10['str'](_0x9ef43a(0xdf))[_0x9ef43a(0xfa)](),'username':_0xcedd10[_0x9ef43a(0xdc)]('username'),'password':_0xcedd10['str'](_0x9ef43a(0xfd)),..._0xcedd10['str']('dbparam')?{'dbParam':_0xcedd10[_0x9ef43a(0xdc)](_0x9ef43a(0xea))}:{},..._0xcedd10[_0x9ef43a(0xdc)](_0x9ef43a(0xd4))?{'dbDesc':_0xcedd10[_0x9ef43a(0xdc)](_0x9ef43a(0xd4))}:{}};!_0xcedd10[_0x9ef43a(0xe0)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x25f096);const {id:_0x1b4028,entity:_0x5a01ac}=normalizeEntityWithIdResponse(await createDbLink(_0x25f096));if(!_0x1b4028)return{'ok':![],'message':_0x9ef43a(0xe5),'data':sanitizeDbLinkForOutput(_0x5a01ac)};let _0x2e3370,_0x4fa362;if(_0xcedd10[_0x9ef43a(0xe0)](_0x9ef43a(0xf3)))try{_0x2e3370=(await startDbAnalysis(_0x1b4028))[_0x9ef43a(0xf9)];}catch(_0x2f3c4c){_0x4fa362=_0x2f3c4c instanceof Error?_0x2f3c4c['message']:String(_0x2f3c4c);}const _0x5402bf=buildDbPageLinks(_0xcedd10[_0x9ef43a(0xd2)],_0x1b4028),_0x326bb6={'connection':sanitizeDbLinkForOutput(_0x5a01ac),..._0x5402bf?{'links':{'databasePage':_0x5402bf[_0x9ef43a(0xf0)]}}:{},..._0x2e3370?{'analysisPlanId':_0x2e3370}:{},..._0x4fa362?{'analysisStartWarning':_0x4fa362}:{}};let _0x7fab00;return _0xcedd10['bool'](_0x9ef43a(0xf3))?_0x4fa362?_0x7fab00=_0x9ef43a(0xfb)+_0x1b4028+_0x9ef43a(0xd5):_0x7fab00=_0x9ef43a(0xfb)+_0x1b4028+'\x20and\x20started\x20analysis':_0x7fab00='Created\x20db\x20link\x20'+_0x1b4028,{'ok':!![],'data':_0x326bb6,'message':_0x7fab00};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x361033=a87_0x1027;(function(_0x57d239,_0x11eb4f){const _0x215715=a87_0x1027,_0x1f67cf=_0x57d239();while(!![]){try{const _0x593c5e=-parseInt(_0x215715(0x193))/0x1+-parseInt(_0x215715(0x190))/0x2+parseInt(_0x215715(0x1a0))/0x3+parseInt(_0x215715(0x18a))/0x4*(parseInt(_0x215715(0x1a1))/0x5)+-parseInt(_0x215715(0x191))/0x6+-parseInt(_0x215715(0x188))/0x7*(-parseInt(_0x215715(0x18d))/0x8)+parseInt(_0x215715(0x199))/0x9*(parseInt(_0x215715(0x19f))/0xa);if(_0x593c5e===_0x11eb4f)break;else _0x1f67cf['push'](_0x1f67cf['shift']());}catch(_0x575a66){_0x1f67cf['push'](_0x1f67cf['shift']());}}}(a87_0x4d30,0x23926));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a87_0x4d30(){const _0x168f34=['Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','activeDatasetCount','validation','207SMkTnP','boolean','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','POST','Deleted\x20db\x20link\x20','Expected\x20','59490xFWFbN','649512IEYCmO','15LLfbDQ','appCode','flag','datasetDependency','expected-dataset-count','delete','num','all','102599EJODtY','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','48092UmfUfF','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','bool','88XZcvXp','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','\x20active\x20Dataset(s),\x20but\x20found\x20','115888iiolfG','630084rAcylH','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','241967FIeDWK','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.'];a87_0x4d30=function(){return _0x168f34;};return a87_0x4d30();}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';function a87_0x1027(_0x5a2eda,_0x50ec6f){_0x5a2eda=_0x5a2eda-0x184;const _0x4d30cc=a87_0x4d30();let _0x102765=_0x4d30cc[_0x5a2eda];return _0x102765;}const CONFIRM_FLAG={'name':'confirm','type':a87_0x361033(0x19a),'description':a87_0x361033(0x18e)},EXPECTED_DATASET_COUNT_FLAG={'name':a87_0x361033(0x184),'type':'number','description':a87_0x361033(0x195)};export const dbDelete={'service':'db','command':a87_0x361033(0x185),'description':'Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x526f02){const _0x21a38d=a87_0x361033,_0x3366f8=await loadDeleteImpact(_0x526f02);return assertExpectedDatasetCount(_0x526f02,_0x3366f8[_0x21a38d(0x1a4)][_0x21a38d(0x197)]),{'method':_0x21a38d(0x19c),'url':'/smartapi/dblink/delete','body':{'id':_0x3366f8['id']},'description':_0x3366f8[_0x21a38d(0x1a4)][_0x21a38d(0x197)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x3366f8[_0x21a38d(0x1a4)]['activeDatasetCount']+'\x20active\x20DB_TABLE\x20Dataset(s).':_0x21a38d(0x18b),..._0x3366f8};},async 'execute'(_0x314498){const _0x4ef47f=a87_0x361033;if(!_0x314498[_0x4ef47f(0x18c)]('confirm'))throw CliErrors[_0x4ef47f(0x198)](_0x4ef47f(0x194),'Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.');const _0x4154ae=_0x314498[_0x4ef47f(0x186)]('id'),_0x34a09b=await loadDeleteImpact(_0x314498),_0x12cff2=_0x34a09b[_0x4ef47f(0x1a4)][_0x4ef47f(0x197)];assertExpectedDatasetCount(_0x314498,_0x12cff2);if(_0x12cff2>0x0)throw CliErrors[_0x4ef47f(0x198)]('Database\x20connection\x20'+_0x4154ae+'\x20still\x20has\x20'+_0x12cff2+_0x4ef47f(0x196),_0x4ef47f(0x192));return await deleteDbLink(_0x4154ae),{'ok':!![],'data':{'id':_0x4154ae,'deleted':!![],'activeDatasetCount':_0x12cff2},'message':_0x4ef47f(0x19d)+_0x4154ae};}};async function loadDeleteImpact(_0x19af5a){const _0x273b6b=a87_0x361033,_0x447bd6=_0x19af5a['num']('id'),[_0x15a8a2,_0x104d09]=await Promise[_0x273b6b(0x187)]([getDbLinkInfo(_0x447bd6),listDatasets(_0x19af5a[_0x273b6b(0x1a2)],{'source':'DB_TABLE'})]),_0x451dd2=buildDbDatasetDependency(_0x15a8a2,_0x104d09);return{'id':_0x447bd6,'connection':sanitizeDbLinkForOutput(_0x15a8a2),'datasetDependency':_0x451dd2[_0x273b6b(0x1a4)],'activeDatasetCount':_0x451dd2[_0x273b6b(0x1a4)][_0x273b6b(0x197)],'datasets':_0x451dd2['datasets']};}function assertExpectedDatasetCount(_0x2e5039,_0x2579be){const _0x15e0c9=a87_0x361033,_0x3b5971=_0x2e5039[_0x15e0c9(0x1a3)](_0x15e0c9(0x184));if(_0x3b5971===undefined||_0x3b5971==='')return;const _0x21ca20=_0x2e5039[_0x15e0c9(0x186)]('expected-dataset-count');if(!Number['isInteger'](_0x21ca20)||_0x21ca20<0x0)throw CliErrors['validation'](_0x15e0c9(0x19b));if(_0x21ca20!==_0x2579be)throw CliErrors[_0x15e0c9(0x198)](_0x15e0c9(0x19e)+_0x21ca20+_0x15e0c9(0x18f)+_0x2579be+'.',_0x15e0c9(0x189));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x165cbb=a88_0x1abe;function a88_0x51d2(){const _0xcc4ee8=['read','3066504GgGmPX','dbName','2321582vKACfe','DB_TABLE','4874945EpKIfu','2240394imEbiP','7dEetcb','datasetDependency','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','1iAzhxq','6810isiXiv','detail','db\x20link\x20','571224aLuoYX','appCode','num','4955144bFJGaP','1062sicKKx'];a88_0x51d2=function(){return _0xcc4ee8;};return a88_0x51d2();}(function(_0x33b7b9,_0x4dfdc8){const _0x19e8ef=a88_0x1abe,_0x418678=_0x33b7b9();while(!![]){try{const _0x483c6e=parseInt(_0x19e8ef(0x149))/0x1*(parseInt(_0x19e8ef(0x155))/0x2)+parseInt(_0x19e8ef(0x14d))/0x3+-parseInt(_0x19e8ef(0x153))/0x4+-parseInt(_0x19e8ef(0x157))/0x5+-parseInt(_0x19e8ef(0x158))/0x6*(-parseInt(_0x19e8ef(0x159))/0x7)+parseInt(_0x19e8ef(0x150))/0x8+-parseInt(_0x19e8ef(0x151))/0x9*(-parseInt(_0x19e8ef(0x14a))/0xa);if(_0x483c6e===_0x4dfdc8)break;else _0x418678['push'](_0x418678['shift']());}catch(_0x312cd0){_0x418678['push'](_0x418678['shift']());}}}(a88_0x51d2,0xa6aee));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a88_0x1abe(_0x4aafc2,_0x18ea02){_0x4aafc2=_0x4aafc2-0x149;const _0x51d251=a88_0x51d2();let _0x1abe32=_0x51d251[_0x4aafc2];return _0x1abe32;}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':a88_0x165cbb(0x14b),'description':a88_0x165cbb(0x15b),'risk':a88_0x165cbb(0x152),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5ab2f2){const _0xa91986=a88_0x165cbb,_0x26b2c6=_0x5ab2f2[_0xa91986(0x14f)]('id'),_0x2364df=await getDbLinkInfo(_0x26b2c6),_0x309e6c=await listDatasets(_0x2364df[_0xa91986(0x14e)]||_0x5ab2f2[_0xa91986(0x14e)],{'source':_0xa91986(0x156)}),_0x55aade=buildDbDatasetDependency(_0x2364df,_0x309e6c);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x2364df),'datasetDependency':_0x55aade[_0xa91986(0x15a)]},'message':_0xa91986(0x14c)+_0x26b2c6+':\x20'+_0x2364df[_0xa91986(0x154)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x24234a=a89_0x2e1a;(function(_0x16b21d,_0x5524b2){const _0x4ff52a=a89_0x2e1a,_0x2669e3=_0x16b21d();while(!![]){try{const _0x5c7b84=-parseInt(_0x4ff52a(0x15b))/0x1+-parseInt(_0x4ff52a(0x162))/0x2+-parseInt(_0x4ff52a(0x164))/0x3+-parseInt(_0x4ff52a(0x156))/0x4+parseInt(_0x4ff52a(0x15a))/0x5+parseInt(_0x4ff52a(0x167))/0x6*(parseInt(_0x4ff52a(0x15f))/0x7)+parseInt(_0x4ff52a(0x15c))/0x8*(parseInt(_0x4ff52a(0x163))/0x9);if(_0x5c7b84===_0x5524b2)break;else _0x2669e3['push'](_0x2669e3['shift']());}catch(_0x31dced){_0x2669e3['push'](_0x2669e3['shift']());}}}(a89_0x1736,0x4b4c3));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a89_0x1736(){const _0x31dd5b=['117AIjZWq','1292853EsQtxy','trim','\x20db\x20diff-refresh-status\x20--id\x20','66TTrGPw','write','diff-refresh-start','1626424pkzSam','num','\x20--format\x20compress','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','1619270MwqeHX','434596SHnsvA','607528quYjqR','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','\x20--plan\x20','173341hJhttk','validation','appCode','5816NZFqMG'];a89_0x1736=function(){return _0x31dd5b;};return a89_0x1736();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a89_0x2e1a(_0x4ca4c6,_0xee51b9){_0x4ca4c6=_0x4ca4c6-0x155;const _0x17369e=a89_0x1736();let _0x2e1a1a=_0x17369e[_0x4ca4c6];return _0x2e1a1a;}import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a89_0x24234a(0x155),'description':a89_0x24234a(0x159),'risk':a89_0x24234a(0x168),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x53ee94){const _0x42a1a8=a89_0x24234a,_0x1d3e7f=_0x53ee94[_0x42a1a8(0x157)]('id'),_0x427ee6=await startDbTableDiffRefresh(_0x53ee94[_0x42a1a8(0x161)],_0x1d3e7f),_0x14e0a0=_0x427ee6['traceId']?.[_0x42a1a8(0x165)]();if(!_0x14e0a0)throw CliErrors[_0x42a1a8(0x160)](_0x42a1a8(0x15d));return{'ok':!![],'data':{'dbLinkId':_0x1d3e7f,'traceId':_0x14e0a0,'status':_0x427ee6['status']??null,'query':{'command':CLI_BIN_NAME+_0x42a1a8(0x166)+_0x1d3e7f+_0x42a1a8(0x15e)+_0x14e0a0+_0x42a1a8(0x158)}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x1d3e7f};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x2f4bc8=a90_0x6a20;(function(_0x5e49af,_0x288ea2){const _0x39f2d2=a90_0x6a20,_0x433173=_0x5e49af();while(!![]){try{const _0x4296d9=-parseInt(_0x39f2d2(0x17c))/0x1+-parseInt(_0x39f2d2(0x18b))/0x2+parseInt(_0x39f2d2(0x184))/0x3+parseInt(_0x39f2d2(0x182))/0x4+-parseInt(_0x39f2d2(0x17a))/0x5*(-parseInt(_0x39f2d2(0x183))/0x6)+-parseInt(_0x39f2d2(0x190))/0x7*(-parseInt(_0x39f2d2(0x18a))/0x8)+-parseInt(_0x39f2d2(0x181))/0x9;if(_0x4296d9===_0x288ea2)break;else _0x433173['push'](_0x433173['shift']());}catch(_0x31e414){_0x433173['push'](_0x433173['shift']());}}}(a90_0x1032,0xb8c94));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a90_0x2f4bc8(0x188),a90_0x2f4bc8(0x178)]),RUNNING_STATUSES=new Set(['PENDING','RUNNING',a90_0x2f4bc8(0x189)]);function a90_0x6a20(_0x558f52,_0x3f2f91){_0x558f52=_0x558f52-0x177;const _0x103256=a90_0x1032();let _0x6a2052=_0x103256[_0x558f52];return _0x6a2052;}export const dbDiffRefreshStatus={'service':'db','command':a90_0x2f4bc8(0x185),'description':a90_0x2f4bc8(0x177),'risk':a90_0x2f4bc8(0x186),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a90_0x2f4bc8(0x180),'type':a90_0x2f4bc8(0x18f),'required':!![],'description':a90_0x2f4bc8(0x17d)}],async 'execute'(_0x1d443b){const _0x4300d1=a90_0x2f4bc8,_0x4a431f=_0x1d443b[_0x4300d1(0x179)]('id'),_0x5a0a93=_0x1d443b[_0x4300d1(0x17e)](_0x4300d1(0x180)),_0x11e265=await getDbAnalysisStatus(_0x5a0a93),_0x422835=_0x11e265[_0x4300d1(0x187)]??null,_0x1375f3=TERMINAL_STATUSES[_0x4300d1(0x18e)](_0x422835??''),_0x216c56=_0x422835===_0x4300d1(0x18c),_0x3691bd=_0x1375f3||RUNNING_STATUSES['has'](_0x422835??'');return{'ok':!![],'data':{'dbLinkId':_0x4a431f,'planId':_0x5a0a93,'status':_0x11e265,'knownStatus':_0x3691bd,'isTerminal':_0x1375f3,'isSuccessful':_0x216c56,'query':_0x3691bd&&!_0x1375f3?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x4a431f+_0x4300d1(0x17f)+_0x5a0a93+_0x4300d1(0x17b)}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x5a0a93+':\x20'+(_0x422835??_0x4300d1(0x18d))};}};function a90_0x1032(){const _0x580613=['has','string','5860946AOorjJ','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','CANCELLED','num','845zEdcjE','\x20--format\x20compress','879327HKmHVi','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','str','\x20--plan\x20','plan','21375477NweCQx','2648036xuTTRS','40314shjHQq','4130454IVwlQp','diff-refresh-status','read','status','FAILED','RETRYING','8dkTmlQ','704GsNAnC','SUCCESS','UNKNOWN'];a90_0x1032=function(){return _0x580613;};return a90_0x1032();}
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x49e0df=a91_0x5de7;(function(_0x27638d,_0x784261){const _0xe90ef3=a91_0x5de7,_0xa4e8f8=_0x27638d();while(!![]){try{const _0xb8766b=parseInt(_0xe90ef3(0x187))/0x1+parseInt(_0xe90ef3(0x1a8))/0x2*(-parseInt(_0xe90ef3(0x1aa))/0x3)+-parseInt(_0xe90ef3(0x184))/0x4+parseInt(_0xe90ef3(0x198))/0x5*(parseInt(_0xe90ef3(0x185))/0x6)+-parseInt(_0xe90ef3(0x1a4))/0x7+-parseInt(_0xe90ef3(0x1a7))/0x8+-parseInt(_0xe90ef3(0x183))/0x9*(-parseInt(_0xe90ef3(0x191))/0xa);if(_0xb8766b===_0x784261)break;else _0xa4e8f8['push'](_0xa4e8f8['shift']());}catch(_0x4bf3c5){_0xa4e8f8['push'](_0xa4e8f8['shift']());}}}(a91_0x53c9,0xc037d));import{getDbTableDiff}from'../../core/api-client.js';function a91_0x53c9(){const _0x1b2a69=['pagesize','DELETED_TABLE','9026479KABzlI','\x20changed\x20table\x20row(s),\x20total\x20','diffType','9581616eBsBBP','2pSvdEG','map','1609767vCBEtw','datasetTableCount','string','9GWxntN','4585936sWqpBx','715818vXYzvo','tableList','1320748Iqhxtm','bool','addedColumns','table','all','filter','num','page','physicalTableCount','appCode','29210310VPzwWE','read','MODIFIED_TABLE','totalCount','modifiedColumns','\x20(db\x20link\x20','Page\x20size','30OKIdkr','str','Page\x20index\x20(1-based)','NEW_TABLE','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','tableName','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','number','deletedColumns','fieldDiff'];a91_0x53c9=function(){return _0x1b2a69;};return a91_0x53c9();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a91_0x5de7(_0x449edb,_0x2a0515){_0x449edb=_0x449edb-0x181;const _0x53c922=a91_0x53c9();let _0x5de7fa=_0x53c922[_0x449edb];return _0x5de7fa;}export const dbDiff={'service':'db','command':'diff','description':a91_0x49e0df(0x19c),'risk':a91_0x49e0df(0x192),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x49e0df(0x18a),'type':a91_0x49e0df(0x182),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a91_0x49e0df(0x18e),'type':a91_0x49e0df(0x19f),'description':a91_0x49e0df(0x19a),'default':0x1},{'name':a91_0x49e0df(0x1a2),'type':a91_0x49e0df(0x19f),'description':a91_0x49e0df(0x197),'default':0x14},{'name':a91_0x49e0df(0x18b),'type':'boolean','description':a91_0x49e0df(0x19e)}],async 'execute'(_0x550a1c){const _0x557268=a91_0x49e0df,_0x4d5b87=_0x550a1c['num']('id'),_0x4b996c=_0x550a1c[_0x557268(0x188)]('all'),_0x33632f=_0x4b996c?0x1:_0x550a1c[_0x557268(0x18d)](_0x557268(0x18e),0x1)||0x1,_0x88780=_0x4b996c?DB_TABLE_PAGE_SIZE:_0x550a1c[_0x557268(0x18d)](_0x557268(0x1a2),0x14)||0x14,_0x4fea33=_0x550a1c[_0x557268(0x199)](_0x557268(0x18a))||undefined,_0x12461a=_0x4b996c?await getAllDbTableDiff(getDbTableDiff,_0x550a1c[_0x557268(0x190)],_0x4d5b87,_0x4fea33):await getDbTableDiff(_0x550a1c[_0x557268(0x190)],_0x4d5b87,{'pageIndex':_0x33632f,'pageSize':_0x88780,'tableName':_0x4fea33}),_0x2aa078=_0x12461a[_0x557268(0x186)],_0x11d1a7=summarizeDbTableDiff(_0x2aa078),_0x3e6da8=_0x2aa078[_0x557268(0x18c)](_0x36d1f6=>_0x36d1f6[_0x557268(0x1a6)]===_0x557268(0x19b)||_0x36d1f6[_0x557268(0x1a6)]===_0x557268(0x193))[_0x557268(0x1a9)](_0x119b3d=>_0x119b3d['tableName']),_0x577d53=_0x2aa078[_0x557268(0x18c)](_0x4f681a=>_0x4f681a[_0x557268(0x1a6)]===_0x557268(0x1a3))[_0x557268(0x1a9)](_0x50cd78=>_0x50cd78[_0x557268(0x19d)]),_0x200069=_0x2aa078[_0x557268(0x18c)](_0x2dbb1e=>_0x2dbb1e[_0x557268(0x1a6)]===_0x557268(0x193))[_0x557268(0x1a9)](_0x11dec0=>({'tableName':_0x11dec0[_0x557268(0x19d)],'addedColumns':_0x11dec0[_0x557268(0x1a1)]?.[_0x557268(0x189)]??[],'deletedColumns':_0x11dec0[_0x557268(0x1a1)]?.[_0x557268(0x1a0)]??[],'modifiedColumns':_0x11dec0[_0x557268(0x1a1)]?.[_0x557268(0x195)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x4d5b87,'page':_0x33632f,'pageSize':_0x88780,'totalCount':_0x12461a[_0x557268(0x194)],...typeof _0x12461a[_0x557268(0x18f)]===_0x557268(0x19f)?{'physicalTableCount':_0x12461a['physicalTableCount']}:{},...typeof _0x12461a[_0x557268(0x181)]===_0x557268(0x19f)?{'datasetTableCount':_0x12461a[_0x557268(0x181)]}:{},..._0x12461a['summary']?{'summary':_0x12461a['summary']}:{},'summaryByType':_0x11d1a7,'toAnalyzeTables':_0x3e6da8,'deletedTables':_0x577d53,'modifiedFieldDiffs':_0x200069,'tables':_0x2aa078},'message':_0x2aa078['length']+_0x557268(0x1a5)+_0x12461a[_0x557268(0x194)]+_0x557268(0x196)+_0x4d5b87+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37aa5d,_0x2269b8){const _0x161b4e=a92_0xf3ce,_0x57979c=_0x37aa5d();while(!![]){try{const _0x325110=-parseInt(_0x161b4e(0x114))/0x1*(-parseInt(_0x161b4e(0x118))/0x2)+parseInt(_0x161b4e(0x116))/0x3+parseInt(_0x161b4e(0x11a))/0x4*(-parseInt(_0x161b4e(0x119))/0x5)+parseInt(_0x161b4e(0x11c))/0x6+parseInt(_0x161b4e(0x115))/0x7+parseInt(_0x161b4e(0x11b))/0x8+-parseInt(_0x161b4e(0x117))/0x9;if(_0x325110===_0x2269b8)break;else _0x57979c['push'](_0x57979c['shift']());}catch(_0xd46b81){_0x57979c['push'](_0x57979c['shift']());}}}(a92_0x89af,0x5665f));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a92_0xf3ce(_0x587387,_0x3018ab){_0x587387=_0x587387-0x114;const _0x89afcc=a92_0x89af();let _0xf3cee5=_0x89afcc[_0x587387];return _0xf3cee5;}import{dbUpdate}from'../../commands/db/update.js';function a92_0x89af(){const _0x175548=['864702vNGWGe','27300mhCxSj','1161972gEXmwy','674136jxaUnj','5560515QGztGv','28wqCbtj','220XmwKbo','32628ZHKiwv','3308840pQNVYx'];a92_0x89af=function(){return _0x175548;};return a92_0x89af();}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a93_0x12817d=a93_0x3d59;function a93_0x3d59(_0x694a9b,_0xd7e020){_0x694a9b=_0x694a9b-0x19f;const _0x51206f=a93_0x5120();let _0x3d59b8=_0x51206f[_0x694a9b];return _0x3d59b8;}(function(_0xb652b1,_0x382e1b){const _0x30059b=a93_0x3d59,_0x3dae77=_0xb652b1();while(!![]){try{const _0x227dd6=parseInt(_0x30059b(0x1a6))/0x1*(parseInt(_0x30059b(0x1a4))/0x2)+parseInt(_0x30059b(0x1b3))/0x3+-parseInt(_0x30059b(0x1b0))/0x4+-parseInt(_0x30059b(0x1aa))/0x5+-parseInt(_0x30059b(0x1a8))/0x6+parseInt(_0x30059b(0x1ae))/0x7+parseInt(_0x30059b(0x1ac))/0x8;if(_0x227dd6===_0x382e1b)break;else _0x3dae77['push'](_0x3dae77['shift']());}catch(_0x4ec2de){_0x3dae77['push'](_0x3dae77['shift']());}}}(a93_0x5120,0x71cbb));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a93_0x12817d(0x1b4),'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':a93_0x12817d(0x1af),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a93_0x12817d(0x1a0),'type':a93_0x12817d(0x1b2),'description':a93_0x12817d(0x1a9),'default':0x1},{'name':a93_0x12817d(0x1ad),'type':a93_0x12817d(0x1b2),'description':a93_0x12817d(0x1b1),'default':0x64}],async 'execute'(_0x1d201c){const _0x36adbf=a93_0x12817d,_0x216d06=_0x1d201c['num'](_0x36adbf(0x1a0),0x1)||0x1,_0x3eb454=_0x1d201c[_0x36adbf(0x1a7)]('pagesize',0x64)||0x64,[{items:_0x570d10,paging:_0x3dfd75},_0xb1cdac]=await Promise['all']([listDbLinks(_0x1d201c[_0x36adbf(0x1a1)],{'currentPage':_0x216d06,'pageSize':_0x3eb454}),listDatasets(_0x1d201c[_0x36adbf(0x1a1)],{'source':_0x36adbf(0x1b5)})]),_0x3b36a2=_0x570d10[_0x36adbf(0x1a2)](_0x402565=>({...sanitizeDbLinkForOutput(_0x402565),'datasetDependency':buildDbDatasetDependency(_0x402565,_0xb1cdac)[_0x36adbf(0x1a3)]})),_0x3714cd=_0x3dfd75?_0x3dfd75:{'currentPage':_0x216d06,'pageSize':_0x3eb454,'rowsOnPage':_0x3b36a2[_0x36adbf(0x1ab)],'totalCount':null,'note':_0x36adbf(0x19f)};return{'ok':!![],'data':{'connections':_0x3b36a2,'paging':_0x3714cd},'message':_0x36adbf(0x1b6)+_0x3b36a2[_0x36adbf(0x1ab)]+_0x36adbf(0x1a5)};}};function a93_0x5120(){const _0x4e9dd7=['97fQoVEp','num','2810538iNQaNS','Page\x20index\x20(1-based)','420220fKrGcR','length','3554528udwOlE','pagesize','2219518GebXJN','read','1100416UdjSWM','Page\x20size','number','1595700VluACM','list','DB_TABLE','Found\x20','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','page','appCode','map','datasetDependency','8mkGOsj','\x20database\x20connection(s)'];a93_0x5120=function(){return _0x4e9dd7;};return a93_0x5120();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b753d,_0x497ddb){const _0xd1fb74=a94_0x5c95,_0x33bc29=_0x3b753d();while(!![]){try{const _0x4761d2=-parseInt(_0xd1fb74(0x1ae))/0x1+-parseInt(_0xd1fb74(0x194))/0x2*(-parseInt(_0xd1fb74(0x1a3))/0x3)+-parseInt(_0xd1fb74(0x18c))/0x4+parseInt(_0xd1fb74(0x1a8))/0x5+parseInt(_0xd1fb74(0x197))/0x6*(parseInt(_0xd1fb74(0x1a0))/0x7)+-parseInt(_0xd1fb74(0x1ad))/0x8*(-parseInt(_0xd1fb74(0x196))/0x9)+-parseInt(_0xd1fb74(0x1ac))/0xa*(-parseInt(_0xd1fb74(0x1a1))/0xb);if(_0x4761d2===_0x497ddb)break;else _0x33bc29['push'](_0x33bc29['shift']());}catch(_0xc1bfce){_0x33bc29['push'](_0x33bc29['shift']());}}}(a94_0xee6e,0x6b78b));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x456260){const _0x5e630d=a94_0x5c95,_0x22de9d=_0x456260[_0x5e630d(0x1a7)]();if(_0x22de9d===_0x5e630d(0x1ab)||_0x22de9d===_0x5e630d(0x1a5)||_0x22de9d===_0x5e630d(0x1b0))return!![];if(_0x22de9d[_0x5e630d(0x19d)]('secret')||_0x22de9d[_0x5e630d(0x19d)](_0x5e630d(0x1a9))||_0x22de9d['includes'](_0x5e630d(0x18d)))return!![];if(_0x22de9d['includes']('privatekey')||_0x22de9d[_0x5e630d(0x19d)](_0x5e630d(0x193)))return!![];if(_0x22de9d==='authorization'||_0x22de9d===_0x5e630d(0x1a2)||_0x22de9d===_0x5e630d(0x1a4))return!![];return![];}export function sanitizeDbLinkForOutput(_0x125223){const _0x4b70be=a94_0x5c95,_0x570f97={..._0x125223};delete _0x570f97['hasAvailableDo'];for(const _0x27851d of Object[_0x4b70be(0x18f)](_0x570f97)){if(!shouldRedactKey(_0x27851d))continue;const _0x4c2e0c=_0x570f97[_0x27851d];_0x4c2e0c!=null&&String(_0x4c2e0c)[_0x4b70be(0x19b)]>0x0&&(_0x570f97[_0x27851d]='[redacted]');}return _0x570f97;}export function sanitizeDbLinkList(_0x170d56){const _0x717c67=a94_0x5c95;return _0x170d56[_0x717c67(0x19e)](_0x163c94=>sanitizeDbLinkForOutput(_0x163c94));}export function buildDbDatasetDependency(_0x5d5b57,_0x5a47ed){const _0x382ab4=a94_0x5c95,_0x2b56c0=_0x5a47ed[_0x382ab4(0x19f)](_0x357e1f=>Number(_0x357e1f[_0x382ab4(0x192)]?.['dbId'])===Number(_0x5d5b57['id']))['map'](_0xc84d4d=>({'id':_0xc84d4d['id'],'code':_0xc84d4d[_0x382ab4(0x1a6)],'name':_0xc84d4d[_0x382ab4(0x18e)],..._0xc84d4d['dbtableConfig']?.[_0x382ab4(0x19c)]?{'tableName':_0xc84d4d[_0x382ab4(0x192)][_0x382ab4(0x19c)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x2b56c0[_0x382ab4(0x19b)]>0x0,'activeDatasetCount':_0x2b56c0[_0x382ab4(0x19b)]},'datasets':_0x2b56c0};}export async function assertDbLinkConnectionPreflight(_0x145530){const _0x430575=a94_0x5c95,_0x3761f2=await testDbLinkConfigConnect(_0x145530);if(_0x3761f2!==!![])throw CliErrors[_0x430575(0x195)](_0x430575(0x190),_0x430575(0x1af));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5ccc7d){const _0x481e64=a94_0x5c95,_0x245822=_0x5ccc7d[_0x481e64(0x199)]();if(!_0x245822)return![];return DB_URL_PATTERN[_0x481e64(0x18b)](_0x245822);}function a94_0x5c95(_0x589feb,_0x3943f7){_0x589feb=_0x589feb-0x18b;const _0xee6e9=a94_0xee6e();let _0x5c9513=_0xee6e9[_0x589feb];return _0x5c9513;}function a94_0xee6e(){const _0x12271d=['tableName','includes','map','filter','553574xhofms','1124398eeeoZM','connectionstring','3djfASq','jdbcurl','passwd','code','toLowerCase','1731145yWNqfm','token','/data/database','password','30CgEzYw','272IoQqRk','831057JPRdlB','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','dbpassword','test','672096bwkkRN','credential','name','keys','Database\x20connection\x20preflight\x20failed.','number','dbtableConfig','accesskey','237018RryzpU','apiError','134928SHNWPW','12ureNuk','/data/er?dbId=','trim','isFinite','length'];a94_0xee6e=function(){return _0x12271d;};return a94_0xee6e();}export function buildDbPageLinks(_0x1a7e8e,_0x157ed4){const _0x32815=a94_0x5c95,_0x2f4a87=_0x1a7e8e?.[_0x32815(0x199)]();if(!_0x2f4a87)return undefined;const _0x1453ea=typeof _0x157ed4===_0x32815(0x191)?String(_0x157ed4):String(_0x157ed4??'')['trim']();if(!_0x1453ea)return undefined;const _0xcbb6dc=Number(_0x1453ea);if(!Number[_0x32815(0x19a)](_0xcbb6dc)||_0xcbb6dc<=0x0)return undefined;const _0x4d6167=getAppBaseUrl(_0x2f4a87),_0x59efb2=encodeURIComponent(String(_0xcbb6dc));return{'databasePage':_0x4d6167+_0x32815(0x1aa),'erPage':_0x4d6167+_0x32815(0x198)+_0x59efb2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a95_0x10e30e=a95_0x43ce;(function(_0x2ba207,_0x118bbf){const _0x1109e2=a95_0x43ce,_0x4d14e3=_0x2ba207();while(!![]){try{const _0x17180c=parseInt(_0x1109e2(0xdb))/0x1+parseInt(_0x1109e2(0xe1))/0x2*(parseInt(_0x1109e2(0xec))/0x3)+-parseInt(_0x1109e2(0xda))/0x4*(-parseInt(_0x1109e2(0xee))/0x5)+-parseInt(_0x1109e2(0xd2))/0x6*(parseInt(_0x1109e2(0xd7))/0x7)+parseInt(_0x1109e2(0xe6))/0x8*(-parseInt(_0x1109e2(0xd6))/0x9)+-parseInt(_0x1109e2(0xde))/0xa*(parseInt(_0x1109e2(0xd8))/0xb)+parseInt(_0x1109e2(0xeb))/0xc*(-parseInt(_0x1109e2(0xcf))/0xd);if(_0x17180c===_0x118bbf)break;else _0x4d14e3['push'](_0x4d14e3['shift']());}catch(_0x3fc66d){_0x4d14e3['push'](_0x4d14e3['shift']());}}}(a95_0x3df8,0xa9595));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a95_0x10e30e(0xd5),a95_0x10e30e(0xd1),a95_0x10e30e(0xd9),a95_0x10e30e(0xe9)];export function summarizeDbTableDiff(_0x331157){const _0x2b9f60=a95_0x10e30e;return Object[_0x2b9f60(0xed)](DB_TABLE_DIFF_TYPES['map'](_0xd3c10e=>[_0xd3c10e,_0x331157[_0x2b9f60(0xdf)](_0x13bdfd=>_0x13bdfd[_0x2b9f60(0xe0)]===_0xd3c10e)[_0x2b9f60(0xd0)]]));}function a95_0x43ce(_0x1b091b,_0x14f4ac){_0x1b091b=_0x1b091b-0xcf;const _0x3df81d=a95_0x3df8();let _0x43ceef=_0x3df81d[_0x1b091b];return _0x43ceef;}export async function getAllDbTableDiff(_0x28af50,_0xaf1cd2,_0x3e6f15,_0x7960a){const _0x5b9940=a95_0x10e30e,_0x33c105=new Map();let _0x3a82f6=0x1,_0x22be20=null;while(!![]){_0x22be20=await _0x28af50(_0xaf1cd2,_0x3e6f15,{'pageIndex':_0x3a82f6,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x7960a});const _0x1659c0=_0x33c105[_0x5b9940(0xea)];for(const _0x2ff39a of _0x22be20['tableList']){_0x33c105[_0x5b9940(0xe5)](_0x2ff39a[_0x5b9940(0xdc)],_0x2ff39a);}if(_0x33c105[_0x5b9940(0xea)]>=_0x22be20[_0x5b9940(0xd4)])break;if(_0x22be20[_0x5b9940(0xe8)][_0x5b9940(0xd0)]===0x0||_0x33c105[_0x5b9940(0xea)]===_0x1659c0)throw CliErrors[_0x5b9940(0xe7)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x33c105['size']+_0x5b9940(0xe2)+_0x22be20[_0x5b9940(0xd4)]+'\x20row(s).');_0x3a82f6+=0x1;}return{'totalCount':_0x22be20?.[_0x5b9940(0xd4)]??0x0,...typeof _0x22be20?.[_0x5b9940(0xe4)]===_0x5b9940(0xd3)?{'physicalTableCount':_0x22be20[_0x5b9940(0xe4)]}:{},...typeof _0x22be20?.[_0x5b9940(0xe3)]===_0x5b9940(0xd3)?{'datasetTableCount':_0x22be20[_0x5b9940(0xe3)]}:{},..._0x22be20?.[_0x5b9940(0xdd)]?{'summary':_0x22be20[_0x5b9940(0xdd)]}:{},'tableList':[..._0x33c105['values']()]};}function a95_0x3df8(){const _0x2dc1aa=['169317NEuDLe','tableName','summary','1440420DqYhYq','filter','diffType','16kfroAt','\x20of\x20','datasetTableCount','physicalTableCount','set','192StKDrT','validation','tableList','ALREADY_ANALYZED','size','2239164kulMds','480549OufxWg','fromEntries','3712260AMvmnD','52gErQKz','length','MODIFIED_TABLE','252zTUmLq','number','totalCount','NEW_TABLE','163998KTBziF','28637NTuboY','11BEZYUy','DELETED_TABLE','4xzUxen'];a95_0x3df8=function(){return _0x2dc1aa;};return a95_0x3df8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a96_0x47ed2d=a96_0x6a1d;(function(_0x16ac05,_0x18f6bf){const _0x1d2444=a96_0x6a1d,_0x4892f7=_0x16ac05();while(!![]){try{const _0x1ca84e=-parseInt(_0x1d2444(0x7a))/0x1*(-parseInt(_0x1d2444(0x72))/0x2)+-parseInt(_0x1d2444(0x70))/0x3*(parseInt(_0x1d2444(0x7f))/0x4)+-parseInt(_0x1d2444(0x6a))/0x5*(parseInt(_0x1d2444(0x6d))/0x6)+parseInt(_0x1d2444(0x73))/0x7+parseInt(_0x1d2444(0x69))/0x8*(parseInt(_0x1d2444(0x74))/0x9)+-parseInt(_0x1d2444(0x79))/0xa+parseInt(_0x1d2444(0x7d))/0xb;if(_0x1ca84e===_0x18f6bf)break;else _0x4892f7['push'](_0x4892f7['shift']());}catch(_0x211ada){_0x4892f7['push'](_0x4892f7['shift']());}}}(a96_0x3347,0x89a70));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a96_0x6a1d(_0xd6bd64,_0x238eda){_0xd6bd64=_0xd6bd64-0x69;const _0x3347c1=a96_0x3347();let _0x6a1d16=_0x3347c1[_0xd6bd64];return _0x6a1d16;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a96_0x47ed2d(0x75),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a96_0x47ed2d(0x7c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x47ed2d(0x6f),'type':a96_0x47ed2d(0x78),'description':a96_0x47ed2d(0x6b)}],async 'execute'(_0x1d0a23){const _0x1ab884=a96_0x47ed2d,_0x456ad8=_0x1d0a23[_0x1ab884(0x7b)]('id'),_0x1d7da5=_0x1d0a23['str'](_0x1ab884(0x6f))||undefined,_0x22d9db=await getAllDbTableDiff(getDbTableComparisonPage,_0x1d0a23['appCode'],_0x456ad8,_0x1d7da5),_0x513d8b=_0x22d9db[_0x1ab884(0x71)];return{'ok':!![],'data':{'dbLinkId':_0x456ad8,'totalCount':_0x22d9db[_0x1ab884(0x76)],...typeof _0x22d9db[_0x1ab884(0x6c)]===_0x1ab884(0x77)?{'physicalTableCount':_0x22d9db[_0x1ab884(0x6c)]}:{},...typeof _0x22d9db[_0x1ab884(0x6e)]==='number'?{'datasetTableCount':_0x22d9db[_0x1ab884(0x6e)]}:{},..._0x22d9db[_0x1ab884(0x7e)]?{'summary':_0x22d9db[_0x1ab884(0x7e)]}:{},'summaryByType':summarizeDbTableDiff(_0x513d8b),'tables':_0x513d8b},'message':_0x513d8b['length']+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x22d9db[_0x1ab884(0x76)]+'\x20(db\x20link\x20'+_0x456ad8+')'};}};function a96_0x3347(){const _0x2f5d35=['21JdREJE','tableList','411538NgOMoG','4153702CCoMrf','394173inLwwl','tables','totalCount','number','string','2732180wAMRmE','1TzXDEb','num','read','5977202ckVfGy','summary','89196IcYhoF','80PqLwOf','85SRaQdC','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','physicalTableCount','277896tNxOXK','datasetTableCount','table'];a96_0x3347=function(){return _0x2f5d35;};return a96_0x3347();}
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x483f61=a97_0x4613;function a97_0x4613(_0x16b287,_0x526892){_0x16b287=_0x16b287-0x117;const _0x244601=a97_0x2446();let _0x4613bd=_0x244601[_0x16b287];return _0x4613bd;}(function(_0x230bd7,_0x2f2fa7){const _0x4cc4c4=a97_0x4613,_0x97d708=_0x230bd7();while(!![]){try{const _0x50ced8=parseInt(_0x4cc4c4(0x11b))/0x1+parseInt(_0x4cc4c4(0x128))/0x2+-parseInt(_0x4cc4c4(0x122))/0x3*(parseInt(_0x4cc4c4(0x125))/0x4)+-parseInt(_0x4cc4c4(0x126))/0x5*(-parseInt(_0x4cc4c4(0x12d))/0x6)+-parseInt(_0x4cc4c4(0x131))/0x7*(parseInt(_0x4cc4c4(0x12f))/0x8)+-parseInt(_0x4cc4c4(0x130))/0x9*(-parseInt(_0x4cc4c4(0x12e))/0xa)+parseInt(_0x4cc4c4(0x12a))/0xb*(-parseInt(_0x4cc4c4(0x127))/0xc);if(_0x50ced8===_0x2f2fa7)break;else _0x97d708['push'](_0x97d708['shift']());}catch(_0x3dd776){_0x97d708['push'](_0x97d708['shift']());}}}(a97_0x2446,0xe6db4));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a97_0x2446(){const _0x2674b3=['length','object','success','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1959dVcVvQ','slice','code','2296nieThJ','61660eDgNYh','36sGBtPz','3298136HiRiVD','keys','8320917GTOpGy','read','data','618wvmKyh','166230NLVYvx','332088TyZTcO','873UXOJVY','175vlNJfF','msg','error','num','\x20(see\x20data.result)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','95831eNyPSo','test','message'];a97_0x2446=function(){return _0x2674b3;};return a97_0x2446();}function summarizeTestConnectResult(_0x52faf5){const _0x1301d8=a97_0x4613;if(_0x52faf5===!![]||_0x52faf5===![])return{'success':_0x52faf5};if(_0x52faf5===null||_0x52faf5===undefined)return{'type':typeof _0x52faf5};if(typeof _0x52faf5!==_0x1301d8(0x11f))return{'type':typeof _0x52faf5};const _0xe89c3d=_0x52faf5,_0x52b952=[_0x1301d8(0x120),_0x1301d8(0x11d),_0x1301d8(0x124),_0x1301d8(0x117),_0x1301d8(0x132),_0x1301d8(0x12c)],_0x2c9587={};for(const _0x1d2a92 of _0x52b952){if(_0x1d2a92 in _0xe89c3d)_0x2c9587[_0x1d2a92]=_0xe89c3d[_0x1d2a92];}return Object[_0x1301d8(0x129)](_0x2c9587)[_0x1301d8(0x11e)]===0x0&&(_0x2c9587[_0x1301d8(0x129)]=Object['keys'](_0xe89c3d)[_0x1301d8(0x123)](0x0,0x14)),_0x2c9587;}export const dbTest={'service':'db','command':a97_0x483f61(0x11c),'description':a97_0x483f61(0x121),'risk':a97_0x483f61(0x12b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xe19a1f){const _0x48dced=a97_0x483f61,_0x208a7a=_0xe19a1f[_0x48dced(0x118)]('id'),_0x193a36=await testDbLinkConnect(_0x208a7a),_0x4a0c21=_0x193a36===!![]||typeof _0x193a36===_0x48dced(0x11f)&&_0x193a36!==null&&_0x193a36[_0x48dced(0x120)]===!![],_0x5aa491=summarizeTestConnectResult(_0x193a36);return{'ok':!![],'data':{'id':_0x208a7a,'connected':Boolean(_0x4a0c21),'result':_0x5aa491},'message':_0x4a0c21?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x208a7a:_0x48dced(0x11a)+_0x208a7a+_0x48dced(0x119)};}};
|