@lovrabet/rabetbase-cli 2.5.12 → 2.5.13
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.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.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/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- 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
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a108_0x5324db=a108_0x38e2;function a108_0x38e2(_0x55638f,_0x4babba){_0x55638f=_0x55638f-0x1cf;const _0x4979aa=a108_0x4979();let _0x38e21d=_0x4979aa[_0x55638f];return _0x38e21d;}(function(_0x14a68e,_0x304f87){const _0x1582b5=a108_0x38e2,_0x3d09d9=_0x14a68e();while(!![]){try{const _0x356025=-parseInt(_0x1582b5(0x1e1))/0x1*(-parseInt(_0x1582b5(0x1e7))/0x2)+-parseInt(_0x1582b5(0x1d8))/0x3+parseInt(_0x1582b5(0x1f3))/0x4+parseInt(_0x1582b5(0x1d0))/0x5*(-parseInt(_0x1582b5(0x1ec))/0x6)+parseInt(_0x1582b5(0x1e5))/0x7+parseInt(_0x1582b5(0x1e3))/0x8*(parseInt(_0x1582b5(0x1f0))/0x9)+parseInt(_0x1582b5(0x1d1))/0xa;if(_0x356025===_0x304f87)break;else _0x3d09d9['push'](_0x3d09d9['shift']());}catch(_0x1dff11){_0x3d09d9['push'](_0x3d09d9['shift']());}}}(a108_0x4979,0x55771));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x4979(){const _0x268130=['1806880JkPRYG','POST','activeDatasetCount','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','\x20active\x20Dataset(s),\x20but\x20found\x20','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','1850964sSreDM','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','boolean','validation','\x20still\x20has\x20','datasetDependency','isInteger','number','appCode','122mrBFgs','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','9736uTNXJv','num','1985011SHExVB','Deletion\x20is\x20blocked\x20by\x20','6326eiOrqE','all','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','bool','\x20active\x20DB_TABLE\x20Dataset(s).','1255482TutAgv','Database\x20connection\x20','confirm','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','1107HHxycl','flag','DB_TABLE','2379824EPZMmA','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','expected-dataset-count','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','15wsdPjI'];a108_0x4979=function(){return _0x268130;};return a108_0x4979();}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_0x5324db(0x1ee),'type':a108_0x5324db(0x1da),'description':a108_0x5324db(0x1d4)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x5324db(0x1f5),'type':a108_0x5324db(0x1df),'description':a108_0x5324db(0x1d6)};export const dbDelete={'service':'db','command':'delete','description':a108_0x5324db(0x1d9),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x417a6d){const _0x22e0e5=a108_0x5324db,_0x1ee937=await loadDeleteImpact(_0x417a6d);return assertExpectedDatasetCount(_0x417a6d,_0x1ee937['datasetDependency']['activeDatasetCount']),{'method':_0x22e0e5(0x1d2),'url':'/smartapi/dblink/delete','body':{'id':_0x1ee937['id']},'description':_0x1ee937['datasetDependency'][_0x22e0e5(0x1d3)]>0x0?_0x22e0e5(0x1e6)+_0x1ee937[_0x22e0e5(0x1dd)][_0x22e0e5(0x1d3)]+_0x22e0e5(0x1eb):_0x22e0e5(0x1cf),..._0x1ee937};},async 'execute'(_0x3bc384){const _0x5b59ec=a108_0x5324db;if(!_0x3bc384[_0x5b59ec(0x1ea)]('confirm'))throw CliErrors['validation'](_0x5b59ec(0x1e9),_0x5b59ec(0x1d7));const _0x33697d=_0x3bc384[_0x5b59ec(0x1e4)]('id'),_0x58efe6=await loadDeleteImpact(_0x3bc384),_0x177e0e=_0x58efe6[_0x5b59ec(0x1dd)][_0x5b59ec(0x1d3)];assertExpectedDatasetCount(_0x3bc384,_0x177e0e);if(_0x177e0e>0x0)throw CliErrors[_0x5b59ec(0x1db)](_0x5b59ec(0x1ed)+_0x33697d+_0x5b59ec(0x1dc)+_0x177e0e+_0x5b59ec(0x1f4),'Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x33697d),{'ok':!![],'data':{'id':_0x33697d,'deleted':!![],'activeDatasetCount':_0x177e0e},'message':'Deleted\x20db\x20link\x20'+_0x33697d};}};async function loadDeleteImpact(_0x4657db){const _0xfbd477=a108_0x5324db,_0x2ff865=_0x4657db[_0xfbd477(0x1e4)]('id'),[_0x2473ef,_0x57230a]=await Promise[_0xfbd477(0x1e8)]([getDbLinkInfo(_0x2ff865),listDatasets(_0x4657db[_0xfbd477(0x1e0)],{'source':_0xfbd477(0x1f2)})]),_0xa6805b=buildDbDatasetDependency(_0x2473ef,_0x57230a);return{'id':_0x2ff865,'connection':sanitizeDbLinkForOutput(_0x2473ef),'datasetDependency':_0xa6805b[_0xfbd477(0x1dd)],'activeDatasetCount':_0xa6805b[_0xfbd477(0x1dd)][_0xfbd477(0x1d3)],'datasets':_0xa6805b['datasets']};}function assertExpectedDatasetCount(_0xfa2791,_0x5d933e){const _0x1133a8=a108_0x5324db,_0x6ec25e=_0xfa2791[_0x1133a8(0x1f1)](_0x1133a8(0x1f5));if(_0x6ec25e===undefined||_0x6ec25e==='')return;const _0x555a17=_0xfa2791[_0x1133a8(0x1e4)](_0x1133a8(0x1f5));if(!Number[_0x1133a8(0x1de)](_0x555a17)||_0x555a17<0x0)throw CliErrors['validation'](_0x1133a8(0x1ef));if(_0x555a17!==_0x5d933e)throw CliErrors[_0x1133a8(0x1db)]('Expected\x20'+_0x555a17+_0x1133a8(0x1d5)+_0x5d933e+'.',_0x1133a8(0x1e2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a109_0x37f3(_0x503e74,_0x1263bf){_0x503e74=_0x503e74-0xeb;const _0x24c9fb=a109_0x24c9();let _0x37f394=_0x24c9fb[_0x503e74];return _0x37f394;}const a109_0x181203=a109_0x37f3;(function(_0x464c02,_0x3a3984){const _0x1fdbf2=a109_0x37f3,_0x41fc36=_0x464c02();while(!![]){try{const _0x12973a=-parseInt(_0x1fdbf2(0xfb))/0x1+parseInt(_0x1fdbf2(0xf7))/0x2*(parseInt(_0x1fdbf2(0xfd))/0x3)+parseInt(_0x1fdbf2(0xed))/0x4+parseInt(_0x1fdbf2(0xef))/0x5*(parseInt(_0x1fdbf2(0xeb))/0x6)+parseInt(_0x1fdbf2(0xf1))/0x7*(-parseInt(_0x1fdbf2(0xf6))/0x8)+parseInt(_0x1fdbf2(0xfa))/0x9+-parseInt(_0x1fdbf2(0xf4))/0xa*(parseInt(_0x1fdbf2(0xf3))/0xb);if(_0x12973a===_0x3a3984)break;else _0x41fc36['push'](_0x41fc36['shift']());}catch(_0xeee13f){_0x41fc36['push'](_0x41fc36['shift']());}}}(a109_0x24c9,0x8ba70));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a109_0x181203(0xf9),'description':a109_0x181203(0xee),'risk':a109_0x181203(0xfc),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x22e42b){const _0x123276=a109_0x181203,_0x3a3022=_0x22e42b[_0x123276(0xf0)]('id'),_0x374d69=await getDbLinkInfo(_0x3a3022),_0x16cde9=await listDatasets(_0x374d69[_0x123276(0xf8)]||_0x22e42b[_0x123276(0xf8)],{'source':_0x123276(0xf2)}),_0x1de811=buildDbDatasetDependency(_0x374d69,_0x16cde9);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x374d69),'datasetDependency':_0x1de811['datasetDependency']},'message':_0x123276(0xec)+_0x3a3022+':\x20'+_0x374d69[_0x123276(0xf5)]};}};function a109_0x24c9(){const _0x24030c=['223120HAxypP','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','10jfyzgW','num','4031538XwWhYD','DB_TABLE','451JXAayq','163010OqxHer','dbName','8ZrANgG','10958OuLvut','appCode','detail','230643Qrvhhd','44179IKmuxH','read','501WFDJxk','2592210bPchjK','db\x20link\x20'];a109_0x24c9=function(){return _0x24030c;};return a109_0x24c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x405b7c=a110_0x1d97;(function(_0x1774fa,_0x4ae81e){const _0x5d83e7=a110_0x1d97,_0x243e51=_0x1774fa();while(!![]){try{const _0x362be3=parseInt(_0x5d83e7(0x1d6))/0x1*(-parseInt(_0x5d83e7(0x1d0))/0x2)+-parseInt(_0x5d83e7(0x1e0))/0x3+parseInt(_0x5d83e7(0x1df))/0x4*(-parseInt(_0x5d83e7(0x1d1))/0x5)+-parseInt(_0x5d83e7(0x1d8))/0x6*(-parseInt(_0x5d83e7(0x1dd))/0x7)+-parseInt(_0x5d83e7(0x1dc))/0x8+parseInt(_0x5d83e7(0x1d2))/0x9+parseInt(_0x5d83e7(0x1e2))/0xa*(parseInt(_0x5d83e7(0x1e4))/0xb);if(_0x362be3===_0x4ae81e)break;else _0x243e51['push'](_0x243e51['shift']());}catch(_0x4d58b3){_0x243e51['push'](_0x243e51['shift']());}}}(a110_0x2626,0xc35cc));function a110_0x1d97(_0x88a7b1,_0x35fb94){_0x88a7b1=_0x88a7b1-0x1d0;const _0x2626f7=a110_0x2626();let _0x1d97cb=_0x2626f7[_0x88a7b1];return _0x1d97cb;}import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a110_0x405b7c(0x1db),'description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x4e46dd){const _0x1db496=a110_0x405b7c,_0x32e7cd=_0x4e46dd[_0x1db496(0x1e3)]('id'),_0x2571f7=await startDbTableDiffRefresh(_0x4e46dd['appCode'],_0x32e7cd),_0x3e8e2e=_0x2571f7[_0x1db496(0x1d5)]?.[_0x1db496(0x1de)]();if(!_0x3e8e2e)throw CliErrors[_0x1db496(0x1d9)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x32e7cd,'traceId':_0x3e8e2e,'status':_0x2571f7[_0x1db496(0x1e1)]??null,'query':{'command':CLI_BIN_NAME+_0x1db496(0x1da)+_0x32e7cd+_0x1db496(0x1d3)+_0x3e8e2e+_0x1db496(0x1d7)}},'message':_0x1db496(0x1d4)+_0x32e7cd};}};function a110_0x2626(){const _0x1445b1=['\x20--plan\x20','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','traceId','798679BiowWl','\x20--format\x20compress','6OXKFiw','validation','\x20db\x20diff-refresh-status\x20--id\x20','diff-refresh-start','7076504vQKHBb','5379591XlMXBr','trim','22828BHeAYH','2397117RwHIom','status','50cCQKhc','num','9546339cTTbPs','4xpqzNc','1210jygGrD','3190500suKARe'];a110_0x2626=function(){return _0x1445b1;};return a110_0x2626();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111_0x1dc5db=a111_0x5f3d;(function(_0x229ee4,_0x478c88){const _0x5387f2=a111_0x5f3d,_0x32292f=_0x229ee4();while(!![]){try{const _0x18a10b=-parseInt(_0x5387f2(0x143))/0x1*(parseInt(_0x5387f2(0x134))/0x2)+parseInt(_0x5387f2(0x14f))/0x3*(parseInt(_0x5387f2(0x146))/0x4)+parseInt(_0x5387f2(0x149))/0x5*(parseInt(_0x5387f2(0x141))/0x6)+parseInt(_0x5387f2(0x13b))/0x7+-parseInt(_0x5387f2(0x13d))/0x8*(parseInt(_0x5387f2(0x137))/0x9)+parseInt(_0x5387f2(0x13f))/0xa+-parseInt(_0x5387f2(0x14e))/0xb*(parseInt(_0x5387f2(0x135))/0xc);if(_0x18a10b===_0x478c88)break;else _0x32292f['push'](_0x32292f['shift']());}catch(_0xdef55e){_0x32292f['push'](_0x32292f['shift']());}}}(a111_0x2ac8,0xe7f80));function a111_0x5f3d(_0x2dd3c8,_0x34a245){_0x2dd3c8=_0x2dd3c8-0x133;const _0x2ac8c8=a111_0x2ac8();let _0x5f3d15=_0x2ac8c8[_0x2dd3c8];return _0x5f3d15;}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_0x2ac8(){const _0x52b045=['diff-refresh-status','string','UNKNOWN','6015401IrEKCr','CANCELLED','40cdmphP','RETRYING','17895470TPWFir','FAILED','708nwbUIM','\x20--plan\x20','1093cguRmw','str','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','448940DtWDku','plan','PENDING','67930DGozKe','RUNNING','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','num','read','7622989jYyNyh','30EDTQDg','status','SUCCESS','892gJWEMy','48pjltWo','has','2096586PPeRFU'];a111_0x2ac8=function(){return _0x52b045;};return a111_0x2ac8();}const TERMINAL_STATUSES=new Set([a111_0x1dc5db(0x133),a111_0x1dc5db(0x140),a111_0x1dc5db(0x13c)]),RUNNING_STATUSES=new Set([a111_0x1dc5db(0x148),a111_0x1dc5db(0x14a),a111_0x1dc5db(0x13e)]);export const dbDiffRefreshStatus={'service':'db','command':a111_0x1dc5db(0x138),'description':a111_0x1dc5db(0x14b),'risk':a111_0x1dc5db(0x14d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x1dc5db(0x147),'type':a111_0x1dc5db(0x139),'required':!![],'description':a111_0x1dc5db(0x145)}],async 'execute'(_0x475ad6){const _0x461df9=a111_0x1dc5db,_0xfbd9ba=_0x475ad6[_0x461df9(0x14c)]('id'),_0x565dd3=_0x475ad6[_0x461df9(0x144)](_0x461df9(0x147)),_0x501fd5=await getDbAnalysisStatus(_0x565dd3),_0x49272e=_0x501fd5[_0x461df9(0x150)]??null,_0x55abcf=TERMINAL_STATUSES[_0x461df9(0x136)](_0x49272e??''),_0x55c611=_0x49272e==='SUCCESS',_0x57829b=_0x55abcf||RUNNING_STATUSES[_0x461df9(0x136)](_0x49272e??'');return{'ok':!![],'data':{'dbLinkId':_0xfbd9ba,'planId':_0x565dd3,'status':_0x501fd5,'knownStatus':_0x57829b,'isTerminal':_0x55abcf,'isSuccessful':_0x55c611,'query':_0x57829b&&!_0x55abcf?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0xfbd9ba+_0x461df9(0x142)+_0x565dd3+'\x20--format\x20compress'}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x565dd3+':\x20'+(_0x49272e??_0x461df9(0x13a))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x2629fc=a112_0x2d20;(function(_0xb6fbc6,_0x690fb5){const _0x1d6181=a112_0x2d20,_0xe8abfb=_0xb6fbc6();while(!![]){try{const _0x1767a8=parseInt(_0x1d6181(0x1af))/0x1+parseInt(_0x1d6181(0x1a9))/0x2*(parseInt(_0x1d6181(0x1a6))/0x3)+-parseInt(_0x1d6181(0x193))/0x4+parseInt(_0x1d6181(0x18d))/0x5+parseInt(_0x1d6181(0x18c))/0x6+-parseInt(_0x1d6181(0x1ac))/0x7+-parseInt(_0x1d6181(0x19b))/0x8*(parseInt(_0x1d6181(0x195))/0x9);if(_0x1767a8===_0x690fb5)break;else _0xe8abfb['push'](_0xe8abfb['shift']());}catch(_0x522692){_0xe8abfb['push'](_0xe8abfb['shift']());}}}(a112_0x1265,0x85d7b));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x1265(){const _0x2183e1=['2025GyNmXD','boolean','datasetTableCount','length','tableName','number','23272lHNrDn','string','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','summary','addedColumns','str','num','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','MODIFIED_TABLE','appCode','fieldDiff','1675911VpoIbb','bool','read','2oPwzqJ','DELETED_TABLE','all','6197912bAZtVz','physicalTableCount','table','172072EQhqNz','diffType','\x20changed\x20table\x20row(s),\x20total\x20','5939658bxLsXC','2328025NUpYEi','Page\x20index\x20(1-based)','modifiedColumns','deletedColumns','page','map','392388ODnFpx','filter'];a112_0x1265=function(){return _0x2183e1;};return a112_0x1265();}function a112_0x2d20(_0x4cce54,_0x510e15){_0x4cce54=_0x4cce54-0x18c;const _0x12654d=a112_0x1265();let _0x2d200f=_0x12654d[_0x4cce54];return _0x2d200f;}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':'diff','description':a112_0x2629fc(0x19d),'risk':a112_0x2629fc(0x1a8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a112_0x2629fc(0x19c),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x2629fc(0x191),'type':a112_0x2629fc(0x19a),'description':a112_0x2629fc(0x18e),'default':0x1},{'name':'pagesize','type':'number','description':'Page\x20size','default':0x14},{'name':a112_0x2629fc(0x1ab),'type':a112_0x2629fc(0x196),'description':a112_0x2629fc(0x1a2)}],async 'execute'(_0x1fc28e){const _0xaf2c81=a112_0x2629fc,_0x194870=_0x1fc28e[_0xaf2c81(0x1a1)]('id'),_0x5a655b=_0x1fc28e[_0xaf2c81(0x1a7)]('all'),_0x221478=_0x5a655b?0x1:_0x1fc28e[_0xaf2c81(0x1a1)](_0xaf2c81(0x191),0x1)||0x1,_0x384044=_0x5a655b?DB_TABLE_PAGE_SIZE:_0x1fc28e['num']('pagesize',0x14)||0x14,_0x14a380=_0x1fc28e[_0xaf2c81(0x1a0)](_0xaf2c81(0x1ae))||undefined,_0x50d6cc=_0x5a655b?await getAllDbTableDiff(getDbTableDiff,_0x1fc28e[_0xaf2c81(0x1a4)],_0x194870,_0x14a380):await getDbTableDiff(_0x1fc28e['appCode'],_0x194870,{'pageIndex':_0x221478,'pageSize':_0x384044,'tableName':_0x14a380}),_0x241117=_0x50d6cc['tableList'],_0x92b2d=summarizeDbTableDiff(_0x241117),_0x59ca70=_0x241117[_0xaf2c81(0x194)](_0x475164=>_0x475164[_0xaf2c81(0x1b0)]==='NEW_TABLE'||_0x475164[_0xaf2c81(0x1b0)]===_0xaf2c81(0x1a3))['map'](_0x5254a8=>_0x5254a8[_0xaf2c81(0x199)]),_0x3165fb=_0x241117[_0xaf2c81(0x194)](_0x4c0b3c=>_0x4c0b3c[_0xaf2c81(0x1b0)]===_0xaf2c81(0x1aa))[_0xaf2c81(0x192)](_0xc9054a=>_0xc9054a[_0xaf2c81(0x199)]),_0x346fc5=_0x241117[_0xaf2c81(0x194)](_0x1bf259=>_0x1bf259['diffType']==='MODIFIED_TABLE')[_0xaf2c81(0x192)](_0x365a4b=>({'tableName':_0x365a4b[_0xaf2c81(0x199)],'addedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x19f)]??[],'deletedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x190)]??[],'modifiedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x18f)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x194870,'page':_0x221478,'pageSize':_0x384044,'totalCount':_0x50d6cc['totalCount'],...typeof _0x50d6cc[_0xaf2c81(0x1ad)]===_0xaf2c81(0x19a)?{'physicalTableCount':_0x50d6cc['physicalTableCount']}:{},...typeof _0x50d6cc[_0xaf2c81(0x197)]===_0xaf2c81(0x19a)?{'datasetTableCount':_0x50d6cc[_0xaf2c81(0x197)]}:{},..._0x50d6cc[_0xaf2c81(0x19e)]?{'summary':_0x50d6cc[_0xaf2c81(0x19e)]}:{},'summaryByType':_0x92b2d,'toAnalyzeTables':_0x59ca70,'deletedTables':_0x3165fb,'modifiedFieldDiffs':_0x346fc5,'tables':_0x241117},'message':_0x241117[_0xaf2c81(0x198)]+_0xaf2c81(0x1b1)+_0x50d6cc['totalCount']+'\x20(db\x20link\x20'+_0x194870+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f27c1,_0x5c6220){const _0x4eb31c=a113_0x83f1,_0x5a726a=_0x1f27c1();while(!![]){try{const _0x1e5303=parseInt(_0x4eb31c(0x73))/0x1+parseInt(_0x4eb31c(0x77))/0x2*(-parseInt(_0x4eb31c(0x6f))/0x3)+parseInt(_0x4eb31c(0x70))/0x4+-parseInt(_0x4eb31c(0x75))/0x5+parseInt(_0x4eb31c(0x74))/0x6*(parseInt(_0x4eb31c(0x72))/0x7)+parseInt(_0x4eb31c(0x6e))/0x8+parseInt(_0x4eb31c(0x76))/0x9*(parseInt(_0x4eb31c(0x71))/0xa);if(_0x1e5303===_0x5c6220)break;else _0x5a726a['push'](_0x5a726a['shift']());}catch(_0x10bfd1){_0x5a726a['push'](_0x5a726a['shift']());}}}(a113_0x325d,0x2bee2));import{dbList}from'../../commands/db/list.js';function a113_0x325d(){const _0x5aab40=['689337eCmjRf','457288vSbihj','505664zwzLaq','3rqkGsO','470416XBVXIr','10fJyOBB','42uSEpEk','161366KuTZeG','146346PdEGzp','782675JudQTZ'];a113_0x325d=function(){return _0x5aab40;};return a113_0x325d();}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_0x83f1(_0x364d66,_0x2449a2){_0x364d66=_0x364d66-0x6e;const _0x325d87=a113_0x325d();let _0x83f1bd=_0x325d87[_0x364d66];return _0x83f1bd;}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_0x180539=a114_0x2a3f;function a114_0x2a3f(_0x4ea2e6,_0x567e34){_0x4ea2e6=_0x4ea2e6-0xdb;const _0x4673b1=a114_0x4673();let _0x2a3f59=_0x4673b1[_0x4ea2e6];return _0x2a3f59;}(function(_0x31b21d,_0x532f1c){const _0x4497e8=a114_0x2a3f,_0x4ae614=_0x31b21d();while(!![]){try{const _0xa8f52b=-parseInt(_0x4497e8(0xe0))/0x1+-parseInt(_0x4497e8(0xe2))/0x2+parseInt(_0x4497e8(0xdc))/0x3+-parseInt(_0x4497e8(0xe6))/0x4+-parseInt(_0x4497e8(0xef))/0x5*(-parseInt(_0x4497e8(0xed))/0x6)+parseInt(_0x4497e8(0xdf))/0x7*(-parseInt(_0x4497e8(0xea))/0x8)+parseInt(_0x4497e8(0xeb))/0x9;if(_0xa8f52b===_0x532f1c)break;else _0x4ae614['push'](_0x4ae614['shift']());}catch(_0x5ee510){_0x4ae614['push'](_0x4ae614['shift']());}}}(a114_0x4673,0x9ae13));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_0x180539(0xde),'description':a114_0x180539(0xe9),'risk':a114_0x180539(0xe7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x180539(0xe8),'type':a114_0x180539(0xdd),'description':a114_0x180539(0xe3),'default':0x1},{'name':a114_0x180539(0xe5),'type':'number','description':a114_0x180539(0xe4),'default':0x64}],async 'execute'(_0x27c9ee){const _0x36c245=a114_0x180539,_0x3fc40c=_0x27c9ee[_0x36c245(0xf0)]('page',0x1)||0x1,_0x4a1cc0=_0x27c9ee[_0x36c245(0xf0)](_0x36c245(0xe5),0x64)||0x64,[{items:_0x356d5a,paging:_0x4bd01b},_0x1d56a0]=await Promise['all']([listDbLinks(_0x27c9ee[_0x36c245(0xee)],{'currentPage':_0x3fc40c,'pageSize':_0x4a1cc0}),listDatasets(_0x27c9ee[_0x36c245(0xee)],{'source':_0x36c245(0xf1)})]),_0x22db4b=_0x356d5a['map'](_0x18a2b7=>({...sanitizeDbLinkForOutput(_0x18a2b7),'datasetDependency':buildDbDatasetDependency(_0x18a2b7,_0x1d56a0)['datasetDependency']})),_0x148047=_0x4bd01b?_0x4bd01b:{'currentPage':_0x3fc40c,'pageSize':_0x4a1cc0,'rowsOnPage':_0x22db4b[_0x36c245(0xe1)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x22db4b,'paging':_0x148047},'message':_0x36c245(0xec)+_0x22db4b[_0x36c245(0xe1)]+_0x36c245(0xdb)};}};function a114_0x4673(){const _0x34d364=['1705532EIoGPk','read','page','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','263864yNRLIv','28227717esJhIU','Found\x20','17634ujxtkd','appCode','545cAnWPN','num','DB_TABLE','\x20database\x20connection(s)','2029341gJpQmE','number','list','182qapMZo','1262157IFOnNn','length','1905452AurFwL','Page\x20index\x20(1-based)','Page\x20size','pagesize'];a114_0x4673=function(){return _0x34d364;};return a114_0x4673();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a115_0x301c(_0x28d2ee,_0x5a1817){_0x28d2ee=_0x28d2ee-0xe9;const _0x478844=a115_0x4788();let _0x301c8d=_0x478844[_0x28d2ee];return _0x301c8d;}(function(_0x40afe4,_0x19a258){const _0x488919=a115_0x301c,_0x50c3b0=_0x40afe4();while(!![]){try{const _0x577855=parseInt(_0x488919(0xee))/0x1+parseInt(_0x488919(0xfb))/0x2+-parseInt(_0x488919(0xfd))/0x3*(-parseInt(_0x488919(0xfc))/0x4)+parseInt(_0x488919(0xf4))/0x5+parseInt(_0x488919(0xf2))/0x6+parseInt(_0x488919(0xf7))/0x7+-parseInt(_0x488919(0xf3))/0x8*(parseInt(_0x488919(0xfe))/0x9);if(_0x577855===_0x19a258)break;else _0x50c3b0['push'](_0x50c3b0['shift']());}catch(_0x156787){_0x50c3b0['push'](_0x50c3b0['shift']());}}}(a115_0x4788,0x2ae84));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x4788(){const _0x269bc5=['dbId','tableName','234032FJtBXz','36mlHmdD','48684vCMVOB','3256542WUqfmC','jdbcurl','/data/database','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','dbtableConfig','isFinite','passwd','trim','apiError','accesskey','password','Database\x20connection\x20preflight\x20failed.','secret','includes','hasAvailableDo','dbpassword','connectionstring','name','/data/er?dbId=','number','81492bgeypL','map','test','[redacted]','297636JIwByk','16NADCJq','965240tDCRoN','filter','length','2185470mnUXtW','privatekey'];a115_0x4788=function(){return _0x269bc5;};return a115_0x4788();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x27427c){const _0x484d9c=a115_0x301c,_0x201cb7=_0x27427c['toLowerCase']();if(_0x201cb7===_0x484d9c(0x108)||_0x201cb7===_0x484d9c(0x104)||_0x201cb7===_0x484d9c(0xe9))return!![];if(_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0x10a))||_0x201cb7['includes']('token')||_0x201cb7['includes']('credential'))return!![];if(_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0xf8))||_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0x107)))return!![];if(_0x201cb7==='authorization'||_0x201cb7===_0x484d9c(0xea)||_0x201cb7===_0x484d9c(0xff))return!![];return![];}export function sanitizeDbLinkForOutput(_0x37fcd0){const _0x4e0c16=a115_0x301c,_0x2425a1={..._0x37fcd0};delete _0x2425a1[_0x4e0c16(0x10c)];for(const _0x45ffb3 of Object['keys'](_0x2425a1)){if(!shouldRedactKey(_0x45ffb3))continue;const _0x30958a=_0x2425a1[_0x45ffb3];_0x30958a!=null&&String(_0x30958a)[_0x4e0c16(0xf6)]>0x0&&(_0x2425a1[_0x45ffb3]=_0x4e0c16(0xf1));}return _0x2425a1;}export function sanitizeDbLinkList(_0x4d8274){const _0x22529b=a115_0x301c;return _0x4d8274[_0x22529b(0xef)](_0x4f3e54=>sanitizeDbLinkForOutput(_0x4f3e54));}export function buildDbDatasetDependency(_0x51aaef,_0x3c3c9d){const _0x33c7ec=a115_0x301c,_0x3191c6=_0x3c3c9d[_0x33c7ec(0xf5)](_0xafeb4b=>Number(_0xafeb4b[_0x33c7ec(0x102)]?.[_0x33c7ec(0xf9)])===Number(_0x51aaef['id']))[_0x33c7ec(0xef)](_0x58db6f=>({'id':_0x58db6f['id'],'code':_0x58db6f['code'],'name':_0x58db6f[_0x33c7ec(0xeb)],..._0x58db6f['dbtableConfig']?.[_0x33c7ec(0xfa)]?{'tableName':_0x58db6f[_0x33c7ec(0x102)][_0x33c7ec(0xfa)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3191c6['length']>0x0,'activeDatasetCount':_0x3191c6[_0x33c7ec(0xf6)]},'datasets':_0x3191c6};}export async function assertDbLinkConnectionPreflight(_0x35374c){const _0x564f48=a115_0x301c,_0x452822=await testDbLinkConfigConnect(_0x35374c);if(_0x452822!==!![])throw CliErrors[_0x564f48(0x106)](_0x564f48(0x109),_0x564f48(0x101));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x35f7f1){const _0x168f29=a115_0x301c,_0x383213=_0x35f7f1['trim']();if(!_0x383213)return![];return DB_URL_PATTERN[_0x168f29(0xf0)](_0x383213);}export function buildDbPageLinks(_0x5d8947,_0x57e428){const _0x53f7f5=a115_0x301c,_0x7951fd=_0x5d8947?.[_0x53f7f5(0x105)]();if(!_0x7951fd)return undefined;const _0x3ce09d=typeof _0x57e428===_0x53f7f5(0xed)?String(_0x57e428):String(_0x57e428??'')[_0x53f7f5(0x105)]();if(!_0x3ce09d)return undefined;const _0x574b17=Number(_0x3ce09d);if(!Number[_0x53f7f5(0x103)](_0x574b17)||_0x574b17<=0x0)return undefined;const _0x4febe8=getAppBaseUrl(_0x7951fd),_0x181832=encodeURIComponent(String(_0x574b17));return{'databasePage':_0x4febe8+_0x53f7f5(0x100),'erPage':_0x4febe8+_0x53f7f5(0xec)+_0x181832};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a116_0x21cd(_0x12fefe,_0x3851e9){_0x12fefe=_0x12fefe-0x154;const _0x1f37b5=a116_0x1f37();let _0x21cdb7=_0x1f37b5[_0x12fefe];return _0x21cdb7;}const a116_0x38b235=a116_0x21cd;(function(_0x318278,_0x3b118e){const _0x40cc93=a116_0x21cd,_0x22de90=_0x318278();while(!![]){try{const _0x340e0e=-parseInt(_0x40cc93(0x167))/0x1*(parseInt(_0x40cc93(0x16d))/0x2)+-parseInt(_0x40cc93(0x16e))/0x3+-parseInt(_0x40cc93(0x166))/0x4*(parseInt(_0x40cc93(0x155))/0x5)+parseInt(_0x40cc93(0x161))/0x6*(-parseInt(_0x40cc93(0x15c))/0x7)+-parseInt(_0x40cc93(0x169))/0x8+parseInt(_0x40cc93(0x160))/0x9+parseInt(_0x40cc93(0x165))/0xa*(parseInt(_0x40cc93(0x156))/0xb);if(_0x340e0e===_0x3b118e)break;else _0x22de90['push'](_0x22de90['shift']());}catch(_0x27ca30){_0x22de90['push'](_0x22de90['shift']());}}}(a116_0x1f37,0xbe74a));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE','DELETED_TABLE',a116_0x38b235(0x16a)];export function summarizeDbTableDiff(_0x36f105){const _0x2d70b5=a116_0x38b235;return Object[_0x2d70b5(0x159)](DB_TABLE_DIFF_TYPES[_0x2d70b5(0x154)](_0x3ad6ec=>[_0x3ad6ec,_0x36f105[_0x2d70b5(0x15a)](_0x237bd4=>_0x237bd4['diffType']===_0x3ad6ec)[_0x2d70b5(0x15d)]]));}function a116_0x1f37(){const _0x1dd90a=['4019700VBJYxa','values','tableList','map','10TglfVx','1672OJqSYw','summary','number','fromEntries','filter','size','7hfjXss','length','totalCount','\x20of\x20','4354029jACruy','7365264SdLkyh','\x20row(s).','physicalTableCount','validation','296070yiTroQ','357044nymFrG','39554BGdtJI','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','9448760DozbOW','ALREADY_ANALYZED','datasetTableCount','set','14OXFovn'];a116_0x1f37=function(){return _0x1dd90a;};return a116_0x1f37();}export async function getAllDbTableDiff(_0x282a48,_0x15e560,_0x371977,_0x358466){const _0xa5e850=a116_0x38b235,_0x24294b=new Map();let _0x5c99e7=0x1,_0x593b65=null;while(!![]){_0x593b65=await _0x282a48(_0x15e560,_0x371977,{'pageIndex':_0x5c99e7,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x358466});const _0x4d30a7=_0x24294b[_0xa5e850(0x15b)];for(const _0x80b2a1 of _0x593b65[_0xa5e850(0x170)]){_0x24294b[_0xa5e850(0x16c)](_0x80b2a1['tableName'],_0x80b2a1);}if(_0x24294b[_0xa5e850(0x15b)]>=_0x593b65[_0xa5e850(0x15e)])break;if(_0x593b65[_0xa5e850(0x170)]['length']===0x0||_0x24294b['size']===_0x4d30a7)throw CliErrors[_0xa5e850(0x164)](_0xa5e850(0x168)+_0x24294b[_0xa5e850(0x15b)]+_0xa5e850(0x15f)+_0x593b65[_0xa5e850(0x15e)]+_0xa5e850(0x162));_0x5c99e7+=0x1;}return{'totalCount':_0x593b65?.[_0xa5e850(0x15e)]??0x0,...typeof _0x593b65?.[_0xa5e850(0x163)]===_0xa5e850(0x158)?{'physicalTableCount':_0x593b65[_0xa5e850(0x163)]}:{},...typeof _0x593b65?.['datasetTableCount']===_0xa5e850(0x158)?{'datasetTableCount':_0x593b65[_0xa5e850(0x16b)]}:{},..._0x593b65?.[_0xa5e850(0x157)]?{'summary':_0x593b65[_0xa5e850(0x157)]}:{},'tableList':[..._0x24294b[_0xa5e850(0x16f)]()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a117_0x1500(_0x56b948,_0x450e9e){_0x56b948=_0x56b948-0xaf;const _0x328a96=a117_0x328a();let _0x1500a6=_0x328a96[_0x56b948];return _0x1500a6;}const a117_0x4ce380=a117_0x1500;(function(_0x511c64,_0x5cebcb){const _0x22a7a3=a117_0x1500,_0x1b5a9e=_0x511c64();while(!![]){try{const _0x3d30fe=parseInt(_0x22a7a3(0xc6))/0x1*(parseInt(_0x22a7a3(0xc8))/0x2)+parseInt(_0x22a7a3(0xc2))/0x3+parseInt(_0x22a7a3(0xb0))/0x4+parseInt(_0x22a7a3(0xaf))/0x5*(-parseInt(_0x22a7a3(0xc3))/0x6)+parseInt(_0x22a7a3(0xb6))/0x7+parseInt(_0x22a7a3(0xc5))/0x8*(parseInt(_0x22a7a3(0xc9))/0x9)+parseInt(_0x22a7a3(0xb2))/0xa*(-parseInt(_0x22a7a3(0xb9))/0xb);if(_0x3d30fe===_0x5cebcb)break;else _0x1b5a9e['push'](_0x1b5a9e['shift']());}catch(_0x480a6b){_0x1b5a9e['push'](_0x1b5a9e['shift']());}}}(a117_0x328a,0x428ad));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x328a(){const _0x59a0e3=['2185pOrDjH','187888czbyBl','datasetTableCount','94580Fofrps','physicalTableCount','str','table','2344825RFMpFh','summary','\x20table\x20comparison\x20row(s),\x20total\x20','913sldDqh','tableList','read','tables','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','length','\x20(db\x20link\x20','string','totalCount','993612ytDJdn','2592IphGJW','num','24DRFOao','272693TltboF','appCode','2zBslSM','781533BWsVID'];a117_0x328a=function(){return _0x59a0e3;};return a117_0x328a();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x4ce380(0xbc),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x4ce380(0xbb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x4ce380(0xb5),'type':a117_0x4ce380(0xc0),'description':a117_0x4ce380(0xbd)}],async 'execute'(_0x5788c9){const _0x3aec62=a117_0x4ce380,_0x5415b3=_0x5788c9[_0x3aec62(0xc4)]('id'),_0x26c095=_0x5788c9[_0x3aec62(0xb4)](_0x3aec62(0xb5))||undefined,_0x38c314=await getAllDbTableDiff(getDbTableComparisonPage,_0x5788c9[_0x3aec62(0xc7)],_0x5415b3,_0x26c095),_0x8f7b50=_0x38c314[_0x3aec62(0xba)];return{'ok':!![],'data':{'dbLinkId':_0x5415b3,'totalCount':_0x38c314[_0x3aec62(0xc1)],...typeof _0x38c314[_0x3aec62(0xb3)]==='number'?{'physicalTableCount':_0x38c314[_0x3aec62(0xb3)]}:{},...typeof _0x38c314[_0x3aec62(0xb1)]==='number'?{'datasetTableCount':_0x38c314[_0x3aec62(0xb1)]}:{},..._0x38c314[_0x3aec62(0xb7)]?{'summary':_0x38c314[_0x3aec62(0xb7)]}:{},'summaryByType':summarizeDbTableDiff(_0x8f7b50),'tables':_0x8f7b50},'message':_0x8f7b50[_0x3aec62(0xbe)]+_0x3aec62(0xb8)+_0x38c314['totalCount']+_0x3aec62(0xbf)+_0x5415b3+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x44827e=a118_0x2429;(function(_0x306af8,_0x519324){const _0x22d756=a118_0x2429,_0x5eaed9=_0x306af8();while(!![]){try{const _0x1fed8c=-parseInt(_0x22d756(0x17f))/0x1+-parseInt(_0x22d756(0x18f))/0x2*(-parseInt(_0x22d756(0x17e))/0x3)+parseInt(_0x22d756(0x18c))/0x4+-parseInt(_0x22d756(0x18b))/0x5*(parseInt(_0x22d756(0x17b))/0x6)+-parseInt(_0x22d756(0x181))/0x7*(parseInt(_0x22d756(0x191))/0x8)+parseInt(_0x22d756(0x182))/0x9+parseInt(_0x22d756(0x18e))/0xa*(parseInt(_0x22d756(0x17a))/0xb);if(_0x1fed8c===_0x519324)break;else _0x5eaed9['push'](_0x5eaed9['shift']());}catch(_0x22af17){_0x5eaed9['push'](_0x5eaed9['shift']());}}}(a118_0x2021,0x4c5e1));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x2021(){const _0x517f9e=['2794580ZKdGMn','2035636ndeqEc','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','110ChGinG','10LgimdI','success','333176HyiqbS','1182599YDfNPR','6jgXtIp','keys','message','116799gaFnjn','594627MDNgar','read','84euaRXa','719415dxFCqT','object','code','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','error','test','msg'];a118_0x2021=function(){return _0x517f9e;};return a118_0x2021();}function summarizeTestConnectResult(_0x179f0e){const _0x90851e=a118_0x2429;if(_0x179f0e===!![]||_0x179f0e===![])return{'success':_0x179f0e};if(_0x179f0e===null||_0x179f0e===undefined)return{'type':typeof _0x179f0e};if(typeof _0x179f0e!==_0x90851e(0x183))return{'type':typeof _0x179f0e};const _0x38f4bf=_0x179f0e,_0x3e5fda=[_0x90851e(0x190),_0x90851e(0x17d),_0x90851e(0x184),_0x90851e(0x188),_0x90851e(0x18a),'data'],_0x6107e1={};for(const _0x559542 of _0x3e5fda){if(_0x559542 in _0x38f4bf)_0x6107e1[_0x559542]=_0x38f4bf[_0x559542];}return Object[_0x90851e(0x17c)](_0x6107e1)['length']===0x0&&(_0x6107e1[_0x90851e(0x17c)]=Object[_0x90851e(0x17c)](_0x38f4bf)[_0x90851e(0x185)](0x0,0x14)),_0x6107e1;}function a118_0x2429(_0x1bc2a0,_0x110092){_0x1bc2a0=_0x1bc2a0-0x17a;const _0x202172=a118_0x2021();let _0x24299d=_0x202172[_0x1bc2a0];return _0x24299d;}export const dbTest={'service':'db','command':a118_0x44827e(0x189),'description':a118_0x44827e(0x18d),'risk':a118_0x44827e(0x180),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ea517){const _0x4fc7c2=a118_0x44827e,_0xd314db=_0x1ea517[_0x4fc7c2(0x187)]('id'),_0x5b3d0d=await testDbLinkConnect(_0xd314db),_0x169334=_0x5b3d0d===!![]||typeof _0x5b3d0d==='object'&&_0x5b3d0d!==null&&_0x5b3d0d[_0x4fc7c2(0x190)]===!![],_0x41ea59=summarizeTestConnectResult(_0x5b3d0d);return{'ok':!![],'data':{'id':_0xd314db,'connected':Boolean(_0x169334),'result':_0x41ea59},'message':_0x169334?'Connection\x20OK\x20for\x20db\x20link\x20'+_0xd314db:_0x4fc7c2(0x186)+_0xd314db+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119_0x3a4a6b=a119_0x99e8;(function(_0x3aee51,_0x183fa3){const _0x23de0c=a119_0x99e8,_0x24c511=_0x3aee51();while(!![]){try{const _0x9a545e=parseInt(_0x23de0c(0x8c))/0x1+-parseInt(_0x23de0c(0x74))/0x2+parseInt(_0x23de0c(0x8a))/0x3*(-parseInt(_0x23de0c(0x88))/0x4)+parseInt(_0x23de0c(0x94))/0x5+-parseInt(_0x23de0c(0x84))/0x6+parseInt(_0x23de0c(0x77))/0x7+-parseInt(_0x23de0c(0x7c))/0x8*(parseInt(_0x23de0c(0x79))/0x9);if(_0x9a545e===_0x183fa3)break;else _0x24c511['push'](_0x24c511['shift']());}catch(_0x210c39){_0x24c511['push'](_0x24c511['shift']());}}}(a119_0x1124,0xa6662));function a119_0x99e8(_0x3179d3,_0x53c81d){_0x3179d3=_0x3179d3-0x74;const _0x1124fc=a119_0x1124();let _0x99e82a=_0x1124fc[_0x3179d3];return _0x99e82a;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a119_0x1124(){const _0x1abf15=['dbname','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbdesc','dbparam','has','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3784056lrgEVU','validation','dbUrl','str','88GpMLDk','[redacted]','171813RvtEdZ','Updated\x20db\x20link\x20','1231853dvQuRZ','bool','num','username','skip-connection-test','******','string','trim','4500595ADpNKQ','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','360788jgIqAt','POST','password','8744309JvyISS','New\x20username','1885671nfHPvg','New\x20connection\x20parameter\x20string','dbParam','24RQfcSA','dburl'];a119_0x1124=function(){return _0x1abf15;};return a119_0x1124();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x3a4a6b(0x91),a119_0x3a4a6b(0x89)]);function mergeDbLinkUpdate(_0x3eb664,_0x78b07a){const _0x1ad813=a119_0x3a4a6b,_0x2f8185={..._0x3eb664},_0x5f5bef=_0x78b07a['str'](_0x1ad813(0x76));if(_0x5f5bef&&MASKED_PASSWORD_VALUES[_0x1ad813(0x82)](_0x5f5bef))throw CliErrors['validation'](_0x1ad813(0x7f));if(!_0x5f5bef&&MASKED_PASSWORD_VALUES[_0x1ad813(0x82)](String(_0x3eb664['password']??'')))throw CliErrors[_0x1ad813(0x85)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3066e8=_0x78b07a['str'](_0x1ad813(0x7e));if(_0x3066e8)_0x2f8185['dbName']=_0x3066e8;const _0x3dff40=_0x78b07a[_0x1ad813(0x87)](_0x1ad813(0x7d));if(_0x3dff40)_0x2f8185[_0x1ad813(0x86)]=_0x3dff40[_0x1ad813(0x93)]();const _0xce3dfd=_0x78b07a['str']('username');if(_0xce3dfd)_0x2f8185['username']=_0xce3dfd;if(_0x5f5bef)_0x2f8185[_0x1ad813(0x76)]=_0x5f5bef;const _0x36f309=_0x78b07a[_0x1ad813(0x87)]('dbparam');if(_0x36f309)_0x2f8185[_0x1ad813(0x7b)]=_0x36f309;const _0xed92d3=_0x78b07a['str'](_0x1ad813(0x80));if(_0xed92d3)_0x2f8185['dbDesc']=_0xed92d3;return _0x2f8185;}export const dbUpdate={'service':'db','command':'update','description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a119_0x3a4a6b(0x92),'description':'New\x20database\x20name'},{'name':a119_0x3a4a6b(0x7d),'type':a119_0x3a4a6b(0x92),'description':'New\x20host:port'},{'name':a119_0x3a4a6b(0x8f),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x78)},{'name':a119_0x3a4a6b(0x76),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x96)},{'name':a119_0x3a4a6b(0x81),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x7a)},{'name':a119_0x3a4a6b(0x80),'type':'string','description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x36cd3a){const _0x18f843=a119_0x3a4a6b,_0xc21360=_0x36cd3a[_0x18f843(0x87)]('dburl');if(_0xc21360&&!validateDbUrl(_0xc21360[_0x18f843(0x93)]()))throw CliErrors[_0x18f843(0x85)](_0x18f843(0x83)+_0xc21360+'\x22');},async 'dryRun'(_0x210f40){const _0x52ff16=a119_0x3a4a6b,_0x2b6551=_0x210f40[_0x52ff16(0x8e)]('id'),_0x3cd117=await getDbLinkInfo(_0x2b6551),_0x3bf19a=mergeDbLinkUpdate(_0x3cd117,_0x210f40),_0x2993e3=sanitizeDbLinkForOutput(_0x3bf19a);return{'method':_0x52ff16(0x75),'url':'/smartapi/dblink/update','body':_0x2993e3,'description':_0x52ff16(0x95),'connectionPreflight':{'enabled':!_0x210f40['bool'](_0x52ff16(0x90)),'executed':![]}};},async 'execute'(_0xbdcbc1){const _0x22f9b5=a119_0x3a4a6b,_0x4b5ad8=_0xbdcbc1['num']('id'),_0x1aea53=await getDbLinkInfo(_0x4b5ad8),_0x4e2854=mergeDbLinkUpdate(_0x1aea53,_0xbdcbc1);!_0xbdcbc1[_0x22f9b5(0x8d)](_0x22f9b5(0x90))&&await assertDbLinkConnectionPreflight(_0x4e2854);const {id:_0x4d7701,entity:_0x2e8658}=normalizeEntityWithIdResponse(await updateDbLink(_0x4e2854));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2e8658),'message':_0x22f9b5(0x8b)+(_0x4d7701??_0x4b5ad8)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5143d2,_0xd89eb4){const _0x481d40=a120_0x3e3f,_0x59f621=_0x5143d2();while(!![]){try{const _0x6da2a3=-parseInt(_0x481d40(0x1c6))/0x1*(parseInt(_0x481d40(0x1ce))/0x2)+-parseInt(_0x481d40(0x1d0))/0x3*(parseInt(_0x481d40(0x1c9))/0x4)+parseInt(_0x481d40(0x1cc))/0x5*(parseInt(_0x481d40(0x1c7))/0x6)+-parseInt(_0x481d40(0x1c8))/0x7*(parseInt(_0x481d40(0x1cd))/0x8)+-parseInt(_0x481d40(0x1c4))/0x9*(-parseInt(_0x481d40(0x1c5))/0xa)+-parseInt(_0x481d40(0x1cb))/0xb*(-parseInt(_0x481d40(0x1ca))/0xc)+parseInt(_0x481d40(0x1cf))/0xd;if(_0x6da2a3===_0xd89eb4)break;else _0x59f621['push'](_0x59f621['shift']());}catch(_0x4b271f){_0x59f621['push'](_0x59f621['shift']());}}}(a120_0x1da9,0x3eafb));function a120_0x3e3f(_0x182cef,_0x203490){_0x182cef=_0x182cef-0x1c4;const _0x1da94c=a120_0x1da9();let _0x3e3f11=_0x1da94c[_0x182cef];return _0x3e3f11;}function a120_0x1da9(){const _0x223ef1=['7FEiLNX','1577492GfwlII','2136dKBJVL','9636LXCNuJ','5BHnJfA','2682184hevHqq','817454OWuqPk','11733280LHulPU','3VbMVbT','387IVwKnP','67640YeIwmt','1jczBNE','274776Pwzmbr'];a120_0x1da9=function(){return _0x223ef1;};return a120_0x1da9();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x39f9(){const _0x12987d=['7530882yENGag','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','job','4LsKVuP','1027444OxkYRP','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','all_server_supported_metadata','/smartapi/data-sync/submit','10672605LSuiVA','Submitted\x20deployment\x20synchronization\x20job\x20','jobId','validation','not_submitted','appCode','boolean','1665996oFqYdM','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','status','data','2193801XJVbiA','bool','defineProperty','application_deployment_sync','write','7ylKNHn','5118400iVVseE','sync-all','8eRKcdk','not_needed','deployment','35725030xgTipQ','confirm'];a121_0x39f9=function(){return _0x12987d;};return a121_0x39f9();}const a121_0x4c6a83=a121_0x5430;(function(_0x2f861d,_0x4edc3b){const _0x9ec06f=a121_0x5430,_0x309b79=_0x2f861d();while(!![]){try{const _0x212f5e=-parseInt(_0x9ec06f(0xf9))/0x1+parseInt(_0x9ec06f(0x104))/0x2+parseInt(_0x9ec06f(0xe8))/0x3*(parseInt(_0x9ec06f(0xf8))/0x4)+-parseInt(_0x9ec06f(0xee))/0x5+-parseInt(_0x9ec06f(0xf5))/0x6*(parseInt(_0x9ec06f(0xed))/0x7)+parseInt(_0x9ec06f(0xf0))/0x8*(-parseInt(_0x9ec06f(0xfd))/0x9)+parseInt(_0x9ec06f(0xf3))/0xa;if(_0x212f5e===_0x4edc3b)break;else _0x309b79['push'](_0x309b79['shift']());}catch(_0x5d60ec){_0x309b79['push'](_0x309b79['shift']());}}}(a121_0x39f9,0x9d62c));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_0x5430(_0xf55d29,_0x32f7a5){_0xf55d29=_0xf55d29-0xe6;const _0x39f9cc=a121_0x39f9();let _0x5430b2=_0x39f9cc[_0xf55d29];return _0x5430b2;}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x4c6a83(0xfc),CONFIRM_FLAG={'name':a121_0x4c6a83(0xf4),'type':a121_0x4c6a83(0x103),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x4c6a83(0xf2),'command':a121_0x4c6a83(0xef),'description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':a121_0x4c6a83(0xec),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2b85b1){const _0x5d189e=a121_0x4c6a83;return asDryRunResult(buildPreview(_0x2b85b1[_0x5d189e(0x102)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x5d189e(0xf6)});},async 'execute'(_0x19346a){const _0x34ace0=a121_0x4c6a83;if(!_0x19346a[_0x34ace0(0xe9)](_0x34ace0(0xf4)))throw CliErrors[_0x34ace0(0x100)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x558576=await submitDeploymentMetadataSyncAll({'appCode':_0x19346a[_0x34ace0(0x102)]});if(_0x558576['outcome']===_0x34ace0(0xf1))return{'ok':!![],'data':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a[_0x34ace0(0x102)],'submitted':![],'outcome':_0x34ace0(0xf1)},'message':_0x34ace0(0x105)};return{'ok':!![],'data':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xff)],'status':_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xe6)]},'message':_0x34ace0(0xfe)+_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xff)]+'.'};}catch(_0xc506c9){if(!isPlatformTransportFailure(_0xc506c9))throw _0xc506c9;const _0x45c5b2=new CliError('deployment_sync_submit_outcome_unknown',0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x34ace0(0xfa));Object[_0x34ace0(0xea)](_0x45c5b2,_0x34ace0(0xe7),{'enumerable':!![],'value':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a['appCode'],'submitted':null,'outcome':'unknown'}});throw _0x45c5b2;}}};function buildPreview(_0x220f7c){const _0x36ad74=a121_0x4c6a83;return{'operation':_0x36ad74(0xeb),'selector':{'appCode':_0x220f7c,'scope':_0x36ad74(0xfb)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x36ad74(0x101)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x53e98d=a122_0x4f28;(function(_0x5dae8b,_0x4f6cab){const _0x59e0c6=a122_0x4f28,_0x4a1529=_0x5dae8b();while(!![]){try{const _0x1f4741=-parseInt(_0x59e0c6(0xc5))/0x1+-parseInt(_0x59e0c6(0xd4))/0x2+parseInt(_0x59e0c6(0xd5))/0x3+-parseInt(_0x59e0c6(0xd3))/0x4*(-parseInt(_0x59e0c6(0xce))/0x5)+parseInt(_0x59e0c6(0xc8))/0x6+parseInt(_0x59e0c6(0xc0))/0x7*(-parseInt(_0x59e0c6(0xbc))/0x8)+parseInt(_0x59e0c6(0xc7))/0x9*(parseInt(_0x59e0c6(0xc2))/0xa);if(_0x1f4741===_0x4f6cab)break;else _0x4a1529['push'](_0x4a1529['shift']());}catch(_0x26c97d){_0x4a1529['push'](_0x4a1529['shift']());}}}(a122_0x1761,0x695e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x1761(){const _0x54ebd1=['read','number','deployment','Optional\x20server-defined\x20job\x20status\x20filter','6715ZpveKa','Items\x20per\x20page\x20(maximum\x20100)','length','string','isSafeInteger','196mhdZqw','1377180adBHTk','335628eWfCTh','trim','sync-jobs','str','List\x20application\x20deployment\x20synchronization\x20jobs','current-page','\x20deployment\x20synchronization\x20job(s).','1376744sFtCPV','Found\x20','validation','items','21aWapNr','page-size','50FeaDxS','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','--current-page\x20must\x20be\x20a\x20positive\x20integer.','840346bPbamR','num','2626461DTegrp','5039880gYNAbb','appCode'];a122_0x1761=function(){return _0x54ebd1;};return a122_0x1761();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x53e98d(0xcc),'command':a122_0x53e98d(0xd7),'description':a122_0x53e98d(0xd9),'risk':a122_0x53e98d(0xca),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x53e98d(0xba),'type':a122_0x53e98d(0xcb),'default':0x1,'description':'Page\x20number'},{'name':'page-size','type':a122_0x53e98d(0xcb),'default':0xa,'description':a122_0x53e98d(0xcf)},{'name':'status','type':a122_0x53e98d(0xd1),'description':a122_0x53e98d(0xcd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a8968){const _0x17eef7=a122_0x53e98d;readPaging(_0x5a8968[_0x17eef7(0xc6)](_0x17eef7(0xba),0x1),_0x5a8968[_0x17eef7(0xc6)]('page-size',0xa));},async 'execute'(_0x5ae7c6){const _0x1d3800=a122_0x53e98d,{currentPage:_0x4aa174,pageSize:_0x64ff5c}=readPaging(_0x5ae7c6[_0x1d3800(0xc6)](_0x1d3800(0xba),0x1),_0x5ae7c6[_0x1d3800(0xc6)](_0x1d3800(0xc1),0xa)),_0x5cf650=_0x5ae7c6[_0x1d3800(0xd8)]('status')[_0x1d3800(0xd6)](),_0x182049=await listDeploymentMetadataSyncJobs({'appCode':_0x5ae7c6['appCode'],'currentPage':_0x4aa174,'pageSize':_0x64ff5c,..._0x5cf650?{'status':_0x5cf650}:{}});return{'ok':!![],'data':{'appCode':_0x5ae7c6[_0x1d3800(0xc9)],..._0x182049},'message':_0x1d3800(0xbd)+_0x182049[_0x1d3800(0xbf)][_0x1d3800(0xd0)]+_0x1d3800(0xbb)};}};function a122_0x4f28(_0x5b482b,_0x429179){_0x5b482b=_0x5b482b-0xba;const _0x1761eb=a122_0x1761();let _0x4f2831=_0x1761eb[_0x5b482b];return _0x4f2831;}function readPaging(_0x3a4714,_0x350e92){const _0x391841=a122_0x53e98d;if(!Number[_0x391841(0xd2)](_0x3a4714)||_0x3a4714<0x1)throw CliErrors[_0x391841(0xbe)](_0x391841(0xc4));if(!Number[_0x391841(0xd2)](_0x350e92)||_0x350e92<0x1||_0x350e92>0x64)throw CliErrors[_0x391841(0xbe)](_0x391841(0xc3));return{'currentPage':_0x3a4714,'pageSize':_0x350e92};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x6d7919=a123_0x13d9;(function(_0x7b641c,_0x566e9e){const _0x1c626a=a123_0x13d9,_0x5c8f37=_0x7b641c();while(!![]){try{const _0x4a9e31=-parseInt(_0x1c626a(0x1d0))/0x1*(parseInt(_0x1c626a(0x1c5))/0x2)+-parseInt(_0x1c626a(0x1de))/0x3*(-parseInt(_0x1c626a(0x1dc))/0x4)+-parseInt(_0x1c626a(0x1c8))/0x5+parseInt(_0x1c626a(0x1df))/0x6+parseInt(_0x1c626a(0x1d7))/0x7*(-parseInt(_0x1c626a(0x1c6))/0x8)+-parseInt(_0x1c626a(0x1cc))/0x9*(-parseInt(_0x1c626a(0x1dd))/0xa)+-parseInt(_0x1c626a(0x1d3))/0xb*(parseInt(_0x1c626a(0x1e0))/0xc);if(_0x4a9e31===_0x566e9e)break;else _0x5c8f37['push'](_0x5c8f37['shift']());}catch(_0x1c2a06){_0x5c8f37['push'](_0x5c8f37['shift']());}}}(a123_0xaf0a,0xf2a40));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a123_0x6d7919(0x1ce),a123_0x6d7919(0x1d6)]),ACTIVE_STATUSES=new Set([a123_0x6d7919(0x1d4),'RUNNING']);export const deploymentSyncStatus={'service':a123_0x6d7919(0x1d1),'command':'sync-status','description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a123_0x6d7919(0x1c7),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x6d7919(0x1db),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x38c49c){const _0x5de8dd=a123_0x6d7919;readJobId(_0x38c49c[_0x5de8dd(0x1d8)](_0x5de8dd(0x1d2)));},async 'execute'(_0x4bbf43){const _0x3e2c19=a123_0x6d7919,_0xde2ab0=readJobId(_0x4bbf43[_0x3e2c19(0x1d8)](_0x3e2c19(0x1d2))),_0x5551d4=await getDeploymentMetadataSyncStatus({'jobId':_0xde2ab0,'appCode':_0x4bbf43[_0x3e2c19(0x1cf)]}),_0x25e0c0=TERMINAL_STATUSES[_0x3e2c19(0x1da)](_0x5551d4[_0x3e2c19(0x1c0)])?!![]:ACTIVE_STATUSES[_0x3e2c19(0x1da)](_0x5551d4['status'])?![]:null,_0xfcafd0=countBy(_0x5551d4['results'][_0x3e2c19(0x1cd)](_0x29d4fc=>_0x29d4fc['bizType'])),_0x29d071=countBy(_0x5551d4[_0x3e2c19(0x1e2)][_0x3e2c19(0x1cd)](_0x375eff=>_0x375eff[_0x3e2c19(0x1c2)])),_0x147579=_0x25e0c0===null?[_0x3e2c19(0x1c3)+_0x5551d4[_0x3e2c19(0x1c0)]+_0x3e2c19(0x1c4)]:[];return{'ok':!![],'data':{'job':_0x5551d4,'isTerminal':_0x25e0c0,'summary':{'total':_0x5551d4[_0x3e2c19(0x1e2)]['length'],'failed':_0x5551d4[_0x3e2c19(0x1e2)]['filter'](_0x2a759c=>_0x2a759c[_0x3e2c19(0x1c2)]==='FAILED')[_0x3e2c19(0x1cb)],'byBizType':_0xfcafd0,'byAction':_0x29d071},'warnings':_0x147579},'message':_0x3e2c19(0x1d9)+_0xde2ab0+_0x3e2c19(0x1d5)+_0x5551d4[_0x3e2c19(0x1c0)]+'.'};}};function readJobId(_0x399ae1){const _0x905cdf=a123_0x6d7919;if(!Number[_0x905cdf(0x1ca)](_0x399ae1)||_0x399ae1<=0x0)throw CliErrors[_0x905cdf(0x1e1)](_0x905cdf(0x1c1));return _0x399ae1;}function a123_0x13d9(_0x1785f6,_0x11da27){_0x1785f6=_0x1785f6-0x1c0;const _0xaf0a4d=a123_0xaf0a();let _0x13d981=_0xaf0a4d[_0x1785f6];return _0x13d981;}function a123_0xaf0a(){const _0x1c1690=['6400590nDUJjm','reduce','isSafeInteger','length','6732rVAbqo','map','PARTIAL_SUCCESS','appCode','395qnlHHR','deployment','job-id','6923158RbAJel','PENDING','\x20is\x20','FAILED','2585863oVCKeM','num','Deployment\x20synchronization\x20job\x20','has','number','6319308FtjuVc','23440JRgNgt','3txxmcl','7800870gpCRZk','24EykNdg','validation','results','status','--job-id\x20must\x20be\x20a\x20positive\x20integer.','action','Preserved\x20server-defined\x20status\x20',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','3702cBleGc','8smscHh','read'];a123_0xaf0a=function(){return _0x1c1690;};return a123_0xaf0a();}function countBy(_0x5dbead){const _0x2e5f93=a123_0x6d7919;return _0x5dbead[_0x2e5f93(0x1c9)]((_0x413b34,_0x42e9ef)=>{return _0x413b34[_0x42e9ef]=(_0x413b34[_0x42e9ef]??0x0)+0x1,_0x413b34;},{});}
|