@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a59_0x3a6666=a59_0x4ef3;(function(_0x3e9cd8,_0xd0325c){const _0x5b1990=a59_0x4ef3,_0x43ded9=_0x3e9cd8();while(!![]){try{const _0x31c269=-parseInt(_0x5b1990(0x1e2))/0x1+-parseInt(_0x5b1990(0x1d2))/0x2+parseInt(_0x5b1990(0x1cf))/0x3+-parseInt(_0x5b1990(0x1d0))/0x4*(-parseInt(_0x5b1990(0x1d7))/0x5)+parseInt(_0x5b1990(0x1d3))/0x6*(parseInt(_0x5b1990(0x1d6))/0x7)+parseInt(_0x5b1990(0x1e0))/0x8*(parseInt(_0x5b1990(0x1dc))/0x9)+-parseInt(_0x5b1990(0x1d8))/0xa;if(_0x31c269===_0xd0325c)break;else _0x43ded9['push'](_0x43ded9['shift']());}catch(_0x188800){_0x43ded9['push'](_0x43ded9['shift']());}}}(a59_0x1108,0x6ab01));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a59_0x4ef3(_0x495a76,_0x51a6d3){_0x495a76=_0x495a76-0x1cf;const _0x1108c4=a59_0x1108();let _0x4ef3ef=_0x1108c4[_0x495a76];return _0x4ef3ef;}function a59_0x1108(){const _0x343d5c=['5752RRHIFp','object','1595826hzgBFs','78xpioUE','Missing\x20key.','key','278999PEtdqe','695ZBDCxb','5126570wxQVRv','Key\x20not\x20found:\x20','validation','Usage:\x20','981YHrziw','str','appcode','string','37040UXWARO','config','288395Cbhzge','app','2439795NNlMyb'];a59_0x1108=function(){return _0x343d5c;};return a59_0x1108();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1da7b4){const _0x51d151=a59_0x4ef3,_0x5ed1e6=_0x1da7b4[_0x51d151(0x1dd)](_0x51d151(0x1d5));if(!_0x5ed1e6)throw CliErrors[_0x51d151(0x1da)](_0x51d151(0x1d4),_0x51d151(0x1db)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x4475d4=readConfig(),_0x4d16b1=_0x5ed1e6===_0x51d151(0x1e3)?_0x51d151(0x1de):_0x5ed1e6,_0x4284a4=_0x4475d4[_0x4d16b1];if(_0x4284a4===undefined)throw CliErrors[_0x51d151(0x1da)](_0x51d151(0x1d9)+_0x5ed1e6);return{'ok':!![],'data':typeof _0x4284a4===_0x51d151(0x1d1)?_0x4284a4:{[_0x4d16b1]:_0x4284a4},'message':typeof _0x4284a4===_0x51d151(0x1d1)?undefined:String(_0x4284a4)};}export const configGetDefinition={'service':a59_0x3a6666(0x1e1),'command':'get','description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a59_0x3a6666(0x1df),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27df68,_0x36e43b){const _0x4c5367=a60_0x4247,_0x100bae=_0x27df68();while(!![]){try{const _0x631ecd=-parseInt(_0x4c5367(0x14b))/0x1*(-parseInt(_0x4c5367(0x148))/0x2)+-parseInt(_0x4c5367(0x142))/0x3*(parseInt(_0x4c5367(0x146))/0x4)+-parseInt(_0x4c5367(0x143))/0x5*(parseInt(_0x4c5367(0x149))/0x6)+parseInt(_0x4c5367(0x145))/0x7*(parseInt(_0x4c5367(0x144))/0x8)+parseInt(_0x4c5367(0x141))/0x9+parseInt(_0x4c5367(0x147))/0xa+-parseInt(_0x4c5367(0x14a))/0xb*(parseInt(_0x4c5367(0x140))/0xc);if(_0x631ecd===_0x36e43b)break;else _0x100bae['push'](_0x100bae['shift']());}catch(_0x29df79){_0x100bae['push'](_0x100bae['shift']());}}}(a60_0x2ecf,0x884b5));function a60_0x4247(_0x271497,_0xfae7a7){_0x271497=_0x271497-0x140;const _0x2ecf65=a60_0x2ecf();let _0x424736=_0x2ecf65[_0x271497];return _0x424736;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a60_0x2ecf(){const _0x39fcce=['6mdegqV','77OpQofW','26VXmXTG','1664820vqKVVe','9553104wwIRDQ','363627dRTxSd','482435bruiKY','5336HYbWKb','3997IAMxNe','28ztmLtI','3559650BeUXzS','52006IGCWeY'];a60_0x2ecf=function(){return _0x39fcce;};return a60_0x2ecf();}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x52217d=a61_0x2d83;(function(_0x380121,_0x34e042){const _0x16209a=a61_0x2d83,_0x5bb70f=_0x380121();while(!![]){try{const _0x5788e7=parseInt(_0x16209a(0x86))/0x1*(-parseInt(_0x16209a(0x94))/0x2)+-parseInt(_0x16209a(0x92))/0x3+-parseInt(_0x16209a(0x85))/0x4*(-parseInt(_0x16209a(0xa7))/0x5)+parseInt(_0x16209a(0x8c))/0x6*(parseInt(_0x16209a(0xb8))/0x7)+parseInt(_0x16209a(0x96))/0x8*(parseInt(_0x16209a(0xb3))/0x9)+-parseInt(_0x16209a(0xaa))/0xa+parseInt(_0x16209a(0x8d))/0xb*(parseInt(_0x16209a(0x93))/0xc);if(_0x5788e7===_0x34e042)break;else _0x5bb70f['push'](_0x5bb70f['shift']());}catch(_0xdb3f87){_0x5bb70f['push'](_0x5bb70f['shift']());}}}(a61_0xed7e,0x41ef4));import{select}from'@inquirer/prompts';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';function a61_0x2d83(_0x54213b,_0x3d5b70){_0x54213b=_0x54213b-0x82;const _0xed7e=a61_0xed7e();let _0x2d8341=_0xed7e[_0x54213b];return _0x2d8341;}function a61_0xed7e(){const _0x20af4c=['certificate-domain','Custom\x20platform\x20API\x20HTTPS\x20origin','string','official','api-domain','map','Custom\x20KB\x20Service\x20HTTPS\x20origin','153620NSlIhW','kb-service-domain','Available\x20regions:\x20','1922490RVVEMD','cancelled','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','region','app-domain','config','independent','ExitPromptError','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','5985yolwOD','skill-domain','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','str','global','725095qxjpEF','user-domain','Custom\x20knowledge-base\x20HTTPS\x20origin','Region\x20\x22','Custom\x20Runtime\x20HTTPS\x20origin','write','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','localDomain','56BEWEcv','55oOqjPz','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','cdn','routing','join','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','6JtUASi','946CLSyzR','domain-config','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','validation','Custom\x20certificate\x20service\x20HTTPS\x20origin','1022058kzXGLt','42204wtQngu','13636soHNhx','Select\x20Lovrabet\x20region','4112FzFCXj','assign','enterprise-v1','project','nonInteractive','Independent-deployment\x20Domain\x20JSON\x20file','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','mode','keys','runtime-domain'];a61_0xed7e=function(){return _0x20af4c;};return a61_0xed7e();}import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':'region','type':'string','description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x52217d(0x8e),'type':a61_0x52217d(0xa2),'description':a61_0x52217d(0x9b)},{'name':a61_0x52217d(0xb9),'type':a61_0x52217d(0xa2),'description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a61_0x52217d(0xa4),'type':'string','description':a61_0x52217d(0xa1)},{'name':a61_0x52217d(0x9f),'type':a61_0x52217d(0xa2),'description':a61_0x52217d(0xbc)},{'name':a61_0x52217d(0xb4),'type':a61_0x52217d(0xa2),'description':a61_0x52217d(0x83)},{'name':'kb-domain','type':'string','description':a61_0x52217d(0xba)},{'name':a61_0x52217d(0xa8),'type':a61_0x52217d(0xa2),'description':a61_0x52217d(0xa6)},{'name':a61_0x52217d(0xae),'type':a61_0x52217d(0xa2),'description':a61_0x52217d(0x87)},{'name':'local-domain','type':'string','description':a61_0x52217d(0x82)},{'name':a61_0x52217d(0xa0),'type':a61_0x52217d(0xa2),'description':a61_0x52217d(0x91)}];async function resolveRegion(_0x482604){const _0x573186=a61_0x52217d,_0x2a8b64=_0x482604['str'](_0x573186(0xad));if(_0x2a8b64){if(!isEnabledLovrabetRegion(_0x2a8b64))throw CliErrors[_0x573186(0x90)](_0x573186(0xbb)+_0x2a8b64+'\x22\x20is\x20not\x20currently\x20available.',_0x573186(0xa9)+ENABLED_LOVRABET_REGION_VALUES[_0x573186(0x8a)](',\x20'));return _0x2a8b64;}if(_0x482604[_0x573186(0x9a)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x573186(0x95),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x573186(0xa5)](_0x55dc76=>({'name':getOfficialRoutingProfile(_0x55dc76)['label']+'\x20('+_0x55dc76+')','value':_0x55dc76}))});}catch(_0x4e67c9){if(_0x4e67c9?.['name']===_0x573186(0xb1))throw CliErrors[_0x573186(0xab)]();throw _0x4e67c9;}}export async function executeConfigInit(_0x331a27){const _0x126dfb=a61_0x52217d,_0x274159=resolveDomainConfigInput(_0x331a27),_0x55498e=_0x274159['domains'],_0x3346d7=Object[_0x126dfb(0x9e)](_0x55498e)['length']>0x0;if(_0x3346d7&&_0x331a27[_0x126dfb(0xb6)]('region'))throw CliErrors['validation'](_0x126dfb(0xb5));if(!!_0x55498e[_0x126dfb(0x84)]!==!!_0x55498e['certificateDomain'])throw CliErrors[_0x126dfb(0x90)](_0x126dfb(0x9c));const _0x483358=_0x331a27['bool']('global')?_0x126dfb(0xb7):_0x126dfb(0x99),_0x2162bc=readScopedConfig(_0x483358);for(const _0x2c9282 of DOMAIN_CONFIG_FIELDS)delete _0x2162bc[_0x2c9282];for(const _0x27829e of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x2162bc[_0x27829e];delete _0x2162bc[_0x126dfb(0x89)];let _0x1d697d=null;if(_0x3346d7)delete _0x2162bc[_0x126dfb(0xad)],_0x274159[_0x126dfb(0x9d)]===_0x126dfb(0x98)?_0x2162bc[_0x126dfb(0x89)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x274159['manifestDomains'],'cdn':_0x274159[_0x126dfb(0x88)]}:Object[_0x126dfb(0x97)](_0x2162bc,_0x55498e);else{_0x1d697d=await resolveRegion(_0x331a27);if(_0x1d697d===DEFAULT_LOVRABET_REGION)delete _0x2162bc[_0x126dfb(0xad)];else _0x2162bc[_0x126dfb(0xad)]=_0x1d697d;}return writeScopedConfig(_0x2162bc,_0x483358),{'ok':!![],'message':_0x3346d7?_0x126dfb(0xb2)+Object['keys'](_0x274159[_0x126dfb(0x9d)]===_0x126dfb(0x98)?_0x274159['manifestDomains']:_0x55498e)['join'](',\x20')+'.':_0x126dfb(0x8b)+_0x1d697d+'.','data':{'mode':_0x3346d7?_0x126dfb(0xb0):_0x126dfb(0xa3),'protocol':_0x274159['mode']===_0x126dfb(0x98)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x1d697d,'domains':_0x55498e,'cdn':_0x274159[_0x126dfb(0x9d)]===_0x126dfb(0x98)?_0x274159['cdn']:undefined}};}export const configInitDefinition={'service':a61_0x52217d(0xaf),'command':'init','description':a61_0x52217d(0x8f),'risk':a61_0x52217d(0xbd),'confirmationDescription':a61_0x52217d(0xac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x34ecc7=a62_0x3889;(function(_0x37319c,_0x4ca9c8){const _0x890f1a=a62_0x3889,_0x29e560=_0x37319c();while(!![]){try{const _0x34b7a5=parseInt(_0x890f1a(0x102))/0x1+parseInt(_0x890f1a(0x104))/0x2*(parseInt(_0x890f1a(0x100))/0x3)+-parseInt(_0x890f1a(0xff))/0x4*(-parseInt(_0x890f1a(0x106))/0x5)+-parseInt(_0x890f1a(0x101))/0x6+parseInt(_0x890f1a(0x10c))/0x7+-parseInt(_0x890f1a(0x107))/0x8*(parseInt(_0x890f1a(0x10e))/0x9)+parseInt(_0x890f1a(0x10a))/0xa;if(_0x34b7a5===_0x4ca9c8)break;else _0x29e560['push'](_0x29e560['shift']());}catch(_0xcff34d){_0x29e560['push'](_0x29e560['shift']());}}}(a62_0xb131,0x6bee8));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x47d2b2){const _0x4464a0=a62_0x3889,_0x4e5678=_0x47d2b2['bool']('global')?readScopedConfig(_0x4464a0(0x10d)):readConfig();return{'ok':!![],'data':_0x4e5678};}function a62_0x3889(_0x196cdf,_0x5068ef){_0x196cdf=_0x196cdf-0xff;const _0xb13184=a62_0xb131();let _0x3889c1=_0xb13184[_0x196cdf];return _0x3889c1;}function a62_0xb131(){const _0x1f7b39=['read','166aAitar','list','3538980CMytNf','560GOfKBh','config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2961990lhuEiM','boolean','2612204tiGqYd','global','105345LEWJuo','4MfFahP','9822vlZxrk','2789862QDzrkO','77506auakwd'];a62_0xb131=function(){return _0x1f7b39;};return a62_0xb131();}export const configListDefinition={'service':a62_0x34ecc7(0x108),'command':a62_0x34ecc7(0x105),'description':'List\x20all\x20config\x20values','risk':a62_0x34ecc7(0x103),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x34ecc7(0x10d),'type':a62_0x34ecc7(0x10b),'description':a62_0x34ecc7(0x109),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0xc138b5=a63_0x3d43;(function(_0x47f83a,_0x1e4ebb){const _0x361ce3=a63_0x3d43,_0x195472=_0x47f83a();while(!![]){try{const _0x132801=-parseInt(_0x361ce3(0x94))/0x1*(parseInt(_0x361ce3(0x71))/0x2)+-parseInt(_0x361ce3(0x91))/0x3*(-parseInt(_0x361ce3(0x9d))/0x4)+parseInt(_0x361ce3(0x80))/0x5*(-parseInt(_0x361ce3(0x6f))/0x6)+-parseInt(_0x361ce3(0x70))/0x7+parseInt(_0x361ce3(0x8b))/0x8*(parseInt(_0x361ce3(0x9c))/0x9)+parseInt(_0x361ce3(0x79))/0xa+parseInt(_0x361ce3(0x6d))/0xb;if(_0x132801===_0x1e4ebb)break;else _0x195472['push'](_0x195472['shift']());}catch(_0x954d01){_0x195472['push'](_0x195472['shift']());}}}(a63_0x3268,0x3b974));import{CliErrors}from'../../errors.js';function a63_0x3d43(_0x12f3f4,_0x390a45){_0x12f3f4=_0x12f3f4-0x6c;const _0x3268c3=a63_0x3268();let _0x3d43be=_0x3268c3[_0x12f3f4];return _0x3d43be;}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';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';function a63_0x3268(){const _0xdfc213=['Use\x20`','key','\x22\x20is\x20not\x20settable.','882430qXWLTU','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Top-level\x20key\x20\x22','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','bool','Usage:\x20','string','5CeggtS','length','`,\x20`','includes','config','global','app','Project','validation','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22.\x20Allowed:\x20','3120GvJACz','join','object','\x20set\x20to:\x20','Config\x20value','env','52422ocJHlb','Missing\x20key.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','761ytnOFQ','Settable\x20top-level\x20keys:\x20','appcode','Invalid\x20locale\x20value.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','riskLevel','value','4986SGIWWI','12ZzZTnt','Global','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','7682411qQnexK','apps','768228GMvbRE','1600809LstXNQ','1194PnHdgL','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','str','Set\x20a\x20config\x20value','set'];a63_0x3268=function(){return _0xdfc213;};return a63_0x3268();}async function execute(_0x11d1e9){const _0x1f3b2a=a63_0x3d43,_0x59f06c=_0x11d1e9[_0x1f3b2a(0x73)](_0x1f3b2a(0x77)),_0x4dd4fa=_0x11d1e9['str'](_0x1f3b2a(0x9b));if(!_0x59f06c)throw CliErrors[_0x1f3b2a(0x88)](_0x1f3b2a(0x92),_0x1f3b2a(0x7e)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x4dd4fa===undefined||_0x4dd4fa==='')throw CliErrors[_0x1f3b2a(0x88)]('Missing\x20value.',_0x1f3b2a(0x7e)+CLI_BIN_NAME+_0x1f3b2a(0x7c));let _0x1dae72=_0x59f06c,_0x2de0e7=_0x4dd4fa;if(_0x4dd4fa[_0x1f3b2a(0x81)]>0x1f4)throw CliErrors[_0x1f3b2a(0x88)](_0x1f3b2a(0x6c));if(_0x59f06c===_0x1f3b2a(0x9a))throw CliErrors[_0x1f3b2a(0x88)](_0x1f3b2a(0x93));if(!isTopLevelConfigKey(_0x59f06c))throw CliErrors[_0x1f3b2a(0x88)](_0x1f3b2a(0x7b)+_0x59f06c+_0x1f3b2a(0x78),_0x1f3b2a(0x95)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x59f06c]&&!CONFIG_ENUM_VALUES[_0x59f06c][_0x1f3b2a(0x83)](_0x4dd4fa))throw CliErrors[_0x1f3b2a(0x88)]('Invalid\x20value\x20for\x20\x22'+_0x59f06c+_0x1f3b2a(0x8a)+CONFIG_ENUM_VALUES[_0x59f06c][_0x1f3b2a(0x8c)](',\x20'));if(_0x59f06c==='locale'&&!normalizeLocale(_0x4dd4fa))throw CliErrors[_0x1f3b2a(0x88)](_0x1f3b2a(0x97),_0x1f3b2a(0x89));DOMAIN_CONFIG_FIELDS['includes'](_0x59f06c)&&(_0x2de0e7=normalizeDomainOrigin(_0x59f06c,_0x4dd4fa));const _0x59e8ab={'global':_0x11d1e9[_0x1f3b2a(0x7d)](_0x1f3b2a(0x85))},_0x3aeffb=resolveWriteScope(_0x59e8ab),_0x373f27=readScopedConfig(_0x3aeffb);_0x59f06c===_0x1f3b2a(0x86)&&(_0x1dae72=_0x1f3b2a(0x96),delete _0x373f27[_0x1f3b2a(0x86)]);_0x59f06c==='locale'&&(_0x2de0e7=normalizeLocale(_0x4dd4fa));if(_0x59f06c===_0x1f3b2a(0x90)){_0x2de0e7=normalizeEnv(_0x4dd4fa);if(!isProduction(_0x2de0e7)&&!isDaily(_0x2de0e7))throw CliErrors[_0x1f3b2a(0x88)](_0x1f3b2a(0x72),_0x1f3b2a(0x98));}if(_0x59f06c==='appcode'){const _0x3b4d18=_0x373f27[_0x1f3b2a(0x6e)]&&typeof _0x373f27[_0x1f3b2a(0x6e)]===_0x1f3b2a(0x8d)?Object['keys'](_0x373f27['apps']):[];if(_0x3b4d18[_0x1f3b2a(0x81)]>0x0)throw CliErrors[_0x1f3b2a(0x88)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x1f3b2a(0x76)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x2de0e7+_0x1f3b2a(0x82)+CLI_BIN_NAME+_0x1f3b2a(0x99));const _0x4ee857=buildCanonicalProjectConfig({..._0x373f27},{'appCodes':[_0x2de0e7],'env':typeof _0x373f27[_0x1f3b2a(0x90)]===_0x1f3b2a(0x7f)?_0x373f27[_0x1f3b2a(0x90)]:undefined});writeScopedConfig(_0x4ee857,_0x3aeffb);const _0x2878b5=_0x3aeffb===_0x1f3b2a(0x85)?_0x1f3b2a(0x9e):_0x1f3b2a(0x87);return{'ok':!![],'message':'✓\x20'+_0x2878b5+'\x20appcode\x20set\x20to:\x20'+_0x2de0e7+'\x20(stored\x20as\x20a\x20single\x20app\x20profile)'};}_0x373f27[_0x1dae72]=_0x2de0e7,writeScopedConfig(_0x373f27,_0x3aeffb);const _0xc6f60f=_0x3aeffb===_0x1f3b2a(0x85)?_0x1f3b2a(0x9e):_0x1f3b2a(0x87);return{'ok':!![],'message':'✓\x20'+_0xc6f60f+'\x20'+_0x1dae72+_0x1f3b2a(0x8e)+_0x2de0e7};}export const configSetDefinition={'service':a63_0xc138b5(0x84),'command':a63_0xc138b5(0x75),'description':a63_0xc138b5(0x74),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0xc138b5(0x77),'type':a63_0xc138b5(0x7f),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0xc138b5(0x9b),'type':a63_0xc138b5(0x7f),'description':a63_0xc138b5(0x8f),'required':!![]},{'name':a63_0xc138b5(0x85),'type':'boolean','description':a63_0xc138b5(0x7a),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b9575,_0x488475){var _0x20d218=a64_0x5b2e,_0xb222cd=_0x1b9575();while(!![]){try{var _0x5c4449=parseInt(_0x20d218(0x1d8))/0x1+parseInt(_0x20d218(0x1dc))/0x2+parseInt(_0x20d218(0x1de))/0x3*(-parseInt(_0x20d218(0x1da))/0x4)+-parseInt(_0x20d218(0x1e1))/0x5+-parseInt(_0x20d218(0x1db))/0x6*(-parseInt(_0x20d218(0x1df))/0x7)+parseInt(_0x20d218(0x1d7))/0x8*(parseInt(_0x20d218(0x1d9))/0x9)+-parseInt(_0x20d218(0x1e0))/0xa;if(_0x5c4449===_0x488475)break;else _0xb222cd['push'](_0xb222cd['shift']());}catch(_0xa31afe){_0xb222cd['push'](_0xb222cd['shift']());}}}(a64_0x31d5,0xc336f));function a64_0x31d5(){var _0x27f248=['81ZVfcpY','1116vNmsFw','148182fdDUDK','1053042uorqdu','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','5703rKPdRj','434aZCxgM','20009560RYGXTP','3072905PfEPJI','global','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','project','933576BeDWZs','837507YusyzF'];a64_0x31d5=function(){return _0x27f248;};return a64_0x31d5();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';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};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};function a64_0x5b2e(_0x114a2f,_0x274fa0){_0x114a2f=_0x114a2f-0x1d7;var _0x31d574=a64_0x31d5();var _0x5b2ea4=_0x31d574[_0x114a2f];return _0x5b2ea4;}export function resolveWriteScope(_0x97b7fb){var _0x24514b=a64_0x5b2e;if(_0x97b7fb[_0x24514b(0x1e2)])return _0x24514b(0x1e2);if(!isInProject())throw CliErrors['validation'](_0x24514b(0x1dd),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x24514b(0x1e3));return _0x24514b(0x1e4);}export function readScopedConfig(_0x1038fb){return readConfigFile(resolveWriteConfigPath(_0x1038fb));}export function writeScopedConfig(_0x46bbac,_0x320a5d){writeConfigFile(resolveWriteConfigPath(_0x320a5d),_0x46bbac);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x214905=a65_0x3357;(function(_0x57a404,_0x3d36d6){const _0x421da9=a65_0x3357,_0x209056=_0x57a404();while(!![]){try{const _0x4e94bb=-parseInt(_0x421da9(0x147))/0x1+parseInt(_0x421da9(0x117))/0x2*(-parseInt(_0x421da9(0x119))/0x3)+-parseInt(_0x421da9(0x121))/0x4*(parseInt(_0x421da9(0x15e))/0x5)+-parseInt(_0x421da9(0x136))/0x6*(-parseInt(_0x421da9(0x10f))/0x7)+parseInt(_0x421da9(0x130))/0x8*(-parseInt(_0x421da9(0x14f))/0x9)+parseInt(_0x421da9(0x132))/0xa*(-parseInt(_0x421da9(0x12a))/0xb)+-parseInt(_0x421da9(0x14b))/0xc*(-parseInt(_0x421da9(0x15d))/0xd);if(_0x4e94bb===_0x3d36d6)break;else _0x209056['push'](_0x209056['shift']());}catch(_0x59cc68){_0x209056['push'](_0x209056['shift']());}}}(a65_0x29af,0xcfc32));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set(['MANY_TO_ONE',a65_0x214905(0x152)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x214905(0x134),a65_0x214905(0x13b),'DATETIME',a65_0x214905(0x141),a65_0x214905(0x15c),a65_0x214905(0x102),a65_0x214905(0x140),a65_0x214905(0x115),'ADDRESS',a65_0x214905(0x12b)]);export function isDatasetBatchDesign(_0x16d313){const _0x5e3697=a65_0x214905;return isObject(_0x16d313)&&_0x16d313[_0x5e3697(0x10d)]===_0x5e3697(0x12c);}export function validateDatasetBatchDesign(_0x2db559){const _0x8ec39f=a65_0x214905;(!isObject(_0x2db559)||_0x2db559[_0x8ec39f(0x10d)]!==_0x8ec39f(0x12c))&&fail(_0x8ec39f(0x13c));_0x2db559[_0x8ec39f(0x107)]!==0x1&&fail(_0x8ec39f(0x156));const _0x53f2fe=objectArray(_0x2db559[_0x8ec39f(0x10b)],_0x8ec39f(0x10b),0x1,0x14),_0x9c84b7=objectArray(_0x2db559[_0x8ec39f(0x12e)],'relations',0x0,0xc8),_0x3cc007=objectArray(_0x2db559[_0x8ec39f(0x14a)],_0x8ec39f(0x14a),0x0,0xc8),_0x263e06=new Set(),_0x3c3ab7=new Map();for(const [_0x37d13d,_0x5f30cb]of _0x53f2fe['entries']()){const _0x51c09c=requiredString(_0x5f30cb['localKey'],_0x8ec39f(0x109)+_0x37d13d+_0x8ec39f(0x138));!LOCAL_KEY['test'](_0x51c09c)&&fail(_0x8ec39f(0x109)+_0x37d13d+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x8ec39f(0x103)]+'.');_0x263e06[_0x8ec39f(0x112)](_0x51c09c)&&fail(_0x8ec39f(0x110));_0x263e06[_0x8ec39f(0x160)](_0x51c09c);!isObject(_0x5f30cb[_0x8ec39f(0x151)])&&fail(_0x8ec39f(0x109)+_0x37d13d+_0x8ec39f(0x10c));rejectServerDatasetIdentity(_0x5f30cb['design'],_0x8ec39f(0x109)+_0x37d13d+_0x8ec39f(0x14c));if(!isObject(_0x5f30cb[_0x8ec39f(0x151)][_0x8ec39f(0x146)]))fail('datasets['+_0x37d13d+_0x8ec39f(0x120));rejectServerDatasetIdentity(_0x5f30cb['design']['dataset'],_0x8ec39f(0x109)+_0x37d13d+_0x8ec39f(0x122)),requiredString(_0x5f30cb['design']['dataset']['datasetName'],_0x8ec39f(0x109)+_0x37d13d+'].design.dataset.datasetName');_0x8ec39f(0x12e)in _0x5f30cb[_0x8ec39f(0x151)]&&(!Array[_0x8ec39f(0x13e)](_0x5f30cb['design'][_0x8ec39f(0x12e)])||_0x5f30cb[_0x8ec39f(0x151)][_0x8ec39f(0x12e)][_0x8ec39f(0x11c)]!==0x0)&&fail(_0x8ec39f(0x109)+_0x37d13d+'].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.');const _0x204945=objectArray(_0x5f30cb['design']['fields'],_0x8ec39f(0x109)+_0x37d13d+'].design.fields',0x1,0xc8),_0x146640=new Map();for(const [_0x2659e5,_0x544d83]of _0x204945[_0x8ec39f(0x11a)]()){const _0x14924d=fieldName(_0x544d83);if(!_0x14924d)fail(_0x8ec39f(0x109)+_0x37d13d+_0x8ec39f(0x154)+_0x2659e5+_0x8ec39f(0x108));const _0x3ee19a=_0x14924d['toLowerCase']();if(_0x146640[_0x8ec39f(0x112)](_0x3ee19a))fail('Dataset\x20'+_0x51c09c+_0x8ec39f(0x106));const _0x3ecc40=stringValue(_0x544d83[_0x8ec39f(0x12d)]??_0x544d83[_0x8ec39f(0x159)])[_0x8ec39f(0x11e)]();if(!SUPPORTED_FIELD_TYPES[_0x8ec39f(0x112)](_0x3ecc40))fail('datasets['+_0x37d13d+_0x8ec39f(0x154)+_0x2659e5+'].type\x20is\x20not\x20supported.');_0x146640['set'](_0x3ee19a,_0x3ecc40),[_0x544d83[_0x8ec39f(0x127)],_0x544d83[_0x8ec39f(0x143)],_0x544d83['refTableLabelField']]['some'](_0x295c6b=>stringValue(_0x295c6b))&&fail(_0x8ec39f(0x109)+_0x37d13d+'].design.fields['+_0x2659e5+_0x8ec39f(0x116));}_0x3c3ab7[_0x8ec39f(0x11f)](_0x51c09c,_0x146640);}const _0x3fa9ef=new Set(),_0x95079a=new Set();for(const [_0x2973bc,_0x156646]of _0x9c84b7['entries']()){const _0x292a44=validateRelation(_0x156646,_0x2973bc,_0x263e06,_0x3c3ab7);if(_0x3fa9ef[_0x8ec39f(0x112)](_0x292a44))fail(_0x8ec39f(0x148));_0x3fa9ef[_0x8ec39f(0x160)](_0x292a44);const _0x18575b=_0x292a44['split']('\x00',0x2)['join']('\x00');if(_0x95079a[_0x8ec39f(0x112)](_0x18575b))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x95079a['add'](_0x18575b);}for(const [_0x3eb8e7,_0x110d59]of _0x3cc007[_0x8ec39f(0x11a)]()){requiredString(_0x110d59[_0x8ec39f(0x167)],_0x8ec39f(0x169)+_0x3eb8e7+_0x8ec39f(0x14d)),validateConfidence(_0x110d59[_0x8ec39f(0x15a)],_0x8ec39f(0x169)+_0x3eb8e7+_0x8ec39f(0x131));}return _0x2db559;}export function reconcileBatchResult(_0x5e303a){const _0x4962c7=a65_0x214905;if(!isObject(_0x5e303a))return null;try{const _0x62480b=stringArray(_0x5e303a['expectedLocalKeys'],'expectedLocalKeys',0x1,0x14),_0x3f5a02=new Set(_0x62480b);if(_0x3f5a02[_0x4962c7(0x128)]!==_0x62480b[_0x4962c7(0x11c)]||_0x62480b[_0x4962c7(0x10a)](_0x3dd42d=>!LOCAL_KEY[_0x4962c7(0x157)](_0x3dd42d)))return null;const _0xd08e12=objectArray(_0x5e303a['createdDatasets'],'createdDatasets',0x1,0x14),_0x286da5=new Map(),_0x569b98=new Set();for(const _0x1d7450 of _0xd08e12){const _0x30c4a9=requiredString(_0x1d7450[_0x4962c7(0x114)],_0x4962c7(0x113)),_0x167d59=requiredString(_0x1d7450[_0x4962c7(0x15b)]??_0x1d7450[_0x4962c7(0x15f)],_0x4962c7(0x145));if(_0x286da5[_0x4962c7(0x112)](_0x30c4a9)||_0x569b98[_0x4962c7(0x112)](_0x167d59))return null;_0x286da5['set'](_0x30c4a9,_0x167d59),_0x569b98[_0x4962c7(0x160)](_0x167d59);}if(!sameSet(_0x3f5a02,new Set(_0x286da5['keys']())))return null;const _0x1f52a6=objectArray(_0x5e303a['expectedRelations'],_0x4962c7(0x144),0x0,0xc8),_0x33aa4b=objectArray(_0x5e303a[_0x4962c7(0x118)],_0x4962c7(0x118),0x0,0xc8),_0x345e77=relationTupleSet(_0x1f52a6,![],_0x286da5),_0x2499c5=relationTupleSet(_0x33aa4b,!![],_0x286da5);if(!_0x345e77||!_0x2499c5||!sameSet(_0x345e77,_0x2499c5))return null;const _0x42691b=objectArray(_0x5e303a[_0x4962c7(0x14a)],_0x4962c7(0x14a),0x0,0xc8);return{'expectedLocalKeys':_0x62480b,'expectedRelations':_0x1f52a6,'createdDatasets':_0xd08e12,'createdRelations':_0x33aa4b,'unresolvedRelations':_0x42691b,...isObject(_0x5e303a[_0x4962c7(0x168)])?{'metrics':_0x5e303a[_0x4962c7(0x168)]}:{}};}catch{return null;}}function validateRelation(_0x1dc287,_0x38b67c,_0x50771e,_0x37eeff){const _0x48ab14=a65_0x214905,_0xbcdc9c=_0x48ab14(0x105)+_0x38b67c+']',_0x358e14=requiredString(_0x1dc287['fromDatasetKey'],_0xbcdc9c+'.fromDatasetKey'),_0x19e2f6=requiredString(_0x1dc287[_0x48ab14(0x101)],_0xbcdc9c+_0x48ab14(0x126)),_0x3de46d=requiredString(_0x1dc287[_0x48ab14(0x123)],_0xbcdc9c+_0x48ab14(0x11b))[_0x48ab14(0x153)](),_0x582f73=requiredString(_0x1dc287[_0x48ab14(0x165)],_0xbcdc9c+_0x48ab14(0x163))[_0x48ab14(0x153)]();if(!_0x50771e[_0x48ab14(0x112)](_0x358e14)||!_0x50771e[_0x48ab14(0x112)](_0x19e2f6))fail(_0xbcdc9c+_0x48ab14(0x139));const _0x2fe03a=_0x37eeff[_0x48ab14(0x100)](_0x358e14)?.[_0x48ab14(0x100)](_0x3de46d),_0x3903b6=_0x37eeff[_0x48ab14(0x100)](_0x19e2f6)?.[_0x48ab14(0x100)](_0x582f73);if(_0x2fe03a===undefined||_0x3903b6===undefined)fail(_0xbcdc9c+_0x48ab14(0x125));if(_0x2fe03a&&_0x3903b6&&_0x2fe03a!==_0x3903b6)fail(_0xbcdc9c+_0x48ab14(0x164));const _0x174e67=stringValue(_0x1dc287[_0x48ab14(0x149)])||_0x48ab14(0x11d);if(_0x174e67!==_0x48ab14(0x11d))fail(_0xbcdc9c+_0x48ab14(0x162));const _0x324938=stringValue(_0x1dc287[_0x48ab14(0x16a)])||_0x48ab14(0x155);if(!SUPPORTED_CARDINALITIES['has'](_0x324938))fail(_0xbcdc9c+_0x48ab14(0x133));return requiredString(_0x1dc287['reason'],_0xbcdc9c+'.reason'),validateConfidence(_0x1dc287[_0x48ab14(0x15a)],_0xbcdc9c+'.confidence'),tuple(_0x358e14,_0x3de46d,_0x19e2f6,_0x582f73,_0x48ab14(0x11d),_0x324938);}function relationTupleSet(_0x515f94,_0x18c7d9,_0x3d702b){const _0x4158b9=a65_0x214905,_0x774c5a=new Set();for(const _0x2a4248 of _0x515f94){const _0x346964=stringValue(_0x2a4248[_0x4158b9(0x137)]),_0x4e1383=stringValue(_0x2a4248[_0x4158b9(0x101)]),_0xdaaef2=stringValue(_0x2a4248[_0x4158b9(0x123)])[_0x4158b9(0x153)](),_0x4f5233=stringValue(_0x2a4248[_0x4158b9(0x165)])[_0x4158b9(0x153)](),_0x22919e=stringValue(_0x2a4248[_0x4158b9(0x149)]),_0x2ee5e9=stringValue(_0x2a4248[_0x4158b9(0x16a)]);if(!_0x346964||!_0x4e1383||!_0xdaaef2||!_0x4f5233||_0x22919e!==_0x4158b9(0x11d)||!SUPPORTED_CARDINALITIES[_0x4158b9(0x112)](_0x2ee5e9))return null;if(!_0x3d702b[_0x4158b9(0x112)](_0x346964)||!_0x3d702b[_0x4158b9(0x112)](_0x4e1383))return null;if(_0x18c7d9&&(stringValue(_0x2a4248[_0x4158b9(0x14e)])!==_0x3d702b[_0x4158b9(0x100)](_0x346964)||stringValue(_0x2a4248[_0x4158b9(0x150)])!==_0x3d702b[_0x4158b9(0x100)](_0x4e1383)))return null;const _0x2f1003=tuple(_0x346964,_0xdaaef2,_0x4e1383,_0x4f5233,_0x22919e,_0x2ee5e9);if(_0x774c5a[_0x4158b9(0x112)](_0x2f1003))return null;_0x774c5a[_0x4158b9(0x160)](_0x2f1003);}return _0x774c5a;}function a65_0x3357(_0xd1697f,_0x575266){_0xd1697f=_0xd1697f-0x100;const _0x29af23=a65_0x29af();let _0x3357a1=_0x29af23[_0xd1697f];return _0x3357a1;}function a65_0x29af(){const _0x48e307=['every','reason','metrics','unresolvedRelations[','cardinality','get','toDatasetKey','MULTI_SELECT','source','string','relations[','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','schemaVersion',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','datasets[','some','datasets','].design\x20must\x20be\x20an\x20object.','kind','\x20is\x20required.','35xfgrrC','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','map','has','createdDatasets[].localKey','localKey','USER',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','4XuAoqe','createdRelations','2427099IjAaPP','entries','.fromField','length','lookup','toUpperCase','set','].design.dataset\x20must\x20be\x20an\x20object.','2859592gaJxEu','].design.dataset','fromField','trim','\x20references\x20an\x20unknown\x20field.','.toDatasetKey','refTable','size','modelId','5753KtptDf','UPLOAD','dataset-batch','type','relations','\x20must\x20contain\x20','8woTaBf','].confidence','15530SnCDes','.cardinality\x20is\x20not\x20supported.','TEXT','name','1556370KRwfwm','fromDatasetKey','].localKey','\x20references\x20an\x20unknown\x20dataset\x20localKey.','fieldName','NUMBER','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','validation','isArray','\x20must\x20be\x20between\x200\x20and\x201.','DATE_RANGE','BOOLEAN','modelCode','refTableField','expectedRelations','createdDatasets[].code','dataset','864463vuvkax','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','relationType','unresolvedRelations','12wZAvUU','].design','].reason','fromDatasetCode','10919952OYUpNY','toDatasetCode','design','ONE_TO_ONE','toLowerCase','].design.fields[','MANY_TO_ONE','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','test','join','fieldType','confidence','code','SELECT','71394583AkjbAQ','10nwUDNM','datasetCode','add','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','.relationType\x20must\x20be\x20\x22lookup\x22.','.toField','\x20connects\x20incompatible\x20field\x20types.','toField'];a65_0x29af=function(){return _0x48e307;};return a65_0x29af();}function rejectServerDatasetIdentity(_0x5130f5,_0x39897f){const _0x5b0c31=a65_0x214905;for(const _0x555ab9 of['id','datasetId',_0x5b0c31(0x129),_0x5b0c31(0x15b),_0x5b0c31(0x15f),_0x5b0c31(0x142)]){if(_0x5130f5[_0x555ab9]!==undefined&&_0x5130f5[_0x555ab9]!==null&&_0x5130f5[_0x555ab9]!=='')fail(_0x39897f+'.'+_0x555ab9+_0x5b0c31(0x161));}}function objectArray(_0x16ab78,_0x31611a,_0x583bd5,_0x11a291){const _0x16f51e=a65_0x214905;return(!Array[_0x16f51e(0x13e)](_0x16ab78)||_0x16ab78['length']<_0x583bd5||_0x16ab78[_0x16f51e(0x11c)]>_0x11a291||_0x16ab78[_0x16f51e(0x10a)](_0x90885a=>!isObject(_0x90885a)))&&fail(_0x31611a+_0x16f51e(0x12f)+_0x583bd5+'..'+_0x11a291+'\x20objects.'),_0x16ab78;}function stringArray(_0xce31ee,_0x30a669,_0x83191f,_0x3ad9b1){const _0x22ce47=a65_0x214905;return(!Array['isArray'](_0xce31ee)||_0xce31ee[_0x22ce47(0x11c)]<_0x83191f||_0xce31ee[_0x22ce47(0x11c)]>_0x3ad9b1||_0xce31ee[_0x22ce47(0x10a)](_0x271d99=>typeof _0x271d99!==_0x22ce47(0x104)||!_0x271d99[_0x22ce47(0x124)]()))&&fail(_0x30a669+'\x20must\x20contain\x20'+_0x83191f+'..'+_0x3ad9b1+'\x20non-empty\x20strings.'),_0xce31ee;}function requiredString(_0xde00c0,_0x4b6a9e){const _0x17786b=a65_0x214905,_0xba690f=stringValue(_0xde00c0);if(!_0xba690f)fail(_0x4b6a9e+_0x17786b(0x10e));return _0xba690f;}function stringValue(_0x5dec38){const _0x312418=a65_0x214905;return typeof _0x5dec38===_0x312418(0x104)?_0x5dec38[_0x312418(0x124)]():'';}function fieldName(_0x554d64){const _0x55378a=a65_0x214905;return stringValue(_0x554d64[_0x55378a(0x15b)]??_0x554d64['fieldCode']??_0x554d64[_0x55378a(0x135)]??_0x554d64[_0x55378a(0x13a)]);}function validateConfidence(_0x456b69,_0x4208e7){const _0x4e479b=a65_0x214905;_0x456b69!==undefined&&_0x456b69!==null&&(typeof _0x456b69!=='number'||!Number['isFinite'](_0x456b69)||_0x456b69<0x0||_0x456b69>0x1)&&fail(_0x4208e7+_0x4e479b(0x13f));}function tuple(..._0x18d3ac){const _0x27e28e=a65_0x214905;return _0x18d3ac[_0x27e28e(0x111)]((_0x272c37,_0xdb19b4)=>_0xdb19b4===0x1||_0xdb19b4===0x3?_0x272c37['toLowerCase']():_0x272c37)[_0x27e28e(0x158)]('\x00');}function sameSet(_0x196911,_0x27a4ad){const _0x1ecc6e=a65_0x214905;return _0x196911[_0x1ecc6e(0x128)]===_0x27a4ad[_0x1ecc6e(0x128)]&&[..._0x196911][_0x1ecc6e(0x166)](_0x1e4f5f=>_0x27a4ad['has'](_0x1e4f5f));}function isObject(_0x3d6d2c){const _0x13ffe7=a65_0x214905;return typeof _0x3d6d2c==='object'&&_0x3d6d2c!==null&&!Array[_0x13ffe7(0x13e)](_0x3d6d2c);}function fail(_0x465958){const _0x348051=a65_0x214905;throw CliErrors[_0x348051(0x13d)](_0x465958);}
|
|
1
|
+
const a65_0x55bd58=a65_0x1b54;(function(_0x1b218e,_0x1cbe50){const _0x230926=a65_0x1b54,_0x2ff254=_0x1b218e();while(!![]){try{const _0x5598f7=-parseInt(_0x230926(0x1b8))/0x1*(parseInt(_0x230926(0x1a6))/0x2)+-parseInt(_0x230926(0x14b))/0x3*(parseInt(_0x230926(0x179))/0x4)+-parseInt(_0x230926(0x150))/0x5+-parseInt(_0x230926(0x197))/0x6+parseInt(_0x230926(0x163))/0x7*(parseInt(_0x230926(0x1ad))/0x8)+-parseInt(_0x230926(0x189))/0x9+parseInt(_0x230926(0x14e))/0xa*(parseInt(_0x230926(0x19f))/0xb);if(_0x5598f7===_0x1cbe50)break;else _0x2ff254['push'](_0x2ff254['shift']());}catch(_0x454d5b){_0x2ff254['push'](_0x2ff254['shift']());}}}(a65_0x1f6b,0x5754f));function a65_0x1f6b(){const _0x83c994=['ADDRESS','.cardinality\x20is\x20not\x20supported.','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','length','].design.fields','datasetName','73407mrFZel','string','].design','].confidence','set','MULTI_SELECT','1798842cVZUuK','schemaVersion','expectedRelations','50pwYZBV','toDatasetCode','2829560kuWCyS','.toDatasetKey','fields','every','cardinality','\x20references\x20an\x20unknown\x20field.','modelId','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','size','fieldCode','].localKey','].design.dataset\x20must\x20be\x20an\x20object.','toDatasetKey','code','datasets[','expectedLocalKeys','\x20objects.','].design.dataset.datasetName','7XsbPhI','Dataset\x20','dataset','object','\x20references\x20an\x20unknown\x20dataset\x20localKey.','.fromDatasetKey','SELECT','test','isArray','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','relations','fromDatasetCode','modelCode','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','confidence','DATETIME','].reason','lookup','MANY_TO_ONE','\x20non-empty\x20strings.','DATE_RANGE','4Iybmss','].type\x20is\x20not\x20supported.','UPLOAD','.toField','refTableField','validation','toUpperCase','.reason','unresolvedRelations','some','map','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','has','datasetCode','.relationType\x20must\x20be\x20\x22lookup\x22.','refTable','1493793KnkAoy','ONE_TO_ONE','unresolvedRelations[','number','get','relations[','createdDatasets[].localKey','relationType','dataset-batch','join','fromField','design','add','toField','1967496Tyudut','\x20is\x20required.','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','reason','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','\x20must\x20contain\x20','createdRelations','datasets','4421131VamDlx','localKey','\x20connects\x20incompatible\x20field\x20types.','.confidence','].design.fields[','].design\x20must\x20be\x20an\x20object.','fromDatasetKey','14soqXFM','\x20must\x20be\x20between\x200\x20and\x201.','toLowerCase','metrics','createdDatasets','split','kind','4170992fHDoHe','TEXT','trim','entries','source'];a65_0x1f6b=function(){return _0x83c994;};return a65_0x1f6b();}import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x55bd58(0x176),a65_0x55bd58(0x18a)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x55bd58(0x1ae),'NUMBER',a65_0x55bd58(0x173),'BOOLEAN',a65_0x55bd58(0x169),a65_0x55bd58(0x14a),a65_0x55bd58(0x178),'USER',a65_0x55bd58(0x1b2),a65_0x55bd58(0x17b)]);export function isDatasetBatchDesign(_0x132a24){const _0xfb5069=a65_0x55bd58;return isObject(_0x132a24)&&_0x132a24[_0xfb5069(0x1ac)]===_0xfb5069(0x191);}export function validateDatasetBatchDesign(_0x17a00d){const _0x5e8445=a65_0x55bd58;(!isObject(_0x17a00d)||_0x17a00d['kind']!==_0x5e8445(0x191))&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x17a00d[_0x5e8445(0x14c)]!==0x1&&fail(_0x5e8445(0x1b4));const _0x36d031=objectArray(_0x17a00d[_0x5e8445(0x19e)],_0x5e8445(0x19e),0x1,0x14),_0xedafaf=objectArray(_0x17a00d[_0x5e8445(0x16e)],_0x5e8445(0x16e),0x0,0xc8),_0x9a4e5b=objectArray(_0x17a00d[_0x5e8445(0x181)],_0x5e8445(0x181),0x0,0xc8),_0x35d681=new Set(),_0x279cde=new Map();for(const [_0x4c7146,_0x3295ef]of _0x36d031[_0x5e8445(0x1b0)]()){const _0x5bf6a3=requiredString(_0x3295ef[_0x5e8445(0x1a0)],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x15b));!LOCAL_KEY[_0x5e8445(0x16a)](_0x5bf6a3)&&fail(_0x5e8445(0x15f)+_0x4c7146+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x5e8445(0x1b1)]+'.');_0x35d681[_0x5e8445(0x185)](_0x5bf6a3)&&fail(_0x5e8445(0x184));_0x35d681['add'](_0x5bf6a3);!isObject(_0x3295ef[_0x5e8445(0x194)])&&fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1a4));rejectServerDatasetIdentity(_0x3295ef['design'],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1ba));if(!isObject(_0x3295ef['design']['dataset']))fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x15c));rejectServerDatasetIdentity(_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x165)],'datasets['+_0x4c7146+'].design.dataset'),requiredString(_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x165)][_0x5e8445(0x1b7)],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x162));_0x5e8445(0x16e)in _0x3295ef['design']&&(!Array[_0x5e8445(0x16b)](_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x16e)])||_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x16e)][_0x5e8445(0x1b5)]!==0x0)&&fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x199));const _0x1440b0=objectArray(_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x152)],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1b6),0x1,0xc8),_0x3accbe=new Map();for(const [_0x286af7,_0x156072]of _0x1440b0[_0x5e8445(0x1b0)]()){const _0x5308ec=fieldName(_0x156072);if(!_0x5308ec)fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1a3)+_0x286af7+_0x5e8445(0x16d));const _0x123c96=_0x5308ec['toLowerCase']();if(_0x3accbe['has'](_0x123c96))fail(_0x5e8445(0x164)+_0x5bf6a3+_0x5e8445(0x171));const _0xd0eb7b=stringValue(_0x156072['type']??_0x156072['fieldType'])[_0x5e8445(0x17f)]();if(!SUPPORTED_FIELD_TYPES[_0x5e8445(0x185)](_0xd0eb7b))fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1a3)+_0x286af7+_0x5e8445(0x17a));_0x3accbe[_0x5e8445(0x1bc)](_0x123c96,_0xd0eb7b),[_0x156072[_0x5e8445(0x188)],_0x156072[_0x5e8445(0x17d)],_0x156072['refTableLabelField']][_0x5e8445(0x182)](_0x5e2567=>stringValue(_0x5e2567))&&fail(_0x5e8445(0x15f)+_0x4c7146+'].design.fields['+_0x286af7+_0x5e8445(0x158));}_0x279cde['set'](_0x5bf6a3,_0x3accbe);}const _0x272029=new Set(),_0x44c983=new Set();for(const [_0x1fcd9e,_0x15678f]of _0xedafaf[_0x5e8445(0x1b0)]()){const _0x553e9b=validateRelation(_0x15678f,_0x1fcd9e,_0x35d681,_0x279cde);if(_0x272029[_0x5e8445(0x185)](_0x553e9b))fail(_0x5e8445(0x19b));_0x272029[_0x5e8445(0x195)](_0x553e9b);const _0xab6e8f=_0x553e9b[_0x5e8445(0x1ab)]('\x00',0x2)[_0x5e8445(0x192)]('\x00');if(_0x44c983[_0x5e8445(0x185)](_0xab6e8f))fail(_0x5e8445(0x16c));_0x44c983[_0x5e8445(0x195)](_0xab6e8f);}for(const [_0xe8af28,_0x243a67]of _0x9a4e5b[_0x5e8445(0x1b0)]()){requiredString(_0x243a67[_0x5e8445(0x19a)],_0x5e8445(0x18b)+_0xe8af28+_0x5e8445(0x174)),validateConfidence(_0x243a67['confidence'],_0x5e8445(0x18b)+_0xe8af28+_0x5e8445(0x1bb));}return _0x17a00d;}export function reconcileBatchResult(_0x33dd53){const _0x48cca1=a65_0x55bd58;if(!isObject(_0x33dd53))return null;try{const _0x3545da=stringArray(_0x33dd53[_0x48cca1(0x160)],_0x48cca1(0x160),0x1,0x14),_0x3fb349=new Set(_0x3545da);if(_0x3fb349[_0x48cca1(0x159)]!==_0x3545da[_0x48cca1(0x1b5)]||_0x3545da['some'](_0x398207=>!LOCAL_KEY[_0x48cca1(0x16a)](_0x398207)))return null;const _0x16d2f9=objectArray(_0x33dd53[_0x48cca1(0x1aa)],_0x48cca1(0x1aa),0x1,0x14),_0x1a1d0f=new Map(),_0x54bc64=new Set();for(const _0x274ba7 of _0x16d2f9){const _0x57d42a=requiredString(_0x274ba7[_0x48cca1(0x1a0)],_0x48cca1(0x18f)),_0x560388=requiredString(_0x274ba7[_0x48cca1(0x15e)]??_0x274ba7[_0x48cca1(0x186)],'createdDatasets[].code');if(_0x1a1d0f[_0x48cca1(0x185)](_0x57d42a)||_0x54bc64[_0x48cca1(0x185)](_0x560388))return null;_0x1a1d0f['set'](_0x57d42a,_0x560388),_0x54bc64[_0x48cca1(0x195)](_0x560388);}if(!sameSet(_0x3fb349,new Set(_0x1a1d0f['keys']())))return null;const _0x1791c6=objectArray(_0x33dd53[_0x48cca1(0x14d)],_0x48cca1(0x14d),0x0,0xc8),_0x1fb3ff=objectArray(_0x33dd53[_0x48cca1(0x19d)],_0x48cca1(0x19d),0x0,0xc8),_0x2738d9=relationTupleSet(_0x1791c6,![],_0x1a1d0f),_0x8c3ec6=relationTupleSet(_0x1fb3ff,!![],_0x1a1d0f);if(!_0x2738d9||!_0x8c3ec6||!sameSet(_0x2738d9,_0x8c3ec6))return null;const _0x12d8c6=objectArray(_0x33dd53[_0x48cca1(0x181)],'unresolvedRelations',0x0,0xc8);return{'expectedLocalKeys':_0x3545da,'expectedRelations':_0x1791c6,'createdDatasets':_0x16d2f9,'createdRelations':_0x1fb3ff,'unresolvedRelations':_0x12d8c6,...isObject(_0x33dd53[_0x48cca1(0x1a9)])?{'metrics':_0x33dd53[_0x48cca1(0x1a9)]}:{}};}catch{return null;}}function validateRelation(_0x8ece5a,_0x2c32b9,_0x511ad2,_0xe03efd){const _0x917e1=a65_0x55bd58,_0x5f1f29=_0x917e1(0x18e)+_0x2c32b9+']',_0x1f4655=requiredString(_0x8ece5a[_0x917e1(0x1a5)],_0x5f1f29+_0x917e1(0x168)),_0x995e2a=requiredString(_0x8ece5a[_0x917e1(0x15d)],_0x5f1f29+_0x917e1(0x151)),_0x373597=requiredString(_0x8ece5a[_0x917e1(0x193)],_0x5f1f29+'.fromField')['toLowerCase'](),_0x2ddb09=requiredString(_0x8ece5a[_0x917e1(0x196)],_0x5f1f29+_0x917e1(0x17c))['toLowerCase']();if(!_0x511ad2[_0x917e1(0x185)](_0x1f4655)||!_0x511ad2[_0x917e1(0x185)](_0x995e2a))fail(_0x5f1f29+_0x917e1(0x167));const _0x34a753=_0xe03efd[_0x917e1(0x18d)](_0x1f4655)?.[_0x917e1(0x18d)](_0x373597),_0x199ef1=_0xe03efd[_0x917e1(0x18d)](_0x995e2a)?.['get'](_0x2ddb09);if(_0x34a753===undefined||_0x199ef1===undefined)fail(_0x5f1f29+_0x917e1(0x155));if(_0x34a753&&_0x199ef1&&_0x34a753!==_0x199ef1)fail(_0x5f1f29+_0x917e1(0x1a1));const _0x303862=stringValue(_0x8ece5a['relationType'])||_0x917e1(0x175);if(_0x303862!=='lookup')fail(_0x5f1f29+_0x917e1(0x187));const _0x1be0e1=stringValue(_0x8ece5a[_0x917e1(0x154)])||_0x917e1(0x176);if(!SUPPORTED_CARDINALITIES[_0x917e1(0x185)](_0x1be0e1))fail(_0x5f1f29+_0x917e1(0x1b3));return requiredString(_0x8ece5a[_0x917e1(0x19a)],_0x5f1f29+_0x917e1(0x180)),validateConfidence(_0x8ece5a[_0x917e1(0x172)],_0x5f1f29+_0x917e1(0x1a2)),tuple(_0x1f4655,_0x373597,_0x995e2a,_0x2ddb09,'lookup',_0x1be0e1);}function relationTupleSet(_0x1b85db,_0x285309,_0x10cd02){const _0x2e76f5=a65_0x55bd58,_0x36b4dd=new Set();for(const _0x5e7c4d of _0x1b85db){const _0x1e5b8e=stringValue(_0x5e7c4d[_0x2e76f5(0x1a5)]),_0x551f90=stringValue(_0x5e7c4d[_0x2e76f5(0x15d)]),_0x3eba9c=stringValue(_0x5e7c4d[_0x2e76f5(0x193)])[_0x2e76f5(0x1a8)](),_0x2d4a3b=stringValue(_0x5e7c4d[_0x2e76f5(0x196)])[_0x2e76f5(0x1a8)](),_0x228aca=stringValue(_0x5e7c4d[_0x2e76f5(0x190)]),_0x13a6f0=stringValue(_0x5e7c4d[_0x2e76f5(0x154)]);if(!_0x1e5b8e||!_0x551f90||!_0x3eba9c||!_0x2d4a3b||_0x228aca!==_0x2e76f5(0x175)||!SUPPORTED_CARDINALITIES['has'](_0x13a6f0))return null;if(!_0x10cd02['has'](_0x1e5b8e)||!_0x10cd02[_0x2e76f5(0x185)](_0x551f90))return null;if(_0x285309&&(stringValue(_0x5e7c4d[_0x2e76f5(0x16f)])!==_0x10cd02[_0x2e76f5(0x18d)](_0x1e5b8e)||stringValue(_0x5e7c4d[_0x2e76f5(0x14f)])!==_0x10cd02['get'](_0x551f90)))return null;const _0x4b042c=tuple(_0x1e5b8e,_0x3eba9c,_0x551f90,_0x2d4a3b,_0x228aca,_0x13a6f0);if(_0x36b4dd[_0x2e76f5(0x185)](_0x4b042c))return null;_0x36b4dd[_0x2e76f5(0x195)](_0x4b042c);}return _0x36b4dd;}function a65_0x1b54(_0x539d81,_0x28c411){_0x539d81=_0x539d81-0x14a;const _0x1f6bbd=a65_0x1f6b();let _0x1b544a=_0x1f6bbd[_0x539d81];return _0x1b544a;}function rejectServerDatasetIdentity(_0x52d249,_0x5f1fe7){const _0x4f18aa=a65_0x55bd58;for(const _0x27dee2 of['id','datasetId',_0x4f18aa(0x156),_0x4f18aa(0x15e),_0x4f18aa(0x186),_0x4f18aa(0x170)]){if(_0x52d249[_0x27dee2]!==undefined&&_0x52d249[_0x27dee2]!==null&&_0x52d249[_0x27dee2]!=='')fail(_0x5f1fe7+'.'+_0x27dee2+_0x4f18aa(0x157));}}function objectArray(_0x1385ee,_0x1636ee,_0x31a2f8,_0x14ebe2){const _0x584066=a65_0x55bd58;return(!Array['isArray'](_0x1385ee)||_0x1385ee[_0x584066(0x1b5)]<_0x31a2f8||_0x1385ee[_0x584066(0x1b5)]>_0x14ebe2||_0x1385ee['some'](_0x4b0ac8=>!isObject(_0x4b0ac8)))&&fail(_0x1636ee+_0x584066(0x19c)+_0x31a2f8+'..'+_0x14ebe2+_0x584066(0x161)),_0x1385ee;}function stringArray(_0x33f228,_0x23bdff,_0xa97524,_0x2d02ec){const _0x3bbcf=a65_0x55bd58;return(!Array[_0x3bbcf(0x16b)](_0x33f228)||_0x33f228[_0x3bbcf(0x1b5)]<_0xa97524||_0x33f228[_0x3bbcf(0x1b5)]>_0x2d02ec||_0x33f228[_0x3bbcf(0x182)](_0x5a6761=>typeof _0x5a6761!=='string'||!_0x5a6761['trim']()))&&fail(_0x23bdff+_0x3bbcf(0x19c)+_0xa97524+'..'+_0x2d02ec+_0x3bbcf(0x177)),_0x33f228;}function requiredString(_0xe81d65,_0x565276){const _0x42c0c7=a65_0x55bd58,_0x145a8a=stringValue(_0xe81d65);if(!_0x145a8a)fail(_0x565276+_0x42c0c7(0x198));return _0x145a8a;}function stringValue(_0x807d0a){const _0xcd0456=a65_0x55bd58;return typeof _0x807d0a===_0xcd0456(0x1b9)?_0x807d0a[_0xcd0456(0x1af)]():'';}function fieldName(_0x52584a){const _0x3a3c57=a65_0x55bd58;return stringValue(_0x52584a[_0x3a3c57(0x15e)]??_0x52584a[_0x3a3c57(0x15a)]??_0x52584a['name']??_0x52584a['fieldName']);}function validateConfidence(_0x51c621,_0x5096c2){const _0x10cc2f=a65_0x55bd58;_0x51c621!==undefined&&_0x51c621!==null&&(typeof _0x51c621!==_0x10cc2f(0x18c)||!Number['isFinite'](_0x51c621)||_0x51c621<0x0||_0x51c621>0x1)&&fail(_0x5096c2+_0x10cc2f(0x1a7));}function tuple(..._0x4a1ad2){const _0x4a6109=a65_0x55bd58;return _0x4a1ad2[_0x4a6109(0x183)]((_0x39e5ef,_0x5623e0)=>_0x5623e0===0x1||_0x5623e0===0x3?_0x39e5ef[_0x4a6109(0x1a8)]():_0x39e5ef)[_0x4a6109(0x192)]('\x00');}function sameSet(_0x350f58,_0x25d32a){const _0xa732d7=a65_0x55bd58;return _0x350f58['size']===_0x25d32a[_0xa732d7(0x159)]&&[..._0x350f58][_0xa732d7(0x153)](_0x4e69eb=>_0x25d32a[_0xa732d7(0x185)](_0x4e69eb));}function isObject(_0xade0d1){const _0x205cad=a65_0x55bd58;return typeof _0xade0d1===_0x205cad(0x166)&&_0xade0d1!==null&&!Array[_0x205cad(0x16b)](_0xade0d1);}function fail(_0x3145a5){const _0x14bd25=a65_0x55bd58;throw CliErrors[_0x14bd25(0x17e)](_0x3145a5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0x2f5920=a66_0x2bff;(function(_0x10f7ba,_0x58e299){const _0x2c2a3f=a66_0x2bff,_0x54b27a=_0x10f7ba();while(!![]){try{const _0x30f808=-parseInt(_0x2c2a3f(0xba))/0x1*(-parseInt(_0x2c2a3f(0xab))/0x2)+-parseInt(_0x2c2a3f(0xb4))/0x3*(-parseInt(_0x2c2a3f(0xa0))/0x4)+parseInt(_0x2c2a3f(0xce))/0x5+parseInt(_0x2c2a3f(0x9c))/0x6*(parseInt(_0x2c2a3f(0xa5))/0x7)+-parseInt(_0x2c2a3f(0x83))/0x8*(-parseInt(_0x2c2a3f(0x8a))/0x9)+parseInt(_0x2c2a3f(0xa1))/0xa+-parseInt(_0x2c2a3f(0xb7))/0xb;if(_0x30f808===_0x58e299)break;else _0x54b27a['push'](_0x54b27a['shift']());}catch(_0x380605){_0x54b27a['push'](_0x54b27a['shift']());}}}(a66_0x38f7,0x59613));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_0x2f5920(0xc7),METADATA_BACKEND_PATH=a66_0x2f5920(0xad),UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1f63cb,input:_0x520d7a,dryRun:_0x53fc42}){const _0x2a70c3=a66_0x2f5920;validateInput(_0x520d7a);const _0x1bcc81=normalizeBusinessGroupArgument(_0x520d7a[_0x2a70c3(0xbc)]),_0x1bccfa=await getDatasetDetail(_0x520d7a[_0x2a70c3(0xa8)]),_0x1e9a0a=resolveBusinessGroupDataset(_0x1bccfa,_0x520d7a[_0x2a70c3(0xa8)]);assertBusinessGroupUpdateSupported(_0x1e9a0a,_0x1bcc81);const _0x8b913f=loadCurrentBusinessGroup(_0x1bccfa,_0x1e9a0a);assertExpectedBusinessGroup(_0x8b913f,_0x520d7a[_0x2a70c3(0xa3)]);const _0xe609fd=buildBackendPlan(_0x1f63cb,_0x1e9a0a,_0x1bcc81),_0x3ee586=_0x8b913f!==_0x1bcc81;let _0x2b4de6;if(_0x3ee586&&!_0x53fc42){_0xe609fd[_0x2a70c3(0xa6)]==='db-table'?await updateDbTableBusinessGroup(_0xe609fd[_0x2a70c3(0xbd)]):await updateErBusinessGroup(_0xe609fd[_0x2a70c3(0xbd)]);const _0x4ff57c=await getDatasetDetail(_0x1e9a0a[_0x2a70c3(0xa8)]),_0x2c66c0=resolveBusinessGroupDataset(_0x4ff57c,_0x1e9a0a[_0x2a70c3(0xa8)]),_0x4b65ab=loadCurrentBusinessGroup(_0x4ff57c,_0x2c66c0);if(_0x4b65ab!==_0x1bcc81)throw CliErrors['apiError']('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x2a70c3(0x8e)+JSON[_0x2a70c3(0x92)](displayBusinessGroup(_0x1bcc81))+_0x2a70c3(0xc5)+JSON[_0x2a70c3(0x92)](displayBusinessGroup(_0x4b65ab))+'.');_0x2b4de6={'verified':!![],'status':_0x2a70c3(0x87),'afterReadback':{'businessGroup':displayBusinessGroup(_0x4b65ab)}};}else!_0x3ee586&&(_0x2b4de6={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x8b913f)}});const _0x4f3b12={'operation':_0x2a70c3(0xbe),'appCode':_0x1f63cb,'selector':{'code':_0x1e9a0a[_0x2a70c3(0xa8)]},'dataset':{'id':_0x1e9a0a['id'],'code':_0x1e9a0a[_0x2a70c3(0xa8)],'name':_0x1e9a0a[_0x2a70c3(0xae)],'sourceType':_0x1e9a0a[_0x2a70c3(0x94)]},'before':{'businessGroup':displayBusinessGroup(_0x8b913f)},'after':{'businessGroup':displayBusinessGroup(_0x1bcc81)},'changed':_0x3ee586,'dryRun':_0x53fc42,'submitted':_0x3ee586&&!_0x53fc42,'backend':{'method':_0xe609fd[_0x2a70c3(0xca)],'path':_0xe609fd[_0x2a70c3(0x98)],'payload':_0xe609fd[_0x2a70c3(0xbd)]},..._0x2b4de6?{'verification':_0x2b4de6}:{},'warnings':[]};return{'ok':!![],'data':_0x4f3b12,'message':_0x3ee586?_0x53fc42?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x1e9a0a[_0x2a70c3(0xa8)]:_0x2a70c3(0xc4)+_0x1e9a0a[_0x2a70c3(0xa8)]:_0x2a70c3(0xb8)+_0x1e9a0a[_0x2a70c3(0xa8)]};}export const datasetBusinessGroupUpdate={'service':a66_0x2f5920(0xb2),'command':'business-group-update','description':a66_0x2f5920(0xbf),'risk':'write','flags':[CODE_FLAG,{'name':a66_0x2f5920(0x84),'type':a66_0x2f5920(0x85),'required':!![],'description':a66_0x2f5920(0x93)},{'name':'expect-business-group','type':a66_0x2f5920(0x85),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x44c336){validateInput(readBusinessGroupUpdateInput(_0x44c336));},async 'dryRun'(_0x35781a){const _0x36f058=a66_0x2f5920,_0x2ba18a=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x35781a[_0x36f058(0x97)],'input':readBusinessGroupUpdateInput(_0x35781a),'dryRun':!![]});return{'method':_0x2ba18a['data']['backend'][_0x36f058(0xca)],'url':_0x2ba18a['data'][_0x36f058(0x89)][_0x36f058(0x98)],'body':_0x2ba18a[_0x36f058(0xc0)]['backend']['payload'],'description':_0x2ba18a[_0x36f058(0x8d)],..._0x2ba18a[_0x36f058(0xc0)]};},async 'execute'(_0xb3f673){const _0x10569e=a66_0x2f5920;return buildDatasetBusinessGroupUpdateResult({'appCode':_0xb3f673[_0x10569e(0x97)],'input':readBusinessGroupUpdateInput(_0xb3f673),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x5142f3){const _0x1d1777=a66_0x2f5920,_0x3933c4=_0x5142f3[_0x1d1777(0xcb)](_0x1d1777(0x90));return{'code':trim(_0x5142f3[_0x1d1777(0xcb)](_0x1d1777(0xa8))),'businessGroup':_0x5142f3[_0x1d1777(0xcb)](_0x1d1777(0x84)),'expectBusinessGroup':_0x3933c4===undefined||_0x3933c4===''?undefined:_0x3933c4};}function a66_0x38f7(){const _0x5aed35=['--business-group\x20is\x20required','91617fmUzcj','--business-group\x20must\x20not\x20be\x20blank','length','20230661WosBIS','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','parse','1JSUcPw','hasOwnProperty','businessGroup','payload','update','Update\x20business\x20scenario\x20group','data','isArray','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','trim','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20',',\x20actual\x20','datasetName','/smartapi/dblink/updateTableBusinessGroup','datasetId','db-table','method','str','DB_TABLE','prototype','163580cchVqq','POST','source','147752jhvtlg','business-group','string','value','matched','dbTableSelector','backend','351krMWEM','keys','dbId','message','Expected\x20','modelCode','expect-business-group','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','stringify','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','sourceType','metadata','dbLinkId','appCode','path','METADATA','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','tableName','804630hVATAE','isFinite','found','--code\x20is\x20required','12zVhsHd','3441460Ufasof','extend','expectBusinessGroup','call','35oDcFIB','kind','object','code','dbtableConfig','Expectation\x20mismatch\x20at\x20businessGroup','691910pAAZKP','validation','/smartapi/question/er-config/business-group/edit','name','datasetCode','modelId','toUpperCase','dataset'];a66_0x38f7=function(){return _0x5aed35;};return a66_0x38f7();}function validateInput(_0x1164c2){const _0x8cc868=a66_0x2f5920;if(!trim(_0x1164c2[_0x8cc868(0xa8)]))throw CliErrors[_0x8cc868(0xac)](_0x8cc868(0x9f));if(_0x1164c2['businessGroup']===undefined)throw CliErrors[_0x8cc868(0xac)](_0x8cc868(0xb3));if(!trim(_0x1164c2[_0x8cc868(0xbc)]))throw CliErrors[_0x8cc868(0xac)](_0x8cc868(0xb5));}function assertBusinessGroupUpdateSupported(_0x5b102c,_0x344434){const _0x1ab850=a66_0x2f5920;if(_0x5b102c['sourceType']==='DB_TABLE'&&!_0x344434)throw CliErrors[_0x1ab850(0xac)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x5b30b3,_0x227271){const _0x2afae6=a66_0x2f5920,_0x36f255=asPlainObject(_0x5b30b3[_0x2afae6(0xb2)]),_0x57d14a=asPlainObject(_0x5b30b3[_0x2afae6(0xa9)]),_0x101165=resolveSourceType(_0x5b30b3,_0x36f255,_0x57d14a),_0x4f68d6=firstString(_0x5b30b3[_0x2afae6(0x8f)],_0x5b30b3[_0x2afae6(0xa8)],_0x36f255[_0x2afae6(0xaf)],_0x227271)||_0x227271;return{'id':firstNumber(_0x5b30b3['modelId'],_0x5b30b3['id'],_0x36f255[_0x2afae6(0xc8)])??firstString(_0x5b30b3[_0x2afae6(0xb0)],_0x5b30b3['id'],_0x36f255[_0x2afae6(0xc8)])??null,'code':_0x4f68d6,'name':firstString(_0x5b30b3[_0x2afae6(0xae)],_0x36f255[_0x2afae6(0xc6)],_0x36f255['name'])||null,'sourceType':_0x101165,'dbTableSelector':_0x101165==='DB_TABLE'?{'dbLinkId':firstNumber(_0x57d14a[_0x2afae6(0x8c)]),'tableName':firstString(_0x57d14a[_0x2afae6(0x9b)])||null}:null};}function resolveSourceType(_0x3d6156,_0x1f877c,_0x527001){const _0x23fb05=a66_0x2f5920,_0x6fe7e3=firstString(_0x3d6156[_0x23fb05(0x82)],_0x3d6156[_0x23fb05(0x94)],_0x1f877c['source'],_0x1f877c[_0x23fb05(0x94)])?.[_0x23fb05(0xc3)]()[_0x23fb05(0xb1)]();if(_0x6fe7e3===_0x23fb05(0xcc)||_0x6fe7e3===_0x23fb05(0x99))return _0x6fe7e3;if(Object[_0x23fb05(0x8b)](_0x527001)[_0x23fb05(0xb6)]>0x0)return _0x23fb05(0xcc);throw CliErrors[_0x23fb05(0xac)](_0x23fb05(0x9a));}function loadCurrentBusinessGroup(_0x4b2100,_0x15c1fe){const _0x57b68e=a66_0x2f5920,_0xabb909=readBusinessGroupFromDatasetDetail(_0x4b2100,_0x15c1fe['sourceType']);if(_0xabb909[_0x57b68e(0x9e)])return normalizeBusinessGroup(_0xabb909[_0x57b68e(0x86)]);return'';}function readBusinessGroupFromDatasetDetail(_0x292d8a,_0x3b6783){const _0x58c95d=a66_0x2f5920,_0x52a3b8=asPlainObject(_0x292d8a['dataset']),_0x3ea32e=firstPresent(_0x292d8a[_0x58c95d(0xbc)]);if(_0x3ea32e[_0x58c95d(0x9e)])return _0x3ea32e;const _0x1bbf4f=firstPresent(_0x52a3b8['businessGroup']);if(_0x1bbf4f['found'])return _0x1bbf4f;if(_0x3b6783===_0x58c95d(0xcc))return{'found':![]};const _0x4ebae5=readBusinessGroupFromExtend(_0x292d8a[_0x58c95d(0xa2)]);if(_0x4ebae5['found'])return _0x4ebae5;return readBusinessGroupFromExtend(_0x52a3b8['extend']);}function readBusinessGroupFromExtend(_0x578757){const _0x437d1c=a66_0x2f5920;if(_0x578757===undefined||_0x578757===null||_0x578757==='')return{'found':![]};if(typeof _0x578757===_0x437d1c(0x85))try{const _0x4d862d=JSON[_0x437d1c(0xb9)](_0x578757);return readBusinessGroupFromExtend(_0x4d862d);}catch{return{'found':![]};}const _0x131e04=asPlainObject(_0x578757);if(Object[_0x437d1c(0xcd)][_0x437d1c(0xbb)][_0x437d1c(0xa4)](_0x131e04,_0x437d1c(0xbc)))return{'found':!![],'value':_0x131e04[_0x437d1c(0xbc)]};return{'found':![]};}function firstPresent(..._0x428e9c){for(const _0x413bea of _0x428e9c){if(_0x413bea!==undefined&&_0x413bea!==null)return{'found':!![],'value':_0x413bea};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4738cf,_0x2d6710){const _0x12589a=a66_0x2f5920;if(_0x2d6710===undefined)return;const _0x4b24c5=normalizeBusinessGroupArgument(_0x2d6710);if(_0x4738cf!==_0x4b24c5)throw CliErrors[_0x12589a(0xac)](_0x12589a(0xaa),'Expected\x20'+JSON['stringify'](_0x4b24c5)+',\x20actual\x20'+JSON[_0x12589a(0x92)](_0x4738cf));}function buildBackendPlan(_0x43ae01,_0x52f429,_0x1ad9ff){const _0x2e821f=a66_0x2f5920;if(_0x52f429['sourceType']===_0x2e821f(0xcc)){if(!_0x52f429[_0x2e821f(0x88)]||_0x52f429[_0x2e821f(0x88)][_0x2e821f(0x96)]===null||!_0x52f429['dbTableSelector'][_0x2e821f(0x9b)])throw CliErrors[_0x2e821f(0xac)](_0x2e821f(0xc2),_0x2e821f(0x91));return{'kind':_0x2e821f(0xc9),'method':_0x2e821f(0xcf),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x52f429[_0x2e821f(0x88)][_0x2e821f(0x96)],'tableName':_0x52f429[_0x2e821f(0x88)][_0x2e821f(0x9b)],'businessGroup':_0x1ad9ff}};}return{'kind':_0x2e821f(0x95),'method':_0x2e821f(0xcf),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x43ae01,'datasetCode':_0x52f429['code'],'businessGroup':_0x1ad9ff}};}function normalizeBusinessGroup(_0x260601){const _0x46b68c=a66_0x2f5920;if(_0x260601===undefined||_0x260601===null)return'';return String(_0x260601)[_0x46b68c(0xc3)]();}function normalizeBusinessGroupArgument(_0x157ec8){const _0x29718d=normalizeBusinessGroup(_0x157ec8);return _0x29718d===UNGROUPED_BUSINESS_GROUP?'':_0x29718d;}function displayBusinessGroup(_0xc2569f){return _0xc2569f||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x36b581){const _0x4d4bb5=a66_0x2f5920;if(!_0x36b581||typeof _0x36b581!==_0x4d4bb5(0xa7)||Array[_0x4d4bb5(0xc1)](_0x36b581))return{};return _0x36b581;}function firstString(..._0x46aed4){const _0x257760=a66_0x2f5920;for(const _0x5e354e of _0x46aed4){if(typeof _0x5e354e===_0x257760(0x85)&&_0x5e354e[_0x257760(0xc3)]())return _0x5e354e[_0x257760(0xc3)]();if(typeof _0x5e354e==='number'&&Number['isFinite'](_0x5e354e))return String(_0x5e354e);}return undefined;}function firstNumber(..._0x29f506){const _0xf9e32e=a66_0x2f5920;for(const _0x46686f of _0x29f506){if(typeof _0x46686f==='number'&&Number['isFinite'](_0x46686f))return _0x46686f;if(typeof _0x46686f===_0xf9e32e(0x85)&&_0x46686f[_0xf9e32e(0xc3)]()&&Number[_0xf9e32e(0x9d)](Number(_0x46686f)))return Number(_0x46686f);}return null;}function a66_0x2bff(_0x56bc23,_0x26116b){_0x56bc23=_0x56bc23-0x82;const _0x38f74d=a66_0x38f7();let _0x2bffe3=_0x38f74d[_0x56bc23];return _0x2bffe3;}function trim(_0x2ec4ad){const _0x55e80d=a66_0x2f5920;return String(_0x2ec4ad||'')[_0x55e80d(0xc3)]();}
|
|
1
|
+
const a66_0x13de21=a66_0x1d02;(function(_0x5971a8,_0x17027a){const _0x2310ea=a66_0x1d02,_0x4894fa=_0x5971a8();while(!![]){try{const _0x238442=parseInt(_0x2310ea(0xe7))/0x1+parseInt(_0x2310ea(0xbf))/0x2*(parseInt(_0x2310ea(0xad))/0x3)+parseInt(_0x2310ea(0xd3))/0x4*(-parseInt(_0x2310ea(0xd9))/0x5)+-parseInt(_0x2310ea(0xc9))/0x6*(-parseInt(_0x2310ea(0xcc))/0x7)+-parseInt(_0x2310ea(0xe3))/0x8*(parseInt(_0x2310ea(0xf7))/0x9)+-parseInt(_0x2310ea(0xde))/0xa+parseInt(_0x2310ea(0xdc))/0xb;if(_0x238442===_0x17027a)break;else _0x4894fa['push'](_0x4894fa['shift']());}catch(_0x307ad3){_0x4894fa['push'](_0x4894fa['shift']());}}}(a66_0x1cd2,0x7fd46));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='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x3b4e9b,input:_0x3c5478,dryRun:_0x4049a3}){const _0x4bb43c=a66_0x1d02;validateInput(_0x3c5478);const _0x27d9c7=normalizeBusinessGroupArgument(_0x3c5478['businessGroup']),_0x368fb9=await getDatasetDetail(_0x3c5478[_0x4bb43c(0xe6)]),_0x34eceb=resolveBusinessGroupDataset(_0x368fb9,_0x3c5478[_0x4bb43c(0xe6)]);assertBusinessGroupUpdateSupported(_0x34eceb,_0x27d9c7);const _0x5d4927=loadCurrentBusinessGroup(_0x368fb9,_0x34eceb);assertExpectedBusinessGroup(_0x5d4927,_0x3c5478[_0x4bb43c(0xeb)]);const _0x4c8339=buildBackendPlan(_0x3b4e9b,_0x34eceb,_0x27d9c7),_0x57f617=_0x5d4927!==_0x27d9c7;let _0x53b884;if(_0x57f617&&!_0x4049a3){_0x4c8339[_0x4bb43c(0xd4)]==='db-table'?await updateDbTableBusinessGroup(_0x4c8339[_0x4bb43c(0xcf)]):await updateErBusinessGroup(_0x4c8339['payload']);const _0x52269a=await getDatasetDetail(_0x34eceb[_0x4bb43c(0xe6)]),_0x41c392=resolveBusinessGroupDataset(_0x52269a,_0x34eceb[_0x4bb43c(0xe6)]),_0x22ddeb=loadCurrentBusinessGroup(_0x52269a,_0x41c392);if(_0x22ddeb!==_0x27d9c7)throw CliErrors['apiError'](_0x4bb43c(0xcd),_0x4bb43c(0xe9)+JSON[_0x4bb43c(0xf1)](displayBusinessGroup(_0x27d9c7))+_0x4bb43c(0xfa)+JSON[_0x4bb43c(0xf1)](displayBusinessGroup(_0x22ddeb))+'.');_0x53b884={'verified':!![],'status':_0x4bb43c(0xb1),'afterReadback':{'businessGroup':displayBusinessGroup(_0x22ddeb)}};}else!_0x57f617&&(_0x53b884={'verified':!![],'status':_0x4bb43c(0xc3),'afterReadback':{'businessGroup':displayBusinessGroup(_0x5d4927)}});const _0x48b7d0={'operation':_0x4bb43c(0xb7),'appCode':_0x3b4e9b,'selector':{'code':_0x34eceb['code']},'dataset':{'id':_0x34eceb['id'],'code':_0x34eceb[_0x4bb43c(0xe6)],'name':_0x34eceb[_0x4bb43c(0xac)],'sourceType':_0x34eceb[_0x4bb43c(0xcb)]},'before':{'businessGroup':displayBusinessGroup(_0x5d4927)},'after':{'businessGroup':displayBusinessGroup(_0x27d9c7)},'changed':_0x57f617,'dryRun':_0x4049a3,'submitted':_0x57f617&&!_0x4049a3,'backend':{'method':_0x4c8339[_0x4bb43c(0xc4)],'path':_0x4c8339['path'],'payload':_0x4c8339[_0x4bb43c(0xcf)]},..._0x53b884?{'verification':_0x53b884}:{},'warnings':[]};return{'ok':!![],'data':_0x48b7d0,'message':_0x57f617?_0x4049a3?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x34eceb[_0x4bb43c(0xe6)]:_0x4bb43c(0xdd)+_0x34eceb[_0x4bb43c(0xe6)]:_0x4bb43c(0xb8)+_0x34eceb[_0x4bb43c(0xe6)]};}export const datasetBusinessGroupUpdate={'service':a66_0x13de21(0xc5),'command':a66_0x13de21(0xe5),'description':a66_0x13de21(0xb9),'risk':a66_0x13de21(0xc8),'flags':[CODE_FLAG,{'name':a66_0x13de21(0xb3),'type':'string','required':!![],'description':a66_0x13de21(0xdf)},{'name':a66_0x13de21(0xae),'type':a66_0x13de21(0xf6),'required':![],'description':a66_0x13de21(0xed)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3d16ea){validateInput(readBusinessGroupUpdateInput(_0x3d16ea));},async 'dryRun'(_0x2735c2){const _0xb60eeb=a66_0x13de21,_0x509b60=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2735c2[_0xb60eeb(0xdb)],'input':readBusinessGroupUpdateInput(_0x2735c2),'dryRun':!![]});return{'method':_0x509b60[_0xb60eeb(0xce)][_0xb60eeb(0xf2)][_0xb60eeb(0xc4)],'url':_0x509b60[_0xb60eeb(0xce)][_0xb60eeb(0xf2)]['path'],'body':_0x509b60['data']['backend'][_0xb60eeb(0xcf)],'description':_0x509b60[_0xb60eeb(0xe8)],..._0x509b60[_0xb60eeb(0xce)]};},async 'execute'(_0x2c3c7b){const _0x231bb0=a66_0x13de21;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x2c3c7b[_0x231bb0(0xdb)],'input':readBusinessGroupUpdateInput(_0x2c3c7b),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x4e4b87){const _0x4da907=a66_0x13de21,_0x21e8c6=_0x4e4b87['str']('expect-business-group');return{'code':trim(_0x4e4b87[_0x4da907(0xf9)](_0x4da907(0xe6))),'businessGroup':_0x4e4b87[_0x4da907(0xf9)]('business-group'),'expectBusinessGroup':_0x21e8c6===undefined||_0x21e8c6===''?undefined:_0x21e8c6};}function validateInput(_0x540baf){const _0x490ae9=a66_0x13de21;if(!trim(_0x540baf[_0x490ae9(0xe6)]))throw CliErrors['validation'](_0x490ae9(0xba));if(_0x540baf[_0x490ae9(0xbe)]===undefined)throw CliErrors[_0x490ae9(0xb5)](_0x490ae9(0xc0));if(!trim(_0x540baf[_0x490ae9(0xbe)]))throw CliErrors[_0x490ae9(0xb5)]('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x136a6a,_0x439672){const _0x5a2a93=a66_0x13de21;if(_0x136a6a[_0x5a2a93(0xcb)]===_0x5a2a93(0xd5)&&!_0x439672)throw CliErrors[_0x5a2a93(0xb5)](_0x5a2a93(0xef));}function resolveBusinessGroupDataset(_0xedb6fa,_0x3c7ef8){const _0x5c0175=a66_0x13de21,_0x141f28=asPlainObject(_0xedb6fa[_0x5c0175(0xc5)]),_0x5a17c5=asPlainObject(_0xedb6fa[_0x5c0175(0xe2)]),_0x4c989a=resolveSourceType(_0xedb6fa,_0x141f28,_0x5a17c5),_0x5b900a=firstString(_0xedb6fa[_0x5c0175(0xf4)],_0xedb6fa[_0x5c0175(0xe6)],_0x141f28[_0x5c0175(0xd0)],_0x3c7ef8)||_0x3c7ef8;return{'id':firstNumber(_0xedb6fa[_0x5c0175(0xee)],_0xedb6fa['id'],_0x141f28[_0x5c0175(0xec)])??firstString(_0xedb6fa[_0x5c0175(0xee)],_0xedb6fa['id'],_0x141f28['datasetId'])??null,'code':_0x5b900a,'name':firstString(_0xedb6fa[_0x5c0175(0xac)],_0x141f28[_0x5c0175(0xf3)],_0x141f28[_0x5c0175(0xac)])||null,'sourceType':_0x4c989a,'dbTableSelector':_0x4c989a==='DB_TABLE'?{'dbLinkId':firstNumber(_0x5a17c5['dbId']),'tableName':firstString(_0x5a17c5[_0x5c0175(0xaf)])||null}:null};}function resolveSourceType(_0x1d9409,_0x435f57,_0x442ac3){const _0x585745=a66_0x13de21,_0x512b72=firstString(_0x1d9409[_0x585745(0xc2)],_0x1d9409[_0x585745(0xcb)],_0x435f57[_0x585745(0xc2)],_0x435f57[_0x585745(0xcb)])?.[_0x585745(0xd6)]()[_0x585745(0xc7)]();if(_0x512b72==='DB_TABLE'||_0x512b72===_0x585745(0xf8))return _0x512b72;if(Object[_0x585745(0xd2)](_0x442ac3)['length']>0x0)return _0x585745(0xd5);throw CliErrors[_0x585745(0xb5)](_0x585745(0xbb));}function loadCurrentBusinessGroup(_0x4889d6,_0x356c12){const _0x5b8fc4=a66_0x13de21,_0x29c901=readBusinessGroupFromDatasetDetail(_0x4889d6,_0x356c12[_0x5b8fc4(0xcb)]);if(_0x29c901[_0x5b8fc4(0xb2)])return normalizeBusinessGroup(_0x29c901[_0x5b8fc4(0xd7)]);return'';}function a66_0x1cd2(){const _0x49e208=['string','9PCveuz','METADATA','str',',\x20actual\x20','name','1299qmxFIY','expect-business-group','tableName','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','matched','found','business-group','db-table','validation','Expectation\x20mismatch\x20at\x20businessGroup','update','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Update\x20business\x20scenario\x20group','--code\x20is\x20required','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','metadata','call','businessGroup','1514Neoist','--business-group\x20is\x20required','isFinite','source','unchanged','method','dataset','parse','toUpperCase','write','95112PlbBzt','POST','sourceType','252DSEKUN','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','data','payload','datasetCode','extend','keys','252QCbIPs','kind','DB_TABLE','trim','value','prototype','46685VHQnzK','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','appCode','4814458iKSPQp','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','2792670kUvcIS','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','hasOwnProperty','dbTableSelector','dbtableConfig','3029600ngMcqO','dbLinkId','business-group-update','code','433657RLCbJY','message','Expected\x20','number','expectBusinessGroup','datasetId','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','modelId','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','object','stringify','backend','datasetName','modelCode','isArray'];a66_0x1cd2=function(){return _0x49e208;};return a66_0x1cd2();}function readBusinessGroupFromDatasetDetail(_0x156cb7,_0x15db21){const _0x464ecc=a66_0x13de21,_0x4f9c80=asPlainObject(_0x156cb7[_0x464ecc(0xc5)]),_0x43f314=firstPresent(_0x156cb7[_0x464ecc(0xbe)]);if(_0x43f314[_0x464ecc(0xb2)])return _0x43f314;const _0x5ef130=firstPresent(_0x4f9c80['businessGroup']);if(_0x5ef130[_0x464ecc(0xb2)])return _0x5ef130;if(_0x15db21==='DB_TABLE')return{'found':![]};const _0x60a49b=readBusinessGroupFromExtend(_0x156cb7['extend']);if(_0x60a49b[_0x464ecc(0xb2)])return _0x60a49b;return readBusinessGroupFromExtend(_0x4f9c80[_0x464ecc(0xd1)]);}function readBusinessGroupFromExtend(_0x54b32e){const _0x209267=a66_0x13de21;if(_0x54b32e===undefined||_0x54b32e===null||_0x54b32e==='')return{'found':![]};if(typeof _0x54b32e===_0x209267(0xf6))try{const _0x293ebc=JSON[_0x209267(0xc6)](_0x54b32e);return readBusinessGroupFromExtend(_0x293ebc);}catch{return{'found':![]};}const _0x498fe6=asPlainObject(_0x54b32e);if(Object[_0x209267(0xd8)][_0x209267(0xe0)][_0x209267(0xbd)](_0x498fe6,_0x209267(0xbe)))return{'found':!![],'value':_0x498fe6[_0x209267(0xbe)]};return{'found':![]};}function a66_0x1d02(_0x34d7f6,_0x9887df){_0x34d7f6=_0x34d7f6-0xac;const _0x1cd27=a66_0x1cd2();let _0x1d0287=_0x1cd27[_0x34d7f6];return _0x1d0287;}function firstPresent(..._0x3dbd50){for(const _0x125de3 of _0x3dbd50){if(_0x125de3!==undefined&&_0x125de3!==null)return{'found':!![],'value':_0x125de3};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2c12ac,_0x2e9b12){const _0xb5132b=a66_0x13de21;if(_0x2e9b12===undefined)return;const _0x4d078b=normalizeBusinessGroupArgument(_0x2e9b12);if(_0x2c12ac!==_0x4d078b)throw CliErrors['validation'](_0xb5132b(0xb6),_0xb5132b(0xe9)+JSON[_0xb5132b(0xf1)](_0x4d078b)+',\x20actual\x20'+JSON[_0xb5132b(0xf1)](_0x2c12ac));}function buildBackendPlan(_0xd2c8dd,_0x418ed5,_0x4700bd){const _0x3a9033=a66_0x13de21;if(_0x418ed5[_0x3a9033(0xcb)]===_0x3a9033(0xd5)){if(!_0x418ed5[_0x3a9033(0xe1)]||_0x418ed5[_0x3a9033(0xe1)][_0x3a9033(0xe4)]===null||!_0x418ed5[_0x3a9033(0xe1)][_0x3a9033(0xaf)])throw CliErrors['validation'](_0x3a9033(0xda),_0x3a9033(0xb0));return{'kind':_0x3a9033(0xb4),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x418ed5['dbTableSelector']['dbLinkId'],'tableName':_0x418ed5[_0x3a9033(0xe1)][_0x3a9033(0xaf)],'businessGroup':_0x4700bd}};}return{'kind':_0x3a9033(0xbc),'method':_0x3a9033(0xca),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0xd2c8dd,'datasetCode':_0x418ed5[_0x3a9033(0xe6)],'businessGroup':_0x4700bd}};}function normalizeBusinessGroup(_0x7d6153){if(_0x7d6153===undefined||_0x7d6153===null)return'';return String(_0x7d6153)['trim']();}function normalizeBusinessGroupArgument(_0x276d53){const _0x5a96bd=normalizeBusinessGroup(_0x276d53);return _0x5a96bd===UNGROUPED_BUSINESS_GROUP?'':_0x5a96bd;}function displayBusinessGroup(_0x112280){return _0x112280||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x509500){const _0x124736=a66_0x13de21;if(!_0x509500||typeof _0x509500!==_0x124736(0xf0)||Array[_0x124736(0xf5)](_0x509500))return{};return _0x509500;}function firstString(..._0x5cc0a1){const _0x425fc5=a66_0x13de21;for(const _0xc21cb3 of _0x5cc0a1){if(typeof _0xc21cb3===_0x425fc5(0xf6)&&_0xc21cb3[_0x425fc5(0xd6)]())return _0xc21cb3[_0x425fc5(0xd6)]();if(typeof _0xc21cb3===_0x425fc5(0xea)&&Number[_0x425fc5(0xc1)](_0xc21cb3))return String(_0xc21cb3);}return undefined;}function firstNumber(..._0x15ab1f){const _0x40aa28=a66_0x13de21;for(const _0x3d91a1 of _0x15ab1f){if(typeof _0x3d91a1===_0x40aa28(0xea)&&Number[_0x40aa28(0xc1)](_0x3d91a1))return _0x3d91a1;if(typeof _0x3d91a1==='string'&&_0x3d91a1[_0x40aa28(0xd6)]()&&Number[_0x40aa28(0xc1)](Number(_0x3d91a1)))return Number(_0x3d91a1);}return null;}function trim(_0x4accdd){const _0x319eee=a66_0x13de21;return String(_0x4accdd||'')[_0x319eee(0xd6)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a67_0x2f679f=a67_0x3157;(function(_0x1fb443,_0x3bcbc1){const _0x27b05a=a67_0x3157,_0x42766c=_0x1fb443();while(!![]){try{const _0x5e3099=parseInt(_0x27b05a(0x16d))/0x1+-parseInt(_0x27b05a(0x174))/0x2+-parseInt(_0x27b05a(0x16b))/0x3*(-parseInt(_0x27b05a(0x177))/0x4)+parseInt(_0x27b05a(0x16a))/0x5*(-parseInt(_0x27b05a(0x173))/0x6)+-parseInt(_0x27b05a(0x176))/0x7+parseInt(_0x27b05a(0x179))/0x8*(parseInt(_0x27b05a(0x16f))/0x9)+parseInt(_0x27b05a(0x175))/0xa*(parseInt(_0x27b05a(0x178))/0xb);if(_0x5e3099===_0x3bcbc1)break;else _0x42766c['push'](_0x42766c['shift']());}catch(_0x3a252e){_0x42766c['push'](_0x42766c['shift']());}}}(a67_0x44e6,0xa4c93));function a67_0x44e6(){const _0x39c5d8=['42CZmMKl','1817192ruFuAT','18950pMkTge','1959279jScTYZ','16HxeyEC','11594QsOYtt','102944umdnpu','business-groups','dbid','groups','\x20business\x20group(s)\x20for\x20database\x20connection\x20','map','length','ungrouped','DB_TABLE','Found\x20','trim','read','580915yXYJeN','279228kzCWFa','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','229895SaOJgP','num','54LMMktP','appCode','dataset','number'];a67_0x44e6=function(){return _0x39c5d8;};return a67_0x44e6();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x3157(_0x3ba091,_0x59544a){_0x3ba091=_0x3ba091-0x16a;const _0x44e67d=a67_0x44e6();let _0x315798=_0x44e67d[_0x3ba091];return _0x315798;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x2f679f(0x171),'command':a67_0x2f679f(0x17a),'description':'List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','risk':a67_0x2f679f(0x184),'flags':[{'name':'dbid','type':a67_0x2f679f(0x172),'required':!![],'description':a67_0x2f679f(0x16c)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x358da6){const _0x6d6749=a67_0x2f679f,_0x4233c2=_0x358da6[_0x6d6749(0x16e)](_0x6d6749(0x17b)),_0xa52462=await getErBusinessGroupSummary(_0x358da6[_0x6d6749(0x170)],_0x4233c2),_0x2f46a7=_0xa52462[_0x6d6749(0x17c)][_0x6d6749(0x17e)](_0x55f54f=>({..._0x55f54f,'businessGroup':_0x55f54f['businessGroup'][_0x6d6749(0x183)]()||_0x6d6749(0x180)}));return{'ok':!![],'data':{..._0xa52462,'groups':_0x2f46a7,'scope':_0x6d6749(0x181)},'message':_0x6d6749(0x182)+_0x2f46a7[_0x6d6749(0x17f)]+_0x6d6749(0x17d)+_0x4233c2};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x28a068=a68_0x4637;(function(_0x4e9cb1,_0x2329a2){const _0x4ba8e9=a68_0x4637,_0x491af6=_0x4e9cb1();while(!![]){try{const _0x361b64=parseInt(_0x4ba8e9(0xc0))/0x1*(-parseInt(_0x4ba8e9(0xcf))/0x2)+parseInt(_0x4ba8e9(0xbe))/0x3+parseInt(_0x4ba8e9(0xb1))/0x4+-parseInt(_0x4ba8e9(0xca))/0x5+-parseInt(_0x4ba8e9(0xc3))/0x6*(-parseInt(_0x4ba8e9(0xb7))/0x7)+parseInt(_0x4ba8e9(0xb9))/0x8*(-parseInt(_0x4ba8e9(0xb8))/0x9)+parseInt(_0x4ba8e9(0xc1))/0xa*(parseInt(_0x4ba8e9(0xae))/0xb);if(_0x361b64===_0x2329a2)break;else _0x491af6['push'](_0x491af6['shift']());}catch(_0x4e8b2f){_0x491af6['push'](_0x491af6['shift']());}}}(a68_0xaa59,0x9168e));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x28a068(0xbc),'getOne':a68_0x28a068(0xb2)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x394495){const _0x468f97=a68_0x28a068;return _0x394495==null?'':String(_0x394495)[_0x468f97(0xc6)]();}function getDatasetCode(_0x167d6b){const _0x425a4f=a68_0x28a068;return valueToString(_0x167d6b[_0x425a4f(0xcc)]??_0x167d6b['modelCode']??_0x167d6b[_0x425a4f(0xb4)]?.[_0x425a4f(0xc9)]);}function a68_0x4637(_0x565186,_0x2a7523){_0x565186=_0x565186-0xad;const _0xaa591b=a68_0xaa59();let _0x4637a3=_0xaa591b[_0x565186];return _0x4637a3;}function getDatasetName(_0x5a6c2a){const _0x12fb4c=a68_0x28a068;return valueToString(_0x5a6c2a[_0x12fb4c(0xce)]??_0x5a6c2a[_0x12fb4c(0xb4)]?.[_0x12fb4c(0xc2)])||_0x12fb4c(0xb3);}function getDatasetSource(_0x4fa5d4){const _0x54ac49=a68_0x28a068;return valueToString(_0x4fa5d4[_0x54ac49(0xad)]??_0x4fa5d4[_0x54ac49(0xb4)]?.[_0x54ac49(0xcb)])[_0x54ac49(0xc4)]();}function a68_0xaa59(){const _0x334b49=['sourceType','code','dbtableConfig','name','74OGOkNO','The\x20current\x20dataset\x20\x22','source','4180FoJiRA','dbId','validation','927748NGevYc','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','unknown','dataset','SQL\x20schema\x20validation','filter','4456123Jqnrlr','9WHIyGs','2848232YemzJE','\x20is\x20','getOne','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','999543VxQWed','join','24153kFQLzH','26560QSZBLX','datasetName','6LnYOHM','toUpperCase','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','trim','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','tableName','datasetCode','1828495YdWFdB'];a68_0xaa59=function(){return _0x334b49;};return a68_0xaa59();}function getDbtableConfig(_0x2a552c){const _0x1a8589=a68_0x28a068,_0x2af2af=_0x2a552c[_0x1a8589(0xcd)]??_0x2a552c['dbtable'];return _0x2af2af&&typeof _0x2af2af==='object'?_0x2af2af:{};}export function isDbTableBackedDataset(_0x312417){const _0x5e8404=a68_0x28a068,_0x2553f2=getDatasetSource(_0x312417);if(_0x2553f2==='METADATA')return![];const _0x24a602=getDbtableConfig(_0x312417),_0x1407f3=_0x24a602[_0x5e8404(0xaf)]??_0x24a602['id'],_0x53060b=valueToString(_0x24a602[_0x5e8404(0xc8)]??_0x312417[_0x5e8404(0xc8)]??_0x312417[_0x5e8404(0xb4)]?.['tableName']);return _0x1407f3!==undefined&&_0x1407f3!==null&&_0x53060b['length']>0x0;}export function filterDbTableBackedDatasets(_0x3fb9d4){return _0x3fb9d4['filter'](_0xeaa44=>isDbTableBackedDataset(_0xeaa44));}export function buildDbTableBackedRequirementMessage(_0x2ea273,_0x10c06b=a68_0x28a068(0xb5)){const _0xb4b494=a68_0x28a068,_0x14c95d=getDatasetSource(_0x2ea273)||'UNKNOWN',_0x22b702=getDatasetName(_0x2ea273),_0x192d9a=getDatasetCode(_0x2ea273),_0x38241c=_0x192d9a?'\x20('+_0x192d9a+')':'';return[_0xb4b494(0xd0)+_0x22b702+'\x22'+_0x38241c+_0xb4b494(0xba)+_0x14c95d+_0xb4b494(0xbd)+_0x10c06b+'.',_0xb4b494(0xc7),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0xb4b494(0xc5)+RUNTIME_DATA_ACCESS_COMMANDS[_0xb4b494(0xb6)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0xb4b494(0xbb)]+'.'][_0xb4b494(0xbf)]('\x20');}export function assertDatasetIsDbTableBacked(_0x497f23,_0x167ab9){const _0x2af730=a68_0x28a068;if(!isDbTableBackedDataset(_0x497f23))throw CliErrors[_0x2af730(0xb0)](buildDbTableBackedRequirementMessage(_0x497f23,_0x167ab9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x1047ba=a69_0x19ed;(function(_0x40b46c,_0x354269){const _0x5acf13=a69_0x19ed,_0x4355c2=_0x40b46c();while(!![]){try{const _0x26fda1=parseInt(_0x5acf13(0xec))/0x1*(-parseInt(_0x5acf13(0xee))/0x2)+-parseInt(_0x5acf13(0xea))/0x3+parseInt(_0x5acf13(0xf4))/0x4*(-parseInt(_0x5acf13(0xeb))/0x5)+parseInt(_0x5acf13(0xed))/0x6*(-parseInt(_0x5acf13(0xf1))/0x7)+parseInt(_0x5acf13(0xf6))/0x8*(parseInt(_0x5acf13(0xf8))/0x9)+-parseInt(_0x5acf13(0xf7))/0xa*(-parseInt(_0x5acf13(0xf5))/0xb)+parseInt(_0x5acf13(0xf0))/0xc;if(_0x26fda1===_0x354269)break;else _0x4355c2['push'](_0x4355c2['shift']());}catch(_0x1416ae){_0x4355c2['push'](_0x4355c2['shift']());}}}(a69_0x4f35,0xcf5be));function a69_0x19ed(_0x4a177d,_0x38e564){_0x4a177d=_0x4a177d-0xe9;const _0x4f3594=a69_0x4f35();let _0x19edff=_0x4f3594[_0x4a177d];return _0x19edff;}import{createCrossDbRelation}from'../../core/api-client.js';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';export const datasetCrossRelationCreate={'service':a69_0x1047ba(0xef),'command':'cross-relation-create','description':a69_0x1047ba(0xf2),'risk':a69_0x1047ba(0xe9),'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 _0x4551af=>validateCrossRelation(_0x4551af,a69_0x1047ba(0xf3)),'dryRun':_0x41da5=>previewCrossRelation(_0x41da5,'create'),'execute':_0x156379=>executeCrossRelation(_0x156379,a69_0x1047ba(0xf3),createCrossDbRelation)};function a69_0x4f35(){const _0x21b694=['206163chZbvw','write','3926304cQbpUI','3449755oUXKrM','1eFGoOJ','6XHtwld','818608fTCtQS','dataset','28227912mWZUUJ','2741249shkxtO','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','create','8fFBrgN','4248893bOZkvB','424dyhxNQ','20mfJOMs'];a69_0x4f35=function(){return _0x21b694;};return a69_0x4f35();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x5bda(_0x45e937,_0x170a61){_0x45e937=_0x45e937-0x82;const _0x41bcfd=a70_0x41bc();let _0x5bdaf2=_0x41bcfd[_0x45e937];return _0x5bdaf2;}function a70_0x41bc(){const _0x48ba0e=['1804472zwNUBk','cross-relation-delete','36uSktLp','115554tWCBcd','4984105RDLiIA','211629BZpAoX','delete','958280BjUjzd','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','66DtVKgo','72994uyJPWj','high-risk-write','2776025DsjXVt','dataset'];a70_0x41bc=function(){return _0x48ba0e;};return a70_0x41bc();}const a70_0x103182=a70_0x5bda;(function(_0x3b77b4,_0x12082f){const _0x29a064=a70_0x5bda,_0x42e714=_0x3b77b4();while(!![]){try{const _0x168511=-parseInt(_0x29a064(0x8e))/0x1+-parseInt(_0x29a064(0x85))/0x2*(-parseInt(_0x29a064(0x84))/0x3)+parseInt(_0x29a064(0x82))/0x4+-parseInt(_0x29a064(0x87))/0x5+parseInt(_0x29a064(0x8c))/0x6+-parseInt(_0x29a064(0x8d))/0x7+parseInt(_0x29a064(0x89))/0x8*(parseInt(_0x29a064(0x8b))/0x9);if(_0x168511===_0x12082f)break;else _0x42e714['push'](_0x42e714['shift']());}catch(_0x4328fb){_0x42e714['push'](_0x42e714['shift']());}}}(a70_0x41bc,0x7671e));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';export const datasetCrossRelationDelete={'service':a70_0x103182(0x88),'command':a70_0x103182(0x8a),'description':a70_0x103182(0x83),'risk':a70_0x103182(0x86),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x3168c3=>validateCrossRelation(_0x3168c3,a70_0x103182(0x8f)),'dryRun':_0x1da577=>previewCrossRelation(_0x1da577,a70_0x103182(0x8f)),'execute':_0x54bd62=>executeCrossRelation(_0x54bd62,a70_0x103182(0x8f),deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x3cde4d=a71_0x5304;(function(_0x2c0e4c,_0x1114c1){const _0x49c032=a71_0x5304,_0x5551cd=_0x2c0e4c();while(!![]){try{const _0x45e2a6=parseInt(_0x49c032(0x1b3))/0x1*(parseInt(_0x49c032(0x1af))/0x2)+parseInt(_0x49c032(0x1b5))/0x3*(-parseInt(_0x49c032(0x1a2))/0x4)+parseInt(_0x49c032(0x1a3))/0x5*(parseInt(_0x49c032(0x1ac))/0x6)+-parseInt(_0x49c032(0x1a9))/0x7+parseInt(_0x49c032(0x1ad))/0x8*(-parseInt(_0x49c032(0x1ab))/0x9)+-parseInt(_0x49c032(0x1a6))/0xa*(-parseInt(_0x49c032(0x1a1))/0xb)+parseInt(_0x49c032(0x1b1))/0xc*(parseInt(_0x49c032(0x1b0))/0xd);if(_0x45e2a6===_0x1114c1)break;else _0x5551cd['push'](_0x5551cd['shift']());}catch(_0x4cd471){_0x5551cd['push'](_0x5551cd['shift']());}}}(a71_0x5567,0x61393));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';function a71_0x5567(){const _0x3a09e8=['70380WZdCfs','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','length','69710OjWMBE','appCode','\x20relation(s)','5349372RRTJEA','map','2493UUmhZY','282oFXeYn','10768jxybXb','cross-relation-list','2qtaYQj','442RRoFMW','317268VHtSWB','list','51898vMWqee','dataset','54JcdntY','1067guiSiI','167404LrfMun'];a71_0x5567=function(){return _0x3a09e8;};return a71_0x5567();}function a71_0x5304(_0x3a3ddd,_0x9363ce){_0x3a3ddd=_0x3a3ddd-0x1a1;const _0x55674b=a71_0x5567();let _0x530496=_0x55674b[_0x3a3ddd];return _0x530496;}export const datasetCrossRelationList={'service':a71_0x3cde4d(0x1b4),'command':a71_0x3cde4d(0x1ae),'description':a71_0x3cde4d(0x1a4),'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 _0x1c255f=>validateCrossRelation(_0x1c255f,a71_0x3cde4d(0x1b2)),async 'execute'(_0xbd2208){const _0x53aa4c=a71_0x3cde4d,_0x1e0a06=await resolveCrossRelationQuery(_0xbd2208),_0x50b482=await queryCrossDbRelations(_0x1e0a06);return{'ok':!![],'data':{'appCode':_0xbd2208[_0x53aa4c(0x1a7)],'selector':_0x1e0a06,'total':_0x50b482[_0x53aa4c(0x1a5)],'relations':_0x50b482[_0x53aa4c(0x1aa)](projectCrossRelation)},'message':'Cross-database\x20relations:\x20'+_0x50b482[_0x53aa4c(0x1a5)]+_0x53aa4c(0x1a8)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x33325d=a72_0x8b9e;(function(_0x13381f,_0x5ae2fa){const _0x3859d1=a72_0x8b9e,_0xd209b1=_0x13381f();while(!![]){try{const _0x362e6e=parseInt(_0x3859d1(0xdd))/0x1*(-parseInt(_0x3859d1(0x10b))/0x2)+parseInt(_0x3859d1(0xe0))/0x3+-parseInt(_0x3859d1(0x114))/0x4*(parseInt(_0x3859d1(0xf8))/0x5)+parseInt(_0x3859d1(0xd4))/0x6*(parseInt(_0x3859d1(0xe3))/0x7)+-parseInt(_0x3859d1(0xf4))/0x8*(parseInt(_0x3859d1(0xde))/0x9)+-parseInt(_0x3859d1(0xef))/0xa*(-parseInt(_0x3859d1(0xd7))/0xb)+parseInt(_0x3859d1(0xd5))/0xc*(-parseInt(_0x3859d1(0xce))/0xd);if(_0x362e6e===_0x5ae2fa)break;else _0xd209b1['push'](_0xd209b1['shift']());}catch(_0x24fc9f){_0xd209b1['push'](_0xd209b1['shift']());}}}(a72_0x50d8,0xef01e));function a72_0x50d8(){const _0x4c59be=['toLowerCase','Invalid\x20--cardinality.','38441gHopup','parse','tableName','create','validation','enum','282858MQGNdw','12XQYItf','length','5001953xEaVLw','some','unconfirmed','dbtableConfig','toDblinkId','data','7053arDzWq','27FEXlxn','to-datasetcode','5131551SBXvQd','cardinality','dbId','175XVrtJk','to-column','fromDblinkId','from','toDatasetCode','delete','toField','expectedCardinality','fromField','Cross-database\x20relation\x20','body','dbtable','40UJeQze','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','table','DB_TABLE','3670944xseBKm','\x20a\x20cross-database\x20relation\x20for\x20','message','from-datasetcode','4145VRaauE','before','matched','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','Dataset\x20','isSafeInteger','relationType','list','includes','extend','refTableLabelName','dblinkId','label_inherited','trim','dataset','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','multiple\x20cross-database\x20relations\x20matched','from-column','to-label-column','402LyMMXg','fromDatasetCode','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','storageProfile','source','query','toTableName','datasetCode','relationId','4496TCTctu','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','POST','fromTableName','update','appCode','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','expectedLabel','\x20write\x20was\x20not\x20verified.','map','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','flag','defineProperty','string','str','catch'];a72_0x50d8=function(){return _0x4c59be;};return a72_0x50d8();}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(_0x769a80,_0xf7fcdb){const _0x73c89d=a72_0x8b9e,_0x558919=_0x769a80[_0x73c89d(0xca)](_0xf7fcdb)[_0x73c89d(0x105)]();if(!_0x558919)throw CliErrors['flagMissing'](_0xf7fcdb);return _0x558919;}function explicitDblink(_0x48cdda){const _0x144696=a72_0x8b9e,_0x4aaf21=_0x48cdda[_0x144696(0xc7)]('from-dblink-id');if(_0x4aaf21===undefined||_0x4aaf21===null)return undefined;const _0x19fd43=Number(_0x4aaf21);if(!Number[_0x144696(0xfd)](_0x19fd43)||_0x19fd43<=0x0)throw CliErrors[_0x144696(0xd2)](_0x144696(0xf1));return _0x19fd43;}export function validateCrossRelation(_0x2a6228,_0x44383d){const _0x11bb8a=a72_0x8b9e,_0x1288cb=explicitDblink(_0x2a6228);if(_0x44383d===_0x11bb8a(0xff)){if(!_0x2a6228['str'](_0x11bb8a(0xf7))[_0x11bb8a(0x105)]()&&_0x1288cb===undefined)throw CliErrors[_0x11bb8a(0xd2)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x2a6228,_0x11bb8a(0xf7)),required(_0x2a6228,_0x11bb8a(0x109));if(_0x44383d!==_0x11bb8a(0xe8)){required(_0x2a6228,_0x11bb8a(0xdf)),required(_0x2a6228,_0x11bb8a(0xe4));const _0x4968a0=_0x2a6228['str'](_0x11bb8a(0xe1))[_0x11bb8a(0x105)]();if(_0x4968a0&&!CROSS_RELATION_CARDINALITY_FLAG[_0x11bb8a(0xd3)][_0x11bb8a(0x100)](_0x4968a0))throw CliErrors['validation'](_0x11bb8a(0xcd));}}async function resolveEndpoint(_0x4f5da0){const _0x5f421e=a72_0x8b9e,_0x5bde3a=await getDatasetDetail(_0x4f5da0),_0x7f02c2=_0x5bde3a?.[_0x5f421e(0x106)]??{};if((_0x5bde3a?.[_0x5f421e(0x10f)]??_0x7f02c2['sourceType'])!=='DB_TABLE')throw CliErrors[_0x5f421e(0xd2)](_0x5f421e(0xfc)+_0x4f5da0+_0x5f421e(0xc2));const _0xe391b0=_0x5bde3a[_0x5f421e(0xda)]??_0x5bde3a[_0x5f421e(0xee)]??{};let _0x6f2f49=_0x5bde3a[_0x5f421e(0x101)]??_0x7f02c2['extend']??{};if(typeof _0x6f2f49===_0x5f421e(0xc9))try{_0x6f2f49=_0x6f2f49[_0x5f421e(0x105)]()?JSON[_0x5f421e(0xcf)](_0x6f2f49):{};}catch{throw CliErrors['validation']('Dataset\x20'+_0x4f5da0+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x40d09e=Number(_0x6f2f49?.[_0x5f421e(0x10e)]?.[_0x5f421e(0xe2)]??_0x5bde3a['storageProfile']?.[_0x5f421e(0xe2)]??_0x7f02c2['storageProfile']?.[_0x5f421e(0xe2)]??_0xe391b0['dbId']??_0x7f02c2[_0x5f421e(0xe2)]??_0x5bde3a[_0x5f421e(0xe2)]),_0x4972c1=String(_0x5bde3a[_0x5f421e(0xd0)]??_0x7f02c2[_0x5f421e(0xd0)]??_0xe391b0['tableName']??'')[_0x5f421e(0x105)]();if(!Number['isSafeInteger'](_0x40d09e)||_0x40d09e<=0x0||!_0x4972c1)throw CliErrors[_0x5f421e(0xd2)](_0x5f421e(0xfc)+_0x4f5da0+_0x5f421e(0x10d));return{'datasetCode':_0x4f5da0,'dblinkId':_0x40d09e,'table':_0x4972c1};}function a72_0x8b9e(_0x184c75,_0x256705){_0x184c75=_0x184c75-0xc0;const _0x50d805=a72_0x50d8();let _0x8b9e52=_0x50d805[_0x184c75];return _0x8b9e52;}export async function resolveCrossRelationQuery(_0x3b33aa){const _0x478366=a72_0x8b9e,_0x27edae=_0x3b33aa['str'](_0x478366(0xf7))['trim'](),_0x1db845=explicitDblink(_0x3b33aa),_0x2d33f7=_0x27edae?await resolveEndpoint(_0x27edae):undefined;if(_0x2d33f7&&_0x1db845!==undefined&&_0x2d33f7[_0x478366(0x103)]!==_0x1db845)throw CliErrors[_0x478366(0xd2)](_0x478366(0xfb));const _0x2abce2=_0x2d33f7?.['dblinkId']??_0x1db845;if(_0x2abce2===undefined)throw CliErrors['validation'](_0x478366(0x115));return{'appCode':_0x3b33aa[_0x478366(0xc1)],'fromDblinkId':_0x2abce2,..._0x27edae?{'fromDatasetCode':_0x27edae}:{},..._0x3b33aa[_0x478366(0xca)](_0x478366(0x109))[_0x478366(0x105)]()?{'fromField':_0x3b33aa[_0x478366(0xca)](_0x478366(0x109))['trim']()}:{}};}export function projectCrossRelation(_0x290bc9){const _0x235f71=a72_0x8b9e;return{'relationId':_0x290bc9[_0x235f71(0x113)],'from':{'source':_0x235f71(0xf3),'datasetCode':_0x290bc9[_0x235f71(0x10c)],'datasetName':_0x290bc9['fromDatasetName'],'dblinkId':_0x290bc9[_0x235f71(0xe5)],'table':_0x290bc9[_0x235f71(0x117)],'field':_0x290bc9[_0x235f71(0xeb)]},'to':{'source':_0x235f71(0xf3),'datasetCode':_0x290bc9[_0x235f71(0xe7)],'datasetName':_0x290bc9['toDatasetName'],'dblinkId':_0x290bc9['toDblinkId'],'table':_0x290bc9[_0x235f71(0x111)],'field':_0x290bc9[_0x235f71(0xe9)],'labelField':_0x290bc9[_0x235f71(0x102)]},'relation':{'cardinality':_0x290bc9[_0x235f71(0xe1)],'relationType':_0x290bc9[_0x235f71(0xfe)]}};}function ambiguity(_0x167e77){const _0x303308=a72_0x8b9e,_0x5a2f91=CliErrors[_0x303308(0xd2)](_0x303308(0xf0),'Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.');return Object['defineProperty'](_0x5a2f91,_0x303308(0xdc),{'value':{'candidates':_0x167e77[_0x303308(0xc5)](projectCrossRelation)}}),_0x5a2f91;}const sameName=(_0x4a4528,_0x182e76)=>_0x4a4528[a72_0x33325d(0xcc)]()===_0x182e76[a72_0x33325d(0xcc)]();function matchesEndpoint(_0x3394c0,_0x202cab,_0x4a1a8e,_0x43ab11,_0x351ae7){const _0x380bbc=a72_0x33325d;return _0x3394c0[_0x380bbc(0xe5)]===_0x202cab[_0x380bbc(0x103)]&&sameName(_0x3394c0['fromTableName'],_0x202cab[_0x380bbc(0xf2)])&&sameName(_0x3394c0[_0x380bbc(0xeb)],_0x4a1a8e)&&_0x3394c0[_0x380bbc(0xdb)]===_0x43ab11[_0x380bbc(0x103)]&&sameName(_0x3394c0[_0x380bbc(0x111)],_0x43ab11[_0x380bbc(0xf2)])&&sameName(_0x3394c0[_0x380bbc(0xe9)],_0x351ae7);}export async function prepareCrossRelation(_0x65ce0f,_0x23b025){const _0x5825b9=a72_0x33325d,_0x3b75cb=await resolveEndpoint(required(_0x65ce0f,_0x5825b9(0xf7))),_0x7b3fc4=explicitDblink(_0x65ce0f);if(_0x7b3fc4!==undefined&&_0x3b75cb['dblinkId']!==_0x7b3fc4)throw CliErrors[_0x5825b9(0xd2)](_0x5825b9(0xfb));const _0x49d788={'appCode':_0x65ce0f['appCode'],'fromDatasetCode':_0x3b75cb[_0x5825b9(0x112)],'fromField':required(_0x65ce0f,_0x5825b9(0x109)),..._0x7b3fc4!==undefined?{'fromDblinkId':_0x7b3fc4}:{}},_0xe5b63d={'appCode':_0x65ce0f[_0x5825b9(0xc1)],'fromDblinkId':_0x3b75cb[_0x5825b9(0x103)],'fromDatasetCode':_0x3b75cb[_0x5825b9(0x112)],'fromField':_0x49d788[_0x5825b9(0xeb)]},_0x1985a1=await queryCrossDbRelations(_0xe5b63d);let _0x4a601a=null;if(_0x23b025!=='create'){if(_0x1985a1[_0x5825b9(0xd6)]>0x1)throw ambiguity(_0x1985a1);_0x4a601a=_0x1985a1[0x0]??null;if(!_0x4a601a)throw CliErrors[_0x5825b9(0xd2)](_0x5825b9(0xc6));}if(_0x23b025==='delete')return{'operation':_0x23b025,'from':_0x3b75cb,'query':_0xe5b63d,'body':_0x49d788,'before':_0x4a601a};const _0x183b1b=await resolveEndpoint(required(_0x65ce0f,_0x5825b9(0xdf)));if(_0x3b75cb[_0x5825b9(0x103)]===_0x183b1b[_0x5825b9(0x103)])throw CliErrors[_0x5825b9(0xd2)](_0x5825b9(0x107));const _0x3cd90a=_0x65ce0f[_0x5825b9(0xca)](_0x5825b9(0x10a))[_0x5825b9(0x105)](),_0x53cf8a=_0x65ce0f[_0x5825b9(0xca)](_0x5825b9(0xe1))[_0x5825b9(0x105)](),_0x4a38dc={..._0x49d788,'toDatasetCode':_0x183b1b[_0x5825b9(0x112)],'toField':required(_0x65ce0f,'to-column'),..._0x3cd90a?{'refTableLabelName':_0x3cd90a}:{},..._0x53cf8a?{'cardinality':_0x53cf8a}:{}};if(_0x1985a1[_0x5825b9(0xd8)](_0x1911df=>_0x1911df[_0x5825b9(0x113)]!==_0x4a601a?.[_0x5825b9(0x113)]&&matchesEndpoint(_0x1911df,_0x3b75cb,_0x4a38dc[_0x5825b9(0xeb)],_0x183b1b,_0x4a38dc[_0x5825b9(0xe9)])))throw CliErrors['validation']('Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.');return{'operation':_0x23b025,'from':_0x3b75cb,'to':_0x183b1b,'query':_0xe5b63d,'body':_0x4a38dc,'before':_0x4a601a,'expectedLabel':_0x3cd90a||_0x4a601a?.[_0x5825b9(0x102)]||_0x4a38dc[_0x5825b9(0xe9)],'expectedCardinality':_0x53cf8a||_0x4a601a?.[_0x5825b9(0xe1)]||null};}function mutationData(_0x48d489,_0x24e5ab,_0x220cf7){const _0x50aef6=a72_0x33325d,{operation:_0x3b529d,body:_0x3002c2,before:_0x2fd5ad}=_0x48d489;return{'operation':_0x3b529d,'selector':{'appCode':_0x3002c2['appCode'],'from':{'datasetCode':_0x3002c2[_0x50aef6(0x10c)],'field':_0x3002c2[_0x50aef6(0xeb)],'dblinkId':_0x48d489[_0x50aef6(0xe6)][_0x50aef6(0x103)]}},'before':_0x2fd5ad?projectCrossRelation(_0x2fd5ad):null,'after':_0x220cf7,'dryRun':_0x24e5ab,'backend':{'method':_0x50aef6(0x116),'path':CROSS_DB_RELATION_PATHS[_0x3b529d]},'warnings':_0x3b529d===_0x50aef6(0xc0)&&!_0x3002c2[_0x50aef6(0x102)]?[{'code':_0x50aef6(0x104),'message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x50b2d9,_0x19f19d){const _0x1bc824=a72_0x33325d,_0x229c50=await prepareCrossRelation(_0x50b2d9,_0x19f19d),_0x42c512=_0x229c50[_0x1bc824(0xed)],_0x4ad8be=_0x19f19d===_0x1bc824(0xe8)?null:{..._0x229c50[_0x1bc824(0xf9)]?{'relationId':_0x229c50['before'][_0x1bc824(0x113)]}:{},'from':{'datasetCode':_0x229c50[_0x1bc824(0xe6)][_0x1bc824(0x112)],'dblinkId':_0x229c50['from'][_0x1bc824(0x103)],'table':_0x229c50[_0x1bc824(0xe6)][_0x1bc824(0xf2)],'field':_0x42c512[_0x1bc824(0xeb)]},'to':{'datasetCode':_0x229c50['to'][_0x1bc824(0x112)],'dblinkId':_0x229c50['to'][_0x1bc824(0x103)],'table':_0x229c50['to'][_0x1bc824(0xf2)],'field':_0x42c512[_0x1bc824(0xe9)],'labelField':_0x229c50[_0x1bc824(0xc3)]},'relation':{'cardinality':_0x229c50[_0x1bc824(0xea)],'relationType':0x2}};return{...mutationData(_0x229c50,!![],null),'after':_0x4ad8be,'method':_0x1bc824(0x116),'url':CROSS_DB_RELATION_PATHS[_0x19f19d],'body':_0x229c50[_0x1bc824(0xed)],'description':'Would\x20'+_0x19f19d+_0x1bc824(0xf5)+_0x42c512[_0x1bc824(0x10c)]+'.'+_0x42c512['fromField']};}export async function executeCrossRelation(_0x47322c,_0x1695e5,_0x2da005){const _0x422e26=a72_0x33325d,_0x17e907=await prepareCrossRelation(_0x47322c,_0x1695e5);try{await _0x2da005(_0x17e907[_0x422e26(0xed)]);}catch(_0x1cf4fc){if(_0x1cf4fc instanceof CliError&&_0x1cf4fc[_0x422e26(0xf6)][_0x422e26(0x100)](_0x422e26(0x108))){const _0x3d7108=await queryCrossDbRelations(_0x17e907[_0x422e26(0x110)])[_0x422e26(0xcb)](()=>[]);throw ambiguity(_0x3d7108);}throw _0x1cf4fc;}let _0x28e415=[],_0x1d0ebf,_0x5ba85c=![];try{_0x28e415=await queryCrossDbRelations(_0x17e907['query']);if(_0x1695e5==='delete')_0x5ba85c=!_0x28e415[_0x422e26(0xd8)](_0x1eab76=>_0x1eab76['relationId']===_0x17e907[_0x422e26(0xf9)][_0x422e26(0x113)]);else{const _0x31edeb=_0x17e907['body'],_0xae7ce3=_0x28e415['filter'](_0x3d968e=>matchesEndpoint(_0x3d968e,_0x17e907[_0x422e26(0xe6)],_0x31edeb[_0x422e26(0xeb)],_0x17e907['to'],_0x31edeb[_0x422e26(0xe9)])&&(_0x1695e5===_0x422e26(0xd1)||_0x3d968e[_0x422e26(0x113)]===_0x17e907[_0x422e26(0xf9)]['relationId']));_0x1d0ebf=_0xae7ce3['length']===0x1?_0xae7ce3[0x0]:undefined,_0x5ba85c=!!_0x1d0ebf&&_0x1d0ebf[_0x422e26(0x102)]===_0x17e907[_0x422e26(0xc3)]&&_0x1d0ebf[_0x422e26(0xe1)]===_0x17e907[_0x422e26(0xea)]&&_0x1d0ebf[_0x422e26(0xfe)]===0x2;}}catch{}const _0x487bdd={...mutationData(_0x17e907,![],_0x1d0ebf?projectCrossRelation(_0x1d0ebf):null),'verification':{'status':_0x5ba85c?_0x422e26(0xfa):_0x422e26(0xd9),'verified':_0x5ba85c}};if(!_0x5ba85c){const _0x4eaeee=CliErrors['apiError'](_0x422e26(0xec)+_0x1695e5+_0x422e26(0xc4),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object[_0x422e26(0xc8)](_0x4eaeee,'data',{'value':{..._0x487bdd,'candidates':_0x28e415[_0x422e26(0xc5)](projectCrossRelation)}});throw _0x4eaeee;}return{'ok':!![],'data':_0x487bdd,'message':_0x422e26(0xec)+_0x1695e5+'\x20verified.'};}
|
|
1
|
+
const a72_0x2e8053=a72_0x1c45;(function(_0x4036e2,_0x3bd836){const _0x449a59=a72_0x1c45,_0x5b4fa1=_0x4036e2();while(!![]){try{const _0x3d9ef5=parseInt(_0x449a59(0x1d3))/0x1*(parseInt(_0x449a59(0x1a9))/0x2)+parseInt(_0x449a59(0x1c1))/0x3+-parseInt(_0x449a59(0x1b9))/0x4*(parseInt(_0x449a59(0x1b0))/0x5)+-parseInt(_0x449a59(0x1a7))/0x6*(parseInt(_0x449a59(0x198))/0x7)+parseInt(_0x449a59(0x1d4))/0x8*(parseInt(_0x449a59(0x19e))/0x9)+-parseInt(_0x449a59(0x1c2))/0xa+parseInt(_0x449a59(0x18a))/0xb;if(_0x3d9ef5===_0x3bd836)break;else _0x5b4fa1['push'](_0x5b4fa1['shift']());}catch(_0x1eaec5){_0x5b4fa1['push'](_0x5b4fa1['shift']());}}}(a72_0x21ec,0x39365));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(_0x3d4354,_0x4d96a9){const _0x4317db=a72_0x1c45,_0x2b0681=_0x3d4354[_0x4317db(0x19d)](_0x4d96a9)[_0x4317db(0x1c7)]();if(!_0x2b0681)throw CliErrors[_0x4317db(0x1c5)](_0x4d96a9);return _0x2b0681;}function explicitDblink(_0x4e5b97){const _0x482cca=a72_0x1c45,_0x1ae0ca=_0x4e5b97[_0x482cca(0x18c)]('from-dblink-id');if(_0x1ae0ca===undefined||_0x1ae0ca===null)return undefined;const _0x145302=Number(_0x1ae0ca);if(!Number[_0x482cca(0x1b3)](_0x145302)||_0x145302<=0x0)throw CliErrors['validation'](_0x482cca(0x1d2));return _0x145302;}export function validateCrossRelation(_0x3a5917,_0x7e37c2){const _0x464bef=a72_0x1c45,_0xa33d39=explicitDblink(_0x3a5917);if(_0x7e37c2==='list'){if(!_0x3a5917[_0x464bef(0x19d)]('from-datasetcode')[_0x464bef(0x1c7)]()&&_0xa33d39===undefined)throw CliErrors[_0x464bef(0x187)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x3a5917,_0x464bef(0x1be)),required(_0x3a5917,_0x464bef(0x1ad));if(_0x7e37c2!==_0x464bef(0x18b)){required(_0x3a5917,_0x464bef(0x1d1)),required(_0x3a5917,_0x464bef(0x196));const _0x3d0e1a=_0x3a5917[_0x464bef(0x19d)](_0x464bef(0x19c))[_0x464bef(0x1c7)]();if(_0x3d0e1a&&!CROSS_RELATION_CARDINALITY_FLAG[_0x464bef(0x1c6)][_0x464bef(0x18f)](_0x3d0e1a))throw CliErrors['validation'](_0x464bef(0x1d5));}}async function resolveEndpoint(_0x1c36c8){const _0x289517=a72_0x1c45,_0x9e291=await getDatasetDetail(_0x1c36c8),_0x591c5b=_0x9e291?.[_0x289517(0x19a)]??{};if((_0x9e291?.[_0x289517(0x1b4)]??_0x591c5b['sourceType'])!==_0x289517(0x1b5))throw CliErrors[_0x289517(0x187)](_0x289517(0x1c4)+_0x1c36c8+_0x289517(0x1aa));const _0x294c2f=_0x9e291[_0x289517(0x197)]??_0x9e291[_0x289517(0x1d9)]??{};let _0x438215=_0x9e291[_0x289517(0x1cc)]??_0x591c5b['extend']??{};if(typeof _0x438215==='string')try{_0x438215=_0x438215[_0x289517(0x1c7)]()?JSON[_0x289517(0x1dc)](_0x438215):{};}catch{throw CliErrors[_0x289517(0x187)](_0x289517(0x1c4)+_0x1c36c8+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x1b0b89=Number(_0x438215?.[_0x289517(0x1db)]?.[_0x289517(0x1cb)]??_0x9e291[_0x289517(0x1db)]?.['dbId']??_0x591c5b[_0x289517(0x1db)]?.[_0x289517(0x1cb)]??_0x294c2f['dbId']??_0x591c5b[_0x289517(0x1cb)]??_0x9e291[_0x289517(0x1cb)]),_0x177f28=String(_0x9e291[_0x289517(0x1c0)]??_0x591c5b[_0x289517(0x1c0)]??_0x294c2f[_0x289517(0x1c0)]??'')['trim']();if(!Number[_0x289517(0x1b3)](_0x1b0b89)||_0x1b0b89<=0x0||!_0x177f28)throw CliErrors[_0x289517(0x187)]('Dataset\x20'+_0x1c36c8+_0x289517(0x1d6));return{'datasetCode':_0x1c36c8,'dblinkId':_0x1b0b89,'table':_0x177f28};}export async function resolveCrossRelationQuery(_0x239b29){const _0x110601=a72_0x1c45,_0x38e547=_0x239b29[_0x110601(0x19d)](_0x110601(0x1be))[_0x110601(0x1c7)](),_0x2ae3a3=explicitDblink(_0x239b29),_0x4d7b94=_0x38e547?await resolveEndpoint(_0x38e547):undefined;if(_0x4d7b94&&_0x2ae3a3!==undefined&&_0x4d7b94[_0x110601(0x1ac)]!==_0x2ae3a3)throw CliErrors[_0x110601(0x187)](_0x110601(0x1bd));const _0x32feab=_0x4d7b94?.[_0x110601(0x1ac)]??_0x2ae3a3;if(_0x32feab===undefined)throw CliErrors[_0x110601(0x187)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x239b29[_0x110601(0x1cf)],'fromDblinkId':_0x32feab,..._0x38e547?{'fromDatasetCode':_0x38e547}:{},..._0x239b29['str'](_0x110601(0x1ad))[_0x110601(0x1c7)]()?{'fromField':_0x239b29[_0x110601(0x19d)]('from-column')[_0x110601(0x1c7)]()}:{}};}export function projectCrossRelation(_0x551674){const _0x178fb3=a72_0x1c45;return{'relationId':_0x551674[_0x178fb3(0x1da)],'from':{'source':'DB_TABLE','datasetCode':_0x551674[_0x178fb3(0x1af)],'datasetName':_0x551674[_0x178fb3(0x1d0)],'dblinkId':_0x551674['fromDblinkId'],'table':_0x551674[_0x178fb3(0x1ca)],'field':_0x551674[_0x178fb3(0x1b2)]},'to':{'source':'DB_TABLE','datasetCode':_0x551674[_0x178fb3(0x1ce)],'datasetName':_0x551674[_0x178fb3(0x19b)],'dblinkId':_0x551674[_0x178fb3(0x194)],'table':_0x551674[_0x178fb3(0x19f)],'field':_0x551674[_0x178fb3(0x1ae)],'labelField':_0x551674[_0x178fb3(0x1c3)]},'relation':{'cardinality':_0x551674[_0x178fb3(0x19c)],'relationType':_0x551674[_0x178fb3(0x1b1)]}};}function ambiguity(_0x12d304){const _0x203c20=a72_0x1c45,_0x1e9a5d=CliErrors[_0x203c20(0x187)](_0x203c20(0x1a4),_0x203c20(0x1a0));return Object[_0x203c20(0x1b6)](_0x1e9a5d,_0x203c20(0x1a6),{'value':{'candidates':_0x12d304[_0x203c20(0x1b7)](projectCrossRelation)}}),_0x1e9a5d;}const sameName=(_0x2125d8,_0x42b9d4)=>_0x2125d8[a72_0x2e8053(0x1c8)]()===_0x42b9d4[a72_0x2e8053(0x1c8)]();function a72_0x1c45(_0xfa0442,_0x246988){_0xfa0442=_0xfa0442-0x185;const _0x21ecab=a72_0x21ec();let _0x1c45e7=_0x21ecab[_0xfa0442];return _0x1c45e7;}function matchesEndpoint(_0x17e36f,_0x34c516,_0x2ac0dc,_0x3b3a0c,_0x4cf335){const _0x3fc1eb=a72_0x2e8053;return _0x17e36f[_0x3fc1eb(0x199)]===_0x34c516[_0x3fc1eb(0x1ac)]&&sameName(_0x17e36f[_0x3fc1eb(0x1ca)],_0x34c516[_0x3fc1eb(0x1a5)])&&sameName(_0x17e36f[_0x3fc1eb(0x1b2)],_0x2ac0dc)&&_0x17e36f['toDblinkId']===_0x3b3a0c['dblinkId']&&sameName(_0x17e36f['toTableName'],_0x3b3a0c[_0x3fc1eb(0x1a5)])&&sameName(_0x17e36f[_0x3fc1eb(0x1ae)],_0x4cf335);}export async function prepareCrossRelation(_0xcf90a2,_0x214620){const _0x2e2cd5=a72_0x2e8053,_0x376c64=await resolveEndpoint(required(_0xcf90a2,_0x2e2cd5(0x1be))),_0x12f5de=explicitDblink(_0xcf90a2);if(_0x12f5de!==undefined&&_0x376c64[_0x2e2cd5(0x1ac)]!==_0x12f5de)throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x1bd));const _0x56c220={'appCode':_0xcf90a2[_0x2e2cd5(0x1cf)],'fromDatasetCode':_0x376c64[_0x2e2cd5(0x1c9)],'fromField':required(_0xcf90a2,_0x2e2cd5(0x1ad)),..._0x12f5de!==undefined?{'fromDblinkId':_0x12f5de}:{}},_0x208f28={'appCode':_0xcf90a2[_0x2e2cd5(0x1cf)],'fromDblinkId':_0x376c64[_0x2e2cd5(0x1ac)],'fromDatasetCode':_0x376c64['datasetCode'],'fromField':_0x56c220[_0x2e2cd5(0x1b2)]},_0x499047=await queryCrossDbRelations(_0x208f28);let _0x10556f=null;if(_0x214620!==_0x2e2cd5(0x1d8)){if(_0x499047['length']>0x1)throw ambiguity(_0x499047);_0x10556f=_0x499047[0x0]??null;if(!_0x10556f)throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x1a8));}if(_0x214620==='delete')return{'operation':_0x214620,'from':_0x376c64,'query':_0x208f28,'body':_0x56c220,'before':_0x10556f};const _0x3b237d=await resolveEndpoint(required(_0xcf90a2,_0x2e2cd5(0x1d1)));if(_0x376c64[_0x2e2cd5(0x1ac)]===_0x3b237d[_0x2e2cd5(0x1ac)])throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x1ba));const _0x27c1da=_0xcf90a2[_0x2e2cd5(0x19d)](_0x2e2cd5(0x190))['trim'](),_0x272162=_0xcf90a2['str'](_0x2e2cd5(0x19c))[_0x2e2cd5(0x1c7)](),_0x4d5688={..._0x56c220,'toDatasetCode':_0x3b237d['datasetCode'],'toField':required(_0xcf90a2,_0x2e2cd5(0x196)),..._0x27c1da?{'refTableLabelName':_0x27c1da}:{},..._0x272162?{'cardinality':_0x272162}:{}};if(_0x499047['some'](_0x4db52f=>_0x4db52f[_0x2e2cd5(0x1da)]!==_0x10556f?.[_0x2e2cd5(0x1da)]&&matchesEndpoint(_0x4db52f,_0x376c64,_0x4d5688[_0x2e2cd5(0x1b2)],_0x3b237d,_0x4d5688[_0x2e2cd5(0x1ae)])))throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x18d));return{'operation':_0x214620,'from':_0x376c64,'to':_0x3b237d,'query':_0x208f28,'body':_0x4d5688,'before':_0x10556f,'expectedLabel':_0x27c1da||_0x10556f?.['refTableLabelName']||_0x4d5688[_0x2e2cd5(0x1ae)],'expectedCardinality':_0x272162||_0x10556f?.[_0x2e2cd5(0x19c)]||null};}function mutationData(_0x5689d1,_0xd8ff73,_0xceecb){const _0x3a1077=a72_0x2e8053,{operation:_0x469d18,body:_0x38b56f,before:_0x38304e}=_0x5689d1;return{'operation':_0x469d18,'selector':{'appCode':_0x38b56f[_0x3a1077(0x1cf)],'from':{'datasetCode':_0x38b56f[_0x3a1077(0x1af)],'field':_0x38b56f[_0x3a1077(0x1b2)],'dblinkId':_0x5689d1[_0x3a1077(0x1bb)][_0x3a1077(0x1ac)]}},'before':_0x38304e?projectCrossRelation(_0x38304e):null,'after':_0xceecb,'dryRun':_0xd8ff73,'backend':{'method':_0x3a1077(0x188),'path':CROSS_DB_RELATION_PATHS[_0x469d18]},'warnings':_0x469d18==='update'&&!_0x38b56f['refTableLabelName']?[{'code':_0x3a1077(0x193),'message':_0x3a1077(0x1a3)}]:[]};}function a72_0x21ec(){const _0x50b7a9=['Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','catch','includes','to-label-column','expectedLabel','Would\x20','label_inherited','toDblinkId','\x20verified.','to-column','dbtableConfig','322qEkUoq','fromDblinkId','dataset','toDatasetName','cardinality','str','484335XcmXad','toTableName','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','some','Cross-database\x20relation\x20','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','table','data','40380VacnHr','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','134qlbHoN','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','body','dblinkId','from-column','toField','fromDatasetCode','5jtnLbt','relationType','fromField','isSafeInteger','source','DB_TABLE','defineProperty','map','message','247592icYWZw','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','from','before','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','from-datasetcode','expectedCardinality','tableName','251565MpJhww','2798980ucKnPn','refTableLabelName','Dataset\x20','flagMissing','enum','trim','toLowerCase','datasetCode','fromTableName','dbId','extend','matched','toDatasetCode','appCode','fromDatasetName','to-datasetcode','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','971zUMxzD','8CpLuNU','Invalid\x20--cardinality.','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','\x20a\x20cross-database\x20relation\x20for\x20','create','dbtable','relationId','storageProfile','parse','unconfirmed','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','validation','POST','length','7512890pVpJLm','delete','flag'];a72_0x21ec=function(){return _0x50b7a9;};return a72_0x21ec();}export async function previewCrossRelation(_0x2c2e4b,_0x558a72){const _0x293d0d=a72_0x2e8053,_0x3ea77b=await prepareCrossRelation(_0x2c2e4b,_0x558a72),_0x11c1a3=_0x3ea77b[_0x293d0d(0x1ab)],_0x290629=_0x558a72===_0x293d0d(0x18b)?null:{..._0x3ea77b['before']?{'relationId':_0x3ea77b[_0x293d0d(0x1bc)][_0x293d0d(0x1da)]}:{},'from':{'datasetCode':_0x3ea77b[_0x293d0d(0x1bb)][_0x293d0d(0x1c9)],'dblinkId':_0x3ea77b[_0x293d0d(0x1bb)]['dblinkId'],'table':_0x3ea77b[_0x293d0d(0x1bb)][_0x293d0d(0x1a5)],'field':_0x11c1a3[_0x293d0d(0x1b2)]},'to':{'datasetCode':_0x3ea77b['to']['datasetCode'],'dblinkId':_0x3ea77b['to']['dblinkId'],'table':_0x3ea77b['to'][_0x293d0d(0x1a5)],'field':_0x11c1a3[_0x293d0d(0x1ae)],'labelField':_0x3ea77b[_0x293d0d(0x191)]},'relation':{'cardinality':_0x3ea77b[_0x293d0d(0x1bf)],'relationType':0x2}};return{...mutationData(_0x3ea77b,!![],null),'after':_0x290629,'method':_0x293d0d(0x188),'url':CROSS_DB_RELATION_PATHS[_0x558a72],'body':_0x3ea77b[_0x293d0d(0x1ab)],'description':_0x293d0d(0x192)+_0x558a72+_0x293d0d(0x1d7)+_0x11c1a3['fromDatasetCode']+'.'+_0x11c1a3['fromField']};}export async function executeCrossRelation(_0x1bda77,_0x23e711,_0x50b9f9){const _0x3b907d=a72_0x2e8053,_0x30a54c=await prepareCrossRelation(_0x1bda77,_0x23e711);try{await _0x50b9f9(_0x30a54c['body']);}catch(_0x3641cf){if(_0x3641cf instanceof CliError&&_0x3641cf[_0x3b907d(0x1b8)][_0x3b907d(0x18f)]('multiple\x20cross-database\x20relations\x20matched')){const _0x5d70e7=await queryCrossDbRelations(_0x30a54c['query'])[_0x3b907d(0x18e)](()=>[]);throw ambiguity(_0x5d70e7);}throw _0x3641cf;}let _0x453380=[],_0x111456,_0x1a16d1=![];try{_0x453380=await queryCrossDbRelations(_0x30a54c['query']);if(_0x23e711===_0x3b907d(0x18b))_0x1a16d1=!_0x453380[_0x3b907d(0x1a1)](_0x37e002=>_0x37e002[_0x3b907d(0x1da)]===_0x30a54c['before'][_0x3b907d(0x1da)]);else{const _0x2b7975=_0x30a54c[_0x3b907d(0x1ab)],_0xdc015=_0x453380['filter'](_0x45db2d=>matchesEndpoint(_0x45db2d,_0x30a54c[_0x3b907d(0x1bb)],_0x2b7975[_0x3b907d(0x1b2)],_0x30a54c['to'],_0x2b7975[_0x3b907d(0x1ae)])&&(_0x23e711===_0x3b907d(0x1d8)||_0x45db2d[_0x3b907d(0x1da)]===_0x30a54c[_0x3b907d(0x1bc)][_0x3b907d(0x1da)]));_0x111456=_0xdc015[_0x3b907d(0x189)]===0x1?_0xdc015[0x0]:undefined,_0x1a16d1=!!_0x111456&&_0x111456[_0x3b907d(0x1c3)]===_0x30a54c[_0x3b907d(0x191)]&&_0x111456[_0x3b907d(0x19c)]===_0x30a54c[_0x3b907d(0x1bf)]&&_0x111456[_0x3b907d(0x1b1)]===0x2;}}catch{}const _0x2ae6b6={...mutationData(_0x30a54c,![],_0x111456?projectCrossRelation(_0x111456):null),'verification':{'status':_0x1a16d1?_0x3b907d(0x1cd):_0x3b907d(0x185),'verified':_0x1a16d1}};if(!_0x1a16d1){const _0x4bfdcf=CliErrors['apiError'](_0x3b907d(0x1a2)+_0x23e711+'\x20write\x20was\x20not\x20verified.',_0x3b907d(0x186));Object[_0x3b907d(0x1b6)](_0x4bfdcf,'data',{'value':{..._0x2ae6b6,'candidates':_0x453380[_0x3b907d(0x1b7)](projectCrossRelation)}});throw _0x4bfdcf;}return{'ok':!![],'data':_0x2ae6b6,'message':_0x3b907d(0x1a2)+_0x23e711+_0x3b907d(0x195)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x5f3823=a73_0x42fc;(function(_0x310ddf,_0x270348){const _0x37faa7=a73_0x42fc,_0x4e4985=_0x310ddf();while(!![]){try{const _0x3e2ec7=-parseInt(_0x37faa7(0x152))/0x1+parseInt(_0x37faa7(0x160))/0x2+-parseInt(_0x37faa7(0x15e))/0x3*(parseInt(_0x37faa7(0x157))/0x4)+-parseInt(_0x37faa7(0x154))/0x5+parseInt(_0x37faa7(0x159))/0x6*(-parseInt(_0x37faa7(0x153))/0x7)+parseInt(_0x37faa7(0x15c))/0x8*(-parseInt(_0x37faa7(0x155))/0x9)+parseInt(_0x37faa7(0x158))/0xa;if(_0x3e2ec7===_0x270348)break;else _0x4e4985['push'](_0x4e4985['shift']());}catch(_0x42208f){_0x4e4985['push'](_0x4e4985['shift']());}}}(a73_0x333b,0x996b0));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x42fc(_0x5b7c97,_0x2021d5){_0x5b7c97=_0x5b7c97-0x152;const _0x333ba3=a73_0x333b();let _0x42fc3a=_0x333ba3[_0x5b7c97];return _0x42fc3a;}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';function a73_0x333b(){const _0x223c39=['update','16792WweJYI','write','285UuqFTf','cross-relation-update','1652480xnhmzu','74507qWGysC','7xcqtOY','5889040EHUqum','3312jiWmvO','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','25716xnuRcU','24970310QitsHQ','356214xLLvYn','dataset'];a73_0x333b=function(){return _0x223c39;};return a73_0x333b();}export const datasetCrossRelationUpdate={'service':a73_0x5f3823(0x15a),'command':a73_0x5f3823(0x15f),'description':a73_0x5f3823(0x156),'risk':a73_0x5f3823(0x15d),'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 _0x19a659=>validateCrossRelation(_0x19a659,a73_0x5f3823(0x15b)),'dryRun':_0x2d9c72=>previewCrossRelation(_0x2d9c72,a73_0x5f3823(0x15b)),'execute':_0x4a106c=>executeCrossRelation(_0x4a106c,'update',updateCrossDbRelation)};
|