@lovrabet/rabetbase-cli 2.5.9-beta.1 → 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_0x4f5b8f=a65_0x2e94;(function(_0xe6a949,_0x3096b9){const _0x41a864=a65_0x2e94,_0x36c75c=_0xe6a949();while(!![]){try{const _0x259d2e=-parseInt(_0x41a864(0x1fc))/0x1+parseInt(_0x41a864(0x1aa))/0x2+-parseInt(_0x41a864(0x1bc))/0x3*(parseInt(_0x41a864(0x1bf))/0x4)+-parseInt(_0x41a864(0x1ac))/0x5*(-parseInt(_0x41a864(0x1e1))/0x6)+parseInt(_0x41a864(0x1f5))/0x7+parseInt(_0x41a864(0x1a1))/0x8*(parseInt(_0x41a864(0x191))/0x9)+-parseInt(_0x41a864(0x1bb))/0xa;if(_0x259d2e===_0x3096b9)break;else _0x36c75c['push'](_0x36c75c['shift']());}catch(_0x2228a1){_0x36c75c['push'](_0x36c75c['shift']());}}}(a65_0x2d22,0xd2a22));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x4f5b8f(0x1bd),a65_0x4f5b8f(0x1ed)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x4f5b8f(0x1cf),a65_0x4f5b8f(0x1c0),a65_0x4f5b8f(0x1d7),a65_0x4f5b8f(0x1ce),a65_0x4f5b8f(0x1a5),'MULTI_SELECT',a65_0x4f5b8f(0x1d1),a65_0x4f5b8f(0x198),a65_0x4f5b8f(0x1d5),a65_0x4f5b8f(0x1b9)]);export function isDatasetBatchDesign(_0x10528c){const _0x49419b=a65_0x4f5b8f;return isObject(_0x10528c)&&_0x10528c[_0x49419b(0x1a8)]===_0x49419b(0x190);}export function validateDatasetBatchDesign(_0x3d77c8){const _0x5e0812=a65_0x4f5b8f;(!isObject(_0x3d77c8)||_0x3d77c8['kind']!==_0x5e0812(0x190))&&fail(_0x5e0812(0x1ab));_0x3d77c8['schemaVersion']!==0x1&&fail(_0x5e0812(0x193));const _0x370e73=objectArray(_0x3d77c8[_0x5e0812(0x1a4)],_0x5e0812(0x1a4),0x1,0x14),_0x1a5afe=objectArray(_0x3d77c8[_0x5e0812(0x1a7)],_0x5e0812(0x1a7),0x0,0xc8),_0x3307a1=objectArray(_0x3d77c8[_0x5e0812(0x195)],_0x5e0812(0x195),0x0,0xc8),_0x1af27c=new Set(),_0x5c7042=new Map();for(const [_0x55bc44,_0x269412]of _0x370e73['entries']()){const _0x24e1f6=requiredString(_0x269412[_0x5e0812(0x1c7)],'datasets['+_0x55bc44+_0x5e0812(0x1c5));!LOCAL_KEY[_0x5e0812(0x1c8)](_0x24e1f6)&&fail(_0x5e0812(0x199)+_0x55bc44+_0x5e0812(0x19a)+LOCAL_KEY[_0x5e0812(0x1de)]+'.');_0x1af27c['has'](_0x24e1f6)&&fail(_0x5e0812(0x1d9));_0x1af27c[_0x5e0812(0x1da)](_0x24e1f6);!isObject(_0x269412[_0x5e0812(0x1dc)])&&fail(_0x5e0812(0x199)+_0x55bc44+_0x5e0812(0x1ca));rejectServerDatasetIdentity(_0x269412[_0x5e0812(0x1dc)],_0x5e0812(0x199)+_0x55bc44+_0x5e0812(0x1e5));if(!isObject(_0x269412['design'][_0x5e0812(0x1dd)]))fail(_0x5e0812(0x199)+_0x55bc44+_0x5e0812(0x1c4));rejectServerDatasetIdentity(_0x269412[_0x5e0812(0x1dc)][_0x5e0812(0x1dd)],_0x5e0812(0x199)+_0x55bc44+'].design.dataset'),requiredString(_0x269412[_0x5e0812(0x1dc)]['dataset'][_0x5e0812(0x19c)],'datasets['+_0x55bc44+_0x5e0812(0x1b6));'relations'in _0x269412['design']&&(!Array[_0x5e0812(0x1c3)](_0x269412[_0x5e0812(0x1dc)][_0x5e0812(0x1a7)])||_0x269412['design'][_0x5e0812(0x1a7)][_0x5e0812(0x197)]!==0x0)&&fail(_0x5e0812(0x199)+_0x55bc44+'].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.');const _0xd6038a=objectArray(_0x269412[_0x5e0812(0x1dc)][_0x5e0812(0x1e6)],_0x5e0812(0x199)+_0x55bc44+_0x5e0812(0x192),0x1,0xc8),_0x4f453b=new Map();for(const [_0x285ce1,_0x5c2f81]of _0xd6038a[_0x5e0812(0x1b7)]()){const _0x487aab=fieldName(_0x5c2f81);if(!_0x487aab)fail(_0x5e0812(0x199)+_0x55bc44+_0x5e0812(0x1e9)+_0x285ce1+']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.');const _0x3810d6=_0x487aab['toLowerCase']();if(_0x4f453b[_0x5e0812(0x1c6)](_0x3810d6))fail(_0x5e0812(0x1e8)+_0x24e1f6+_0x5e0812(0x1f1));const _0x460bd6=stringValue(_0x5c2f81['type']??_0x5c2f81[_0x5e0812(0x1eb)])['toUpperCase']();if(!SUPPORTED_FIELD_TYPES[_0x5e0812(0x1c6)](_0x460bd6))fail(_0x5e0812(0x199)+_0x55bc44+'].design.fields['+_0x285ce1+'].type\x20is\x20not\x20supported.');_0x4f453b[_0x5e0812(0x1cc)](_0x3810d6,_0x460bd6),[_0x5c2f81[_0x5e0812(0x1f8)],_0x5c2f81[_0x5e0812(0x1fa)],_0x5c2f81['refTableLabelField']][_0x5e0812(0x1ec)](_0x2dfb5d=>stringValue(_0x2dfb5d))&&fail('datasets['+_0x55bc44+_0x5e0812(0x1e9)+_0x285ce1+']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.');}_0x5c7042[_0x5e0812(0x1cc)](_0x24e1f6,_0x4f453b);}const _0x5608f9=new Set(),_0x22294e=new Set();for(const [_0x555fcb,_0x1ca0e1]of _0x1a5afe[_0x5e0812(0x1b7)]()){const _0x388e3d=validateRelation(_0x1ca0e1,_0x555fcb,_0x1af27c,_0x5c7042);if(_0x5608f9['has'](_0x388e3d))fail(_0x5e0812(0x1ad));_0x5608f9[_0x5e0812(0x1da)](_0x388e3d);const _0x582519=_0x388e3d[_0x5e0812(0x1e0)]('\x00',0x2)[_0x5e0812(0x1cd)]('\x00');if(_0x22294e[_0x5e0812(0x1c6)](_0x582519))fail(_0x5e0812(0x1fb));_0x22294e[_0x5e0812(0x1da)](_0x582519);}for(const [_0x43e467,_0x28eb28]of _0x3307a1[_0x5e0812(0x1b7)]()){requiredString(_0x28eb28[_0x5e0812(0x1b2)],_0x5e0812(0x1ba)+_0x43e467+_0x5e0812(0x1d3)),validateConfidence(_0x28eb28[_0x5e0812(0x18f)],_0x5e0812(0x1ba)+_0x43e467+_0x5e0812(0x1b3));}return _0x3d77c8;}export function reconcileBatchResult(_0x23812b){const _0x364f2a=a65_0x4f5b8f;if(!isObject(_0x23812b))return null;try{const _0x2dee03=stringArray(_0x23812b[_0x364f2a(0x19f)],_0x364f2a(0x19f),0x1,0x14),_0x3a9576=new Set(_0x2dee03);if(_0x3a9576[_0x364f2a(0x1d2)]!==_0x2dee03[_0x364f2a(0x197)]||_0x2dee03[_0x364f2a(0x1ec)](_0x10af9d=>!LOCAL_KEY[_0x364f2a(0x1c8)](_0x10af9d)))return null;const _0x41d754=objectArray(_0x23812b[_0x364f2a(0x1b8)],_0x364f2a(0x1b8),0x1,0x14),_0x3a6260=new Map(),_0x24a3cd=new Set();for(const _0x5597d7 of _0x41d754){const _0x3e1912=requiredString(_0x5597d7['localKey'],_0x364f2a(0x1ea)),_0x3b7ac7=requiredString(_0x5597d7['code']??_0x5597d7[_0x364f2a(0x1f2)],_0x364f2a(0x1f4));if(_0x3a6260[_0x364f2a(0x1c6)](_0x3e1912)||_0x24a3cd[_0x364f2a(0x1c6)](_0x3b7ac7))return null;_0x3a6260['set'](_0x3e1912,_0x3b7ac7),_0x24a3cd[_0x364f2a(0x1da)](_0x3b7ac7);}if(!sameSet(_0x3a9576,new Set(_0x3a6260[_0x364f2a(0x1ef)]())))return null;const _0x419ec7=objectArray(_0x23812b[_0x364f2a(0x1ee)],_0x364f2a(0x1ee),0x0,0xc8),_0x1d4fd3=objectArray(_0x23812b[_0x364f2a(0x1b5)],_0x364f2a(0x1b5),0x0,0xc8),_0x39fa45=relationTupleSet(_0x419ec7,![],_0x3a6260),_0x3ddac4=relationTupleSet(_0x1d4fd3,!![],_0x3a6260);if(!_0x39fa45||!_0x3ddac4||!sameSet(_0x39fa45,_0x3ddac4))return null;const _0x37d438=objectArray(_0x23812b['unresolvedRelations'],_0x364f2a(0x195),0x0,0xc8);return{'expectedLocalKeys':_0x2dee03,'expectedRelations':_0x419ec7,'createdDatasets':_0x41d754,'createdRelations':_0x1d4fd3,'unresolvedRelations':_0x37d438,...isObject(_0x23812b[_0x364f2a(0x19b)])?{'metrics':_0x23812b[_0x364f2a(0x19b)]}:{}};}catch{return null;}}function validateRelation(_0x49c42f,_0x22ccff,_0x1386f2,_0x3c34b8){const _0x534417=a65_0x4f5b8f,_0x1d6882='relations['+_0x22ccff+']',_0x2bdc1f=requiredString(_0x49c42f['fromDatasetKey'],_0x1d6882+'.fromDatasetKey'),_0x4b710a=requiredString(_0x49c42f[_0x534417(0x1a3)],_0x1d6882+_0x534417(0x1fd)),_0x556138=requiredString(_0x49c42f['fromField'],_0x1d6882+'.fromField')['toLowerCase'](),_0xb07bcf=requiredString(_0x49c42f[_0x534417(0x1df)],_0x1d6882+_0x534417(0x1f3))['toLowerCase']();if(!_0x1386f2[_0x534417(0x1c6)](_0x2bdc1f)||!_0x1386f2['has'](_0x4b710a))fail(_0x1d6882+_0x534417(0x19e));const _0x1ed96e=_0x3c34b8[_0x534417(0x1d0)](_0x2bdc1f)?.[_0x534417(0x1d0)](_0x556138),_0xa6227c=_0x3c34b8[_0x534417(0x1d0)](_0x4b710a)?.[_0x534417(0x1d0)](_0xb07bcf);if(_0x1ed96e===undefined||_0xa6227c===undefined)fail(_0x1d6882+'\x20references\x20an\x20unknown\x20field.');if(_0x1ed96e&&_0xa6227c&&_0x1ed96e!==_0xa6227c)fail(_0x1d6882+_0x534417(0x1be));const _0x489d61=stringValue(_0x49c42f[_0x534417(0x1a9)])||'lookup';if(_0x489d61!==_0x534417(0x1e7))fail(_0x1d6882+_0x534417(0x1d8));const _0x406bc9=stringValue(_0x49c42f[_0x534417(0x1a0)])||_0x534417(0x1bd);if(!SUPPORTED_CARDINALITIES[_0x534417(0x1c6)](_0x406bc9))fail(_0x1d6882+_0x534417(0x194));return requiredString(_0x49c42f[_0x534417(0x1b2)],_0x1d6882+_0x534417(0x1b4)),validateConfidence(_0x49c42f['confidence'],_0x1d6882+_0x534417(0x1c9)),tuple(_0x2bdc1f,_0x556138,_0x4b710a,_0xb07bcf,'lookup',_0x406bc9);}function relationTupleSet(_0x13d41e,_0x2ddf82,_0x4f480a){const _0x57a891=a65_0x4f5b8f,_0x27d741=new Set();for(const _0x8dd25d of _0x13d41e){const _0xc064a2=stringValue(_0x8dd25d[_0x57a891(0x1e2)]),_0x56947c=stringValue(_0x8dd25d[_0x57a891(0x1a3)]),_0x1c06e=stringValue(_0x8dd25d[_0x57a891(0x1af)])[_0x57a891(0x1b0)](),_0x594998=stringValue(_0x8dd25d[_0x57a891(0x1df)])[_0x57a891(0x1b0)](),_0x156f23=stringValue(_0x8dd25d[_0x57a891(0x1a9)]),_0x19e1c5=stringValue(_0x8dd25d['cardinality']);if(!_0xc064a2||!_0x56947c||!_0x1c06e||!_0x594998||_0x156f23!==_0x57a891(0x1e7)||!SUPPORTED_CARDINALITIES['has'](_0x19e1c5))return null;if(!_0x4f480a['has'](_0xc064a2)||!_0x4f480a['has'](_0x56947c))return null;if(_0x2ddf82&&(stringValue(_0x8dd25d['fromDatasetCode'])!==_0x4f480a['get'](_0xc064a2)||stringValue(_0x8dd25d[_0x57a891(0x1d4)])!==_0x4f480a[_0x57a891(0x1d0)](_0x56947c)))return null;const _0x14d54b=tuple(_0xc064a2,_0x1c06e,_0x56947c,_0x594998,_0x156f23,_0x19e1c5);if(_0x27d741['has'](_0x14d54b))return null;_0x27d741['add'](_0x14d54b);}return _0x27d741;}function rejectServerDatasetIdentity(_0x416c3f,_0x2ec1a7){const _0x21cbff=a65_0x4f5b8f;for(const _0x296922 of['id',_0x21cbff(0x1c1),'modelId',_0x21cbff(0x196),_0x21cbff(0x1f2),_0x21cbff(0x1e4)]){if(_0x416c3f[_0x296922]!==undefined&&_0x416c3f[_0x296922]!==null&&_0x416c3f[_0x296922]!=='')fail(_0x2ec1a7+'.'+_0x296922+_0x21cbff(0x1c2));}}function objectArray(_0x1bd7e6,_0x48fb80,_0x253d08,_0x2b15f3){const _0x574e82=a65_0x4f5b8f;return(!Array[_0x574e82(0x1c3)](_0x1bd7e6)||_0x1bd7e6[_0x574e82(0x197)]<_0x253d08||_0x1bd7e6[_0x574e82(0x197)]>_0x2b15f3||_0x1bd7e6['some'](_0x2e6cb2=>!isObject(_0x2e6cb2)))&&fail(_0x48fb80+_0x574e82(0x1db)+_0x253d08+'..'+_0x2b15f3+_0x574e82(0x1d6)),_0x1bd7e6;}function stringArray(_0x6c3e6d,_0x1343b2,_0x5e81c7,_0x1c0633){const _0x276941=a65_0x4f5b8f;return(!Array[_0x276941(0x1c3)](_0x6c3e6d)||_0x6c3e6d[_0x276941(0x197)]<_0x5e81c7||_0x6c3e6d[_0x276941(0x197)]>_0x1c0633||_0x6c3e6d[_0x276941(0x1ec)](_0x4743c3=>typeof _0x4743c3!==_0x276941(0x19d)||!_0x4743c3[_0x276941(0x1a2)]()))&&fail(_0x1343b2+_0x276941(0x1db)+_0x5e81c7+'..'+_0x1c0633+_0x276941(0x1f7)),_0x6c3e6d;}function requiredString(_0x45891e,_0x2611d5){const _0x406274=a65_0x4f5b8f,_0x3918e4=stringValue(_0x45891e);if(!_0x3918e4)fail(_0x2611d5+_0x406274(0x1f6));return _0x3918e4;}function stringValue(_0x4b7cc4){const _0x566ba6=a65_0x4f5b8f;return typeof _0x4b7cc4===_0x566ba6(0x19d)?_0x4b7cc4[_0x566ba6(0x1a2)]():'';}function a65_0x2e94(_0x24e48c,_0x41bc77){_0x24e48c=_0x24e48c-0x18f;const _0x2d2245=a65_0x2d22();let _0x2e941c=_0x2d2245[_0x24e48c];return _0x2e941c;}function fieldName(_0x476731){const _0x586c3d=a65_0x4f5b8f;return stringValue(_0x476731[_0x586c3d(0x196)]??_0x476731[_0x586c3d(0x1f0)]??_0x476731[_0x586c3d(0x1a6)]??_0x476731[_0x586c3d(0x1ae)]);}function a65_0x2d22(){const _0x199863=['fieldCode','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','datasetCode','.toField','createdDatasets[].code','2121280UYtvPy','\x20is\x20required.','\x20non-empty\x20strings.','refTable','map','refTableField','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','911688uWjvvF','.toDatasetKey','confidence','dataset-batch','2060109XOkNGW','].design.fields','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','.cardinality\x20is\x20not\x20supported.','unresolvedRelations','code','length','USER','datasets[','].localKey\x20must\x20match\x20','metrics','datasetName','string','\x20references\x20an\x20unknown\x20dataset\x20localKey.','expectedLocalKeys','cardinality','8qmOBZo','trim','toDatasetKey','datasets','SELECT','name','relations','kind','relationType','2335078IJdyXJ','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','193940idqVan','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','fieldName','fromField','toLowerCase','isFinite','reason','].confidence','.reason','createdRelations','].design.dataset.datasetName','entries','createdDatasets','UPLOAD','unresolvedRelations[','8642970HBroyX','243vTzcAT','MANY_TO_ONE','\x20connects\x20incompatible\x20field\x20types.','12996FBUtnQ','NUMBER','datasetId','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','isArray','].design.dataset\x20must\x20be\x20an\x20object.','].localKey','has','localKey','test','.confidence','].design\x20must\x20be\x20an\x20object.','object','set','join','BOOLEAN','TEXT','get','DATE_RANGE','size','].reason','toDatasetCode','ADDRESS','\x20objects.','DATETIME','.relationType\x20must\x20be\x20\x22lookup\x22.','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','add','\x20must\x20contain\x20','design','dataset','source','toField','split','186evUCzO','fromDatasetKey','\x20must\x20be\x20between\x200\x20and\x201.','modelCode','].design','fields','lookup','Dataset\x20','].design.fields[','createdDatasets[].localKey','fieldType','some','ONE_TO_ONE','expectedRelations','keys'];a65_0x2d22=function(){return _0x199863;};return a65_0x2d22();}function validateConfidence(_0x2827b6,_0x5a291e){const _0x93df00=a65_0x4f5b8f;_0x2827b6!==undefined&&_0x2827b6!==null&&(typeof _0x2827b6!=='number'||!Number[_0x93df00(0x1b1)](_0x2827b6)||_0x2827b6<0x0||_0x2827b6>0x1)&&fail(_0x5a291e+_0x93df00(0x1e3));}function tuple(..._0x4dfa46){const _0x3c8c56=a65_0x4f5b8f;return _0x4dfa46[_0x3c8c56(0x1f9)]((_0xfaf771,_0x21a18d)=>_0x21a18d===0x1||_0x21a18d===0x3?_0xfaf771['toLowerCase']():_0xfaf771)['join']('\x00');}function sameSet(_0x26774f,_0x8bed32){const _0x573802=a65_0x4f5b8f;return _0x26774f[_0x573802(0x1d2)]===_0x8bed32[_0x573802(0x1d2)]&&[..._0x26774f]['every'](_0x4d026f=>_0x8bed32[_0x573802(0x1c6)](_0x4d026f));}function isObject(_0x5f1fad){const _0x471a0b=a65_0x4f5b8f;return typeof _0x5f1fad===_0x471a0b(0x1cb)&&_0x5f1fad!==null&&!Array[_0x471a0b(0x1c3)](_0x5f1fad);}function fail(_0x22cdc0){throw CliErrors['validation'](_0x22cdc0);}
|
|
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_0x3443e7=a66_0x2e67;(function(_0x5ba4f8,_0x4e0134){const _0x394382=a66_0x2e67,_0x1ec958=_0x5ba4f8();while(!![]){try{const _0x3e6f6c=-parseInt(_0x394382(0x1f9))/0x1*(-parseInt(_0x394382(0x230))/0x2)+-parseInt(_0x394382(0x234))/0x3*(parseInt(_0x394382(0x227))/0x4)+-parseInt(_0x394382(0x22d))/0x5+-parseInt(_0x394382(0x1fd))/0x6+-parseInt(_0x394382(0x231))/0x7*(-parseInt(_0x394382(0x1f7))/0x8)+-parseInt(_0x394382(0x233))/0x9+parseInt(_0x394382(0x212))/0xa*(parseInt(_0x394382(0x1f2))/0xb);if(_0x3e6f6c===_0x4e0134)break;else _0x1ec958['push'](_0x1ec958['shift']());}catch(_0x161656){_0x1ec958['push'](_0x1ec958['shift']());}}}(a66_0x3d81,0xd1447));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_0x3443e7(0x208),METADATA_BACKEND_PATH=a66_0x3443e7(0x21c),UNGROUPED_BUSINESS_GROUP=a66_0x3443e7(0x1f8);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1edfbc,input:_0x24bd35,dryRun:_0x3cf8a4}){const _0x11423a=a66_0x3443e7;validateInput(_0x24bd35);const _0x318b9b=normalizeBusinessGroupArgument(_0x24bd35[_0x11423a(0x1f6)]),_0x3bffb0=await getDatasetDetail(_0x24bd35[_0x11423a(0x202)]),_0x4d3aa3=resolveBusinessGroupDataset(_0x3bffb0,_0x24bd35['code']);assertBusinessGroupUpdateSupported(_0x4d3aa3,_0x318b9b);const _0x7440f3=loadCurrentBusinessGroup(_0x3bffb0,_0x4d3aa3);assertExpectedBusinessGroup(_0x7440f3,_0x24bd35[_0x11423a(0x1f0)]);const _0x67dcbc=buildBackendPlan(_0x1edfbc,_0x4d3aa3,_0x318b9b),_0x3945e5=_0x7440f3!==_0x318b9b;let _0x153768;if(_0x3945e5&&!_0x3cf8a4){_0x67dcbc[_0x11423a(0x229)]===_0x11423a(0x200)?await updateDbTableBusinessGroup(_0x67dcbc[_0x11423a(0x21d)]):await updateErBusinessGroup(_0x67dcbc[_0x11423a(0x21d)]);const _0x5ef8a8=await getDatasetDetail(_0x4d3aa3[_0x11423a(0x202)]),_0xcbc83c=resolveBusinessGroupDataset(_0x5ef8a8,_0x4d3aa3['code']),_0x2003e6=loadCurrentBusinessGroup(_0x5ef8a8,_0xcbc83c);if(_0x2003e6!==_0x318b9b)throw CliErrors['apiError'](_0x11423a(0x21f),_0x11423a(0x1f1)+JSON['stringify'](displayBusinessGroup(_0x318b9b))+_0x11423a(0x20c)+JSON[_0x11423a(0x213)](displayBusinessGroup(_0x2003e6))+'.');_0x153768={'verified':!![],'status':_0x11423a(0x22e),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2003e6)}};}else!_0x3945e5&&(_0x153768={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x7440f3)}});const _0x26fa75={'operation':_0x11423a(0x1f3),'appCode':_0x1edfbc,'selector':{'code':_0x4d3aa3[_0x11423a(0x202)]},'dataset':{'id':_0x4d3aa3['id'],'code':_0x4d3aa3[_0x11423a(0x202)],'name':_0x4d3aa3['name'],'sourceType':_0x4d3aa3[_0x11423a(0x21a)]},'before':{'businessGroup':displayBusinessGroup(_0x7440f3)},'after':{'businessGroup':displayBusinessGroup(_0x318b9b)},'changed':_0x3945e5,'dryRun':_0x3cf8a4,'submitted':_0x3945e5&&!_0x3cf8a4,'backend':{'method':_0x67dcbc[_0x11423a(0x216)],'path':_0x67dcbc[_0x11423a(0x221)],'payload':_0x67dcbc[_0x11423a(0x21d)]},..._0x153768?{'verification':_0x153768}:{},'warnings':[]};return{'ok':!![],'data':_0x26fa75,'message':_0x3945e5?_0x3cf8a4?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x4d3aa3['code']:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x4d3aa3[_0x11423a(0x202)]:_0x11423a(0x20b)+_0x4d3aa3[_0x11423a(0x202)]};}export const datasetBusinessGroupUpdate={'service':a66_0x3443e7(0x1ec),'command':a66_0x3443e7(0x201),'description':a66_0x3443e7(0x223),'risk':a66_0x3443e7(0x1ff),'flags':[CODE_FLAG,{'name':a66_0x3443e7(0x205),'type':a66_0x3443e7(0x211),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it'},{'name':a66_0x3443e7(0x1fb),'type':a66_0x3443e7(0x211),'required':![],'description':a66_0x3443e7(0x1fe)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x133f09){validateInput(readBusinessGroupUpdateInput(_0x133f09));},async 'dryRun'(_0x5ed9cf){const _0x3b6864=a66_0x3443e7,_0x78b58d=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x5ed9cf['appCode'],'input':readBusinessGroupUpdateInput(_0x5ed9cf),'dryRun':!![]});return{'method':_0x78b58d[_0x3b6864(0x22f)][_0x3b6864(0x206)][_0x3b6864(0x216)],'url':_0x78b58d['data']['backend'][_0x3b6864(0x221)],'body':_0x78b58d[_0x3b6864(0x22f)][_0x3b6864(0x206)][_0x3b6864(0x21d)],'description':_0x78b58d['message'],..._0x78b58d[_0x3b6864(0x22f)]};},async 'execute'(_0x118817){const _0x3f0d8c=a66_0x3443e7;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x118817[_0x3f0d8c(0x22c)],'input':readBusinessGroupUpdateInput(_0x118817),'dryRun':![]});}};function a66_0x3d81(){const _0x70ecdd=['matched','data','28862Bvvoxr','2324154pGSFLx','isFinite','4817313gQxfQp','3161061iQgfzs','name','dataset','tableName','source','keys','expectBusinessGroup','Expected\x20','11VWgQpo','update','toUpperCase','value','businessGroup','32kVYFAa','ungrouped','2qOamow','dbLinkId','expect-business-group','METADATA','9922848ajjqbf','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','write','db-table','business-group-update','code','found','number','business-group','backend','datasetId','/smartapi/dblink/updateTableBusinessGroup','dbId','datasetName','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20',',\x20actual\x20','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','Expectation\x20mismatch\x20at\x20businessGroup','prototype','metadata','string','31817010GfEhTn','stringify','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','str','method','POST','--business-group\x20must\x20not\x20be\x20blank','extend','sourceType','length','/smartapi/question/er-config/business-group/edit','payload','dbTableSelector','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','modelId','path','DB_TABLE','Update\x20business\x20scenario\x20group','trim','hasOwnProperty','modelCode','4cNnhwb','call','kind','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','validation','appCode','2193700wsbuSc'];a66_0x3d81=function(){return _0x70ecdd;};return a66_0x3d81();}function readBusinessGroupUpdateInput(_0x20b98f){const _0xf6db09=a66_0x3443e7,_0x295732=_0x20b98f[_0xf6db09(0x215)]('expect-business-group');return{'code':trim(_0x20b98f['str'](_0xf6db09(0x202))),'businessGroup':_0x20b98f[_0xf6db09(0x215)]('business-group'),'expectBusinessGroup':_0x295732===undefined||_0x295732===''?undefined:_0x295732};}function validateInput(_0x528b16){const _0xaf65fb=a66_0x3443e7;if(!trim(_0x528b16[_0xaf65fb(0x202)]))throw CliErrors[_0xaf65fb(0x22b)]('--code\x20is\x20required');if(_0x528b16[_0xaf65fb(0x1f6)]===undefined)throw CliErrors['validation']('--business-group\x20is\x20required');if(!trim(_0x528b16[_0xaf65fb(0x1f6)]))throw CliErrors[_0xaf65fb(0x22b)](_0xaf65fb(0x218));}function assertBusinessGroupUpdateSupported(_0x57c9bd,_0x151e2d){const _0xcd4fb4=a66_0x3443e7;if(_0x57c9bd[_0xcd4fb4(0x21a)]===_0xcd4fb4(0x222)&&!_0x151e2d)throw CliErrors[_0xcd4fb4(0x22b)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x424c19,_0x4a768a){const _0x210c3f=a66_0x3443e7,_0x2b200a=asPlainObject(_0x424c19[_0x210c3f(0x1ec)]),_0x4c8452=asPlainObject(_0x424c19['dbtableConfig']),_0x183727=resolveSourceType(_0x424c19,_0x2b200a,_0x4c8452),_0x3d596f=firstString(_0x424c19[_0x210c3f(0x226)],_0x424c19[_0x210c3f(0x202)],_0x2b200a['datasetCode'],_0x4a768a)||_0x4a768a;return{'id':firstNumber(_0x424c19[_0x210c3f(0x220)],_0x424c19['id'],_0x2b200a[_0x210c3f(0x207)])??firstString(_0x424c19['modelId'],_0x424c19['id'],_0x2b200a[_0x210c3f(0x207)])??null,'code':_0x3d596f,'name':firstString(_0x424c19[_0x210c3f(0x1eb)],_0x2b200a[_0x210c3f(0x20a)],_0x2b200a['name'])||null,'sourceType':_0x183727,'dbTableSelector':_0x183727===_0x210c3f(0x222)?{'dbLinkId':firstNumber(_0x4c8452[_0x210c3f(0x209)]),'tableName':firstString(_0x4c8452[_0x210c3f(0x1ed)])||null}:null};}function resolveSourceType(_0x56c742,_0xe3cc06,_0x3d7a41){const _0x21b23b=a66_0x3443e7,_0x51adcb=firstString(_0x56c742[_0x21b23b(0x1ee)],_0x56c742[_0x21b23b(0x21a)],_0xe3cc06[_0x21b23b(0x1ee)],_0xe3cc06['sourceType'])?.[_0x21b23b(0x224)]()[_0x21b23b(0x1f4)]();if(_0x51adcb===_0x21b23b(0x222)||_0x51adcb===_0x21b23b(0x1fc))return _0x51adcb;if(Object[_0x21b23b(0x1ef)](_0x3d7a41)[_0x21b23b(0x21b)]>0x0)return _0x21b23b(0x222);throw CliErrors[_0x21b23b(0x22b)](_0x21b23b(0x214));}function loadCurrentBusinessGroup(_0x201b55,_0x367eb9){const _0x59376d=a66_0x3443e7,_0x59d1b5=readBusinessGroupFromDatasetDetail(_0x201b55,_0x367eb9['sourceType']);if(_0x59d1b5[_0x59376d(0x203)])return normalizeBusinessGroup(_0x59d1b5[_0x59376d(0x1f5)]);return'';}function readBusinessGroupFromDatasetDetail(_0x5a1a27,_0x4e0f7d){const _0x877f=a66_0x3443e7,_0x26199a=asPlainObject(_0x5a1a27[_0x877f(0x1ec)]),_0x3abf20=firstPresent(_0x5a1a27[_0x877f(0x1f6)]);if(_0x3abf20['found'])return _0x3abf20;const _0x7e0658=firstPresent(_0x26199a[_0x877f(0x1f6)]);if(_0x7e0658[_0x877f(0x203)])return _0x7e0658;if(_0x4e0f7d===_0x877f(0x222))return{'found':![]};const _0x578d1b=readBusinessGroupFromExtend(_0x5a1a27['extend']);if(_0x578d1b[_0x877f(0x203)])return _0x578d1b;return readBusinessGroupFromExtend(_0x26199a[_0x877f(0x219)]);}function readBusinessGroupFromExtend(_0x4fdc7d){const _0x357cd3=a66_0x3443e7;if(_0x4fdc7d===undefined||_0x4fdc7d===null||_0x4fdc7d==='')return{'found':![]};if(typeof _0x4fdc7d===_0x357cd3(0x211))try{const _0x1004c1=JSON['parse'](_0x4fdc7d);return readBusinessGroupFromExtend(_0x1004c1);}catch{return{'found':![]};}const _0x115af0=asPlainObject(_0x4fdc7d);if(Object[_0x357cd3(0x20f)][_0x357cd3(0x225)][_0x357cd3(0x228)](_0x115af0,_0x357cd3(0x1f6)))return{'found':!![],'value':_0x115af0[_0x357cd3(0x1f6)]};return{'found':![]};}function firstPresent(..._0xfd7576){for(const _0x16874c of _0xfd7576){if(_0x16874c!==undefined&&_0x16874c!==null)return{'found':!![],'value':_0x16874c};}return{'found':![]};}function assertExpectedBusinessGroup(_0x523c97,_0x466b55){const _0xd0a7a0=a66_0x3443e7;if(_0x466b55===undefined)return;const _0x5ef4f2=normalizeBusinessGroupArgument(_0x466b55);if(_0x523c97!==_0x5ef4f2)throw CliErrors['validation'](_0xd0a7a0(0x20e),_0xd0a7a0(0x1f1)+JSON[_0xd0a7a0(0x213)](_0x5ef4f2)+_0xd0a7a0(0x20c)+JSON[_0xd0a7a0(0x213)](_0x523c97));}function buildBackendPlan(_0x9a4fdb,_0x4af92b,_0x364af6){const _0x287712=a66_0x3443e7;if(_0x4af92b['sourceType']===_0x287712(0x222)){if(!_0x4af92b[_0x287712(0x21e)]||_0x4af92b['dbTableSelector'][_0x287712(0x1fa)]===null||!_0x4af92b[_0x287712(0x21e)][_0x287712(0x1ed)])throw CliErrors[_0x287712(0x22b)](_0x287712(0x22a),_0x287712(0x20d));return{'kind':'db-table','method':_0x287712(0x217),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x4af92b['dbTableSelector'][_0x287712(0x1fa)],'tableName':_0x4af92b['dbTableSelector']['tableName'],'businessGroup':_0x364af6}};}return{'kind':_0x287712(0x210),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x9a4fdb,'datasetCode':_0x4af92b[_0x287712(0x202)],'businessGroup':_0x364af6}};}function normalizeBusinessGroup(_0x35415d){const _0x469f3b=a66_0x3443e7;if(_0x35415d===undefined||_0x35415d===null)return'';return String(_0x35415d)[_0x469f3b(0x224)]();}function normalizeBusinessGroupArgument(_0x685ad5){const _0x5635a6=normalizeBusinessGroup(_0x685ad5);return _0x5635a6===UNGROUPED_BUSINESS_GROUP?'':_0x5635a6;}function displayBusinessGroup(_0x6715fc){return _0x6715fc||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x1aa4ed){if(!_0x1aa4ed||typeof _0x1aa4ed!=='object'||Array['isArray'](_0x1aa4ed))return{};return _0x1aa4ed;}function firstString(..._0x34ddf3){const _0x91b86e=a66_0x3443e7;for(const _0x393842 of _0x34ddf3){if(typeof _0x393842===_0x91b86e(0x211)&&_0x393842[_0x91b86e(0x224)]())return _0x393842['trim']();if(typeof _0x393842==='number'&&Number['isFinite'](_0x393842))return String(_0x393842);}return undefined;}function firstNumber(..._0x5b1c2f){const _0x4a5fff=a66_0x3443e7;for(const _0x46c6c9 of _0x5b1c2f){if(typeof _0x46c6c9===_0x4a5fff(0x204)&&Number[_0x4a5fff(0x232)](_0x46c6c9))return _0x46c6c9;if(typeof _0x46c6c9===_0x4a5fff(0x211)&&_0x46c6c9[_0x4a5fff(0x224)]()&&Number[_0x4a5fff(0x232)](Number(_0x46c6c9)))return Number(_0x46c6c9);}return null;}function a66_0x2e67(_0x152aeb,_0x146ecf){_0x152aeb=_0x152aeb-0x1eb;const _0x3d81ee=a66_0x3d81();let _0x2e678c=_0x3d81ee[_0x152aeb];return _0x2e678c;}function trim(_0xd51fdd){const _0x3048e7=a66_0x3443e7;return String(_0xd51fdd||'')[_0x3048e7(0x224)]();}
|
|
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
|
-
function
|
|
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
|
-
function a72_0x579e(_0x2e65a7,_0x2e7173){_0x2e65a7=_0x2e65a7-0xa8;const _0xe0f479=a72_0xe0f4();let _0x579e1f=_0xe0f479[_0x2e65a7];return _0x579e1f;}const a72_0x437a82=a72_0x579e;(function(_0x3f4da2,_0x427596){const _0x5b9d68=a72_0x579e,_0x1f4c21=_0x3f4da2();while(!![]){try{const _0x360333=parseInt(_0x5b9d68(0xfe))/0x1+parseInt(_0x5b9d68(0xe8))/0x2*(-parseInt(_0x5b9d68(0xde))/0x3)+-parseInt(_0x5b9d68(0xbf))/0x4+-parseInt(_0x5b9d68(0xab))/0x5*(parseInt(_0x5b9d68(0xfc))/0x6)+-parseInt(_0x5b9d68(0xbc))/0x7+-parseInt(_0x5b9d68(0xce))/0x8*(-parseInt(_0x5b9d68(0xf4))/0x9)+parseInt(_0x5b9d68(0xc4))/0xa;if(_0x360333===_0x427596)break;else _0x1f4c21['push'](_0x1f4c21['shift']());}catch(_0x2334fa){_0x1f4c21['push'](_0x1f4c21['shift']());}}}(a72_0xe0f4,0x18d87));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(_0x545a8d,_0x37d361){const _0x3e96fb=a72_0x579e,_0x2f6f1d=_0x545a8d[_0x3e96fb(0xe7)](_0x37d361)['trim']();if(!_0x2f6f1d)throw CliErrors[_0x3e96fb(0xc5)](_0x37d361);return _0x2f6f1d;}function explicitDblink(_0x496ea8){const _0x2611b6=a72_0x579e,_0x3cb94a=_0x496ea8[_0x2611b6(0xeb)]('from-dblink-id');if(_0x3cb94a===undefined||_0x3cb94a===null)return undefined;const _0x5d99a8=Number(_0x3cb94a);if(!Number[_0x2611b6(0xc3)](_0x5d99a8)||_0x5d99a8<=0x0)throw CliErrors[_0x2611b6(0xb4)](_0x2611b6(0xe0));return _0x5d99a8;}export function validateCrossRelation(_0x1af598,_0x33ad19){const _0x1b2096=a72_0x579e,_0x92099e=explicitDblink(_0x1af598);if(_0x33ad19===_0x1b2096(0xcd)){if(!_0x1af598[_0x1b2096(0xe7)](_0x1b2096(0xc2))[_0x1b2096(0xd6)]()&&_0x92099e===undefined)throw CliErrors[_0x1b2096(0xb4)](_0x1b2096(0xd3));return;}required(_0x1af598,'from-datasetcode'),required(_0x1af598,_0x1b2096(0xc9));if(_0x33ad19!==_0x1b2096(0xd8)){required(_0x1af598,'to-datasetcode'),required(_0x1af598,'to-column');const _0x2ed52c=_0x1af598[_0x1b2096(0xe7)](_0x1b2096(0xc6))[_0x1b2096(0xd6)]();if(_0x2ed52c&&!CROSS_RELATION_CARDINALITY_FLAG[_0x1b2096(0xc8)][_0x1b2096(0xb9)](_0x2ed52c))throw CliErrors[_0x1b2096(0xb4)](_0x1b2096(0xf2));}}async function resolveEndpoint(_0x522cc5){const _0x12a9d=a72_0x579e,_0x4ebd51=await getDatasetDetail(_0x522cc5),_0x2ac89a=_0x4ebd51?.[_0x12a9d(0xbe)]??{};if((_0x4ebd51?.[_0x12a9d(0xb6)]??_0x2ac89a[_0x12a9d(0xe9)])!=='DB_TABLE')throw CliErrors['validation'](_0x12a9d(0xa8)+_0x522cc5+_0x12a9d(0xaa));const _0x1d67df=_0x4ebd51[_0x12a9d(0xb1)]??_0x4ebd51[_0x12a9d(0xb0)]??{};let _0x3f9a1b=_0x4ebd51[_0x12a9d(0xdd)]??_0x2ac89a['extend']??{};if(typeof _0x3f9a1b===_0x12a9d(0xd0))try{_0x3f9a1b=_0x3f9a1b[_0x12a9d(0xd6)]()?JSON[_0x12a9d(0xcb)](_0x3f9a1b):{};}catch{throw CliErrors['validation'](_0x12a9d(0xa8)+_0x522cc5+_0x12a9d(0xfb));}const _0x4fc4c0=Number(_0x3f9a1b?.[_0x12a9d(0xf1)]?.['dbId']??_0x4ebd51[_0x12a9d(0xf1)]?.[_0x12a9d(0xc7)]??_0x2ac89a['storageProfile']?.[_0x12a9d(0xc7)]??_0x1d67df[_0x12a9d(0xc7)]??_0x2ac89a['dbId']??_0x4ebd51['dbId']),_0x208e41=String(_0x4ebd51[_0x12a9d(0xe6)]??_0x2ac89a[_0x12a9d(0xe6)]??_0x1d67df['tableName']??'')[_0x12a9d(0xd6)]();if(!Number[_0x12a9d(0xc3)](_0x4fc4c0)||_0x4fc4c0<=0x0||!_0x208e41)throw CliErrors[_0x12a9d(0xb4)]('Dataset\x20'+_0x522cc5+_0x12a9d(0xae));return{'datasetCode':_0x522cc5,'dblinkId':_0x4fc4c0,'table':_0x208e41};}export async function resolveCrossRelationQuery(_0x3a11de){const _0x38a602=a72_0x579e,_0x18f79a=_0x3a11de['str'](_0x38a602(0xc2))[_0x38a602(0xd6)](),_0x8f4dea=explicitDblink(_0x3a11de),_0x1ab808=_0x18f79a?await resolveEndpoint(_0x18f79a):undefined;if(_0x1ab808&&_0x8f4dea!==undefined&&_0x1ab808[_0x38a602(0xcc)]!==_0x8f4dea)throw CliErrors['validation'](_0x38a602(0xdb));const _0x2408da=_0x1ab808?.[_0x38a602(0xcc)]??_0x8f4dea;if(_0x2408da===undefined)throw CliErrors[_0x38a602(0xb4)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x3a11de[_0x38a602(0xd1)],'fromDblinkId':_0x2408da,..._0x18f79a?{'fromDatasetCode':_0x18f79a}:{},..._0x3a11de['str']('from-column')[_0x38a602(0xd6)]()?{'fromField':_0x3a11de[_0x38a602(0xe7)]('from-column')['trim']()}:{}};}export function projectCrossRelation(_0xcf0936){const _0x1059ce=a72_0x579e;return{'relationId':_0xcf0936[_0x1059ce(0xfd)],'from':{'source':_0x1059ce(0xda),'datasetCode':_0xcf0936[_0x1059ce(0xad)],'datasetName':_0xcf0936[_0x1059ce(0xff)],'dblinkId':_0xcf0936[_0x1059ce(0xa9)],'table':_0xcf0936[_0x1059ce(0xed)],'field':_0xcf0936[_0x1059ce(0xec)]},'to':{'source':_0x1059ce(0xda),'datasetCode':_0xcf0936[_0x1059ce(0xe2)],'datasetName':_0xcf0936['toDatasetName'],'dblinkId':_0xcf0936[_0x1059ce(0xb5)],'table':_0xcf0936['toTableName'],'field':_0xcf0936[_0x1059ce(0xf7)],'labelField':_0xcf0936[_0x1059ce(0xb3)]},'relation':{'cardinality':_0xcf0936['cardinality'],'relationType':_0xcf0936[_0x1059ce(0xd4)]}};}function ambiguity(_0x4f6793){const _0x113178=a72_0x579e,_0x540d52=CliErrors[_0x113178(0xb4)](_0x113178(0xcf),_0x113178(0xc1));return Object[_0x113178(0xc0)](_0x540d52,_0x113178(0xe3),{'value':{'candidates':_0x4f6793['map'](projectCrossRelation)}}),_0x540d52;}const sameName=(_0x1bd27f,_0x40a1e0)=>_0x1bd27f[a72_0x437a82(0xb2)]()===_0x40a1e0[a72_0x437a82(0xb2)]();function matchesEndpoint(_0x1f2674,_0x1c5bfd,_0x483b7e,_0x3d3eec,_0x2998d5){const _0x36591e=a72_0x437a82;return _0x1f2674['fromDblinkId']===_0x1c5bfd[_0x36591e(0xcc)]&&sameName(_0x1f2674[_0x36591e(0xed)],_0x1c5bfd[_0x36591e(0xf3)])&&sameName(_0x1f2674[_0x36591e(0xec)],_0x483b7e)&&_0x1f2674[_0x36591e(0xb5)]===_0x3d3eec['dblinkId']&&sameName(_0x1f2674['toTableName'],_0x3d3eec[_0x36591e(0xf3)])&&sameName(_0x1f2674[_0x36591e(0xf7)],_0x2998d5);}export async function prepareCrossRelation(_0x1bc6e7,_0x2348e1){const _0x3bd8bf=a72_0x437a82,_0x117123=await resolveEndpoint(required(_0x1bc6e7,_0x3bd8bf(0xc2))),_0x2442dd=explicitDblink(_0x1bc6e7);if(_0x2442dd!==undefined&&_0x117123['dblinkId']!==_0x2442dd)throw CliErrors[_0x3bd8bf(0xb4)](_0x3bd8bf(0xdb));const _0x593861={'appCode':_0x1bc6e7['appCode'],'fromDatasetCode':_0x117123[_0x3bd8bf(0xef)],'fromField':required(_0x1bc6e7,_0x3bd8bf(0xc9)),..._0x2442dd!==undefined?{'fromDblinkId':_0x2442dd}:{}},_0x46d43a={'appCode':_0x1bc6e7['appCode'],'fromDblinkId':_0x117123[_0x3bd8bf(0xcc)],'fromDatasetCode':_0x117123[_0x3bd8bf(0xef)],'fromField':_0x593861[_0x3bd8bf(0xec)]},_0x4333be=await queryCrossDbRelations(_0x46d43a);let _0x11376e=null;if(_0x2348e1!==_0x3bd8bf(0xf9)){if(_0x4333be[_0x3bd8bf(0xac)]>0x1)throw ambiguity(_0x4333be);_0x11376e=_0x4333be[0x0]??null;if(!_0x11376e)throw CliErrors[_0x3bd8bf(0xb4)](_0x3bd8bf(0xca));}if(_0x2348e1==='delete')return{'operation':_0x2348e1,'from':_0x117123,'query':_0x46d43a,'body':_0x593861,'before':_0x11376e};const _0x23cded=await resolveEndpoint(required(_0x1bc6e7,'to-datasetcode'));if(_0x117123[_0x3bd8bf(0xcc)]===_0x23cded[_0x3bd8bf(0xcc)])throw CliErrors['validation'](_0x3bd8bf(0xd5));const _0x522119=_0x1bc6e7['str'](_0x3bd8bf(0xe1))['trim'](),_0x62130b=_0x1bc6e7[_0x3bd8bf(0xe7)](_0x3bd8bf(0xc6))[_0x3bd8bf(0xd6)](),_0x100b71={..._0x593861,'toDatasetCode':_0x23cded['datasetCode'],'toField':required(_0x1bc6e7,'to-column'),..._0x522119?{'refTableLabelName':_0x522119}:{},..._0x62130b?{'cardinality':_0x62130b}:{}};if(_0x4333be['some'](_0x306a47=>_0x306a47[_0x3bd8bf(0xfd)]!==_0x11376e?.[_0x3bd8bf(0xfd)]&&matchesEndpoint(_0x306a47,_0x117123,_0x100b71['fromField'],_0x23cded,_0x100b71[_0x3bd8bf(0xf7)])))throw CliErrors[_0x3bd8bf(0xb4)](_0x3bd8bf(0xb7));return{'operation':_0x2348e1,'from':_0x117123,'to':_0x23cded,'query':_0x46d43a,'body':_0x100b71,'before':_0x11376e,'expectedLabel':_0x522119||_0x11376e?.[_0x3bd8bf(0xb3)]||_0x100b71['toField'],'expectedCardinality':_0x62130b||_0x11376e?.[_0x3bd8bf(0xc6)]||null};}function mutationData(_0xe9f69d,_0x287b1d,_0x427416){const _0x4b4604=a72_0x437a82,{operation:_0x52b3f1,body:_0x5e6c72,before:_0x3d316c}=_0xe9f69d;return{'operation':_0x52b3f1,'selector':{'appCode':_0x5e6c72[_0x4b4604(0xd1)],'from':{'datasetCode':_0x5e6c72[_0x4b4604(0xad)],'field':_0x5e6c72[_0x4b4604(0xec)],'dblinkId':_0xe9f69d[_0x4b4604(0xe5)][_0x4b4604(0xcc)]}},'before':_0x3d316c?projectCrossRelation(_0x3d316c):null,'after':_0x427416,'dryRun':_0x287b1d,'backend':{'method':_0x4b4604(0xba),'path':CROSS_DB_RELATION_PATHS[_0x52b3f1]},'warnings':_0x52b3f1===_0x4b4604(0xd2)&&!_0x5e6c72['refTableLabelName']?[{'code':_0x4b4604(0xb8),'message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x5808bb,_0x4539fc){const _0x176132=a72_0x437a82,_0x3e76d4=await prepareCrossRelation(_0x5808bb,_0x4539fc),_0x2ab988=_0x3e76d4[_0x176132(0xdf)],_0x4471f6=_0x4539fc===_0x176132(0xd8)?null:{..._0x3e76d4[_0x176132(0xfa)]?{'relationId':_0x3e76d4['before'][_0x176132(0xfd)]}:{},'from':{'datasetCode':_0x3e76d4[_0x176132(0xe5)][_0x176132(0xef)],'dblinkId':_0x3e76d4[_0x176132(0xe5)][_0x176132(0xcc)],'table':_0x3e76d4[_0x176132(0xe5)]['table'],'field':_0x2ab988['fromField']},'to':{'datasetCode':_0x3e76d4['to'][_0x176132(0xef)],'dblinkId':_0x3e76d4['to'][_0x176132(0xcc)],'table':_0x3e76d4['to']['table'],'field':_0x2ab988[_0x176132(0xf7)],'labelField':_0x3e76d4[_0x176132(0xd9)]},'relation':{'cardinality':_0x3e76d4[_0x176132(0xe4)],'relationType':0x2}};return{...mutationData(_0x3e76d4,!![],null),'after':_0x4471f6,'method':_0x176132(0xba),'url':CROSS_DB_RELATION_PATHS[_0x4539fc],'body':_0x3e76d4[_0x176132(0xdf)],'description':_0x176132(0xbd)+_0x4539fc+_0x176132(0xd7)+_0x2ab988[_0x176132(0xad)]+'.'+_0x2ab988[_0x176132(0xec)]};}function a72_0xe0f4(){const _0x300ba4=['442500gnPISI','defineProperty','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','from-datasetcode','isSafeInteger','4877940NJqgNK','flagMissing','cardinality','dbId','enum','from-column','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','parse','dblinkId','list','8WevlON','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','string','appCode','update','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','relationType','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','trim','\x20a\x20cross-database\x20relation\x20for\x20','delete','expectedLabel','DB_TABLE','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','\x20write\x20was\x20not\x20verified.','extend','843kKGWYq','body','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','to-label-column','toDatasetCode','data','expectedCardinality','from','tableName','str','1412eamowM','sourceType','filter','flag','fromField','fromTableName','\x20verified.','datasetCode','catch','storageProfile','Invalid\x20--cardinality.','table','1695159JXGCTe','Cross-database\x20relation\x20','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','toField','matched','create','before','\x20has\x20invalid\x20storage\x20configuration.','18dzhIzW','relationId','36592pSeSCP','fromDatasetName','map','Dataset\x20','fromDblinkId','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','265015tAJCjY','length','fromDatasetCode','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','query','dbtable','dbtableConfig','toLowerCase','refTableLabelName','validation','toDblinkId','source','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','label_inherited','includes','POST','apiError','1000650MZNMRA','Would\x20','dataset'];a72_0xe0f4=function(){return _0x300ba4;};return a72_0xe0f4();}export async function executeCrossRelation(_0x70f857,_0x1a379a,_0x8abb98){const _0x269daa=a72_0x437a82,_0x182482=await prepareCrossRelation(_0x70f857,_0x1a379a);try{await _0x8abb98(_0x182482[_0x269daa(0xdf)]);}catch(_0x1c2235){if(_0x1c2235 instanceof CliError&&_0x1c2235['message'][_0x269daa(0xb9)]('multiple\x20cross-database\x20relations\x20matched')){const _0x500ca0=await queryCrossDbRelations(_0x182482[_0x269daa(0xaf)])[_0x269daa(0xf0)](()=>[]);throw ambiguity(_0x500ca0);}throw _0x1c2235;}let _0x114e41=[],_0x11ab08,_0xc803f3=![];try{_0x114e41=await queryCrossDbRelations(_0x182482[_0x269daa(0xaf)]);if(_0x1a379a===_0x269daa(0xd8))_0xc803f3=!_0x114e41['some'](_0x55eeae=>_0x55eeae[_0x269daa(0xfd)]===_0x182482[_0x269daa(0xfa)][_0x269daa(0xfd)]);else{const _0x2b7845=_0x182482['body'],_0x310d22=_0x114e41[_0x269daa(0xea)](_0x315ff7=>matchesEndpoint(_0x315ff7,_0x182482[_0x269daa(0xe5)],_0x2b7845[_0x269daa(0xec)],_0x182482['to'],_0x2b7845[_0x269daa(0xf7)])&&(_0x1a379a==='create'||_0x315ff7[_0x269daa(0xfd)]===_0x182482[_0x269daa(0xfa)][_0x269daa(0xfd)]));_0x11ab08=_0x310d22[_0x269daa(0xac)]===0x1?_0x310d22[0x0]:undefined,_0xc803f3=!!_0x11ab08&&_0x11ab08[_0x269daa(0xb3)]===_0x182482[_0x269daa(0xd9)]&&_0x11ab08[_0x269daa(0xc6)]===_0x182482[_0x269daa(0xe4)]&&_0x11ab08['relationType']===0x2;}}catch{}const _0x3a535c={...mutationData(_0x182482,![],_0x11ab08?projectCrossRelation(_0x11ab08):null),'verification':{'status':_0xc803f3?_0x269daa(0xf8):'unconfirmed','verified':_0xc803f3}};if(!_0xc803f3){const _0x3fa86d=CliErrors[_0x269daa(0xbb)](_0x269daa(0xf5)+_0x1a379a+_0x269daa(0xdc),_0x269daa(0xf6));Object['defineProperty'](_0x3fa86d,_0x269daa(0xe3),{'value':{..._0x3a535c,'candidates':_0x114e41[_0x269daa(0x100)](projectCrossRelation)}});throw _0x3fa86d;}return{'ok':!![],'data':_0x3a535c,'message':_0x269daa(0xf5)+_0x1a379a+_0x269daa(0xee)};}
|
|
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
|
-
|
|
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)};
|