@lovrabet/rabetbase-cli 2.5.11 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +1 -0
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.d.ts +2 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a108_0x5648(_0x5b41c0,_0x455360){_0x5b41c0=_0x5b41c0-0x1c5;const _0x310a22=a108_0x310a();let _0x5648d7=_0x310a22[_0x5b41c0];return _0x5648d7;}const a108_0x5c380f=a108_0x5648;(function(_0x58a30e,_0xf11699){const _0x31bf21=a108_0x5648,_0x4528e5=_0x58a30e();while(!![]){try{const _0x1062b7=parseInt(_0x31bf21(0x1d8))/0x1+-parseInt(_0x31bf21(0x1e6))/0x2+-parseInt(_0x31bf21(0x1e7))/0x3+-parseInt(_0x31bf21(0x1da))/0x4*(parseInt(_0x31bf21(0x1cf))/0x5)+-parseInt(_0x31bf21(0x1cb))/0x6*(-parseInt(_0x31bf21(0x1dd))/0x7)+-parseInt(_0x31bf21(0x1e9))/0x8*(-parseInt(_0x31bf21(0x1e1))/0x9)+-parseInt(_0x31bf21(0x1cd))/0xa;if(_0x1062b7===_0xf11699)break;else _0x4528e5['push'](_0x4528e5['shift']());}catch(_0xe3e599){_0x4528e5['push'](_0x4528e5['shift']());}}}(a108_0x310a,0x6cacb));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a108_0x5c380f(0x1e2),'type':a108_0x5c380f(0x1d3),'description':a108_0x5c380f(0x1c8)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x5c380f(0x1e5),'type':a108_0x5c380f(0x1c6),'description':a108_0x5c380f(0x1d6)};export const dbDelete={'service':'db','command':a108_0x5c380f(0x1d5),'description':a108_0x5c380f(0x1e4),'risk':a108_0x5c380f(0x1c5),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x4fc9c6){const _0x2a7783=a108_0x5c380f,_0xbd280b=await loadDeleteImpact(_0x4fc9c6);return assertExpectedDatasetCount(_0x4fc9c6,_0xbd280b[_0x2a7783(0x1d9)]['activeDatasetCount']),{'method':_0x2a7783(0x1c9),'url':_0x2a7783(0x1e3),'body':{'id':_0xbd280b['id']},'description':_0xbd280b['datasetDependency'][_0x2a7783(0x1d2)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0xbd280b['datasetDependency'][_0x2a7783(0x1d2)]+'\x20active\x20DB_TABLE\x20Dataset(s).':'Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.',..._0xbd280b};},async 'execute'(_0x355a6d){const _0x91e4b9=a108_0x5c380f;if(!_0x355a6d[_0x91e4b9(0x1df)](_0x91e4b9(0x1e2)))throw CliErrors[_0x91e4b9(0x1d7)]('--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.',_0x91e4b9(0x1de));const _0x2898da=_0x355a6d[_0x91e4b9(0x1cc)]('id'),_0x50c31e=await loadDeleteImpact(_0x355a6d),_0x4c2720=_0x50c31e['datasetDependency']['activeDatasetCount'];assertExpectedDatasetCount(_0x355a6d,_0x4c2720);if(_0x4c2720>0x0)throw CliErrors['validation'](_0x91e4b9(0x1c7)+_0x2898da+_0x91e4b9(0x1dc)+_0x4c2720+_0x91e4b9(0x1db),_0x91e4b9(0x1ca));return await deleteDbLink(_0x2898da),{'ok':!![],'data':{'id':_0x2898da,'deleted':!![],'activeDatasetCount':_0x4c2720},'message':'Deleted\x20db\x20link\x20'+_0x2898da};}};async function loadDeleteImpact(_0x22093a){const _0x4f68e6=a108_0x5c380f,_0x41da20=_0x22093a[_0x4f68e6(0x1cc)]('id'),[_0x53091c,_0x41e5e2]=await Promise['all']([getDbLinkInfo(_0x41da20),listDatasets(_0x22093a[_0x4f68e6(0x1e0)],{'source':_0x4f68e6(0x1d0)})]),_0x31ad46=buildDbDatasetDependency(_0x53091c,_0x41e5e2);return{'id':_0x41da20,'connection':sanitizeDbLinkForOutput(_0x53091c),'datasetDependency':_0x31ad46[_0x4f68e6(0x1d9)],'activeDatasetCount':_0x31ad46['datasetDependency'][_0x4f68e6(0x1d2)],'datasets':_0x31ad46[_0x4f68e6(0x1d4)]};}function assertExpectedDatasetCount(_0x203577,_0x470e7c){const _0x3393dc=a108_0x5c380f,_0x172866=_0x203577['flag']('expected-dataset-count');if(_0x172866===undefined||_0x172866==='')return;const _0x5bc7c8=_0x203577[_0x3393dc(0x1cc)](_0x3393dc(0x1e5));if(!Number['isInteger'](_0x5bc7c8)||_0x5bc7c8<0x0)throw CliErrors[_0x3393dc(0x1d7)](_0x3393dc(0x1ce));if(_0x5bc7c8!==_0x470e7c)throw CliErrors[_0x3393dc(0x1d7)](_0x3393dc(0x1e8)+_0x5bc7c8+'\x20active\x20Dataset(s),\x20but\x20found\x20'+_0x470e7c+'.',_0x3393dc(0x1d1));}function a108_0x310a(){const _0x17ff3f=['/smartapi/dblink/delete','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','expected-dataset-count','827430WiCFdJ','592719QSLwJK','Expected\x20','3436768zUBkwj','high-risk-write','number','Database\x20connection\x20','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','POST','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','6SuVgdW','num','5860000zdOeQq','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','1015540txhLoI','DB_TABLE','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','activeDatasetCount','boolean','datasets','delete','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','validation','306326zEGRQS','datasetDependency','8GJrXQx','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','\x20still\x20has\x20','6181819QjJlTk','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','bool','appCode','18odUHFg','confirm'];a108_0x310a=function(){return _0x17ff3f;};return a108_0x310a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x269a5a=a109_0x5e1d;function a109_0x185f(){const _0x526775=['64697wXsBDA','5893295bWbqEG','datasetDependency','5546198hlKqWT','4YhEswB','6FDRQek','detail','read','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','7517096coTHEl','12ZeksZN','dbName','num','14835160tRcYnI','632KMbGmq','3qjxUHS','DB_TABLE','59715KPuEtc','43867241FeLeLX'];a109_0x185f=function(){return _0x526775;};return a109_0x185f();}(function(_0x22584a,_0x7755f9){const _0x72e9d2=a109_0x5e1d,_0x29781a=_0x22584a();while(!![]){try{const _0x27a172=parseInt(_0x72e9d2(0x153))/0x1*(parseInt(_0x72e9d2(0x157))/0x2)+parseInt(_0x72e9d2(0x14f))/0x3*(parseInt(_0x72e9d2(0x149))/0x4)+parseInt(_0x72e9d2(0x154))/0x5+parseInt(_0x72e9d2(0x145))/0x6*(parseInt(_0x72e9d2(0x156))/0x7)+-parseInt(_0x72e9d2(0x14e))/0x8*(parseInt(_0x72e9d2(0x151))/0x9)+parseInt(_0x72e9d2(0x14d))/0xa+-parseInt(_0x72e9d2(0x152))/0xb*(parseInt(_0x72e9d2(0x14a))/0xc);if(_0x27a172===_0x7755f9)break;else _0x29781a['push'](_0x29781a['shift']());}catch(_0x4faf8f){_0x29781a['push'](_0x29781a['shift']());}}}(a109_0x185f,0xe8315));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a109_0x5e1d(_0x1e1dbb,_0x3727ff){_0x1e1dbb=_0x1e1dbb-0x145;const _0x185f52=a109_0x185f();let _0x5e1d14=_0x185f52[_0x1e1dbb];return _0x5e1d14;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a109_0x269a5a(0x146),'description':a109_0x269a5a(0x148),'risk':a109_0x269a5a(0x147),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x440b0d){const _0x147472=a109_0x269a5a,_0x1811a0=_0x440b0d[_0x147472(0x14c)]('id'),_0x51c6b=await getDbLinkInfo(_0x1811a0),_0x27164e=await listDatasets(_0x51c6b['appCode']||_0x440b0d['appCode'],{'source':_0x147472(0x150)}),_0x66c38c=buildDbDatasetDependency(_0x51c6b,_0x27164e);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x51c6b),'datasetDependency':_0x66c38c[_0x147472(0x155)]},'message':'db\x20link\x20'+_0x1811a0+':\x20'+_0x51c6b[_0x147472(0x14b)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110_0x226c8c=a110_0x2171;(function(_0x5ccd72,_0x9b39d3){const _0xee40d9=a110_0x2171,_0x1384fb=_0x5ccd72();while(!![]){try{const _0xb039d1=parseInt(_0xee40d9(0xca))/0x1+parseInt(_0xee40d9(0xd7))/0x2*(-parseInt(_0xee40d9(0xcf))/0x3)+-parseInt(_0xee40d9(0xd1))/0x4*(-parseInt(_0xee40d9(0xd4))/0x5)+parseInt(_0xee40d9(0xdb))/0x6+parseInt(_0xee40d9(0xc6))/0x7*(-parseInt(_0xee40d9(0xcc))/0x8)+parseInt(_0xee40d9(0xda))/0x9+-parseInt(_0xee40d9(0xc7))/0xa*(parseInt(_0xee40d9(0xc9))/0xb);if(_0xb039d1===_0x9b39d3)break;else _0x1384fb['push'](_0x1384fb['shift']());}catch(_0x2a4460){_0x1384fb['push'](_0x1384fb['shift']());}}}(a110_0x4e56,0xd853d));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a110_0x4e56(){const _0x429134=['\x20--format\x20compress','status','147gOVyxn','appCode','17416wsCDuf','\x20db\x20diff-refresh-status\x20--id\x20','trim','1100JeJaSl','num','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','45834OLkyEt','traceId','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','860004OjfQyT','4046256gQSfYi','6111595BGZHVA','800WUgxVl','validation','34133ilkGrj','1402523ROlTJD','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','8XmvGwd'];a110_0x4e56=function(){return _0x429134;};return a110_0x4e56();}function a110_0x2171(_0x1d4f81,_0x53c7db){_0x1d4f81=_0x1d4f81-0xc6;const _0x4e563a=a110_0x4e56();let _0x2171b9=_0x4e563a[_0x1d4f81];return _0x2171b9;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':'diff-refresh-start','description':a110_0x226c8c(0xd6),'risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x4f2949){const _0x380217=a110_0x226c8c,_0x57ab19=_0x4f2949[_0x380217(0xd5)]('id'),_0x3d2ea6=await startDbTableDiffRefresh(_0x4f2949[_0x380217(0xd0)],_0x57ab19),_0xeb5c5=_0x3d2ea6[_0x380217(0xd8)]?.[_0x380217(0xd3)]();if(!_0xeb5c5)throw CliErrors[_0x380217(0xc8)](_0x380217(0xcb));return{'ok':!![],'data':{'dbLinkId':_0x57ab19,'traceId':_0xeb5c5,'status':_0x3d2ea6[_0x380217(0xce)]??null,'query':{'command':CLI_BIN_NAME+_0x380217(0xd2)+_0x57ab19+'\x20--plan\x20'+_0xeb5c5+_0x380217(0xcd)}},'message':_0x380217(0xd9)+_0x57ab19};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a111_0x3095(_0x1f0039,_0xaa2d67){_0x1f0039=_0x1f0039-0x1f3;const _0x1e4fc5=a111_0x1e4f();let _0x309561=_0x1e4fc5[_0x1f0039];return _0x309561;}const a111_0x27305d=a111_0x3095;(function(_0x27c46c,_0x3cbf17){const _0x2b3f04=a111_0x3095,_0x27a66e=_0x27c46c();while(!![]){try{const _0x449676=parseInt(_0x2b3f04(0x1fb))/0x1*(parseInt(_0x2b3f04(0x200))/0x2)+-parseInt(_0x2b3f04(0x1f6))/0x3+-parseInt(_0x2b3f04(0x205))/0x4+parseInt(_0x2b3f04(0x204))/0x5*(-parseInt(_0x2b3f04(0x208))/0x6)+parseInt(_0x2b3f04(0x209))/0x7+-parseInt(_0x2b3f04(0x1f5))/0x8+parseInt(_0x2b3f04(0x1fd))/0x9*(parseInt(_0x2b3f04(0x206))/0xa);if(_0x449676===_0x3cbf17)break;else _0x27a66e['push'](_0x27a66e['shift']());}catch(_0x1d7d8d){_0x27a66e['push'](_0x27a66e['shift']());}}}(a111_0x1e4f,0x8af3e));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a111_0x1e4f(){const _0x516b79=['str','8182eODlDG','FAILED','5508963UUElVX','RETRYING','RUNNING','166uhkGIs','\x20--plan\x20','plan','Table-diff\x20refresh\x20status\x20for\x20','10sBKPcP','504588qNlSaV','10mrokQB','\x20--format\x20compress','190110MnqLpG','6528382ssAcjw','has','PENDING','diff-refresh-status','4788304xMxOhT','2599902NdBKWU','UNKNOWN','CANCELLED','SUCCESS'];a111_0x1e4f=function(){return _0x516b79;};return a111_0x1e4f();}const TERMINAL_STATUSES=new Set([a111_0x27305d(0x1f9),a111_0x27305d(0x1fc),a111_0x27305d(0x1f8)]),RUNNING_STATUSES=new Set([a111_0x27305d(0x1f3),a111_0x27305d(0x1ff),a111_0x27305d(0x1fe)]);export const dbDiffRefreshStatus={'service':'db','command':a111_0x27305d(0x1f4),'description':'Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'plan','type':'string','required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x82ef59){const _0x47e491=a111_0x27305d,_0x590f50=_0x82ef59['num']('id'),_0x108f16=_0x82ef59[_0x47e491(0x1fa)](_0x47e491(0x202)),_0x2f5604=await getDbAnalysisStatus(_0x108f16),_0xca129a=_0x2f5604['status']??null,_0x91e8e8=TERMINAL_STATUSES[_0x47e491(0x20a)](_0xca129a??''),_0x2e4e74=_0xca129a==='SUCCESS',_0x57bd65=_0x91e8e8||RUNNING_STATUSES[_0x47e491(0x20a)](_0xca129a??'');return{'ok':!![],'data':{'dbLinkId':_0x590f50,'planId':_0x108f16,'status':_0x2f5604,'knownStatus':_0x57bd65,'isTerminal':_0x91e8e8,'isSuccessful':_0x2e4e74,'query':_0x57bd65&&!_0x91e8e8?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x590f50+_0x47e491(0x201)+_0x108f16+_0x47e491(0x207)}:null},'message':_0x47e491(0x203)+_0x108f16+':\x20'+(_0xca129a??_0x47e491(0x1f7))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x3bb591=a112_0x31c8;(function(_0x3846e7,_0x2148d3){const _0x4eb84d=a112_0x31c8,_0x51732d=_0x3846e7();while(!![]){try{const _0x2a3157=parseInt(_0x4eb84d(0xf1))/0x1+parseInt(_0x4eb84d(0xe4))/0x2*(-parseInt(_0x4eb84d(0xee))/0x3)+parseInt(_0x4eb84d(0xf3))/0x4+parseInt(_0x4eb84d(0xe1))/0x5+-parseInt(_0x4eb84d(0xd2))/0x6*(-parseInt(_0x4eb84d(0xe9))/0x7)+-parseInt(_0x4eb84d(0xea))/0x8*(parseInt(_0x4eb84d(0xd5))/0x9)+-parseInt(_0x4eb84d(0xdf))/0xa;if(_0x2a3157===_0x2148d3)break;else _0x51732d['push'](_0x51732d['shift']());}catch(_0x4b26c5){_0x51732d['push'](_0x51732d['shift']());}}}(a112_0xd452,0xf2196));import{getDbTableDiff}from'../../core/api-client.js';function a112_0x31c8(_0x4cd25b,_0x5a6f70){_0x4cd25b=_0x4cd25b-0xcf;const _0xd45281=a112_0xd452();let _0x31c82e=_0xd45281[_0x4cd25b];return _0x31c82e;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x3bb591(0xec),'description':a112_0x3bb591(0xe5),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x3bb591(0xf6),'type':'string','description':a112_0x3bb591(0xda)},{'name':a112_0x3bb591(0xeb),'type':a112_0x3bb591(0xf0),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a112_0x3bb591(0xd7),'type':a112_0x3bb591(0xf0),'description':'Page\x20size','default':0x14},{'name':a112_0x3bb591(0xd8),'type':a112_0x3bb591(0xcf),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x49071f){const _0x3c785b=a112_0x3bb591,_0x2aa8b4=_0x49071f['num']('id'),_0x750117=_0x49071f[_0x3c785b(0xef)](_0x3c785b(0xd8)),_0x4fc010=_0x750117?0x1:_0x49071f[_0x3c785b(0xf5)]('page',0x1)||0x1,_0x545b63=_0x750117?DB_TABLE_PAGE_SIZE:_0x49071f[_0x3c785b(0xf5)](_0x3c785b(0xd7),0x14)||0x14,_0x5aa036=_0x49071f[_0x3c785b(0xe3)](_0x3c785b(0xf6))||undefined,_0x22b6c8=_0x750117?await getAllDbTableDiff(getDbTableDiff,_0x49071f[_0x3c785b(0xd1)],_0x2aa8b4,_0x5aa036):await getDbTableDiff(_0x49071f['appCode'],_0x2aa8b4,{'pageIndex':_0x4fc010,'pageSize':_0x545b63,'tableName':_0x5aa036}),_0x4c0c4e=_0x22b6c8[_0x3c785b(0xd4)],_0x28312a=summarizeDbTableDiff(_0x4c0c4e),_0x1cf3dd=_0x4c0c4e['filter'](_0x5f2dff=>_0x5f2dff['diffType']===_0x3c785b(0xd9)||_0x5f2dff['diffType']===_0x3c785b(0xdb))['map'](_0x596c43=>_0x596c43[_0x3c785b(0xdc)]),_0x14aa98=_0x4c0c4e['filter'](_0x3edb89=>_0x3edb89['diffType']===_0x3c785b(0xed))[_0x3c785b(0xd3)](_0x26f5a4=>_0x26f5a4[_0x3c785b(0xdc)]),_0x2378e1=_0x4c0c4e['filter'](_0x2c5d21=>_0x2c5d21[_0x3c785b(0xf2)]===_0x3c785b(0xdb))[_0x3c785b(0xd3)](_0x2e4f4e=>({'tableName':_0x2e4f4e[_0x3c785b(0xdc)],'addedColumns':_0x2e4f4e[_0x3c785b(0xdd)]?.[_0x3c785b(0xe0)]??[],'deletedColumns':_0x2e4f4e[_0x3c785b(0xdd)]?.[_0x3c785b(0xd6)]??[],'modifiedColumns':_0x2e4f4e['fieldDiff']?.[_0x3c785b(0xe8)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x2aa8b4,'page':_0x4fc010,'pageSize':_0x545b63,'totalCount':_0x22b6c8[_0x3c785b(0xde)],...typeof _0x22b6c8[_0x3c785b(0xe2)]==='number'?{'physicalTableCount':_0x22b6c8[_0x3c785b(0xe2)]}:{},...typeof _0x22b6c8[_0x3c785b(0xe6)]===_0x3c785b(0xf0)?{'datasetTableCount':_0x22b6c8[_0x3c785b(0xe6)]}:{},..._0x22b6c8[_0x3c785b(0xf4)]?{'summary':_0x22b6c8[_0x3c785b(0xf4)]}:{},'summaryByType':_0x28312a,'toAnalyzeTables':_0x1cf3dd,'deletedTables':_0x14aa98,'modifiedFieldDiffs':_0x2378e1,'tables':_0x4c0c4e},'message':_0x4c0c4e['length']+_0x3c785b(0xe7)+_0x22b6c8[_0x3c785b(0xde)]+_0x3c785b(0xd0)+_0x2aa8b4+')'};}};function a112_0xd452(){const _0xfeb8fd=['table','boolean','\x20(db\x20link\x20','appCode','11922ssMprc','map','tableList','378qntGNW','deletedColumns','pagesize','all','NEW_TABLE','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','MODIFIED_TABLE','tableName','fieldDiff','totalCount','37919580UnPAra','addedColumns','9826010gxwALA','physicalTableCount','str','283012NosNwm','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','datasetTableCount','\x20changed\x20table\x20row(s),\x20total\x20','modifiedColumns','4102pBiXwc','82712DyfJeS','page','diff','DELETED_TABLE','9rnAvBM','bool','number','1953028bmyLis','diffType','2238960nzpDYn','summary','num'];a112_0xd452=function(){return _0xfeb8fd;};return a112_0xd452();}
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a5c19,_0x197fa9){const _0x102207=a113_0x9ccd,_0x51e32d=_0x3a5c19();while(!![]){try{const _0x22332a=parseInt(_0x102207(0x101))/0x1+parseInt(_0x102207(0x100))/0x2*(parseInt(_0x102207(0xfc))/0x3)+parseInt(_0x102207(0x103))/0x4+parseInt(_0x102207(0xfe))/0x5*(-parseInt(_0x102207(0xfd))/0x6)+-parseInt(_0x102207(0xff))/0x7+-parseInt(_0x102207(0xfb))/0x8+parseInt(_0x102207(0x102))/0x9;if(_0x22332a===_0x197fa9)break;else _0x51e32d['push'](_0x51e32d['shift']());}catch(_0x199bfe){_0x51e32d['push'](_0x51e32d['shift']());}}}(a113_0x2840,0x237c2));import{dbList}from'../../commands/db/list.js';function a113_0x9ccd(_0x335d68,_0x363206){_0x335d68=_0x335d68-0xfb;const _0x28400e=a113_0x2840();let _0x9ccd93=_0x28400e[_0x335d68];return _0x9ccd93;}import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';function a113_0x2840(){const _0x10e364=['3597JOUnWx','109194yunuEA','45wiYnva','1984836hFqiNm','412jZqvXd','91375GoBnUj','2422161PpboKZ','531200cNrbOI','1180904EmcCNz'];a113_0x2840=function(){return _0x10e364;};return a113_0x2840();}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x4d782a=a114_0x4524;(function(_0x5ddb09,_0x171ad1){const _0xd24582=a114_0x4524,_0x56a12f=_0x5ddb09();while(!![]){try{const _0xf93eab=parseInt(_0xd24582(0x19f))/0x1*(-parseInt(_0xd24582(0x194))/0x2)+parseInt(_0xd24582(0x1a2))/0x3*(parseInt(_0xd24582(0x193))/0x4)+parseInt(_0xd24582(0x19e))/0x5+parseInt(_0xd24582(0x198))/0x6*(parseInt(_0xd24582(0x1a1))/0x7)+parseInt(_0xd24582(0x1a8))/0x8+-parseInt(_0xd24582(0x1a6))/0x9+parseInt(_0xd24582(0x1ac))/0xa*(parseInt(_0xd24582(0x196))/0xb);if(_0xf93eab===_0x171ad1)break;else _0x56a12f['push'](_0x56a12f['shift']());}catch(_0x2544ea){_0x56a12f['push'](_0x56a12f['shift']());}}}(a114_0x28fe,0x650f1));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a114_0x4524(_0x2fe81d,_0x13c6f6){_0x2fe81d=_0x2fe81d-0x192;const _0x28feb7=a114_0x28fe();let _0x4524ef=_0x28feb7[_0x2fe81d];return _0x4524ef;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x28fe(){const _0x18fb39=['Page\x20size','all','Found\x20','10SUiLlj','read','num','24bWqiKp','16pGEzXI','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','1584484PoFFtE','list','186246GXPbQi','Page\x20index\x20(1-based)','number','pagesize','appCode','\x20database\x20connection(s)','1133675xkCwHI','56218JEaael','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','35nYKaHm','275697QzGFwS','length','datasetDependency','page','3170151rpJruF','DB_TABLE','1108336HMHxov'];a114_0x28fe=function(){return _0x18fb39;};return a114_0x28fe();}export const dbList={'service':'db','command':a114_0x4d782a(0x197),'description':a114_0x4d782a(0x1a0),'risk':a114_0x4d782a(0x1ad),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x4d782a(0x1a5),'type':a114_0x4d782a(0x19a),'description':a114_0x4d782a(0x199),'default':0x1},{'name':a114_0x4d782a(0x19b),'type':a114_0x4d782a(0x19a),'description':a114_0x4d782a(0x1a9),'default':0x64}],async 'execute'(_0x18348b){const _0x591e02=a114_0x4d782a,_0x415fb9=_0x18348b[_0x591e02(0x192)](_0x591e02(0x1a5),0x1)||0x1,_0x8294d8=_0x18348b[_0x591e02(0x192)](_0x591e02(0x19b),0x64)||0x64,[{items:_0x43554c,paging:_0x4702b0},_0x7a83c]=await Promise[_0x591e02(0x1aa)]([listDbLinks(_0x18348b['appCode'],{'currentPage':_0x415fb9,'pageSize':_0x8294d8}),listDatasets(_0x18348b[_0x591e02(0x19c)],{'source':_0x591e02(0x1a7)})]),_0x578a59=_0x43554c['map'](_0x86adf2=>({...sanitizeDbLinkForOutput(_0x86adf2),'datasetDependency':buildDbDatasetDependency(_0x86adf2,_0x7a83c)[_0x591e02(0x1a4)]})),_0x35fdbb=_0x4702b0?_0x4702b0:{'currentPage':_0x415fb9,'pageSize':_0x8294d8,'rowsOnPage':_0x578a59['length'],'totalCount':null,'note':_0x591e02(0x195)};return{'ok':!![],'data':{'connections':_0x578a59,'paging':_0x35fdbb},'message':_0x591e02(0x1ab)+_0x578a59[_0x591e02(0x1a3)]+_0x591e02(0x19d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbf9fb6,_0xfdf4d5){const _0x18be48=a115_0x5b3e,_0x1fdb1d=_0xbf9fb6();while(!![]){try{const _0x2fe7e5=-parseInt(_0x18be48(0x17c))/0x1+-parseInt(_0x18be48(0x182))/0x2+parseInt(_0x18be48(0x17a))/0x3+parseInt(_0x18be48(0x184))/0x4*(-parseInt(_0x18be48(0x194))/0x5)+parseInt(_0x18be48(0x180))/0x6*(-parseInt(_0x18be48(0x198))/0x7)+parseInt(_0x18be48(0x179))/0x8+parseInt(_0x18be48(0x18a))/0x9;if(_0x2fe7e5===_0xfdf4d5)break;else _0x1fdb1d['push'](_0x1fdb1d['shift']());}catch(_0x57b076){_0x1fdb1d['push'](_0x1fdb1d['shift']());}}}(a115_0x23e1,0xa381c));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x34116c){const _0x3b81b3=a115_0x5b3e,_0x51089b=_0x34116c[_0x3b81b3(0x187)]();if(_0x51089b===_0x3b81b3(0x181)||_0x51089b===_0x3b81b3(0x192)||_0x51089b==='dbpassword')return!![];if(_0x51089b[_0x3b81b3(0x17f)]('secret')||_0x51089b[_0x3b81b3(0x17f)](_0x3b81b3(0x17e))||_0x51089b[_0x3b81b3(0x17f)](_0x3b81b3(0x195)))return!![];if(_0x51089b['includes']('privatekey')||_0x51089b['includes'](_0x3b81b3(0x18b)))return!![];if(_0x51089b===_0x3b81b3(0x185)||_0x51089b===_0x3b81b3(0x186)||_0x51089b==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x3a742f){const _0x4443b9=a115_0x5b3e,_0x5eb08f={..._0x3a742f};delete _0x5eb08f[_0x4443b9(0x18f)];for(const _0x2bd078 of Object[_0x4443b9(0x18c)](_0x5eb08f)){if(!shouldRedactKey(_0x2bd078))continue;const _0x2b1f8a=_0x5eb08f[_0x2bd078];_0x2b1f8a!=null&&String(_0x2b1f8a)[_0x4443b9(0x18d)]>0x0&&(_0x5eb08f[_0x2bd078]=_0x4443b9(0x18e));}return _0x5eb08f;}export function sanitizeDbLinkList(_0x5634d3){const _0xdf8af9=a115_0x5b3e;return _0x5634d3[_0xdf8af9(0x188)](_0x56c5b5=>sanitizeDbLinkForOutput(_0x56c5b5));}function a115_0x23e1(){const _0x36e69f=['11616mdgUTU','password','2075344mUadBi','tableName','28aKYoov','authorization','connectionstring','toLowerCase','map','trim','23926446kgJeCN','accesskey','keys','length','[redacted]','hasAvailableDo','dbtableConfig','isFinite','passwd','dbId','838785RTbxoV','credential','test','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','2786sacfIS','8003304SACjIt','1364667nzkVCT','name','461573zUhcUj','number','token','includes'];a115_0x23e1=function(){return _0x36e69f;};return a115_0x23e1();}export function buildDbDatasetDependency(_0x5c99a1,_0x31272b){const _0x3540e0=a115_0x5b3e,_0x570976=_0x31272b['filter'](_0x76afb0=>Number(_0x76afb0[_0x3540e0(0x190)]?.[_0x3540e0(0x193)])===Number(_0x5c99a1['id']))[_0x3540e0(0x188)](_0x3a4741=>({'id':_0x3a4741['id'],'code':_0x3a4741['code'],'name':_0x3a4741[_0x3540e0(0x17b)],..._0x3a4741[_0x3540e0(0x190)]?.['tableName']?{'tableName':_0x3a4741[_0x3540e0(0x190)][_0x3540e0(0x183)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x570976[_0x3540e0(0x18d)]>0x0,'activeDatasetCount':_0x570976[_0x3540e0(0x18d)]},'datasets':_0x570976};}function a115_0x5b3e(_0x365020,_0x2353d7){_0x365020=_0x365020-0x179;const _0x23e125=a115_0x23e1();let _0x5b3ec3=_0x23e125[_0x365020];return _0x5b3ec3;}export async function assertDbLinkConnectionPreflight(_0x23ad08){const _0x23b8d6=a115_0x5b3e,_0x110a68=await testDbLinkConfigConnect(_0x23ad08);if(_0x110a68!==!![])throw CliErrors['apiError']('Database\x20connection\x20preflight\x20failed.',_0x23b8d6(0x197));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2d48f1){const _0x5a9a52=a115_0x5b3e,_0x74c095=_0x2d48f1[_0x5a9a52(0x189)]();if(!_0x74c095)return![];return DB_URL_PATTERN[_0x5a9a52(0x196)](_0x74c095);}export function buildDbPageLinks(_0x28a32c,_0x88c807){const _0x3638ed=a115_0x5b3e,_0x4d3c76=_0x28a32c?.[_0x3638ed(0x189)]();if(!_0x4d3c76)return undefined;const _0x1a798f=typeof _0x88c807===_0x3638ed(0x17d)?String(_0x88c807):String(_0x88c807??'')[_0x3638ed(0x189)]();if(!_0x1a798f)return undefined;const _0x652a42=Number(_0x1a798f);if(!Number[_0x3638ed(0x191)](_0x652a42)||_0x652a42<=0x0)return undefined;const _0x152dc7=getAppBaseUrl(_0x4d3c76),_0x4ac7a2=encodeURIComponent(String(_0x652a42));return{'databasePage':_0x152dc7+'/data/database','erPage':_0x152dc7+'/data/er?dbId='+_0x4ac7a2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x42f584=a116_0x1a95;(function(_0x49824c,_0x147db4){const _0x40a480=a116_0x1a95,_0x33c3e7=_0x49824c();while(!![]){try{const _0x437075=-parseInt(_0x40a480(0x13c))/0x1+parseInt(_0x40a480(0x12a))/0x2*(-parseInt(_0x40a480(0x12e))/0x3)+parseInt(_0x40a480(0x123))/0x4+parseInt(_0x40a480(0x130))/0x5*(-parseInt(_0x40a480(0x124))/0x6)+parseInt(_0x40a480(0x135))/0x7*(-parseInt(_0x40a480(0x138))/0x8)+-parseInt(_0x40a480(0x122))/0x9+parseInt(_0x40a480(0x126))/0xa*(parseInt(_0x40a480(0x13d))/0xb);if(_0x437075===_0x147db4)break;else _0x33c3e7['push'](_0x33c3e7['shift']());}catch(_0x35b40f){_0x33c3e7['push'](_0x33c3e7['shift']());}}}(a116_0x35ab,0xbbc2d));import{CliErrors}from'../../errors.js';function a116_0x1a95(_0x60ca6e,_0x53156c){_0x60ca6e=_0x60ca6e-0x120;const _0x35ab4c=a116_0x35ab();let _0x1a95f7=_0x35ab4c[_0x60ca6e];return _0x1a95f7;}export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x35ab(){const _0x3e1f3e=['NEW_TABLE','fromEntries','\x20row(s).','11821302hSCoMF','1420992MRzeAd','308568xcbeuY','DELETED_TABLE','50EkDxOL','MODIFIED_TABLE','length','ALREADY_ANALYZED','569510ibQVxX','tableList','filter','map','3ZZIPDF','size','10AIddSy','diffType','tableName','totalCount','summary','10521336ZEGdJJ','datasetTableCount','\x20of\x20','8eSrEEh','number','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','physicalTableCount','236272MABsZJ','8479306MSecBK','validation'];a116_0x35ab=function(){return _0x3e1f3e;};return a116_0x35ab();}export const DB_TABLE_DIFF_TYPES=[a116_0x42f584(0x13f),a116_0x42f584(0x127),a116_0x42f584(0x125),a116_0x42f584(0x129)];export function summarizeDbTableDiff(_0x4e2580){const _0x51fe6e=a116_0x42f584;return Object[_0x51fe6e(0x120)](DB_TABLE_DIFF_TYPES[_0x51fe6e(0x12d)](_0x4456f0=>[_0x4456f0,_0x4e2580[_0x51fe6e(0x12c)](_0x3b87df=>_0x3b87df[_0x51fe6e(0x131)]===_0x4456f0)[_0x51fe6e(0x128)]]));}export async function getAllDbTableDiff(_0x35202c,_0x13ec0c,_0x10d6b8,_0x32bcef){const _0x1a446a=a116_0x42f584,_0x5728de=new Map();let _0x45ec60=0x1,_0x2ecc20=null;while(!![]){_0x2ecc20=await _0x35202c(_0x13ec0c,_0x10d6b8,{'pageIndex':_0x45ec60,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x32bcef});const _0x2e9a6a=_0x5728de[_0x1a446a(0x12f)];for(const _0x58842e of _0x2ecc20[_0x1a446a(0x12b)]){_0x5728de['set'](_0x58842e[_0x1a446a(0x132)],_0x58842e);}if(_0x5728de[_0x1a446a(0x12f)]>=_0x2ecc20['totalCount'])break;if(_0x2ecc20['tableList'][_0x1a446a(0x128)]===0x0||_0x5728de[_0x1a446a(0x12f)]===_0x2e9a6a)throw CliErrors[_0x1a446a(0x13e)](_0x1a446a(0x13a)+_0x5728de['size']+_0x1a446a(0x137)+_0x2ecc20[_0x1a446a(0x133)]+_0x1a446a(0x121));_0x45ec60+=0x1;}return{'totalCount':_0x2ecc20?.['totalCount']??0x0,...typeof _0x2ecc20?.['physicalTableCount']===_0x1a446a(0x139)?{'physicalTableCount':_0x2ecc20[_0x1a446a(0x13b)]}:{},...typeof _0x2ecc20?.[_0x1a446a(0x136)]===_0x1a446a(0x139)?{'datasetTableCount':_0x2ecc20[_0x1a446a(0x136)]}:{},..._0x2ecc20?.[_0x1a446a(0x134)]?{'summary':_0x2ecc20[_0x1a446a(0x134)]}:{},'tableList':[..._0x5728de['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0xe350ec=a117_0x4f50;function a117_0x4f50(_0x294377,_0x3a48ee){_0x294377=_0x294377-0xf0;const _0x3adfbf=a117_0x3adf();let _0x4f50d3=_0x3adfbf[_0x294377];return _0x4f50d3;}(function(_0x18e849,_0x460228){const _0xfe50a6=a117_0x4f50,_0xd6ab6=_0x18e849();while(!![]){try{const _0x824dcd=-parseInt(_0xfe50a6(0x100))/0x1+-parseInt(_0xfe50a6(0x101))/0x2+parseInt(_0xfe50a6(0x102))/0x3+parseInt(_0xfe50a6(0xf9))/0x4+parseInt(_0xfe50a6(0xf1))/0x5*(parseInt(_0xfe50a6(0xf2))/0x6)+-parseInt(_0xfe50a6(0x108))/0x7*(-parseInt(_0xfe50a6(0xf5))/0x8)+parseInt(_0xfe50a6(0x107))/0x9*(parseInt(_0xfe50a6(0xfd))/0xa);if(_0x824dcd===_0x460228)break;else _0xd6ab6['push'](_0xd6ab6['shift']());}catch(_0xbf2c21){_0xd6ab6['push'](_0xd6ab6['shift']());}}}(a117_0x3adf,0xcf908));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a117_0x3adf(){const _0x3f191b=['tableList','48CpGbVa','\x20(db\x20link\x20','datasetTableCount','appCode','3864248npIlgP','summary','table','tables','5129030ujyJyH','number','string','1573790bckePS','2155362rbTRLH','2804811SEPPyM','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20table\x20comparison\x20row(s),\x20total\x20','physicalTableCount','totalCount','9Ehvywg','19516WYGDbW','read','num','5355125atWGfZ','6bdRpYC','length'];a117_0x3adf=function(){return _0x3f191b;};return a117_0x3adf();}export const dbTables={'service':'db','command':a117_0xe350ec(0xfc),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0xe350ec(0x109),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0xe350ec(0xfb),'type':a117_0xe350ec(0xff),'description':a117_0xe350ec(0x103)}],async 'execute'(_0x40e21b){const _0x11be4e=a117_0xe350ec,_0x40b53e=_0x40e21b[_0x11be4e(0xf0)]('id'),_0x548080=_0x40e21b['str']('table')||undefined,_0xe78223=await getAllDbTableDiff(getDbTableComparisonPage,_0x40e21b[_0x11be4e(0xf8)],_0x40b53e,_0x548080),_0x4a99ed=_0xe78223[_0x11be4e(0xf4)];return{'ok':!![],'data':{'dbLinkId':_0x40b53e,'totalCount':_0xe78223[_0x11be4e(0x106)],...typeof _0xe78223[_0x11be4e(0x105)]==='number'?{'physicalTableCount':_0xe78223[_0x11be4e(0x105)]}:{},...typeof _0xe78223['datasetTableCount']===_0x11be4e(0xfe)?{'datasetTableCount':_0xe78223[_0x11be4e(0xf7)]}:{},..._0xe78223[_0x11be4e(0xfa)]?{'summary':_0xe78223['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x4a99ed),'tables':_0x4a99ed},'message':_0x4a99ed[_0x11be4e(0xf3)]+_0x11be4e(0x104)+_0xe78223[_0x11be4e(0x106)]+_0x11be4e(0xf6)+_0x40b53e+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x15bff6=a118_0x21f1;(function(_0x13aef8,_0x1a85e6){const _0x1d8fab=a118_0x21f1,_0x4ec649=_0x13aef8();while(!![]){try{const _0x35138c=parseInt(_0x1d8fab(0x99))/0x1+parseInt(_0x1d8fab(0x97))/0x2*(-parseInt(_0x1d8fab(0x9c))/0x3)+-parseInt(_0x1d8fab(0x98))/0x4*(-parseInt(_0x1d8fab(0xa1))/0x5)+-parseInt(_0x1d8fab(0xa3))/0x6+parseInt(_0x1d8fab(0x8f))/0x7+parseInt(_0x1d8fab(0x9f))/0x8+parseInt(_0x1d8fab(0x94))/0x9*(-parseInt(_0x1d8fab(0xa5))/0xa);if(_0x35138c===_0x1a85e6)break;else _0x4ec649['push'](_0x4ec649['shift']());}catch(_0x3f79cc){_0x4ec649['push'](_0x4ec649['shift']());}}}(a118_0x2118,0x791fe));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x540398){const _0x325e37=a118_0x21f1;if(_0x540398===!![]||_0x540398===![])return{'success':_0x540398};if(_0x540398===null||_0x540398===undefined)return{'type':typeof _0x540398};if(typeof _0x540398!=='object')return{'type':typeof _0x540398};const _0x2ad04b=_0x540398,_0x1ee747=[_0x325e37(0x9d),_0x325e37(0x9e),'code','error',_0x325e37(0x95),_0x325e37(0x92)],_0x17ab4e={};for(const _0x59a428 of _0x1ee747){if(_0x59a428 in _0x2ad04b)_0x17ab4e[_0x59a428]=_0x2ad04b[_0x59a428];}return Object['keys'](_0x17ab4e)[_0x325e37(0x96)]===0x0&&(_0x17ab4e['keys']=Object['keys'](_0x2ad04b)[_0x325e37(0xa4)](0x0,0x14)),_0x17ab4e;}function a118_0x21f1(_0x102a39,_0x57a58f){_0x102a39=_0x102a39-0x8e;const _0x211801=a118_0x2118();let _0x21f1c8=_0x211801[_0x102a39];return _0x21f1c8;}function a118_0x2118(){const _0x80294d=['slice','10YiLdRD','object','3470299uIEiVF','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','data','\x20(see\x20data.result)','11193327fNcrQn','msg','length','388492nKfJEx','436MFFqoE','875929OfYTCT','num','Connection\x20OK\x20for\x20db\x20link\x20','9xzLyMq','success','message','6911536BTBTbX','read','9120CmfiAp','test','671262xfmhEL'];a118_0x2118=function(){return _0x80294d;};return a118_0x2118();}export const dbTest={'service':'db','command':a118_0x15bff6(0xa2),'description':a118_0x15bff6(0x90),'risk':a118_0x15bff6(0xa0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2d0411){const _0x59fe89=a118_0x15bff6,_0x1458b8=_0x2d0411[_0x59fe89(0x9a)]('id'),_0x518a3c=await testDbLinkConnect(_0x1458b8),_0x386094=_0x518a3c===!![]||typeof _0x518a3c===_0x59fe89(0x8e)&&_0x518a3c!==null&&_0x518a3c[_0x59fe89(0x9d)]===!![],_0x25554a=summarizeTestConnectResult(_0x518a3c);return{'ok':!![],'data':{'id':_0x1458b8,'connected':Boolean(_0x386094),'result':_0x25554a},'message':_0x386094?_0x59fe89(0x9b)+_0x1458b8:_0x59fe89(0x91)+_0x1458b8+_0x59fe89(0x93)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a119_0x521f(){const _0x4720dc=['New\x20database\x20name','New\x20username','9457657FDPRDd','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbdesc','validation','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','/smartapi/dblink/update','198brpdxW','dbname','has','skip-connection-test','267584CWJkEb','username','Updated\x20db\x20link\x20','password','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','36OJWpXA','dbparam','615110IvOpwO','******','New\x20host:port','[redacted]','write','update','string','80UkJvRw','265oeejEq','num','16708UiGFPm','dburl','113111CwEhpd','1182TAZcbm','dbDesc','88151BqYTGB','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','New\x20connection\x20parameter\x20string','str','New\x20description','bool'];a119_0x521f=function(){return _0x4720dc;};return a119_0x521f();}const a119_0x4acfed=a119_0xea3a;function a119_0xea3a(_0x1742a8,_0x22b168){_0x1742a8=_0x1742a8-0x12c;const _0x521f9e=a119_0x521f();let _0xea3ad0=_0x521f9e[_0x1742a8];return _0xea3ad0;}(function(_0x4f4c7d,_0x2c3ed6){const _0x49bdf1=a119_0xea3a,_0x48da8a=_0x4f4c7d();while(!![]){try{const _0x3b1733=-parseInt(_0x49bdf1(0x12f))/0x1+-parseInt(_0x49bdf1(0x144))/0x2+-parseInt(_0x49bdf1(0x140))/0x3*(parseInt(_0x49bdf1(0x12d))/0x4)+parseInt(_0x49bdf1(0x153))/0x5*(parseInt(_0x49bdf1(0x130))/0x6)+parseInt(_0x49bdf1(0x132))/0x7*(parseInt(_0x49bdf1(0x152))/0x8)+-parseInt(_0x49bdf1(0x149))/0x9*(parseInt(_0x49bdf1(0x14b))/0xa)+parseInt(_0x49bdf1(0x13a))/0xb;if(_0x3b1733===_0x2c3ed6)break;else _0x48da8a['push'](_0x48da8a['shift']());}catch(_0x110fab){_0x48da8a['push'](_0x48da8a['shift']());}}}(a119_0x521f,0x378c9));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x4acfed(0x14c),a119_0x4acfed(0x14e)]);function mergeDbLinkUpdate(_0x4b8ada,_0x4e793c){const _0x474630=a119_0x4acfed,_0x350318={..._0x4b8ada},_0x1e3a22=_0x4e793c['str'](_0x474630(0x147));if(_0x1e3a22&&MASKED_PASSWORD_VALUES[_0x474630(0x142)](_0x1e3a22))throw CliErrors[_0x474630(0x13d)](_0x474630(0x148));if(!_0x1e3a22&&MASKED_PASSWORD_VALUES['has'](String(_0x4b8ada['password']??'')))throw CliErrors[_0x474630(0x13d)](_0x474630(0x13e));const _0x22c322=_0x4e793c[_0x474630(0x135)](_0x474630(0x141));if(_0x22c322)_0x350318['dbName']=_0x22c322;const _0x907d5c=_0x4e793c['str'](_0x474630(0x12e));if(_0x907d5c)_0x350318['dbUrl']=_0x907d5c['trim']();const _0x1a81ff=_0x4e793c[_0x474630(0x135)](_0x474630(0x145));if(_0x1a81ff)_0x350318['username']=_0x1a81ff;if(_0x1e3a22)_0x350318[_0x474630(0x147)]=_0x1e3a22;const _0x3ecc5d=_0x4e793c[_0x474630(0x135)](_0x474630(0x14a));if(_0x3ecc5d)_0x350318['dbParam']=_0x3ecc5d;const _0xfca57=_0x4e793c[_0x474630(0x135)]('dbdesc');if(_0xfca57)_0x350318[_0x474630(0x131)]=_0xfca57;return _0x350318;}export const dbUpdate={'service':'db','command':a119_0x4acfed(0x150),'description':a119_0x4acfed(0x133),'risk':a119_0x4acfed(0x14f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x4acfed(0x141),'type':'string','description':a119_0x4acfed(0x138)},{'name':'dburl','type':a119_0x4acfed(0x151),'description':a119_0x4acfed(0x14d)},{'name':a119_0x4acfed(0x145),'type':a119_0x4acfed(0x151),'description':a119_0x4acfed(0x139)},{'name':a119_0x4acfed(0x147),'type':'string','description':a119_0x4acfed(0x13b)},{'name':a119_0x4acfed(0x14a),'type':a119_0x4acfed(0x151),'description':a119_0x4acfed(0x134)},{'name':a119_0x4acfed(0x13c),'type':'string','description':a119_0x4acfed(0x136)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3be04a){const _0xf3cf9=a119_0x4acfed,_0x232a31=_0x3be04a[_0xf3cf9(0x135)](_0xf3cf9(0x12e));if(_0x232a31&&!validateDbUrl(_0x232a31['trim']()))throw CliErrors[_0xf3cf9(0x13d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x232a31+'\x22');},async 'dryRun'(_0x199453){const _0x1bd5de=a119_0x4acfed,_0x37a9b0=_0x199453[_0x1bd5de(0x12c)]('id'),_0x577d00=await getDbLinkInfo(_0x37a9b0),_0x30e894=mergeDbLinkUpdate(_0x577d00,_0x199453),_0x41cf1d=sanitizeDbLinkForOutput(_0x30e894);return{'method':'POST','url':_0x1bd5de(0x13f),'body':_0x41cf1d,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x199453[_0x1bd5de(0x137)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x38ec7e){const _0x4d9932=a119_0x4acfed,_0x167ecc=_0x38ec7e['num']('id'),_0x3e9118=await getDbLinkInfo(_0x167ecc),_0x2b2413=mergeDbLinkUpdate(_0x3e9118,_0x38ec7e);!_0x38ec7e['bool'](_0x4d9932(0x143))&&await assertDbLinkConnectionPreflight(_0x2b2413);const {id:_0x4e544f,entity:_0x41b47f}=normalizeEntityWithIdResponse(await updateDbLink(_0x2b2413));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x41b47f),'message':_0x4d9932(0x146)+(_0x4e544f??_0x167ecc)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x1804(_0x428419,_0x4bc2cc){_0x428419=_0x428419-0xc7;const _0x46a21d=a120_0x46a2();let _0x1804ab=_0x46a21d[_0x428419];return _0x1804ab;}(function(_0x3e5111,_0x385660){const _0x387e2f=a120_0x1804,_0x579c17=_0x3e5111();while(!![]){try{const _0x221ca3=parseInt(_0x387e2f(0xd2))/0x1*(-parseInt(_0x387e2f(0xc7))/0x2)+parseInt(_0x387e2f(0xcb))/0x3*(-parseInt(_0x387e2f(0xca))/0x4)+-parseInt(_0x387e2f(0xd1))/0x5*(-parseInt(_0x387e2f(0xce))/0x6)+parseInt(_0x387e2f(0xcc))/0x7+-parseInt(_0x387e2f(0xcd))/0x8*(parseInt(_0x387e2f(0xd0))/0x9)+-parseInt(_0x387e2f(0xd3))/0xa*(-parseInt(_0x387e2f(0xc8))/0xb)+parseInt(_0x387e2f(0xcf))/0xc*(parseInt(_0x387e2f(0xc9))/0xd);if(_0x221ca3===_0x385660)break;else _0x579c17['push'](_0x579c17['shift']());}catch(_0x251232){_0x579c17['push'](_0x579c17['shift']());}}}(a120_0x46a2,0x87e81));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x46a2(){const _0x4a4eaf=['12MIbKDr','4811742hKfNQV','1830455ABimnB','2RgtRlt','959190iwfFOp','159372yIVwIg','44HJeHgk','13044681dEBerx','6636luXphS','1113iIPaoI','790776PENjFA','8ykkjaQ','6UhZSKU'];a120_0x46a2=function(){return _0x4a4eaf;};return a120_0x46a2();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x47f4(_0x9b11a8,_0x3a79bb){_0x9b11a8=_0x9b11a8-0xa4;const _0x5cbd68=a121_0x5cbd();let _0x47f424=_0x5cbd68[_0x9b11a8];return _0x47f424;}const a121_0x5c3712=a121_0x47f4;(function(_0x7655fa,_0x9dd4f5){const _0x36c60a=a121_0x47f4,_0x5b9750=_0x7655fa();while(!![]){try{const _0x2156f1=-parseInt(_0x36c60a(0xb4))/0x1+-parseInt(_0x36c60a(0xb6))/0x2*(-parseInt(_0x36c60a(0xb2))/0x3)+-parseInt(_0x36c60a(0xc4))/0x4*(-parseInt(_0x36c60a(0xb1))/0x5)+parseInt(_0x36c60a(0xbb))/0x6+-parseInt(_0x36c60a(0xc9))/0x7+-parseInt(_0x36c60a(0xab))/0x8*(-parseInt(_0x36c60a(0xb0))/0x9)+parseInt(_0x36c60a(0xc6))/0xa*(-parseInt(_0x36c60a(0xc3))/0xb);if(_0x2156f1===_0x9dd4f5)break;else _0x5b9750['push'](_0x5b9750['shift']());}catch(_0xa73a02){_0x5b9750['push'](_0x5b9750['shift']());}}}(a121_0x5cbd,0xb9f97));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x5cbd(){const _0x1a8d54=['sync-all','POST','data','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','defineProperty','not_submitted','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','10378951CUWEwc','192yIZSAW','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','10zbrsmr','not_needed','validation','3709811IhhqTu','status','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','application_deployment_sync','write','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','deployment_sync_submit_outcome_unknown','16KiTtSf','/smartapi/data-sync/submit','submitted','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','Submitted\x20deployment\x20synchronization\x20job\x20','3916980RwtQZY','131360AzfUGO','13458pBowPj','outcome','33417QSibak','job','50uwUqBx','all_server_supported_metadata','appCode','boolean','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','150216RUsCvR'];a121_0x5cbd=function(){return _0x1a8d54;};return a121_0x5cbd();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x5c3712(0xac),CONFIRM_FLAG={'name':'confirm','type':a121_0x5c3712(0xb9),'description':a121_0x5c3712(0xa6)};export const deploymentSyncAll={'service':a121_0x5c3712(0xa5),'command':a121_0x5c3712(0xbc),'description':a121_0x5c3712(0xba),'risk':a121_0x5c3712(0xa8),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x5c3712(0xbf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1523c1){const _0x1b86dc=a121_0x5c3712;return asDryRunResult(buildPreview(_0x1523c1[_0x1b86dc(0xb8)]),{'method':_0x1b86dc(0xbd),'url':SUBMIT_PATH,'description':_0x1b86dc(0xae)});},async 'execute'(_0x25fca3){const _0x15f1e6=a121_0x5c3712;if(!_0x25fca3['bool']('confirm'))throw CliErrors[_0x15f1e6(0xc8)](_0x15f1e6(0xc5),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x28e607=await submitDeploymentMetadataSyncAll({'appCode':_0x25fca3[_0x15f1e6(0xb8)]});if(_0x28e607[_0x15f1e6(0xb3)]===_0x15f1e6(0xc7))return{'ok':!![],'data':{'operation':_0x15f1e6(0xa7),'appCode':_0x25fca3['appCode'],'submitted':![],'outcome':_0x15f1e6(0xc7)},'message':_0x15f1e6(0xc2)};return{'ok':!![],'data':{'operation':_0x15f1e6(0xa7),'appCode':_0x25fca3[_0x15f1e6(0xb8)],'submitted':!![],'outcome':_0x15f1e6(0xad),'jobId':_0x28e607['job']['jobId'],'status':_0x28e607['job'][_0x15f1e6(0xca)]},'message':_0x15f1e6(0xaf)+_0x28e607[_0x15f1e6(0xb5)]['jobId']+'.'};}catch(_0xcb5d08){if(!isPlatformTransportFailure(_0xcb5d08))throw _0xcb5d08;const _0x2e9c14=new CliError(_0x15f1e6(0xaa),0x2,_0x15f1e6(0xa9),_0x15f1e6(0xa4));Object[_0x15f1e6(0xc0)](_0x2e9c14,_0x15f1e6(0xbe),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x25fca3[_0x15f1e6(0xb8)],'submitted':null,'outcome':'unknown'}});throw _0x2e9c14;}}};function buildPreview(_0x1af506){const _0xeccf24=a121_0x5c3712;return{'operation':'application_deployment_sync','selector':{'appCode':_0x1af506,'scope':_0xeccf24(0xb7)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xeccf24(0xc1)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a122_0x46698=a122_0x5ea3;function a122_0x5ea3(_0x180972,_0x1d94d3){_0x180972=_0x180972-0x90;const _0x59836b=a122_0x5983();let _0x5ea31c=_0x59836b[_0x180972];return _0x5ea31c;}(function(_0x354bab,_0x4accf1){const _0x26a3a1=a122_0x5ea3,_0x1dd3a1=_0x354bab();while(!![]){try{const _0x277634=-parseInt(_0x26a3a1(0x90))/0x1*(parseInt(_0x26a3a1(0xad))/0x2)+-parseInt(_0x26a3a1(0xa0))/0x3*(-parseInt(_0x26a3a1(0xa5))/0x4)+parseInt(_0x26a3a1(0x9c))/0x5+parseInt(_0x26a3a1(0xa2))/0x6*(-parseInt(_0x26a3a1(0x96))/0x7)+parseInt(_0x26a3a1(0xa4))/0x8*(parseInt(_0x26a3a1(0x99))/0x9)+parseInt(_0x26a3a1(0x98))/0xa+-parseInt(_0x26a3a1(0xae))/0xb;if(_0x277634===_0x4accf1)break;else _0x1dd3a1['push'](_0x1dd3a1['shift']());}catch(_0x150e12){_0x1dd3a1['push'](_0x1dd3a1['shift']());}}}(a122_0x5983,0x80277));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x5983(){const _0x638714=['3412850VZZZVq','deployment','length','current-page','9FfLPAM','\x20deployment\x20synchronization\x20job(s).','62724tgQysK','number','16NpkkPd','389716xsqSVh','str','page-size','Page\x20number','Optional\x20server-defined\x20job\x20status\x20filter','List\x20application\x20deployment\x20synchronization\x20jobs','Items\x20per\x20page\x20(maximum\x20100)','isSafeInteger','4nhKRsA','16486459oVBJov','40438FSZrXO','validation','Found\x20','sync-jobs','--current-page\x20must\x20be\x20a\x20positive\x20integer.','status','301zPyBub','items','5796190UIpHRa','4498245DRUwug','num','appCode'];a122_0x5983=function(){return _0x638714;};return a122_0x5983();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x46698(0x9d),'command':a122_0x46698(0x93),'description':a122_0x46698(0xaa),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x46698(0x9f),'type':a122_0x46698(0xa3),'default':0x1,'description':a122_0x46698(0xa8)},{'name':'page-size','type':a122_0x46698(0xa3),'default':0xa,'description':a122_0x46698(0xab)},{'name':a122_0x46698(0x95),'type':'string','description':a122_0x46698(0xa9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2182cf){const _0x30a2b6=a122_0x46698;readPaging(_0x2182cf[_0x30a2b6(0x9a)](_0x30a2b6(0x9f),0x1),_0x2182cf[_0x30a2b6(0x9a)]('page-size',0xa));},async 'execute'(_0x52d32c){const _0x5533a2=a122_0x46698,{currentPage:_0x281066,pageSize:_0x1ec7dd}=readPaging(_0x52d32c[_0x5533a2(0x9a)]('current-page',0x1),_0x52d32c['num'](_0x5533a2(0xa7),0xa)),_0x12d751=_0x52d32c[_0x5533a2(0xa6)]('status')['trim'](),_0x17fcd5=await listDeploymentMetadataSyncJobs({'appCode':_0x52d32c[_0x5533a2(0x9b)],'currentPage':_0x281066,'pageSize':_0x1ec7dd,..._0x12d751?{'status':_0x12d751}:{}});return{'ok':!![],'data':{'appCode':_0x52d32c[_0x5533a2(0x9b)],..._0x17fcd5},'message':_0x5533a2(0x92)+_0x17fcd5[_0x5533a2(0x97)][_0x5533a2(0x9e)]+_0x5533a2(0xa1)};}};function readPaging(_0x2db5fb,_0x2dacc7){const _0x3afbe6=a122_0x46698;if(!Number[_0x3afbe6(0xac)](_0x2db5fb)||_0x2db5fb<0x1)throw CliErrors[_0x3afbe6(0x91)](_0x3afbe6(0x94));if(!Number['isSafeInteger'](_0x2dacc7)||_0x2dacc7<0x1||_0x2dacc7>0x64)throw CliErrors[_0x3afbe6(0x91)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x2db5fb,'pageSize':_0x2dacc7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x1ea5a3=a123_0x47b9;(function(_0xe25c64,_0x4fd446){const _0x3ca8c9=a123_0x47b9,_0x295b87=_0xe25c64();while(!![]){try{const _0x3ab9b6=parseInt(_0x3ca8c9(0x1d6))/0x1+parseInt(_0x3ca8c9(0x1ce))/0x2*(parseInt(_0x3ca8c9(0x1c5))/0x3)+parseInt(_0x3ca8c9(0x1dd))/0x4*(parseInt(_0x3ca8c9(0x1bf))/0x5)+-parseInt(_0x3ca8c9(0x1bb))/0x6*(parseInt(_0x3ca8c9(0x1d8))/0x7)+parseInt(_0x3ca8c9(0x1bd))/0x8*(-parseInt(_0x3ca8c9(0x1d0))/0x9)+-parseInt(_0x3ca8c9(0x1cb))/0xa*(-parseInt(_0x3ca8c9(0x1d4))/0xb)+-parseInt(_0x3ca8c9(0x1c2))/0xc*(-parseInt(_0x3ca8c9(0x1b5))/0xd);if(_0x3ab9b6===_0x4fd446)break;else _0x295b87['push'](_0x295b87['shift']());}catch(_0x5895a5){_0x295b87['push'](_0x295b87['shift']());}}}(a123_0x5678,0x922ec));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x47b9(_0x255824,_0x182c63){_0x255824=_0x255824-0x1b5;const _0x567812=a123_0x5678();let _0x47b94f=_0x567812[_0x255824];return _0x47b94f;}function a123_0x5678(){const _0x340855=['39672AfYEzg','FAILED','\x20is\x20','--job-id\x20must\x20be\x20a\x20positive\x20integer.','Deployment\x20synchronization\x20job\x20','has','80BXmjtl','read','PENDING','6isPgzL','Get\x20application\x20deployment\x20synchronization\x20job\x20status','27OttQGE','deployment','number','job-id','1390642FlQEJy','isSafeInteger','743589lAeqdn','bizType','7011074rFugra','Deployment\x20synchronization\x20job\x20ID','Preserved\x20server-defined\x20status\x20','reduce','RUNNING','9676cKcGRY','13LJxhTw','appCode','filter','status','map','SUCCESS','6FBrBWB','action','2708040AerFMQ','num','865rXyFTD','length','sync-status','4832844XENNEF',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','results'];a123_0x5678=function(){return _0x340855;};return a123_0x5678();}const TERMINAL_STATUSES=new Set([a123_0x1ea5a3(0x1ba),'PARTIAL_SUCCESS',a123_0x1ea5a3(0x1c6)]),ACTIVE_STATUSES=new Set([a123_0x1ea5a3(0x1cd),a123_0x1ea5a3(0x1dc)]);export const deploymentSyncStatus={'service':a123_0x1ea5a3(0x1d1),'command':a123_0x1ea5a3(0x1c1),'description':a123_0x1ea5a3(0x1cf),'risk':a123_0x1ea5a3(0x1cc),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x1ea5a3(0x1d3),'type':a123_0x1ea5a3(0x1d2),'required':!![],'description':a123_0x1ea5a3(0x1d9)}],async 'validate'(_0x258fcc){const _0x2c58cc=a123_0x1ea5a3;readJobId(_0x258fcc[_0x2c58cc(0x1be)]('job-id'));},async 'execute'(_0x2255df){const _0x4c6272=a123_0x1ea5a3,_0x4d29c1=readJobId(_0x2255df['num']('job-id')),_0x7e5ff9=await getDeploymentMetadataSyncStatus({'jobId':_0x4d29c1,'appCode':_0x2255df[_0x4c6272(0x1b6)]}),_0xbc5ceb=TERMINAL_STATUSES[_0x4c6272(0x1ca)](_0x7e5ff9[_0x4c6272(0x1b8)])?!![]:ACTIVE_STATUSES[_0x4c6272(0x1ca)](_0x7e5ff9[_0x4c6272(0x1b8)])?![]:null,_0x5ca037=countBy(_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1b9)](_0x2b8a90=>_0x2b8a90[_0x4c6272(0x1d7)])),_0x16b899=countBy(_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1b9)](_0x2c64d3=>_0x2c64d3[_0x4c6272(0x1bc)])),_0x2434ab=_0xbc5ceb===null?[_0x4c6272(0x1da)+_0x7e5ff9[_0x4c6272(0x1b8)]+_0x4c6272(0x1c3)]:[];return{'ok':!![],'data':{'job':_0x7e5ff9,'isTerminal':_0xbc5ceb,'summary':{'total':_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1c0)],'failed':_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1b7)](_0x1c618c=>_0x1c618c[_0x4c6272(0x1bc)]==='FAILED')[_0x4c6272(0x1c0)],'byBizType':_0x5ca037,'byAction':_0x16b899},'warnings':_0x2434ab},'message':_0x4c6272(0x1c9)+_0x4d29c1+_0x4c6272(0x1c7)+_0x7e5ff9[_0x4c6272(0x1b8)]+'.'};}};function readJobId(_0xbceb68){const _0x190a7b=a123_0x1ea5a3;if(!Number[_0x190a7b(0x1d5)](_0xbceb68)||_0xbceb68<=0x0)throw CliErrors['validation'](_0x190a7b(0x1c8));return _0xbceb68;}function countBy(_0xaaa91b){const _0x2ba1cc=a123_0x1ea5a3;return _0xaaa91b[_0x2ba1cc(0x1db)]((_0x3c6a3e,_0x5b9ffb)=>{return _0x3c6a3e[_0x5b9ffb]=(_0x3c6a3e[_0x5b9ffb]??0x0)+0x1,_0x3c6a3e;},{});}
|