@lovrabet/rabetbase-cli 2.5.9 → 2.5.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/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/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/telemetry/send-platform-issue-collect-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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase-dataset-generation/SKILL.md +2 -2
- package/skills/rabetbase-page-generation/SKILL.md +2 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x1980(_0x69c8ea,_0x13e49b){_0x69c8ea=_0x69c8ea-0x169;const _0xb737c9=a59_0xb737();let _0x19807f=_0xb737c9[_0x69c8ea];return _0x19807f;}const a59_0x585527=a59_0x1980;(function(_0x4adf61,_0x13a8ba){const _0xc4d8b6=a59_0x1980,_0xb59afe=_0x4adf61();while(!![]){try{const _0x1c5751=parseInt(_0xc4d8b6(0x176))/0x1*(-parseInt(_0xc4d8b6(0x17a))/0x2)+parseInt(_0xc4d8b6(0x17d))/0x3+parseInt(_0xc4d8b6(0x16e))/0x4+-parseInt(_0xc4d8b6(0x179))/0x5*(parseInt(_0xc4d8b6(0x177))/0x6)+-parseInt(_0xc4d8b6(0x16c))/0x7*(-parseInt(_0xc4d8b6(0x16f))/0x8)+-parseInt(_0xc4d8b6(0x16a))/0x9*(-parseInt(_0xc4d8b6(0x169))/0xa)+parseInt(_0xc4d8b6(0x173))/0xb*(-parseInt(_0xc4d8b6(0x170))/0xc);if(_0x1c5751===_0x13a8ba)break;else _0xb59afe['push'](_0xb59afe['shift']());}catch(_0x4c66fb){_0xb59afe['push'](_0xb59afe['shift']());}}}(a59_0xb737,0x40c5b));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x4615b5){const _0x90d9ed=a59_0x1980,_0x1bfe22=_0x4615b5[_0x90d9ed(0x178)](_0x90d9ed(0x171));if(!_0x1bfe22)throw CliErrors[_0x90d9ed(0x175)](_0x90d9ed(0x16b),_0x90d9ed(0x17f)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x2977fc=readConfig(),_0x4e3874=_0x1bfe22===_0x90d9ed(0x17b)?'appcode':_0x1bfe22,_0x32c7d8=_0x2977fc[_0x4e3874];if(_0x32c7d8===undefined)throw CliErrors[_0x90d9ed(0x175)]('Key\x20not\x20found:\x20'+_0x1bfe22);return{'ok':!![],'data':typeof _0x32c7d8===_0x90d9ed(0x17c)?_0x32c7d8:{[_0x4e3874]:_0x32c7d8},'message':typeof _0x32c7d8===_0x90d9ed(0x17c)?undefined:String(_0x32c7d8)};}function a59_0xb737(){const _0x375abf=['931425aoUVYL','get','validation','20217cYEfDH','198912lrRyCC','str','70swBOkB','2eSASlo','app','object','922449DZXsMZ','Get\x20a\x20config\x20value\x20by\x20key','Usage:\x20','10usiVoa','36684bHcgcD','Missing\x20key.','3019051JXlobM','string','1043300dRYLjE','8BIwsAo','36FdKlue','key','read'];a59_0xb737=function(){return _0x375abf;};return a59_0xb737();}export const configGetDefinition={'service':'config','command':a59_0x585527(0x174),'description':a59_0x585527(0x17e),'risk':a59_0x585527(0x172),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x585527(0x171),'type':a59_0x585527(0x16d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1fab85,_0x406641){const _0x3d35e2=a60_0x4f5a,_0x156305=_0x1fab85();while(!![]){try{const _0x101b7b=parseInt(_0x3d35e2(0xb0))/0x1+-parseInt(_0x3d35e2(0xac))/0x2+-parseInt(_0x3d35e2(0xae))/0x3+-parseInt(_0x3d35e2(0xb1))/0x4+parseInt(_0x3d35e2(0xaf))/0x5*(-parseInt(_0x3d35e2(0xaa))/0x6)+parseInt(_0x3d35e2(0xab))/0x7+parseInt(_0x3d35e2(0xad))/0x8;if(_0x101b7b===_0x406641)break;else _0x156305['push'](_0x156305['shift']());}catch(_0x1b1760){_0x156305['push'](_0x156305['shift']());}}}(a60_0x192b,0x60752));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a60_0x192b(){const _0x564543=['16092608UkJJuU','2325078kmLghO','95725YZWfMg','149430TFKNCa','2973664SUCIOM','6zHfbSR','3856006zXOnvy','1558374GEEiua'];a60_0x192b=function(){return _0x564543;};return a60_0x192b();}function a60_0x4f5a(_0x346fb0,_0x17d3b3){_0x346fb0=_0x346fb0-0xaa;const _0x192b91=a60_0x192b();let _0x4f5a1f=_0x192b91[_0x346fb0];return _0x4f5a1f;}import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0xfffd88=a61_0x27b1;function a61_0x27b1(_0x5c71c7,_0x4ba1b4){_0x5c71c7=_0x5c71c7-0x18e;const _0x2fd68a=a61_0x2fd6();let _0x27b1ab=_0x2fd68a[_0x5c71c7];return _0x27b1ab;}(function(_0x948b0c,_0x304505){const _0x43c1ad=a61_0x27b1,_0x60ffcc=_0x948b0c();while(!![]){try{const _0x88c73=parseInt(_0x43c1ad(0x198))/0x1+-parseInt(_0x43c1ad(0x1b0))/0x2+parseInt(_0x43c1ad(0x193))/0x3+parseInt(_0x43c1ad(0x18e))/0x4*(parseInt(_0x43c1ad(0x1ad))/0x5)+-parseInt(_0x43c1ad(0x1a6))/0x6+parseInt(_0x43c1ad(0x1af))/0x7*(parseInt(_0x43c1ad(0x1bc))/0x8)+-parseInt(_0x43c1ad(0x191))/0x9*(parseInt(_0x43c1ad(0x1c3))/0xa);if(_0x88c73===_0x304505)break;else _0x60ffcc['push'](_0x60ffcc['shift']());}catch(_0x2eb10c){_0x60ffcc['push'](_0x60ffcc['shift']());}}}(a61_0x2fd6,0xa33b1));import{select}from'@inquirer/prompts';function a61_0x2fd6(){const _0x1c08e6=['write','map','Independent-deployment\x20Domain\x20JSON\x20file','Custom\x20KB\x20Service\x20HTTPS\x20origin','str','mode','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','assign','region','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Custom\x20platform\x20API\x20HTTPS\x20origin','certificate-domain','routing','1091448xMKnwU','Region\x20\x22','\x22\x20is\x20not\x20currently\x20available.','runtime-domain','api-domain','certificateDomain','cancelled','3380lPubiC','Custom\x20User\x20HTTPS\x20origin','1153817hYhhaX','136664ByHdOM','length','skill-domain','cdn','label','official','validation','bool','string','Custom\x20knowledge-base\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','8euGrXC','Custom\x20certificate\x20service\x20HTTPS\x20origin','Official\x20Lovrabet\x20region:\x20','global','manifestDomains','join','keys','1510swbTrx','project','enterprise-v1','kb-service-domain','1908CMHqtz','init','localDomain','26352puqGra','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','2022057hkwFYN','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','nonInteractive','independent','Custom\x20local\x20callback\x20HTTPS\x20origin','199659gnliJq'];a61_0x2fd6=function(){return _0x1c08e6;};return a61_0x2fd6();}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0xfffd88(0x1a1),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1be)+ENABLED_LOVRABET_REGION_VALUES[a61_0xfffd88(0x1c1)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x19b)},{'name':'user-domain','type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1ae)},{'name':a61_0xfffd88(0x1aa),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1a3)},{'name':a61_0xfffd88(0x1a9),'type':a61_0xfffd88(0x1b8),'description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a61_0xfffd88(0x1b2),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1ba)},{'name':'kb-domain','type':'string','description':a61_0xfffd88(0x1b9)},{'name':a61_0xfffd88(0x1c6),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x19c)},{'name':'app-domain','type':'string','description':a61_0xfffd88(0x194)},{'name':'local-domain','type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x197)},{'name':a61_0xfffd88(0x1a4),'type':'string','description':a61_0xfffd88(0x1bd)}];async function resolveRegion(_0x15a350){const _0x3d3ba6=a61_0xfffd88,_0x510bc4=_0x15a350[_0x3d3ba6(0x19d)]('region');if(_0x510bc4){if(!isEnabledLovrabetRegion(_0x510bc4))throw CliErrors[_0x3d3ba6(0x1b6)](_0x3d3ba6(0x1a7)+_0x510bc4+_0x3d3ba6(0x1a8),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x3d3ba6(0x1c1)](',\x20'));return _0x510bc4;}if(_0x15a350[_0x3d3ba6(0x195)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x3d3ba6(0x19a)](_0x5f361d=>({'name':getOfficialRoutingProfile(_0x5f361d)[_0x3d3ba6(0x1b4)]+'\x20('+_0x5f361d+')','value':_0x5f361d}))});}catch(_0xe4eb1e){if(_0xe4eb1e?.['name']==='ExitPromptError')throw CliErrors[_0x3d3ba6(0x1ac)]();throw _0xe4eb1e;}}export async function executeConfigInit(_0x37af1d){const _0x7ee924=a61_0xfffd88,_0x23c5dc=resolveDomainConfigInput(_0x37af1d),_0x42e2ea=_0x23c5dc['domains'],_0x2a6755=Object[_0x7ee924(0x1c2)](_0x42e2ea)[_0x7ee924(0x1b1)]>0x0;if(_0x2a6755&&_0x37af1d[_0x7ee924(0x19d)](_0x7ee924(0x1a1)))throw CliErrors['validation'](_0x7ee924(0x1a2));if(!!_0x42e2ea[_0x7ee924(0x190)]!==!!_0x42e2ea[_0x7ee924(0x1ab)])throw CliErrors[_0x7ee924(0x1b6)](_0x7ee924(0x1bb));const _0x27dcc1=_0x37af1d[_0x7ee924(0x1b7)](_0x7ee924(0x1bf))?'global':_0x7ee924(0x1c4),_0x259b19=readScopedConfig(_0x27dcc1);for(const _0x407198 of DOMAIN_CONFIG_FIELDS)delete _0x259b19[_0x407198];for(const _0x4b49ae of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x259b19[_0x4b49ae];delete _0x259b19[_0x7ee924(0x1a5)];let _0x370887=null;if(_0x2a6755)delete _0x259b19['region'],_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?_0x259b19[_0x7ee924(0x1a5)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x23c5dc[_0x7ee924(0x1c0)],'cdn':_0x23c5dc[_0x7ee924(0x1b3)]}:Object[_0x7ee924(0x1a0)](_0x259b19,_0x42e2ea);else{_0x370887=await resolveRegion(_0x37af1d);if(_0x370887===DEFAULT_LOVRABET_REGION)delete _0x259b19['region'];else _0x259b19[_0x7ee924(0x1a1)]=_0x370887;}return writeScopedConfig(_0x259b19,_0x27dcc1),{'ok':!![],'message':_0x2a6755?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x7ee924(0x1c2)](_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?_0x23c5dc['manifestDomains']:_0x42e2ea)[_0x7ee924(0x1c1)](',\x20')+'.':_0x7ee924(0x192)+_0x370887+'.','data':{'mode':_0x2a6755?_0x7ee924(0x196):_0x7ee924(0x1b5),'protocol':_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x370887,'domains':_0x42e2ea,'cdn':_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?_0x23c5dc['cdn']:undefined}};}export const configInitDefinition={'service':'config','command':a61_0xfffd88(0x18f),'description':'Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a61_0xfffd88(0x199),'confirmationDescription':a61_0xfffd88(0x19f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x232acf=a62_0x5d6e;function a62_0x3d44(){const _0x7cf395=['3651vayjko','2320xzdfTm','list','716XqBYTA','bool','372338kDIMOm','config','306PbQwUQ','global','2304bJqHpQ','List\x20all\x20config\x20values','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','378216ZdBIch','2475415QBiVyz','907890axkqjR','5404qsgvGD'];a62_0x3d44=function(){return _0x7cf395;};return a62_0x3d44();}(function(_0x71db49,_0x531f71){const _0x1518aa=a62_0x5d6e,_0x3bc89c=_0x71db49();while(!![]){try{const _0x471d11=-parseInt(_0x1518aa(0x1cd))/0x1+-parseInt(_0x1518aa(0x1d6))/0x2+parseInt(_0x1518aa(0x1d1))/0x3*(parseInt(_0x1518aa(0x1d4))/0x4)+parseInt(_0x1518aa(0x1ce))/0x5+parseInt(_0x1518aa(0x1cf))/0x6+-parseInt(_0x1518aa(0x1d0))/0x7*(-parseInt(_0x1518aa(0x1ca))/0x8)+parseInt(_0x1518aa(0x1c8))/0x9*(-parseInt(_0x1518aa(0x1d2))/0xa);if(_0x471d11===_0x531f71)break;else _0x3bc89c['push'](_0x3bc89c['shift']());}catch(_0x48b24a){_0x3bc89c['push'](_0x3bc89c['shift']());}}}(a62_0x3d44,0x7d900));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x470d5c){const _0x475902=a62_0x5d6e,_0x50ce49=_0x470d5c[_0x475902(0x1d5)]('global')?readScopedConfig(_0x475902(0x1c9)):readConfig();return{'ok':!![],'data':_0x50ce49};}function a62_0x5d6e(_0x14ad4f,_0x15786d){_0x14ad4f=_0x14ad4f-0x1c7;const _0x3d440f=a62_0x3d44();let _0x5d6e20=_0x3d440f[_0x14ad4f];return _0x5d6e20;}export const configListDefinition={'service':a62_0x232acf(0x1c7),'command':a62_0x232acf(0x1d3),'description':a62_0x232acf(0x1cb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a62_0x232acf(0x1cc),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x17f4b2=a63_0x1214;(function(_0x13c2ca,_0x46e092){const _0x4b89e7=a63_0x1214,_0x206e57=_0x13c2ca();while(!![]){try{const _0x1fb2ac=parseInt(_0x4b89e7(0x156))/0x1+-parseInt(_0x4b89e7(0x147))/0x2+-parseInt(_0x4b89e7(0x153))/0x3*(-parseInt(_0x4b89e7(0x127))/0x4)+-parseInt(_0x4b89e7(0x139))/0x5+parseInt(_0x4b89e7(0x123))/0x6+-parseInt(_0x4b89e7(0x13b))/0x7*(-parseInt(_0x4b89e7(0x14b))/0x8)+-parseInt(_0x4b89e7(0x13e))/0x9;if(_0x1fb2ac===_0x46e092)break;else _0x206e57['push'](_0x206e57['shift']());}catch(_0x424f40){_0x206e57['push'](_0x206e57['shift']());}}}(a63_0x3195,0x4d188));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a63_0x1214(_0x401603,_0x5e9eda){_0x401603=_0x401603-0x123;const _0x319592=a63_0x3195();let _0x121440=_0x319592[_0x401603];return _0x121440;}import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x17762b){const _0x4d5c8a=a63_0x1214,_0x272ec3=_0x17762b[_0x4d5c8a(0x140)](_0x4d5c8a(0x13a)),_0x5ee77e=_0x17762b['str'](_0x4d5c8a(0x12f));if(!_0x272ec3)throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x12a),_0x4d5c8a(0x12b)+CLI_BIN_NAME+_0x4d5c8a(0x129));if(_0x5ee77e===undefined||_0x5ee77e==='')throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x155),_0x4d5c8a(0x12b)+CLI_BIN_NAME+_0x4d5c8a(0x129));let _0x270c85=_0x272ec3,_0x21ca82=_0x5ee77e;if(_0x5ee77e[_0x4d5c8a(0x13f)]>0x1f4)throw CliErrors['validation'](_0x4d5c8a(0x151));if(_0x272ec3===_0x4d5c8a(0x146))throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x142));if(!isTopLevelConfigKey(_0x272ec3))throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x14e)+_0x272ec3+_0x4d5c8a(0x154),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x272ec3]&&!CONFIG_ENUM_VALUES[_0x272ec3][_0x4d5c8a(0x135)](_0x5ee77e))throw CliErrors['validation'](_0x4d5c8a(0x12c)+_0x272ec3+_0x4d5c8a(0x149)+CONFIG_ENUM_VALUES[_0x272ec3][_0x4d5c8a(0x14f)](',\x20'));if(_0x272ec3==='locale'&&!normalizeLocale(_0x5ee77e))throw CliErrors['validation'](_0x4d5c8a(0x152),_0x4d5c8a(0x145));DOMAIN_CONFIG_FIELDS[_0x4d5c8a(0x135)](_0x272ec3)&&(_0x21ca82=normalizeDomainOrigin(_0x272ec3,_0x5ee77e));const _0x429cd1={'global':_0x17762b[_0x4d5c8a(0x148)]('global')},_0x3d549a=resolveWriteScope(_0x429cd1),_0x115c54=readScopedConfig(_0x3d549a);_0x272ec3===_0x4d5c8a(0x137)&&(_0x270c85=_0x4d5c8a(0x132),delete _0x115c54['app']);_0x272ec3===_0x4d5c8a(0x133)&&(_0x21ca82=normalizeLocale(_0x5ee77e));if(_0x272ec3===_0x4d5c8a(0x136)){_0x21ca82=normalizeEnv(_0x5ee77e);if(!isProduction(_0x21ca82)&&!isDaily(_0x21ca82))throw CliErrors[_0x4d5c8a(0x13c)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x272ec3===_0x4d5c8a(0x132)){const _0x3e3953=_0x115c54[_0x4d5c8a(0x124)]&&typeof _0x115c54[_0x4d5c8a(0x124)]===_0x4d5c8a(0x150)?Object['keys'](_0x115c54[_0x4d5c8a(0x124)]):[];if(_0x3e3953[_0x4d5c8a(0x13f)]>0x0)throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x128),_0x4d5c8a(0x12d)+CLI_BIN_NAME+_0x4d5c8a(0x144)+_0x21ca82+'`,\x20`'+CLI_BIN_NAME+_0x4d5c8a(0x126));const _0x41aaf3=buildCanonicalProjectConfig({..._0x115c54},{'appCodes':[_0x21ca82],'env':typeof _0x115c54[_0x4d5c8a(0x136)]==='string'?_0x115c54[_0x4d5c8a(0x136)]:undefined});writeScopedConfig(_0x41aaf3,_0x3d549a);const _0x356a16=_0x3d549a===_0x4d5c8a(0x130)?_0x4d5c8a(0x14c):_0x4d5c8a(0x141);return{'ok':!![],'message':'✓\x20'+_0x356a16+_0x4d5c8a(0x138)+_0x21ca82+_0x4d5c8a(0x14a)};}_0x115c54[_0x270c85]=_0x21ca82,writeScopedConfig(_0x115c54,_0x3d549a);const _0x54eed3=_0x3d549a===_0x4d5c8a(0x130)?_0x4d5c8a(0x14c):_0x4d5c8a(0x141);return{'ok':!![],'message':'✓\x20'+_0x54eed3+'\x20'+_0x270c85+'\x20set\x20to:\x20'+_0x21ca82};}export const configSetDefinition={'service':a63_0x17f4b2(0x125),'command':a63_0x17f4b2(0x14d),'description':a63_0x17f4b2(0x134),'risk':a63_0x17f4b2(0x143),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x17f4b2(0x13a),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a63_0x17f4b2(0x13d),'description':a63_0x17f4b2(0x131),'required':!![]},{'name':a63_0x17f4b2(0x130),'type':a63_0x17f4b2(0x12e),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a63_0x3195(){const _0x44df32=['220735LVcSGK','3055470CRWlaA','apps','config','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','30556fUZhdx','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Missing\x20key.','Usage:\x20','Invalid\x20value\x20for\x20\x22','Use\x20`','boolean','value','global','Config\x20value','appcode','locale','Set\x20a\x20config\x20value','includes','env','app','\x20appcode\x20set\x20to:\x20','1330670lOhHtZ','key','770vIZSGT','validation','string','2073402yWpgHs','length','str','Project','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','write','\x20workspace\x20add\x20<name>\x20--appcode\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','riskLevel','691270SgWdvl','bool','\x22.\x20Allowed:\x20','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','20568sgckyc','Global','set','Top-level\x20key\x20\x22','join','object','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20locale\x20value.','57LZTXGB','\x22\x20is\x20not\x20settable.','Missing\x20value.'];a63_0x3195=function(){return _0x44df32;};return a63_0x3195();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x350ee7,_0x3dafa4){var _0xdba1cb=a64_0x3c11,_0x2019b3=_0x350ee7();while(!![]){try{var _0xbd13d=parseInt(_0xdba1cb(0x194))/0x1+parseInt(_0xdba1cb(0x19a))/0x2*(parseInt(_0xdba1cb(0x190))/0x3)+parseInt(_0xdba1cb(0x199))/0x4+parseInt(_0xdba1cb(0x191))/0x5+-parseInt(_0xdba1cb(0x193))/0x6+parseInt(_0xdba1cb(0x19c))/0x7+-parseInt(_0xdba1cb(0x196))/0x8;if(_0xbd13d===_0x3dafa4)break;else _0x2019b3['push'](_0x2019b3['shift']());}catch(_0x2129b6){_0x2019b3['push'](_0x2019b3['shift']());}}}(a64_0x4a73,0xee00d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a64_0x4a73(){var _0x5cbae0=['8354472BrjMhe','1527519ZAFqQF','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','18167536RDgBEw','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','global','2381568wJoXSv','2338MTpYMw','project','7576821SyNdce','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1956ezWzxs','3353565ztHjrh','validation'];a64_0x4a73=function(){return _0x5cbae0;};return a64_0x4a73();}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a64_0x3c11(_0x13b65a,_0x4ecd70){_0x13b65a=_0x13b65a-0x190;var _0x4a7388=a64_0x4a73();var _0x3c116f=_0x4a7388[_0x13b65a];return _0x3c116f;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x49590a){var _0x3ce17e=a64_0x3c11;if(_0x49590a[_0x3ce17e(0x198)])return _0x3ce17e(0x198);if(!isInProject())throw CliErrors[_0x3ce17e(0x192)](_0x3ce17e(0x19d),_0x3ce17e(0x195)+CLI_BIN_NAME+_0x3ce17e(0x197));return _0x3ce17e(0x19b);}export function readScopedConfig(_0x3c50a1){return readConfigFile(resolveWriteConfigPath(_0x3c50a1));}export function writeScopedConfig(_0x4fe55d,_0x498b19){writeConfigFile(resolveWriteConfigPath(_0x498b19),_0x4fe55d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x158720=a65_0x5d2e;(function(_0xe7ce1f,_0x1466a0){const _0x56ecba=a65_0x5d2e,_0x1c9fd5=_0xe7ce1f();while(!![]){try{const _0x28e7f1=-parseInt(_0x56ecba(0x9e))/0x1*(parseInt(_0x56ecba(0x100))/0x2)+-parseInt(_0x56ecba(0xc5))/0x3*(-parseInt(_0x56ecba(0xef))/0x4)+parseInt(_0x56ecba(0xba))/0x5*(-parseInt(_0x56ecba(0xc1))/0x6)+parseInt(_0x56ecba(0xdb))/0x7+parseInt(_0x56ecba(0xd6))/0x8+parseInt(_0x56ecba(0xc4))/0x9*(parseInt(_0x56ecba(0xc8))/0xa)+-parseInt(_0x56ecba(0xd1))/0xb;if(_0x28e7f1===_0x1466a0)break;else _0x1c9fd5['push'](_0x1c9fd5['shift']());}catch(_0x22af17){_0x1c9fd5['push'](_0x1c9fd5['shift']());}}}(a65_0x2138,0xcd7e1));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x158720(0xad),'ONE_TO_ONE']),SUPPORTED_FIELD_TYPES=new Set(['TEXT',a65_0x158720(0xfa),a65_0x158720(0xd0),'BOOLEAN',a65_0x158720(0x9f),'MULTI_SELECT',a65_0x158720(0xb4),a65_0x158720(0xd8),a65_0x158720(0x9b),a65_0x158720(0xf2)]);export function isDatasetBatchDesign(_0x1dca79){const _0x6b917d=a65_0x158720;return isObject(_0x1dca79)&&_0x1dca79[_0x6b917d(0xe6)]===_0x6b917d(0xac);}export function validateDatasetBatchDesign(_0x3f3f8a){const _0x270c52=a65_0x158720;(!isObject(_0x3f3f8a)||_0x3f3f8a['kind']!=='dataset-batch')&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x3f3f8a['schemaVersion']!==0x1&&fail(_0x270c52(0xed));const _0x174429=objectArray(_0x3f3f8a[_0x270c52(0xeb)],'datasets',0x1,0x14),_0x2a53c0=objectArray(_0x3f3f8a[_0x270c52(0xb2)],_0x270c52(0xb2),0x0,0xc8),_0x33fd35=objectArray(_0x3f3f8a[_0x270c52(0xe2)],_0x270c52(0xe2),0x0,0xc8),_0x1033e2=new Set(),_0x4e840f=new Map();for(const [_0x3dc9f7,_0x55fbb9]of _0x174429[_0x270c52(0xf4)]()){const _0x41923e=requiredString(_0x55fbb9[_0x270c52(0xcd)],_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0xfd));!LOCAL_KEY[_0x270c52(0x106)](_0x41923e)&&fail('datasets['+_0x3dc9f7+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x270c52(0xab)]+'.');_0x1033e2[_0x270c52(0xda)](_0x41923e)&&fail(_0x270c52(0xe3));_0x1033e2[_0x270c52(0xc9)](_0x41923e);!isObject(_0x55fbb9[_0x270c52(0xfc)])&&fail(_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0xe7));rejectServerDatasetIdentity(_0x55fbb9[_0x270c52(0xfc)],_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0xee));if(!isObject(_0x55fbb9['design']['dataset']))fail(_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0x107));rejectServerDatasetIdentity(_0x55fbb9[_0x270c52(0xfc)][_0x270c52(0xea)],'datasets['+_0x3dc9f7+_0x270c52(0xe0)),requiredString(_0x55fbb9[_0x270c52(0xfc)][_0x270c52(0xea)]['datasetName'],_0x270c52(0xb3)+_0x3dc9f7+'].design.dataset.datasetName');_0x270c52(0xb2)in _0x55fbb9[_0x270c52(0xfc)]&&(!Array[_0x270c52(0xbe)](_0x55fbb9[_0x270c52(0xfc)]['relations'])||_0x55fbb9[_0x270c52(0xfc)][_0x270c52(0xb2)][_0x270c52(0xb1)]!==0x0)&&fail(_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0xe9));const _0x3ce8ca=objectArray(_0x55fbb9[_0x270c52(0xfc)][_0x270c52(0xbf)],'datasets['+_0x3dc9f7+_0x270c52(0xa0),0x1,0xc8),_0x3a070b=new Map();for(const [_0x2861f5,_0x28daf4]of _0x3ce8ca[_0x270c52(0xf4)]()){const _0xf87a33=fieldName(_0x28daf4);if(!_0xf87a33)fail(_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0xa2)+_0x2861f5+_0x270c52(0xca));const _0x3ab914=_0xf87a33[_0x270c52(0xcf)]();if(_0x3a070b[_0x270c52(0xda)](_0x3ab914))fail(_0x270c52(0xd9)+_0x41923e+_0x270c52(0x9a));const _0x420242=stringValue(_0x28daf4[_0x270c52(0xb5)]??_0x28daf4[_0x270c52(0xaa)])[_0x270c52(0xd2)]();if(!SUPPORTED_FIELD_TYPES[_0x270c52(0xda)](_0x420242))fail(_0x270c52(0xb3)+_0x3dc9f7+_0x270c52(0xa2)+_0x2861f5+_0x270c52(0xbd));_0x3a070b[_0x270c52(0xa7)](_0x3ab914,_0x420242),[_0x28daf4[_0x270c52(0xc3)],_0x28daf4[_0x270c52(0xa1)],_0x28daf4[_0x270c52(0xf3)]][_0x270c52(0xb6)](_0xf5ca84=>stringValue(_0xf5ca84))&&fail('datasets['+_0x3dc9f7+'].design.fields['+_0x2861f5+_0x270c52(0xae));}_0x4e840f['set'](_0x41923e,_0x3a070b);}const _0x1c9a91=new Set(),_0x20e42e=new Set();for(const [_0x751e26,_0xfd342e]of _0x2a53c0[_0x270c52(0xf4)]()){const _0x2ed609=validateRelation(_0xfd342e,_0x751e26,_0x1033e2,_0x4e840f);if(_0x1c9a91['has'](_0x2ed609))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0x1c9a91[_0x270c52(0xc9)](_0x2ed609);const _0x234dbd=_0x2ed609[_0x270c52(0x101)]('\x00',0x2)[_0x270c52(0xcc)]('\x00');if(_0x20e42e[_0x270c52(0xda)](_0x234dbd))fail(_0x270c52(0xff));_0x20e42e['add'](_0x234dbd);}for(const [_0x559de5,_0x4dfc86]of _0x33fd35[_0x270c52(0xf4)]()){requiredString(_0x4dfc86['reason'],_0x270c52(0xb8)+_0x559de5+_0x270c52(0xc6)),validateConfidence(_0x4dfc86['confidence'],'unresolvedRelations['+_0x559de5+_0x270c52(0xd4));}return _0x3f3f8a;}export function reconcileBatchResult(_0x5e11c9){const _0x10bcaf=a65_0x158720;if(!isObject(_0x5e11c9))return null;try{const _0xc42609=stringArray(_0x5e11c9['expectedLocalKeys'],_0x10bcaf(0xbb),0x1,0x14),_0x2b6c93=new Set(_0xc42609);if(_0x2b6c93[_0x10bcaf(0xc2)]!==_0xc42609['length']||_0xc42609[_0x10bcaf(0xb6)](_0x47cdb8=>!LOCAL_KEY[_0x10bcaf(0x106)](_0x47cdb8)))return null;const _0x4a6590=objectArray(_0x5e11c9[_0x10bcaf(0xce)],_0x10bcaf(0xce),0x1,0x14),_0x377c44=new Map(),_0x5ce1de=new Set();for(const _0x242907 of _0x4a6590){const _0x3f467c=requiredString(_0x242907[_0x10bcaf(0xcd)],_0x10bcaf(0xf9)),_0x426ec0=requiredString(_0x242907['code']??_0x242907['datasetCode'],_0x10bcaf(0xf0));if(_0x377c44[_0x10bcaf(0xda)](_0x3f467c)||_0x5ce1de[_0x10bcaf(0xda)](_0x426ec0))return null;_0x377c44[_0x10bcaf(0xa7)](_0x3f467c,_0x426ec0),_0x5ce1de['add'](_0x426ec0);}if(!sameSet(_0x2b6c93,new Set(_0x377c44[_0x10bcaf(0x104)]())))return null;const _0x1d6d81=objectArray(_0x5e11c9[_0x10bcaf(0xd3)],'expectedRelations',0x0,0xc8),_0x29ad11=objectArray(_0x5e11c9['createdRelations'],_0x10bcaf(0xa9),0x0,0xc8),_0x56f3ad=relationTupleSet(_0x1d6d81,![],_0x377c44),_0x12dbdd=relationTupleSet(_0x29ad11,!![],_0x377c44);if(!_0x56f3ad||!_0x12dbdd||!sameSet(_0x56f3ad,_0x12dbdd))return null;const _0x1d12e2=objectArray(_0x5e11c9[_0x10bcaf(0xe2)],_0x10bcaf(0xe2),0x0,0xc8);return{'expectedLocalKeys':_0xc42609,'expectedRelations':_0x1d6d81,'createdDatasets':_0x4a6590,'createdRelations':_0x29ad11,'unresolvedRelations':_0x1d12e2,...isObject(_0x5e11c9[_0x10bcaf(0xb0)])?{'metrics':_0x5e11c9[_0x10bcaf(0xb0)]}:{}};}catch{return null;}}function validateRelation(_0x1a7208,_0x25bdae,_0x115845,_0x591698){const _0x19bb28=a65_0x158720,_0x3b871c='relations['+_0x25bdae+']',_0x3ba2bb=requiredString(_0x1a7208[_0x19bb28(0xd5)],_0x3b871c+'.fromDatasetKey'),_0x118b3a=requiredString(_0x1a7208[_0x19bb28(0xa8)],_0x3b871c+_0x19bb28(0xa4)),_0x48e7c2=requiredString(_0x1a7208[_0x19bb28(0xc0)],_0x3b871c+_0x19bb28(0xd7))[_0x19bb28(0xcf)](),_0x57e220=requiredString(_0x1a7208[_0x19bb28(0xe8)],_0x3b871c+'.toField')['toLowerCase']();if(!_0x115845[_0x19bb28(0xda)](_0x3ba2bb)||!_0x115845[_0x19bb28(0xda)](_0x118b3a))fail(_0x3b871c+_0x19bb28(0xa5));const _0x483f9a=_0x591698['get'](_0x3ba2bb)?.[_0x19bb28(0xf5)](_0x48e7c2),_0x4baab7=_0x591698['get'](_0x118b3a)?.[_0x19bb28(0xf5)](_0x57e220);if(_0x483f9a===undefined||_0x4baab7===undefined)fail(_0x3b871c+_0x19bb28(0xdf));if(_0x483f9a&&_0x4baab7&&_0x483f9a!==_0x4baab7)fail(_0x3b871c+'\x20connects\x20incompatible\x20field\x20types.');const _0x25f854=stringValue(_0x1a7208[_0x19bb28(0xdc)])||'lookup';if(_0x25f854!==_0x19bb28(0x9d))fail(_0x3b871c+_0x19bb28(0x102));const _0x1d07ec=stringValue(_0x1a7208[_0x19bb28(0xec)])||_0x19bb28(0xad);if(!SUPPORTED_CARDINALITIES[_0x19bb28(0xda)](_0x1d07ec))fail(_0x3b871c+_0x19bb28(0xcb));return requiredString(_0x1a7208[_0x19bb28(0xb7)],_0x3b871c+_0x19bb28(0xc7)),validateConfidence(_0x1a7208[_0x19bb28(0xe5)],_0x3b871c+'.confidence'),tuple(_0x3ba2bb,_0x48e7c2,_0x118b3a,_0x57e220,_0x19bb28(0x9d),_0x1d07ec);}function relationTupleSet(_0x3fcbd1,_0x181356,_0x3c4f41){const _0x564045=a65_0x158720,_0x1bffa3=new Set();for(const _0x5c8ca2 of _0x3fcbd1){const _0x30fcd7=stringValue(_0x5c8ca2[_0x564045(0xd5)]),_0x55c89d=stringValue(_0x5c8ca2[_0x564045(0xa8)]),_0xb13a4f=stringValue(_0x5c8ca2[_0x564045(0xc0)])['toLowerCase'](),_0x1f9dcf=stringValue(_0x5c8ca2['toField'])['toLowerCase'](),_0x1e6867=stringValue(_0x5c8ca2[_0x564045(0xdc)]),_0x46de52=stringValue(_0x5c8ca2[_0x564045(0xec)]);if(!_0x30fcd7||!_0x55c89d||!_0xb13a4f||!_0x1f9dcf||_0x1e6867!==_0x564045(0x9d)||!SUPPORTED_CARDINALITIES[_0x564045(0xda)](_0x46de52))return null;if(!_0x3c4f41[_0x564045(0xda)](_0x30fcd7)||!_0x3c4f41[_0x564045(0xda)](_0x55c89d))return null;if(_0x181356&&(stringValue(_0x5c8ca2[_0x564045(0x9c)])!==_0x3c4f41[_0x564045(0xf5)](_0x30fcd7)||stringValue(_0x5c8ca2[_0x564045(0xf6)])!==_0x3c4f41[_0x564045(0xf5)](_0x55c89d)))return null;const _0x392f82=tuple(_0x30fcd7,_0xb13a4f,_0x55c89d,_0x1f9dcf,_0x1e6867,_0x46de52);if(_0x1bffa3[_0x564045(0xda)](_0x392f82))return null;_0x1bffa3[_0x564045(0xc9)](_0x392f82);}return _0x1bffa3;}function rejectServerDatasetIdentity(_0x471639,_0xe67f2c){const _0x59c80d=a65_0x158720;for(const _0x31a11a of['id',_0x59c80d(0xfe),_0x59c80d(0xb9),'code',_0x59c80d(0xfb),'modelCode']){if(_0x471639[_0x31a11a]!==undefined&&_0x471639[_0x31a11a]!==null&&_0x471639[_0x31a11a]!=='')fail(_0xe67f2c+'.'+_0x31a11a+_0x59c80d(0xde));}}function objectArray(_0x4c54bd,_0x3168f7,_0xf44cfd,_0x4e640f){const _0x15e945=a65_0x158720;return(!Array['isArray'](_0x4c54bd)||_0x4c54bd[_0x15e945(0xb1)]<_0xf44cfd||_0x4c54bd[_0x15e945(0xb1)]>_0x4e640f||_0x4c54bd['some'](_0x2abec5=>!isObject(_0x2abec5)))&&fail(_0x3168f7+_0x15e945(0xe4)+_0xf44cfd+'..'+_0x4e640f+'\x20objects.'),_0x4c54bd;}function stringArray(_0x886901,_0x4dfc14,_0x2cff0b,_0x424e35){const _0x4c9674=a65_0x158720;return(!Array[_0x4c9674(0xbe)](_0x886901)||_0x886901['length']<_0x2cff0b||_0x886901[_0x4c9674(0xb1)]>_0x424e35||_0x886901[_0x4c9674(0xb6)](_0x452f1a=>typeof _0x452f1a!==_0x4c9674(0xe1)||!_0x452f1a[_0x4c9674(0x103)]()))&&fail(_0x4dfc14+_0x4c9674(0xe4)+_0x2cff0b+'..'+_0x424e35+_0x4c9674(0xf7)),_0x886901;}function requiredString(_0x42ae83,_0x393c1b){const _0x92dfd5=stringValue(_0x42ae83);if(!_0x92dfd5)fail(_0x393c1b+'\x20is\x20required.');return _0x92dfd5;}function stringValue(_0x44fd07){const _0x399fbd=a65_0x158720;return typeof _0x44fd07===_0x399fbd(0xe1)?_0x44fd07[_0x399fbd(0x103)]():'';}function fieldName(_0x3a0c73){const _0x47dcc2=a65_0x158720;return stringValue(_0x3a0c73[_0x47dcc2(0xaf)]??_0x3a0c73[_0x47dcc2(0xdd)]??_0x3a0c73[_0x47dcc2(0xf1)]??_0x3a0c73[_0x47dcc2(0xf8)]);}function a65_0x5d2e(_0x3fca7b,_0x1faffa){_0x3fca7b=_0x3fca7b-0x9a;const _0x213862=a65_0x2138();let _0x5d2ecf=_0x213862[_0x3fca7b];return _0x5d2ecf;}function validateConfidence(_0x3d1663,_0x21b2c4){const _0x21ab9d=a65_0x158720;_0x3d1663!==undefined&&_0x3d1663!==null&&(typeof _0x3d1663!==_0x21ab9d(0x105)||!Number['isFinite'](_0x3d1663)||_0x3d1663<0x0||_0x3d1663>0x1)&&fail(_0x21b2c4+'\x20must\x20be\x20between\x200\x20and\x201.');}function tuple(..._0x3d5e2e){const _0x527ce6=a65_0x158720;return _0x3d5e2e[_0x527ce6(0xbc)]((_0x298df7,_0x189916)=>_0x189916===0x1||_0x189916===0x3?_0x298df7[_0x527ce6(0xcf)]():_0x298df7)['join']('\x00');}function a65_0x2138(){const _0x2727d8=['number','test','].design.dataset\x20must\x20be\x20an\x20object.','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','ADDRESS','fromDatasetCode','lookup','3MEaMkU','SELECT','].design.fields','refTableField','].design.fields[','validation','.toDatasetKey','\x20references\x20an\x20unknown\x20dataset\x20localKey.','every','set','toDatasetKey','createdRelations','fieldType','source','dataset-batch','MANY_TO_ONE',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','code','metrics','length','relations','datasets[','DATE_RANGE','type','some','reason','unresolvedRelations[','modelId','5615nvFEnh','expectedLocalKeys','map','].type\x20is\x20not\x20supported.','isArray','fields','fromField','798JcOVbz','size','refTable','112086ORXfFk','1205727xCFaEO','].reason','.reason','170woPGKL','add',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','.cardinality\x20is\x20not\x20supported.','join','localKey','createdDatasets','toLowerCase','DATETIME','25777004aviGFu','toUpperCase','expectedRelations','].confidence','fromDatasetKey','6421104xrCeTW','.fromField','USER','Dataset\x20','has','7304472FjMdyI','relationType','fieldCode','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','\x20references\x20an\x20unknown\x20field.','].design.dataset','string','unresolvedRelations','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','\x20must\x20contain\x20','confidence','kind','].design\x20must\x20be\x20an\x20object.','toField','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','dataset','datasets','cardinality','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','].design','16PVPmlm','createdDatasets[].code','name','UPLOAD','refTableLabelField','entries','get','toDatasetCode','\x20non-empty\x20strings.','fieldName','createdDatasets[].localKey','NUMBER','datasetCode','design','].localKey','datasetId','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','220712UMbcjN','split','.relationType\x20must\x20be\x20\x22lookup\x22.','trim','keys'];a65_0x2138=function(){return _0x2727d8;};return a65_0x2138();}function sameSet(_0x30ad3c,_0xca23f1){const _0x495357=a65_0x158720;return _0x30ad3c[_0x495357(0xc2)]===_0xca23f1[_0x495357(0xc2)]&&[..._0x30ad3c][_0x495357(0xa6)](_0x391a48=>_0xca23f1[_0x495357(0xda)](_0x391a48));}function isObject(_0x12c0e7){const _0x458e5=a65_0x158720;return typeof _0x12c0e7==='object'&&_0x12c0e7!==null&&!Array[_0x458e5(0xbe)](_0x12c0e7);}function fail(_0x404de4){const _0x44927e=a65_0x158720;throw CliErrors[_0x44927e(0xa3)](_0x404de4);}
|
|
1
|
+
const a65_0x4f1afe=a65_0x4f9c;(function(_0x550778,_0x485a89){const _0x29f6fe=a65_0x4f9c,_0x1deeb0=_0x550778();while(!![]){try{const _0x5133b5=parseInt(_0x29f6fe(0x100))/0x1*(-parseInt(_0x29f6fe(0x116))/0x2)+-parseInt(_0x29f6fe(0xdc))/0x3+parseInt(_0x29f6fe(0xd8))/0x4+parseInt(_0x29f6fe(0xdb))/0x5+parseInt(_0x29f6fe(0xf0))/0x6+-parseInt(_0x29f6fe(0xf6))/0x7+parseInt(_0x29f6fe(0xfd))/0x8;if(_0x5133b5===_0x485a89)break;else _0x1deeb0['push'](_0x1deeb0['shift']());}catch(_0x3c5ed1){_0x1deeb0['push'](_0x1deeb0['shift']());}}}(a65_0x45ea,0xf2d5a));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set(['MANY_TO_ONE',a65_0x4f1afe(0xf1)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x4f1afe(0xfa),a65_0x4f1afe(0x133),a65_0x4f1afe(0x112),a65_0x4f1afe(0xe5),a65_0x4f1afe(0x12f),a65_0x4f1afe(0x10d),a65_0x4f1afe(0x124),a65_0x4f1afe(0x143),'ADDRESS',a65_0x4f1afe(0x137)]);export function isDatasetBatchDesign(_0x50f05b){const _0x49dc28=a65_0x4f1afe;return isObject(_0x50f05b)&&_0x50f05b[_0x49dc28(0x119)]==='dataset-batch';}export function validateDatasetBatchDesign(_0x3083e2){const _0x5ee6f9=a65_0x4f1afe;(!isObject(_0x3083e2)||_0x3083e2[_0x5ee6f9(0x119)]!==_0x5ee6f9(0xe9))&&fail(_0x5ee6f9(0x125));_0x3083e2[_0x5ee6f9(0x11f)]!==0x1&&fail('Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.');const _0x2838ef=objectArray(_0x3083e2[_0x5ee6f9(0xef)],_0x5ee6f9(0xef),0x1,0x14),_0x2a9e66=objectArray(_0x3083e2[_0x5ee6f9(0x139)],_0x5ee6f9(0x139),0x0,0xc8),_0x2976b4=objectArray(_0x3083e2[_0x5ee6f9(0xf8)],'unresolvedRelations',0x0,0xc8),_0x4abc43=new Set(),_0x4ba735=new Map();for(const [_0x26db7f,_0x4dff0c]of _0x2838ef[_0x5ee6f9(0x126)]()){const _0xef2377=requiredString(_0x4dff0c[_0x5ee6f9(0x130)],_0x5ee6f9(0x105)+_0x26db7f+'].localKey');!LOCAL_KEY[_0x5ee6f9(0x13d)](_0xef2377)&&fail('datasets['+_0x26db7f+_0x5ee6f9(0x109)+LOCAL_KEY['source']+'.');_0x4abc43['has'](_0xef2377)&&fail(_0x5ee6f9(0xe8));_0x4abc43[_0x5ee6f9(0xeb)](_0xef2377);!isObject(_0x4dff0c[_0x5ee6f9(0xf4)])&&fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0xdf));rejectServerDatasetIdentity(_0x4dff0c[_0x5ee6f9(0xf4)],_0x5ee6f9(0x105)+_0x26db7f+'].design');if(!isObject(_0x4dff0c['design'][_0x5ee6f9(0x110)]))fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0xd9));rejectServerDatasetIdentity(_0x4dff0c[_0x5ee6f9(0xf4)][_0x5ee6f9(0x110)],_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x10e)),requiredString(_0x4dff0c[_0x5ee6f9(0xf4)]['dataset'][_0x5ee6f9(0xf3)],_0x5ee6f9(0x105)+_0x26db7f+'].design.dataset.datasetName');_0x5ee6f9(0x139)in _0x4dff0c['design']&&(!Array[_0x5ee6f9(0x122)](_0x4dff0c['design'][_0x5ee6f9(0x139)])||_0x4dff0c['design']['relations']['length']!==0x0)&&fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x11d));const _0x12eb21=objectArray(_0x4dff0c[_0x5ee6f9(0xf4)][_0x5ee6f9(0x120)],_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x141),0x1,0xc8),_0x4d9230=new Map();for(const [_0x37a3fd,_0x4ba34c]of _0x12eb21[_0x5ee6f9(0x126)]()){const _0x4ad068=fieldName(_0x4ba34c);if(!_0x4ad068)fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x13b)+_0x37a3fd+_0x5ee6f9(0xe1));const _0x21f33c=_0x4ad068['toLowerCase']();if(_0x4d9230[_0x5ee6f9(0x10f)](_0x21f33c))fail(_0x5ee6f9(0x138)+_0xef2377+_0x5ee6f9(0x131));const _0x12a847=stringValue(_0x4ba34c[_0x5ee6f9(0x13a)]??_0x4ba34c[_0x5ee6f9(0xfb)])[_0x5ee6f9(0x104)]();if(!SUPPORTED_FIELD_TYPES[_0x5ee6f9(0x10f)](_0x12a847))fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x13b)+_0x37a3fd+_0x5ee6f9(0x12b));_0x4d9230[_0x5ee6f9(0x113)](_0x21f33c,_0x12a847),[_0x4ba34c[_0x5ee6f9(0xfc)],_0x4ba34c[_0x5ee6f9(0x12c)],_0x4ba34c['refTableLabelField']][_0x5ee6f9(0x11c)](_0x31124a=>stringValue(_0x31124a))&&fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x13b)+_0x37a3fd+']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.');}_0x4ba735[_0x5ee6f9(0x113)](_0xef2377,_0x4d9230);}const _0x9dbfbe=new Set(),_0x259b24=new Set();for(const [_0x375dfa,_0x36c2a6]of _0x2a9e66[_0x5ee6f9(0x126)]()){const _0x36d3e0=validateRelation(_0x36c2a6,_0x375dfa,_0x4abc43,_0x4ba735);if(_0x9dbfbe['has'](_0x36d3e0))fail(_0x5ee6f9(0x121));_0x9dbfbe['add'](_0x36d3e0);const _0x1f801b=_0x36d3e0[_0x5ee6f9(0x12d)]('\x00',0x2)[_0x5ee6f9(0xed)]('\x00');if(_0x259b24[_0x5ee6f9(0x10f)](_0x1f801b))fail(_0x5ee6f9(0xf2));_0x259b24['add'](_0x1f801b);}for(const [_0x5a3ab9,_0x513bff]of _0x2976b4[_0x5ee6f9(0x126)]()){requiredString(_0x513bff[_0x5ee6f9(0x144)],_0x5ee6f9(0xff)+_0x5a3ab9+'].reason'),validateConfidence(_0x513bff[_0x5ee6f9(0xe6)],_0x5ee6f9(0xff)+_0x5a3ab9+'].confidence');}return _0x3083e2;}export function reconcileBatchResult(_0x47d2ed){const _0xcc91eb=a65_0x4f1afe;if(!isObject(_0x47d2ed))return null;try{const _0x542114=stringArray(_0x47d2ed['expectedLocalKeys'],_0xcc91eb(0x114),0x1,0x14),_0xde096c=new Set(_0x542114);if(_0xde096c[_0xcc91eb(0xfe)]!==_0x542114[_0xcc91eb(0x10b)]||_0x542114[_0xcc91eb(0x11c)](_0x50af02=>!LOCAL_KEY[_0xcc91eb(0x13d)](_0x50af02)))return null;const _0x18f20d=objectArray(_0x47d2ed['createdDatasets'],_0xcc91eb(0xdd),0x1,0x14),_0x55bc02=new Map(),_0x383a6c=new Set();for(const _0x9b1852 of _0x18f20d){const _0x4caf53=requiredString(_0x9b1852[_0xcc91eb(0x130)],_0xcc91eb(0x12a)),_0x55ced7=requiredString(_0x9b1852[_0xcc91eb(0xe3)]??_0x9b1852[_0xcc91eb(0x140)],_0xcc91eb(0xd7));if(_0x55bc02[_0xcc91eb(0x10f)](_0x4caf53)||_0x383a6c['has'](_0x55ced7))return null;_0x55bc02['set'](_0x4caf53,_0x55ced7),_0x383a6c[_0xcc91eb(0xeb)](_0x55ced7);}if(!sameSet(_0xde096c,new Set(_0x55bc02['keys']())))return null;const _0x2dafe4=objectArray(_0x47d2ed[_0xcc91eb(0x10c)],'expectedRelations',0x0,0xc8),_0x41c887=objectArray(_0x47d2ed[_0xcc91eb(0x13c)],_0xcc91eb(0x13c),0x0,0xc8),_0x19813e=relationTupleSet(_0x2dafe4,![],_0x55bc02),_0x26eff0=relationTupleSet(_0x41c887,!![],_0x55bc02);if(!_0x19813e||!_0x26eff0||!sameSet(_0x19813e,_0x26eff0))return null;const _0x43531b=objectArray(_0x47d2ed['unresolvedRelations'],_0xcc91eb(0xf8),0x0,0xc8);return{'expectedLocalKeys':_0x542114,'expectedRelations':_0x2dafe4,'createdDatasets':_0x18f20d,'createdRelations':_0x41c887,'unresolvedRelations':_0x43531b,...isObject(_0x47d2ed[_0xcc91eb(0xe7)])?{'metrics':_0x47d2ed[_0xcc91eb(0xe7)]}:{}};}catch{return null;}}function validateRelation(_0x5d5c8a,_0x1565d8,_0x127ab0,_0x3bd608){const _0x52bbf2=a65_0x4f1afe,_0x355725=_0x52bbf2(0x117)+_0x1565d8+']',_0x34cb7b=requiredString(_0x5d5c8a[_0x52bbf2(0xe0)],_0x355725+_0x52bbf2(0x103)),_0x33d144=requiredString(_0x5d5c8a[_0x52bbf2(0xf9)],_0x355725+_0x52bbf2(0x142)),_0x552721=requiredString(_0x5d5c8a[_0x52bbf2(0x132)],_0x355725+_0x52bbf2(0x136))['toLowerCase'](),_0x536d92=requiredString(_0x5d5c8a['toField'],_0x355725+'.toField')[_0x52bbf2(0xda)]();if(!_0x127ab0[_0x52bbf2(0x10f)](_0x34cb7b)||!_0x127ab0[_0x52bbf2(0x10f)](_0x33d144))fail(_0x355725+_0x52bbf2(0x129));const _0x617ce8=_0x3bd608['get'](_0x34cb7b)?.[_0x52bbf2(0xde)](_0x552721),_0x5b9567=_0x3bd608[_0x52bbf2(0xde)](_0x33d144)?.[_0x52bbf2(0xde)](_0x536d92);if(_0x617ce8===undefined||_0x5b9567===undefined)fail(_0x355725+'\x20references\x20an\x20unknown\x20field.');if(_0x617ce8&&_0x5b9567&&_0x617ce8!==_0x5b9567)fail(_0x355725+_0x52bbf2(0x107));const _0x26f2be=stringValue(_0x5d5c8a[_0x52bbf2(0xea)])||_0x52bbf2(0x12e);if(_0x26f2be!=='lookup')fail(_0x355725+_0x52bbf2(0xee));const _0x362c31=stringValue(_0x5d5c8a[_0x52bbf2(0x106)])||_0x52bbf2(0x111);if(!SUPPORTED_CARDINALITIES[_0x52bbf2(0x10f)](_0x362c31))fail(_0x355725+_0x52bbf2(0x127));return requiredString(_0x5d5c8a[_0x52bbf2(0x144)],_0x355725+_0x52bbf2(0x123)),validateConfidence(_0x5d5c8a[_0x52bbf2(0xe6)],_0x355725+_0x52bbf2(0xe4)),tuple(_0x34cb7b,_0x552721,_0x33d144,_0x536d92,_0x52bbf2(0x12e),_0x362c31);}function relationTupleSet(_0x21e1c6,_0x57348e,_0x56a7c4){const _0x5b3397=a65_0x4f1afe,_0x39cdec=new Set();for(const _0x591ced of _0x21e1c6){const _0x30195a=stringValue(_0x591ced[_0x5b3397(0xe0)]),_0x33f3a6=stringValue(_0x591ced[_0x5b3397(0xf9)]),_0x530ce8=stringValue(_0x591ced[_0x5b3397(0x132)])[_0x5b3397(0xda)](),_0x3f57bd=stringValue(_0x591ced['toField'])[_0x5b3397(0xda)](),_0x446b3e=stringValue(_0x591ced[_0x5b3397(0xea)]),_0x18483b=stringValue(_0x591ced['cardinality']);if(!_0x30195a||!_0x33f3a6||!_0x530ce8||!_0x3f57bd||_0x446b3e!=='lookup'||!SUPPORTED_CARDINALITIES['has'](_0x18483b))return null;if(!_0x56a7c4[_0x5b3397(0x10f)](_0x30195a)||!_0x56a7c4['has'](_0x33f3a6))return null;if(_0x57348e&&(stringValue(_0x591ced[_0x5b3397(0xec)])!==_0x56a7c4[_0x5b3397(0xde)](_0x30195a)||stringValue(_0x591ced[_0x5b3397(0x118)])!==_0x56a7c4[_0x5b3397(0xde)](_0x33f3a6)))return null;const _0x4b592b=tuple(_0x30195a,_0x530ce8,_0x33f3a6,_0x3f57bd,_0x446b3e,_0x18483b);if(_0x39cdec[_0x5b3397(0x10f)](_0x4b592b))return null;_0x39cdec[_0x5b3397(0xeb)](_0x4b592b);}return _0x39cdec;}function rejectServerDatasetIdentity(_0x393d0e,_0x180db2){const _0x12b554=a65_0x4f1afe;for(const _0x115a75 of['id',_0x12b554(0x102),_0x12b554(0x108),_0x12b554(0xe3),_0x12b554(0x140),'modelCode']){if(_0x393d0e[_0x115a75]!==undefined&&_0x393d0e[_0x115a75]!==null&&_0x393d0e[_0x115a75]!=='')fail(_0x180db2+'.'+_0x115a75+_0x12b554(0x13f));}}function objectArray(_0xaa21ce,_0x3010f4,_0x27df86,_0x4546ca){const _0x466065=a65_0x4f1afe;return(!Array[_0x466065(0x122)](_0xaa21ce)||_0xaa21ce[_0x466065(0x10b)]<_0x27df86||_0xaa21ce['length']>_0x4546ca||_0xaa21ce['some'](_0x379f61=>!isObject(_0x379f61)))&&fail(_0x3010f4+_0x466065(0x134)+_0x27df86+'..'+_0x4546ca+_0x466065(0xe2)),_0xaa21ce;}function stringArray(_0x2d67f5,_0x4cbfa2,_0x46904b,_0x225480){const _0x376e17=a65_0x4f1afe;return(!Array['isArray'](_0x2d67f5)||_0x2d67f5[_0x376e17(0x10b)]<_0x46904b||_0x2d67f5[_0x376e17(0x10b)]>_0x225480||_0x2d67f5[_0x376e17(0x11c)](_0x35fb07=>typeof _0x35fb07!==_0x376e17(0x101)||!_0x35fb07[_0x376e17(0x128)]()))&&fail(_0x4cbfa2+_0x376e17(0x134)+_0x46904b+'..'+_0x225480+_0x376e17(0x11e)),_0x2d67f5;}function requiredString(_0x9ed561,_0x2525e){const _0x425baa=a65_0x4f1afe,_0x41884c=stringValue(_0x9ed561);if(!_0x41884c)fail(_0x2525e+_0x425baa(0xf7));return _0x41884c;}function a65_0x45ea(){const _0x5b26e4=['size','unresolvedRelations[','100301XseEoL','string','datasetId','.fromDatasetKey','toUpperCase','datasets[','cardinality','\x20connects\x20incompatible\x20field\x20types.','modelId','].localKey\x20must\x20match\x20','isFinite','length','expectedRelations','MULTI_SELECT','].design.dataset','has','dataset','MANY_TO_ONE','DATETIME','set','expectedLocalKeys','map','38YGLgBn','relations[','toDatasetCode','kind','\x20must\x20be\x20between\x200\x20and\x201.','name','some','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','\x20non-empty\x20strings.','schemaVersion','fields','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','isArray','.reason','DATE_RANGE','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','entries','.cardinality\x20is\x20not\x20supported.','trim','\x20references\x20an\x20unknown\x20dataset\x20localKey.','createdDatasets[].localKey','].type\x20is\x20not\x20supported.','refTableField','split','lookup','SELECT','localKey','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','fromField','NUMBER','\x20must\x20contain\x20','every','.fromField','UPLOAD','Dataset\x20','relations','type','].design.fields[','createdRelations','test','fieldName','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','datasetCode','].design.fields','.toDatasetKey','USER','reason','createdDatasets[].code','82108bXrMOg','].design.dataset\x20must\x20be\x20an\x20object.','toLowerCase','7885460rKhLLl','1245495orkPxO','createdDatasets','get','].design\x20must\x20be\x20an\x20object.','fromDatasetKey',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20objects.','code','.confidence','BOOLEAN','confidence','metrics','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','dataset-batch','relationType','add','fromDatasetCode','join','.relationType\x20must\x20be\x20\x22lookup\x22.','datasets','5957100pLIUpI','ONE_TO_ONE','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','datasetName','design','validation','9704226hdpeIr','\x20is\x20required.','unresolvedRelations','toDatasetKey','TEXT','fieldType','refTable','16891064tjvEga'];a65_0x45ea=function(){return _0x5b26e4;};return a65_0x45ea();}function stringValue(_0x23768b){const _0x1e3b0d=a65_0x4f1afe;return typeof _0x23768b===_0x1e3b0d(0x101)?_0x23768b[_0x1e3b0d(0x128)]():'';}function fieldName(_0x544e09){const _0x5684ca=a65_0x4f1afe;return stringValue(_0x544e09[_0x5684ca(0xe3)]??_0x544e09['fieldCode']??_0x544e09[_0x5684ca(0x11b)]??_0x544e09[_0x5684ca(0x13e)]);}function validateConfidence(_0x3ea8ae,_0x35776f){const _0x1891ee=a65_0x4f1afe;_0x3ea8ae!==undefined&&_0x3ea8ae!==null&&(typeof _0x3ea8ae!=='number'||!Number[_0x1891ee(0x10a)](_0x3ea8ae)||_0x3ea8ae<0x0||_0x3ea8ae>0x1)&&fail(_0x35776f+_0x1891ee(0x11a));}function a65_0x4f9c(_0x192b1d,_0xb8f743){_0x192b1d=_0x192b1d-0xd7;const _0x45ea44=a65_0x45ea();let _0x4f9ce7=_0x45ea44[_0x192b1d];return _0x4f9ce7;}function tuple(..._0x45ecee){const _0x9216c9=a65_0x4f1afe;return _0x45ecee[_0x9216c9(0x115)]((_0xebfa8d,_0x54ece8)=>_0x54ece8===0x1||_0x54ece8===0x3?_0xebfa8d[_0x9216c9(0xda)]():_0xebfa8d)['join']('\x00');}function sameSet(_0x373b8c,_0xffd236){const _0x581156=a65_0x4f1afe;return _0x373b8c[_0x581156(0xfe)]===_0xffd236['size']&&[..._0x373b8c][_0x581156(0x135)](_0x10ddfc=>_0xffd236[_0x581156(0x10f)](_0x10ddfc));}function isObject(_0x56968b){const _0x146d43=a65_0x4f1afe;return typeof _0x56968b==='object'&&_0x56968b!==null&&!Array[_0x146d43(0x122)](_0x56968b);}function fail(_0x4865ba){const _0x8a8787=a65_0x4f1afe;throw CliErrors[_0x8a8787(0xf5)](_0x4865ba);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0x47e13d=a66_0x2311;(function(_0x412ac6,_0x26e2dd){const _0x1ca9ca=a66_0x2311,_0x161db1=_0x412ac6();while(!![]){try{const _0x472fdb=parseInt(_0x1ca9ca(0x134))/0x1*(parseInt(_0x1ca9ca(0x146))/0x2)+-parseInt(_0x1ca9ca(0x157))/0x3*(parseInt(_0x1ca9ca(0x159))/0x4)+-parseInt(_0x1ca9ca(0x11c))/0x5*(parseInt(_0x1ca9ca(0x12d))/0x6)+-parseInt(_0x1ca9ca(0x126))/0x7*(-parseInt(_0x1ca9ca(0x14e))/0x8)+parseInt(_0x1ca9ca(0x141))/0x9*(parseInt(_0x1ca9ca(0x139))/0xa)+parseInt(_0x1ca9ca(0x120))/0xb*(parseInt(_0x1ca9ca(0x121))/0xc)+-parseInt(_0x1ca9ca(0x145))/0xd*(parseInt(_0x1ca9ca(0x147))/0xe);if(_0x472fdb===_0x26e2dd)break;else _0x161db1['push'](_0x161db1['shift']());}catch(_0x2fcb9f){_0x161db1['push'](_0x161db1['shift']());}}}(a66_0x3381,0xeafa2));function a66_0x2311(_0x7b3c38,_0xd2da4e){_0x7b3c38=_0x7b3c38-0x110;const _0x3381bf=a66_0x3381();let _0x231174=_0x3381bf[_0x7b3c38];return _0x231174;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH=a66_0x47e13d(0x14c),METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP=a66_0x47e13d(0x116);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x3f7a91,input:_0x14b322,dryRun:_0x3a73bf}){const _0x19be8f=a66_0x47e13d;validateInput(_0x14b322);const _0x36e3b3=normalizeBusinessGroupArgument(_0x14b322['businessGroup']),_0x58dda0=await getDatasetDetail(_0x14b322[_0x19be8f(0x11d)]),_0x262500=resolveBusinessGroupDataset(_0x58dda0,_0x14b322[_0x19be8f(0x11d)]);assertBusinessGroupUpdateSupported(_0x262500,_0x36e3b3);const _0x5b7237=loadCurrentBusinessGroup(_0x58dda0,_0x262500);assertExpectedBusinessGroup(_0x5b7237,_0x14b322[_0x19be8f(0x15d)]);const _0x59f54f=buildBackendPlan(_0x3f7a91,_0x262500,_0x36e3b3),_0x16045e=_0x5b7237!==_0x36e3b3;let _0x1a0265;if(_0x16045e&&!_0x3a73bf){_0x59f54f['kind']===_0x19be8f(0x12c)?await updateDbTableBusinessGroup(_0x59f54f[_0x19be8f(0x137)]):await updateErBusinessGroup(_0x59f54f[_0x19be8f(0x137)]);const _0x4ef271=await getDatasetDetail(_0x262500['code']),_0x44763a=resolveBusinessGroupDataset(_0x4ef271,_0x262500[_0x19be8f(0x11d)]),_0x52786d=loadCurrentBusinessGroup(_0x4ef271,_0x44763a);if(_0x52786d!==_0x36e3b3)throw CliErrors[_0x19be8f(0x136)](_0x19be8f(0x152),'Expected\x20'+JSON['stringify'](displayBusinessGroup(_0x36e3b3))+_0x19be8f(0x138)+JSON[_0x19be8f(0x115)](displayBusinessGroup(_0x52786d))+'.');_0x1a0265={'verified':!![],'status':_0x19be8f(0x112),'afterReadback':{'businessGroup':displayBusinessGroup(_0x52786d)}};}else!_0x16045e&&(_0x1a0265={'verified':!![],'status':_0x19be8f(0x13e),'afterReadback':{'businessGroup':displayBusinessGroup(_0x5b7237)}});const _0x4cff75={'operation':_0x19be8f(0x158),'appCode':_0x3f7a91,'selector':{'code':_0x262500['code']},'dataset':{'id':_0x262500['id'],'code':_0x262500[_0x19be8f(0x11d)],'name':_0x262500[_0x19be8f(0x13d)],'sourceType':_0x262500[_0x19be8f(0x15f)]},'before':{'businessGroup':displayBusinessGroup(_0x5b7237)},'after':{'businessGroup':displayBusinessGroup(_0x36e3b3)},'changed':_0x16045e,'dryRun':_0x3a73bf,'submitted':_0x16045e&&!_0x3a73bf,'backend':{'method':_0x59f54f['method'],'path':_0x59f54f[_0x19be8f(0x117)],'payload':_0x59f54f[_0x19be8f(0x137)]},..._0x1a0265?{'verification':_0x1a0265}:{},'warnings':[]};return{'ok':!![],'data':_0x4cff75,'message':_0x16045e?_0x3a73bf?_0x19be8f(0x11a)+_0x262500['code']:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x262500[_0x19be8f(0x11d)]:_0x19be8f(0x15b)+_0x262500[_0x19be8f(0x11d)]};}export const datasetBusinessGroupUpdate={'service':a66_0x47e13d(0x110),'command':a66_0x47e13d(0x150),'description':a66_0x47e13d(0x13c),'risk':'write','flags':[CODE_FLAG,{'name':a66_0x47e13d(0x143),'type':a66_0x47e13d(0x14b),'required':!![],'description':a66_0x47e13d(0x127)},{'name':a66_0x47e13d(0x15c),'type':a66_0x47e13d(0x14b),'required':![],'description':a66_0x47e13d(0x114)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x45ba97){validateInput(readBusinessGroupUpdateInput(_0x45ba97));},async 'dryRun'(_0xb6a079){const _0xea172=a66_0x47e13d,_0x356ac1=await buildDatasetBusinessGroupUpdateResult({'appCode':_0xb6a079[_0xea172(0x12e)],'input':readBusinessGroupUpdateInput(_0xb6a079),'dryRun':!![]});return{'method':_0x356ac1['data'][_0xea172(0x140)][_0xea172(0x130)],'url':_0x356ac1[_0xea172(0x119)][_0xea172(0x140)][_0xea172(0x117)],'body':_0x356ac1[_0xea172(0x119)][_0xea172(0x140)][_0xea172(0x137)],'description':_0x356ac1['message'],..._0x356ac1[_0xea172(0x119)]};},async 'execute'(_0x531b40){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x531b40['appCode'],'input':readBusinessGroupUpdateInput(_0x531b40),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x504892){const _0x12240f=a66_0x47e13d,_0x47cdff=_0x504892['str']('expect-business-group');return{'code':trim(_0x504892[_0x12240f(0x154)](_0x12240f(0x11d))),'businessGroup':_0x504892[_0x12240f(0x154)](_0x12240f(0x143)),'expectBusinessGroup':_0x47cdff===undefined||_0x47cdff===''?undefined:_0x47cdff};}function validateInput(_0x63b31c){const _0x44f8fc=a66_0x47e13d;if(!trim(_0x63b31c[_0x44f8fc(0x11d)]))throw CliErrors['validation'](_0x44f8fc(0x123));if(_0x63b31c[_0x44f8fc(0x125)]===undefined)throw CliErrors[_0x44f8fc(0x148)](_0x44f8fc(0x142));if(!trim(_0x63b31c[_0x44f8fc(0x125)]))throw CliErrors['validation'](_0x44f8fc(0x12b));}function assertBusinessGroupUpdateSupported(_0xc86adf,_0x2e33cc){const _0x5e15af=a66_0x47e13d;if(_0xc86adf['sourceType']===_0x5e15af(0x132)&&!_0x2e33cc)throw CliErrors[_0x5e15af(0x148)](_0x5e15af(0x124));}function resolveBusinessGroupDataset(_0xd76abd,_0x499775){const _0x128e60=a66_0x47e13d,_0x5a4c84=asPlainObject(_0xd76abd[_0x128e60(0x110)]),_0x1ea1e4=asPlainObject(_0xd76abd['dbtableConfig']),_0x58dd96=resolveSourceType(_0xd76abd,_0x5a4c84,_0x1ea1e4),_0xfaddc5=firstString(_0xd76abd[_0x128e60(0x11e)],_0xd76abd['code'],_0x5a4c84[_0x128e60(0x14f)],_0x499775)||_0x499775;return{'id':firstNumber(_0xd76abd[_0x128e60(0x129)],_0xd76abd['id'],_0x5a4c84[_0x128e60(0x155)])??firstString(_0xd76abd['modelId'],_0xd76abd['id'],_0x5a4c84[_0x128e60(0x155)])??null,'code':_0xfaddc5,'name':firstString(_0xd76abd[_0x128e60(0x13d)],_0x5a4c84[_0x128e60(0x14d)],_0x5a4c84[_0x128e60(0x13d)])||null,'sourceType':_0x58dd96,'dbTableSelector':_0x58dd96==='DB_TABLE'?{'dbLinkId':firstNumber(_0x1ea1e4[_0x128e60(0x12f)]),'tableName':firstString(_0x1ea1e4[_0x128e60(0x13b)])||null}:null};}function resolveSourceType(_0x349c32,_0x348d2c,_0x51fcee){const _0x4a0ac3=a66_0x47e13d,_0xb1a647=firstString(_0x349c32['source'],_0x349c32['sourceType'],_0x348d2c['source'],_0x348d2c[_0x4a0ac3(0x15f)])?.[_0x4a0ac3(0x13f)]()['toUpperCase']();if(_0xb1a647===_0x4a0ac3(0x132)||_0xb1a647===_0x4a0ac3(0x11f))return _0xb1a647;if(Object[_0x4a0ac3(0x128)](_0x51fcee)[_0x4a0ac3(0x153)]>0x0)return _0x4a0ac3(0x132);throw CliErrors['validation']('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0xdf6903,_0x841700){const _0x39d280=a66_0x47e13d,_0x4678a5=readBusinessGroupFromDatasetDetail(_0xdf6903,_0x841700[_0x39d280(0x15f)]);if(_0x4678a5['found'])return normalizeBusinessGroup(_0x4678a5['value']);return'';}function readBusinessGroupFromDatasetDetail(_0x8f45c0,_0xe271de){const _0x4b5b7d=a66_0x47e13d,_0x15e5bb=asPlainObject(_0x8f45c0['dataset']),_0x2ee10d=firstPresent(_0x8f45c0[_0x4b5b7d(0x125)]);if(_0x2ee10d[_0x4b5b7d(0x113)])return _0x2ee10d;const _0x9766d3=firstPresent(_0x15e5bb[_0x4b5b7d(0x125)]);if(_0x9766d3['found'])return _0x9766d3;if(_0xe271de==='DB_TABLE')return{'found':![]};const _0x157f52=readBusinessGroupFromExtend(_0x8f45c0[_0x4b5b7d(0x15a)]);if(_0x157f52['found'])return _0x157f52;return readBusinessGroupFromExtend(_0x15e5bb['extend']);}function readBusinessGroupFromExtend(_0x246abb){const _0x4c16bd=a66_0x47e13d;if(_0x246abb===undefined||_0x246abb===null||_0x246abb==='')return{'found':![]};if(typeof _0x246abb===_0x4c16bd(0x14b))try{const _0x336b90=JSON[_0x4c16bd(0x135)](_0x246abb);return readBusinessGroupFromExtend(_0x336b90);}catch{return{'found':![]};}const _0x438b38=asPlainObject(_0x246abb);if(Object[_0x4c16bd(0x131)]['hasOwnProperty'][_0x4c16bd(0x156)](_0x438b38,_0x4c16bd(0x125)))return{'found':!![],'value':_0x438b38['businessGroup']};return{'found':![]};}function firstPresent(..._0x2523da){for(const _0x25f8fc of _0x2523da){if(_0x25f8fc!==undefined&&_0x25f8fc!==null)return{'found':!![],'value':_0x25f8fc};}return{'found':![]};}function assertExpectedBusinessGroup(_0x5a99b7,_0x55617b){const _0x220df1=a66_0x47e13d;if(_0x55617b===undefined)return;const _0x1b4a23=normalizeBusinessGroupArgument(_0x55617b);if(_0x5a99b7!==_0x1b4a23)throw CliErrors[_0x220df1(0x148)](_0x220df1(0x15e),_0x220df1(0x122)+JSON[_0x220df1(0x115)](_0x1b4a23)+',\x20actual\x20'+JSON['stringify'](_0x5a99b7));}function buildBackendPlan(_0xc984e8,_0x26eba5,_0x2424a8){const _0x1a46a0=a66_0x47e13d;if(_0x26eba5[_0x1a46a0(0x15f)]===_0x1a46a0(0x132)){if(!_0x26eba5['dbTableSelector']||_0x26eba5[_0x1a46a0(0x14a)][_0x1a46a0(0x111)]===null||!_0x26eba5[_0x1a46a0(0x14a)][_0x1a46a0(0x13b)])throw CliErrors[_0x1a46a0(0x148)](_0x1a46a0(0x149),_0x1a46a0(0x151));return{'kind':_0x1a46a0(0x12c),'method':_0x1a46a0(0x144),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x26eba5[_0x1a46a0(0x14a)]['dbLinkId'],'tableName':_0x26eba5[_0x1a46a0(0x14a)][_0x1a46a0(0x13b)],'businessGroup':_0x2424a8}};}return{'kind':_0x1a46a0(0x118),'method':_0x1a46a0(0x144),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0xc984e8,'datasetCode':_0x26eba5[_0x1a46a0(0x11d)],'businessGroup':_0x2424a8}};}function normalizeBusinessGroup(_0xd7a541){const _0x3eac4f=a66_0x47e13d;if(_0xd7a541===undefined||_0xd7a541===null)return'';return String(_0xd7a541)[_0x3eac4f(0x13f)]();}function a66_0x3381(){const _0x5805b5=['expectBusinessGroup','Expectation\x20mismatch\x20at\x20businessGroup','sourceType','dataset','dbLinkId','matched','found','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','stringify','ungrouped','path','metadata','data','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','object','5AGDQDD','code','modelCode','METADATA','1100cZkKMd','213660TWAuqI','Expected\x20','--code\x20is\x20required','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','businessGroup','14iEsKhe','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','keys','modelId','number','--business-group\x20must\x20not\x20be\x20blank','db-table','4967538svPOUs','appCode','dbId','method','prototype','DB_TABLE','isFinite','262BAPKan','parse','apiError','payload',',\x20actual\x20','64010wgkktc','isArray','tableName','Update\x20business\x20scenario\x20group','name','unchanged','trim','backend','1827QIqlMt','--business-group\x20is\x20required','business-group','POST','26tutDxe','7534COsGZg','5401256dpJLyd','validation','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','dbTableSelector','string','/smartapi/dblink/updateTableBusinessGroup','datasetName','654056TWLDjJ','datasetCode','business-group-update','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','length','str','datasetId','call','2502561oqQkSo','update','8wgODfL','extend','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','expect-business-group'];a66_0x3381=function(){return _0x5805b5;};return a66_0x3381();}function normalizeBusinessGroupArgument(_0x11a1e2){const _0x5ba3b2=normalizeBusinessGroup(_0x11a1e2);return _0x5ba3b2===UNGROUPED_BUSINESS_GROUP?'':_0x5ba3b2;}function displayBusinessGroup(_0x110836){return _0x110836||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x30e4f1){const _0x1f071b=a66_0x47e13d;if(!_0x30e4f1||typeof _0x30e4f1!==_0x1f071b(0x11b)||Array[_0x1f071b(0x13a)](_0x30e4f1))return{};return _0x30e4f1;}function firstString(..._0x52d2fe){const _0x3e6f4a=a66_0x47e13d;for(const _0xd2c118 of _0x52d2fe){if(typeof _0xd2c118==='string'&&_0xd2c118[_0x3e6f4a(0x13f)]())return _0xd2c118[_0x3e6f4a(0x13f)]();if(typeof _0xd2c118===_0x3e6f4a(0x12a)&&Number[_0x3e6f4a(0x133)](_0xd2c118))return String(_0xd2c118);}return undefined;}function firstNumber(..._0x24e870){const _0x2a6940=a66_0x47e13d;for(const _0xd751c9 of _0x24e870){if(typeof _0xd751c9===_0x2a6940(0x12a)&&Number['isFinite'](_0xd751c9))return _0xd751c9;if(typeof _0xd751c9===_0x2a6940(0x14b)&&_0xd751c9[_0x2a6940(0x13f)]()&&Number[_0x2a6940(0x133)](Number(_0xd751c9)))return Number(_0xd751c9);}return null;}function trim(_0x5bca10){const _0x157996=a66_0x47e13d;return String(_0x5bca10||'')[_0x157996(0x13f)]();}
|
|
1
|
+
const a66_0x50260f=a66_0x21fd;(function(_0xd315ec,_0x1479bc){const _0x420262=a66_0x21fd,_0x48d044=_0xd315ec();while(!![]){try{const _0x341d47=parseInt(_0x420262(0x20a))/0x1*(-parseInt(_0x420262(0x23c))/0x2)+-parseInt(_0x420262(0x1f3))/0x3*(parseInt(_0x420262(0x1f5))/0x4)+parseInt(_0x420262(0x229))/0x5*(-parseInt(_0x420262(0x211))/0x6)+parseInt(_0x420262(0x1f6))/0x7*(-parseInt(_0x420262(0x228))/0x8)+parseInt(_0x420262(0x222))/0x9*(parseInt(_0x420262(0x21a))/0xa)+-parseInt(_0x420262(0x23a))/0xb*(-parseInt(_0x420262(0x215))/0xc)+parseInt(_0x420262(0x1fc))/0xd;if(_0x341d47===_0x1479bc)break;else _0x48d044['push'](_0x48d044['shift']());}catch(_0x3575e4){_0x48d044['push'](_0x48d044['shift']());}}}(a66_0x3f07,0x1ab37));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH=a66_0x50260f(0x1fd),METADATA_BACKEND_PATH=a66_0x50260f(0x21e),UNGROUPED_BUSINESS_GROUP=a66_0x50260f(0x238);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x46495c,input:_0x4206a5,dryRun:_0x4339bc}){const _0x4dac90=a66_0x50260f;validateInput(_0x4206a5);const _0x1e939b=normalizeBusinessGroupArgument(_0x4206a5['businessGroup']),_0xda1229=await getDatasetDetail(_0x4206a5[_0x4dac90(0x1ee)]),_0x1ed0b0=resolveBusinessGroupDataset(_0xda1229,_0x4206a5['code']);assertBusinessGroupUpdateSupported(_0x1ed0b0,_0x1e939b);const _0x3483c5=loadCurrentBusinessGroup(_0xda1229,_0x1ed0b0);assertExpectedBusinessGroup(_0x3483c5,_0x4206a5[_0x4dac90(0x1f8)]);const _0x1473d8=buildBackendPlan(_0x46495c,_0x1ed0b0,_0x1e939b),_0x48ff4f=_0x3483c5!==_0x1e939b;let _0x3aa166;if(_0x48ff4f&&!_0x4339bc){_0x1473d8[_0x4dac90(0x21c)]===_0x4dac90(0x210)?await updateDbTableBusinessGroup(_0x1473d8[_0x4dac90(0x239)]):await updateErBusinessGroup(_0x1473d8['payload']);const _0x5f270a=await getDatasetDetail(_0x1ed0b0['code']),_0x277ea6=resolveBusinessGroupDataset(_0x5f270a,_0x1ed0b0[_0x4dac90(0x1ee)]),_0x1709ab=loadCurrentBusinessGroup(_0x5f270a,_0x277ea6);if(_0x1709ab!==_0x1e939b)throw CliErrors[_0x4dac90(0x1ef)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x4dac90(0x235)+JSON[_0x4dac90(0x22b)](displayBusinessGroup(_0x1e939b))+_0x4dac90(0x221)+JSON['stringify'](displayBusinessGroup(_0x1709ab))+'.');_0x3aa166={'verified':!![],'status':_0x4dac90(0x21b),'afterReadback':{'businessGroup':displayBusinessGroup(_0x1709ab)}};}else!_0x48ff4f&&(_0x3aa166={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x3483c5)}});const _0x219a83={'operation':'update','appCode':_0x46495c,'selector':{'code':_0x1ed0b0[_0x4dac90(0x1ee)]},'dataset':{'id':_0x1ed0b0['id'],'code':_0x1ed0b0[_0x4dac90(0x1ee)],'name':_0x1ed0b0[_0x4dac90(0x232)],'sourceType':_0x1ed0b0[_0x4dac90(0x231)]},'before':{'businessGroup':displayBusinessGroup(_0x3483c5)},'after':{'businessGroup':displayBusinessGroup(_0x1e939b)},'changed':_0x48ff4f,'dryRun':_0x4339bc,'submitted':_0x48ff4f&&!_0x4339bc,'backend':{'method':_0x1473d8[_0x4dac90(0x1ed)],'path':_0x1473d8[_0x4dac90(0x1eb)],'payload':_0x1473d8['payload']},..._0x3aa166?{'verification':_0x3aa166}:{},'warnings':[]};return{'ok':!![],'data':_0x219a83,'message':_0x48ff4f?_0x4339bc?_0x4dac90(0x23b)+_0x1ed0b0['code']:_0x4dac90(0x206)+_0x1ed0b0['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x1ed0b0['code']};}export const datasetBusinessGroupUpdate={'service':a66_0x50260f(0x226),'command':a66_0x50260f(0x216),'description':a66_0x50260f(0x200),'risk':a66_0x50260f(0x20c),'flags':[CODE_FLAG,{'name':a66_0x50260f(0x208),'type':a66_0x50260f(0x214),'required':!![],'description':a66_0x50260f(0x1f7)},{'name':'expect-business-group','type':'string','required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a2515){validateInput(readBusinessGroupUpdateInput(_0x5a2515));},async 'dryRun'(_0x24d579){const _0x3b676d=a66_0x50260f,_0x101b7f=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x24d579[_0x3b676d(0x22a)],'input':readBusinessGroupUpdateInput(_0x24d579),'dryRun':!![]});return{'method':_0x101b7f[_0x3b676d(0x20e)][_0x3b676d(0x236)][_0x3b676d(0x1ed)],'url':_0x101b7f[_0x3b676d(0x20e)][_0x3b676d(0x236)][_0x3b676d(0x1eb)],'body':_0x101b7f[_0x3b676d(0x20e)][_0x3b676d(0x236)][_0x3b676d(0x239)],'description':_0x101b7f[_0x3b676d(0x237)],..._0x101b7f['data']};},async 'execute'(_0x1e7746){const _0x6502e1=a66_0x50260f;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1e7746[_0x6502e1(0x22a)],'input':readBusinessGroupUpdateInput(_0x1e7746),'dryRun':![]});}};function a66_0x3f07(){const _0x550355=['stringify','prototype','datasetCode','modelId','--business-group\x20is\x20required','keys','sourceType','name','--business-group\x20must\x20not\x20be\x20blank','isFinite','Expected\x20','backend','message','ungrouped','payload','260249cXwvco','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','15104KUoahv','path','length','method','code','apiError','dbLinkId','toUpperCase','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','249TSiCjk','dbtableConfig','2412JAsozc','38990tczzGG','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','expectBusinessGroup','number','Expectation\x20mismatch\x20at\x20businessGroup','call','2352311OUAfyI','/smartapi/dblink/updateTableBusinessGroup','found','value','Update\x20business\x20scenario\x20group','datasetName','trim','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','extend','str','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','dbId','business-group','DB_TABLE','1KrRXED','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','write','tableName','data','metadata','db-table','208140mMmzUK','parse','businessGroup','string','36VNKXOe','business-group-update','POST','source','datasetId','40WqfjyK','matched','kind','METADATA','/smartapi/question/er-config/business-group/edit','validation','modelCode',',\x20actual\x20','225279SRcWOD','isArray','dbTableSelector','object','dataset','--code\x20is\x20required','216kyxuXm','5zfFKOB','appCode'];a66_0x3f07=function(){return _0x550355;};return a66_0x3f07();}function readBusinessGroupUpdateInput(_0x4ab757){const _0x176f61=a66_0x50260f,_0x303e0e=_0x4ab757[_0x176f61(0x205)]('expect-business-group');return{'code':trim(_0x4ab757[_0x176f61(0x205)](_0x176f61(0x1ee))),'businessGroup':_0x4ab757[_0x176f61(0x205)](_0x176f61(0x208)),'expectBusinessGroup':_0x303e0e===undefined||_0x303e0e===''?undefined:_0x303e0e};}function validateInput(_0x4b487b){const _0x2c8be4=a66_0x50260f;if(!trim(_0x4b487b['code']))throw CliErrors[_0x2c8be4(0x21f)](_0x2c8be4(0x227));if(_0x4b487b['businessGroup']===undefined)throw CliErrors[_0x2c8be4(0x21f)](_0x2c8be4(0x22f));if(!trim(_0x4b487b[_0x2c8be4(0x213)]))throw CliErrors['validation'](_0x2c8be4(0x233));}function assertBusinessGroupUpdateSupported(_0x399991,_0x4b17c1){const _0x4d7dd4=a66_0x50260f;if(_0x399991['sourceType']==='DB_TABLE'&&!_0x4b17c1)throw CliErrors[_0x4d7dd4(0x21f)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0xd5e587,_0x1492e0){const _0x219d65=a66_0x50260f,_0x5e204d=asPlainObject(_0xd5e587['dataset']),_0x473ee1=asPlainObject(_0xd5e587[_0x219d65(0x1f4)]),_0x584dd2=resolveSourceType(_0xd5e587,_0x5e204d,_0x473ee1),_0x4b6593=firstString(_0xd5e587[_0x219d65(0x220)],_0xd5e587[_0x219d65(0x1ee)],_0x5e204d[_0x219d65(0x22d)],_0x1492e0)||_0x1492e0;return{'id':firstNumber(_0xd5e587['modelId'],_0xd5e587['id'],_0x5e204d[_0x219d65(0x219)])??firstString(_0xd5e587[_0x219d65(0x22e)],_0xd5e587['id'],_0x5e204d[_0x219d65(0x219)])??null,'code':_0x4b6593,'name':firstString(_0xd5e587[_0x219d65(0x232)],_0x5e204d[_0x219d65(0x201)],_0x5e204d['name'])||null,'sourceType':_0x584dd2,'dbTableSelector':_0x584dd2===_0x219d65(0x209)?{'dbLinkId':firstNumber(_0x473ee1[_0x219d65(0x207)]),'tableName':firstString(_0x473ee1[_0x219d65(0x20d)])||null}:null};}function resolveSourceType(_0x46c483,_0x5071a4,_0x31e9e1){const _0x4f7130=a66_0x50260f,_0x2e019c=firstString(_0x46c483[_0x4f7130(0x218)],_0x46c483['sourceType'],_0x5071a4[_0x4f7130(0x218)],_0x5071a4[_0x4f7130(0x231)])?.[_0x4f7130(0x202)]()[_0x4f7130(0x1f1)]();if(_0x2e019c==='DB_TABLE'||_0x2e019c===_0x4f7130(0x21d))return _0x2e019c;if(Object[_0x4f7130(0x230)](_0x31e9e1)[_0x4f7130(0x1ec)]>0x0)return'DB_TABLE';throw CliErrors[_0x4f7130(0x21f)](_0x4f7130(0x203));}function loadCurrentBusinessGroup(_0xfa8f80,_0x32281d){const _0x40a6a2=a66_0x50260f,_0x28040e=readBusinessGroupFromDatasetDetail(_0xfa8f80,_0x32281d[_0x40a6a2(0x231)]);if(_0x28040e[_0x40a6a2(0x1fe)])return normalizeBusinessGroup(_0x28040e[_0x40a6a2(0x1ff)]);return'';}function readBusinessGroupFromDatasetDetail(_0x13cb05,_0x529ffc){const _0x40f857=a66_0x50260f,_0x597047=asPlainObject(_0x13cb05[_0x40f857(0x226)]),_0x5addbc=firstPresent(_0x13cb05[_0x40f857(0x213)]);if(_0x5addbc['found'])return _0x5addbc;const _0x54b583=firstPresent(_0x597047[_0x40f857(0x213)]);if(_0x54b583['found'])return _0x54b583;if(_0x529ffc===_0x40f857(0x209))return{'found':![]};const _0x2f2259=readBusinessGroupFromExtend(_0x13cb05['extend']);if(_0x2f2259[_0x40f857(0x1fe)])return _0x2f2259;return readBusinessGroupFromExtend(_0x597047[_0x40f857(0x204)]);}function readBusinessGroupFromExtend(_0x438842){const _0x82d55e=a66_0x50260f;if(_0x438842===undefined||_0x438842===null||_0x438842==='')return{'found':![]};if(typeof _0x438842==='string')try{const _0x55a9ed=JSON[_0x82d55e(0x212)](_0x438842);return readBusinessGroupFromExtend(_0x55a9ed);}catch{return{'found':![]};}const _0x1247b6=asPlainObject(_0x438842);if(Object[_0x82d55e(0x22c)]['hasOwnProperty'][_0x82d55e(0x1fb)](_0x1247b6,_0x82d55e(0x213)))return{'found':!![],'value':_0x1247b6[_0x82d55e(0x213)]};return{'found':![]};}function firstPresent(..._0x55e6d6){for(const _0x10308b of _0x55e6d6){if(_0x10308b!==undefined&&_0x10308b!==null)return{'found':!![],'value':_0x10308b};}return{'found':![]};}function assertExpectedBusinessGroup(_0xd3d17b,_0x492ef3){const _0x1a0cb5=a66_0x50260f;if(_0x492ef3===undefined)return;const _0x4e2358=normalizeBusinessGroupArgument(_0x492ef3);if(_0xd3d17b!==_0x4e2358)throw CliErrors[_0x1a0cb5(0x21f)](_0x1a0cb5(0x1fa),_0x1a0cb5(0x235)+JSON['stringify'](_0x4e2358)+',\x20actual\x20'+JSON[_0x1a0cb5(0x22b)](_0xd3d17b));}function buildBackendPlan(_0x1e9d1f,_0x41b41b,_0x82b6e6){const _0x17ea8a=a66_0x50260f;if(_0x41b41b['sourceType']===_0x17ea8a(0x209)){if(!_0x41b41b['dbTableSelector']||_0x41b41b[_0x17ea8a(0x224)][_0x17ea8a(0x1f0)]===null||!_0x41b41b['dbTableSelector'][_0x17ea8a(0x20d)])throw CliErrors[_0x17ea8a(0x21f)](_0x17ea8a(0x1f2),_0x17ea8a(0x20b));return{'kind':'db-table','method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x41b41b['dbTableSelector'][_0x17ea8a(0x1f0)],'tableName':_0x41b41b[_0x17ea8a(0x224)][_0x17ea8a(0x20d)],'businessGroup':_0x82b6e6}};}return{'kind':_0x17ea8a(0x20f),'method':_0x17ea8a(0x217),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x1e9d1f,'datasetCode':_0x41b41b[_0x17ea8a(0x1ee)],'businessGroup':_0x82b6e6}};}function a66_0x21fd(_0x1812bc,_0x3e7fcd){_0x1812bc=_0x1812bc-0x1eb;const _0x3f0718=a66_0x3f07();let _0x21fd23=_0x3f0718[_0x1812bc];return _0x21fd23;}function normalizeBusinessGroup(_0x39a0d9){const _0x13fd36=a66_0x50260f;if(_0x39a0d9===undefined||_0x39a0d9===null)return'';return String(_0x39a0d9)[_0x13fd36(0x202)]();}function normalizeBusinessGroupArgument(_0x2d8757){const _0x1c6db4=normalizeBusinessGroup(_0x2d8757);return _0x1c6db4===UNGROUPED_BUSINESS_GROUP?'':_0x1c6db4;}function displayBusinessGroup(_0x56bbdb){return _0x56bbdb||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x5e1a75){const _0x59fd37=a66_0x50260f;if(!_0x5e1a75||typeof _0x5e1a75!==_0x59fd37(0x225)||Array[_0x59fd37(0x223)](_0x5e1a75))return{};return _0x5e1a75;}function firstString(..._0x3ada02){const _0x5e64f8=a66_0x50260f;for(const _0x22d7d8 of _0x3ada02){if(typeof _0x22d7d8===_0x5e64f8(0x214)&&_0x22d7d8[_0x5e64f8(0x202)]())return _0x22d7d8['trim']();if(typeof _0x22d7d8===_0x5e64f8(0x1f9)&&Number[_0x5e64f8(0x234)](_0x22d7d8))return String(_0x22d7d8);}return undefined;}function firstNumber(..._0x5d7a38){const _0x2a419a=a66_0x50260f;for(const _0x4126db of _0x5d7a38){if(typeof _0x4126db==='number'&&Number[_0x2a419a(0x234)](_0x4126db))return _0x4126db;if(typeof _0x4126db===_0x2a419a(0x214)&&_0x4126db['trim']()&&Number[_0x2a419a(0x234)](Number(_0x4126db)))return Number(_0x4126db);}return null;}function trim(_0x368e40){const _0x290dd9=a66_0x50260f;return String(_0x368e40||'')[_0x290dd9(0x202)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x2845a7=a67_0x5988;(function(_0x2adfe6,_0x1e3c1e){const _0x317680=a67_0x5988,_0x4a2c11=_0x2adfe6();while(!![]){try{const _0x3a698e=parseInt(_0x317680(0x9a))/0x1+-parseInt(_0x317680(0x8b))/0x2*(parseInt(_0x317680(0x93))/0x3)+-parseInt(_0x317680(0x8d))/0x4*(parseInt(_0x317680(0x96))/0x5)+-parseInt(_0x317680(0x99))/0x6+parseInt(_0x317680(0x9b))/0x7*(-parseInt(_0x317680(0x97))/0x8)+-parseInt(_0x317680(0x9e))/0x9+-parseInt(_0x317680(0x9d))/0xa*(-parseInt(_0x317680(0x98))/0xb);if(_0x3a698e===_0x1e3c1e)break;else _0x4a2c11['push'](_0x4a2c11['shift']());}catch(_0x493f8d){_0x4a2c11['push'](_0x4a2c11['shift']());}}}(a67_0x50fc,0x1bdcd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x50fc(){const _0x12e86f=['501552YWZNOC','number','business-groups','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','num','\x20business\x20group(s)\x20for\x20database\x20connection\x20','902cgPsoC','DB_TABLE','8xIjnYD','ungrouped','dbid','dataset','Found\x20','businessGroup','33cvAvQC','length','map','325945GamNbD','25672bQfOlX','11jaSnvd','851406ALwCxu','155000hVNjRk','413UNCXhT','groups','4814240SpTlDM'];a67_0x50fc=function(){return _0x12e86f;};return a67_0x50fc();}function a67_0x5988(_0xcead42,_0x115e73){_0xcead42=_0xcead42-0x8a;const _0x50fc33=a67_0x50fc();let _0x5988e5=_0x50fc33[_0xcead42];return _0x5988e5;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x2845a7(0x90),'command':a67_0x2845a7(0xa0),'description':a67_0x2845a7(0xa1),'risk':'read','flags':[{'name':a67_0x2845a7(0x8f),'type':a67_0x2845a7(0x9f),'required':!![],'description':a67_0x2845a7(0xa2)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5c3a10){const _0xbe3f6a=a67_0x2845a7,_0x6d993a=_0x5c3a10[_0xbe3f6a(0xa3)](_0xbe3f6a(0x8f)),_0x30bb3f=await getErBusinessGroupSummary(_0x5c3a10['appCode'],_0x6d993a),_0x39af31=_0x30bb3f[_0xbe3f6a(0x9c)][_0xbe3f6a(0x95)](_0x5c61c5=>({..._0x5c61c5,'businessGroup':_0x5c61c5[_0xbe3f6a(0x92)]['trim']()||_0xbe3f6a(0x8e)}));return{'ok':!![],'data':{..._0x30bb3f,'groups':_0x39af31,'scope':_0xbe3f6a(0x8c)},'message':_0xbe3f6a(0x91)+_0x39af31[_0xbe3f6a(0x94)]+_0xbe3f6a(0x8a)+_0x6d993a};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x10666e=a68_0x1cc7;(function(_0x474f3e,_0x364e27){const _0x475611=a68_0x1cc7,_0x5e3098=_0x474f3e();while(!![]){try{const _0x1fb4a7=-parseInt(_0x475611(0x104))/0x1*(-parseInt(_0x475611(0x117))/0x2)+parseInt(_0x475611(0x119))/0x3*(-parseInt(_0x475611(0xff))/0x4)+parseInt(_0x475611(0x116))/0x5*(parseInt(_0x475611(0xfc))/0x6)+parseInt(_0x475611(0x101))/0x7+parseInt(_0x475611(0x10e))/0x8*(-parseInt(_0x475611(0x100))/0x9)+parseInt(_0x475611(0x118))/0xa+-parseInt(_0x475611(0xf9))/0xb*(parseInt(_0x475611(0x10c))/0xc);if(_0x1fb4a7===_0x364e27)break;else _0x5e3098['push'](_0x5e3098['shift']());}catch(_0x10d13d){_0x5e3098['push'](_0x5e3098['shift']());}}}(a68_0x4514,0xb2d32));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x10666e(0x112),'getOne':a68_0x10666e(0xf8)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x10666e(0x10f);function valueToString(_0x37b3c1){return _0x37b3c1==null?'':String(_0x37b3c1)['trim']();}function getDatasetCode(_0x1e909b){const _0x1e3944=a68_0x10666e;return valueToString(_0x1e909b[_0x1e3944(0xfd)]??_0x1e909b['modelCode']??_0x1e909b[_0x1e3944(0xfe)]?.[_0x1e3944(0xfa)]);}function getDatasetName(_0x25d6c0){const _0x3d70be=a68_0x10666e;return valueToString(_0x25d6c0['name']??_0x25d6c0['dataset']?.[_0x3d70be(0x107)])||'unknown';}function getDatasetSource(_0x48bc2e){const _0x36d409=a68_0x10666e;return valueToString(_0x48bc2e[_0x36d409(0x10a)]??_0x48bc2e[_0x36d409(0xfe)]?.[_0x36d409(0x103)])[_0x36d409(0x108)]();}function getDbtableConfig(_0x29d80d){const _0x5be100=a68_0x10666e,_0x44c1d9=_0x29d80d[_0x5be100(0xf6)]??_0x29d80d[_0x5be100(0x110)];return _0x44c1d9&&typeof _0x44c1d9===_0x5be100(0x10b)?_0x44c1d9:{};}export function isDbTableBackedDataset(_0x55ac63){const _0xa49ec3=a68_0x10666e,_0x31b873=getDatasetSource(_0x55ac63);if(_0x31b873===_0xa49ec3(0x106))return![];const _0x4a5361=getDbtableConfig(_0x55ac63),_0x42108d=_0x4a5361[_0xa49ec3(0x115)]??_0x4a5361['id'],_0x697a8d=valueToString(_0x4a5361[_0xa49ec3(0x10d)]??_0x55ac63['tableName']??_0x55ac63[_0xa49ec3(0xfe)]?.[_0xa49ec3(0x10d)]);return _0x42108d!==undefined&&_0x42108d!==null&&_0x697a8d['length']>0x0;}export function filterDbTableBackedDatasets(_0x32f694){const _0x20c81d=a68_0x10666e;return _0x32f694[_0x20c81d(0x105)](_0x15c3b=>isDbTableBackedDataset(_0x15c3b));}export function buildDbTableBackedRequirementMessage(_0x1cc4ea,_0x5361d0=a68_0x10666e(0x102)){const _0x16eeaa=a68_0x10666e,_0x4e9246=getDatasetSource(_0x1cc4ea)||_0x16eeaa(0x111),_0x587ed3=getDatasetName(_0x1cc4ea),_0x49a22c=getDatasetCode(_0x1cc4ea),_0xb98c99=_0x49a22c?'\x20('+_0x49a22c+')':'';return[_0x16eeaa(0x11b)+_0x587ed3+'\x22'+_0xb98c99+_0x16eeaa(0xf7)+_0x4e9246+_0x16eeaa(0xfb)+_0x5361d0+'.',_0x16eeaa(0x114),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x16eeaa(0x11a)+RUNTIME_DATA_ACCESS_COMMANDS[_0x16eeaa(0x105)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x16eeaa(0x109)]+'.'][_0x16eeaa(0x113)]('\x20');}function a68_0x4514(){const _0x24160e=['Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','dbtable','UNKNOWN','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','join','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','dbId','6215fDeXdb','4SxMXrb','9825210NYBeZE','1785756gzEvys','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','The\x20current\x20dataset\x20\x22','dbtableConfig','\x20is\x20','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','517nTBrdg','datasetCode','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','4788uRvofn','code','dataset','8dyyMWC','11810385WlTNYE','7520926plFnRd','SQL\x20schema\x20validation','sourceType','463222CPpmGO','filter','METADATA','datasetName','toUpperCase','getOne','source','object','188952QHlPFK','tableName','8EgifEl'];a68_0x4514=function(){return _0x24160e;};return a68_0x4514();}function a68_0x1cc7(_0x2eda4f,_0x1acd93){_0x2eda4f=_0x2eda4f-0xf6;const _0x4514ad=a68_0x4514();let _0x1cc754=_0x4514ad[_0x2eda4f];return _0x1cc754;}export function assertDatasetIsDbTableBacked(_0x4f2f9d,_0x593080){if(!isDbTableBackedDataset(_0x4f2f9d))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x4f2f9d,_0x593080));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x4f63c5=a69_0x3fb4;(function(_0x4f73b1,_0x388bf6){const _0x1e312c=a69_0x3fb4,_0x392f41=_0x4f73b1();while(!![]){try{const _0xd54c1d=-parseInt(_0x1e312c(0x1ee))/0x1+-parseInt(_0x1e312c(0x1f1))/0x2*(parseInt(_0x1e312c(0x1f0))/0x3)+-parseInt(_0x1e312c(0x1ef))/0x4+-parseInt(_0x1e312c(0x1f6))/0x5+-parseInt(_0x1e312c(0x1f4))/0x6*(parseInt(_0x1e312c(0x1f3))/0x7)+parseInt(_0x1e312c(0x1f2))/0x8+parseInt(_0x1e312c(0x1ed))/0x9;if(_0xd54c1d===_0x388bf6)break;else _0x392f41['push'](_0x392f41['shift']());}catch(_0x1e5312){_0x392f41['push'](_0x392f41['shift']());}}}(a69_0x4dc5,0xb086d));import{createCrossDbRelation}from'../../core/api-client.js';function a69_0x3fb4(_0x4df1a1,_0x208c72){_0x4df1a1=_0x4df1a1-0x1ed;const _0x4dc51c=a69_0x4dc5();let _0x3fb468=_0x4dc51c[_0x4df1a1];return _0x3fb468;}import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a69_0x4dc5(){const _0x581bbe=['26337MoIQHf','26MQaDJt','3104840oUawtm','67333CnNWgo','852WWbzUr','create','2177370xDstnc','dataset','write','33060519PggSoL','902822eNAQVG','2080488FZBaNn'];a69_0x4dc5=function(){return _0x581bbe;};return a69_0x4dc5();}export const datasetCrossRelationCreate={'service':a69_0x4f63c5(0x1f7),'command':'cross-relation-create','description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':a69_0x4f63c5(0x1f8),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x4aa200=>validateCrossRelation(_0x4aa200,a69_0x4f63c5(0x1f5)),'dryRun':_0x48a23e=>previewCrossRelation(_0x48a23e,a69_0x4f63c5(0x1f5)),'execute':_0x183dd4=>executeCrossRelation(_0x183dd4,a69_0x4f63c5(0x1f5),createCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x3742(_0x38797c,_0x28a1e9){_0x38797c=_0x38797c-0x68;const _0x230d91=a70_0x230d();let _0x3742b0=_0x230d91[_0x38797c];return _0x3742b0;}const a70_0x1e3346=a70_0x3742;(function(_0x4ebfe5,_0x510123){const _0x2e7d64=a70_0x3742,_0x38f91c=_0x4ebfe5();while(!![]){try{const _0x2e87dc=-parseInt(_0x2e7d64(0x71))/0x1+-parseInt(_0x2e7d64(0x68))/0x2+parseInt(_0x2e7d64(0x74))/0x3+-parseInt(_0x2e7d64(0x6f))/0x4*(-parseInt(_0x2e7d64(0x6b))/0x5)+-parseInt(_0x2e7d64(0x6c))/0x6+-parseInt(_0x2e7d64(0x6e))/0x7*(-parseInt(_0x2e7d64(0x72))/0x8)+parseInt(_0x2e7d64(0x69))/0x9;if(_0x2e87dc===_0x510123)break;else _0x38f91c['push'](_0x38f91c['shift']());}catch(_0xc4426){_0x38f91c['push'](_0x38f91c['shift']());}}}(a70_0x230d,0xebe6e));import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a70_0x230d(){const _0x287d26=['1070462nVngmZ','12943800lzEose','delete','235dZjWAh','249792OQtsvs','high-risk-write','14LaFpVP','22084bCXAlj','dataset','964897GGKPPP','2878640dFSctZ','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','272001lSbeDI'];a70_0x230d=function(){return _0x287d26;};return a70_0x230d();}export const datasetCrossRelationDelete={'service':a70_0x1e3346(0x70),'command':'cross-relation-delete','description':a70_0x1e3346(0x73),'risk':a70_0x1e3346(0x6d),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x4d36ca=>validateCrossRelation(_0x4d36ca,a70_0x1e3346(0x6a)),'dryRun':_0x2a0aad=>previewCrossRelation(_0x2a0aad,a70_0x1e3346(0x6a)),'execute':_0x212cca=>executeCrossRelation(_0x212cca,a70_0x1e3346(0x6a),deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a71_0x3db0(_0x52fad7,_0x15ae98){_0x52fad7=_0x52fad7-0x1f0;const _0x1d1c4e=a71_0x1d1c();let _0x3db086=_0x1d1c4e[_0x52fad7];return _0x3db086;}const a71_0x94b84c=a71_0x3db0;(function(_0x311b50,_0x9186b3){const _0x1fe585=a71_0x3db0,_0x4a8fdd=_0x311b50();while(!![]){try{const _0x2c471c=parseInt(_0x1fe585(0x201))/0x1*(parseInt(_0x1fe585(0x1f7))/0x2)+-parseInt(_0x1fe585(0x1f2))/0x3+parseInt(_0x1fe585(0x1f4))/0x4*(-parseInt(_0x1fe585(0x1ff))/0x5)+-parseInt(_0x1fe585(0x200))/0x6+parseInt(_0x1fe585(0x1f8))/0x7+parseInt(_0x1fe585(0x1f1))/0x8*(parseInt(_0x1fe585(0x1f9))/0x9)+-parseInt(_0x1fe585(0x1f0))/0xa*(-parseInt(_0x1fe585(0x1f3))/0xb);if(_0x2c471c===_0x9186b3)break;else _0x4a8fdd['push'](_0x4a8fdd['shift']());}catch(_0x346955){_0x4a8fdd['push'](_0x4a8fdd['shift']());}}}(a71_0x1d1c,0xd4c57));function a71_0x1d1c(){const _0x5342b7=['3300630oXWdyk','326936dHYxHl','20IhRbxj','11544oAWbQd','4195146EPRKfc','4772405fVhRii','906148vrvDBP','map','appCode','2HwSiKZ','10609298RocybS','7749EExMsG','length','\x20relation(s)','list','Cross-database\x20relations:\x20','dataset','25rjEtgy'];a71_0x1d1c=function(){return _0x5342b7;};return a71_0x1d1c();}import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationList={'service':a71_0x94b84c(0x1fe),'command':'cross-relation-list','description':'List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','risk':'read','strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[{...CROSS_RELATION_FROM_DATASET_FLAG,'required':![]},CROSS_RELATION_DBLINK_FLAG,{...CROSS_RELATION_FROM_COLUMN_FLAG,'required':![]},APPCODE_FLAG_OPTIONAL],'validate':async _0x4fc01a=>validateCrossRelation(_0x4fc01a,a71_0x94b84c(0x1fc)),async 'execute'(_0x4b4ed3){const _0x247e66=a71_0x94b84c,_0x1a7e92=await resolveCrossRelationQuery(_0x4b4ed3),_0x324d0c=await queryCrossDbRelations(_0x1a7e92);return{'ok':!![],'data':{'appCode':_0x4b4ed3[_0x247e66(0x1f6)],'selector':_0x1a7e92,'total':_0x324d0c[_0x247e66(0x1fa)],'relations':_0x324d0c[_0x247e66(0x1f5)](projectCrossRelation)},'message':_0x247e66(0x1fd)+_0x324d0c['length']+_0x247e66(0x1fb)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x281c24=a72_0x27e5;function a72_0x12fb(){const _0x50b80d=['toTableName','query','to-datasetcode','parse','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','16jWoMRe','Dataset\x20','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','enum','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','toDatasetCode','relationId','extend','source','1001168mIWMAC','toLowerCase','appCode','data','6dkbYWJ','\x20a\x20cross-database\x20relation\x20for\x20','from-dblink-id','144790CAomkb','expectedCardinality','from-datasetcode','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','2821340JLDDyt','toDblinkId','dataset','unconfirmed','filter','length','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','refTableLabelName','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','DB_TABLE','cardinality','fromField','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','map','flagMissing','\x20verified.','fromDblinkId','apiError','datasetCode','dbtable','create','relationType','delete','\x20has\x20invalid\x20storage\x20configuration.','list','label_inherited','to-label-column','isSafeInteger','5896890fxlsFb','2524236oEvVzx','fromDatasetCode','message','flag','trim','str','dblinkId','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','sourceType','catch','table','expectedLabel','dbtableConfig','from-column','validation','fromTableName','from','storageProfile','before','includes','16ZxoTgm','2648821xVjliT','POST','tableName','\x20write\x20was\x20not\x20verified.','116306GuVMhX','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','matched','toField','Invalid\x20--cardinality.','dbId','defineProperty','body','string','Cross-database\x20relation\x20','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.'];a72_0x12fb=function(){return _0x50b80d;};return a72_0x12fb();}(function(_0x4667be,_0x3c9071){const _0x4694b2=a72_0x27e5,_0x3162fb=_0x4667be();while(!![]){try{const _0xd0b2a4=-parseInt(_0x4694b2(0xf0))/0x1*(-parseInt(_0x4694b2(0xeb))/0x2)+parseInt(_0x4694b2(0xd7))/0x3+parseInt(_0x4694b2(0x101))/0x4*(-parseInt(_0x4694b2(0x111))/0x5)+-parseInt(_0x4694b2(0x10e))/0x6*(parseInt(_0x4694b2(0xec))/0x7)+parseInt(_0x4694b2(0x10a))/0x8+-parseInt(_0x4694b2(0xd6))/0x9+-parseInt(_0x4694b2(0x115))/0xa;if(_0xd0b2a4===_0x3c9071)break;else _0x3162fb['push'](_0x3162fb['shift']());}catch(_0x4fe67b){_0x3162fb['push'](_0x3162fb['shift']());}}}(a72_0x12fb,0x71a13));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x2509e4,_0x39b93f){const _0x2b7c6c=a72_0x27e5,_0x5ef264=_0x2509e4[_0x2b7c6c(0xdc)](_0x39b93f)['trim']();if(!_0x5ef264)throw CliErrors[_0x2b7c6c(0x124)](_0x39b93f);return _0x5ef264;}function explicitDblink(_0x421767){const _0x19fa9d=a72_0x27e5,_0x17c814=_0x421767[_0x19fa9d(0xda)](_0x19fa9d(0x110));if(_0x17c814===undefined||_0x17c814===null)return undefined;const _0x298d12=Number(_0x17c814);if(!Number[_0x19fa9d(0xd5)](_0x298d12)||_0x298d12<=0x0)throw CliErrors[_0x19fa9d(0xe5)](_0x19fa9d(0x11d));return _0x298d12;}export function validateCrossRelation(_0x26dbe2,_0x3464b8){const _0x42671d=a72_0x27e5,_0x34f4ef=explicitDblink(_0x26dbe2);if(_0x3464b8===_0x42671d(0x12e)){if(!_0x26dbe2[_0x42671d(0xdc)]('from-datasetcode')[_0x42671d(0xdb)]()&&_0x34f4ef===undefined)throw CliErrors[_0x42671d(0xe5)](_0x42671d(0x122));return;}required(_0x26dbe2,_0x42671d(0x113)),required(_0x26dbe2,_0x42671d(0xe4));if(_0x3464b8!==_0x42671d(0x12c)){required(_0x26dbe2,_0x42671d(0xfe)),required(_0x26dbe2,'to-column');const _0x170ab8=_0x26dbe2[_0x42671d(0xdc)](_0x42671d(0x120))[_0x42671d(0xdb)]();if(_0x170ab8&&!CROSS_RELATION_CARDINALITY_FLAG[_0x42671d(0x104)][_0x42671d(0xea)](_0x170ab8))throw CliErrors[_0x42671d(0xe5)](_0x42671d(0xf4));}}async function resolveEndpoint(_0xdf35d3){const _0x52cdd7=a72_0x27e5,_0x1c0aad=await getDatasetDetail(_0xdf35d3),_0x33585f=_0x1c0aad?.[_0x52cdd7(0x117)]??{};if((_0x1c0aad?.[_0x52cdd7(0x109)]??_0x33585f[_0x52cdd7(0xdf)])!==_0x52cdd7(0x11f))throw CliErrors[_0x52cdd7(0xe5)](_0x52cdd7(0x102)+_0xdf35d3+_0x52cdd7(0xfb));const _0x3a2359=_0x1c0aad[_0x52cdd7(0xe3)]??_0x1c0aad[_0x52cdd7(0x129)]??{};let _0x423411=_0x1c0aad['extend']??_0x33585f[_0x52cdd7(0x108)]??{};if(typeof _0x423411===_0x52cdd7(0xf8))try{_0x423411=_0x423411[_0x52cdd7(0xdb)]()?JSON[_0x52cdd7(0xff)](_0x423411):{};}catch{throw CliErrors['validation']('Dataset\x20'+_0xdf35d3+_0x52cdd7(0x12d));}const _0x270f19=Number(_0x423411?.[_0x52cdd7(0xe8)]?.[_0x52cdd7(0xf5)]??_0x1c0aad[_0x52cdd7(0xe8)]?.[_0x52cdd7(0xf5)]??_0x33585f[_0x52cdd7(0xe8)]?.['dbId']??_0x3a2359[_0x52cdd7(0xf5)]??_0x33585f[_0x52cdd7(0xf5)]??_0x1c0aad[_0x52cdd7(0xf5)]),_0x461222=String(_0x1c0aad[_0x52cdd7(0xee)]??_0x33585f[_0x52cdd7(0xee)]??_0x3a2359[_0x52cdd7(0xee)]??'')[_0x52cdd7(0xdb)]();if(!Number[_0x52cdd7(0xd5)](_0x270f19)||_0x270f19<=0x0||!_0x461222)throw CliErrors[_0x52cdd7(0xe5)]('Dataset\x20'+_0xdf35d3+_0x52cdd7(0xfa));return{'datasetCode':_0xdf35d3,'dblinkId':_0x270f19,'table':_0x461222};}function a72_0x27e5(_0xcaa4b0,_0x479f00){_0xcaa4b0=_0xcaa4b0-0xd3;const _0x12fbf9=a72_0x12fb();let _0x27e5b5=_0x12fbf9[_0xcaa4b0];return _0x27e5b5;}export async function resolveCrossRelationQuery(_0x2c0547){const _0x59f5be=a72_0x27e5,_0x1b6c5d=_0x2c0547[_0x59f5be(0xdc)]('from-datasetcode')[_0x59f5be(0xdb)](),_0x30ce70=explicitDblink(_0x2c0547),_0x363490=_0x1b6c5d?await resolveEndpoint(_0x1b6c5d):undefined;if(_0x363490&&_0x30ce70!==undefined&&_0x363490['dblinkId']!==_0x30ce70)throw CliErrors[_0x59f5be(0xe5)](_0x59f5be(0xde));const _0x406891=_0x363490?.[_0x59f5be(0xdd)]??_0x30ce70;if(_0x406891===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x2c0547[_0x59f5be(0x10c)],'fromDblinkId':_0x406891,..._0x1b6c5d?{'fromDatasetCode':_0x1b6c5d}:{},..._0x2c0547[_0x59f5be(0xdc)](_0x59f5be(0xe4))[_0x59f5be(0xdb)]()?{'fromField':_0x2c0547[_0x59f5be(0xdc)](_0x59f5be(0xe4))['trim']()}:{}};}export function projectCrossRelation(_0x33f5b5){const _0x396940=a72_0x27e5;return{'relationId':_0x33f5b5[_0x396940(0x107)],'from':{'source':_0x396940(0x11f),'datasetCode':_0x33f5b5['fromDatasetCode'],'datasetName':_0x33f5b5['fromDatasetName'],'dblinkId':_0x33f5b5[_0x396940(0x126)],'table':_0x33f5b5[_0x396940(0xe6)],'field':_0x33f5b5[_0x396940(0x121)]},'to':{'source':_0x396940(0x11f),'datasetCode':_0x33f5b5[_0x396940(0x106)],'datasetName':_0x33f5b5['toDatasetName'],'dblinkId':_0x33f5b5[_0x396940(0x116)],'table':_0x33f5b5[_0x396940(0xfc)],'field':_0x33f5b5[_0x396940(0xf3)],'labelField':_0x33f5b5[_0x396940(0x11c)]},'relation':{'cardinality':_0x33f5b5[_0x396940(0x120)],'relationType':_0x33f5b5['relationType']}};}function ambiguity(_0x4d671e){const _0x476eee=a72_0x27e5,_0x2efb61=CliErrors[_0x476eee(0xe5)](_0x476eee(0xf1),_0x476eee(0x105));return Object[_0x476eee(0xf6)](_0x2efb61,_0x476eee(0x10d),{'value':{'candidates':_0x4d671e[_0x476eee(0x123)](projectCrossRelation)}}),_0x2efb61;}const sameName=(_0x1ba03f,_0x30278e)=>_0x1ba03f[a72_0x281c24(0x10b)]()===_0x30278e[a72_0x281c24(0x10b)]();function matchesEndpoint(_0x11e84d,_0x330372,_0x243fd2,_0x586487,_0x145a98){const _0x62e9e9=a72_0x281c24;return _0x11e84d[_0x62e9e9(0x126)]===_0x330372[_0x62e9e9(0xdd)]&&sameName(_0x11e84d['fromTableName'],_0x330372['table'])&&sameName(_0x11e84d[_0x62e9e9(0x121)],_0x243fd2)&&_0x11e84d[_0x62e9e9(0x116)]===_0x586487['dblinkId']&&sameName(_0x11e84d[_0x62e9e9(0xfc)],_0x586487[_0x62e9e9(0xe1)])&&sameName(_0x11e84d[_0x62e9e9(0xf3)],_0x145a98);}export async function prepareCrossRelation(_0x413d32,_0x556e9a){const _0x1a1214=a72_0x281c24,_0x3980e4=await resolveEndpoint(required(_0x413d32,'from-datasetcode')),_0x24499e=explicitDblink(_0x413d32);if(_0x24499e!==undefined&&_0x3980e4['dblinkId']!==_0x24499e)throw CliErrors[_0x1a1214(0xe5)](_0x1a1214(0xde));const _0x2b925f={'appCode':_0x413d32[_0x1a1214(0x10c)],'fromDatasetCode':_0x3980e4[_0x1a1214(0x128)],'fromField':required(_0x413d32,_0x1a1214(0xe4)),..._0x24499e!==undefined?{'fromDblinkId':_0x24499e}:{}},_0x2bd56a={'appCode':_0x413d32[_0x1a1214(0x10c)],'fromDblinkId':_0x3980e4[_0x1a1214(0xdd)],'fromDatasetCode':_0x3980e4[_0x1a1214(0x128)],'fromField':_0x2b925f[_0x1a1214(0x121)]},_0x48d6d1=await queryCrossDbRelations(_0x2bd56a);let _0x32b2d0=null;if(_0x556e9a!=='create'){if(_0x48d6d1[_0x1a1214(0x11a)]>0x1)throw ambiguity(_0x48d6d1);_0x32b2d0=_0x48d6d1[0x0]??null;if(!_0x32b2d0)throw CliErrors[_0x1a1214(0xe5)](_0x1a1214(0x11e));}if(_0x556e9a==='delete')return{'operation':_0x556e9a,'from':_0x3980e4,'query':_0x2bd56a,'body':_0x2b925f,'before':_0x32b2d0};const _0x94dd1=await resolveEndpoint(required(_0x413d32,_0x1a1214(0xfe)));if(_0x3980e4['dblinkId']===_0x94dd1['dblinkId'])throw CliErrors['validation'](_0x1a1214(0x114));const _0x5af903=_0x413d32[_0x1a1214(0xdc)](_0x1a1214(0xd4))[_0x1a1214(0xdb)](),_0x557272=_0x413d32['str'](_0x1a1214(0x120))['trim'](),_0x113bb8={..._0x2b925f,'toDatasetCode':_0x94dd1[_0x1a1214(0x128)],'toField':required(_0x413d32,'to-column'),..._0x5af903?{'refTableLabelName':_0x5af903}:{},..._0x557272?{'cardinality':_0x557272}:{}};if(_0x48d6d1['some'](_0x23cd98=>_0x23cd98[_0x1a1214(0x107)]!==_0x32b2d0?.[_0x1a1214(0x107)]&&matchesEndpoint(_0x23cd98,_0x3980e4,_0x113bb8[_0x1a1214(0x121)],_0x94dd1,_0x113bb8[_0x1a1214(0xf3)])))throw CliErrors['validation'](_0x1a1214(0x100));return{'operation':_0x556e9a,'from':_0x3980e4,'to':_0x94dd1,'query':_0x2bd56a,'body':_0x113bb8,'before':_0x32b2d0,'expectedLabel':_0x5af903||_0x32b2d0?.[_0x1a1214(0x11c)]||_0x113bb8['toField'],'expectedCardinality':_0x557272||_0x32b2d0?.[_0x1a1214(0x120)]||null};}function mutationData(_0x50b5f4,_0x1be934,_0x3b147a){const _0x3c5395=a72_0x281c24,{operation:_0x143e93,body:_0x5bc2b6,before:_0x23a0e4}=_0x50b5f4;return{'operation':_0x143e93,'selector':{'appCode':_0x5bc2b6[_0x3c5395(0x10c)],'from':{'datasetCode':_0x5bc2b6[_0x3c5395(0xd8)],'field':_0x5bc2b6['fromField'],'dblinkId':_0x50b5f4[_0x3c5395(0xe7)]['dblinkId']}},'before':_0x23a0e4?projectCrossRelation(_0x23a0e4):null,'after':_0x3b147a,'dryRun':_0x1be934,'backend':{'method':_0x3c5395(0xed),'path':CROSS_DB_RELATION_PATHS[_0x143e93]},'warnings':_0x143e93==='update'&&!_0x5bc2b6[_0x3c5395(0x11c)]?[{'code':_0x3c5395(0xd3),'message':_0x3c5395(0x103)}]:[]};}export async function previewCrossRelation(_0x34ef62,_0x27d035){const _0x159429=a72_0x281c24,_0x5c221c=await prepareCrossRelation(_0x34ef62,_0x27d035),_0x1fb2eb=_0x5c221c[_0x159429(0xf7)],_0x370135=_0x27d035===_0x159429(0x12c)?null:{..._0x5c221c[_0x159429(0xe9)]?{'relationId':_0x5c221c[_0x159429(0xe9)][_0x159429(0x107)]}:{},'from':{'datasetCode':_0x5c221c[_0x159429(0xe7)]['datasetCode'],'dblinkId':_0x5c221c[_0x159429(0xe7)][_0x159429(0xdd)],'table':_0x5c221c[_0x159429(0xe7)][_0x159429(0xe1)],'field':_0x1fb2eb[_0x159429(0x121)]},'to':{'datasetCode':_0x5c221c['to'][_0x159429(0x128)],'dblinkId':_0x5c221c['to'][_0x159429(0xdd)],'table':_0x5c221c['to'][_0x159429(0xe1)],'field':_0x1fb2eb[_0x159429(0xf3)],'labelField':_0x5c221c['expectedLabel']},'relation':{'cardinality':_0x5c221c[_0x159429(0x112)],'relationType':0x2}};return{...mutationData(_0x5c221c,!![],null),'after':_0x370135,'method':_0x159429(0xed),'url':CROSS_DB_RELATION_PATHS[_0x27d035],'body':_0x5c221c[_0x159429(0xf7)],'description':'Would\x20'+_0x27d035+_0x159429(0x10f)+_0x1fb2eb[_0x159429(0xd8)]+'.'+_0x1fb2eb[_0x159429(0x121)]};}export async function executeCrossRelation(_0x84f44a,_0x4a30ea,_0x13e835){const _0x5d3e6b=a72_0x281c24,_0x1f9f92=await prepareCrossRelation(_0x84f44a,_0x4a30ea);try{await _0x13e835(_0x1f9f92['body']);}catch(_0x5b1e83){if(_0x5b1e83 instanceof CliError&&_0x5b1e83[_0x5d3e6b(0xd9)][_0x5d3e6b(0xea)]('multiple\x20cross-database\x20relations\x20matched')){const _0x32d6b2=await queryCrossDbRelations(_0x1f9f92[_0x5d3e6b(0xfd)])[_0x5d3e6b(0xe0)](()=>[]);throw ambiguity(_0x32d6b2);}throw _0x5b1e83;}let _0x182470=[],_0x32792a,_0x28c283=![];try{_0x182470=await queryCrossDbRelations(_0x1f9f92[_0x5d3e6b(0xfd)]);if(_0x4a30ea===_0x5d3e6b(0x12c))_0x28c283=!_0x182470['some'](_0x24ad78=>_0x24ad78[_0x5d3e6b(0x107)]===_0x1f9f92[_0x5d3e6b(0xe9)][_0x5d3e6b(0x107)]);else{const _0x2e7290=_0x1f9f92[_0x5d3e6b(0xf7)],_0x59b82d=_0x182470[_0x5d3e6b(0x119)](_0x3da26f=>matchesEndpoint(_0x3da26f,_0x1f9f92[_0x5d3e6b(0xe7)],_0x2e7290['fromField'],_0x1f9f92['to'],_0x2e7290[_0x5d3e6b(0xf3)])&&(_0x4a30ea===_0x5d3e6b(0x12a)||_0x3da26f[_0x5d3e6b(0x107)]===_0x1f9f92[_0x5d3e6b(0xe9)][_0x5d3e6b(0x107)]));_0x32792a=_0x59b82d[_0x5d3e6b(0x11a)]===0x1?_0x59b82d[0x0]:undefined,_0x28c283=!!_0x32792a&&_0x32792a[_0x5d3e6b(0x11c)]===_0x1f9f92[_0x5d3e6b(0xe2)]&&_0x32792a['cardinality']===_0x1f9f92['expectedCardinality']&&_0x32792a[_0x5d3e6b(0x12b)]===0x2;}}catch{}const _0x288a3e={...mutationData(_0x1f9f92,![],_0x32792a?projectCrossRelation(_0x32792a):null),'verification':{'status':_0x28c283?_0x5d3e6b(0xf2):_0x5d3e6b(0x118),'verified':_0x28c283}};if(!_0x28c283){const _0x1e9c4b=CliErrors[_0x5d3e6b(0x127)]('Cross-database\x20relation\x20'+_0x4a30ea+_0x5d3e6b(0xef),_0x5d3e6b(0x11b));Object[_0x5d3e6b(0xf6)](_0x1e9c4b,_0x5d3e6b(0x10d),{'value':{..._0x288a3e,'candidates':_0x182470[_0x5d3e6b(0x123)](projectCrossRelation)}});throw _0x1e9c4b;}return{'ok':!![],'data':_0x288a3e,'message':_0x5d3e6b(0xf9)+_0x4a30ea+_0x5d3e6b(0x125)};}
|
|
1
|
+
const a72_0x107bd7=a72_0x1733;(function(_0x57f14b,_0x4f9407){const _0x3e6dd7=a72_0x1733,_0x52c57c=_0x57f14b();while(!![]){try{const _0x1e4b74=-parseInt(_0x3e6dd7(0x8f))/0x1*(parseInt(_0x3e6dd7(0xa2))/0x2)+-parseInt(_0x3e6dd7(0xd1))/0x3*(-parseInt(_0x3e6dd7(0xb1))/0x4)+-parseInt(_0x3e6dd7(0xc4))/0x5*(parseInt(_0x3e6dd7(0xc5))/0x6)+parseInt(_0x3e6dd7(0x84))/0x7*(-parseInt(_0x3e6dd7(0x81))/0x8)+-parseInt(_0x3e6dd7(0xb5))/0x9+parseInt(_0x3e6dd7(0xb2))/0xa+parseInt(_0x3e6dd7(0x7c))/0xb;if(_0x1e4b74===_0x4f9407)break;else _0x52c57c['push'](_0x52c57c['shift']());}catch(_0x17c3a6){_0x52c57c['push'](_0x52c57c['shift']());}}}(a72_0x40c1,0xd3c76));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';import{CliError,CliErrors}from'../../errors.js';function a72_0x40c1(){const _0x36b4ac=['fromDblinkId','from-dblink-id','fromTableName','fromField','data','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','\x20a\x20cross-database\x20relation\x20for\x20','9HWVcRA','Invalid\x20--cardinality.','to-label-column','Would\x20','toDatasetName','dblinkId','relationId','POST','enum','relationType','cardinality','catch','table','defineProperty','toField','dbtable','datasetCode','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','before','211274OVwwoC','trim','expectedLabel','DB_TABLE','string','dataset','tableName','dbtableConfig','toDblinkId','expectedCardinality','body','\x20has\x20invalid\x20storage\x20configuration.','includes','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','refTableLabelName','1712WDOHGZ','274720XbcEdb','Cross-database\x20relation\x20','storageProfile','2448009KcYEcL','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','appCode','toTableName','length','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','message','apiError','matched','some','isSafeInteger','\x20verified.','list','from','fromDatasetCode','75aAiSfn','356244uQHBCo','toLowerCase','to-datasetcode','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','extend','map','multiple\x20cross-database\x20relations\x20matched','parse','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','dbId','flagMissing','11787IhIUJz','delete','from-datasetcode','source','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','\x20write\x20was\x20not\x20verified.','unconfirmed','create','24870087TRSRHh','validation','fromDatasetName','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','Dataset\x20','17704pswgUf','from-column','query','3129ddSVza','to-column','label_inherited','str'];a72_0x40c1=function(){return _0x36b4ac;};return a72_0x40c1();}import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x5f3b13,_0x421bbc){const _0x3651d2=a72_0x1733,_0x40d5ae=_0x5f3b13[_0x3651d2(0x87)](_0x421bbc)[_0x3651d2(0xa3)]();if(!_0x40d5ae)throw CliErrors[_0x3651d2(0xd0)](_0x421bbc);return _0x40d5ae;}function explicitDblink(_0x35e8bb){const _0x211992=a72_0x1733,_0x1338b6=_0x35e8bb['flag'](_0x211992(0x89));if(_0x1338b6===undefined||_0x1338b6===null)return undefined;const _0x44dc74=Number(_0x1338b6);if(!Number[_0x211992(0xbf)](_0x44dc74)||_0x44dc74<=0x0)throw CliErrors[_0x211992(0x7d)](_0x211992(0xc9));return _0x44dc74;}export function validateCrossRelation(_0x5bf8b6,_0x1613bb){const _0x1bd0fd=a72_0x1733,_0x5b0d92=explicitDblink(_0x5bf8b6);if(_0x1613bb===_0x1bd0fd(0xc1)){if(!_0x5bf8b6[_0x1bd0fd(0x87)](_0x1bd0fd(0x76))[_0x1bd0fd(0xa3)]()&&_0x5b0d92===undefined)throw CliErrors['validation'](_0x1bd0fd(0x78));return;}required(_0x5bf8b6,_0x1bd0fd(0x76)),required(_0x5bf8b6,_0x1bd0fd(0x82));if(_0x1613bb!==_0x1bd0fd(0x75)){required(_0x5bf8b6,_0x1bd0fd(0xc7)),required(_0x5bf8b6,_0x1bd0fd(0x85));const _0x355eff=_0x5bf8b6[_0x1bd0fd(0x87)]('cardinality')['trim']();if(_0x355eff&&!CROSS_RELATION_CARDINALITY_FLAG[_0x1bd0fd(0x97)][_0x1bd0fd(0xae)](_0x355eff))throw CliErrors[_0x1bd0fd(0x7d)](_0x1bd0fd(0x90));}}async function resolveEndpoint(_0xc8f956){const _0x40564d=a72_0x1733,_0x2dc884=await getDatasetDetail(_0xc8f956),_0x43b1bf=_0x2dc884?.[_0x40564d(0xa7)]??{};if((_0x2dc884?.[_0x40564d(0x77)]??_0x43b1bf['sourceType'])!==_0x40564d(0xa5))throw CliErrors[_0x40564d(0x7d)]('Dataset\x20'+_0xc8f956+_0x40564d(0xaf));const _0x23327b=_0x2dc884[_0x40564d(0xa9)]??_0x2dc884[_0x40564d(0x9e)]??{};let _0x531e0d=_0x2dc884[_0x40564d(0xca)]??_0x43b1bf['extend']??{};if(typeof _0x531e0d===_0x40564d(0xa6))try{_0x531e0d=_0x531e0d[_0x40564d(0xa3)]()?JSON[_0x40564d(0xcd)](_0x531e0d):{};}catch{throw CliErrors[_0x40564d(0x7d)](_0x40564d(0x80)+_0xc8f956+_0x40564d(0xad));}const _0x324295=Number(_0x531e0d?.[_0x40564d(0xb4)]?.[_0x40564d(0xcf)]??_0x2dc884[_0x40564d(0xb4)]?.['dbId']??_0x43b1bf[_0x40564d(0xb4)]?.['dbId']??_0x23327b[_0x40564d(0xcf)]??_0x43b1bf[_0x40564d(0xcf)]??_0x2dc884['dbId']),_0x3a573b=String(_0x2dc884[_0x40564d(0xa8)]??_0x43b1bf[_0x40564d(0xa8)]??_0x23327b[_0x40564d(0xa8)]??'')[_0x40564d(0xa3)]();if(!Number[_0x40564d(0xbf)](_0x324295)||_0x324295<=0x0||!_0x3a573b)throw CliErrors[_0x40564d(0x7d)](_0x40564d(0x80)+_0xc8f956+_0x40564d(0x8d));return{'datasetCode':_0xc8f956,'dblinkId':_0x324295,'table':_0x3a573b};}export async function resolveCrossRelationQuery(_0x4a9fcb){const _0x50df0a=a72_0x1733,_0x5db7d9=_0x4a9fcb[_0x50df0a(0x87)](_0x50df0a(0x76))[_0x50df0a(0xa3)](),_0x2bdcb2=explicitDblink(_0x4a9fcb),_0x4ad5a4=_0x5db7d9?await resolveEndpoint(_0x5db7d9):undefined;if(_0x4ad5a4&&_0x2bdcb2!==undefined&&_0x4ad5a4[_0x50df0a(0x94)]!==_0x2bdcb2)throw CliErrors[_0x50df0a(0x7d)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x33c3dc=_0x4ad5a4?.[_0x50df0a(0x94)]??_0x2bdcb2;if(_0x33c3dc===undefined)throw CliErrors[_0x50df0a(0x7d)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x4a9fcb[_0x50df0a(0xb7)],'fromDblinkId':_0x33c3dc,..._0x5db7d9?{'fromDatasetCode':_0x5db7d9}:{},..._0x4a9fcb['str'](_0x50df0a(0x82))[_0x50df0a(0xa3)]()?{'fromField':_0x4a9fcb[_0x50df0a(0x87)](_0x50df0a(0x82))[_0x50df0a(0xa3)]()}:{}};}export function projectCrossRelation(_0x6dc410){const _0x1cd7ac=a72_0x1733;return{'relationId':_0x6dc410[_0x1cd7ac(0x95)],'from':{'source':_0x1cd7ac(0xa5),'datasetCode':_0x6dc410[_0x1cd7ac(0xc3)],'datasetName':_0x6dc410[_0x1cd7ac(0x7e)],'dblinkId':_0x6dc410['fromDblinkId'],'table':_0x6dc410[_0x1cd7ac(0x8a)],'field':_0x6dc410['fromField']},'to':{'source':'DB_TABLE','datasetCode':_0x6dc410['toDatasetCode'],'datasetName':_0x6dc410[_0x1cd7ac(0x93)],'dblinkId':_0x6dc410[_0x1cd7ac(0xaa)],'table':_0x6dc410[_0x1cd7ac(0xb8)],'field':_0x6dc410[_0x1cd7ac(0x9d)],'labelField':_0x6dc410[_0x1cd7ac(0xb0)]},'relation':{'cardinality':_0x6dc410[_0x1cd7ac(0x99)],'relationType':_0x6dc410[_0x1cd7ac(0x98)]}};}function ambiguity(_0x15bcfd){const _0x2441df=a72_0x1733,_0x2c3c5b=CliErrors['validation'](_0x2441df(0xb6),_0x2441df(0xce));return Object[_0x2441df(0x9c)](_0x2c3c5b,_0x2441df(0x8c),{'value':{'candidates':_0x15bcfd['map'](projectCrossRelation)}}),_0x2c3c5b;}const sameName=(_0x2c0e7f,_0x441ac3)=>_0x2c0e7f[a72_0x107bd7(0xc6)]()===_0x441ac3['toLowerCase']();function a72_0x1733(_0x343a96,_0x865b95){_0x343a96=_0x343a96-0x75;const _0x40c1b5=a72_0x40c1();let _0x17336f=_0x40c1b5[_0x343a96];return _0x17336f;}function matchesEndpoint(_0x4d5773,_0x10fcea,_0x1bc6db,_0x1b6e24,_0x209bad){const _0x2820d6=a72_0x107bd7;return _0x4d5773[_0x2820d6(0x88)]===_0x10fcea[_0x2820d6(0x94)]&&sameName(_0x4d5773[_0x2820d6(0x8a)],_0x10fcea[_0x2820d6(0x9b)])&&sameName(_0x4d5773[_0x2820d6(0x8b)],_0x1bc6db)&&_0x4d5773[_0x2820d6(0xaa)]===_0x1b6e24[_0x2820d6(0x94)]&&sameName(_0x4d5773[_0x2820d6(0xb8)],_0x1b6e24['table'])&&sameName(_0x4d5773[_0x2820d6(0x9d)],_0x209bad);}export async function prepareCrossRelation(_0x424770,_0x5d15bd){const _0x7f7fbd=a72_0x107bd7,_0x1257e4=await resolveEndpoint(required(_0x424770,'from-datasetcode')),_0x62995b=explicitDblink(_0x424770);if(_0x62995b!==undefined&&_0x1257e4[_0x7f7fbd(0x94)]!==_0x62995b)throw CliErrors[_0x7f7fbd(0x7d)](_0x7f7fbd(0xa0));const _0x3cedab={'appCode':_0x424770[_0x7f7fbd(0xb7)],'fromDatasetCode':_0x1257e4[_0x7f7fbd(0x9f)],'fromField':required(_0x424770,_0x7f7fbd(0x82)),..._0x62995b!==undefined?{'fromDblinkId':_0x62995b}:{}},_0x3c33f1={'appCode':_0x424770[_0x7f7fbd(0xb7)],'fromDblinkId':_0x1257e4[_0x7f7fbd(0x94)],'fromDatasetCode':_0x1257e4[_0x7f7fbd(0x9f)],'fromField':_0x3cedab[_0x7f7fbd(0x8b)]},_0x44875a=await queryCrossDbRelations(_0x3c33f1);let _0xced112=null;if(_0x5d15bd!==_0x7f7fbd(0x7b)){if(_0x44875a['length']>0x1)throw ambiguity(_0x44875a);_0xced112=_0x44875a[0x0]??null;if(!_0xced112)throw CliErrors[_0x7f7fbd(0x7d)](_0x7f7fbd(0xba));}if(_0x5d15bd===_0x7f7fbd(0x75))return{'operation':_0x5d15bd,'from':_0x1257e4,'query':_0x3c33f1,'body':_0x3cedab,'before':_0xced112};const _0x3178b5=await resolveEndpoint(required(_0x424770,_0x7f7fbd(0xc7)));if(_0x1257e4[_0x7f7fbd(0x94)]===_0x3178b5['dblinkId'])throw CliErrors['validation'](_0x7f7fbd(0xc8));const _0x1dbfc7=_0x424770[_0x7f7fbd(0x87)](_0x7f7fbd(0x91))[_0x7f7fbd(0xa3)](),_0x1cd7b9=_0x424770[_0x7f7fbd(0x87)](_0x7f7fbd(0x99))['trim'](),_0x59d5f1={..._0x3cedab,'toDatasetCode':_0x3178b5[_0x7f7fbd(0x9f)],'toField':required(_0x424770,_0x7f7fbd(0x85)),..._0x1dbfc7?{'refTableLabelName':_0x1dbfc7}:{},..._0x1cd7b9?{'cardinality':_0x1cd7b9}:{}};if(_0x44875a[_0x7f7fbd(0xbe)](_0x54e1a5=>_0x54e1a5['relationId']!==_0xced112?.[_0x7f7fbd(0x95)]&&matchesEndpoint(_0x54e1a5,_0x1257e4,_0x59d5f1[_0x7f7fbd(0x8b)],_0x3178b5,_0x59d5f1[_0x7f7fbd(0x9d)])))throw CliErrors[_0x7f7fbd(0x7d)](_0x7f7fbd(0x7f));return{'operation':_0x5d15bd,'from':_0x1257e4,'to':_0x3178b5,'query':_0x3c33f1,'body':_0x59d5f1,'before':_0xced112,'expectedLabel':_0x1dbfc7||_0xced112?.[_0x7f7fbd(0xb0)]||_0x59d5f1[_0x7f7fbd(0x9d)],'expectedCardinality':_0x1cd7b9||_0xced112?.['cardinality']||null};}function mutationData(_0x1cc994,_0x3afd1c,_0x53c96d){const _0x40136d=a72_0x107bd7,{operation:_0x34883b,body:_0x71cec3,before:_0x237e1f}=_0x1cc994;return{'operation':_0x34883b,'selector':{'appCode':_0x71cec3[_0x40136d(0xb7)],'from':{'datasetCode':_0x71cec3[_0x40136d(0xc3)],'field':_0x71cec3['fromField'],'dblinkId':_0x1cc994[_0x40136d(0xc2)][_0x40136d(0x94)]}},'before':_0x237e1f?projectCrossRelation(_0x237e1f):null,'after':_0x53c96d,'dryRun':_0x3afd1c,'backend':{'method':_0x40136d(0x96),'path':CROSS_DB_RELATION_PATHS[_0x34883b]},'warnings':_0x34883b==='update'&&!_0x71cec3['refTableLabelName']?[{'code':_0x40136d(0x86),'message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x3b2403,_0x2460ee){const _0x20933d=a72_0x107bd7,_0xc5ee0f=await prepareCrossRelation(_0x3b2403,_0x2460ee),_0x26dd0d=_0xc5ee0f['body'],_0x2b5f8b=_0x2460ee==='delete'?null:{..._0xc5ee0f[_0x20933d(0xa1)]?{'relationId':_0xc5ee0f[_0x20933d(0xa1)][_0x20933d(0x95)]}:{},'from':{'datasetCode':_0xc5ee0f[_0x20933d(0xc2)][_0x20933d(0x9f)],'dblinkId':_0xc5ee0f['from']['dblinkId'],'table':_0xc5ee0f[_0x20933d(0xc2)][_0x20933d(0x9b)],'field':_0x26dd0d['fromField']},'to':{'datasetCode':_0xc5ee0f['to']['datasetCode'],'dblinkId':_0xc5ee0f['to'][_0x20933d(0x94)],'table':_0xc5ee0f['to'][_0x20933d(0x9b)],'field':_0x26dd0d['toField'],'labelField':_0xc5ee0f[_0x20933d(0xa4)]},'relation':{'cardinality':_0xc5ee0f[_0x20933d(0xab)],'relationType':0x2}};return{...mutationData(_0xc5ee0f,!![],null),'after':_0x2b5f8b,'method':_0x20933d(0x96),'url':CROSS_DB_RELATION_PATHS[_0x2460ee],'body':_0xc5ee0f[_0x20933d(0xac)],'description':_0x20933d(0x92)+_0x2460ee+_0x20933d(0x8e)+_0x26dd0d[_0x20933d(0xc3)]+'.'+_0x26dd0d['fromField']};}export async function executeCrossRelation(_0x3faeb9,_0x10bbb5,_0x1d0961){const _0x4932c9=a72_0x107bd7,_0x36c796=await prepareCrossRelation(_0x3faeb9,_0x10bbb5);try{await _0x1d0961(_0x36c796['body']);}catch(_0x2ddc29){if(_0x2ddc29 instanceof CliError&&_0x2ddc29[_0x4932c9(0xbb)]['includes'](_0x4932c9(0xcc))){const _0x1975c1=await queryCrossDbRelations(_0x36c796[_0x4932c9(0x83)])[_0x4932c9(0x9a)](()=>[]);throw ambiguity(_0x1975c1);}throw _0x2ddc29;}let _0x3780e6=[],_0xaf90de,_0x46e9c4=![];try{_0x3780e6=await queryCrossDbRelations(_0x36c796[_0x4932c9(0x83)]);if(_0x10bbb5===_0x4932c9(0x75))_0x46e9c4=!_0x3780e6[_0x4932c9(0xbe)](_0x3d66ee=>_0x3d66ee[_0x4932c9(0x95)]===_0x36c796['before'][_0x4932c9(0x95)]);else{const _0x4fdf71=_0x36c796[_0x4932c9(0xac)],_0x2ee255=_0x3780e6['filter'](_0x1ab27b=>matchesEndpoint(_0x1ab27b,_0x36c796[_0x4932c9(0xc2)],_0x4fdf71[_0x4932c9(0x8b)],_0x36c796['to'],_0x4fdf71[_0x4932c9(0x9d)])&&(_0x10bbb5===_0x4932c9(0x7b)||_0x1ab27b[_0x4932c9(0x95)]===_0x36c796[_0x4932c9(0xa1)][_0x4932c9(0x95)]));_0xaf90de=_0x2ee255[_0x4932c9(0xb9)]===0x1?_0x2ee255[0x0]:undefined,_0x46e9c4=!!_0xaf90de&&_0xaf90de['refTableLabelName']===_0x36c796['expectedLabel']&&_0xaf90de['cardinality']===_0x36c796[_0x4932c9(0xab)]&&_0xaf90de[_0x4932c9(0x98)]===0x2;}}catch{}const _0x58697c={...mutationData(_0x36c796,![],_0xaf90de?projectCrossRelation(_0xaf90de):null),'verification':{'status':_0x46e9c4?_0x4932c9(0xbd):_0x4932c9(0x7a),'verified':_0x46e9c4}};if(!_0x46e9c4){const _0x4117d6=CliErrors[_0x4932c9(0xbc)](_0x4932c9(0xb3)+_0x10bbb5+_0x4932c9(0x79),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object['defineProperty'](_0x4117d6,_0x4932c9(0x8c),{'value':{..._0x58697c,'candidates':_0x3780e6[_0x4932c9(0xcb)](projectCrossRelation)}});throw _0x4117d6;}return{'ok':!![],'data':_0x58697c,'message':_0x4932c9(0xb3)+_0x10bbb5+_0x4932c9(0xc0)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x123f12=a73_0x3166;(function(_0x379552,_0x4885b3){const _0x37d07b=a73_0x3166,_0x5e372f=_0x379552();while(!![]){try{const _0x5eed6b=-parseInt(_0x37d07b(0x196))/0x1+parseInt(_0x37d07b(0x199))/0x2*(-parseInt(_0x37d07b(0x18f))/0x3)+-parseInt(_0x37d07b(0x18d))/0x4+parseInt(_0x37d07b(0x198))/0x5*(parseInt(_0x37d07b(0x190))/0x6)+-parseInt(_0x37d07b(0x19a))/0x7*(-parseInt(_0x37d07b(0x191))/0x8)+-parseInt(_0x37d07b(0x195))/0x9+parseInt(_0x37d07b(0x197))/0xa;if(_0x5eed6b===_0x4885b3)break;else _0x5e372f['push'](_0x5e372f['shift']());}catch(_0x55acd3){_0x5e372f['push'](_0x5e372f['shift']());}}}(a73_0xe735,0xd46b5));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x3166(_0x3330f0,_0x4f7447){_0x3330f0=_0x3330f0-0x18d;const _0xe73537=a73_0xe735();let _0x316659=_0xe73537[_0x3330f0];return _0x316659;}function a73_0xe735(){const _0x518862=['3901910eisTWc','2628750RSgRvf','47159bzOJQQ','2663540ieGazR','dataset','3DNgguS','6XgTOfg','1544YsLIpG','cross-relation-update','update','write','12359043YRAuNy','286137slyBIM','24290700SOGyMy'];a73_0xe735=function(){return _0x518862;};return a73_0xe735();}import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationUpdate={'service':a73_0x123f12(0x18e),'command':a73_0x123f12(0x192),'description':'Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a73_0x123f12(0x194),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x1c0f1f=>validateCrossRelation(_0x1c0f1f,a73_0x123f12(0x193)),'dryRun':_0x5a1445=>previewCrossRelation(_0x5a1445,a73_0x123f12(0x193)),'execute':_0x14b936=>executeCrossRelation(_0x14b936,'update',updateCrossDbRelation)};
|