@lovrabet/rabetbase-cli 2.5.10 → 2.5.11
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-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_0x37a577=a108_0x4054;(function(_0x191798,_0x713065){const _0xcac27f=a108_0x4054,_0x2c0467=_0x191798();while(!![]){try{const _0x4782f8=parseInt(_0xcac27f(0x97))/0x1+parseInt(_0xcac27f(0x9e))/0x2*(parseInt(_0xcac27f(0x9d))/0x3)+-parseInt(_0xcac27f(0x9c))/0x4+-parseInt(_0xcac27f(0xa4))/0x5*(-parseInt(_0xcac27f(0x87))/0x6)+parseInt(_0xcac27f(0xa6))/0x7*(parseInt(_0xcac27f(0x88))/0x8)+-parseInt(_0xcac27f(0x94))/0x9*(-parseInt(_0xcac27f(0x9f))/0xa)+-parseInt(_0xcac27f(0x9b))/0xb;if(_0x4782f8===_0x713065)break;else _0x2c0467['push'](_0x2c0467['shift']());}catch(_0xfb7695){_0x2c0467['push'](_0x2c0467['shift']());}}}(a108_0x56a3,0xc5064));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a108_0x37a577(0x8d),'type':a108_0x37a577(0xa2),'description':a108_0x37a577(0x90)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x37a577(0x86),'type':a108_0x37a577(0x84),'description':a108_0x37a577(0xa8)};function a108_0x4054(_0x3bc83c,_0x3970cc){_0x3bc83c=_0x3bc83c-0x83;const _0x56a3b9=a108_0x56a3();let _0x405477=_0x56a3b9[_0x3bc83c];return _0x405477;}export const dbDelete={'service':'db','command':'delete','description':a108_0x37a577(0x8e),'risk':a108_0x37a577(0x89),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5d4479){const _0x347e2e=a108_0x37a577,_0x3fe9cc=await loadDeleteImpact(_0x5d4479);return assertExpectedDatasetCount(_0x5d4479,_0x3fe9cc[_0x347e2e(0x85)][_0x347e2e(0x98)]),{'method':_0x347e2e(0x83),'url':_0x347e2e(0x99),'body':{'id':_0x3fe9cc['id']},'description':_0x3fe9cc[_0x347e2e(0x85)][_0x347e2e(0x98)]>0x0?_0x347e2e(0xa9)+_0x3fe9cc[_0x347e2e(0x85)][_0x347e2e(0x98)]+_0x347e2e(0x8b):_0x347e2e(0xa0),..._0x3fe9cc};},async 'execute'(_0x1ec35c){const _0x27808b=a108_0x37a577;if(!_0x1ec35c[_0x27808b(0x93)]('confirm'))throw CliErrors['validation'](_0x27808b(0xa5),'Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.');const _0xf0615=_0x1ec35c[_0x27808b(0xa3)]('id'),_0x70bf07=await loadDeleteImpact(_0x1ec35c),_0x45c016=_0x70bf07[_0x27808b(0x85)][_0x27808b(0x98)];assertExpectedDatasetCount(_0x1ec35c,_0x45c016);if(_0x45c016>0x0)throw CliErrors['validation'](_0x27808b(0x9a)+_0xf0615+_0x27808b(0xa7)+_0x45c016+'\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.',_0x27808b(0x95));return await deleteDbLink(_0xf0615),{'ok':!![],'data':{'id':_0xf0615,'deleted':!![],'activeDatasetCount':_0x45c016},'message':_0x27808b(0x96)+_0xf0615};}};function a108_0x56a3(){const _0x48dc8b=['datasets','\x20active\x20Dataset(s),\x20but\x20found\x20','bool','477NZDkhf','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','Deleted\x20db\x20link\x20','1499727KCONSR','activeDatasetCount','/smartapi/dblink/delete','Database\x20connection\x20','40688571OVdcxW','791972REqgWG','36Yoqvvh','162562lPasqM','118010aXmXfs','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','boolean','num','135RFMwzz','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','10139227bAoRRA','\x20still\x20has\x20','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','Deletion\x20is\x20blocked\x20by\x20','POST','number','datasetDependency','expected-dataset-count','34434SEhjJc','8SAkfPT','high-risk-write','isInteger','\x20active\x20DB_TABLE\x20Dataset(s).','Expected\x20','confirm','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','DB_TABLE','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count'];a108_0x56a3=function(){return _0x48dc8b;};return a108_0x56a3();}async function loadDeleteImpact(_0x38defe){const _0x556281=a108_0x37a577,_0x14ee79=_0x38defe['num']('id'),[_0x5c220f,_0x2a8b03]=await Promise['all']([getDbLinkInfo(_0x14ee79),listDatasets(_0x38defe['appCode'],{'source':_0x556281(0x8f)})]),_0x318586=buildDbDatasetDependency(_0x5c220f,_0x2a8b03);return{'id':_0x14ee79,'connection':sanitizeDbLinkForOutput(_0x5c220f),'datasetDependency':_0x318586[_0x556281(0x85)],'activeDatasetCount':_0x318586[_0x556281(0x85)][_0x556281(0x98)],'datasets':_0x318586[_0x556281(0x91)]};}function assertExpectedDatasetCount(_0x2428b9,_0x38b5c3){const _0xf1d5d7=a108_0x37a577,_0x2d570a=_0x2428b9['flag'](_0xf1d5d7(0x86));if(_0x2d570a===undefined||_0x2d570a==='')return;const _0x1e7de4=_0x2428b9[_0xf1d5d7(0xa3)](_0xf1d5d7(0x86));if(!Number[_0xf1d5d7(0x8a)](_0x1e7de4)||_0x1e7de4<0x0)throw CliErrors['validation']('--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.');if(_0x1e7de4!==_0x38b5c3)throw CliErrors['validation'](_0xf1d5d7(0x8c)+_0x1e7de4+_0xf1d5d7(0x92)+_0x38b5c3+'.',_0xf1d5d7(0xa1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x39d59e=a109_0x5ecb;(function(_0x3f348f,_0x331be1){const _0x32a734=a109_0x5ecb,_0xc13c35=_0x3f348f();while(!![]){try{const _0x5ba2f5=-parseInt(_0x32a734(0xe2))/0x1+parseInt(_0x32a734(0xe3))/0x2+parseInt(_0x32a734(0xde))/0x3+parseInt(_0x32a734(0xe9))/0x4*(-parseInt(_0x32a734(0xdb))/0x5)+parseInt(_0x32a734(0xe1))/0x6*(-parseInt(_0x32a734(0xdd))/0x7)+parseInt(_0x32a734(0xe4))/0x8+parseInt(_0x32a734(0xdc))/0x9;if(_0x5ba2f5===_0x331be1)break;else _0xc13c35['push'](_0xc13c35['shift']());}catch(_0x1c98a3){_0xc13c35['push'](_0xc13c35['shift']());}}}(a109_0x2a4f,0xcdc12));function a109_0x5ecb(_0x2a9350,_0x3d3fb6){_0x2a9350=_0x2a9350-0xda;const _0x2a4f10=a109_0x2a4f();let _0x5ecbb0=_0x2a4f10[_0x2a9350];return _0x5ecbb0;}import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a109_0x2a4f(){const _0x399e3f=['213647ygZxLa','870213YkYLxj','detail','DB_TABLE','186YRAOgG','926387MrdhUK','1788292LTemBo','10115040tTwaHM','appCode','datasetDependency','read','db\x20link\x20','5532EPkjdU','dbName','1405gioJCO','5898006rAfHOF'];a109_0x2a4f=function(){return _0x399e3f;};return a109_0x2a4f();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a109_0x39d59e(0xdf),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a109_0x39d59e(0xe7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x33b5c5){const _0x137506=a109_0x39d59e,_0x380f77=_0x33b5c5['num']('id'),_0x418bf4=await getDbLinkInfo(_0x380f77),_0x9b2711=await listDatasets(_0x418bf4[_0x137506(0xe5)]||_0x33b5c5[_0x137506(0xe5)],{'source':_0x137506(0xe0)}),_0x3ae423=buildDbDatasetDependency(_0x418bf4,_0x9b2711);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x418bf4),'datasetDependency':_0x3ae423[_0x137506(0xe6)]},'message':_0x137506(0xe8)+_0x380f77+':\x20'+_0x418bf4[_0x137506(0xda)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a110_0x30ed(){const _0x4a698b=['774534RgrpZV','4151832BXPzZr','2367LdogxA','964948SShIuY','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','validation','1364090NeLpRb','5FyrpUX','status','traceId','23672isMGOz','\x20--plan\x20','\x20db\x20diff-refresh-status\x20--id\x20','trim','diff-refresh-start','2950221jXEFLM','1nIGBKJ','appCode','31022840njsxva','write','num'];a110_0x30ed=function(){return _0x4a698b;};return a110_0x30ed();}const a110_0x22ddd5=a110_0x2a26;(function(_0x1094de,_0x365f09){const _0x1815b0=a110_0x2a26,_0x2ac1cd=_0x1094de();while(!![]){try{const _0xe021bf=parseInt(_0x1815b0(0x125))/0x1*(parseInt(_0x1815b0(0x12a))/0x2)+-parseInt(_0x1815b0(0x124))/0x3+parseInt(_0x1815b0(0x118))/0x4*(-parseInt(_0x1815b0(0x11c))/0x5)+-parseInt(_0x1815b0(0x116))/0x6+-parseInt(_0x1815b0(0x11b))/0x7+parseInt(_0x1815b0(0x11f))/0x8*(-parseInt(_0x1815b0(0x117))/0x9)+parseInt(_0x1815b0(0x127))/0xa;if(_0xe021bf===_0x365f09)break;else _0x2ac1cd['push'](_0x2ac1cd['shift']());}catch(_0x2b646f){_0x2ac1cd['push'](_0x2ac1cd['shift']());}}}(a110_0x30ed,0x92728));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';function a110_0x2a26(_0xd330bf,_0x344d06){_0xd330bf=_0xd330bf-0x116;const _0x30ede8=a110_0x30ed();let _0x2a2661=_0x30ede8[_0xd330bf];return _0x2a2661;}export const dbDiffRefreshStart={'service':'db','command':a110_0x22ddd5(0x123),'description':a110_0x22ddd5(0x119),'risk':a110_0x22ddd5(0x128),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x3af540){const _0x1d7e93=a110_0x22ddd5,_0x548f97=_0x3af540[_0x1d7e93(0x129)]('id'),_0x51ff6a=await startDbTableDiffRefresh(_0x3af540[_0x1d7e93(0x126)],_0x548f97),_0x2ea659=_0x51ff6a[_0x1d7e93(0x11e)]?.[_0x1d7e93(0x122)]();if(!_0x2ea659)throw CliErrors[_0x1d7e93(0x11a)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x548f97,'traceId':_0x2ea659,'status':_0x51ff6a[_0x1d7e93(0x11d)]??null,'query':{'command':CLI_BIN_NAME+_0x1d7e93(0x121)+_0x548f97+_0x1d7e93(0x120)+_0x2ea659+'\x20--format\x20compress'}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x548f97};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111_0x552981=a111_0x5393;(function(_0xe0e4f1,_0x5d5f67){const _0x3fce3b=a111_0x5393,_0x2e652d=_0xe0e4f1();while(!![]){try{const _0x517101=-parseInt(_0x3fce3b(0x18c))/0x1+-parseInt(_0x3fce3b(0x188))/0x2+parseInt(_0x3fce3b(0x18a))/0x3*(-parseInt(_0x3fce3b(0x184))/0x4)+parseInt(_0x3fce3b(0x199))/0x5+-parseInt(_0x3fce3b(0x18d))/0x6*(parseInt(_0x3fce3b(0x185))/0x7)+parseInt(_0x3fce3b(0x187))/0x8*(-parseInt(_0x3fce3b(0x189))/0x9)+parseInt(_0x3fce3b(0x193))/0xa;if(_0x517101===_0x5d5f67)break;else _0x2e652d['push'](_0x2e652d['shift']());}catch(_0x5f2856){_0x2e652d['push'](_0x2e652d['shift']());}}}(a111_0x17e8,0xa2f02));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_0x5393(_0x859891,_0x8fc427){_0x859891=_0x859891-0x184;const _0x17e813=a111_0x17e8();let _0x5393da=_0x17e813[_0x859891];return _0x5393da;}function a111_0x17e8(){const _0x3345f5=['897578ALvHCO','606ZcZUqq','string','UNKNOWN','read','plan','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','34587460TAJOju','\x20--format\x20compress','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','has','SUCCESS','RUNNING','3557855xwzJoi','\x20--plan\x20','FAILED','4CySlzN','38171rnugpG','num','6588448tdRQFB','1053562tZAjYx','9szQnTH','2112765JoQlgU','Table-diff\x20refresh\x20status\x20for\x20'];a111_0x17e8=function(){return _0x3345f5;};return a111_0x17e8();}const TERMINAL_STATUSES=new Set([a111_0x552981(0x197),a111_0x552981(0x19b),'CANCELLED']),RUNNING_STATUSES=new Set(['PENDING',a111_0x552981(0x198),'RETRYING']);export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a111_0x552981(0x192),'risk':a111_0x552981(0x190),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x552981(0x191),'type':a111_0x552981(0x18e),'required':!![],'description':a111_0x552981(0x195)}],async 'execute'(_0x290e46){const _0x45ba11=a111_0x552981,_0x209f56=_0x290e46[_0x45ba11(0x186)]('id'),_0x1dfcd9=_0x290e46['str'](_0x45ba11(0x191)),_0x19c9fc=await getDbAnalysisStatus(_0x1dfcd9),_0x11998f=_0x19c9fc['status']??null,_0x64bec8=TERMINAL_STATUSES['has'](_0x11998f??''),_0x1f5183=_0x11998f==='SUCCESS',_0x5f2165=_0x64bec8||RUNNING_STATUSES[_0x45ba11(0x196)](_0x11998f??'');return{'ok':!![],'data':{'dbLinkId':_0x209f56,'planId':_0x1dfcd9,'status':_0x19c9fc,'knownStatus':_0x5f2165,'isTerminal':_0x64bec8,'isSuccessful':_0x1f5183,'query':_0x5f2165&&!_0x64bec8?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x209f56+_0x45ba11(0x19a)+_0x1dfcd9+_0x45ba11(0x194)}:null},'message':_0x45ba11(0x18b)+_0x1dfcd9+':\x20'+(_0x11998f??_0x45ba11(0x18f))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x45ca27=a112_0x28a2;function a112_0x3209(){const _0x2da032=['pagesize','map','table','327hlclFv','datasetTableCount','152twkfkY','MODIFIED_TABLE','string','DELETED_TABLE','tableList','str','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','diffType','read','physicalTableCount','Page\x20size','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','totalCount','1008960cLbCbo','78957XbNmKV','\x20changed\x20table\x20row(s),\x20total\x20','summary','length','tableName','filter','\x20(db\x20link\x20','320835sZegwK','addedColumns','2024ctLicd','100260XJGknU','all','boolean','NEW_TABLE','num','21wdrvzs','fieldDiff','appCode','2026717xFXndr','number','20UhZmPc','deletedColumns','diff','132972SJNjeE'];a112_0x3209=function(){return _0x2da032;};return a112_0x3209();}(function(_0x257e83,_0x35dbaa){const _0x377973=a112_0x28a2,_0x5842cb=_0x257e83();while(!![]){try{const _0x4a1064=parseInt(_0x377973(0x17b))/0x1+-parseInt(_0x377973(0x17a))/0x2*(-parseInt(_0x377973(0x18c))/0x3)+-parseInt(_0x377973(0x19b))/0x4+-parseInt(_0x377973(0x178))/0x5+parseInt(_0x377973(0x188))/0x6*(parseInt(_0x377973(0x180))/0x7)+-parseInt(_0x377973(0x18e))/0x8*(parseInt(_0x377973(0x19c))/0x9)+-parseInt(_0x377973(0x185))/0xa*(-parseInt(_0x377973(0x183))/0xb);if(_0x4a1064===_0x35dbaa)break;else _0x5842cb['push'](_0x5842cb['shift']());}catch(_0xab6db9){_0x5842cb['push'](_0x5842cb['shift']());}}}(a112_0x3209,0x27a96));function a112_0x28a2(_0x41300f,_0x194a2e){_0x41300f=_0x41300f-0x173;const _0x320921=a112_0x3209();let _0x28a2da=_0x320921[_0x41300f];return _0x28a2da;}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_0x45ca27(0x187),'description':a112_0x45ca27(0x199),'risk':a112_0x45ca27(0x196),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x45ca27(0x18b),'type':a112_0x45ca27(0x190),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a112_0x45ca27(0x184),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a112_0x45ca27(0x189),'type':'number','description':a112_0x45ca27(0x198),'default':0x14},{'name':'all','type':a112_0x45ca27(0x17d),'description':a112_0x45ca27(0x194)}],async 'execute'(_0x1d143f){const _0x1ae309=a112_0x45ca27,_0x1359b8=_0x1d143f[_0x1ae309(0x17f)]('id'),_0x37b202=_0x1d143f['bool'](_0x1ae309(0x17c)),_0x303cd4=_0x37b202?0x1:_0x1d143f[_0x1ae309(0x17f)]('page',0x1)||0x1,_0x41cbf5=_0x37b202?DB_TABLE_PAGE_SIZE:_0x1d143f[_0x1ae309(0x17f)](_0x1ae309(0x189),0x14)||0x14,_0x11e6a4=_0x1d143f[_0x1ae309(0x193)]('table')||undefined,_0x25999c=_0x37b202?await getAllDbTableDiff(getDbTableDiff,_0x1d143f[_0x1ae309(0x182)],_0x1359b8,_0x11e6a4):await getDbTableDiff(_0x1d143f[_0x1ae309(0x182)],_0x1359b8,{'pageIndex':_0x303cd4,'pageSize':_0x41cbf5,'tableName':_0x11e6a4}),_0x5e1289=_0x25999c[_0x1ae309(0x192)],_0x149c8a=summarizeDbTableDiff(_0x5e1289),_0x2794fd=_0x5e1289[_0x1ae309(0x176)](_0x36df5c=>_0x36df5c[_0x1ae309(0x195)]===_0x1ae309(0x17e)||_0x36df5c[_0x1ae309(0x195)]==='MODIFIED_TABLE')[_0x1ae309(0x18a)](_0x6cdb=>_0x6cdb[_0x1ae309(0x175)]),_0x40b66e=_0x5e1289[_0x1ae309(0x176)](_0x1e6cac=>_0x1e6cac[_0x1ae309(0x195)]===_0x1ae309(0x191))[_0x1ae309(0x18a)](_0x23bb17=>_0x23bb17[_0x1ae309(0x175)]),_0x591595=_0x5e1289[_0x1ae309(0x176)](_0x81edf6=>_0x81edf6[_0x1ae309(0x195)]===_0x1ae309(0x18f))['map'](_0x722368=>({'tableName':_0x722368[_0x1ae309(0x175)],'addedColumns':_0x722368['fieldDiff']?.[_0x1ae309(0x179)]??[],'deletedColumns':_0x722368[_0x1ae309(0x181)]?.[_0x1ae309(0x186)]??[],'modifiedColumns':_0x722368[_0x1ae309(0x181)]?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x1359b8,'page':_0x303cd4,'pageSize':_0x41cbf5,'totalCount':_0x25999c[_0x1ae309(0x19a)],...typeof _0x25999c[_0x1ae309(0x197)]==='number'?{'physicalTableCount':_0x25999c['physicalTableCount']}:{},...typeof _0x25999c[_0x1ae309(0x18d)]===_0x1ae309(0x184)?{'datasetTableCount':_0x25999c[_0x1ae309(0x18d)]}:{},..._0x25999c[_0x1ae309(0x173)]?{'summary':_0x25999c[_0x1ae309(0x173)]}:{},'summaryByType':_0x149c8a,'toAnalyzeTables':_0x2794fd,'deletedTables':_0x40b66e,'modifiedFieldDiffs':_0x591595,'tables':_0x5e1289},'message':_0x5e1289[_0x1ae309(0x174)]+_0x1ae309(0x19d)+_0x25999c[_0x1ae309(0x19a)]+_0x1ae309(0x177)+_0x1359b8+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a113_0x34f1(_0x533f02,_0x140e17){_0x533f02=_0x533f02-0x1a8;const _0x424863=a113_0x4248();let _0x34f1c1=_0x424863[_0x533f02];return _0x34f1c1;}(function(_0x1e3778,_0x9b5dcf){const _0x254899=a113_0x34f1,_0x1dd1ad=_0x1e3778();while(!![]){try{const _0x25835f=-parseInt(_0x254899(0x1a8))/0x1*(parseInt(_0x254899(0x1a9))/0x2)+parseInt(_0x254899(0x1aa))/0x3+-parseInt(_0x254899(0x1ad))/0x4+-parseInt(_0x254899(0x1af))/0x5+parseInt(_0x254899(0x1ae))/0x6+parseInt(_0x254899(0x1b0))/0x7+parseInt(_0x254899(0x1ac))/0x8*(-parseInt(_0x254899(0x1ab))/0x9);if(_0x25835f===_0x9b5dcf)break;else _0x1dd1ad['push'](_0x1dd1ad['shift']());}catch(_0x43cd66){_0x1dd1ad['push'](_0x1dd1ad['shift']());}}}(a113_0x4248,0x360b6));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';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';function a113_0x4248(){const _0x28e81b=['716676vISNTt','2602914zIckzX','1137560XlvBeg','1327333hRwaBe','263ftaKva','1074uqZgDd','487554fiXerM','9xmtfsX','133424KCHLmi'];a113_0x4248=function(){return _0x28e81b;};return a113_0x4248();}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_0xf4d2ec=a114_0x2a01;(function(_0x3aa6af,_0x416eec){const _0xa14ed=a114_0x2a01,_0xf6497e=_0x3aa6af();while(!![]){try{const _0x292733=parseInt(_0xa14ed(0x12b))/0x1*(-parseInt(_0xa14ed(0x137))/0x2)+parseInt(_0xa14ed(0x129))/0x3+-parseInt(_0xa14ed(0x131))/0x4*(-parseInt(_0xa14ed(0x132))/0x5)+-parseInt(_0xa14ed(0x126))/0x6+parseInt(_0xa14ed(0x130))/0x7*(parseInt(_0xa14ed(0x12d))/0x8)+-parseInt(_0xa14ed(0x128))/0x9+parseInt(_0xa14ed(0x135))/0xa;if(_0x292733===_0x416eec)break;else _0xf6497e['push'](_0xf6497e['shift']());}catch(_0x370c91){_0xf6497e['push'](_0xf6497e['shift']());}}}(a114_0x53c6,0x775dc));function a114_0x53c6(){const _0x3c854e=['3348120KelfSf','all','76014kJpKNk','DB_TABLE','list','datasetDependency','num','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','length','1568886gsANmM','\x20database\x20connection(s)','2536992dCFjZT','962010Lblevd','appCode','1qeNSMQ','number','56dFJkEX','Page\x20index\x20(1-based)','Found\x20','300608HyAHMw','20boWytD','114210McfbkE','page','pagesize'];a114_0x53c6=function(){return _0x3c854e;};return a114_0x53c6();}import{listDatasets,listDbLinks}from'../../core/api-client.js';function a114_0x2a01(_0x40f1a0,_0x12b10d){_0x40f1a0=_0x40f1a0-0x122;const _0x53c6d9=a114_0x53c6();let _0x2a0191=_0x53c6d9[_0x40f1a0];return _0x2a0191;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0xf4d2ec(0x139),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0xf4d2ec(0x133),'type':a114_0xf4d2ec(0x12c),'description':a114_0xf4d2ec(0x12e),'default':0x1},{'name':a114_0xf4d2ec(0x134),'type':'number','description':'Page\x20size','default':0x64}],async 'execute'(_0x31a967){const _0x5198ff=a114_0xf4d2ec,_0x51fd4b=_0x31a967[_0x5198ff(0x123)](_0x5198ff(0x133),0x1)||0x1,_0x5568d1=_0x31a967['num']('pagesize',0x64)||0x64,[{items:_0x2b191b,paging:_0x3dfe26},_0xbd6d9a]=await Promise[_0x5198ff(0x136)]([listDbLinks(_0x31a967[_0x5198ff(0x12a)],{'currentPage':_0x51fd4b,'pageSize':_0x5568d1}),listDatasets(_0x31a967[_0x5198ff(0x12a)],{'source':_0x5198ff(0x138)})]),_0x5d314a=_0x2b191b['map'](_0x35c831=>({...sanitizeDbLinkForOutput(_0x35c831),'datasetDependency':buildDbDatasetDependency(_0x35c831,_0xbd6d9a)[_0x5198ff(0x122)]})),_0x2ade05=_0x3dfe26?_0x3dfe26:{'currentPage':_0x51fd4b,'pageSize':_0x5568d1,'rowsOnPage':_0x5d314a[_0x5198ff(0x125)],'totalCount':null,'note':_0x5198ff(0x124)};return{'ok':!![],'data':{'connections':_0x5d314a,'paging':_0x2ade05},'message':_0x5198ff(0x12f)+_0x5d314a[_0x5198ff(0x125)]+_0x5198ff(0x127)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf41cb8,_0x2dbd74){const _0x4c8f64=a115_0x1036,_0x9e86a5=_0xf41cb8();while(!![]){try{const _0x22f04b=-parseInt(_0x4c8f64(0x18b))/0x1*(-parseInt(_0x4c8f64(0x171))/0x2)+parseInt(_0x4c8f64(0x175))/0x3+-parseInt(_0x4c8f64(0x16e))/0x4*(parseInt(_0x4c8f64(0x172))/0x5)+-parseInt(_0x4c8f64(0x17d))/0x6+-parseInt(_0x4c8f64(0x183))/0x7+parseInt(_0x4c8f64(0x185))/0x8+parseInt(_0x4c8f64(0x182))/0x9*(parseInt(_0x4c8f64(0x18c))/0xa);if(_0x22f04b===_0x2dbd74)break;else _0x9e86a5['push'](_0x9e86a5['shift']());}catch(_0x1f89de){_0x9e86a5['push'](_0x9e86a5['shift']());}}}(a115_0x4728,0x981b6));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';function a115_0x4728(){const _0x214f85=['number','4VyYNob','includes','apiError','338YdcTje','412565rqBiJw','[redacted]','trim','2884338azdhAf','accesskey','/data/database','name','dbtableConfig','tableName','test','passwd','4811148Ahbinx','hasAvailableDo','map','dbpassword','code','3897cdWIGj','6462876LmOZFC','password','9924640UUpWwW','toLowerCase','privatekey','/data/er?dbId=','connectionstring','filter','346hltLdc','3930ltglEf','secret','keys','dbId'];a115_0x4728=function(){return _0x214f85;};return a115_0x4728();}import{CliErrors}from'../../errors.js';function a115_0x1036(_0x271fe3,_0x4ecfab){_0x271fe3=_0x271fe3-0x16e;const _0x4728d3=a115_0x4728();let _0x1036fc=_0x4728d3[_0x271fe3];return _0x1036fc;}function shouldRedactKey(_0x10f12d){const _0x320e67=a115_0x1036,_0x50a950=_0x10f12d[_0x320e67(0x186)]();if(_0x50a950===_0x320e67(0x184)||_0x50a950===_0x320e67(0x17c)||_0x50a950===_0x320e67(0x180))return!![];if(_0x50a950[_0x320e67(0x16f)](_0x320e67(0x18d))||_0x50a950['includes']('token')||_0x50a950[_0x320e67(0x16f)]('credential'))return!![];if(_0x50a950['includes'](_0x320e67(0x187))||_0x50a950[_0x320e67(0x16f)](_0x320e67(0x176)))return!![];if(_0x50a950==='authorization'||_0x50a950===_0x320e67(0x189)||_0x50a950==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x376e2d){const _0x301edc=a115_0x1036,_0x1f5df4={..._0x376e2d};delete _0x1f5df4[_0x301edc(0x17e)];for(const _0x204b14 of Object[_0x301edc(0x18e)](_0x1f5df4)){if(!shouldRedactKey(_0x204b14))continue;const _0x576aea=_0x1f5df4[_0x204b14];_0x576aea!=null&&String(_0x576aea)['length']>0x0&&(_0x1f5df4[_0x204b14]=_0x301edc(0x173));}return _0x1f5df4;}export function sanitizeDbLinkList(_0x5a9eca){const _0x5b0df7=a115_0x1036;return _0x5a9eca[_0x5b0df7(0x17f)](_0x385680=>sanitizeDbLinkForOutput(_0x385680));}export function buildDbDatasetDependency(_0x2a64ae,_0x286a27){const _0x5014d3=a115_0x1036,_0x130fc5=_0x286a27[_0x5014d3(0x18a)](_0x335b66=>Number(_0x335b66[_0x5014d3(0x179)]?.[_0x5014d3(0x18f)])===Number(_0x2a64ae['id']))[_0x5014d3(0x17f)](_0x546758=>({'id':_0x546758['id'],'code':_0x546758[_0x5014d3(0x181)],'name':_0x546758[_0x5014d3(0x178)],..._0x546758[_0x5014d3(0x179)]?.[_0x5014d3(0x17a)]?{'tableName':_0x546758[_0x5014d3(0x179)][_0x5014d3(0x17a)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x130fc5['length']>0x0,'activeDatasetCount':_0x130fc5['length']},'datasets':_0x130fc5};}export async function assertDbLinkConnectionPreflight(_0x29830e){const _0x3c3f01=a115_0x1036,_0x450731=await testDbLinkConfigConnect(_0x29830e);if(_0x450731!==!![])throw CliErrors[_0x3c3f01(0x170)]('Database\x20connection\x20preflight\x20failed.','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.');}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x331958){const _0x11c573=a115_0x1036,_0x462130=_0x331958[_0x11c573(0x174)]();if(!_0x462130)return![];return DB_URL_PATTERN[_0x11c573(0x17b)](_0x462130);}export function buildDbPageLinks(_0x20caab,_0x4dee88){const _0x19e29d=a115_0x1036,_0x59fe43=_0x20caab?.[_0x19e29d(0x174)]();if(!_0x59fe43)return undefined;const _0x433b9b=typeof _0x4dee88===_0x19e29d(0x190)?String(_0x4dee88):String(_0x4dee88??'')[_0x19e29d(0x174)]();if(!_0x433b9b)return undefined;const _0x1ff393=Number(_0x433b9b);if(!Number['isFinite'](_0x1ff393)||_0x1ff393<=0x0)return undefined;const _0x3eae30=getAppBaseUrl(_0x59fe43),_0x58ded7=encodeURIComponent(String(_0x1ff393));return{'databasePage':_0x3eae30+_0x19e29d(0x177),'erPage':_0x3eae30+_0x19e29d(0x188)+_0x58ded7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x38e25c=a116_0x59bc;(function(_0x236338,_0x40566c){const _0x6f7a12=a116_0x59bc,_0xe02118=_0x236338();while(!![]){try{const _0xb45beb=parseInt(_0x6f7a12(0xba))/0x1*(-parseInt(_0x6f7a12(0xd0))/0x2)+parseInt(_0x6f7a12(0xce))/0x3*(parseInt(_0x6f7a12(0xcc))/0x4)+-parseInt(_0x6f7a12(0xbe))/0x5*(-parseInt(_0x6f7a12(0xb9))/0x6)+-parseInt(_0x6f7a12(0xc3))/0x7*(parseInt(_0x6f7a12(0xc6))/0x8)+-parseInt(_0x6f7a12(0xc1))/0x9+parseInt(_0x6f7a12(0xca))/0xa+-parseInt(_0x6f7a12(0xb8))/0xb*(-parseInt(_0x6f7a12(0xcf))/0xc);if(_0xb45beb===_0x40566c)break;else _0xe02118['push'](_0xe02118['shift']());}catch(_0x4a2270){_0xe02118['push'](_0xe02118['shift']());}}}(a116_0x1b69,0xa6d14));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x59bc(_0x3b5a18,_0x1ca05e){_0x3b5a18=_0x3b5a18-0xb6;const _0x1b69f0=a116_0x1b69();let _0x59bc91=_0x1b69f0[_0x3b5a18];return _0x59bc91;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a116_0x38e25c(0xc2),a116_0x38e25c(0xc8),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x6dd900){const _0x51d294=a116_0x38e25c;return Object[_0x51d294(0xbd)](DB_TABLE_DIFF_TYPES[_0x51d294(0xc0)](_0x47857b=>[_0x47857b,_0x6dd900[_0x51d294(0xbb)](_0x2536e9=>_0x2536e9['diffType']===_0x47857b)['length']]));}function a116_0x1b69(){const _0x2dea25=['179156YXfECs','filter','physicalTableCount','fromEntries','239515IKZQVZ','set','map','7728273MzSBNP','MODIFIED_TABLE','42tSCjRM','summary','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','360184bBPuey','datasetTableCount','DELETED_TABLE','values','6146990TFtASs','tableList','34472VOIrnm','size','276hyNGza','156aTPZjR','8wTRTwM','totalCount','length','746031kpUDEr','30KSNdbJ'];a116_0x1b69=function(){return _0x2dea25;};return a116_0x1b69();}export async function getAllDbTableDiff(_0x1f0fbf,_0x121ec5,_0x2a4862,_0x3da167){const _0xca2dc4=a116_0x38e25c,_0x4ff00e=new Map();let _0x1a1690=0x1,_0x38f168=null;while(!![]){_0x38f168=await _0x1f0fbf(_0x121ec5,_0x2a4862,{'pageIndex':_0x1a1690,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3da167});const _0x3b2872=_0x4ff00e[_0xca2dc4(0xcd)];for(const _0x5e99c3 of _0x38f168[_0xca2dc4(0xcb)]){_0x4ff00e[_0xca2dc4(0xbf)](_0x5e99c3['tableName'],_0x5e99c3);}if(_0x4ff00e[_0xca2dc4(0xcd)]>=_0x38f168[_0xca2dc4(0xb6)])break;if(_0x38f168['tableList'][_0xca2dc4(0xb7)]===0x0||_0x4ff00e[_0xca2dc4(0xcd)]===_0x3b2872)throw CliErrors['validation'](_0xca2dc4(0xc5)+_0x4ff00e['size']+'\x20of\x20'+_0x38f168[_0xca2dc4(0xb6)]+'\x20row(s).');_0x1a1690+=0x1;}return{'totalCount':_0x38f168?.[_0xca2dc4(0xb6)]??0x0,...typeof _0x38f168?.['physicalTableCount']==='number'?{'physicalTableCount':_0x38f168[_0xca2dc4(0xbc)]}:{},...typeof _0x38f168?.['datasetTableCount']==='number'?{'datasetTableCount':_0x38f168[_0xca2dc4(0xc7)]}:{},..._0x38f168?.[_0xca2dc4(0xc4)]?{'summary':_0x38f168[_0xca2dc4(0xc4)]}:{},'tableList':[..._0x4ff00e[_0xca2dc4(0xc9)]()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117_0x1adb5b=a117_0x3f7f;(function(_0x11e55f,_0x35220f){const _0x44a554=a117_0x3f7f,_0x23366e=_0x11e55f();while(!![]){try{const _0x1b4c3d=parseInt(_0x44a554(0x159))/0x1+parseInt(_0x44a554(0x15d))/0x2+parseInt(_0x44a554(0x151))/0x3*(-parseInt(_0x44a554(0x150))/0x4)+parseInt(_0x44a554(0x157))/0x5*(parseInt(_0x44a554(0x15c))/0x6)+parseInt(_0x44a554(0x14a))/0x7*(-parseInt(_0x44a554(0x14d))/0x8)+parseInt(_0x44a554(0x15e))/0x9*(-parseInt(_0x44a554(0x146))/0xa)+-parseInt(_0x44a554(0x148))/0xb*(-parseInt(_0x44a554(0x154))/0xc);if(_0x1b4c3d===_0x35220f)break;else _0x23366e['push'](_0x23366e['shift']());}catch(_0x3402ab){_0x23366e['push'](_0x23366e['shift']());}}}(a117_0x3a2c,0x92f03));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_0x3f7f(_0x434cb8,_0x241b1f){_0x434cb8=_0x434cb8-0x144;const _0x3a2c81=a117_0x3a2c();let _0x3f7f4c=_0x3a2c81[_0x434cb8];return _0x3f7f4c;}function a117_0x3a2c(){const _0x3b9f31=['datasetTableCount','30092bERrvV','438ZbNinU','physicalTableCount','length','36TLwoxz','tableList','string','299855RLuWHH','read','23927dVQXXQ','table','str','60VkJetI','314556frlDri','397422srSvtl','\x20(db\x20link\x20','tables','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','210jxasTQ','num','6876991UXtoyv','totalCount','21RDJbug','\x20table\x20comparison\x20row(s),\x20total\x20','number','77128jjZnup','summary'];a117_0x3a2c=function(){return _0x3b9f31;};return a117_0x3a2c();}export const dbTables={'service':'db','command':a117_0x1adb5b(0x144),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x1adb5b(0x158),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x1adb5b(0x15a),'type':a117_0x1adb5b(0x156),'description':a117_0x1adb5b(0x145)}],async 'execute'(_0x3190e3){const _0x1e93ab=a117_0x1adb5b,_0x181294=_0x3190e3[_0x1e93ab(0x147)]('id'),_0x123cdd=_0x3190e3[_0x1e93ab(0x15b)](_0x1e93ab(0x15a))||undefined,_0x45166f=await getAllDbTableDiff(getDbTableComparisonPage,_0x3190e3['appCode'],_0x181294,_0x123cdd),_0x3a7512=_0x45166f[_0x1e93ab(0x155)];return{'ok':!![],'data':{'dbLinkId':_0x181294,'totalCount':_0x45166f[_0x1e93ab(0x149)],...typeof _0x45166f[_0x1e93ab(0x152)]===_0x1e93ab(0x14c)?{'physicalTableCount':_0x45166f[_0x1e93ab(0x152)]}:{},...typeof _0x45166f[_0x1e93ab(0x14f)]===_0x1e93ab(0x14c)?{'datasetTableCount':_0x45166f[_0x1e93ab(0x14f)]}:{},..._0x45166f[_0x1e93ab(0x14e)]?{'summary':_0x45166f[_0x1e93ab(0x14e)]}:{},'summaryByType':summarizeDbTableDiff(_0x3a7512),'tables':_0x3a7512},'message':_0x3a7512[_0x1e93ab(0x153)]+_0x1e93ab(0x14b)+_0x45166f[_0x1e93ab(0x149)]+_0x1e93ab(0x15f)+_0x181294+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a118_0x3b9ac5=a118_0xc61a;(function(_0x67fc60,_0x40a46e){const _0xd6ee82=a118_0xc61a,_0x41e823=_0x67fc60();while(!![]){try{const _0x5b0d03=-parseInt(_0xd6ee82(0xfb))/0x1*(-parseInt(_0xd6ee82(0x101))/0x2)+parseInt(_0xd6ee82(0xf8))/0x3*(parseInt(_0xd6ee82(0x109))/0x4)+-parseInt(_0xd6ee82(0xf7))/0x5*(parseInt(_0xd6ee82(0x10e))/0x6)+parseInt(_0xd6ee82(0x103))/0x7*(-parseInt(_0xd6ee82(0xff))/0x8)+-parseInt(_0xd6ee82(0xfe))/0x9+parseInt(_0xd6ee82(0x10a))/0xa*(parseInt(_0xd6ee82(0x10d))/0xb)+-parseInt(_0xd6ee82(0xf9))/0xc;if(_0x5b0d03===_0x40a46e)break;else _0x41e823['push'](_0x41e823['shift']());}catch(_0x11e704){_0x41e823['push'](_0x41e823['shift']());}}}(a118_0x53dc,0xcbd7e));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0xc61a(_0x49b372,_0x164b60){_0x49b372=_0x49b372-0xf5;const _0x53dced=a118_0x53dc();let _0xc61a8f=_0x53dced[_0x49b372];return _0xc61a8f;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x374ad1){const _0x3a81f4=a118_0xc61a;if(_0x374ad1===!![]||_0x374ad1===![])return{'success':_0x374ad1};if(_0x374ad1===null||_0x374ad1===undefined)return{'type':typeof _0x374ad1};if(typeof _0x374ad1!=='object')return{'type':typeof _0x374ad1};const _0x80d18d=_0x374ad1,_0x30059f=[_0x3a81f4(0xf6),_0x3a81f4(0x10b),_0x3a81f4(0x100),_0x3a81f4(0x108),_0x3a81f4(0x105),'data'],_0x2885b1={};for(const _0x25e280 of _0x30059f){if(_0x25e280 in _0x80d18d)_0x2885b1[_0x25e280]=_0x80d18d[_0x25e280];}return Object[_0x3a81f4(0xf5)](_0x2885b1)[_0x3a81f4(0xfa)]===0x0&&(_0x2885b1[_0x3a81f4(0xf5)]=Object[_0x3a81f4(0xf5)](_0x80d18d)[_0x3a81f4(0x104)](0x0,0x14)),_0x2885b1;}export const dbTest={'service':'db','command':'test','description':a118_0x3b9ac5(0x106),'risk':a118_0x3b9ac5(0x10c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x616e4f){const _0x3d3276=a118_0x3b9ac5,_0x3cc4c5=_0x616e4f['num']('id'),_0x5cc019=await testDbLinkConnect(_0x3cc4c5),_0xba56d8=_0x5cc019===!![]||typeof _0x5cc019===_0x3d3276(0x102)&&_0x5cc019!==null&&_0x5cc019['success']===!![],_0x4dbf7d=summarizeTestConnectResult(_0x5cc019);return{'ok':!![],'data':{'id':_0x3cc4c5,'connected':Boolean(_0xba56d8),'result':_0x4dbf7d},'message':_0xba56d8?_0x3d3276(0xfc)+_0x3cc4c5:_0x3d3276(0x107)+_0x3cc4c5+_0x3d3276(0xfd)};}};function a118_0x53dc(){const _0x2cb676=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','error','68esIgiv','1081340KWPXgc','message','read','88NdliyF','17904wnSJQW','keys','success','35pWwLuG','26382SKHyVU','2709780yjmtkd','length','1fftUfx','Connection\x20OK\x20for\x20db\x20link\x20','\x20(see\x20data.result)','4889034hkBdBh','8rPoGev','code','2694494dELuRK','object','5158622HnlzEE','slice','msg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)'];a118_0x53dc=function(){return _0x2cb676;};return a118_0x53dc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x3fb704=a119_0x2a64;(function(_0x4abadb,_0x951569){const _0x5dcb38=a119_0x2a64,_0xa03c5d=_0x4abadb();while(!![]){try{const _0x5de203=parseInt(_0x5dcb38(0x89))/0x1+-parseInt(_0x5dcb38(0xa5))/0x2+parseInt(_0x5dcb38(0x99))/0x3+parseInt(_0x5dcb38(0xab))/0x4*(parseInt(_0x5dcb38(0x98))/0x5)+parseInt(_0x5dcb38(0x8e))/0x6*(parseInt(_0x5dcb38(0xa7))/0x7)+parseInt(_0x5dcb38(0xa8))/0x8+-parseInt(_0x5dcb38(0x9d))/0x9*(parseInt(_0x5dcb38(0xa2))/0xa);if(_0x5de203===_0x951569)break;else _0xa03c5d['push'](_0xa03c5d['shift']());}catch(_0x16e258){_0xa03c5d['push'](_0xa03c5d['shift']());}}}(a119_0x4cea,0x63b2b));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_0x4cea(){const _0x568e39=['50rfHWNR','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','bool','735120nILwTh','update','20965FbsVdD','2769488GlKTfR','validation','write','8jjSEMc','dbParam','dbDesc','str','dbUrl','Updated\x20db\x20link\x20','dburl','353627EfMXrT','dbname','string','dbName','New\x20description','1488HtbLsg','num','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','POST','password','New\x20connection\x20parameter\x20string','dbparam','New\x20username','205910pWHEhu','1179093ILBocg','/smartapi/dblink/update','[redacted]','New\x20host:port','2055681jZuIeh','has','username','New\x20database\x20name','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'];a119_0x4cea=function(){return _0x568e39;};return a119_0x4cea();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a119_0x2a64(_0x37e7f7,_0xafe88e){_0x37e7f7=_0x37e7f7-0x85;const _0x4ceaf1=a119_0x4cea();let _0x2a64ea=_0x4ceaf1[_0x37e7f7];return _0x2a64ea;}const MASKED_PASSWORD_VALUES=new Set(['******',a119_0x3fb704(0x9b)]);function mergeDbLinkUpdate(_0x1fc68c,_0x1bbfb3){const _0x1539bf=a119_0x3fb704,_0x4d2da6={..._0x1fc68c},_0x1a9d48=_0x1bbfb3[_0x1539bf(0x85)]('password');if(_0x1a9d48&&MASKED_PASSWORD_VALUES[_0x1539bf(0x9e)](_0x1a9d48))throw CliErrors['validation'](_0x1539bf(0x91));if(!_0x1a9d48&&MASKED_PASSWORD_VALUES[_0x1539bf(0x9e)](String(_0x1fc68c[_0x1539bf(0x94)]??'')))throw CliErrors['validation'](_0x1539bf(0xa3));const _0x436f9e=_0x1bbfb3[_0x1539bf(0x85)](_0x1539bf(0x8a));if(_0x436f9e)_0x4d2da6[_0x1539bf(0x8c)]=_0x436f9e;const _0x9ea043=_0x1bbfb3[_0x1539bf(0x85)](_0x1539bf(0x88));if(_0x9ea043)_0x4d2da6[_0x1539bf(0x86)]=_0x9ea043[_0x1539bf(0x92)]();const _0x7822fc=_0x1bbfb3['str'](_0x1539bf(0x9f));if(_0x7822fc)_0x4d2da6[_0x1539bf(0x9f)]=_0x7822fc;if(_0x1a9d48)_0x4d2da6[_0x1539bf(0x94)]=_0x1a9d48;const _0x1fb244=_0x1bbfb3[_0x1539bf(0x85)]('dbparam');if(_0x1fb244)_0x4d2da6[_0x1539bf(0xac)]=_0x1fb244;const _0x467a38=_0x1bbfb3['str']('dbdesc');if(_0x467a38)_0x4d2da6[_0x1539bf(0xad)]=_0x467a38;return _0x4d2da6;}export const dbUpdate={'service':'db','command':a119_0x3fb704(0xa6),'description':a119_0x3fb704(0x90),'risk':a119_0x3fb704(0xaa),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x3fb704(0x8a),'type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0xa0)},{'name':'dburl','type':'string','description':a119_0x3fb704(0x9c)},{'name':a119_0x3fb704(0x9f),'type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0x97)},{'name':'password','type':a119_0x3fb704(0x8b),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a119_0x3fb704(0x96),'type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0x95)},{'name':'dbdesc','type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0x8d)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x9be94b){const _0x1c919d=a119_0x3fb704,_0x55af6d=_0x9be94b[_0x1c919d(0x85)](_0x1c919d(0x88));if(_0x55af6d&&!validateDbUrl(_0x55af6d[_0x1c919d(0x92)]()))throw CliErrors[_0x1c919d(0xa9)](_0x1c919d(0xa1)+_0x55af6d+'\x22');},async 'dryRun'(_0x3089b5){const _0x23337f=a119_0x3fb704,_0x2b63ac=_0x3089b5[_0x23337f(0x8f)]('id'),_0xbe8048=await getDbLinkInfo(_0x2b63ac),_0x5425da=mergeDbLinkUpdate(_0xbe8048,_0x3089b5),_0x17e467=sanitizeDbLinkForOutput(_0x5425da);return{'method':_0x23337f(0x93),'url':_0x23337f(0x9a),'body':_0x17e467,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x3089b5[_0x23337f(0xa4)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x268083){const _0x55edf6=a119_0x3fb704,_0x576da5=_0x268083[_0x55edf6(0x8f)]('id'),_0x41335e=await getDbLinkInfo(_0x576da5),_0x422a80=mergeDbLinkUpdate(_0x41335e,_0x268083);!_0x268083[_0x55edf6(0xa4)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x422a80);const {id:_0x589729,entity:_0x4cc73a}=normalizeEntityWithIdResponse(await updateDbLink(_0x422a80));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4cc73a),'message':_0x55edf6(0x87)+(_0x589729??_0x576da5)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf476a8,_0x1ec245){const _0x360c4c=a120_0x5f1d,_0x268571=_0xf476a8();while(!![]){try{const _0x559cd0=-parseInt(_0x360c4c(0xba))/0x1*(-parseInt(_0x360c4c(0xb9))/0x2)+-parseInt(_0x360c4c(0xbc))/0x3+-parseInt(_0x360c4c(0xb6))/0x4+parseInt(_0x360c4c(0xb5))/0x5+parseInt(_0x360c4c(0xbd))/0x6+-parseInt(_0x360c4c(0xbb))/0x7+-parseInt(_0x360c4c(0xb8))/0x8*(-parseInt(_0x360c4c(0xb7))/0x9);if(_0x559cd0===_0x1ec245)break;else _0x268571['push'](_0x268571['shift']());}catch(_0x11db66){_0x268571['push'](_0x268571['shift']());}}}(a120_0x32c8,0x939d9));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];function a120_0x5f1d(_0x5f335f,_0x5826a8){_0x5f335f=_0x5f335f-0xb5;const _0x32c89d=a120_0x32c8();let _0x5f1d08=_0x32c89d[_0x5f335f];return _0x5f1d08;}function a120_0x32c8(){const _0x29526c=['23fAIXLZ','4046336weCmaW','1603218VwstHK','3264594cYuHZF','3839380EsJylo','4656788epnKQM','11627982vpjAYh','8svKDba','24114brkRwY'];a120_0x32c8=function(){return _0x29526c;};return a120_0x32c8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x4d298f=a121_0x553c;(function(_0x7c3acf,_0x10da64){const _0x42c3da=a121_0x553c,_0xb41411=_0x7c3acf();while(!![]){try{const _0x29d24f=parseInt(_0x42c3da(0x1ed))/0x1+parseInt(_0x42c3da(0x1e6))/0x2+parseInt(_0x42c3da(0x1e9))/0x3+parseInt(_0x42c3da(0x1e8))/0x4+-parseInt(_0x42c3da(0x1ef))/0x5+-parseInt(_0x42c3da(0x1f6))/0x6+parseInt(_0x42c3da(0x1e0))/0x7;if(_0x29d24f===_0x10da64)break;else _0xb41411['push'](_0xb41411['shift']());}catch(_0x1f25e2){_0xb41411['push'](_0xb41411['shift']());}}}(a121_0x5719,0xdbac5));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';import{CliError,CliErrors}from'../../errors.js';function a121_0x553c(_0x3b52df,_0x2fb540){_0x3b52df=_0x3b52df-0x1e0;const _0x5719dd=a121_0x5719();let _0x553ca3=_0x5719dd[_0x3b52df];return _0x553ca3;}const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a121_0x4d298f(0x1f2),'type':a121_0x4d298f(0x1e7),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x4d298f(0x1ee),'command':'sync-all','description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':a121_0x4d298f(0x1f8),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4d298f(0x1ff),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xb4300a){const _0x4220cc=a121_0x4d298f;return asDryRunResult(buildPreview(_0xb4300a[_0x4220cc(0x1f5)]),{'method':'POST','url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x309d6c){const _0xa7147a=a121_0x4d298f;if(!_0x309d6c[_0xa7147a(0x1e2)](_0xa7147a(0x1f2)))throw CliErrors[_0xa7147a(0x1fc)](_0xa7147a(0x1f1),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x2c4151=await submitDeploymentMetadataSyncAll({'appCode':_0x309d6c[_0xa7147a(0x1f5)]});if(_0x2c4151[_0xa7147a(0x1ec)]==='not_needed')return{'ok':!![],'data':{'operation':_0xa7147a(0x1fd),'appCode':_0x309d6c[_0xa7147a(0x1f5)],'submitted':![],'outcome':_0xa7147a(0x1e3)},'message':_0xa7147a(0x1e1)};return{'ok':!![],'data':{'operation':_0xa7147a(0x1fd),'appCode':_0x309d6c['appCode'],'submitted':!![],'outcome':_0xa7147a(0x1f9),'jobId':_0x2c4151[_0xa7147a(0x1fb)]['jobId'],'status':_0x2c4151[_0xa7147a(0x1fb)][_0xa7147a(0x1ea)]},'message':_0xa7147a(0x1f0)+_0x2c4151[_0xa7147a(0x1fb)][_0xa7147a(0x1f4)]+'.'};}catch(_0x2fb54c){if(!isPlatformTransportFailure(_0x2fb54c))throw _0x2fb54c;const _0x1db574=new CliError(_0xa7147a(0x1fa),0x2,_0xa7147a(0x1fe),_0xa7147a(0x1eb));Object[_0xa7147a(0x1f3)](_0x1db574,_0xa7147a(0x1e4),{'enumerable':!![],'value':{'operation':_0xa7147a(0x1fd),'appCode':_0x309d6c[_0xa7147a(0x1f5)],'submitted':null,'outcome':_0xa7147a(0x1f7)}});throw _0x1db574;}}};function a121_0x5719(){const _0x33c1fe=['List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','outcome','66675xHqOpi','deployment','4004215ETQSLD','Submitted\x20deployment\x20synchronization\x20job\x20','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','confirm','defineProperty','jobId','appCode','5110398QkvaDS','unknown','write','submitted','deployment_sync_submit_outcome_unknown','job','validation','application_deployment_sync','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','10604076ZfoDMm','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','bool','not_needed','data','all_server_supported_metadata','846238EFdtUR','boolean','522636aPbYQy','1251108IvSZeP','status'];a121_0x5719=function(){return _0x33c1fe;};return a121_0x5719();}function buildPreview(_0x1efe03){const _0x279ac3=a121_0x4d298f;return{'operation':_0x279ac3(0x1fd),'selector':{'appCode':_0x1efe03,'scope':_0x279ac3(0x1e5)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a122_0xbf67(_0x180552,_0x37a059){_0x180552=_0x180552-0x69;const _0x2700ba=a122_0x2700();let _0xbf67e9=_0x2700ba[_0x180552];return _0xbf67e9;}const a122_0x986c5e=a122_0xbf67;function a122_0x2700(){const _0x48f38d=['110339swiUvp','77npRIzx','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','validation','isSafeInteger','Found\x20','trim','length','string','str','676355DuFAAk','1172870YMCJbC','number','appCode','574272kDyWGX','12XSZbAT','--current-page\x20must\x20be\x20a\x20positive\x20integer.','status','785214JyEGlg','2jckCxs','Items\x20per\x20page\x20(maximum\x20100)','199416NkmVaF','Page\x20number','current-page','num','171208AfdWuI','\x20deployment\x20synchronization\x20job(s).','page-size'];a122_0x2700=function(){return _0x48f38d;};return a122_0x2700();}(function(_0x197807,_0x4fc755){const _0x13f664=a122_0xbf67,_0x5aa44d=_0x197807();while(!![]){try{const _0x41871a=-parseInt(_0x13f664(0x6f))/0x1*(-parseInt(_0x13f664(0x82))/0x2)+parseInt(_0x13f664(0x84))/0x3*(-parseInt(_0x13f664(0x7e))/0x4)+parseInt(_0x13f664(0x79))/0x5+parseInt(_0x13f664(0x81))/0x6+parseInt(_0x13f664(0x70))/0x7*(-parseInt(_0x13f664(0x6c))/0x8)+parseInt(_0x13f664(0x7d))/0x9+parseInt(_0x13f664(0x7a))/0xa;if(_0x41871a===_0x4fc755)break;else _0x5aa44d['push'](_0x5aa44d['shift']());}catch(_0x137751){_0x5aa44d['push'](_0x5aa44d['shift']());}}}(a122_0x2700,0x1df7b));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':'deployment','command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x986c5e(0x7b),'default':0x1,'description':a122_0x986c5e(0x69)},{'name':a122_0x986c5e(0x6e),'type':'number','default':0xa,'description':a122_0x986c5e(0x83)},{'name':a122_0x986c5e(0x80),'type':a122_0x986c5e(0x77),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x477c46){const _0x3d85bc=a122_0x986c5e;readPaging(_0x477c46[_0x3d85bc(0x6b)]('current-page',0x1),_0x477c46[_0x3d85bc(0x6b)]('page-size',0xa));},async 'execute'(_0xe95c77){const _0x40e050=a122_0x986c5e,{currentPage:_0x565956,pageSize:_0x349a8d}=readPaging(_0xe95c77[_0x40e050(0x6b)](_0x40e050(0x6a),0x1),_0xe95c77[_0x40e050(0x6b)](_0x40e050(0x6e),0xa)),_0xf5230a=_0xe95c77[_0x40e050(0x78)]('status')[_0x40e050(0x75)](),_0x2f34a4=await listDeploymentMetadataSyncJobs({'appCode':_0xe95c77[_0x40e050(0x7c)],'currentPage':_0x565956,'pageSize':_0x349a8d,..._0xf5230a?{'status':_0xf5230a}:{}});return{'ok':!![],'data':{'appCode':_0xe95c77[_0x40e050(0x7c)],..._0x2f34a4},'message':_0x40e050(0x74)+_0x2f34a4['items'][_0x40e050(0x76)]+_0x40e050(0x6d)};}};function readPaging(_0x53ace0,_0x112808){const _0x3cfff7=a122_0x986c5e;if(!Number[_0x3cfff7(0x73)](_0x53ace0)||_0x53ace0<0x1)throw CliErrors['validation'](_0x3cfff7(0x7f));if(!Number[_0x3cfff7(0x73)](_0x112808)||_0x112808<0x1||_0x112808>0x64)throw CliErrors[_0x3cfff7(0x72)](_0x3cfff7(0x71));return{'currentPage':_0x53ace0,'pageSize':_0x112808};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x538625=a123_0x13fc;function a123_0x19ed(){const _0x58a120=['deployment','2324022TIwSPZ','3995572GwpPGM','filter','11146583ydThig','3363789dGDjFB','FAILED','Deployment\x20synchronization\x20job\x20','SUCCESS',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','job-id','status','has','1056070ZoXDHy','reduce','map','length','Preserved\x20server-defined\x20status\x20','RUNNING','read','appCode','bizType','results','Deployment\x20synchronization\x20job\x20ID','452018TPLbre','num','Get\x20application\x20deployment\x20synchronization\x20job\x20status','action','number','validation','705844BuhGMh','sync-status'];a123_0x19ed=function(){return _0x58a120;};return a123_0x19ed();}(function(_0x215bb5,_0x2102da){const _0x39dbf3=a123_0x13fc,_0x4fbd2c=_0x215bb5();while(!![]){try{const _0x5131a3=-parseInt(_0x39dbf3(0x176))/0x1+parseInt(_0x39dbf3(0x17c))/0x2+parseInt(_0x39dbf3(0x183))/0x3+parseInt(_0x39dbf3(0x180))/0x4+-parseInt(_0x39dbf3(0x18b))/0x5+parseInt(_0x39dbf3(0x17f))/0x6+-parseInt(_0x39dbf3(0x182))/0x7;if(_0x5131a3===_0x2102da)break;else _0x4fbd2c['push'](_0x4fbd2c['shift']());}catch(_0x2e617d){_0x4fbd2c['push'](_0x4fbd2c['shift']());}}}(a123_0x19ed,0x93a8e));function a123_0x13fc(_0x15e134,_0x82f3c5){_0x15e134=_0x15e134-0x176;const _0x19ed02=a123_0x19ed();let _0x13fcc8=_0x19ed02[_0x15e134];return _0x13fcc8;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x538625(0x186),'PARTIAL_SUCCESS',a123_0x538625(0x184)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x538625(0x190)]);export const deploymentSyncStatus={'service':a123_0x538625(0x17e),'command':a123_0x538625(0x17d),'description':a123_0x538625(0x178),'risk':a123_0x538625(0x191),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x538625(0x188),'type':a123_0x538625(0x17a),'required':!![],'description':a123_0x538625(0x195)}],async 'validate'(_0x5ed09e){const _0x4e913e=a123_0x538625;readJobId(_0x5ed09e[_0x4e913e(0x177)]('job-id'));},async 'execute'(_0x31a9c3){const _0x565698=a123_0x538625,_0x27b530=readJobId(_0x31a9c3[_0x565698(0x177)](_0x565698(0x188))),_0x4df8e8=await getDeploymentMetadataSyncStatus({'jobId':_0x27b530,'appCode':_0x31a9c3[_0x565698(0x192)]}),_0x38e146=TERMINAL_STATUSES[_0x565698(0x18a)](_0x4df8e8[_0x565698(0x189)])?!![]:ACTIVE_STATUSES[_0x565698(0x18a)](_0x4df8e8[_0x565698(0x189)])?![]:null,_0x25778b=countBy(_0x4df8e8[_0x565698(0x194)][_0x565698(0x18d)](_0xcd8914=>_0xcd8914[_0x565698(0x193)])),_0xacd684=countBy(_0x4df8e8[_0x565698(0x194)]['map'](_0x5bdf00=>_0x5bdf00['action'])),_0x1b476c=_0x38e146===null?[_0x565698(0x18f)+_0x4df8e8[_0x565698(0x189)]+_0x565698(0x187)]:[];return{'ok':!![],'data':{'job':_0x4df8e8,'isTerminal':_0x38e146,'summary':{'total':_0x4df8e8[_0x565698(0x194)][_0x565698(0x18e)],'failed':_0x4df8e8[_0x565698(0x194)][_0x565698(0x181)](_0x5dd969=>_0x5dd969[_0x565698(0x179)]==='FAILED')[_0x565698(0x18e)],'byBizType':_0x25778b,'byAction':_0xacd684},'warnings':_0x1b476c},'message':_0x565698(0x185)+_0x27b530+'\x20is\x20'+_0x4df8e8['status']+'.'};}};function readJobId(_0x2634fe){const _0x30d6d8=a123_0x538625;if(!Number['isSafeInteger'](_0x2634fe)||_0x2634fe<=0x0)throw CliErrors[_0x30d6d8(0x17b)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x2634fe;}function countBy(_0x3dc953){const _0x39d984=a123_0x538625;return _0x3dc953[_0x39d984(0x18c)]((_0x4e5ae9,_0x7686db)=>{return _0x4e5ae9[_0x7686db]=(_0x4e5ae9[_0x7686db]??0x0)+0x1,_0x4e5ae9;},{});}
|