@lovrabet/rabetbase-cli 2.5.3-beta.1 → 2.5.3-beta.3
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.d.ts +22 -0
- package/lib/api/api-group.js +1 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +18 -2
- 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.d.ts +11 -0
- package/lib/api/legacy-api-file.js +1 -0
- package/lib/api/model-registry-file.d.ts +36 -0
- package/lib/api/model-registry-file.js +1 -0
- package/lib/api/model-registry-scaffold.d.ts +7 -0
- package/lib/api/model-registry-scaffold.js +1 -0
- package/lib/api/model-source.d.ts +6 -0
- package/lib/api/model-source.js +1 -0
- 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.d.ts +7 -0
- 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/cross-relation-create.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-create.js +1 -0
- package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-delete.js +1 -0
- package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-list.js +1 -0
- package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
- package/lib/commands/dataset/cross-relation-shared.js +1 -0
- package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-update.js +1 -0
- 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/api-architecture-upgrade.d.ts +28 -0
- package/lib/commands/project/api-architecture-upgrade.js +1 -0
- 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.d.ts +30 -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.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.d.ts +2 -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 +2 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +13 -17
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +176 -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/cross-db-relation.d.ts +41 -0
- package/lib/core/cross-db-relation.js +1 -0
- 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.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.d.ts +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.d.ts +0 -10
- 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 +11 -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.d.ts +12 -0
- 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 +4 -1
- package/skills/rabetbase/SKILL.md +31 -9
- 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/sdk-client-generation.md +112 -60
- package/skills/rabetbase/guides/typescript-sdk.md +9 -0
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
- package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +7 -3
- package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
- package/skills/rabetbase/references/rabetbase-config.md +2 -1
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +60 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -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-project-create.md +3 -3
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
- package/skills/rabetbase.manifest.json +10 -3
- package/templates/README.md +16 -4
- package/templates/generate-api/model-runtime.ts.tpl +101 -0
- package/templates/generate-api/profile-api.ts.tpl +21 -0
- package/templates/generate-api/profile-client.ts.tpl +14 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x564d6c=a95_0x34f1;(function(_0xe91b0b,_0x12e3e1){const _0x5843c3=a95_0x34f1,_0x1486a3=_0xe91b0b();while(!![]){try{const _0x1c37b8=parseInt(_0x5843c3(0xf4))/0x1+-parseInt(_0x5843c3(0x115))/0x2+parseInt(_0x5843c3(0x107))/0x3+parseInt(_0x5843c3(0x11c))/0x4+-parseInt(_0x5843c3(0xf0))/0x5+-parseInt(_0x5843c3(0x10e))/0x6+-parseInt(_0x5843c3(0xfc))/0x7*(-parseInt(_0x5843c3(0xfb))/0x8);if(_0x1c37b8===_0x12e3e1)break;else _0x1486a3['push'](_0x1486a3['shift']());}catch(_0x1fae80){_0x1486a3['push'](_0x1486a3['shift']());}}}(a95_0xce7a,0x2e147));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([a95_0x564d6c(0xf5),a95_0x564d6c(0x113),a95_0x564d6c(0xf6),a95_0x564d6c(0x109)]);function a95_0x34f1(_0x3b688d,_0x2af6c4){_0x3b688d=_0x3b688d-0xed;const _0xce7a=a95_0xce7a();let _0x34f16c=_0xce7a[_0x3b688d];return _0x34f16c;}export const dbAnalyzeStatus={'service':'db','command':a95_0x564d6c(0xed),'description':a95_0x564d6c(0x103),'risk':a95_0x564d6c(0xfe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a95_0x564d6c(0x10a),'type':a95_0x564d6c(0xf8),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x4af832){const _0x1ba957=a95_0x564d6c,_0x3a8e69=_0x4af832[_0x1ba957(0x114)]('id'),_0xef7c5=_0x4af832['str'](_0x1ba957(0x10a)),_0x2f4ea3=await getDbAnalysisStatus(_0xef7c5),_0x3de3df=TERMINAL_STATUSES[_0x1ba957(0x110)](_0x2f4ea3['status']??''),{parsedJobContext:_0x219f85,jobContextParseWarning:_0x382f3a}=parseJobContext(_0x2f4ea3[_0x1ba957(0xf2)]),{requestedAnalysis:_0x47e77a,requestedAnalysisParseWarning:_0x200a5e}=parseRequestedAnalysis(_0x2f4ea3[_0x1ba957(0x119)]),_0x224a19=readAccumulatedErrorTypeCounts(_0x219f85),_0x4be302=calculateAttemptElapsedMs(_0x2f4ea3,_0x3de3df),_0x55ba56=calculateElapsedFromStart(_0x2f4ea3[_0x1ba957(0x118)],_0x2f4ea3[_0x1ba957(0xee)],_0x3de3df),_0x23b0ef=detectMultipleAttempts(_0x2f4ea3),_0x51a0b7=buildDbPageLinks(_0x4af832[_0x1ba957(0x112)],_0x3a8e69);return{'ok':!![],'data':{'dbLinkId':_0x3a8e69,'planId':_0xef7c5,'status':_0x2f4ea3,'requestedAnalysis':_0x47e77a,'requestedAnalysisParseWarning':_0x200a5e,'parsedJobContext':_0x219f85,'accumulatedErrorTypeCounts':_0x224a19,'accumulatedErrorTypeCountsAdvisory':_0x224a19?_0x1ba957(0x11a):_0x1ba957(0x108),'isTerminal':_0x3de3df,'isRetrying':_0x2f4ea3[_0x1ba957(0xff)]===_0x1ba957(0x101),'attemptElapsedMs':_0x4be302,'totalElapsedMs':_0x55ba56,'hasMultipleAttempts':_0x23b0ef,'jobContextParseWarning':_0x382f3a,..._0x51a0b7?{'links':_0x51a0b7}:{}},'message':_0x1ba957(0x10f)+_0xef7c5};}};function parseRequestedAnalysis(_0x50b303){const _0x49a525=a95_0x564d6c,_0x340ce0={'mode':_0x49a525(0x10d),'tableCount':null,'tableNames':null};if(!_0x50b303?.[_0x49a525(0x102)]())return{'requestedAnalysis':_0x340ce0,'requestedAnalysisParseWarning':_0x49a525(0x11b)};try{const _0x567a66=JSON[_0x49a525(0x111)](_0x50b303);if(!_0x567a66||typeof _0x567a66!==_0x49a525(0x100)||Array[_0x49a525(0x104)](_0x567a66))throw new Error(_0x49a525(0xf7));const _0x1baaa9=_0x567a66[_0x49a525(0x117)];if(_0x1baaa9===undefined||_0x1baaa9===null)return{'requestedAnalysis':{'mode':_0x49a525(0x10c),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x49a525(0x104)](_0x1baaa9)&&_0x1baaa9['every'](_0x26002e=>typeof _0x26002e===_0x49a525(0xf8)))return{'requestedAnalysis':{'mode':_0x1baaa9['length']>0x0?_0x49a525(0x10b):'FULL','tableCount':_0x1baaa9[_0x49a525(0xfa)],'tableNames':_0x1baaa9},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x340ce0,'requestedAnalysisParseWarning':_0x49a525(0xef)};}function a95_0xce7a(){const _0xadd2af=['inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','1243365EinhnY','number','jobContext','now','304096uqWQhI','SUCCESS','FAILED','inputParams\x20is\x20not\x20an\x20object','string','startTime','length','544DjIdZh','14917qNajes','isNaN','read','status','object','RETRYING','trim','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','isArray','accumulatedErrorTypeCounts','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','209679NuQOoy','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','CANCELLED','plan','TARGETED','FULL','UNKNOWN','836412lTppzh','Analysis\x20status\x20for\x20','has','parse','appCode','PARTIAL_SUCCESS','num','438598HxYiZH','isFinite','tableNames','firstStartTime','inputParams','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','1108880eYmjPq','costTimeMs','analyze-status','endTime'];a95_0xce7a=function(){return _0xadd2af;};return a95_0xce7a();}function readAccumulatedErrorTypeCounts(_0x5b3d81){const _0x3d04ac=a95_0x564d6c,_0xe8e9ac=_0x5b3d81?.[_0x3d04ac(0x105)];if(!_0xe8e9ac||typeof _0xe8e9ac!==_0x3d04ac(0x100)||Array[_0x3d04ac(0x104)](_0xe8e9ac))return null;if(Object['keys'](_0xe8e9ac)['length']===0x0)return null;return _0xe8e9ac;}function parseJobContext(_0x5569e1){const _0x9c4bb4=a95_0x564d6c;if(!_0x5569e1?.[_0x9c4bb4(0x102)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x288147=JSON[_0x9c4bb4(0x111)](_0x5569e1);if(_0x288147&&typeof _0x288147===_0x9c4bb4(0x100)&&!Array[_0x9c4bb4(0x104)](_0x288147))return{'parsedJobContext':_0x288147,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x9c4bb4(0x106)};}function calculateAttemptElapsedMs(_0x10c163,_0x3468a3){const _0x4213cb=a95_0x564d6c;if(typeof _0x10c163[_0x4213cb(0x11d)]===_0x4213cb(0xf1)&&Number[_0x4213cb(0x116)](_0x10c163[_0x4213cb(0x11d)])&&_0x10c163[_0x4213cb(0x11d)]>=0x0)return _0x10c163['costTimeMs'];return calculateElapsedFromStart(_0x10c163[_0x4213cb(0xf9)],_0x10c163[_0x4213cb(0xee)],_0x3468a3);}function calculateElapsedFromStart(_0x8d6fad,_0x548897,_0x48e0b5){const _0x424a76=a95_0x564d6c,_0xe88aa4=toTimestamp(_0x8d6fad);if(_0xe88aa4===null)return null;const _0x3e5ad6=toTimestamp(_0x548897),_0x256ce7=_0x3e5ad6??(_0x48e0b5?null:Date[_0x424a76(0xf3)]());if(_0x256ce7===null||_0x256ce7<_0xe88aa4)return null;return _0x256ce7-_0xe88aa4;}function detectMultipleAttempts(_0x43d015){const _0x293570=a95_0x564d6c,_0x3b1ea1=toTimestamp(_0x43d015[_0x293570(0x118)]),_0x531f3e=toTimestamp(_0x43d015['startTime']);return _0x3b1ea1!==null&&_0x531f3e!==null&&_0x3b1ea1!==_0x531f3e;}function toTimestamp(_0x33714c){const _0x3a328a=a95_0x564d6c;if(typeof _0x33714c===_0x3a328a(0xf1))return Number['isFinite'](_0x33714c)?_0x33714c:null;if(typeof _0x33714c!==_0x3a328a(0xf8)||_0x33714c[_0x3a328a(0x102)]()==='')return null;const _0x5f41df=Number(_0x33714c);if(Number['isFinite'](_0x5f41df))return _0x5f41df;const _0x3948ac=Date[_0x3a328a(0x111)](_0x33714c);return Number[_0x3a328a(0xfd)](_0x3948ac)?null:_0x3948ac;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x5453aa=a96_0x5245;(function(_0x2f761c,_0x186810){const _0x717c81=a96_0x5245,_0x458bab=_0x2f761c();while(!![]){try{const _0x58b1f9=parseInt(_0x717c81(0x1a5))/0x1*(parseInt(_0x717c81(0x197))/0x2)+-parseInt(_0x717c81(0x18a))/0x3*(-parseInt(_0x717c81(0x19b))/0x4)+-parseInt(_0x717c81(0x1a7))/0x5+-parseInt(_0x717c81(0x19a))/0x6+parseInt(_0x717c81(0x194))/0x7*(parseInt(_0x717c81(0x1a4))/0x8)+-parseInt(_0x717c81(0x19f))/0x9*(-parseInt(_0x717c81(0x191))/0xa)+-parseInt(_0x717c81(0x192))/0xb;if(_0x58b1f9===_0x186810)break;else _0x458bab['push'](_0x458bab['shift']());}catch(_0x55fd5f){_0x458bab['push'](_0x458bab['shift']());}}}(a96_0x1e22,0x53051));function a96_0x1e22(){const _0xecfba4=['/smartapi/dblink/create','str','Extra\x20JDBC-style\x20connection\x20parameters\x20string','4403976rjSfwS','1icjRaX','password','430690KOnZIM','No\x20follow-up\x20analysis','After\x20create,\x20start\x20schema\x20analysis','dbtype','dbdesc','dburl','Database\x20username','autostart','dbversion','databasePage','bool','create','dbparam','trim','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Created\x20db\x20link\x20','8.0','message','3XniZSO','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Host\x20and\x20port:\x20host:port','dbname','\x20and\x20started\x20analysis','validation','skip-connection-test','16030JelsLJ','1872948lchxwm','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','7aYYdsc','planId','string','204468FvoUon','appCode','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','3492936lkwLNZ','2090696mYAWdU','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','POST','join','18uMFevF','username'];a96_0x1e22=function(){return _0xecfba4;};return a96_0x1e22();}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a96_0x5245(_0x59bd58,_0x633aae){_0x59bd58=_0x59bd58-0x181;const _0x1e22d9=a96_0x1e22();let _0x524583=_0x1e22d9[_0x59bd58];return _0x524583;}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':a96_0x5453aa(0x183),'description':a96_0x5453aa(0x19c),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a96_0x5453aa(0x196),'required':!![],'description':a96_0x5453aa(0x186)},DB_TYPE_FLAG,{'name':'dbversion','type':a96_0x5453aa(0x196),'description':a96_0x5453aa(0x18b),'default':a96_0x5453aa(0x188)},{'name':'dburl','type':'string','required':!![],'description':a96_0x5453aa(0x18c)},{'name':'username','type':a96_0x5453aa(0x196),'required':!![],'description':a96_0x5453aa(0x1ad)},{'name':a96_0x5453aa(0x1a6),'type':a96_0x5453aa(0x196),'required':!![],'description':'Database\x20password'},{'name':'dbparam','type':'string','description':a96_0x5453aa(0x1a3)},{'name':a96_0x5453aa(0x1ab),'type':a96_0x5453aa(0x196),'description':'Human-readable\x20description'},{'name':a96_0x5453aa(0x1ae),'type':'boolean','description':a96_0x5453aa(0x1a9),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3daeac){const _0x268b4e=a96_0x5453aa,_0x3c755d=_0x3daeac[_0x268b4e(0x1a2)](_0x268b4e(0x1ac))[_0x268b4e(0x185)]();if(!validateDbUrl(_0x3c755d))throw CliErrors[_0x268b4e(0x18f)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3c755d+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0xff5103){const _0x22e77d=a96_0x5453aa,_0x45f0ca={'appCode':_0xff5103['appCode'],'dbName':_0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x18d)),'dbType':_0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x1aa)),'dbVersion':_0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x1af))||'8.0','dbUrl':_0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x1ac))['trim'](),'username':_0xff5103['str']('username'),'password':'[redacted]',..._0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x184))?{'dbParam':_0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x184))}:{},..._0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x1ab))?{'dbDesc':_0xff5103[_0x22e77d(0x1a2)](_0x22e77d(0x1ab))}:{}};return{'method':_0x22e77d(0x19d),'url':_0x22e77d(0x1a1),'body':_0x45f0ca,'description':['Create\x20dblink',_0xff5103[_0x22e77d(0x182)](_0x22e77d(0x1ae))?_0x22e77d(0x199):_0x22e77d(0x1a8)][_0x22e77d(0x19e)]('\x0a'),'connectionPreflight':{'enabled':!_0xff5103[_0x22e77d(0x182)](_0x22e77d(0x190)),'executed':![]}};},async 'execute'(_0x485466){const _0x27d087=a96_0x5453aa,_0x4a622d={'appCode':_0x485466[_0x27d087(0x198)],'dbName':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x18d)),'dbType':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x1aa)),'dbVersion':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x1af))||_0x27d087(0x188),'dbUrl':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x1ac))[_0x27d087(0x185)](),'username':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x1a0)),'password':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x1a6)),..._0x485466[_0x27d087(0x1a2)](_0x27d087(0x184))?{'dbParam':_0x485466[_0x27d087(0x1a2)]('dbparam')}:{},..._0x485466[_0x27d087(0x1a2)](_0x27d087(0x1ab))?{'dbDesc':_0x485466[_0x27d087(0x1a2)](_0x27d087(0x1ab))}:{}};!_0x485466[_0x27d087(0x182)](_0x27d087(0x190))&&await assertDbLinkConnectionPreflight(_0x4a622d);const {id:_0x3d47ea,entity:_0x54280e}=normalizeEntityWithIdResponse(await createDbLink(_0x4a622d));if(!_0x3d47ea)return{'ok':![],'message':_0x27d087(0x193),'data':sanitizeDbLinkForOutput(_0x54280e)};let _0x3d70c3,_0x44b42b;if(_0x485466[_0x27d087(0x182)](_0x27d087(0x1ae)))try{_0x3d70c3=(await startDbAnalysis(_0x3d47ea))[_0x27d087(0x195)];}catch(_0x20aa9a){_0x44b42b=_0x20aa9a instanceof Error?_0x20aa9a[_0x27d087(0x189)]:String(_0x20aa9a);}const _0x540aaa=buildDbPageLinks(_0x485466['appCode'],_0x3d47ea),_0x447ea8={'connection':sanitizeDbLinkForOutput(_0x54280e),..._0x540aaa?{'links':{'databasePage':_0x540aaa[_0x27d087(0x181)]}}:{},..._0x3d70c3?{'analysisPlanId':_0x3d70c3}:{},..._0x44b42b?{'analysisStartWarning':_0x44b42b}:{}};let _0x4d8aad;return _0x485466[_0x27d087(0x182)](_0x27d087(0x1ae))?_0x44b42b?_0x4d8aad=_0x27d087(0x187)+_0x3d47ea+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x4d8aad=_0x27d087(0x187)+_0x3d47ea+_0x27d087(0x18e):_0x4d8aad=_0x27d087(0x187)+_0x3d47ea,{'ok':!![],'data':_0x447ea8,'message':_0x4d8aad};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x3abd73=a97_0x5d14;(function(_0x123a14,_0x243c67){const _0x564589=a97_0x5d14,_0x566a76=_0x123a14();while(!![]){try{const _0x341f12=parseInt(_0x564589(0x116))/0x1+parseInt(_0x564589(0x111))/0x2*(parseInt(_0x564589(0x11b))/0x3)+-parseInt(_0x564589(0x104))/0x4+parseInt(_0x564589(0x114))/0x5+parseInt(_0x564589(0x123))/0x6*(-parseInt(_0x564589(0x117))/0x7)+-parseInt(_0x564589(0x120))/0x8*(-parseInt(_0x564589(0x119))/0x9)+parseInt(_0x564589(0x11f))/0xa;if(_0x341f12===_0x243c67)break;else _0x566a76['push'](_0x566a76['shift']());}catch(_0x19e99d){_0x566a76['push'](_0x566a76['shift']());}}}(a97_0x5f2d,0xa0fd9));function a97_0x5f2d(){const _0x18bc70=['Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','3617136iCOOHG','POST','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','DB_TABLE','Deletion\x20is\x20blocked\x20by\x20','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','datasetDependency','\x20still\x20has\x20','activeDatasetCount','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','Database\x20connection\x20','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','1398cEhjvV','delete','num','2618485cHGJJD','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','474975NnEKLz','6306468mTIgLi','\x20active\x20Dataset(s),\x20but\x20found\x20','4491CJPUrE','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','5619CWhsEk','Deleted\x20db\x20link\x20','isInteger','all','45310LfDacI','2440LNQbtE','datasets','appCode','6CAHFHb','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','number','confirm','validation','expected-dataset-count','\x20active\x20DB_TABLE\x20Dataset(s).','/smartapi/dblink/delete','high-risk-write'];a97_0x5f2d=function(){return _0x18bc70;};return a97_0x5f2d();}import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a97_0x5d14(_0x16c11a,_0x3b3c56){_0x16c11a=_0x16c11a-0x102;const _0x5f2d9b=a97_0x5f2d();let _0x5d142e=_0x5f2d9b[_0x16c11a];return _0x5d142e;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a97_0x3abd73(0x126),'type':'boolean','description':'Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count'},EXPECTED_DATASET_COUNT_FLAG={'name':a97_0x3abd73(0x128),'type':a97_0x3abd73(0x125),'description':a97_0x3abd73(0x10a)};export const dbDelete={'service':'db','command':a97_0x3abd73(0x112),'description':a97_0x3abd73(0x103),'risk':a97_0x3abd73(0x102),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xea3bab){const _0x4e31e8=a97_0x3abd73,_0x266c14=await loadDeleteImpact(_0xea3bab);return assertExpectedDatasetCount(_0xea3bab,_0x266c14[_0x4e31e8(0x10b)][_0x4e31e8(0x10d)]),{'method':_0x4e31e8(0x105),'url':_0x4e31e8(0x12a),'body':{'id':_0x266c14['id']},'description':_0x266c14['datasetDependency'][_0x4e31e8(0x10d)]>0x0?_0x4e31e8(0x109)+_0x266c14['datasetDependency']['activeDatasetCount']+_0x4e31e8(0x129):_0x4e31e8(0x110),..._0x266c14};},async 'execute'(_0x122b05){const _0x3ece30=a97_0x3abd73;if(!_0x122b05['bool'](_0x3ece30(0x126)))throw CliErrors[_0x3ece30(0x127)](_0x3ece30(0x115),_0x3ece30(0x10e));const _0x454a1f=_0x122b05[_0x3ece30(0x113)]('id'),_0x13b2bc=await loadDeleteImpact(_0x122b05),_0x13ad70=_0x13b2bc['datasetDependency'][_0x3ece30(0x10d)];assertExpectedDatasetCount(_0x122b05,_0x13ad70);if(_0x13ad70>0x0)throw CliErrors[_0x3ece30(0x127)](_0x3ece30(0x10f)+_0x454a1f+_0x3ece30(0x10c)+_0x13ad70+_0x3ece30(0x107),_0x3ece30(0x124));return await deleteDbLink(_0x454a1f),{'ok':!![],'data':{'id':_0x454a1f,'deleted':!![],'activeDatasetCount':_0x13ad70},'message':_0x3ece30(0x11c)+_0x454a1f};}};async function loadDeleteImpact(_0x502d15){const _0x3bc14b=a97_0x3abd73,_0x2f2488=_0x502d15[_0x3bc14b(0x113)]('id'),[_0x1f4610,_0x4d3e0d]=await Promise[_0x3bc14b(0x11e)]([getDbLinkInfo(_0x2f2488),listDatasets(_0x502d15[_0x3bc14b(0x122)],{'source':_0x3bc14b(0x108)})]),_0x449e79=buildDbDatasetDependency(_0x1f4610,_0x4d3e0d);return{'id':_0x2f2488,'connection':sanitizeDbLinkForOutput(_0x1f4610),'datasetDependency':_0x449e79[_0x3bc14b(0x10b)],'activeDatasetCount':_0x449e79[_0x3bc14b(0x10b)][_0x3bc14b(0x10d)],'datasets':_0x449e79[_0x3bc14b(0x121)]};}function assertExpectedDatasetCount(_0x145c88,_0x35c673){const _0x2e8db4=a97_0x3abd73,_0x198bb2=_0x145c88['flag'](_0x2e8db4(0x128));if(_0x198bb2===undefined||_0x198bb2==='')return;const _0x519661=_0x145c88['num'](_0x2e8db4(0x128));if(!Number[_0x2e8db4(0x11d)](_0x519661)||_0x519661<0x0)throw CliErrors['validation'](_0x2e8db4(0x106));if(_0x519661!==_0x35c673)throw CliErrors[_0x2e8db4(0x127)]('Expected\x20'+_0x519661+_0x2e8db4(0x118)+_0x35c673+'.',_0x2e8db4(0x11a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a98_0x4f85(){const _0x45176c=['db\x20link\x20','3942HAbNxL','datasetDependency','66hDgPKx','read','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','36390rhxqjN','dbName','7xdsgHZ','205500GfwYpI','appCode','11SAtqQZ','518704LaASaF','92YRAyat','2350XwRbBo','375080AruNMI','8083596GvFpCE','13971weDniU'];a98_0x4f85=function(){return _0x45176c;};return a98_0x4f85();}const a98_0x2a02a2=a98_0x2820;(function(_0x7de1ec,_0x15f7e5){const _0x4a8014=a98_0x2820,_0x4b9755=_0x7de1ec();while(!![]){try{const _0x40d51d=-parseInt(_0x4a8014(0xdd))/0x1+-parseInt(_0x4a8014(0xe0))/0x2+parseInt(_0x4a8014(0xe5))/0x3*(-parseInt(_0x4a8014(0xe1))/0x4)+-parseInt(_0x4a8014(0xec))/0x5*(parseInt(_0x4a8014(0xe9))/0x6)+-parseInt(_0x4a8014(0xdc))/0x7*(-parseInt(_0x4a8014(0xe3))/0x8)+parseInt(_0x4a8014(0xe7))/0x9*(parseInt(_0x4a8014(0xe2))/0xa)+parseInt(_0x4a8014(0xdf))/0xb*(parseInt(_0x4a8014(0xe4))/0xc);if(_0x40d51d===_0x15f7e5)break;else _0x4b9755['push'](_0x4b9755['shift']());}catch(_0x2b3d72){_0x4b9755['push'](_0x4b9755['shift']());}}}(a98_0x4f85,0x29da3));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a98_0x2820(_0x364ecc,_0xf097cb){_0x364ecc=_0x364ecc-0xdb;const _0x4f853b=a98_0x4f85();let _0x28208b=_0x4f853b[_0x364ecc];return _0x28208b;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a98_0x2a02a2(0xeb),'risk':a98_0x2a02a2(0xea),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x327ccd){const _0x2c5d74=a98_0x2a02a2,_0x1233cc=_0x327ccd['num']('id'),_0x2bf731=await getDbLinkInfo(_0x1233cc),_0x245936=await listDatasets(_0x2bf731[_0x2c5d74(0xde)]||_0x327ccd[_0x2c5d74(0xde)],{'source':'DB_TABLE'}),_0x6442bd=buildDbDatasetDependency(_0x2bf731,_0x245936);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x2bf731),'datasetDependency':_0x6442bd[_0x2c5d74(0xe8)]},'message':_0x2c5d74(0xe6)+_0x1233cc+':\x20'+_0x2bf731[_0x2c5d74(0xdb)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x392a(){const _0x262704=['\x20--plan\x20','validation','\x20db\x20diff-refresh-status\x20--id\x20','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','3441132bvChKR','status','5326431iZVFpf','11IFhkvm','106394udwOai','10CzTDhA','4VdThAp','39NseFkO','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','7yajfly','diff-refresh-start','num','3483608NLxScy','1185dCPxiI','7446viKPok','1963044RluWWv','2064501SIojJw','\x20--format\x20compress','traceId','trim'];a99_0x392a=function(){return _0x262704;};return a99_0x392a();}const a99_0x1df8f5=a99_0x4b84;(function(_0x346f31,_0x1f4464){const _0x342f09=a99_0x4b84,_0x1ac8ad=_0x346f31();while(!![]){try{const _0x4fad76=parseInt(_0x342f09(0x1e6))/0x1*(-parseInt(_0x342f09(0x1e7))/0x2)+-parseInt(_0x342f09(0x1db))/0x3*(-parseInt(_0x342f09(0x1e9))/0x4)+-parseInt(_0x342f09(0x1f0))/0x5*(-parseInt(_0x342f09(0x1f1))/0x6)+parseInt(_0x342f09(0x1ec))/0x7*(-parseInt(_0x342f09(0x1ef))/0x8)+parseInt(_0x342f09(0x1da))/0x9+-parseInt(_0x342f09(0x1e8))/0xa*(parseInt(_0x342f09(0x1e5))/0xb)+parseInt(_0x342f09(0x1e3))/0xc*(parseInt(_0x342f09(0x1ea))/0xd);if(_0x4fad76===_0x1f4464)break;else _0x1ac8ad['push'](_0x1ac8ad['shift']());}catch(_0x159540){_0x1ac8ad['push'](_0x1ac8ad['shift']());}}}(a99_0x392a,0x87b44));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a99_0x4b84(_0x96b124,_0x19e9c6){_0x96b124=_0x96b124-0x1da;const _0x392a16=a99_0x392a();let _0x4b845b=_0x392a16[_0x96b124];return _0x4b845b;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a99_0x1df8f5(0x1ed),'description':a99_0x1df8f5(0x1e2),'risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x420923){const _0x38d70b=a99_0x1df8f5,_0x20391b=_0x420923[_0x38d70b(0x1ee)]('id'),_0x331a76=await startDbTableDiffRefresh(_0x420923['appCode'],_0x20391b),_0x1da44a=_0x331a76[_0x38d70b(0x1dd)]?.[_0x38d70b(0x1de)]();if(!_0x1da44a)throw CliErrors[_0x38d70b(0x1e0)](_0x38d70b(0x1eb));return{'ok':!![],'data':{'dbLinkId':_0x20391b,'traceId':_0x1da44a,'status':_0x331a76[_0x38d70b(0x1e4)]??null,'query':{'command':CLI_BIN_NAME+_0x38d70b(0x1e1)+_0x20391b+_0x38d70b(0x1df)+_0x1da44a+_0x38d70b(0x1dc)}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x20391b};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a100_0x4ac3(){const _0x3258ec=['plan','RETRYING','PENDING','174HYoNmJ','4792416OJQjle','SUCCESS','RUNNING','\x20--plan\x20','UNKNOWN','11741240WwkoNc','has','FAILED','Table-diff\x20refresh\x20status\x20for\x20','diff-refresh-status','4HYuUVp','135331JadrSv','\x20db\x20diff-refresh-status\x20--id\x20','status','1036494rqSaHm','2906690hFXFhe','CANCELLED','18339prvFTS','667776uoqQNM','num','read','152CnoIOp'];a100_0x4ac3=function(){return _0x3258ec;};return a100_0x4ac3();}const a100_0x53bf66=a100_0x4bf8;(function(_0x56c968,_0x2a18d1){const _0x4d6a32=a100_0x4bf8,_0x597fe7=_0x56c968();while(!![]){try{const _0x107963=parseInt(_0x4d6a32(0xc3))/0x1+parseInt(_0x4d6a32(0xb0))/0x2*(-parseInt(_0x4d6a32(0xc2))/0x3)+parseInt(_0x4d6a32(0xbb))/0x4*(-parseInt(_0x4d6a32(0xc0))/0x5)+-parseInt(_0x4d6a32(0xb1))/0x6+-parseInt(_0x4d6a32(0xbc))/0x7*(-parseInt(_0x4d6a32(0xc6))/0x8)+parseInt(_0x4d6a32(0xbf))/0x9+parseInt(_0x4d6a32(0xb6))/0xa;if(_0x107963===_0x2a18d1)break;else _0x597fe7['push'](_0x597fe7['shift']());}catch(_0x403cd4){_0x597fe7['push'](_0x597fe7['shift']());}}}(a100_0x4ac3,0x64b48));function a100_0x4bf8(_0xab3f1d,_0x4a850a){_0xab3f1d=_0xab3f1d-0xae;const _0x4ac3d6=a100_0x4ac3();let _0x4bf888=_0x4ac3d6[_0xab3f1d];return _0x4bf888;}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([a100_0x53bf66(0xb2),a100_0x53bf66(0xb8),a100_0x53bf66(0xc1)]),RUNNING_STATUSES=new Set([a100_0x53bf66(0xaf),a100_0x53bf66(0xb3),a100_0x53bf66(0xae)]);export const dbDiffRefreshStatus={'service':'db','command':a100_0x53bf66(0xba),'description':'Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a100_0x53bf66(0xc5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a100_0x53bf66(0xc7),'type':'string','required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x372ae9){const _0x4c741c=a100_0x53bf66,_0x240e4f=_0x372ae9[_0x4c741c(0xc4)]('id'),_0x302861=_0x372ae9['str'](_0x4c741c(0xc7)),_0x204030=await getDbAnalysisStatus(_0x302861),_0x2a7069=_0x204030[_0x4c741c(0xbe)]??null,_0x140f4f=TERMINAL_STATUSES[_0x4c741c(0xb7)](_0x2a7069??''),_0x2ada71=_0x2a7069===_0x4c741c(0xb2),_0x5b80e0=_0x140f4f||RUNNING_STATUSES[_0x4c741c(0xb7)](_0x2a7069??'');return{'ok':!![],'data':{'dbLinkId':_0x240e4f,'planId':_0x302861,'status':_0x204030,'knownStatus':_0x5b80e0,'isTerminal':_0x140f4f,'isSuccessful':_0x2ada71,'query':_0x5b80e0&&!_0x140f4f?{'command':CLI_BIN_NAME+_0x4c741c(0xbd)+_0x240e4f+_0x4c741c(0xb4)+_0x302861+'\x20--format\x20compress'}:null},'message':_0x4c741c(0xb9)+_0x302861+':\x20'+(_0x2a7069??_0x4c741c(0xb5))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101_0xc47d6=a101_0x2816;(function(_0x29edc5,_0x3db714){const _0x45f8d7=a101_0x2816,_0x7223a=_0x29edc5();while(!![]){try{const _0x41791a=-parseInt(_0x45f8d7(0x7d))/0x1*(parseInt(_0x45f8d7(0x7e))/0x2)+-parseInt(_0x45f8d7(0x6e))/0x3+-parseInt(_0x45f8d7(0x82))/0x4*(parseInt(_0x45f8d7(0x6f))/0x5)+parseInt(_0x45f8d7(0x93))/0x6*(-parseInt(_0x45f8d7(0x77))/0x7)+-parseInt(_0x45f8d7(0x6d))/0x8*(parseInt(_0x45f8d7(0x74))/0x9)+parseInt(_0x45f8d7(0x84))/0xa*(parseInt(_0x45f8d7(0x8d))/0xb)+parseInt(_0x45f8d7(0x6a))/0xc*(parseInt(_0x45f8d7(0x86))/0xd);if(_0x41791a===_0x3db714)break;else _0x7223a['push'](_0x7223a['shift']());}catch(_0x580e38){_0x7223a['push'](_0x7223a['shift']());}}}(a101_0x3c9a,0x5e32e));import{getDbTableDiff}from'../../core/api-client.js';function a101_0x2816(_0x5c9ae4,_0x1f2792){_0x5c9ae4=_0x5c9ae4-0x6a;const _0x3c9afd=a101_0x3c9a();let _0x2816ee=_0x3c9afd[_0x5c9ae4];return _0x2816ee;}function a101_0x3c9a(){const _0xd89547=['42bqJbhP','datasetTableCount','Page\x20index\x20(1-based)','physicalTableCount','12BcwvKk','boolean','DELETED_TABLE','95848JdPliT','882105FdKltZ','95CxuMzY','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','MODIFIED_TABLE','num','totalCount','549vMcOpo','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','map','495593HrWbHn','number','\x20changed\x20table\x20row(s),\x20total\x20','\x20(db\x20link\x20','all','summary','746qcclvV','106JkIWjg','Page\x20size','diffType','pagesize','159756TjxHEZ','addedColumns','101540hszqpZ','diff','27108796jIougV','tableList','filter','bool','tableName','fieldDiff','table','671hRmCBZ','str','appCode','string','read','deletedColumns'];a101_0x3c9a=function(){return _0xd89547;};return a101_0x3c9a();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a101_0xc47d6(0x85),'description':a101_0xc47d6(0x70),'risk':a101_0xc47d6(0x91),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a101_0xc47d6(0x8c),'type':a101_0xc47d6(0x90),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':'number','description':a101_0xc47d6(0x95),'default':0x1},{'name':'pagesize','type':a101_0xc47d6(0x78),'description':a101_0xc47d6(0x7f),'default':0x14},{'name':a101_0xc47d6(0x7b),'type':a101_0xc47d6(0x6b),'description':a101_0xc47d6(0x75)}],async 'execute'(_0x20fdf4){const _0x3eb498=a101_0xc47d6,_0x313810=_0x20fdf4['num']('id'),_0x1e96e0=_0x20fdf4[_0x3eb498(0x89)](_0x3eb498(0x7b)),_0x5da0d2=_0x1e96e0?0x1:_0x20fdf4[_0x3eb498(0x72)]('page',0x1)||0x1,_0x1211da=_0x1e96e0?DB_TABLE_PAGE_SIZE:_0x20fdf4[_0x3eb498(0x72)](_0x3eb498(0x81),0x14)||0x14,_0x5ab9b0=_0x20fdf4[_0x3eb498(0x8e)](_0x3eb498(0x8c))||undefined,_0x599007=_0x1e96e0?await getAllDbTableDiff(getDbTableDiff,_0x20fdf4[_0x3eb498(0x8f)],_0x313810,_0x5ab9b0):await getDbTableDiff(_0x20fdf4['appCode'],_0x313810,{'pageIndex':_0x5da0d2,'pageSize':_0x1211da,'tableName':_0x5ab9b0}),_0x43572c=_0x599007[_0x3eb498(0x87)],_0x154e6e=summarizeDbTableDiff(_0x43572c),_0x46ed0f=_0x43572c[_0x3eb498(0x88)](_0x282158=>_0x282158[_0x3eb498(0x80)]==='NEW_TABLE'||_0x282158[_0x3eb498(0x80)]===_0x3eb498(0x71))[_0x3eb498(0x76)](_0x49c751=>_0x49c751[_0x3eb498(0x8a)]),_0xfab184=_0x43572c[_0x3eb498(0x88)](_0x73f07f=>_0x73f07f[_0x3eb498(0x80)]===_0x3eb498(0x6c))[_0x3eb498(0x76)](_0x20f566=>_0x20f566['tableName']),_0x148b70=_0x43572c['filter'](_0x21c5b2=>_0x21c5b2[_0x3eb498(0x80)]===_0x3eb498(0x71))[_0x3eb498(0x76)](_0x478620=>({'tableName':_0x478620[_0x3eb498(0x8a)],'addedColumns':_0x478620[_0x3eb498(0x8b)]?.[_0x3eb498(0x83)]??[],'deletedColumns':_0x478620[_0x3eb498(0x8b)]?.[_0x3eb498(0x92)]??[],'modifiedColumns':_0x478620[_0x3eb498(0x8b)]?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x313810,'page':_0x5da0d2,'pageSize':_0x1211da,'totalCount':_0x599007['totalCount'],...typeof _0x599007[_0x3eb498(0x96)]==='number'?{'physicalTableCount':_0x599007[_0x3eb498(0x96)]}:{},...typeof _0x599007[_0x3eb498(0x94)]===_0x3eb498(0x78)?{'datasetTableCount':_0x599007['datasetTableCount']}:{},..._0x599007[_0x3eb498(0x7c)]?{'summary':_0x599007['summary']}:{},'summaryByType':_0x154e6e,'toAnalyzeTables':_0x46ed0f,'deletedTables':_0xfab184,'modifiedFieldDiffs':_0x148b70,'tables':_0x43572c},'message':_0x43572c['length']+_0x3eb498(0x79)+_0x599007[_0x3eb498(0x73)]+_0x3eb498(0x7a)+_0x313810+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x373ac3,_0x4abeee){const _0xcfb5b6=a102_0x52fb,_0x3bf7bb=_0x373ac3();while(!![]){try{const _0x1c9865=-parseInt(_0xcfb5b6(0x85))/0x1*(parseInt(_0xcfb5b6(0x8c))/0x2)+parseInt(_0xcfb5b6(0x8b))/0x3*(parseInt(_0xcfb5b6(0x8e))/0x4)+parseInt(_0xcfb5b6(0x89))/0x5+-parseInt(_0xcfb5b6(0x88))/0x6+-parseInt(_0xcfb5b6(0x86))/0x7*(-parseInt(_0xcfb5b6(0x8d))/0x8)+-parseInt(_0xcfb5b6(0x87))/0x9+parseInt(_0xcfb5b6(0x84))/0xa*(-parseInt(_0xcfb5b6(0x8a))/0xb);if(_0x1c9865===_0x4abeee)break;else _0x3bf7bb['push'](_0x3bf7bb['shift']());}catch(_0x1d0421){_0x3bf7bb['push'](_0x3bf7bb['shift']());}}}(a102_0xbbcb,0xec0b2));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a102_0x52fb(_0x3b4517,_0x1e0c2c){_0x3b4517=_0x3b4517-0x84;const _0xbbcb1d=a102_0xbbcb();let _0x52fb2b=_0xbbcb1d[_0x3b4517];return _0x52fb2b;}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a102_0xbbcb(){const _0x15e99d=['148sUdNRK','30ezFAOY','134662yrpMyj','7OnMhVi','3124296JKitFw','3542022flUVfj','8411765XfzdvV','4975366YargHa','17817JRyIYN','2WkFGwR','11950392JTseBZ'];a102_0xbbcb=function(){return _0x15e99d;};return a102_0xbbcb();}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
|
+
function a103_0x13dc(){const _0x35c8ab=['pagesize','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode','read','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','number','Found\x20','map','4046mjMwFF','2373xiCNhH','Page\x20size','102881rbrafk','DB_TABLE','1281990rhtPYd','932gfhMXQ','num','91MjHJQP','17585ugJqof','list','length','datasetDependency','\x20database\x20connection(s)','680670WbzKXH','25608tJtiWA','63LRCDft','684XWIiEu','5990856qHluXW','page','Page\x20index\x20(1-based)'];a103_0x13dc=function(){return _0x35c8ab;};return a103_0x13dc();}const a103_0x3006b0=a103_0x4f9d;(function(_0x27bc7b,_0x18d889){const _0x134457=a103_0x4f9d,_0x473b07=_0x27bc7b();while(!![]){try{const _0xa7e6ba=parseInt(_0x134457(0xf8))/0x1+-parseInt(_0x134457(0xf5))/0x2*(parseInt(_0x134457(0xf6))/0x3)+-parseInt(_0x134457(0xfb))/0x4*(-parseInt(_0x134457(0xfe))/0x5)+-parseInt(_0x134457(0x103))/0x6*(-parseInt(_0x134457(0xfd))/0x7)+-parseInt(_0x134457(0x107))/0x8+parseInt(_0x134457(0x105))/0x9*(parseInt(_0x134457(0xfa))/0xa)+-parseInt(_0x134457(0x104))/0xb*(parseInt(_0x134457(0x106))/0xc);if(_0xa7e6ba===_0x18d889)break;else _0x473b07['push'](_0x473b07['shift']());}catch(_0x23f92a){_0x473b07['push'](_0x473b07['shift']());}}}(a103_0x13dc,0xc66e6));function a103_0x4f9d(_0x57b552,_0x234310){_0x57b552=_0x57b552-0xf1;const _0x13dc54=a103_0x13dc();let _0x4f9dba=_0x13dc54[_0x57b552];return _0x4f9dba;}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':a103_0x3006b0(0xff),'description':a103_0x3006b0(0xf1),'risk':a103_0x3006b0(0x10d),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a103_0x3006b0(0x108),'type':a103_0x3006b0(0xf2),'description':a103_0x3006b0(0x109),'default':0x1},{'name':'pagesize','type':a103_0x3006b0(0xf2),'description':a103_0x3006b0(0xf7),'default':0x64}],async 'execute'(_0x366641){const _0x7fdb66=a103_0x3006b0,_0x82d7e6=_0x366641['num'](_0x7fdb66(0x108),0x1)||0x1,_0x5ac732=_0x366641[_0x7fdb66(0xfc)](_0x7fdb66(0x10a),0x64)||0x64,[{items:_0x463efd,paging:_0x5a50e8},_0x185df2]=await Promise['all']([listDbLinks(_0x366641['appCode'],{'currentPage':_0x82d7e6,'pageSize':_0x5ac732}),listDatasets(_0x366641[_0x7fdb66(0x10c)],{'source':_0x7fdb66(0xf9)})]),_0x415676=_0x463efd[_0x7fdb66(0xf4)](_0x72b5cc=>({...sanitizeDbLinkForOutput(_0x72b5cc),'datasetDependency':buildDbDatasetDependency(_0x72b5cc,_0x185df2)[_0x7fdb66(0x101)]})),_0x4d947b=_0x5a50e8?_0x5a50e8:{'currentPage':_0x82d7e6,'pageSize':_0x5ac732,'rowsOnPage':_0x415676[_0x7fdb66(0x100)],'totalCount':null,'note':_0x7fdb66(0x10b)};return{'ok':!![],'data':{'connections':_0x415676,'paging':_0x4d947b},'message':_0x7fdb66(0xf3)+_0x415676['length']+_0x7fdb66(0x102)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdfc1ef,_0x2a5f8d){const _0xb27596=a104_0x1a4b,_0x23c07e=_0xdfc1ef();while(!![]){try{const _0x40ba9c=parseInt(_0xb27596(0x1e4))/0x1*(parseInt(_0xb27596(0x1ed))/0x2)+-parseInt(_0xb27596(0x1da))/0x3*(parseInt(_0xb27596(0x1e0))/0x4)+-parseInt(_0xb27596(0x1f0))/0x5*(-parseInt(_0xb27596(0x1e2))/0x6)+-parseInt(_0xb27596(0x1eb))/0x7+parseInt(_0xb27596(0x1f2))/0x8+parseInt(_0xb27596(0x1ef))/0x9*(parseInt(_0xb27596(0x1de))/0xa)+-parseInt(_0xb27596(0x1db))/0xb;if(_0x40ba9c===_0x2a5f8d)break;else _0x23c07e['push'](_0x23c07e['shift']());}catch(_0x312a3e){_0x23c07e['push'](_0x23c07e['shift']());}}}(a104_0x5d8f,0xd8dda));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';function a104_0x1a4b(_0x2c1583,_0x262a4b){_0x2c1583=_0x2c1583-0x1da;const _0x5d8f6a=a104_0x5d8f();let _0x1a4b3d=_0x5d8f6a[_0x2c1583];return _0x1a4b3d;}import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x5f10e1){const _0x42219a=a104_0x1a4b,_0x54e501=_0x5f10e1['toLowerCase']();if(_0x54e501==='password'||_0x54e501===_0x42219a(0x1dc)||_0x54e501===_0x42219a(0x1e1))return!![];if(_0x54e501[_0x42219a(0x1e9)](_0x42219a(0x1e6))||_0x54e501['includes'](_0x42219a(0x1df))||_0x54e501[_0x42219a(0x1e9)](_0x42219a(0x1e5)))return!![];if(_0x54e501[_0x42219a(0x1e9)]('privatekey')||_0x54e501[_0x42219a(0x1e9)](_0x42219a(0x1f4)))return!![];if(_0x54e501==='authorization'||_0x54e501==='connectionstring'||_0x54e501==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x428179){const _0x174723=a104_0x1a4b,_0x12eb2d={..._0x428179};delete _0x12eb2d[_0x174723(0x1dd)];for(const _0x33d944 of Object['keys'](_0x12eb2d)){if(!shouldRedactKey(_0x33d944))continue;const _0x140609=_0x12eb2d[_0x33d944];_0x140609!=null&&String(_0x140609)['length']>0x0&&(_0x12eb2d[_0x33d944]=_0x174723(0x1e8));}return _0x12eb2d;}export function sanitizeDbLinkList(_0x43f66b){const _0x224380=a104_0x1a4b;return _0x43f66b[_0x224380(0x1ea)](_0x1430d1=>sanitizeDbLinkForOutput(_0x1430d1));}export function buildDbDatasetDependency(_0x1dd6b0,_0x1fe764){const _0x159a82=a104_0x1a4b,_0x224bda=_0x1fe764[_0x159a82(0x1ee)](_0xa9d0c5=>Number(_0xa9d0c5[_0x159a82(0x1f7)]?.['dbId'])===Number(_0x1dd6b0['id']))[_0x159a82(0x1ea)](_0x417a45=>({'id':_0x417a45['id'],'code':_0x417a45['code'],'name':_0x417a45[_0x159a82(0x1f1)],..._0x417a45[_0x159a82(0x1f7)]?.[_0x159a82(0x1e3)]?{'tableName':_0x417a45[_0x159a82(0x1f7)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x224bda['length']>0x0,'activeDatasetCount':_0x224bda['length']},'datasets':_0x224bda};}export async function assertDbLinkConnectionPreflight(_0x354f4d){const _0x4e8fd8=a104_0x1a4b,_0x26c77a=await testDbLinkConfigConnect(_0x354f4d);if(_0x26c77a!==!![])throw CliErrors[_0x4e8fd8(0x1f6)]('Database\x20connection\x20preflight\x20failed.',_0x4e8fd8(0x1f5));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x293f4b){const _0x49d359=a104_0x1a4b,_0x26a88c=_0x293f4b[_0x49d359(0x1f8)]();if(!_0x26a88c)return![];return DB_URL_PATTERN[_0x49d359(0x1ec)](_0x26a88c);}function a104_0x5d8f(){const _0x579819=['secret','number','[redacted]','includes','map','9489536selKVU','test','651074TeRLCd','filter','369ynPOGg','35BaEvEg','name','6750112MBFlvp','/data/database','accesskey','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','apiError','dbtableConfig','trim','279WrUeSi','2549074FTVdhl','passwd','hasAvailableDo','333490xRkyUA','token','68248mQacuK','dbpassword','1028814ZMrsCM','tableName','2cZrfJu','credential'];a104_0x5d8f=function(){return _0x579819;};return a104_0x5d8f();}export function buildDbPageLinks(_0x313e81,_0x4993a6){const _0x1d245b=a104_0x1a4b,_0x57f5e1=_0x313e81?.[_0x1d245b(0x1f8)]();if(!_0x57f5e1)return undefined;const _0x411eb5=typeof _0x4993a6===_0x1d245b(0x1e7)?String(_0x4993a6):String(_0x4993a6??'')['trim']();if(!_0x411eb5)return undefined;const _0x9f0142=Number(_0x411eb5);if(!Number['isFinite'](_0x9f0142)||_0x9f0142<=0x0)return undefined;const _0x1917ff=getAppBaseUrl(_0x57f5e1),_0x5d50b2=encodeURIComponent(String(_0x9f0142));return{'databasePage':_0x1917ff+_0x1d245b(0x1f3),'erPage':_0x1917ff+'/data/er?dbId='+_0x5d50b2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a105_0xa58a9b=a105_0x1c7e;function a105_0xe30a(){const _0x286a72=['fromEntries','4706124tbwEYg','\x20row(s).','datasetTableCount','157436gwAldD','NEW_TABLE','filter','1731216HwtSnR','diffType','map','4048pNbqyn','2317WmwTkH','tableName','2353896AsZdUS','summary','tableList','5qmAWds','size','length','physicalTableCount','set','totalCount','validation','\x20of\x20','1166706rHRIwM','332807oKRNgo','ALREADY_ANALYZED'];a105_0xe30a=function(){return _0x286a72;};return a105_0xe30a();}(function(_0x16693c,_0x3789ed){const _0x9948f5=a105_0x1c7e,_0x56483a=_0x16693c();while(!![]){try{const _0x38861f=-parseInt(_0x9948f5(0x7b))/0x1+-parseInt(_0x9948f5(0x66))/0x2+parseInt(_0x9948f5(0x7a))/0x3+-parseInt(_0x9948f5(0x69))/0x4+parseInt(_0x9948f5(0x72))/0x5*(parseInt(_0x9948f5(0x7e))/0x6)+-parseInt(_0x9948f5(0x6d))/0x7*(parseInt(_0x9948f5(0x6c))/0x8)+parseInt(_0x9948f5(0x6f))/0x9;if(_0x38861f===_0x3789ed)break;else _0x56483a['push'](_0x56483a['shift']());}catch(_0x5eba14){_0x56483a['push'](_0x56483a['shift']());}}}(a105_0xe30a,0x67449));function a105_0x1c7e(_0xba602b,_0x89b51e){_0xba602b=_0xba602b-0x64;const _0xe30a4c=a105_0xe30a();let _0x1c7eae=_0xe30a4c[_0xba602b];return _0x1c7eae;}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a105_0xa58a9b(0x67),'MODIFIED_TABLE','DELETED_TABLE',a105_0xa58a9b(0x7c)];export function summarizeDbTableDiff(_0x772f25){const _0x547240=a105_0xa58a9b;return Object[_0x547240(0x7d)](DB_TABLE_DIFF_TYPES[_0x547240(0x6b)](_0x2ebf6e=>[_0x2ebf6e,_0x772f25[_0x547240(0x68)](_0x5cea73=>_0x5cea73[_0x547240(0x6a)]===_0x2ebf6e)['length']]));}export async function getAllDbTableDiff(_0x57d7a0,_0x50c79c,_0x51133a,_0x3db122){const _0xaf9ae8=a105_0xa58a9b,_0x9b0c47=new Map();let _0x28ad3c=0x1,_0x275e8c=null;while(!![]){_0x275e8c=await _0x57d7a0(_0x50c79c,_0x51133a,{'pageIndex':_0x28ad3c,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3db122});const _0x1f0faa=_0x9b0c47['size'];for(const _0x3b5859 of _0x275e8c[_0xaf9ae8(0x71)]){_0x9b0c47[_0xaf9ae8(0x76)](_0x3b5859[_0xaf9ae8(0x6e)],_0x3b5859);}if(_0x9b0c47[_0xaf9ae8(0x73)]>=_0x275e8c[_0xaf9ae8(0x77)])break;if(_0x275e8c[_0xaf9ae8(0x71)][_0xaf9ae8(0x74)]===0x0||_0x9b0c47[_0xaf9ae8(0x73)]===_0x1f0faa)throw CliErrors[_0xaf9ae8(0x78)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x9b0c47['size']+_0xaf9ae8(0x79)+_0x275e8c[_0xaf9ae8(0x77)]+_0xaf9ae8(0x64));_0x28ad3c+=0x1;}return{'totalCount':_0x275e8c?.['totalCount']??0x0,...typeof _0x275e8c?.[_0xaf9ae8(0x75)]==='number'?{'physicalTableCount':_0x275e8c[_0xaf9ae8(0x75)]}:{},...typeof _0x275e8c?.[_0xaf9ae8(0x65)]==='number'?{'datasetTableCount':_0x275e8c[_0xaf9ae8(0x65)]}:{},..._0x275e8c?.[_0xaf9ae8(0x70)]?{'summary':_0x275e8c[_0xaf9ae8(0x70)]}:{},'tableList':[..._0x9b0c47['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x2abee3=a106_0x2c21;(function(_0x230dc6,_0x37935f){const _0x433b15=a106_0x2c21,_0x1a2dda=_0x230dc6();while(!![]){try{const _0xb11288=parseInt(_0x433b15(0xf3))/0x1*(parseInt(_0x433b15(0xef))/0x2)+parseInt(_0x433b15(0xf5))/0x3*(-parseInt(_0x433b15(0xf1))/0x4)+parseInt(_0x433b15(0xf9))/0x5+-parseInt(_0x433b15(0xed))/0x6+parseInt(_0x433b15(0xf6))/0x7+-parseInt(_0x433b15(0xfe))/0x8+parseInt(_0x433b15(0xeb))/0x9;if(_0xb11288===_0x37935f)break;else _0x1a2dda['push'](_0x1a2dda['shift']());}catch(_0x4bdfcc){_0x1a2dda['push'](_0x1a2dda['shift']());}}}(a106_0x2d59,0x251c9));function a106_0x2c21(_0x5f3af6,_0x5dd02e){_0x5f3af6=_0x5f3af6-0xea;const _0x2d598b=a106_0x2d59();let _0x2c2143=_0x2d598b[_0x5f3af6];return _0x2c2143;}import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a106_0x2d59(){const _0x592324=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','129hhDZgF','862834GBZxnL','\x20(db\x20link\x20','read','61410UrnsaS','str','totalCount','num','summary','1087704uCFpin','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','number','length','datasetTableCount','3378465btMWGD','table','269118sWfJSz','tableList','2wRDFnx','tables','25964BIAihg','physicalTableCount','101009aEamcS'];a106_0x2d59=function(){return _0x592324;};return a106_0x2d59();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a106_0x2abee3(0xf0),'description':a106_0x2abee3(0xff),'risk':a106_0x2abee3(0xf8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a106_0x2abee3(0xec),'type':'string','description':a106_0x2abee3(0xf4)}],async 'execute'(_0xe6b37b){const _0x5648ef=a106_0x2abee3,_0x59751c=_0xe6b37b[_0x5648ef(0xfc)]('id'),_0x4204db=_0xe6b37b[_0x5648ef(0xfa)](_0x5648ef(0xec))||undefined,_0x206314=await getAllDbTableDiff(getDbTableComparisonPage,_0xe6b37b['appCode'],_0x59751c,_0x4204db),_0x47f1d6=_0x206314[_0x5648ef(0xee)];return{'ok':!![],'data':{'dbLinkId':_0x59751c,'totalCount':_0x206314['totalCount'],...typeof _0x206314[_0x5648ef(0xf2)]===_0x5648ef(0x100)?{'physicalTableCount':_0x206314[_0x5648ef(0xf2)]}:{},...typeof _0x206314[_0x5648ef(0xea)]==='number'?{'datasetTableCount':_0x206314[_0x5648ef(0xea)]}:{},..._0x206314[_0x5648ef(0xfd)]?{'summary':_0x206314[_0x5648ef(0xfd)]}:{},'summaryByType':summarizeDbTableDiff(_0x47f1d6),'tables':_0x47f1d6},'message':_0x47f1d6[_0x5648ef(0x101)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x206314[_0x5648ef(0xfb)]+_0x5648ef(0xf7)+_0x59751c+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x11da10=a107_0x5e67;function a107_0x5e67(_0x218794,_0x5ad0fa){_0x218794=_0x218794-0xe7;const _0x3c0f30=a107_0x3c0f();let _0x5e6779=_0x3c0f30[_0x218794];return _0x5e6779;}(function(_0x5eb2c8,_0x5c29cf){const _0x397af6=a107_0x5e67,_0x43cbca=_0x5eb2c8();while(!![]){try{const _0x123154=parseInt(_0x397af6(0xea))/0x1*(parseInt(_0x397af6(0xfb))/0x2)+parseInt(_0x397af6(0xec))/0x3+parseInt(_0x397af6(0xf4))/0x4*(parseInt(_0x397af6(0xf8))/0x5)+-parseInt(_0x397af6(0xf1))/0x6+parseInt(_0x397af6(0xee))/0x7+-parseInt(_0x397af6(0xf0))/0x8+-parseInt(_0x397af6(0xf6))/0x9;if(_0x123154===_0x5c29cf)break;else _0x43cbca['push'](_0x43cbca['shift']());}catch(_0x37448e){_0x43cbca['push'](_0x43cbca['shift']());}}}(a107_0x3c0f,0x91a8d));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a107_0x3c0f(){const _0x163efb=['\x20(see\x20data.result)','msg','4afiJdo','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','12606741NbYrRP','Connection\x20OK\x20for\x20db\x20link\x20','425695sAAWmz','slice','test','98834dVzOcc','data','object','length','6ZjJWOU','keys','3523779uGFBav','num','5628644flpqRa','message','768192krqVrE','1601592AIAWCo'];a107_0x3c0f=function(){return _0x163efb;};return a107_0x3c0f();}function summarizeTestConnectResult(_0x553576){const _0x116ad2=a107_0x5e67;if(_0x553576===!![]||_0x553576===![])return{'success':_0x553576};if(_0x553576===null||_0x553576===undefined)return{'type':typeof _0x553576};if(typeof _0x553576!==_0x116ad2(0xe8))return{'type':typeof _0x553576};const _0x49dd8a=_0x553576,_0x9c53e6=['success',_0x116ad2(0xef),'code','error',_0x116ad2(0xf3),_0x116ad2(0xe7)],_0x5aa98={};for(const _0x14f413 of _0x9c53e6){if(_0x14f413 in _0x49dd8a)_0x5aa98[_0x14f413]=_0x49dd8a[_0x14f413];}return Object['keys'](_0x5aa98)[_0x116ad2(0xe9)]===0x0&&(_0x5aa98[_0x116ad2(0xeb)]=Object['keys'](_0x49dd8a)[_0x116ad2(0xf9)](0x0,0x14)),_0x5aa98;}export const dbTest={'service':'db','command':a107_0x11da10(0xfa),'description':a107_0x11da10(0xf5),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x54bec4){const _0x1f3004=a107_0x11da10,_0x10056b=_0x54bec4[_0x1f3004(0xed)]('id'),_0x9f72cf=await testDbLinkConnect(_0x10056b),_0x1af2ba=_0x9f72cf===!![]||typeof _0x9f72cf===_0x1f3004(0xe8)&&_0x9f72cf!==null&&_0x9f72cf['success']===!![],_0x354ee8=summarizeTestConnectResult(_0x9f72cf);return{'ok':!![],'data':{'id':_0x10056b,'connected':Boolean(_0x1af2ba),'result':_0x354ee8},'message':_0x1af2ba?_0x1f3004(0xf7)+_0x10056b:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x10056b+_0x1f3004(0xf2)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x5c0128=a108_0x8919;(function(_0x478940,_0x5db3ad){const _0x1761fc=a108_0x8919,_0x145c2e=_0x478940();while(!![]){try{const _0x5849b2=-parseInt(_0x1761fc(0x143))/0x1+-parseInt(_0x1761fc(0x148))/0x2*(-parseInt(_0x1761fc(0x144))/0x3)+parseInt(_0x1761fc(0x145))/0x4*(parseInt(_0x1761fc(0x150))/0x5)+parseInt(_0x1761fc(0x159))/0x6+parseInt(_0x1761fc(0x154))/0x7+-parseInt(_0x1761fc(0x15b))/0x8+-parseInt(_0x1761fc(0x151))/0x9;if(_0x5849b2===_0x5db3ad)break;else _0x145c2e['push'](_0x145c2e['shift']());}catch(_0x2d0a5f){_0x145c2e['push'](_0x145c2e['shift']());}}}(a108_0x1c18,0x5cfb5));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a108_0x1c18(){const _0x1398fa=['has','dburl','username','dbParam','2323404FrkRcq','trim','1336696nFpOnB','dbdesc','New\x20host:port','validation','num','skip-connection-test','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','str','New\x20username','update','New\x20connection\x20parameter\x20string','password','dbName','648880ncSDUe','259899KPzYxH','6692ygcRjI','dbDesc','bool','2DTYleB','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20description','[redacted]','New\x20database\x20name','dbUrl','dbname','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','615NzuBde','677394cNpRny','string','dbparam','4147080gpkVyD'];a108_0x1c18=function(){return _0x1398fa;};return a108_0x1c18();}function a108_0x8919(_0x33fdf9,_0x3e86f0){_0x33fdf9=_0x33fdf9-0x136;const _0x1c183d=a108_0x1c18();let _0x8919b5=_0x1c183d[_0x33fdf9];return _0x8919b5;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a108_0x5c0128(0x14b)]);function mergeDbLinkUpdate(_0xad4966,_0x2bfe7e){const _0x7296e6=a108_0x5c0128,_0x38e389={..._0xad4966},_0x222ce2=_0x2bfe7e['str'](_0x7296e6(0x141));if(_0x222ce2&&MASKED_PASSWORD_VALUES[_0x7296e6(0x155)](_0x222ce2))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x222ce2&&MASKED_PASSWORD_VALUES[_0x7296e6(0x155)](String(_0xad4966['password']??'')))throw CliErrors[_0x7296e6(0x138)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3af4a9=_0x2bfe7e[_0x7296e6(0x13d)]('dbname');if(_0x3af4a9)_0x38e389[_0x7296e6(0x142)]=_0x3af4a9;const _0x2f9bfc=_0x2bfe7e['str'](_0x7296e6(0x156));if(_0x2f9bfc)_0x38e389[_0x7296e6(0x14d)]=_0x2f9bfc[_0x7296e6(0x15a)]();const _0x3a4016=_0x2bfe7e['str'](_0x7296e6(0x157));if(_0x3a4016)_0x38e389[_0x7296e6(0x157)]=_0x3a4016;if(_0x222ce2)_0x38e389['password']=_0x222ce2;const _0x5b5844=_0x2bfe7e[_0x7296e6(0x13d)](_0x7296e6(0x153));if(_0x5b5844)_0x38e389[_0x7296e6(0x158)]=_0x5b5844;const _0x19dd04=_0x2bfe7e[_0x7296e6(0x13d)](_0x7296e6(0x136));if(_0x19dd04)_0x38e389[_0x7296e6(0x146)]=_0x19dd04;return _0x38e389;}export const dbUpdate={'service':'db','command':a108_0x5c0128(0x13f),'description':a108_0x5c0128(0x14f),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a108_0x5c0128(0x14e),'type':'string','description':a108_0x5c0128(0x14c)},{'name':a108_0x5c0128(0x156),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x137)},{'name':a108_0x5c0128(0x157),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x13e)},{'name':a108_0x5c0128(0x141),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x149)},{'name':'dbparam','type':'string','description':a108_0x5c0128(0x140)},{'name':'dbdesc','type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x14a)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x75dd34){const _0x156511=a108_0x5c0128,_0xe116f6=_0x75dd34[_0x156511(0x13d)]('dburl');if(_0xe116f6&&!validateDbUrl(_0xe116f6[_0x156511(0x15a)]()))throw CliErrors[_0x156511(0x138)](_0x156511(0x13b)+_0xe116f6+'\x22');},async 'dryRun'(_0x52325f){const _0x328ff0=a108_0x5c0128,_0x3c56b3=_0x52325f[_0x328ff0(0x139)]('id'),_0x5dd0d6=await getDbLinkInfo(_0x3c56b3),_0x18155a=mergeDbLinkUpdate(_0x5dd0d6,_0x52325f),_0xcdc957=sanitizeDbLinkForOutput(_0x18155a);return{'method':'POST','url':'/smartapi/dblink/update','body':_0xcdc957,'description':_0x328ff0(0x13c),'connectionPreflight':{'enabled':!_0x52325f[_0x328ff0(0x147)](_0x328ff0(0x13a)),'executed':![]}};},async 'execute'(_0x43853a){const _0x574907=a108_0x5c0128,_0x16317b=_0x43853a[_0x574907(0x139)]('id'),_0xc88eec=await getDbLinkInfo(_0x16317b),_0x37446a=mergeDbLinkUpdate(_0xc88eec,_0x43853a);!_0x43853a[_0x574907(0x147)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x37446a);const {id:_0x5db32c,entity:_0x2f81dd}=normalizeEntityWithIdResponse(await updateDbLink(_0x37446a));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2f81dd),'message':'Updated\x20db\x20link\x20'+(_0x5db32c??_0x16317b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37acf0,_0xf85e25){const _0x33b9de=a109_0x3197,_0x49fb07=_0x37acf0();while(!![]){try{const _0x32855e=parseInt(_0x33b9de(0x1f8))/0x1+-parseInt(_0x33b9de(0x1f4))/0x2*(parseInt(_0x33b9de(0x1fb))/0x3)+-parseInt(_0x33b9de(0x1fa))/0x4+-parseInt(_0x33b9de(0x1fc))/0x5*(parseInt(_0x33b9de(0x1f5))/0x6)+-parseInt(_0x33b9de(0x1fd))/0x7+-parseInt(_0x33b9de(0x1f9))/0x8*(-parseInt(_0x33b9de(0x1f6))/0x9)+-parseInt(_0x33b9de(0x1f7))/0xa;if(_0x32855e===_0xf85e25)break;else _0x49fb07['push'](_0x49fb07['shift']());}catch(_0x220a4d){_0x49fb07['push'](_0x49fb07['shift']());}}}(a109_0x486f,0x1c5b5));function a109_0x3197(_0x5d098b,_0xf2a126){_0x5d098b=_0x5d098b-0x1f4;const _0x486f96=a109_0x486f();let _0x319722=_0x486f96[_0x5d098b];return _0x319722;}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a109_0x486f(){const _0xd5c63b=['761400jslNNh','219288GBiNZC','3464KBMsyX','197100TZFkWc','153wFCRYZ','18295feVair','636916wegSfn','592LLRvin','114ZUZdgi','4113qtVyTX'];a109_0x486f=function(){return _0xd5c63b;};return a109_0x486f();}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x5ecea4=a110_0x5b97;(function(_0x78c582,_0x59d797){const _0x1ddf89=a110_0x5b97,_0x330ec3=_0x78c582();while(!![]){try{const _0x129be2=-parseInt(_0x1ddf89(0xff))/0x1+parseInt(_0x1ddf89(0xe8))/0x2*(-parseInt(_0x1ddf89(0xfe))/0x3)+parseInt(_0x1ddf89(0xfa))/0x4*(-parseInt(_0x1ddf89(0xf6))/0x5)+parseInt(_0x1ddf89(0x101))/0x6*(parseInt(_0x1ddf89(0xf1))/0x7)+parseInt(_0x1ddf89(0xe9))/0x8+-parseInt(_0x1ddf89(0xea))/0x9*(-parseInt(_0x1ddf89(0xf7))/0xa)+parseInt(_0x1ddf89(0xe1))/0xb;if(_0x129be2===_0x59d797)break;else _0x330ec3['push'](_0x330ec3['shift']());}catch(_0x2254d2){_0x330ec3['push'](_0x330ec3['shift']());}}}(a110_0x17a6,0x650c5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a110_0x5b97(_0x2d92f6,_0x1ab923){_0x2d92f6=_0x2d92f6-0xdd;const _0x17a6ed=a110_0x17a6();let _0x5b9717=_0x17a6ed[_0x2d92f6];return _0x5b9717;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a110_0x5ecea4(0xf0),CONFIRM_FLAG={'name':a110_0x5ecea4(0xf8),'type':'boolean','description':a110_0x5ecea4(0xe0)};export const deploymentSyncAll={'service':a110_0x5ecea4(0xe7),'command':a110_0x5ecea4(0xde),'description':a110_0x5ecea4(0xeb),'risk':a110_0x5ecea4(0xf3),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x5ecea4(0xec),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1e546c){const _0x5d6280=a110_0x5ecea4;return asDryRunResult(buildPreview(_0x1e546c['appCode']),{'method':'POST','url':SUBMIT_PATH,'description':_0x5d6280(0xee)});},async 'execute'(_0x5baf94){const _0x480087=a110_0x5ecea4;if(!_0x5baf94[_0x480087(0xdf)](_0x480087(0xf8)))throw CliErrors['validation'](_0x480087(0xf5),_0x480087(0xe4));try{const _0x22126e=await submitDeploymentMetadataSyncAll({'appCode':_0x5baf94['appCode']});if(_0x22126e[_0x480087(0xe3)]==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5baf94[_0x480087(0xe2)],'submitted':![],'outcome':'not_needed'},'message':_0x480087(0x102)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5baf94['appCode'],'submitted':!![],'outcome':_0x480087(0xe5),'jobId':_0x22126e[_0x480087(0xdd)][_0x480087(0xfc)],'status':_0x22126e['job'][_0x480087(0xf2)]},'message':_0x480087(0xf9)+_0x22126e[_0x480087(0xdd)][_0x480087(0xfc)]+'.'};}catch(_0x15205c){if(!isPlatformTransportFailure(_0x15205c))throw _0x15205c;const _0x40bee0=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x480087(0xf4),_0x480087(0xe6));Object[_0x480087(0xfb)](_0x40bee0,_0x480087(0xef),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x5baf94[_0x480087(0xe2)],'submitted':null,'outcome':_0x480087(0x100)}});throw _0x40bee0;}}};function a110_0x17a6(){const _0x3a1d86=['jobId','application_deployment_sync','123FdYKGK','625221dViIPW','unknown','48ItLxEr','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','job','sync-all','bool','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','20449187PRbvgT','appCode','outcome','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','submitted','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment','36154KuIEue','917936olMQaA','9eBZAoM','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','all_server_supported_metadata','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','data','/smartapi/data-sync/submit','167048nZJgYB','status','write','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','2526495xhhWfH','1208990PQRPhA','confirm','Submitted\x20deployment\x20synchronization\x20job\x20','4oBthJC','defineProperty'];a110_0x17a6=function(){return _0x3a1d86;};return a110_0x17a6();}function buildPreview(_0x1e064c){const _0xf749cb=a110_0x5ecea4;return{'operation':_0xf749cb(0xfd),'selector':{'appCode':_0x1e064c,'scope':_0xf749cb(0xed)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a111_0x1d041f=a111_0x4199;function a111_0x14b0(){const _0x24544d=['List\x20application\x20deployment\x20synchronization\x20jobs','isSafeInteger','validation','string','num','str','108426VPZSxG','1535qUqIdl','5484661kCEOpa','Page\x20number','8473580jIWUxJ','806544yqtAhR','page-size','Items\x20per\x20page\x20(maximum\x20100)','status','22325VTeZqd','6kNNcMI','--current-page\x20must\x20be\x20a\x20positive\x20integer.','length','number','appCode','read','Optional\x20server-defined\x20job\x20status\x20filter','46KjbEbM','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','deployment','2964PNSkwq','3143176biLbwx','current-page'];a111_0x14b0=function(){return _0x24544d;};return a111_0x14b0();}(function(_0x2c4fcf,_0x43e001){const _0x1056d5=a111_0x4199,_0x2f95e5=_0x2c4fcf();while(!![]){try{const _0x22ee72=parseInt(_0x1056d5(0x199))/0x1*(parseInt(_0x1056d5(0x1a1))/0x2)+parseInt(_0x1056d5(0x190))/0x3+-parseInt(_0x1056d5(0x1a4))/0x4*(parseInt(_0x1056d5(0x191))/0x5)+parseInt(_0x1056d5(0x19a))/0x6*(parseInt(_0x1056d5(0x192))/0x7)+parseInt(_0x1056d5(0x1a5))/0x8+-parseInt(_0x1056d5(0x195))/0x9+-parseInt(_0x1056d5(0x194))/0xa;if(_0x22ee72===_0x43e001)break;else _0x2f95e5['push'](_0x2f95e5['shift']());}catch(_0x14d1b2){_0x2f95e5['push'](_0x2f95e5['shift']());}}}(a111_0x14b0,0x891a8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a111_0x4199(_0x1afd06,_0x19aa8a){_0x1afd06=_0x1afd06-0x18d;const _0x14b034=a111_0x14b0();let _0x419970=_0x14b034[_0x1afd06];return _0x419970;}export const deploymentSyncJobs={'service':a111_0x1d041f(0x1a3),'command':'sync-jobs','description':a111_0x1d041f(0x1a7),'risk':a111_0x1d041f(0x19f),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a111_0x1d041f(0x1a6),'type':a111_0x1d041f(0x19d),'default':0x1,'description':a111_0x1d041f(0x193)},{'name':a111_0x1d041f(0x196),'type':'number','default':0xa,'description':a111_0x1d041f(0x197)},{'name':a111_0x1d041f(0x198),'type':a111_0x1d041f(0x18d),'description':a111_0x1d041f(0x1a0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x588449){const _0x599d97=a111_0x1d041f;readPaging(_0x588449[_0x599d97(0x18e)](_0x599d97(0x1a6),0x1),_0x588449[_0x599d97(0x18e)](_0x599d97(0x196),0xa));},async 'execute'(_0x1d3e1){const _0x2999ab=a111_0x1d041f,{currentPage:_0x7266d4,pageSize:_0x52e20f}=readPaging(_0x1d3e1[_0x2999ab(0x18e)](_0x2999ab(0x1a6),0x1),_0x1d3e1['num'](_0x2999ab(0x196),0xa)),_0x3169b3=_0x1d3e1[_0x2999ab(0x18f)](_0x2999ab(0x198))['trim'](),_0x3bb6eb=await listDeploymentMetadataSyncJobs({'appCode':_0x1d3e1[_0x2999ab(0x19e)],'currentPage':_0x7266d4,'pageSize':_0x52e20f,..._0x3169b3?{'status':_0x3169b3}:{}});return{'ok':!![],'data':{'appCode':_0x1d3e1[_0x2999ab(0x19e)],..._0x3bb6eb},'message':'Found\x20'+_0x3bb6eb['items'][_0x2999ab(0x19c)]+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0xb533b8,_0x2dbbe2){const _0x3ab39d=a111_0x1d041f;if(!Number[_0x3ab39d(0x1a8)](_0xb533b8)||_0xb533b8<0x1)throw CliErrors[_0x3ab39d(0x1a9)](_0x3ab39d(0x19b));if(!Number['isSafeInteger'](_0x2dbbe2)||_0x2dbbe2<0x1||_0x2dbbe2>0x64)throw CliErrors[_0x3ab39d(0x1a9)](_0x3ab39d(0x1a2));return{'currentPage':_0xb533b8,'pageSize':_0x2dbbe2};}
|