@lovrabet/rabetbase-cli 2.5.11 → 2.5.12-beta.1
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
|
+
const a108_0x1ad659=a108_0x379b;(function(_0x381cde,_0x49d214){const _0x204bbe=a108_0x379b,_0x37e20f=_0x381cde();while(!![]){try{const _0x553a8f=parseInt(_0x204bbe(0x14a))/0x1+-parseInt(_0x204bbe(0x149))/0x2+parseInt(_0x204bbe(0x134))/0x3*(parseInt(_0x204bbe(0x143))/0x4)+-parseInt(_0x204bbe(0x148))/0x5*(-parseInt(_0x204bbe(0x12d))/0x6)+parseInt(_0x204bbe(0x141))/0x7+parseInt(_0x204bbe(0x138))/0x8+-parseInt(_0x204bbe(0x132))/0x9;if(_0x553a8f===_0x49d214)break;else _0x37e20f['push'](_0x37e20f['shift']());}catch(_0x2e0825){_0x37e20f['push'](_0x37e20f['shift']());}}}(a108_0x3bb3,0x8d9a7));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a108_0x379b(_0x22bac1,_0x1c9f79){_0x22bac1=_0x22bac1-0x129;const _0x3bb34e=a108_0x3bb3();let _0x379be0=_0x3bb34e[_0x22bac1];return _0x379be0;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a108_0x3bb3(){const _0x4590b1=['high-risk-write','datasetDependency','bool','datasets','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','2918475MfJAtQ','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','4pKYTSA','DB_TABLE','\x20active\x20Dataset(s),\x20but\x20found\x20','/smartapi/dblink/delete','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','234470DsTPaw','850576MoHitp','475971XIcjmM','appCode','Expected\x20','all','\x20still\x20has\x20','POST','expected-dataset-count','isInteger','validation','activeDatasetCount','114vdUiuj','delete','boolean','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','num','13846743gLEXrJ','Deleted\x20db\x20link\x20','452382cTSnvn','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','flag','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','4873168ifmLzr','Database\x20connection\x20','confirm'];a108_0x3bb3=function(){return _0x4590b1;};return a108_0x3bb3();}const CONFIRM_FLAG={'name':'confirm','type':a108_0x1ad659(0x12f),'description':a108_0x1ad659(0x147)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x1ad659(0x129),'type':'number','description':a108_0x1ad659(0x130)};export const dbDelete={'service':'db','command':a108_0x1ad659(0x12e),'description':a108_0x1ad659(0x142),'risk':a108_0x1ad659(0x13b),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x48d4a1){const _0x397f89=a108_0x1ad659,_0x5d308b=await loadDeleteImpact(_0x48d4a1);return assertExpectedDatasetCount(_0x48d4a1,_0x5d308b[_0x397f89(0x13c)][_0x397f89(0x12c)]),{'method':_0x397f89(0x14f),'url':_0x397f89(0x146),'body':{'id':_0x5d308b['id']},'description':_0x5d308b[_0x397f89(0x13c)][_0x397f89(0x12c)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x5d308b[_0x397f89(0x13c)]['activeDatasetCount']+'\x20active\x20DB_TABLE\x20Dataset(s).':'Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.',..._0x5d308b};},async 'execute'(_0x198bb4){const _0x53e97c=a108_0x1ad659;if(!_0x198bb4[_0x53e97c(0x13d)](_0x53e97c(0x13a)))throw CliErrors[_0x53e97c(0x12b)](_0x53e97c(0x137),_0x53e97c(0x140));const _0x32d257=_0x198bb4[_0x53e97c(0x131)]('id'),_0xf473de=await loadDeleteImpact(_0x198bb4),_0x499e83=_0xf473de[_0x53e97c(0x13c)][_0x53e97c(0x12c)];assertExpectedDatasetCount(_0x198bb4,_0x499e83);if(_0x499e83>0x0)throw CliErrors['validation'](_0x53e97c(0x139)+_0x32d257+_0x53e97c(0x14e)+_0x499e83+_0x53e97c(0x13f),'Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x32d257),{'ok':!![],'data':{'id':_0x32d257,'deleted':!![],'activeDatasetCount':_0x499e83},'message':_0x53e97c(0x133)+_0x32d257};}};async function loadDeleteImpact(_0x362462){const _0xf64108=a108_0x1ad659,_0x5d40e9=_0x362462['num']('id'),[_0x36a911,_0x54db32]=await Promise[_0xf64108(0x14d)]([getDbLinkInfo(_0x5d40e9),listDatasets(_0x362462[_0xf64108(0x14b)],{'source':_0xf64108(0x144)})]),_0x186396=buildDbDatasetDependency(_0x36a911,_0x54db32);return{'id':_0x5d40e9,'connection':sanitizeDbLinkForOutput(_0x36a911),'datasetDependency':_0x186396[_0xf64108(0x13c)],'activeDatasetCount':_0x186396[_0xf64108(0x13c)]['activeDatasetCount'],'datasets':_0x186396[_0xf64108(0x13e)]};}function assertExpectedDatasetCount(_0x3e1fdc,_0x52d632){const _0x2cdc02=a108_0x1ad659,_0x2a385b=_0x3e1fdc[_0x2cdc02(0x136)]('expected-dataset-count');if(_0x2a385b===undefined||_0x2a385b==='')return;const _0x3cdf01=_0x3e1fdc[_0x2cdc02(0x131)](_0x2cdc02(0x129));if(!Number[_0x2cdc02(0x12a)](_0x3cdf01)||_0x3cdf01<0x0)throw CliErrors[_0x2cdc02(0x12b)](_0x2cdc02(0x135));if(_0x3cdf01!==_0x52d632)throw CliErrors[_0x2cdc02(0x12b)](_0x2cdc02(0x14c)+_0x3cdf01+_0x2cdc02(0x145)+_0x52d632+'.','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x725b30=a109_0x54e6;function a109_0x54e6(_0x1fdefb,_0x13bd0a){_0x1fdefb=_0x1fdefb-0x1af;const _0xfa2b5c=a109_0xfa2b();let _0x54e68f=_0xfa2b5c[_0x1fdefb];return _0x54e68f;}(function(_0x490f12,_0x546d5c){const _0x58c000=a109_0x54e6,_0x52eb13=_0x490f12();while(!![]){try{const _0x1a9364=-parseInt(_0x58c000(0x1b5))/0x1+parseInt(_0x58c000(0x1bc))/0x2+parseInt(_0x58c000(0x1be))/0x3*(parseInt(_0x58c000(0x1b8))/0x4)+parseInt(_0x58c000(0x1b1))/0x5*(parseInt(_0x58c000(0x1b0))/0x6)+-parseInt(_0x58c000(0x1ba))/0x7+parseInt(_0x58c000(0x1b3))/0x8*(parseInt(_0x58c000(0x1b9))/0x9)+-parseInt(_0x58c000(0x1b2))/0xa;if(_0x1a9364===_0x546d5c)break;else _0x52eb13['push'](_0x52eb13['shift']());}catch(_0x3a05bf){_0x52eb13['push'](_0x52eb13['shift']());}}}(a109_0xfa2b,0xaddee));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a109_0xfa2b(){const _0x3125ba=['324RjDhdT','9651845VQhrgQ','DB_TABLE','2257986GhfMhr','detail','33duzULu','dbName','read','917682RFDgaQ','35emMIqH','7714460YrJZGS','4944HvzjFe','db\x20link\x20','362571XAhfOi','appCode','num','364784WpyoeE'];a109_0xfa2b=function(){return _0x3125ba;};return a109_0xfa2b();}export const dbDetail={'service':'db','command':a109_0x725b30(0x1bd),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a109_0x725b30(0x1af),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x555b3a){const _0x5061d3=a109_0x725b30,_0x2cd544=_0x555b3a[_0x5061d3(0x1b7)]('id'),_0x48f9ad=await getDbLinkInfo(_0x2cd544),_0x309f6a=await listDatasets(_0x48f9ad[_0x5061d3(0x1b6)]||_0x555b3a[_0x5061d3(0x1b6)],{'source':_0x5061d3(0x1bb)}),_0x153340=buildDbDatasetDependency(_0x48f9ad,_0x309f6a);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x48f9ad),'datasetDependency':_0x153340['datasetDependency']},'message':_0x5061d3(0x1b4)+_0x2cd544+':\x20'+_0x48f9ad[_0x5061d3(0x1bf)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a110_0x30c69c=a110_0x31bc;function a110_0x31bc(_0x891619,_0x12bed7){_0x891619=_0x891619-0x81;const _0x5ebf6c=a110_0x5ebf();let _0x31bcfb=_0x5ebf6c[_0x891619];return _0x31bcfb;}(function(_0x5b8e54,_0x428ba8){const _0x5826d6=a110_0x31bc,_0x48f60c=_0x5b8e54();while(!![]){try{const _0x19f430=parseInt(_0x5826d6(0x8b))/0x1+parseInt(_0x5826d6(0x8a))/0x2*(-parseInt(_0x5826d6(0x89))/0x3)+parseInt(_0x5826d6(0x93))/0x4+-parseInt(_0x5826d6(0x8e))/0x5+-parseInt(_0x5826d6(0x8c))/0x6+parseInt(_0x5826d6(0x85))/0x7*(parseInt(_0x5826d6(0x94))/0x8)+parseInt(_0x5826d6(0x84))/0x9;if(_0x19f430===_0x428ba8)break;else _0x48f60c['push'](_0x48f60c['shift']());}catch(_0x4268b1){_0x48f60c['push'](_0x48f60c['shift']());}}}(a110_0x5ebf,0xb87c1));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a110_0x5ebf(){const _0x364c7a=['25328ujmqFw','8316120GbwmiJ','trim','3799375lSECgZ','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','traceId','\x20--format\x20compress','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','4308964qDpVPb','72JDbSfa','\x20--plan\x20','num','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','20874222RRcNJD','76468ZbXDBg','appCode','validation','diff-refresh-start','1856097xdcKTR','2vmqfIy'];a110_0x5ebf=function(){return _0x364c7a;};return a110_0x5ebf();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a110_0x30c69c(0x88),'description':a110_0x30c69c(0x92),'risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x1ad0b9){const _0x3220e9=a110_0x30c69c,_0x448543=_0x1ad0b9[_0x3220e9(0x82)]('id'),_0x55abbe=await startDbTableDiffRefresh(_0x1ad0b9[_0x3220e9(0x86)],_0x448543),_0xe7dda6=_0x55abbe[_0x3220e9(0x90)]?.[_0x3220e9(0x8d)]();if(!_0xe7dda6)throw CliErrors[_0x3220e9(0x87)](_0x3220e9(0x83));return{'ok':!![],'data':{'dbLinkId':_0x448543,'traceId':_0xe7dda6,'status':_0x55abbe['status']??null,'query':{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x448543+_0x3220e9(0x81)+_0xe7dda6+_0x3220e9(0x91)}},'message':_0x3220e9(0x8f)+_0x448543};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x3f6bdc=a111_0xc643;(function(_0xd202df,_0x15699c){const _0x11d6ff=a111_0xc643,_0x24a7cb=_0xd202df();while(!![]){try{const _0x21d938=parseInt(_0x11d6ff(0xa5))/0x1*(-parseInt(_0x11d6ff(0x95))/0x2)+parseInt(_0x11d6ff(0x8f))/0x3+parseInt(_0x11d6ff(0x96))/0x4+parseInt(_0x11d6ff(0xa3))/0x5*(-parseInt(_0x11d6ff(0xa6))/0x6)+-parseInt(_0x11d6ff(0x90))/0x7+parseInt(_0x11d6ff(0x92))/0x8*(-parseInt(_0x11d6ff(0x91))/0x9)+parseInt(_0x11d6ff(0x9e))/0xa;if(_0x21d938===_0x15699c)break;else _0x24a7cb['push'](_0x24a7cb['shift']());}catch(_0x4d4a62){_0x24a7cb['push'](_0x24a7cb['shift']());}}}(a111_0x20ac,0xba3ed));import{getDbAnalysisStatus}from'../../core/api-client.js';function a111_0xc643(_0x47d856,_0x1f749d){_0x47d856=_0x47d856-0x8f;const _0x20aca0=a111_0x20ac();let _0xc64398=_0x20aca0[_0x47d856];return _0xc64398;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a111_0x20ac(){const _0x44cb55=['661370xpRpYv','132cBiqgE','read','79611IHQZzY','9764650YfHDkO','63oEGDmb','1388120PATkLT','string','status','4wLHxEn','4046556aWBuhM','diff-refresh-status','PENDING','Table-diff\x20refresh\x20status\x20for\x20','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','SUCCESS','plan','RUNNING','49901360GYispb','RETRYING','\x20--format\x20compress','UNKNOWN','\x20--plan\x20','302990wLOUUx','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'];a111_0x20ac=function(){return _0x44cb55;};return a111_0x20ac();}import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set(['SUCCESS','FAILED','CANCELLED']),RUNNING_STATUSES=new Set([a111_0x3f6bdc(0x98),a111_0x3f6bdc(0x9d),a111_0x3f6bdc(0x9f)]);export const dbDiffRefreshStatus={'service':'db','command':a111_0x3f6bdc(0x97),'description':a111_0x3f6bdc(0x9a),'risk':a111_0x3f6bdc(0xa7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'plan','type':a111_0x3f6bdc(0x93),'required':!![],'description':a111_0x3f6bdc(0xa4)}],async 'execute'(_0x1d68e8){const _0x336673=a111_0x3f6bdc,_0x2da1b2=_0x1d68e8['num']('id'),_0x3e5f07=_0x1d68e8['str'](_0x336673(0x9c)),_0x26ad29=await getDbAnalysisStatus(_0x3e5f07),_0x5b71c0=_0x26ad29[_0x336673(0x94)]??null,_0x33c201=TERMINAL_STATUSES['has'](_0x5b71c0??''),_0x475015=_0x5b71c0===_0x336673(0x9b),_0x36ba8d=_0x33c201||RUNNING_STATUSES['has'](_0x5b71c0??'');return{'ok':!![],'data':{'dbLinkId':_0x2da1b2,'planId':_0x3e5f07,'status':_0x26ad29,'knownStatus':_0x36ba8d,'isTerminal':_0x33c201,'isSuccessful':_0x475015,'query':_0x36ba8d&&!_0x33c201?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x2da1b2+_0x336673(0xa2)+_0x3e5f07+_0x336673(0xa0)}:null},'message':_0x336673(0x99)+_0x3e5f07+':\x20'+(_0x5b71c0??_0x336673(0xa1))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a112_0x576f(_0x6a9c63,_0x567b90){_0x6a9c63=_0x6a9c63-0x93;const _0x37f4dd=a112_0x37f4();let _0x576fd1=_0x37f4dd[_0x6a9c63];return _0x576fd1;}const a112_0x327503=a112_0x576f;(function(_0x4420aa,_0x1e4573){const _0x49cca5=a112_0x576f,_0x5b7b0f=_0x4420aa();while(!![]){try{const _0x1441aa=-parseInt(_0x49cca5(0xb7))/0x1+-parseInt(_0x49cca5(0xb6))/0x2+-parseInt(_0x49cca5(0x98))/0x3+parseInt(_0x49cca5(0x9d))/0x4*(parseInt(_0x49cca5(0xbc))/0x5)+parseInt(_0x49cca5(0xb0))/0x6*(parseInt(_0x49cca5(0xaf))/0x7)+-parseInt(_0x49cca5(0x9e))/0x8+-parseInt(_0x49cca5(0xa8))/0x9*(-parseInt(_0x49cca5(0xa0))/0xa);if(_0x1441aa===_0x1e4573)break;else _0x5b7b0f['push'](_0x5b7b0f['shift']());}catch(_0x2adfa0){_0x5b7b0f['push'](_0x5b7b0f['shift']());}}}(a112_0x37f4,0x45209));import{getDbTableDiff}from'../../core/api-client.js';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_0x327503(0xb4),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a112_0x327503(0x95),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x327503(0x9a),'type':'string','description':a112_0x327503(0x9f)},{'name':'page','type':'number','description':a112_0x327503(0x9c),'default':0x1},{'name':'pagesize','type':a112_0x327503(0xb3),'description':a112_0x327503(0xae),'default':0x14},{'name':a112_0x327503(0xbb),'type':a112_0x327503(0xa9),'description':a112_0x327503(0xab)}],async 'execute'(_0xc983d1){const _0x4ad528=a112_0x327503,_0x2875d8=_0xc983d1[_0x4ad528(0xa1)]('id'),_0x315e7f=_0xc983d1[_0x4ad528(0xb2)](_0x4ad528(0xbb)),_0x475e5a=_0x315e7f?0x1:_0xc983d1['num'](_0x4ad528(0xa3),0x1)||0x1,_0x55bb61=_0x315e7f?DB_TABLE_PAGE_SIZE:_0xc983d1[_0x4ad528(0xa1)](_0x4ad528(0x99),0x14)||0x14,_0x59bf35=_0xc983d1[_0x4ad528(0xac)]('table')||undefined,_0x29d12d=_0x315e7f?await getAllDbTableDiff(getDbTableDiff,_0xc983d1[_0x4ad528(0x96)],_0x2875d8,_0x59bf35):await getDbTableDiff(_0xc983d1[_0x4ad528(0x96)],_0x2875d8,{'pageIndex':_0x475e5a,'pageSize':_0x55bb61,'tableName':_0x59bf35}),_0x563ddc=_0x29d12d['tableList'],_0x35fda0=summarizeDbTableDiff(_0x563ddc),_0x5ea07a=_0x563ddc[_0x4ad528(0xba)](_0x59161a=>_0x59161a[_0x4ad528(0xa4)]===_0x4ad528(0x94)||_0x59161a[_0x4ad528(0xa4)]===_0x4ad528(0xb9))[_0x4ad528(0xa6)](_0x53aecd=>_0x53aecd[_0x4ad528(0xb1)]),_0xa2dd62=_0x563ddc[_0x4ad528(0xba)](_0x3cfb92=>_0x3cfb92[_0x4ad528(0xa4)]==='DELETED_TABLE')[_0x4ad528(0xa6)](_0xae7deb=>_0xae7deb[_0x4ad528(0xb1)]),_0x43eb89=_0x563ddc['filter'](_0x181500=>_0x181500[_0x4ad528(0xa4)]===_0x4ad528(0xb9))[_0x4ad528(0xa6)](_0x2efb10=>({'tableName':_0x2efb10[_0x4ad528(0xb1)],'addedColumns':_0x2efb10['fieldDiff']?.[_0x4ad528(0x97)]??[],'deletedColumns':_0x2efb10['fieldDiff']?.[_0x4ad528(0xb5)]??[],'modifiedColumns':_0x2efb10['fieldDiff']?.[_0x4ad528(0xa5)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x2875d8,'page':_0x475e5a,'pageSize':_0x55bb61,'totalCount':_0x29d12d[_0x4ad528(0x9b)],...typeof _0x29d12d[_0x4ad528(0xa2)]===_0x4ad528(0xb3)?{'physicalTableCount':_0x29d12d[_0x4ad528(0xa2)]}:{},...typeof _0x29d12d[_0x4ad528(0x93)]===_0x4ad528(0xb3)?{'datasetTableCount':_0x29d12d[_0x4ad528(0x93)]}:{},..._0x29d12d[_0x4ad528(0xaa)]?{'summary':_0x29d12d[_0x4ad528(0xaa)]}:{},'summaryByType':_0x35fda0,'toAnalyzeTables':_0x5ea07a,'deletedTables':_0xa2dd62,'modifiedFieldDiffs':_0x43eb89,'tables':_0x563ddc},'message':_0x563ddc[_0x4ad528(0xb8)]+_0x4ad528(0xa7)+_0x29d12d[_0x4ad528(0x9b)]+_0x4ad528(0xad)+_0x2875d8+')'};}};function a112_0x37f4(){const _0x21699c=['modifiedColumns','map','\x20changed\x20table\x20row(s),\x20total\x20','27oAHXOn','boolean','summary','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','str','\x20(db\x20link\x20','Page\x20size','3098354CNDnwY','6xkfiIb','tableName','bool','number','diff','deletedColumns','300470wFlmNI','404476mFUAjX','length','MODIFIED_TABLE','filter','all','5fxRYXK','datasetTableCount','NEW_TABLE','read','appCode','addedColumns','1496370cqLkJp','pagesize','table','totalCount','Page\x20index\x20(1-based)','1819308oeAIQn','69120VKhkFL','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1492790LjHunO','num','physicalTableCount','page','diffType'];a112_0x37f4=function(){return _0x21699c;};return a112_0x37f4();}
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x347417,_0x56982a){const _0x297462=a113_0x2edf,_0xa64219=_0x347417();while(!![]){try{const _0x1f5059=parseInt(_0x297462(0x128))/0x1+parseInt(_0x297462(0x120))/0x2+parseInt(_0x297462(0x124))/0x3*(-parseInt(_0x297462(0x126))/0x4)+-parseInt(_0x297462(0x127))/0x5*(-parseInt(_0x297462(0x122))/0x6)+parseInt(_0x297462(0x125))/0x7*(parseInt(_0x297462(0x11f))/0x8)+parseInt(_0x297462(0x121))/0x9+-parseInt(_0x297462(0x123))/0xa;if(_0x1f5059===_0x56982a)break;else _0xa64219['push'](_0xa64219['shift']());}catch(_0x21f7d7){_0xa64219['push'](_0xa64219['shift']());}}}(a113_0x565e,0x4e027));import{dbList}from'../../commands/db/list.js';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_0x565e(){const _0x4e5f6b=['581eZoOex','4ZyOWpG','40300QSzCum','153636dzfwpn','54536PIrpgw','388324SCYewz','2581155BrkpUY','132jdlwec','4523880LtRkRl','1817427mHoCfc'];a113_0x565e=function(){return _0x4e5f6b;};return a113_0x565e();}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';function a113_0x2edf(_0x400e3a,_0x19df37){_0x400e3a=_0x400e3a-0x11f;const _0x565ea9=a113_0x565e();let _0x2edfb9=_0x565ea9[_0x400e3a];return _0x2edfb9;}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
|
+
function a114_0x27b3(){const _0x1478fd=['340208YATJJF','DB_TABLE','504aAAwfG','Page\x20index\x20(1-based)','length','\x20database\x20connection(s)','read','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','all','288967fRBmjU','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','10205883GsjXQF','762XzcjEy','394892UzRvvl','Found\x20','15NlQacO','80oZAzib','1259796qXaEqC','map','appCode','840952XCiKLM','page','pagesize','1689ltTtiB','num','Page\x20size','10OCqUOD'];a114_0x27b3=function(){return _0x1478fd;};return a114_0x27b3();}const a114_0xdbbf62=a114_0x2d1b;(function(_0x119049,_0x1a8198){const _0x122b88=a114_0x2d1b,_0xcc335d=_0x119049();while(!![]){try{const _0x579464=parseInt(_0x122b88(0xd0))/0x1+parseInt(_0x122b88(0xc8))/0x2*(parseInt(_0x122b88(0xd3))/0x3)+-parseInt(_0x122b88(0xc9))/0x4+-parseInt(_0x122b88(0xcb))/0x5*(parseInt(_0x122b88(0xcd))/0x6)+-parseInt(_0x122b88(0xc5))/0x7*(-parseInt(_0x122b88(0xcc))/0x8)+-parseInt(_0x122b88(0xc7))/0x9*(-parseInt(_0x122b88(0xd6))/0xa)+parseInt(_0x122b88(0xd7))/0xb*(-parseInt(_0x122b88(0xd9))/0xc);if(_0x579464===_0x1a8198)break;else _0xcc335d['push'](_0xcc335d['shift']());}catch(_0x5ca450){_0xcc335d['push'](_0xcc335d['shift']());}}}(a114_0x27b3,0x8c4bf));function a114_0x2d1b(_0x333802,_0x582a15){_0x333802=_0x333802-0xbe;const _0x27b37d=a114_0x27b3();let _0x2d1b5b=_0x27b37d[_0x333802];return _0x2d1b5b;}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':a114_0xdbbf62(0xc2),'description':a114_0xdbbf62(0xc6),'risk':a114_0xdbbf62(0xc1),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0xdbbf62(0xd1),'type':'number','description':a114_0xdbbf62(0xbe),'default':0x1},{'name':a114_0xdbbf62(0xd2),'type':'number','description':a114_0xdbbf62(0xd5),'default':0x64}],async 'execute'(_0x26e6da){const _0x414d3a=a114_0xdbbf62,_0x12a50d=_0x26e6da[_0x414d3a(0xd4)](_0x414d3a(0xd1),0x1)||0x1,_0x9f58f7=_0x26e6da['num']('pagesize',0x64)||0x64,[{items:_0x5c4e72,paging:_0x2c95ac},_0x2511b7]=await Promise[_0x414d3a(0xc4)]([listDbLinks(_0x26e6da[_0x414d3a(0xcf)],{'currentPage':_0x12a50d,'pageSize':_0x9f58f7}),listDatasets(_0x26e6da[_0x414d3a(0xcf)],{'source':_0x414d3a(0xd8)})]),_0x4ae8d3=_0x5c4e72[_0x414d3a(0xce)](_0x1c95f0=>({...sanitizeDbLinkForOutput(_0x1c95f0),'datasetDependency':buildDbDatasetDependency(_0x1c95f0,_0x2511b7)['datasetDependency']})),_0x560e9c=_0x2c95ac?_0x2c95ac:{'currentPage':_0x12a50d,'pageSize':_0x9f58f7,'rowsOnPage':_0x4ae8d3[_0x414d3a(0xbf)],'totalCount':null,'note':_0x414d3a(0xc3)};return{'ok':!![],'data':{'connections':_0x4ae8d3,'paging':_0x560e9c},'message':_0x414d3a(0xca)+_0x4ae8d3['length']+_0x414d3a(0xc0)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f7592,_0x14e310){const _0x1453a5=a115_0x57be,_0x4868a9=_0x2f7592();while(!![]){try{const _0x91201f=parseInt(_0x1453a5(0x1ae))/0x1*(parseInt(_0x1453a5(0x1a5))/0x2)+-parseInt(_0x1453a5(0x1ad))/0x3+-parseInt(_0x1453a5(0x1ac))/0x4*(parseInt(_0x1453a5(0x1b3))/0x5)+-parseInt(_0x1453a5(0x198))/0x6*(-parseInt(_0x1453a5(0x193))/0x7)+-parseInt(_0x1453a5(0x1b2))/0x8*(parseInt(_0x1453a5(0x1a7))/0x9)+parseInt(_0x1453a5(0x19e))/0xa*(parseInt(_0x1453a5(0x19d))/0xb)+-parseInt(_0x1453a5(0x1a0))/0xc*(-parseInt(_0x1453a5(0x1a1))/0xd);if(_0x91201f===_0x14e310)break;else _0x4868a9['push'](_0x4868a9['shift']());}catch(_0x296a38){_0x4868a9['push'](_0x4868a9['shift']());}}}(a115_0x5a47,0xe8d3f));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x5435b9){const _0x484276=a115_0x57be,_0x4051ee=_0x5435b9[_0x484276(0x1aa)]();if(_0x4051ee===_0x484276(0x1a2)||_0x4051ee==='passwd'||_0x4051ee===_0x484276(0x197))return!![];if(_0x4051ee['includes']('secret')||_0x4051ee['includes']('token')||_0x4051ee['includes']('credential'))return!![];if(_0x4051ee['includes']('privatekey')||_0x4051ee[_0x484276(0x19f)](_0x484276(0x191)))return!![];if(_0x4051ee==='authorization'||_0x4051ee===_0x484276(0x18d)||_0x4051ee===_0x484276(0x199))return!![];return![];}export function sanitizeDbLinkForOutput(_0x37518d){const _0x478e7d=a115_0x57be,_0x3901ed={..._0x37518d};delete _0x3901ed[_0x478e7d(0x1a9)];for(const _0x432d26 of Object[_0x478e7d(0x196)](_0x3901ed)){if(!shouldRedactKey(_0x432d26))continue;const _0x1a4740=_0x3901ed[_0x432d26];_0x1a4740!=null&&String(_0x1a4740)['length']>0x0&&(_0x3901ed[_0x432d26]=_0x478e7d(0x19c));}return _0x3901ed;}export function sanitizeDbLinkList(_0x55d56c){const _0x4bc070=a115_0x57be;return _0x55d56c[_0x4bc070(0x194)](_0x48a2ac=>sanitizeDbLinkForOutput(_0x48a2ac));}export function buildDbDatasetDependency(_0x339766,_0x2a10f5){const _0x448961=a115_0x57be,_0x3bc690=_0x2a10f5[_0x448961(0x192)](_0x23c0d9=>Number(_0x23c0d9[_0x448961(0x1a8)]?.[_0x448961(0x1a4)])===Number(_0x339766['id']))[_0x448961(0x194)](_0x5e15ca=>({'id':_0x5e15ca['id'],'code':_0x5e15ca[_0x448961(0x1a6)],'name':_0x5e15ca[_0x448961(0x190)],..._0x5e15ca[_0x448961(0x1a8)]?.[_0x448961(0x195)]?{'tableName':_0x5e15ca[_0x448961(0x1a8)][_0x448961(0x195)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3bc690[_0x448961(0x1b0)]>0x0,'activeDatasetCount':_0x3bc690[_0x448961(0x1b0)]},'datasets':_0x3bc690};}function a115_0x5a47(){const _0xf476f4=['filter','4461653sEKypV','map','tableName','keys','dbpassword','6ZpIDiB','jdbcurl','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','number','[redacted]','4860438rwLJAG','10KQoYzF','includes','9672teSYiH','12454rNAzlV','password','test','dbId','794GKHAfd','code','6593751BUemMU','dbtableConfig','hasAvailableDo','toLowerCase','trim','5900764SgAHpo','1076640JAqpoh','4204GOEYZd','/data/database','length','isFinite','8yiNBiL','5oTHEdQ','connectionstring','Database\x20connection\x20preflight\x20failed.','/data/er?dbId=','name','accesskey'];a115_0x5a47=function(){return _0xf476f4;};return a115_0x5a47();}export async function assertDbLinkConnectionPreflight(_0x12acea){const _0x55dcf8=a115_0x57be,_0x4e00a0=await testDbLinkConfigConnect(_0x12acea);if(_0x4e00a0!==!![])throw CliErrors['apiError'](_0x55dcf8(0x18e),_0x55dcf8(0x19a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a115_0x57be(_0x414978,_0x4e6503){_0x414978=_0x414978-0x18d;const _0x5a47f5=a115_0x5a47();let _0x57bece=_0x5a47f5[_0x414978];return _0x57bece;}export function validateDbUrl(_0x1c94fb){const _0x8a72d1=a115_0x57be,_0x1a5f06=_0x1c94fb['trim']();if(!_0x1a5f06)return![];return DB_URL_PATTERN[_0x8a72d1(0x1a3)](_0x1a5f06);}export function buildDbPageLinks(_0x363370,_0x51235b){const _0x19c7d5=a115_0x57be,_0x1c53fd=_0x363370?.[_0x19c7d5(0x1ab)]();if(!_0x1c53fd)return undefined;const _0x509780=typeof _0x51235b===_0x19c7d5(0x19b)?String(_0x51235b):String(_0x51235b??'')[_0x19c7d5(0x1ab)]();if(!_0x509780)return undefined;const _0x447b76=Number(_0x509780);if(!Number[_0x19c7d5(0x1b1)](_0x447b76)||_0x447b76<=0x0)return undefined;const _0x4e21a4=getAppBaseUrl(_0x1c53fd),_0x1bb6a5=encodeURIComponent(String(_0x447b76));return{'databasePage':_0x4e21a4+_0x19c7d5(0x1af),'erPage':_0x4e21a4+_0x19c7d5(0x18f)+_0x1bb6a5};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x49c239=a116_0x1593;function a116_0x575f(){const _0x477530=['48vOACps','length','DELETED_TABLE','tableList','set','validation','8139MPQNMT','325PGEyXB','10QsRghh','804jHXuyp','ALREADY_ANALYZED','fromEntries','summary','size','\x20row(s).','2818101CNPtbX','totalCount','897072vffILu','14RjsZEH','physicalTableCount','map','1572cHUZmz','137930UWmArv','datasetTableCount','3851703xRtzNp','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','\x20of\x20','2196rZQKIp','number','12OAJoFa','filter'];a116_0x575f=function(){return _0x477530;};return a116_0x575f();}(function(_0x3a4d93,_0x25b32f){const _0x3a38af=a116_0x1593,_0x48fad4=_0x3a4d93();while(!![]){try{const _0x3e90de=-parseInt(_0x3a38af(0xff))/0x1*(-parseInt(_0x3a38af(0xf9))/0x2)+-parseInt(_0x3a38af(0xf5))/0x3*(-parseInt(_0x3a38af(0x102))/0x4)+parseInt(_0x3a38af(0xf0))/0x5*(-parseInt(_0x3a38af(0xf7))/0x6)+-parseInt(_0x3a38af(0xec))/0x7*(-parseInt(_0x3a38af(0xeb))/0x8)+parseInt(_0x3a38af(0xf2))/0x9*(-parseInt(_0x3a38af(0x101))/0xa)+parseInt(_0x3a38af(0xe9))/0xb+parseInt(_0x3a38af(0xef))/0xc*(parseInt(_0x3a38af(0x100))/0xd);if(_0x3e90de===_0x25b32f)break;else _0x48fad4['push'](_0x48fad4['shift']());}catch(_0x38a471){_0x48fad4['push'](_0x48fad4['shift']());}}}(a116_0x575f,0x53c17));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x1593(_0x3aa32a,_0x2c9382){_0x3aa32a=_0x3aa32a-0xe6;const _0x575fa0=a116_0x575f();let _0x1593f8=_0x575fa0[_0x3aa32a];return _0x1593f8;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE',a116_0x49c239(0xfb),a116_0x49c239(0x103)];export function summarizeDbTableDiff(_0x3092be){const _0x598b72=a116_0x49c239;return Object[_0x598b72(0x104)](DB_TABLE_DIFF_TYPES[_0x598b72(0xee)](_0x40e751=>[_0x40e751,_0x3092be[_0x598b72(0xf8)](_0x15746c=>_0x15746c['diffType']===_0x40e751)[_0x598b72(0xfa)]]));}export async function getAllDbTableDiff(_0x232b5e,_0x1930ab,_0x780456,_0xf9f882){const _0x3b4816=a116_0x49c239,_0x308579=new Map();let _0x3e0906=0x1,_0x1f1c85=null;while(!![]){_0x1f1c85=await _0x232b5e(_0x1930ab,_0x780456,{'pageIndex':_0x3e0906,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0xf9f882});const _0x579fd3=_0x308579[_0x3b4816(0xe7)];for(const _0x1bcf7e of _0x1f1c85[_0x3b4816(0xfc)]){_0x308579[_0x3b4816(0xfd)](_0x1bcf7e['tableName'],_0x1bcf7e);}if(_0x308579[_0x3b4816(0xe7)]>=_0x1f1c85['totalCount'])break;if(_0x1f1c85[_0x3b4816(0xfc)]['length']===0x0||_0x308579[_0x3b4816(0xe7)]===_0x579fd3)throw CliErrors[_0x3b4816(0xfe)](_0x3b4816(0xf3)+_0x308579['size']+_0x3b4816(0xf4)+_0x1f1c85['totalCount']+_0x3b4816(0xe8));_0x3e0906+=0x1;}return{'totalCount':_0x1f1c85?.[_0x3b4816(0xea)]??0x0,...typeof _0x1f1c85?.[_0x3b4816(0xed)]===_0x3b4816(0xf6)?{'physicalTableCount':_0x1f1c85['physicalTableCount']}:{},...typeof _0x1f1c85?.[_0x3b4816(0xf1)]===_0x3b4816(0xf6)?{'datasetTableCount':_0x1f1c85[_0x3b4816(0xf1)]}:{},..._0x1f1c85?.[_0x3b4816(0xe6)]?{'summary':_0x1f1c85[_0x3b4816(0xe6)]}:{},'tableList':[..._0x308579['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x35fbb5=a117_0x37fc;(function(_0x463aba,_0x1081e6){const _0x5aad46=a117_0x37fc,_0x9f2fa6=_0x463aba();while(!![]){try{const _0x1b95eb=-parseInt(_0x5aad46(0x174))/0x1+parseInt(_0x5aad46(0x188))/0x2*(-parseInt(_0x5aad46(0x176))/0x3)+parseInt(_0x5aad46(0x186))/0x4*(-parseInt(_0x5aad46(0x17c))/0x5)+-parseInt(_0x5aad46(0x18a))/0x6+parseInt(_0x5aad46(0x17e))/0x7*(-parseInt(_0x5aad46(0x17a))/0x8)+-parseInt(_0x5aad46(0x184))/0x9+-parseInt(_0x5aad46(0x187))/0xa*(-parseInt(_0x5aad46(0x18c))/0xb);if(_0x1b95eb===_0x1081e6)break;else _0x9f2fa6['push'](_0x9f2fa6['shift']());}catch(_0x325a53){_0x9f2fa6['push'](_0x9f2fa6['shift']());}}}(a117_0x4ef4,0x93dcd));function a117_0x4ef4(){const _0x17e666=['525AXtYck','length','21MweDsq','totalCount','summary','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','table','801054ywZitp','string','8204eQsxeu','258520uSReHB','4itcYpm','appCode','6531744IGyOZR','number','1177WYrtPQ','547393IaQMoo','physicalTableCount','69468noQdGx','str','tableList','read','463544BWRgYE','datasetTableCount'];a117_0x4ef4=function(){return _0x17e666;};return a117_0x4ef4();}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_0x37fc(_0x1fca2e,_0x2e385a){_0x1fca2e=_0x1fca2e-0x174;const _0x4ef4bf=a117_0x4ef4();let _0x37fc97=_0x4ef4bf[_0x1fca2e];return _0x37fc97;}export const dbTables={'service':'db','command':'tables','description':a117_0x35fbb5(0x182),'risk':a117_0x35fbb5(0x179),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x35fbb5(0x183),'type':a117_0x35fbb5(0x185),'description':a117_0x35fbb5(0x181)}],async 'execute'(_0x45916b){const _0x35ba91=a117_0x35fbb5,_0x16d940=_0x45916b['num']('id'),_0x3a15c6=_0x45916b[_0x35ba91(0x177)](_0x35ba91(0x183))||undefined,_0x102242=await getAllDbTableDiff(getDbTableComparisonPage,_0x45916b[_0x35ba91(0x189)],_0x16d940,_0x3a15c6),_0x476022=_0x102242[_0x35ba91(0x178)];return{'ok':!![],'data':{'dbLinkId':_0x16d940,'totalCount':_0x102242[_0x35ba91(0x17f)],...typeof _0x102242[_0x35ba91(0x175)]===_0x35ba91(0x18b)?{'physicalTableCount':_0x102242[_0x35ba91(0x175)]}:{},...typeof _0x102242[_0x35ba91(0x17b)]===_0x35ba91(0x18b)?{'datasetTableCount':_0x102242[_0x35ba91(0x17b)]}:{},..._0x102242['summary']?{'summary':_0x102242[_0x35ba91(0x180)]}:{},'summaryByType':summarizeDbTableDiff(_0x476022),'tables':_0x476022},'message':_0x476022[_0x35ba91(0x17d)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x102242[_0x35ba91(0x17f)]+'\x20(db\x20link\x20'+_0x16d940+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x3244c9=a118_0x5b12;function a118_0x5b12(_0x588cd3,_0x47616e){_0x588cd3=_0x588cd3-0x85;const _0x2b5dbd=a118_0x2b5d();let _0x5b12cf=_0x2b5dbd[_0x588cd3];return _0x5b12cf;}(function(_0x2ea5cf,_0x58aec7){const _0x5e64cd=a118_0x5b12,_0x2ae38=_0x2ea5cf();while(!![]){try{const _0x2e02d2=parseInt(_0x5e64cd(0x98))/0x1*(-parseInt(_0x5e64cd(0x88))/0x2)+-parseInt(_0x5e64cd(0x96))/0x3*(-parseInt(_0x5e64cd(0x89))/0x4)+parseInt(_0x5e64cd(0x92))/0x5+parseInt(_0x5e64cd(0x95))/0x6+-parseInt(_0x5e64cd(0x87))/0x7*(parseInt(_0x5e64cd(0x99))/0x8)+-parseInt(_0x5e64cd(0x8f))/0x9+-parseInt(_0x5e64cd(0x97))/0xa;if(_0x2e02d2===_0x58aec7)break;else _0x2ae38['push'](_0x2ae38['shift']());}catch(_0x5c10db){_0x2ae38['push'](_0x2ae38['shift']());}}}(a118_0x2b5d,0x53ec0));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2eebcd){const _0x3622b6=a118_0x5b12;if(_0x2eebcd===!![]||_0x2eebcd===![])return{'success':_0x2eebcd};if(_0x2eebcd===null||_0x2eebcd===undefined)return{'type':typeof _0x2eebcd};if(typeof _0x2eebcd!==_0x3622b6(0x86))return{'type':typeof _0x2eebcd};const _0xd5d3b=_0x2eebcd,_0x5e0b97=[_0x3622b6(0x9c),_0x3622b6(0x8a),_0x3622b6(0x8e),_0x3622b6(0x8d),_0x3622b6(0x9b),_0x3622b6(0x8c)],_0x1e59aa={};for(const _0x6d1f7b of _0x5e0b97){if(_0x6d1f7b in _0xd5d3b)_0x1e59aa[_0x6d1f7b]=_0xd5d3b[_0x6d1f7b];}return Object[_0x3622b6(0x85)](_0x1e59aa)[_0x3622b6(0x9a)]===0x0&&(_0x1e59aa[_0x3622b6(0x85)]=Object['keys'](_0xd5d3b)['slice'](0x0,0x14)),_0x1e59aa;}export const dbTest={'service':'db','command':a118_0x3244c9(0x9d),'description':a118_0x3244c9(0x8b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6b709e){const _0x517748=a118_0x3244c9,_0xb30c46=_0x6b709e[_0x517748(0x90)]('id'),_0x6c892b=await testDbLinkConnect(_0xb30c46),_0x2b52a8=_0x6c892b===!![]||typeof _0x6c892b===_0x517748(0x86)&&_0x6c892b!==null&&_0x6c892b[_0x517748(0x9c)]===!![],_0x517e83=summarizeTestConnectResult(_0x6c892b);return{'ok':!![],'data':{'id':_0xb30c46,'connected':Boolean(_0x2b52a8),'result':_0x517e83},'message':_0x2b52a8?_0x517748(0x93)+_0xb30c46:_0x517748(0x91)+_0xb30c46+_0x517748(0x94)};}};function a118_0x2b5d(){const _0xedc2a=['num','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2864150LcSjpa','Connection\x20OK\x20for\x20db\x20link\x20','\x20(see\x20data.result)','1280484LiWjeq','353166ywBfiN','3289360SfgbMZ','366FdQEap','1072400myfrtu','length','msg','success','test','keys','object','7cZKKic','102wZuYAV','4eBrAWK','message','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','data','error','code','707130dWWUxk'];a118_0x2b5d=function(){return _0xedc2a;};return a118_0x2b5d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x43f91f=a119_0x9071;(function(_0x33e6be,_0x33207b){const _0x59faf8=a119_0x9071,_0x437bb4=_0x33e6be();while(!![]){try{const _0x345f51=parseInt(_0x59faf8(0x192))/0x1+parseInt(_0x59faf8(0x17d))/0x2*(-parseInt(_0x59faf8(0x18b))/0x3)+parseInt(_0x59faf8(0x177))/0x4*(parseInt(_0x59faf8(0x19a))/0x5)+parseInt(_0x59faf8(0x198))/0x6*(parseInt(_0x59faf8(0x171))/0x7)+-parseInt(_0x59faf8(0x194))/0x8*(-parseInt(_0x59faf8(0x196))/0x9)+parseInt(_0x59faf8(0x185))/0xa*(-parseInt(_0x59faf8(0x189))/0xb)+parseInt(_0x59faf8(0x19b))/0xc*(-parseInt(_0x59faf8(0x17f))/0xd);if(_0x345f51===_0x33207b)break;else _0x437bb4['push'](_0x437bb4['shift']());}catch(_0x20de07){_0x437bb4['push'](_0x437bb4['shift']());}}}(a119_0x3573,0xe1850));function a119_0x9071(_0x2388d7,_0x3ed4fb){_0x2388d7=_0x2388d7-0x171;const _0x35731=a119_0x3573();let _0x90710c=_0x35731[_0x2388d7];return _0x90710c;}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';function a119_0x3573(){const _0x3bda18=['password','67040VsaiBg','dbDesc','dbdesc','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','2101YNhNze','dbparam','3aFUDJa','trim','has','New\x20host:port','update','dbUrl','validation','431600lGmQPu','New\x20username','8MPsPKZ','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','9832689DFLyKy','dbName','6ZhOxjY','dbname','5UCvVET','404136vcBxPi','dburl','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','5124343ovOgmu','******','dbParam','New\x20description','write','bool','4708372HAQnAi','/smartapi/dblink/update','str','string','num','Updated\x20db\x20link\x20','841598GIrDWz','username','312wwQsPr','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','skip-connection-test','POST','New\x20connection\x20parameter\x20string'];a119_0x3573=function(){return _0x3bda18;};return a119_0x3573();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x43f91f(0x172),'[redacted]']);function mergeDbLinkUpdate(_0x1e0267,_0x8c0225){const _0x3ea9d5=a119_0x43f91f,_0xc40dbe={..._0x1e0267},_0x11aa86=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x184));if(_0x11aa86&&MASKED_PASSWORD_VALUES[_0x3ea9d5(0x18d)](_0x11aa86))throw CliErrors[_0x3ea9d5(0x191)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x11aa86&&MASKED_PASSWORD_VALUES[_0x3ea9d5(0x18d)](String(_0x1e0267[_0x3ea9d5(0x184)]??'')))throw CliErrors[_0x3ea9d5(0x191)](_0x3ea9d5(0x19d));const _0x24f80d=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x199));if(_0x24f80d)_0xc40dbe[_0x3ea9d5(0x197)]=_0x24f80d;const _0x4648c1=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x19c));if(_0x4648c1)_0xc40dbe[_0x3ea9d5(0x190)]=_0x4648c1[_0x3ea9d5(0x18c)]();const _0x122804=_0x8c0225['str'](_0x3ea9d5(0x17e));if(_0x122804)_0xc40dbe['username']=_0x122804;if(_0x11aa86)_0xc40dbe[_0x3ea9d5(0x184)]=_0x11aa86;const _0x4fe54c=_0x8c0225['str'](_0x3ea9d5(0x18a));if(_0x4fe54c)_0xc40dbe[_0x3ea9d5(0x173)]=_0x4fe54c;const _0x87fb9c=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x187));if(_0x87fb9c)_0xc40dbe[_0x3ea9d5(0x186)]=_0x87fb9c;return _0xc40dbe;}export const dbUpdate={'service':'db','command':a119_0x43f91f(0x18f),'description':a119_0x43f91f(0x180),'risk':a119_0x43f91f(0x175),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x43f91f(0x199),'type':a119_0x43f91f(0x17a),'description':'New\x20database\x20name'},{'name':a119_0x43f91f(0x19c),'type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x18e)},{'name':'username','type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x193)},{'name':a119_0x43f91f(0x184),'type':'string','description':a119_0x43f91f(0x195)},{'name':'dbparam','type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x183)},{'name':a119_0x43f91f(0x187),'type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x174)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x100a6a){const _0x6fdbf8=a119_0x43f91f,_0x509851=_0x100a6a[_0x6fdbf8(0x179)](_0x6fdbf8(0x19c));if(_0x509851&&!validateDbUrl(_0x509851['trim']()))throw CliErrors[_0x6fdbf8(0x191)](_0x6fdbf8(0x188)+_0x509851+'\x22');},async 'dryRun'(_0x2616af){const _0x185fb7=a119_0x43f91f,_0x1a2386=_0x2616af[_0x185fb7(0x17b)]('id'),_0x56e542=await getDbLinkInfo(_0x1a2386),_0x3ed515=mergeDbLinkUpdate(_0x56e542,_0x2616af),_0x295a3d=sanitizeDbLinkForOutput(_0x3ed515);return{'method':_0x185fb7(0x182),'url':_0x185fb7(0x178),'body':_0x295a3d,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x2616af[_0x185fb7(0x176)](_0x185fb7(0x181)),'executed':![]}};},async 'execute'(_0x583355){const _0x28165a=a119_0x43f91f,_0x47cb14=_0x583355[_0x28165a(0x17b)]('id'),_0x4177ba=await getDbLinkInfo(_0x47cb14),_0x42c162=mergeDbLinkUpdate(_0x4177ba,_0x583355);!_0x583355['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x42c162);const {id:_0x47023e,entity:_0x10c783}=normalizeEntityWithIdResponse(await updateDbLink(_0x42c162));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x10c783),'message':_0x28165a(0x17c)+(_0x47023e??_0x47cb14)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x4a52(){const _0x593fec=['274654UlBqcl','138ajbJbJ','114490HWIZRC','211680viIzQK','1114936UjywYU','7061138GeKOhm','1255590EgyYyG','1111476lbQLdt','20XTYXYW','3HlICNx'];a120_0x4a52=function(){return _0x593fec;};return a120_0x4a52();}(function(_0x405c5b,_0x2da605){const _0x540d85=a120_0x2f24,_0x45e0b8=_0x405c5b();while(!![]){try{const _0x50cc65=parseInt(_0x540d85(0x1ae))/0x1+parseInt(_0x540d85(0x1b5))/0x2*(-parseInt(_0x540d85(0x1ad))/0x3)+parseInt(_0x540d85(0x1b2))/0x4+-parseInt(_0x540d85(0x1b0))/0x5*(parseInt(_0x540d85(0x1af))/0x6)+parseInt(_0x540d85(0x1b3))/0x7+-parseInt(_0x540d85(0x1b1))/0x8+-parseInt(_0x540d85(0x1b4))/0x9*(-parseInt(_0x540d85(0x1ac))/0xa);if(_0x50cc65===_0x2da605)break;else _0x45e0b8['push'](_0x45e0b8['shift']());}catch(_0x455e6a){_0x45e0b8['push'](_0x45e0b8['shift']());}}}(a120_0x4a52,0xb2c82));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 a120_0x2f24(_0x97ee78,_0x3054a1){_0x97ee78=_0x97ee78-0x1ac;const _0x4a52bc=a120_0x4a52();let _0x2f2429=_0x4a52bc[_0x97ee78];return _0x2f2429;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x1ef9(_0x54a31a,_0x18cac3){_0x54a31a=_0x54a31a-0x91;const _0x9894a6=a121_0x9894();let _0x1ef9b7=_0x9894a6[_0x54a31a];return _0x1ef9b7;}const a121_0x3441e9=a121_0x1ef9;(function(_0x1d818a,_0x54a4a7){const _0x3c9036=a121_0x1ef9,_0x2301fc=_0x1d818a();while(!![]){try{const _0x164ed1=parseInt(_0x3c9036(0x94))/0x1+-parseInt(_0x3c9036(0xa8))/0x2*(-parseInt(_0x3c9036(0xab))/0x3)+-parseInt(_0x3c9036(0xa4))/0x4*(parseInt(_0x3c9036(0xad))/0x5)+-parseInt(_0x3c9036(0x9a))/0x6+-parseInt(_0x3c9036(0x92))/0x7*(parseInt(_0x3c9036(0x95))/0x8)+parseInt(_0x3c9036(0x9d))/0x9*(parseInt(_0x3c9036(0x9e))/0xa)+parseInt(_0x3c9036(0x9f))/0xb;if(_0x164ed1===_0x54a4a7)break;else _0x2301fc['push'](_0x2301fc['shift']());}catch(_0x26b0ab){_0x2301fc['push'](_0x2301fc['shift']());}}}(a121_0x9894,0xe6c48));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x9894(){const _0x498caf=['confirm','903fdfPto','job','1825062pzdvLA','107528bFWnpe','status','POST','defineProperty','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','8106132eKvRPy','/smartapi/data-sync/submit','not_needed','484794kKAgLs','130wYGujQ','13076866wavizs','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','boolean','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','all_server_supported_metadata','8ebKMpP','bool','not_submitted','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','330938VcavJq','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','data','9DJuOwy','application_deployment_sync','450995ckOcgC','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','submitted','jobId','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','appCode'];a121_0x9894=function(){return _0x498caf;};return a121_0x9894();}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3441e9(0x9b),CONFIRM_FLAG={'name':a121_0x3441e9(0x91),'type':a121_0x3441e9(0xa1),'description':a121_0x3441e9(0x99)};export const deploymentSyncAll={'service':'deployment','command':'sync-all','description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3441e9(0xaf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2b3ac2){const _0x5e23e9=a121_0x3441e9;return asDryRunResult(buildPreview(_0x2b3ac2[_0x5e23e9(0xb4)]),{'method':_0x5e23e9(0x97),'url':SUBMIT_PATH,'description':_0x5e23e9(0xa7)});},async 'execute'(_0x339db9){const _0x144587=a121_0x3441e9;if(!_0x339db9[_0x144587(0xa5)](_0x144587(0x91)))throw CliErrors[_0x144587(0xae)](_0x144587(0xa2),_0x144587(0xa9));try{const _0xc1453c=await submitDeploymentMetadataSyncAll({'appCode':_0x339db9['appCode']});if(_0xc1453c['outcome']===_0x144587(0x9c))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x339db9[_0x144587(0xb4)],'submitted':![],'outcome':_0x144587(0x9c)},'message':_0x144587(0xa0)};return{'ok':!![],'data':{'operation':_0x144587(0xac),'appCode':_0x339db9[_0x144587(0xb4)],'submitted':!![],'outcome':_0x144587(0xb1),'jobId':_0xc1453c[_0x144587(0x93)][_0x144587(0xb2)],'status':_0xc1453c[_0x144587(0x93)][_0x144587(0x96)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0xc1453c[_0x144587(0x93)][_0x144587(0xb2)]+'.'};}catch(_0x463c2e){if(!isPlatformTransportFailure(_0x463c2e))throw _0x463c2e;const _0x558b43=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x144587(0xb3),_0x144587(0xb0));Object[_0x144587(0x98)](_0x558b43,_0x144587(0xaa),{'enumerable':!![],'value':{'operation':_0x144587(0xac),'appCode':_0x339db9[_0x144587(0xb4)],'submitted':null,'outcome':'unknown'}});throw _0x558b43;}}};function buildPreview(_0x2c160d){const _0x154e5f=a121_0x3441e9;return{'operation':'application_deployment_sync','selector':{'appCode':_0x2c160d,'scope':_0x154e5f(0xa3)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x154e5f(0xa6)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x58ba7d=a122_0x4c89;(function(_0x493401,_0x382f49){const _0x24839b=a122_0x4c89,_0x359c6e=_0x493401();while(!![]){try{const _0x49ff5c=-parseInt(_0x24839b(0x9b))/0x1+-parseInt(_0x24839b(0x84))/0x2+-parseInt(_0x24839b(0x90))/0x3+-parseInt(_0x24839b(0x95))/0x4+-parseInt(_0x24839b(0x96))/0x5+-parseInt(_0x24839b(0x93))/0x6*(parseInt(_0x24839b(0x89))/0x7)+parseInt(_0x24839b(0x87))/0x8;if(_0x49ff5c===_0x382f49)break;else _0x359c6e['push'](_0x359c6e['shift']());}catch(_0x46020a){_0x359c6e['push'](_0x359c6e['shift']());}}}(a122_0x4015,0x201e5));function a122_0x4015(){const _0x2ed4e5=['168290xoCXQC','Page\x20number','number','isSafeInteger','num','166350YWZPrk','string','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','103924eXBZCp','deployment','page-size','6315064HgeROR','str','10577jcnIOL','current-page','Optional\x20server-defined\x20job\x20status\x20filter','\x20deployment\x20synchronization\x20job(s).','--current-page\x20must\x20be\x20a\x20positive\x20integer.','trim','status','25224UIAoSQ','validation','Found\x20','816TZEDxj','Items\x20per\x20page\x20(maximum\x20100)','767808sIbdSe'];a122_0x4015=function(){return _0x2ed4e5;};return a122_0x4015();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x58ba7d(0x85),'command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x58ba7d(0x8a),'type':a122_0x58ba7d(0x98),'default':0x1,'description':a122_0x58ba7d(0x97)},{'name':a122_0x58ba7d(0x86),'type':'number','default':0xa,'description':a122_0x58ba7d(0x94)},{'name':a122_0x58ba7d(0x8f),'type':a122_0x58ba7d(0x82),'description':a122_0x58ba7d(0x8b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x274148){const _0x512f5a=a122_0x58ba7d;readPaging(_0x274148[_0x512f5a(0x9a)](_0x512f5a(0x8a),0x1),_0x274148[_0x512f5a(0x9a)](_0x512f5a(0x86),0xa));},async 'execute'(_0x56896a){const _0x3cadac=a122_0x58ba7d,{currentPage:_0x5e5eef,pageSize:_0x715319}=readPaging(_0x56896a[_0x3cadac(0x9a)](_0x3cadac(0x8a),0x1),_0x56896a[_0x3cadac(0x9a)](_0x3cadac(0x86),0xa)),_0x3d93cf=_0x56896a[_0x3cadac(0x88)](_0x3cadac(0x8f))[_0x3cadac(0x8e)](),_0x32e4f3=await listDeploymentMetadataSyncJobs({'appCode':_0x56896a['appCode'],'currentPage':_0x5e5eef,'pageSize':_0x715319,..._0x3d93cf?{'status':_0x3d93cf}:{}});return{'ok':!![],'data':{'appCode':_0x56896a['appCode'],..._0x32e4f3},'message':_0x3cadac(0x92)+_0x32e4f3['items']['length']+_0x3cadac(0x8c)};}};function a122_0x4c89(_0x2daf48,_0x2b11f9){_0x2daf48=_0x2daf48-0x82;const _0x401537=a122_0x4015();let _0x4c89cb=_0x401537[_0x2daf48];return _0x4c89cb;}function readPaging(_0x79f812,_0x2bd8ee){const _0x931516=a122_0x58ba7d;if(!Number['isSafeInteger'](_0x79f812)||_0x79f812<0x1)throw CliErrors[_0x931516(0x91)](_0x931516(0x8d));if(!Number[_0x931516(0x99)](_0x2bd8ee)||_0x2bd8ee<0x1||_0x2bd8ee>0x64)throw CliErrors[_0x931516(0x91)](_0x931516(0x83));return{'currentPage':_0x79f812,'pageSize':_0x2bd8ee};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x22328d=a123_0x2aba;(function(_0x11bd21,_0x481c85){const _0x3360bc=a123_0x2aba,_0x4fe8ab=_0x11bd21();while(!![]){try{const _0x47d158=parseInt(_0x3360bc(0x164))/0x1+parseInt(_0x3360bc(0x176))/0x2+parseInt(_0x3360bc(0x16b))/0x3*(parseInt(_0x3360bc(0x169))/0x4)+-parseInt(_0x3360bc(0x16e))/0x5*(parseInt(_0x3360bc(0x17f))/0x6)+parseInt(_0x3360bc(0x168))/0x7+parseInt(_0x3360bc(0x182))/0x8*(parseInt(_0x3360bc(0x174))/0x9)+-parseInt(_0x3360bc(0x17d))/0xa*(parseInt(_0x3360bc(0x17c))/0xb);if(_0x47d158===_0x481c85)break;else _0x4fe8ab['push'](_0x4fe8ab['shift']());}catch(_0x133e7b){_0x4fe8ab['push'](_0x4fe8ab['shift']());}}}(a123_0x4413,0xa8147));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x2aba(_0x4f0f8a,_0x523a77){_0x4f0f8a=_0x4f0f8a-0x164;const _0x441358=a123_0x4413();let _0x2aba3c=_0x441358[_0x4f0f8a];return _0x2aba3c;}function a123_0x4413(){const _0x3b29c3=['isSafeInteger','Get\x20application\x20deployment\x20synchronization\x20job\x20status','has','\x20is\x20','7823178yVQVdp','20TlCrUh',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','43878DvFhlR','RUNNING','FAILED','8CIKZTm','status','1215844PdkmiY','appCode','sync-status','map','2462964NnDNyj','4tIArQA','length','647589aXWWCK','read','action','795PMjDPz','validation','results','job-id','num','reduce','2822967tbxizd','SUCCESS','2352792ughnFU','Preserved\x20server-defined\x20status\x20'];a123_0x4413=function(){return _0x3b29c3;};return a123_0x4413();}const TERMINAL_STATUSES=new Set([a123_0x22328d(0x175),'PARTIAL_SUCCESS',a123_0x22328d(0x181)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x22328d(0x180)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x22328d(0x166),'description':a123_0x22328d(0x179),'risk':a123_0x22328d(0x16c),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x22328d(0x171),'type':'number','required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x4d3044){const _0x51cd81=a123_0x22328d;readJobId(_0x4d3044[_0x51cd81(0x172)](_0x51cd81(0x171)));},async 'execute'(_0x99bf17){const _0x28a959=a123_0x22328d,_0x223dcb=readJobId(_0x99bf17[_0x28a959(0x172)]('job-id')),_0x3fcfaf=await getDeploymentMetadataSyncStatus({'jobId':_0x223dcb,'appCode':_0x99bf17[_0x28a959(0x165)]}),_0x4b7538=TERMINAL_STATUSES[_0x28a959(0x17a)](_0x3fcfaf[_0x28a959(0x183)])?!![]:ACTIVE_STATUSES['has'](_0x3fcfaf[_0x28a959(0x183)])?![]:null,_0x302912=countBy(_0x3fcfaf['results'][_0x28a959(0x167)](_0x1c36f7=>_0x1c36f7['bizType'])),_0x43f210=countBy(_0x3fcfaf[_0x28a959(0x170)]['map'](_0x330cdb=>_0x330cdb['action'])),_0x537446=_0x4b7538===null?[_0x28a959(0x177)+_0x3fcfaf[_0x28a959(0x183)]+_0x28a959(0x17e)]:[];return{'ok':!![],'data':{'job':_0x3fcfaf,'isTerminal':_0x4b7538,'summary':{'total':_0x3fcfaf[_0x28a959(0x170)][_0x28a959(0x16a)],'failed':_0x3fcfaf['results']['filter'](_0x2993f2=>_0x2993f2[_0x28a959(0x16d)]===_0x28a959(0x181))[_0x28a959(0x16a)],'byBizType':_0x302912,'byAction':_0x43f210},'warnings':_0x537446},'message':'Deployment\x20synchronization\x20job\x20'+_0x223dcb+_0x28a959(0x17b)+_0x3fcfaf[_0x28a959(0x183)]+'.'};}};function readJobId(_0x56c85e){const _0x3e0513=a123_0x22328d;if(!Number[_0x3e0513(0x178)](_0x56c85e)||_0x56c85e<=0x0)throw CliErrors[_0x3e0513(0x16f)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x56c85e;}function countBy(_0x17e4c7){const _0xfa6faf=a123_0x22328d;return _0x17e4c7[_0xfa6faf(0x173)]((_0x5312a4,_0xa55717)=>{return _0x5312a4[_0xa55717]=(_0x5312a4[_0xa55717]??0x0)+0x1,_0x5312a4;},{});}
|