@lovrabet/rabetbase-cli 2.5.12 → 2.5.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x13ef(){const _0x376f67=['str','3219010ZFkofu','Usage:\x20','config','654048IPGskp','string','Get\x20a\x20config\x20value\x20by\x20key','Missing\x20key.','read','377512bbBKUo','\x20config\x20get\x20--key\x20<key>','2256268QjZVHi','Key\x20not\x20found:\x20','418968mfsStZ','validation','147ORFaLt','object','244LZuncX','key','appcode','1718056mXSgGh'];a59_0x13ef=function(){return _0x376f67;};return a59_0x13ef();}const a59_0x29ae05=a59_0x27d0;(function(_0x5249af,_0xa8155d){const _0xb2a1af=a59_0x27d0,_0x2b283c=_0x5249af();while(!![]){try{const _0xcb3f30=-parseInt(_0xb2a1af(0x12a))/0x1+-parseInt(_0xb2a1af(0x12e))/0x2*(-parseInt(_0xb2a1af(0x12c))/0x3)+parseInt(_0xb2a1af(0x126))/0x4+parseInt(_0xb2a1af(0x133))/0x5+-parseInt(_0xb2a1af(0x136))/0x6+parseInt(_0xb2a1af(0x128))/0x7+-parseInt(_0xb2a1af(0x131))/0x8;if(_0xcb3f30===_0xa8155d)break;else _0x2b283c['push'](_0x2b283c['shift']());}catch(_0x4ab5a7){_0x2b283c['push'](_0x2b283c['shift']());}}}(a59_0x13ef,0x4f0a5));function a59_0x27d0(_0x496b68,_0x3279b2){_0x496b68=_0x496b68-0x122;const _0x13ef0c=a59_0x13ef();let _0x27d02c=_0x13ef0c[_0x496b68];return _0x27d02c;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x8c1315){const _0x20c18d=a59_0x27d0,_0x37e7a6=_0x8c1315[_0x20c18d(0x132)](_0x20c18d(0x12f));if(!_0x37e7a6)throw CliErrors[_0x20c18d(0x12b)](_0x20c18d(0x124),_0x20c18d(0x134)+CLI_BIN_NAME+_0x20c18d(0x127));const _0x356e38=readConfig(),_0x541518=_0x37e7a6==='app'?_0x20c18d(0x130):_0x37e7a6,_0x2497e0=_0x356e38[_0x541518];if(_0x2497e0===undefined)throw CliErrors[_0x20c18d(0x12b)](_0x20c18d(0x129)+_0x37e7a6);return{'ok':!![],'data':typeof _0x2497e0===_0x20c18d(0x12d)?_0x2497e0:{[_0x541518]:_0x2497e0},'message':typeof _0x2497e0===_0x20c18d(0x12d)?undefined:String(_0x2497e0)};}export const configGetDefinition={'service':a59_0x29ae05(0x135),'command':'get','description':a59_0x29ae05(0x123),'risk':a59_0x29ae05(0x125),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x29ae05(0x12f),'type':a59_0x29ae05(0x122),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x145d73,_0x2246ea){const _0x387af8=a60_0x2ea8,_0x105a58=_0x145d73();while(!![]){try{const _0x44a497=-parseInt(_0x387af8(0x1ca))/0x1+parseInt(_0x387af8(0x1c7))/0x2*(-parseInt(_0x387af8(0x1cd))/0x3)+parseInt(_0x387af8(0x1cb))/0x4*(-parseInt(_0x387af8(0x1cf))/0x5)+parseInt(_0x387af8(0x1c8))/0x6+parseInt(_0x387af8(0x1c9))/0x7+parseInt(_0x387af8(0x1cc))/0x8+parseInt(_0x387af8(0x1ce))/0x9;if(_0x44a497===_0x2246ea)break;else _0x105a58['push'](_0x105a58['shift']());}catch(_0x155c7a){_0x105a58['push'](_0x105a58['shift']());}}}(a60_0x4ac1,0x46a06));import{configListDefinition}from'../../commands/config/list.js';function a60_0x2ea8(_0x468a96,_0x25e573){_0x468a96=_0x468a96-0x1c7;const _0x4ac166=a60_0x4ac1();let _0x2ea89a=_0x4ac166[_0x468a96];return _0x2ea89a;}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a60_0x4ac1(){const _0x126959=['357030FhmVKn','5098xMwesA','43344rCwZxp','1266909ZCMfrU','381321LbycZP','4wwCEpI','2255232tGIYJy','633gHruaN','7287633jAGUhd'];a60_0x4ac1=function(){return _0x126959;};return a60_0x4ac1();}import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x532399=a61_0x444b;function a61_0x572c(){const _0x38b256=['manifestDomains','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','1466244yPYnXc','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','kb-domain','11934XDMiVO','Custom\x20platform\x20API\x20HTTPS\x20origin','Custom\x20Runtime\x20HTTPS\x20origin','10UtUdBh','length','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','8401799bJCnWP','cdn','label','11CJRhoD','official','Region\x20\x22','Custom\x20local\x20callback\x20HTTPS\x20origin','kb-service-domain','name','Custom\x20User\x20HTTPS\x20origin','string','12484Liqlmw','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Available\x20regions:\x20','certificate-domain','str','768cYZWVV','enterprise-v1','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','api-domain','join','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','map','init','local-domain','skill-domain','Custom\x20certificate\x20service\x20HTTPS\x20origin','certificateDomain','mode','Custom\x20knowledge-base\x20HTTPS\x20origin','runtime-domain','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','user-domain','validation','Official\x20Lovrabet\x20region:\x20','Custom\x20SkillHub\x20HTTPS\x20origin','domain-config','routing','36992813YizAuj','240XcyIQo','keys','6678590IYfGWU','Select\x20Lovrabet\x20region','global','config','203334LXvqQa','region'];a61_0x572c=function(){return _0x38b256;};return a61_0x572c();}(function(_0x55cb79,_0x153b40){const _0x3d9384=a61_0x444b,_0x4fbdd5=_0x55cb79();while(!![]){try{const _0x2c196f=parseInt(_0x3d9384(0xa0))/0x1*(-parseInt(_0x3d9384(0x90))/0x2)+-parseInt(_0x3d9384(0xad))/0x3*(-parseInt(_0x3d9384(0xa8))/0x4)+-parseInt(_0x3d9384(0x8c))/0x5+parseInt(_0x3d9384(0x94))/0x6+-parseInt(_0x3d9384(0x9d))/0x7+-parseInt(_0x3d9384(0x8a))/0x8*(parseInt(_0x3d9384(0x97))/0x9)+parseInt(_0x3d9384(0x9a))/0xa*(parseInt(_0x3d9384(0x89))/0xb);if(_0x2c196f===_0x153b40)break;else _0x4fbdd5['push'](_0x4fbdd5['shift']());}catch(_0x37413f){_0x4fbdd5['push'](_0x4fbdd5['shift']());}}}(a61_0x572c,0xade31));import{select}from'@inquirer/prompts';function a61_0x444b(_0x243656,_0x60515){_0x243656=_0x243656-0x7f;const _0x572c3a=a61_0x572c();let _0x444b51=_0x572c3a[_0x243656];return _0x444b51;}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x532399(0x91),'type':'string','description':a61_0x532399(0x85)+ENABLED_LOVRABET_REGION_VALUES[a61_0x532399(0xb1)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x532399(0x87),'type':a61_0x532399(0xa7),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0x532399(0x83),'type':a61_0x532399(0xa7),'description':a61_0x532399(0xa6)},{'name':a61_0x532399(0xb0),'type':a61_0x532399(0xa7),'description':a61_0x532399(0x98)},{'name':a61_0x532399(0x81),'type':a61_0x532399(0xa7),'description':a61_0x532399(0x99)},{'name':a61_0x532399(0xb6),'type':a61_0x532399(0xa7),'description':a61_0x532399(0x86)},{'name':a61_0x532399(0x96),'type':a61_0x532399(0xa7),'description':a61_0x532399(0x80)},{'name':a61_0x532399(0xa4),'type':a61_0x532399(0xa7),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'},{'name':'app-domain','type':a61_0x532399(0xa7),'description':a61_0x532399(0x95)},{'name':a61_0x532399(0xb5),'type':a61_0x532399(0xa7),'description':a61_0x532399(0xa3)},{'name':a61_0x532399(0xab),'type':'string','description':a61_0x532399(0xb7)}];async function resolveRegion(_0x556536){const _0x484afe=a61_0x532399,_0x582c39=_0x556536['str'](_0x484afe(0x91));if(_0x582c39){if(!isEnabledLovrabetRegion(_0x582c39))throw CliErrors[_0x484afe(0x84)](_0x484afe(0xa2)+_0x582c39+'\x22\x20is\x20not\x20currently\x20available.',_0x484afe(0xaa)+ENABLED_LOVRABET_REGION_VALUES[_0x484afe(0xb1)](',\x20'));return _0x582c39;}if(_0x556536['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x484afe(0x8d),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x484afe(0xb3)](_0x27108d=>({'name':getOfficialRoutingProfile(_0x27108d)[_0x484afe(0x9f)]+'\x20('+_0x27108d+')','value':_0x27108d}))});}catch(_0x2051e5){if(_0x2051e5?.[_0x484afe(0xa5)]==='ExitPromptError')throw CliErrors['cancelled']();throw _0x2051e5;}}export async function executeConfigInit(_0x25ab9e){const _0xe06d41=a61_0x532399,_0x908136=resolveDomainConfigInput(_0x25ab9e),_0x539ebe=_0x908136['domains'],_0x3d4c16=Object[_0xe06d41(0x8b)](_0x539ebe)[_0xe06d41(0x9b)]>0x0;if(_0x3d4c16&&_0x25ab9e[_0xe06d41(0xac)](_0xe06d41(0x91)))throw CliErrors[_0xe06d41(0x84)](_0xe06d41(0xa9));if(!!_0x539ebe['localDomain']!==!!_0x539ebe[_0xe06d41(0xb8)])throw CliErrors[_0xe06d41(0x84)](_0xe06d41(0x93));const _0x466cac=_0x25ab9e['bool']('global')?_0xe06d41(0x8e):'project',_0x4dbd8e=readScopedConfig(_0x466cac);for(const _0x1e693d of DOMAIN_CONFIG_FIELDS)delete _0x4dbd8e[_0x1e693d];for(const _0x3e545b of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4dbd8e[_0x3e545b];delete _0x4dbd8e[_0xe06d41(0x88)];let _0x5b609d=null;if(_0x3d4c16)delete _0x4dbd8e[_0xe06d41(0x91)],_0x908136['mode']===_0xe06d41(0xae)?_0x4dbd8e[_0xe06d41(0x88)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x908136[_0xe06d41(0x92)],'cdn':_0x908136[_0xe06d41(0x9e)]}:Object['assign'](_0x4dbd8e,_0x539ebe);else{_0x5b609d=await resolveRegion(_0x25ab9e);if(_0x5b609d===DEFAULT_LOVRABET_REGION)delete _0x4dbd8e[_0xe06d41(0x91)];else _0x4dbd8e[_0xe06d41(0x91)]=_0x5b609d;}return writeScopedConfig(_0x4dbd8e,_0x466cac),{'ok':!![],'message':_0x3d4c16?_0xe06d41(0xb2)+Object[_0xe06d41(0x8b)](_0x908136[_0xe06d41(0x7f)]===_0xe06d41(0xae)?_0x908136['manifestDomains']:_0x539ebe)[_0xe06d41(0xb1)](',\x20')+'.':_0xe06d41(0xaf)+_0x5b609d+'.','data':{'mode':_0x3d4c16?'independent':_0xe06d41(0xa1),'protocol':_0x908136[_0xe06d41(0x7f)]===_0xe06d41(0xae)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x5b609d,'domains':_0x539ebe,'cdn':_0x908136[_0xe06d41(0x7f)]===_0xe06d41(0xae)?_0x908136[_0xe06d41(0x9e)]:undefined}};}export const configInitDefinition={'service':a61_0x532399(0x8f),'command':a61_0x532399(0xb4),'description':a61_0x532399(0x82),'risk':'write','confirmationDescription':a61_0x532399(0x9c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x2452eb=a62_0x1711;function a62_0xbaf6(){const _0x17c99c=['5ZOlvOG','9wQGaYM','10729370yICwoV','List\x20all\x20config\x20values','435894CHtyUJ','3597960grxtxu','config','97616cPUrDA','3201392Luockj','144LOUcKO','read','11LRrYQP','boolean','global','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','bool','10033128VHAZON','31884HuwuBE','161yjpWTf','list'];a62_0xbaf6=function(){return _0x17c99c;};return a62_0xbaf6();}(function(_0xb7f03f,_0x359e6a){const _0x2b3f47=a62_0x1711,_0x70d607=_0xb7f03f();while(!![]){try{const _0x283b16=-parseInt(_0x2b3f47(0x12d))/0x1+parseInt(_0x2b3f47(0x126))/0x2*(parseInt(_0x2b3f47(0x132))/0x3)+-parseInt(_0x2b3f47(0x131))/0x4*(parseInt(_0x2b3f47(0x129))/0x5)+-parseInt(_0x2b3f47(0x12e))/0x6+-parseInt(_0x2b3f47(0x127))/0x7*(parseInt(_0x2b3f47(0x130))/0x8)+parseInt(_0x2b3f47(0x12a))/0x9*(parseInt(_0x2b3f47(0x12b))/0xa)+parseInt(_0x2b3f47(0x120))/0xb*(parseInt(_0x2b3f47(0x125))/0xc);if(_0x283b16===_0x359e6a)break;else _0x70d607['push'](_0x70d607['shift']());}catch(_0x39c44c){_0x70d607['push'](_0x70d607['shift']());}}}(a62_0xbaf6,0x88283));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a62_0x1711(_0x4697f7,_0x4296fc){_0x4697f7=_0x4697f7-0x120;const _0xbaf6e8=a62_0xbaf6();let _0x1711aa=_0xbaf6e8[_0x4697f7];return _0x1711aa;}async function execute(_0x3de8a9){const _0x3534ca=a62_0x1711,_0x4192a2=_0x3de8a9[_0x3534ca(0x124)](_0x3534ca(0x122))?readScopedConfig(_0x3534ca(0x122)):readConfig();return{'ok':!![],'data':_0x4192a2};}export const configListDefinition={'service':a62_0x2452eb(0x12f),'command':a62_0x2452eb(0x128),'description':a62_0x2452eb(0x12c),'risk':a62_0x2452eb(0x133),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x2452eb(0x122),'type':a62_0x2452eb(0x121),'description':a62_0x2452eb(0x123),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x4c7d4f=a63_0x114a;(function(_0x5dbd80,_0x9d748e){const _0x26722c=a63_0x114a,_0x1cd5db=_0x5dbd80();while(!![]){try{const _0x54ebf0=parseInt(_0x26722c(0x151))/0x1*(parseInt(_0x26722c(0x178))/0x2)+parseInt(_0x26722c(0x175))/0x3+parseInt(_0x26722c(0x16f))/0x4+-parseInt(_0x26722c(0x14f))/0x5*(parseInt(_0x26722c(0x177))/0x6)+-parseInt(_0x26722c(0x159))/0x7+-parseInt(_0x26722c(0x15f))/0x8+parseInt(_0x26722c(0x17c))/0x9;if(_0x54ebf0===_0x9d748e)break;else _0x1cd5db['push'](_0x1cd5db['shift']());}catch(_0x183118){_0x1cd5db['push'](_0x1cd5db['shift']());}}}(a63_0x4159,0xd103a));function a63_0x114a(_0x1468b6,_0x2de734){_0x1468b6=_0x1468b6-0x14e;const _0x4159eb=a63_0x4159();let _0x114a74=_0x4159eb[_0x1468b6];return _0x114a74;}import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';function a63_0x4159(){const _0x44b6f1=['write','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','keys','5722592bcCxsL','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','bool','env','string','str','2859897mdCClz','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','138UniGln','6OdwLzP','Set\x20a\x20config\x20value','key','Usage:\x20','2152944hAqqtu','\x22\x20is\x20not\x20settable.','config','Invalid\x20value\x20for\x20\x22','298715EvRYxF','set','428359OBoFLA','boolean','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Use\x20`','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','apps','validation','appcode','1779442jQiVzv','Global','locale','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Invalid\x20locale\x20value.','includes','11390584jSviYj','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','length','join','`,\x20`','object','Config\x20value','\x22.\x20Allowed:\x20','app','global','Missing\x20value.','\x20appcode\x20set\x20to:\x20','Project'];a63_0x4159=function(){return _0x44b6f1;};return a63_0x4159();}async function execute(_0x260ae6){const _0x39358d=a63_0x114a,_0x2c2279=_0x260ae6['str']('key'),_0x50d514=_0x260ae6[_0x39358d(0x174)]('value');if(!_0x2c2279)throw CliErrors[_0x39358d(0x157)]('Missing\x20key.',_0x39358d(0x17b)+CLI_BIN_NAME+_0x39358d(0x155));if(_0x50d514===undefined||_0x50d514==='')throw CliErrors['validation'](_0x39358d(0x169),_0x39358d(0x17b)+CLI_BIN_NAME+_0x39358d(0x155));let _0x45495a=_0x2c2279,_0x55be38=_0x50d514;if(_0x50d514[_0x39358d(0x161)]>0x1f4)throw CliErrors['validation']('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x2c2279==='riskLevel')throw CliErrors[_0x39358d(0x157)](_0x39358d(0x15c));if(!isTopLevelConfigKey(_0x2c2279))throw CliErrors[_0x39358d(0x157)]('Top-level\x20key\x20\x22'+_0x2c2279+_0x39358d(0x17d),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x2c2279]&&!CONFIG_ENUM_VALUES[_0x2c2279][_0x39358d(0x15e)](_0x50d514))throw CliErrors['validation'](_0x39358d(0x14e)+_0x2c2279+_0x39358d(0x166)+CONFIG_ENUM_VALUES[_0x2c2279][_0x39358d(0x162)](',\x20'));if(_0x2c2279===_0x39358d(0x15b)&&!normalizeLocale(_0x50d514))throw CliErrors[_0x39358d(0x157)](_0x39358d(0x15d),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');DOMAIN_CONFIG_FIELDS[_0x39358d(0x15e)](_0x2c2279)&&(_0x55be38=normalizeDomainOrigin(_0x2c2279,_0x50d514));const _0x5bf14a={'global':_0x260ae6[_0x39358d(0x171)](_0x39358d(0x168))},_0x2c4452=resolveWriteScope(_0x5bf14a),_0x3cce83=readScopedConfig(_0x2c4452);_0x2c2279===_0x39358d(0x167)&&(_0x45495a=_0x39358d(0x158),delete _0x3cce83[_0x39358d(0x167)]);_0x2c2279==='locale'&&(_0x55be38=normalizeLocale(_0x50d514));if(_0x2c2279===_0x39358d(0x172)){_0x55be38=normalizeEnv(_0x50d514);if(!isProduction(_0x55be38)&&!isDaily(_0x55be38))throw CliErrors['validation'](_0x39358d(0x160),_0x39358d(0x153));}if(_0x2c2279==='appcode'){const _0x3593e0=_0x3cce83[_0x39358d(0x156)]&&typeof _0x3cce83['apps']===_0x39358d(0x164)?Object[_0x39358d(0x16e)](_0x3cce83['apps']):[];if(_0x3593e0[_0x39358d(0x161)]>0x0)throw CliErrors[_0x39358d(0x157)](_0x39358d(0x16d),_0x39358d(0x154)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x55be38+_0x39358d(0x163)+CLI_BIN_NAME+_0x39358d(0x170));const _0x55a3d6=buildCanonicalProjectConfig({..._0x3cce83},{'appCodes':[_0x55be38],'env':typeof _0x3cce83['env']===_0x39358d(0x173)?_0x3cce83['env']:undefined});writeScopedConfig(_0x55a3d6,_0x2c4452);const _0x3b7dc4=_0x2c4452===_0x39358d(0x168)?'Global':_0x39358d(0x16b);return{'ok':!![],'message':'✓\x20'+_0x3b7dc4+_0x39358d(0x16a)+_0x55be38+_0x39358d(0x176)};}_0x3cce83[_0x45495a]=_0x55be38,writeScopedConfig(_0x3cce83,_0x2c4452);const _0x43c775=_0x2c4452===_0x39358d(0x168)?_0x39358d(0x15a):_0x39358d(0x16b);return{'ok':!![],'message':'✓\x20'+_0x43c775+'\x20'+_0x45495a+'\x20set\x20to:\x20'+_0x55be38};}export const configSetDefinition={'service':a63_0x4c7d4f(0x17e),'command':a63_0x4c7d4f(0x150),'description':a63_0x4c7d4f(0x179),'risk':a63_0x4c7d4f(0x16c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x4c7d4f(0x17a),'type':a63_0x4c7d4f(0x173),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a63_0x4c7d4f(0x173),'description':a63_0x4c7d4f(0x165),'required':!![]},{'name':a63_0x4c7d4f(0x168),'type':a63_0x4c7d4f(0x152),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x109dd7,_0xa55456){var _0x2e48d0=a64_0x25fd,_0x5c5f16=_0x109dd7();while(!![]){try{var _0x5c2e2f=parseInt(_0x2e48d0(0xc2))/0x1*(parseInt(_0x2e48d0(0xb9))/0x2)+parseInt(_0x2e48d0(0xbc))/0x3+-parseInt(_0x2e48d0(0xc1))/0x4+parseInt(_0x2e48d0(0xb7))/0x5*(parseInt(_0x2e48d0(0xba))/0x6)+-parseInt(_0x2e48d0(0xbf))/0x7*(parseInt(_0x2e48d0(0xc4))/0x8)+-parseInt(_0x2e48d0(0xb5))/0x9+-parseInt(_0x2e48d0(0xbe))/0xa*(parseInt(_0x2e48d0(0xc5))/0xb);if(_0x5c2e2f===_0xa55456)break;else _0x5c5f16['push'](_0x5c5f16['shift']());}catch(_0x2e85ff){_0x5c5f16['push'](_0x5c5f16['shift']());}}}(a64_0x54e8,0xace5b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a64_0x54e8(){var _0x513a5e=['87538LuQvYW','965619akYZfO','validation','10sRFvxE','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','2825362fYCSZo','2713146SBQomo','project','3520524lBHrbN','global','2230uGbpnt','7jnPwjE','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','2582404xwfzUU','1MTvgOK','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2038864lEazIn'];a64_0x54e8=function(){return _0x513a5e;};return a64_0x54e8();}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a64_0x25fd(_0x251dc3,_0x57c8d3){_0x251dc3=_0x251dc3-0xb5;var _0x54e803=a64_0x54e8();var _0x25fdb8=_0x54e803[_0x251dc3];return _0x25fdb8;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0xad7bec){var _0x2a7aec=a64_0x25fd;if(_0xad7bec[_0x2a7aec(0xbd)])return _0x2a7aec(0xbd);if(!isInProject())throw CliErrors[_0x2a7aec(0xb6)](_0x2a7aec(0xc3),_0x2a7aec(0xb8)+CLI_BIN_NAME+_0x2a7aec(0xc0));return _0x2a7aec(0xbb);}export function readScopedConfig(_0x56e8ae){return readConfigFile(resolveWriteConfigPath(_0x56e8ae));}export function writeScopedConfig(_0x320fcf,_0x2c1b2b){writeConfigFile(resolveWriteConfigPath(_0x2c1b2b),_0x320fcf);}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function a65_0x1085(_0x23de39,_0x3d157f){_0x23de39=_0x23de39-0x199;const _0x37bce2=a65_0x37bc();let _0x108529=_0x37bce2[_0x23de39];return _0x108529;}const a65_0x1245c1=a65_0x1085;(function(_0x32333d,_0x16a01e){const _0x4d3d55=a65_0x1085,_0xa9e9dd=_0x32333d();while(!![]){try{const _0x53eafd=parseInt(_0x4d3d55(0x1a9))/0x1+-parseInt(_0x4d3d55(0x1b8))/0x2+-parseInt(_0x4d3d55(0x1fd))/0x3+-parseInt(_0x4d3d55(0x1e4))/0x4+-parseInt(_0x4d3d55(0x1fa))/0x5*(parseInt(_0x4d3d55(0x1ca))/0x6)+-parseInt(_0x4d3d55(0x1dc))/0x7+-parseInt(_0x4d3d55(0x1a1))/0x8*(-parseInt(_0x4d3d55(0x1e5))/0x9);if(_0x53eafd===_0x16a01e)break;else _0xa9e9dd['push'](_0xa9e9dd['shift']());}catch(_0x32de6b){_0xa9e9dd['push'](_0xa9e9dd['shift']());}}}(a65_0x37bc,0x6da3d));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x1245c1(0x1d2),a65_0x1245c1(0x19c)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x1245c1(0x1b2),a65_0x1245c1(0x1aa),'DATETIME','BOOLEAN',a65_0x1245c1(0x201),a65_0x1245c1(0x1c3),a65_0x1245c1(0x1cc),a65_0x1245c1(0x1de),a65_0x1245c1(0x1a7),'UPLOAD']);export function isDatasetBatchDesign(_0x37ec32){const _0x388b8d=a65_0x1245c1;return isObject(_0x37ec32)&&_0x37ec32['kind']===_0x388b8d(0x1f8);}export function validateDatasetBatchDesign(_0x2fe9e2){const _0x29de51=a65_0x1245c1;(!isObject(_0x2fe9e2)||_0x2fe9e2[_0x29de51(0x1ac)]!=='dataset-batch')&&fail(_0x29de51(0x203));_0x2fe9e2[_0x29de51(0x1b7)]!==0x1&&fail(_0x29de51(0x19f));const _0x4713ca=objectArray(_0x2fe9e2[_0x29de51(0x1be)],_0x29de51(0x1be),0x1,0x14),_0x49c105=objectArray(_0x2fe9e2[_0x29de51(0x1b9)],'relations',0x0,0xc8),_0x42ac5f=objectArray(_0x2fe9e2[_0x29de51(0x1bd)],_0x29de51(0x1bd),0x0,0xc8),_0x279ceb=new Set(),_0x1834ea=new Map();for(const [_0x36d238,_0x16ec4d]of _0x4713ca[_0x29de51(0x1e6)]()){const _0x5aa5f3=requiredString(_0x16ec4d[_0x29de51(0x1f1)],_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1e7));!LOCAL_KEY[_0x29de51(0x1d5)](_0x5aa5f3)&&fail(_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1f3)+LOCAL_KEY['source']+'.');_0x279ceb[_0x29de51(0x1d6)](_0x5aa5f3)&&fail(_0x29de51(0x1ee));_0x279ceb[_0x29de51(0x19d)](_0x5aa5f3);!isObject(_0x16ec4d['design'])&&fail(_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1d8));rejectServerDatasetIdentity(_0x16ec4d[_0x29de51(0x1c7)],'datasets['+_0x36d238+'].design');if(!isObject(_0x16ec4d[_0x29de51(0x1c7)][_0x29de51(0x1fb)]))fail(_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1f6));rejectServerDatasetIdentity(_0x16ec4d[_0x29de51(0x1c7)][_0x29de51(0x1fb)],_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1a2)),requiredString(_0x16ec4d[_0x29de51(0x1c7)]['dataset'][_0x29de51(0x1dd)],_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1b1));_0x29de51(0x1b9)in _0x16ec4d['design']&&(!Array[_0x29de51(0x1ab)](_0x16ec4d[_0x29de51(0x1c7)][_0x29de51(0x1b9)])||_0x16ec4d[_0x29de51(0x1c7)][_0x29de51(0x1b9)][_0x29de51(0x19b)]!==0x0)&&fail(_0x29de51(0x1fc)+_0x36d238+'].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.');const _0x6bfbf3=objectArray(_0x16ec4d[_0x29de51(0x1c7)][_0x29de51(0x200)],_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1e1),0x1,0xc8),_0x506870=new Map();for(const [_0x467f3a,_0x5369ca]of _0x6bfbf3[_0x29de51(0x1e6)]()){const _0x59a053=fieldName(_0x5369ca);if(!_0x59a053)fail('datasets['+_0x36d238+_0x29de51(0x1ad)+_0x467f3a+_0x29de51(0x1b0));const _0x5ad4b1=_0x59a053[_0x29de51(0x1f0)]();if(_0x506870[_0x29de51(0x1d6)](_0x5ad4b1))fail('Dataset\x20'+_0x5aa5f3+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0x4fb22d=stringValue(_0x5369ca[_0x29de51(0x1a4)]??_0x5369ca[_0x29de51(0x1d0)])['toUpperCase']();if(!SUPPORTED_FIELD_TYPES[_0x29de51(0x1d6)](_0x4fb22d))fail(_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1ad)+_0x467f3a+_0x29de51(0x19a));_0x506870['set'](_0x5ad4b1,_0x4fb22d),[_0x5369ca[_0x29de51(0x1c5)],_0x5369ca[_0x29de51(0x1fe)],_0x5369ca[_0x29de51(0x1e9)]][_0x29de51(0x1e2)](_0x252f7f=>stringValue(_0x252f7f))&&fail(_0x29de51(0x1fc)+_0x36d238+_0x29de51(0x1ad)+_0x467f3a+']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.');}_0x1834ea[_0x29de51(0x1c6)](_0x5aa5f3,_0x506870);}const _0x57cef1=new Set(),_0x3bc961=new Set();for(const [_0x59317f,_0x4d84c6]of _0x49c105[_0x29de51(0x1e6)]()){const _0x30cd0d=validateRelation(_0x4d84c6,_0x59317f,_0x279ceb,_0x1834ea);if(_0x57cef1[_0x29de51(0x1d6)](_0x30cd0d))fail(_0x29de51(0x1f7));_0x57cef1[_0x29de51(0x19d)](_0x30cd0d);const _0xdc7374=_0x30cd0d[_0x29de51(0x1bf)]('\x00',0x2)['join']('\x00');if(_0x3bc961[_0x29de51(0x1d6)](_0xdc7374))fail(_0x29de51(0x1ce));_0x3bc961[_0x29de51(0x19d)](_0xdc7374);}for(const [_0x344d18,_0x77e4bb]of _0x42ac5f[_0x29de51(0x1e6)]()){requiredString(_0x77e4bb['reason'],'unresolvedRelations['+_0x344d18+_0x29de51(0x205)),validateConfidence(_0x77e4bb[_0x29de51(0x1cb)],_0x29de51(0x1bb)+_0x344d18+'].confidence');}return _0x2fe9e2;}function a65_0x37bc(){const _0x22beec=['toLowerCase','localKey','modelCode','].localKey\x20must\x20match\x20','.reason','fieldCode','].design.dataset\x20must\x20be\x20an\x20object.','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','dataset-batch','string','2580iskAxw','dataset','datasets[','266181zOQiDc','refTableField','expectedLocalKeys','fields','SELECT','datasetCode','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','createdDatasets[].localKey','].reason','\x20objects.','].type\x20is\x20not\x20supported.','length','ONE_TO_ONE','add','\x20non-empty\x20strings.','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','map','32lwEAkc','].design.dataset','\x20references\x20an\x20unknown\x20dataset\x20localKey.','type','name','.toDatasetKey','ADDRESS','\x20connects\x20incompatible\x20field\x20types.','519645LdTOyL','NUMBER','isArray','kind','].design.fields[','get','metrics',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','].design.dataset.datasetName','TEXT','relations[','.confidence','\x20references\x20an\x20unknown\x20field.','\x20must\x20be\x20between\x200\x20and\x201.','schemaVersion','1575730wXrzvn','relations','object','unresolvedRelations[','validation','unresolvedRelations','datasets','split','expectedRelations','createdRelations','toDatasetCode','MULTI_SELECT','.relationType\x20must\x20be\x20\x22lookup\x22.','refTable','set','design','every','.fromDatasetKey','3462NInvmh','confidence','DATE_RANGE','\x20must\x20contain\x20','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','.toField','fieldType','keys','MANY_TO_ONE','.cardinality\x20is\x20not\x20supported.','join','test','has','lookup','].design\x20must\x20be\x20an\x20object.','size','reason','code','870660NmQMFO','datasetName','USER','toDatasetKey','fromField','].design.fields','some','\x20is\x20required.','671152OKIgFO','3140847cgmZxC','entries','].localKey','relationType','refTableLabelField','number','cardinality','createdDatasets','toField','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','fromDatasetKey'];a65_0x37bc=function(){return _0x22beec;};return a65_0x37bc();}export function reconcileBatchResult(_0x4e5b06){const _0x2a6263=a65_0x1245c1;if(!isObject(_0x4e5b06))return null;try{const _0x1ae0d0=stringArray(_0x4e5b06['expectedLocalKeys'],_0x2a6263(0x1ff),0x1,0x14),_0x1fb884=new Set(_0x1ae0d0);if(_0x1fb884[_0x2a6263(0x1d9)]!==_0x1ae0d0[_0x2a6263(0x19b)]||_0x1ae0d0[_0x2a6263(0x1e2)](_0x3378c1=>!LOCAL_KEY[_0x2a6263(0x1d5)](_0x3378c1)))return null;const _0x2d21b4=objectArray(_0x4e5b06['createdDatasets'],_0x2a6263(0x1ec),0x1,0x14),_0x9c901e=new Map(),_0x55caab=new Set();for(const _0x11d4ed of _0x2d21b4){const _0x1d3942=requiredString(_0x11d4ed[_0x2a6263(0x1f1)],_0x2a6263(0x204)),_0x53ee07=requiredString(_0x11d4ed[_0x2a6263(0x1db)]??_0x11d4ed[_0x2a6263(0x202)],'createdDatasets[].code');if(_0x9c901e[_0x2a6263(0x1d6)](_0x1d3942)||_0x55caab[_0x2a6263(0x1d6)](_0x53ee07))return null;_0x9c901e[_0x2a6263(0x1c6)](_0x1d3942,_0x53ee07),_0x55caab[_0x2a6263(0x19d)](_0x53ee07);}if(!sameSet(_0x1fb884,new Set(_0x9c901e[_0x2a6263(0x1d1)]())))return null;const _0x5f0249=objectArray(_0x4e5b06[_0x2a6263(0x1c0)],_0x2a6263(0x1c0),0x0,0xc8),_0x4e9219=objectArray(_0x4e5b06[_0x2a6263(0x1c1)],_0x2a6263(0x1c1),0x0,0xc8),_0x442d8b=relationTupleSet(_0x5f0249,![],_0x9c901e),_0x1a8712=relationTupleSet(_0x4e9219,!![],_0x9c901e);if(!_0x442d8b||!_0x1a8712||!sameSet(_0x442d8b,_0x1a8712))return null;const _0x117d14=objectArray(_0x4e5b06[_0x2a6263(0x1bd)],_0x2a6263(0x1bd),0x0,0xc8);return{'expectedLocalKeys':_0x1ae0d0,'expectedRelations':_0x5f0249,'createdDatasets':_0x2d21b4,'createdRelations':_0x4e9219,'unresolvedRelations':_0x117d14,...isObject(_0x4e5b06[_0x2a6263(0x1af)])?{'metrics':_0x4e5b06[_0x2a6263(0x1af)]}:{}};}catch{return null;}}function validateRelation(_0x444632,_0x2e40d5,_0x259ad0,_0x45efef){const _0x458588=a65_0x1245c1,_0x12d7a=_0x458588(0x1b3)+_0x2e40d5+']',_0x13218c=requiredString(_0x444632[_0x458588(0x1ef)],_0x12d7a+_0x458588(0x1c9)),_0x25742f=requiredString(_0x444632[_0x458588(0x1df)],_0x12d7a+_0x458588(0x1a6)),_0x83fd40=requiredString(_0x444632[_0x458588(0x1e0)],_0x12d7a+'.fromField')[_0x458588(0x1f0)](),_0x3391d4=requiredString(_0x444632[_0x458588(0x1ed)],_0x12d7a+_0x458588(0x1cf))[_0x458588(0x1f0)]();if(!_0x259ad0[_0x458588(0x1d6)](_0x13218c)||!_0x259ad0['has'](_0x25742f))fail(_0x12d7a+_0x458588(0x1a3));const _0x14ce35=_0x45efef['get'](_0x13218c)?.[_0x458588(0x1ae)](_0x83fd40),_0xf5737b=_0x45efef[_0x458588(0x1ae)](_0x25742f)?.['get'](_0x3391d4);if(_0x14ce35===undefined||_0xf5737b===undefined)fail(_0x12d7a+_0x458588(0x1b5));if(_0x14ce35&&_0xf5737b&&_0x14ce35!==_0xf5737b)fail(_0x12d7a+_0x458588(0x1a8));const _0x211e0f=stringValue(_0x444632[_0x458588(0x1e8)])||_0x458588(0x1d7);if(_0x211e0f!==_0x458588(0x1d7))fail(_0x12d7a+_0x458588(0x1c4));const _0x1603f4=stringValue(_0x444632['cardinality'])||_0x458588(0x1d2);if(!SUPPORTED_CARDINALITIES['has'](_0x1603f4))fail(_0x12d7a+_0x458588(0x1d3));return requiredString(_0x444632[_0x458588(0x1da)],_0x12d7a+_0x458588(0x1f4)),validateConfidence(_0x444632[_0x458588(0x1cb)],_0x12d7a+_0x458588(0x1b4)),tuple(_0x13218c,_0x83fd40,_0x25742f,_0x3391d4,_0x458588(0x1d7),_0x1603f4);}function relationTupleSet(_0x3ec8d2,_0x45c9d8,_0x2e5d65){const _0x459690=a65_0x1245c1,_0x22cf77=new Set();for(const _0x2c8af8 of _0x3ec8d2){const _0x2de418=stringValue(_0x2c8af8[_0x459690(0x1ef)]),_0x25d062=stringValue(_0x2c8af8[_0x459690(0x1df)]),_0x206611=stringValue(_0x2c8af8['fromField'])[_0x459690(0x1f0)](),_0x5a4d80=stringValue(_0x2c8af8[_0x459690(0x1ed)])[_0x459690(0x1f0)](),_0xb87c64=stringValue(_0x2c8af8[_0x459690(0x1e8)]),_0xc54aa7=stringValue(_0x2c8af8[_0x459690(0x1eb)]);if(!_0x2de418||!_0x25d062||!_0x206611||!_0x5a4d80||_0xb87c64!==_0x459690(0x1d7)||!SUPPORTED_CARDINALITIES[_0x459690(0x1d6)](_0xc54aa7))return null;if(!_0x2e5d65[_0x459690(0x1d6)](_0x2de418)||!_0x2e5d65[_0x459690(0x1d6)](_0x25d062))return null;if(_0x45c9d8&&(stringValue(_0x2c8af8['fromDatasetCode'])!==_0x2e5d65[_0x459690(0x1ae)](_0x2de418)||stringValue(_0x2c8af8[_0x459690(0x1c2)])!==_0x2e5d65['get'](_0x25d062)))return null;const _0x2ba9ec=tuple(_0x2de418,_0x206611,_0x25d062,_0x5a4d80,_0xb87c64,_0xc54aa7);if(_0x22cf77['has'](_0x2ba9ec))return null;_0x22cf77[_0x459690(0x19d)](_0x2ba9ec);}return _0x22cf77;}function rejectServerDatasetIdentity(_0x44fdae,_0x4197d2){const _0x34a7cf=a65_0x1245c1;for(const _0x140dcb of['id','datasetId','modelId',_0x34a7cf(0x1db),_0x34a7cf(0x202),_0x34a7cf(0x1f2)]){if(_0x44fdae[_0x140dcb]!==undefined&&_0x44fdae[_0x140dcb]!==null&&_0x44fdae[_0x140dcb]!=='')fail(_0x4197d2+'.'+_0x140dcb+'\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.');}}function objectArray(_0x5f58bd,_0x1d00c2,_0x5b6b69,_0x325b11){const _0x1627c7=a65_0x1245c1;return(!Array[_0x1627c7(0x1ab)](_0x5f58bd)||_0x5f58bd[_0x1627c7(0x19b)]<_0x5b6b69||_0x5f58bd[_0x1627c7(0x19b)]>_0x325b11||_0x5f58bd[_0x1627c7(0x1e2)](_0x6fa87e=>!isObject(_0x6fa87e)))&&fail(_0x1d00c2+_0x1627c7(0x1cd)+_0x5b6b69+'..'+_0x325b11+_0x1627c7(0x199)),_0x5f58bd;}function stringArray(_0x5cd9a9,_0x19a6e0,_0x35fe1b,_0x14f496){const _0x95ef1e=a65_0x1245c1;return(!Array[_0x95ef1e(0x1ab)](_0x5cd9a9)||_0x5cd9a9['length']<_0x35fe1b||_0x5cd9a9['length']>_0x14f496||_0x5cd9a9[_0x95ef1e(0x1e2)](_0x5ac804=>typeof _0x5ac804!=='string'||!_0x5ac804['trim']()))&&fail(_0x19a6e0+_0x95ef1e(0x1cd)+_0x35fe1b+'..'+_0x14f496+_0x95ef1e(0x19e)),_0x5cd9a9;}function requiredString(_0x18de26,_0x5c6553){const _0x1386bc=a65_0x1245c1,_0x59d025=stringValue(_0x18de26);if(!_0x59d025)fail(_0x5c6553+_0x1386bc(0x1e3));return _0x59d025;}function stringValue(_0x387de2){const _0x1019bd=a65_0x1245c1;return typeof _0x387de2===_0x1019bd(0x1f9)?_0x387de2['trim']():'';}function fieldName(_0x8dcbf2){const _0x5907aa=a65_0x1245c1;return stringValue(_0x8dcbf2['code']??_0x8dcbf2[_0x5907aa(0x1f5)]??_0x8dcbf2[_0x5907aa(0x1a5)]??_0x8dcbf2['fieldName']);}function validateConfidence(_0x9f54be,_0x39993d){const _0x3d33f7=a65_0x1245c1;_0x9f54be!==undefined&&_0x9f54be!==null&&(typeof _0x9f54be!==_0x3d33f7(0x1ea)||!Number['isFinite'](_0x9f54be)||_0x9f54be<0x0||_0x9f54be>0x1)&&fail(_0x39993d+_0x3d33f7(0x1b6));}function tuple(..._0xcadf37){const _0x284a7f=a65_0x1245c1;return _0xcadf37[_0x284a7f(0x1a0)]((_0x190d1a,_0xe53ebb)=>_0xe53ebb===0x1||_0xe53ebb===0x3?_0x190d1a[_0x284a7f(0x1f0)]():_0x190d1a)[_0x284a7f(0x1d4)]('\x00');}function sameSet(_0x1b2220,_0x54fafa){const _0x36f244=a65_0x1245c1;return _0x1b2220['size']===_0x54fafa[_0x36f244(0x1d9)]&&[..._0x1b2220][_0x36f244(0x1c8)](_0x276bea=>_0x54fafa[_0x36f244(0x1d6)](_0x276bea));}function isObject(_0x160686){const _0x1e2312=a65_0x1245c1;return typeof _0x160686===_0x1e2312(0x1ba)&&_0x160686!==null&&!Array['isArray'](_0x160686);}function fail(_0x238cc9){const _0x4da65a=a65_0x1245c1;throw CliErrors[_0x4da65a(0x1bc)](_0x238cc9);}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a66_0x4ce35d=a66_0x4189;(function(_0x335915,_0x20f3ae){const _0x1c95a2=a66_0x4189,_0x188305=_0x335915();while(!![]){try{const _0x26c340=-parseInt(_0x1c95a2(0x15b))/0x1*(parseInt(_0x1c95a2(0x15e))/0x2)+-parseInt(_0x1c95a2(0x13c))/0x3*(parseInt(_0x1c95a2(0x13e))/0x4)+parseInt(_0x1c95a2(0x165))/0x5*(parseInt(_0x1c95a2(0x144))/0x6)+-parseInt(_0x1c95a2(0x15f))/0x7*(-parseInt(_0x1c95a2(0x154))/0x8)+parseInt(_0x1c95a2(0x140))/0x9*(-parseInt(_0x1c95a2(0x12f))/0xa)+parseInt(_0x1c95a2(0x148))/0xb*(parseInt(_0x1c95a2(0x172))/0xc)+parseInt(_0x1c95a2(0x153))/0xd;if(_0x26c340===_0x20f3ae)break;else _0x188305['push'](_0x188305['shift']());}catch(_0x535c42){_0x188305['push'](_0x188305['shift']());}}}(a66_0x1442,0x46b1a));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_0x4ce35d(0x13d),METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP=a66_0x4ce35d(0x13a);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x376d44,input:_0x45d6a0,dryRun:_0x42ef7e}){const _0x5d4e88=a66_0x4ce35d;validateInput(_0x45d6a0);const _0x42d6f3=normalizeBusinessGroupArgument(_0x45d6a0[_0x5d4e88(0x15d)]),_0x5742b4=await getDatasetDetail(_0x45d6a0[_0x5d4e88(0x129)]),_0x35281a=resolveBusinessGroupDataset(_0x5742b4,_0x45d6a0[_0x5d4e88(0x129)]);assertBusinessGroupUpdateSupported(_0x35281a,_0x42d6f3);const _0x2f6bed=loadCurrentBusinessGroup(_0x5742b4,_0x35281a);assertExpectedBusinessGroup(_0x2f6bed,_0x45d6a0[_0x5d4e88(0x134)]);const _0x5ce94a=buildBackendPlan(_0x376d44,_0x35281a,_0x42d6f3),_0x6a375d=_0x2f6bed!==_0x42d6f3;let _0x160dad;if(_0x6a375d&&!_0x42ef7e){_0x5ce94a[_0x5d4e88(0x137)]===_0x5d4e88(0x155)?await updateDbTableBusinessGroup(_0x5ce94a[_0x5d4e88(0x128)]):await updateErBusinessGroup(_0x5ce94a[_0x5d4e88(0x128)]);const _0x11d65b=await getDatasetDetail(_0x35281a['code']),_0xbc330=resolveBusinessGroupDataset(_0x11d65b,_0x35281a[_0x5d4e88(0x129)]),_0x35f452=loadCurrentBusinessGroup(_0x11d65b,_0xbc330);if(_0x35f452!==_0x42d6f3)throw CliErrors['apiError']('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x5d4e88(0x16f)+JSON['stringify'](displayBusinessGroup(_0x42d6f3))+_0x5d4e88(0x13f)+JSON['stringify'](displayBusinessGroup(_0x35f452))+'.');_0x160dad={'verified':!![],'status':_0x5d4e88(0x139),'afterReadback':{'businessGroup':displayBusinessGroup(_0x35f452)}};}else!_0x6a375d&&(_0x160dad={'verified':!![],'status':_0x5d4e88(0x16b),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2f6bed)}});const _0x1e5248={'operation':'update','appCode':_0x376d44,'selector':{'code':_0x35281a[_0x5d4e88(0x129)]},'dataset':{'id':_0x35281a['id'],'code':_0x35281a[_0x5d4e88(0x129)],'name':_0x35281a['name'],'sourceType':_0x35281a[_0x5d4e88(0x12c)]},'before':{'businessGroup':displayBusinessGroup(_0x2f6bed)},'after':{'businessGroup':displayBusinessGroup(_0x42d6f3)},'changed':_0x6a375d,'dryRun':_0x42ef7e,'submitted':_0x6a375d&&!_0x42ef7e,'backend':{'method':_0x5ce94a['method'],'path':_0x5ce94a[_0x5d4e88(0x127)],'payload':_0x5ce94a[_0x5d4e88(0x128)]},..._0x160dad?{'verification':_0x160dad}:{},'warnings':[]};return{'ok':!![],'data':_0x1e5248,'message':_0x6a375d?_0x42ef7e?_0x5d4e88(0x171)+_0x35281a[_0x5d4e88(0x129)]:_0x5d4e88(0x15a)+_0x35281a[_0x5d4e88(0x129)]:_0x5d4e88(0x136)+_0x35281a['code']};}export const datasetBusinessGroupUpdate={'service':a66_0x4ce35d(0x132),'command':a66_0x4ce35d(0x14a),'description':a66_0x4ce35d(0x135),'risk':a66_0x4ce35d(0x170),'flags':[CODE_FLAG,{'name':a66_0x4ce35d(0x157),'type':a66_0x4ce35d(0x126),'required':!![],'description':a66_0x4ce35d(0x14b)},{'name':'expect-business-group','type':'string','required':![],'description':a66_0x4ce35d(0x145)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x484492){validateInput(readBusinessGroupUpdateInput(_0x484492));},async 'dryRun'(_0x104c5e){const _0x405dd4=a66_0x4ce35d,_0x50892d=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x104c5e['appCode'],'input':readBusinessGroupUpdateInput(_0x104c5e),'dryRun':!![]});return{'method':_0x50892d['data'][_0x405dd4(0x12b)][_0x405dd4(0x156)],'url':_0x50892d['data'][_0x405dd4(0x12b)][_0x405dd4(0x127)],'body':_0x50892d[_0x405dd4(0x13b)][_0x405dd4(0x12b)][_0x405dd4(0x128)],'description':_0x50892d[_0x405dd4(0x167)],..._0x50892d[_0x405dd4(0x13b)]};},async 'execute'(_0x4cfc17){const _0x221d1d=a66_0x4ce35d;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4cfc17[_0x221d1d(0x166)],'input':readBusinessGroupUpdateInput(_0x4cfc17),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x257af0){const _0x5cfb8a=a66_0x4ce35d,_0x205219=_0x257af0[_0x5cfb8a(0x163)](_0x5cfb8a(0x16d));return{'code':trim(_0x257af0[_0x5cfb8a(0x163)](_0x5cfb8a(0x129))),'businessGroup':_0x257af0['str']('business-group'),'expectBusinessGroup':_0x205219===undefined||_0x205219===''?undefined:_0x205219};}function validateInput(_0x4fc49b){const _0x1bf82b=a66_0x4ce35d;if(!trim(_0x4fc49b['code']))throw CliErrors[_0x1bf82b(0x16e)]('--code\x20is\x20required');if(_0x4fc49b[_0x1bf82b(0x15d)]===undefined)throw CliErrors[_0x1bf82b(0x16e)](_0x1bf82b(0x149));if(!trim(_0x4fc49b[_0x1bf82b(0x15d)]))throw CliErrors[_0x1bf82b(0x16e)](_0x1bf82b(0x14d));}function assertBusinessGroupUpdateSupported(_0x36fc9e,_0x1b86c8){const _0x3d24d3=a66_0x4ce35d;if(_0x36fc9e[_0x3d24d3(0x12c)]===_0x3d24d3(0x162)&&!_0x1b86c8)throw CliErrors[_0x3d24d3(0x16e)](_0x3d24d3(0x152));}function a66_0x4189(_0x3849fe,_0x32a1f0){_0x3849fe=_0x3849fe-0x125;const _0x144241=a66_0x1442();let _0x41892d=_0x144241[_0x3849fe];return _0x41892d;}function resolveBusinessGroupDataset(_0x31b463,_0xb014d1){const _0x208d81=a66_0x4ce35d,_0x2d0dcc=asPlainObject(_0x31b463[_0x208d81(0x132)]),_0x451904=asPlainObject(_0x31b463[_0x208d81(0x133)]),_0x157bff=resolveSourceType(_0x31b463,_0x2d0dcc,_0x451904),_0x2d1db3=firstString(_0x31b463['modelCode'],_0x31b463[_0x208d81(0x129)],_0x2d0dcc[_0x208d81(0x143)],_0xb014d1)||_0xb014d1;return{'id':firstNumber(_0x31b463[_0x208d81(0x138)],_0x31b463['id'],_0x2d0dcc['datasetId'])??firstString(_0x31b463['modelId'],_0x31b463['id'],_0x2d0dcc[_0x208d81(0x173)])??null,'code':_0x2d1db3,'name':firstString(_0x31b463[_0x208d81(0x14f)],_0x2d0dcc['datasetName'],_0x2d0dcc['name'])||null,'sourceType':_0x157bff,'dbTableSelector':_0x157bff===_0x208d81(0x162)?{'dbLinkId':firstNumber(_0x451904[_0x208d81(0x169)]),'tableName':firstString(_0x451904[_0x208d81(0x161)])||null}:null};}function resolveSourceType(_0x2c316e,_0x488fd1,_0x2021b1){const _0x44b154=a66_0x4ce35d,_0x53ca0c=firstString(_0x2c316e[_0x44b154(0x146)],_0x2c316e[_0x44b154(0x12c)],_0x488fd1['source'],_0x488fd1['sourceType'])?.[_0x44b154(0x160)]()[_0x44b154(0x142)]();if(_0x53ca0c===_0x44b154(0x162)||_0x53ca0c===_0x44b154(0x151))return _0x53ca0c;if(Object[_0x44b154(0x12a)](_0x2021b1)[_0x44b154(0x147)]>0x0)return _0x44b154(0x162);throw CliErrors[_0x44b154(0x16e)](_0x44b154(0x158));}function a66_0x1442(){const _0x40ba61=['string','path','payload','code','keys','backend','sourceType','extend','dbLinkId','20QQjnNG','isArray','call','dataset','dbtableConfig','expectBusinessGroup','Update\x20business\x20scenario\x20group','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','kind','modelId','matched','ungrouped','data','1728897uiXyNm','/smartapi/dblink/updateTableBusinessGroup','4NXzGUI',',\x20actual\x20','490977YcazSc','stringify','toUpperCase','datasetCode','171372yPbWtn','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','source','length','6611DivdaE','--business-group\x20is\x20required','business-group-update','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','dbTableSelector','--business-group\x20must\x20not\x20be\x20blank','prototype','name','isFinite','METADATA','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','3376087ScNWxK','95200rKnUXv','db-table','method','business-group','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','POST','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','1IcQfqJ','value','businessGroup','940926OTvUyn','273ExJeOH','trim','tableName','DB_TABLE','str','found','45iGreRw','appCode','message','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','dbId','metadata','unchanged','object','expect-business-group','validation','Expected\x20','write','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','9276gOaPOF','datasetId','Expectation\x20mismatch\x20at\x20businessGroup','hasOwnProperty'];a66_0x1442=function(){return _0x40ba61;};return a66_0x1442();}function loadCurrentBusinessGroup(_0x568aa7,_0x8ce6d6){const _0x625b20=a66_0x4ce35d,_0x47faf5=readBusinessGroupFromDatasetDetail(_0x568aa7,_0x8ce6d6[_0x625b20(0x12c)]);if(_0x47faf5[_0x625b20(0x164)])return normalizeBusinessGroup(_0x47faf5[_0x625b20(0x15c)]);return'';}function readBusinessGroupFromDatasetDetail(_0x4b06ed,_0x502609){const _0x32aa1b=a66_0x4ce35d,_0x14bd2f=asPlainObject(_0x4b06ed[_0x32aa1b(0x132)]),_0x585829=firstPresent(_0x4b06ed['businessGroup']);if(_0x585829['found'])return _0x585829;const _0x5f3a29=firstPresent(_0x14bd2f[_0x32aa1b(0x15d)]);if(_0x5f3a29['found'])return _0x5f3a29;if(_0x502609==='DB_TABLE')return{'found':![]};const _0xf7f6ab=readBusinessGroupFromExtend(_0x4b06ed['extend']);if(_0xf7f6ab['found'])return _0xf7f6ab;return readBusinessGroupFromExtend(_0x14bd2f[_0x32aa1b(0x12d)]);}function readBusinessGroupFromExtend(_0x10673a){const _0x3dc9ae=a66_0x4ce35d;if(_0x10673a===undefined||_0x10673a===null||_0x10673a==='')return{'found':![]};if(typeof _0x10673a===_0x3dc9ae(0x126))try{const _0x5552fd=JSON['parse'](_0x10673a);return readBusinessGroupFromExtend(_0x5552fd);}catch{return{'found':![]};}const _0x5a02b5=asPlainObject(_0x10673a);if(Object[_0x3dc9ae(0x14e)][_0x3dc9ae(0x125)][_0x3dc9ae(0x131)](_0x5a02b5,_0x3dc9ae(0x15d)))return{'found':!![],'value':_0x5a02b5[_0x3dc9ae(0x15d)]};return{'found':![]};}function firstPresent(..._0x226c9d){for(const _0x58c391 of _0x226c9d){if(_0x58c391!==undefined&&_0x58c391!==null)return{'found':!![],'value':_0x58c391};}return{'found':![]};}function assertExpectedBusinessGroup(_0xf44ab4,_0x3e075c){const _0x817d02=a66_0x4ce35d;if(_0x3e075c===undefined)return;const _0x2760d0=normalizeBusinessGroupArgument(_0x3e075c);if(_0xf44ab4!==_0x2760d0)throw CliErrors[_0x817d02(0x16e)](_0x817d02(0x174),_0x817d02(0x16f)+JSON[_0x817d02(0x141)](_0x2760d0)+',\x20actual\x20'+JSON[_0x817d02(0x141)](_0xf44ab4));}function buildBackendPlan(_0x435407,_0x34f332,_0x43882d){const _0x45a817=a66_0x4ce35d;if(_0x34f332['sourceType']===_0x45a817(0x162)){if(!_0x34f332['dbTableSelector']||_0x34f332[_0x45a817(0x14c)][_0x45a817(0x12e)]===null||!_0x34f332['dbTableSelector'][_0x45a817(0x161)])throw CliErrors[_0x45a817(0x16e)]('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x45a817(0x168));return{'kind':'db-table','method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x34f332[_0x45a817(0x14c)][_0x45a817(0x12e)],'tableName':_0x34f332[_0x45a817(0x14c)][_0x45a817(0x161)],'businessGroup':_0x43882d}};}return{'kind':_0x45a817(0x16a),'method':_0x45a817(0x159),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x435407,'datasetCode':_0x34f332[_0x45a817(0x129)],'businessGroup':_0x43882d}};}function normalizeBusinessGroup(_0x5a5491){if(_0x5a5491===undefined||_0x5a5491===null)return'';return String(_0x5a5491)['trim']();}function normalizeBusinessGroupArgument(_0x27710b){const _0x2864f3=normalizeBusinessGroup(_0x27710b);return _0x2864f3===UNGROUPED_BUSINESS_GROUP?'':_0x2864f3;}function displayBusinessGroup(_0x256c7d){return _0x256c7d||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x37f58c){const _0x26551b=a66_0x4ce35d;if(!_0x37f58c||typeof _0x37f58c!==_0x26551b(0x16c)||Array[_0x26551b(0x130)](_0x37f58c))return{};return _0x37f58c;}function firstString(..._0x3cf6ce){const _0x2f11cf=a66_0x4ce35d;for(const _0x3405a1 of _0x3cf6ce){if(typeof _0x3405a1==='string'&&_0x3405a1[_0x2f11cf(0x160)]())return _0x3405a1[_0x2f11cf(0x160)]();if(typeof _0x3405a1==='number'&&Number[_0x2f11cf(0x150)](_0x3405a1))return String(_0x3405a1);}return undefined;}function firstNumber(..._0x4dc0d9){const _0xc56664=a66_0x4ce35d;for(const _0x21617a of _0x4dc0d9){if(typeof _0x21617a==='number'&&Number['isFinite'](_0x21617a))return _0x21617a;if(typeof _0x21617a===_0xc56664(0x126)&&_0x21617a[_0xc56664(0x160)]()&&Number['isFinite'](Number(_0x21617a)))return Number(_0x21617a);}return null;}function trim(_0x40a114){const _0x43146e=a66_0x4ce35d;return String(_0x40a114||'')[_0x43146e(0x160)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a67_0x5c3e(){const _0x3070ef=['2785383TpJvqu','business-groups','businessGroup','DB_TABLE','8592TrxEZR','\x20business\x20group(s)\x20for\x20database\x20connection\x20','5658570WehuAj','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','7pJtQjw','23162370pArMyA','4FIlqIL','trim','Found\x20','length','dataset','8511654ADecvx','3875752wlWVcm','read','appCode','2202261vqCdsa','270DImXJt','dbid'];a67_0x5c3e=function(){return _0x3070ef;};return a67_0x5c3e();}const a67_0x36719a=a67_0x100e;(function(_0x308363,_0x843123){const _0x3a1ea2=a67_0x100e,_0x549a76=_0x308363();while(!![]){try{const _0x4924a2=-parseInt(_0x3a1ea2(0x12f))/0x1*(parseInt(_0x3a1ea2(0x129))/0x2)+-parseInt(_0x3a1ea2(0x128))/0x3+-parseInt(_0x3a1ea2(0x135))/0x4*(parseInt(_0x3a1ea2(0x131))/0x5)+parseInt(_0x3a1ea2(0x124))/0x6+parseInt(_0x3a1ea2(0x133))/0x7*(parseInt(_0x3a1ea2(0x125))/0x8)+-parseInt(_0x3a1ea2(0x12b))/0x9+parseInt(_0x3a1ea2(0x134))/0xa;if(_0x4924a2===_0x843123)break;else _0x549a76['push'](_0x549a76['shift']());}catch(_0x63a03){_0x549a76['push'](_0x549a76['shift']());}}}(a67_0x5c3e,0xd7d8b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x100e(_0x5a2eca,_0x41eac1){_0x5a2eca=_0x5a2eca-0x123;const _0x5c3e44=a67_0x5c3e();let _0x100e9c=_0x5c3e44[_0x5a2eca];return _0x100e9c;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x36719a(0x123),'command':a67_0x36719a(0x12c),'description':a67_0x36719a(0x132),'risk':a67_0x36719a(0x126),'flags':[{'name':a67_0x36719a(0x12a),'type':'number','required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x40c0c9){const _0x58c1bb=a67_0x36719a,_0x573366=_0x40c0c9['num']('dbid'),_0x518f49=await getErBusinessGroupSummary(_0x40c0c9[_0x58c1bb(0x127)],_0x573366),_0x4a0114=_0x518f49['groups']['map'](_0x52865e=>({..._0x52865e,'businessGroup':_0x52865e[_0x58c1bb(0x12d)][_0x58c1bb(0x136)]()||'ungrouped'}));return{'ok':!![],'data':{..._0x518f49,'groups':_0x4a0114,'scope':_0x58c1bb(0x12e)},'message':_0x58c1bb(0x137)+_0x4a0114[_0x58c1bb(0x138)]+_0x58c1bb(0x130)+_0x573366};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x53846a=a68_0x8de7;(function(_0x2d62db,_0x3656c8){const _0x4d93b7=a68_0x8de7,_0x4c182a=_0x2d62db();while(!![]){try{const _0x3f7ed3=parseInt(_0x4d93b7(0x1a8))/0x1+-parseInt(_0x4d93b7(0x19f))/0x2+parseInt(_0x4d93b7(0x1a4))/0x3+-parseInt(_0x4d93b7(0x1b4))/0x4*(-parseInt(_0x4d93b7(0x1ae))/0x5)+-parseInt(_0x4d93b7(0x191))/0x6*(-parseInt(_0x4d93b7(0x1b1))/0x7)+parseInt(_0x4d93b7(0x1ad))/0x8+parseInt(_0x4d93b7(0x1af))/0x9*(-parseInt(_0x4d93b7(0x1aa))/0xa);if(_0x3f7ed3===_0x3656c8)break;else _0x4c182a['push'](_0x4c182a['shift']());}catch(_0x4b0e26){_0x4c182a['push'](_0x4c182a['shift']());}}}(a68_0x4539,0xd11cf));function a68_0x4539(){const _0x47e52b=['name','The\x20current\x20dataset\x20\x22','UNKNOWN','\x20is\x20','length','validation','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','dbId','sourceType','1036868liTsQy','join','METADATA','toUpperCase','source','1737288XaGAYI','dbtableConfig','unknown','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','1518889cEATcI','getOne','2360730SYpTqA','tableName','SQL\x20schema\x20validation','2099344IYhqNe','7920625xEmEBp','153QRpyLZ','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','5052859DGbYFx','dataset','datasetName','4uXcUWM','trim','12DVrsXn','filter','code','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','object'];a68_0x4539=function(){return _0x47e52b;};return a68_0x4539();}import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x53846a(0x194),'getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x53846a(0x1b0);function valueToString(_0x5df920){const _0x432752=a68_0x53846a;return _0x5df920==null?'':String(_0x5df920)[_0x432752(0x190)]();}function a68_0x8de7(_0x1a7a50,_0x19032d){_0x1a7a50=_0x1a7a50-0x190;const _0x45395f=a68_0x4539();let _0x8de7dd=_0x45395f[_0x1a7a50];return _0x8de7dd;}function getDatasetCode(_0x3be96a){const _0x426ad3=a68_0x53846a;return valueToString(_0x3be96a[_0x426ad3(0x193)]??_0x3be96a['modelCode']??_0x3be96a['dataset']?.['datasetCode']);}function getDatasetName(_0x3b6336){const _0xd789bb=a68_0x53846a;return valueToString(_0x3b6336[_0xd789bb(0x196)]??_0x3b6336[_0xd789bb(0x1b2)]?.[_0xd789bb(0x1b3)])||_0xd789bb(0x1a6);}function getDatasetSource(_0x47a37a){const _0x5875ca=a68_0x53846a;return valueToString(_0x47a37a[_0x5875ca(0x1a3)]??_0x47a37a[_0x5875ca(0x1b2)]?.[_0x5875ca(0x19e)])[_0x5875ca(0x1a2)]();}function getDbtableConfig(_0x45cb74){const _0x4b70b6=a68_0x53846a,_0x3330c7=_0x45cb74[_0x4b70b6(0x1a5)]??_0x45cb74['dbtable'];return _0x3330c7&&typeof _0x3330c7===_0x4b70b6(0x195)?_0x3330c7:{};}export function isDbTableBackedDataset(_0x577f22){const _0x44dbd3=a68_0x53846a,_0x1eec83=getDatasetSource(_0x577f22);if(_0x1eec83===_0x44dbd3(0x1a1))return![];const _0x524a81=getDbtableConfig(_0x577f22),_0x15a52e=_0x524a81[_0x44dbd3(0x19d)]??_0x524a81['id'],_0x4cd53b=valueToString(_0x524a81['tableName']??_0x577f22[_0x44dbd3(0x1ab)]??_0x577f22[_0x44dbd3(0x1b2)]?.[_0x44dbd3(0x1ab)]);return _0x15a52e!==undefined&&_0x15a52e!==null&&_0x4cd53b[_0x44dbd3(0x19a)]>0x0;}export function filterDbTableBackedDatasets(_0x1e5b21){return _0x1e5b21['filter'](_0x4aabfb=>isDbTableBackedDataset(_0x4aabfb));}export function buildDbTableBackedRequirementMessage(_0x4945a9,_0x2a7a26=a68_0x53846a(0x1ac)){const _0x358443=a68_0x53846a,_0x1c01bc=getDatasetSource(_0x4945a9)||_0x358443(0x198),_0x354a5c=getDatasetName(_0x4945a9),_0x35802a=getDatasetCode(_0x4945a9),_0x7ebe=_0x35802a?'\x20('+_0x35802a+')':'';return[_0x358443(0x197)+_0x354a5c+'\x22'+_0x7ebe+_0x358443(0x199)+_0x1c01bc+_0x358443(0x1a7)+_0x2a7a26+'.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x358443(0x19c)+RUNTIME_DATA_ACCESS_COMMANDS[_0x358443(0x192)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x358443(0x1a9)]+'.'][_0x358443(0x1a0)]('\x20');}export function assertDatasetIsDbTableBacked(_0x48b8b7,_0x16888f){const _0x18e7fe=a68_0x53846a;if(!isDbTableBackedDataset(_0x48b8b7))throw CliErrors[_0x18e7fe(0x19b)](buildDbTableBackedRequirementMessage(_0x48b8b7,_0x16888f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x30fe07=a69_0x354e;function a69_0xfbaa(){const _0x1015c2=['cross-relation-create','3635346dWtQIc','306482xVGMOz','188hzCIcz','14796PRJLkf','1420UIDzET','9Eaaqdy','400540zlvmQx','13OPsgiK','write','7UVKhJg','58385flqpMJ','3040LCihDT','31042KACfDX','create','22988928kUwjrd'];a69_0xfbaa=function(){return _0x1015c2;};return a69_0xfbaa();}(function(_0x29597e,_0x512e5b){const _0x3ea859=a69_0x354e,_0x50d0ef=_0x29597e();while(!![]){try{const _0x1c4537=-parseInt(_0x3ea859(0xbd))/0x1+-parseInt(_0x3ea859(0xc8))/0x2*(-parseInt(_0x3ea859(0xbc))/0x3)+parseInt(_0x3ea859(0xc9))/0x4*(parseInt(_0x3ea859(0xc1))/0x5)+parseInt(_0x3ea859(0xc7))/0x6*(parseInt(_0x3ea859(0xc0))/0x7)+parseInt(_0x3ea859(0xc2))/0x8*(parseInt(_0x3ea859(0xba))/0x9)+parseInt(_0x3ea859(0xbb))/0xa*(parseInt(_0x3ea859(0xc3))/0xb)+parseInt(_0x3ea859(0xc5))/0xc*(-parseInt(_0x3ea859(0xbe))/0xd);if(_0x1c4537===_0x512e5b)break;else _0x50d0ef['push'](_0x50d0ef['shift']());}catch(_0x5264af){_0x50d0ef['push'](_0x50d0ef['shift']());}}}(a69_0xfbaa,0x4f009));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';function a69_0x354e(_0x5d6d3d,_0x1e461d){_0x5d6d3d=_0x5d6d3d-0xba;const _0xfbaac1=a69_0xfbaa();let _0x354e30=_0xfbaac1[_0x5d6d3d];return _0x354e30;}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':'dataset','command':a69_0x30fe07(0xc6),'description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':a69_0x30fe07(0xbf),'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 _0x5c9588=>validateCrossRelation(_0x5c9588,a69_0x30fe07(0xc4)),'dryRun':_0x18a96f=>previewCrossRelation(_0x18a96f,a69_0x30fe07(0xc4)),'execute':_0x51a7f9=>executeCrossRelation(_0x51a7f9,'create',createCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x8e6b(_0xac44ee,_0x36d72d){_0xac44ee=_0xac44ee-0x173;const _0x4f0036=a70_0x4f00();let _0x8e6bc2=_0x4f0036[_0xac44ee];return _0x8e6bc2;}const a70_0x35416f=a70_0x8e6b;(function(_0x1dfb81,_0x274dc4){const _0x26c609=a70_0x8e6b,_0x130f07=_0x1dfb81();while(!![]){try{const _0x9737c4=-parseInt(_0x26c609(0x178))/0x1+-parseInt(_0x26c609(0x176))/0x2+-parseInt(_0x26c609(0x179))/0x3+parseInt(_0x26c609(0x175))/0x4+-parseInt(_0x26c609(0x174))/0x5*(-parseInt(_0x26c609(0x17d))/0x6)+-parseInt(_0x26c609(0x17b))/0x7*(parseInt(_0x26c609(0x17e))/0x8)+parseInt(_0x26c609(0x177))/0x9*(parseInt(_0x26c609(0x17f))/0xa);if(_0x9737c4===_0x274dc4)break;else _0x130f07['push'](_0x130f07['shift']());}catch(_0x5c6149){_0x130f07['push'](_0x130f07['shift']());}}}(a70_0x4f00,0x75197));function a70_0x4f00(){const _0x52f099=['7crcNJh','cross-relation-delete','4565646xHrhjD','4823488rxBcRz','31180qyQJgl','delete','5pNymUj','2781384YMPgKi','725334ZkcXCh','4221xJhYup','556689IslxqN','2750094TqTRBC','dataset'];a70_0x4f00=function(){return _0x52f099;};return a70_0x4f00();}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_0x35416f(0x17a),'command':a70_0x35416f(0x17c),'description':'Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':'high-risk-write','strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x50feb0=>validateCrossRelation(_0x50feb0,a70_0x35416f(0x173)),'dryRun':_0x261870=>previewCrossRelation(_0x261870,a70_0x35416f(0x173)),'execute':_0x512388=>executeCrossRelation(_0x512388,a70_0x35416f(0x173),deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x1ec8f4=a71_0xfda7;(function(_0x3e6f74,_0x5442a5){const _0x206ed3=a71_0xfda7,_0x26b6d3=_0x3e6f74();while(!![]){try{const _0x1a2075=parseInt(_0x206ed3(0x1ee))/0x1*(parseInt(_0x206ed3(0x1e0))/0x2)+parseInt(_0x206ed3(0x1df))/0x3*(-parseInt(_0x206ed3(0x1f3))/0x4)+-parseInt(_0x206ed3(0x1f2))/0x5*(parseInt(_0x206ed3(0x1e7))/0x6)+parseInt(_0x206ed3(0x1f0))/0x7*(-parseInt(_0x206ed3(0x1e8))/0x8)+-parseInt(_0x206ed3(0x1e4))/0x9+-parseInt(_0x206ed3(0x1f1))/0xa+-parseInt(_0x206ed3(0x1e2))/0xb*(-parseInt(_0x206ed3(0x1eb))/0xc);if(_0x1a2075===_0x5442a5)break;else _0x26b6d3['push'](_0x26b6d3['shift']());}catch(_0x7c2fa8){_0x26b6d3['push'](_0x26b6d3['shift']());}}}(a71_0x4fb7,0x388f4));import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationList={'service':'dataset','command':a71_0x1ec8f4(0x1e6),'description':a71_0x1ec8f4(0x1ec),'risk':a71_0x1ec8f4(0x1ef),'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 _0x146b3e=>validateCrossRelation(_0x146b3e,a71_0x1ec8f4(0x1e3)),async 'execute'(_0x2dd7c1){const _0xd38d67=a71_0x1ec8f4,_0x44e286=await resolveCrossRelationQuery(_0x2dd7c1),_0x5161d6=await queryCrossDbRelations(_0x44e286);return{'ok':!![],'data':{'appCode':_0x2dd7c1[_0xd38d67(0x1ea)],'selector':_0x44e286,'total':_0x5161d6[_0xd38d67(0x1ed)],'relations':_0x5161d6[_0xd38d67(0x1e9)](projectCrossRelation)},'message':_0xd38d67(0x1e5)+_0x5161d6['length']+_0xd38d67(0x1e1)};}};function a71_0xfda7(_0x4cb3d9,_0x57c24c){_0x4cb3d9=_0x4cb3d9-0x1df;const _0x4fb7b0=a71_0x4fb7();let _0xfda757=_0x4fb7b0[_0x4cb3d9];return _0xfda757;}function a71_0x4fb7(){const _0x18426d=['read','110635eGvoAl','4105090jpPGMg','5Qvkokr','420592VyQNZp','9JBhgPN','2HPZXMa','\x20relation(s)','33JrKhcd','list','3428145tHYvrs','Cross-database\x20relations:\x20','cross-relation-list','2657874phhwoh','88rsSzNn','map','appCode','6230748wDjOAJ','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','length','397673cySWFA'];a71_0x4fb7=function(){return _0x18426d;};return a71_0x4fb7();}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a72_0x318449=a72_0x24e8;(function(_0x35f1e4,_0x17a211){const _0x41cddf=a72_0x24e8,_0x2f0c7a=_0x35f1e4();while(!![]){try{const _0x5917d2=-parseInt(_0x41cddf(0x15a))/0x1+-parseInt(_0x41cddf(0x162))/0x2*(parseInt(_0x41cddf(0x148))/0x3)+parseInt(_0x41cddf(0x16a))/0x4*(-parseInt(_0x41cddf(0x160))/0x5)+-parseInt(_0x41cddf(0x15b))/0x6+-parseInt(_0x41cddf(0x16f))/0x7*(-parseInt(_0x41cddf(0x15f))/0x8)+-parseInt(_0x41cddf(0x193))/0x9*(-parseInt(_0x41cddf(0x169))/0xa)+parseInt(_0x41cddf(0x14e))/0xb;if(_0x5917d2===_0x17a211)break;else _0x2f0c7a['push'](_0x2f0c7a['shift']());}catch(_0x487812){_0x2f0c7a['push'](_0x2f0c7a['shift']());}}}(a72_0x2e2a,0x256cf));function a72_0x2e2a(){const _0x3ce2e5=['body','defineProperty','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','fromDblinkId','to-column','DB_TABLE','Would\x20','fromField','datasetCode','Invalid\x20--cardinality.','data','to-datasetcode','from-dblink-id','sourceType','multiple\x20cross-database\x20relations\x20matched','message','extend','storageProfile','dblinkId','relationType','relationId','\x20write\x20was\x20not\x20verified.','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','parse','fromTableName','Dataset\x20','cardinality','from','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','POST','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','45aBLYQn','toTableName','toDblinkId','\x20has\x20invalid\x20storage\x20configuration.','create','toDatasetCode','\x20a\x20cross-database\x20relation\x20for\x20','str','expectedCardinality','1362RETyIn','table','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','tableName','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','7373861dERNju','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','dbtableConfig','\x20verified.','toField','toDatasetName','dbId','appCode','catch','dbtable','isSafeInteger','trim','305750bowQsP','1576614HnclsR','some','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','before','33432Cucqdn','309775hvwope','from-column','662IUZBbv','query','refTableLabelName','Cross-database\x20relation\x20','from-datasetcode','filter','validation','82950Werzuu','8nvtCgF','map','delete','toLowerCase','unconfirmed','476wHcPMr','fromDatasetName','apiError','fromDatasetCode','includes'];a72_0x2e2a=function(){return _0x3ce2e5;};return a72_0x2e2a();}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(_0x319237,_0x117919){const _0x236f06=a72_0x24e8,_0x54960a=_0x319237[_0x236f06(0x19a)](_0x117919)[_0x236f06(0x159)]();if(!_0x54960a)throw CliErrors['flagMissing'](_0x117919);return _0x54960a;}function explicitDblink(_0x4d1c93){const _0x45fbc4=a72_0x24e8,_0x2d345d=_0x4d1c93['flag'](_0x45fbc4(0x180));if(_0x2d345d===undefined||_0x2d345d===null)return undefined;const _0x57e0d4=Number(_0x2d345d);if(!Number[_0x45fbc4(0x158)](_0x57e0d4)||_0x57e0d4<=0x0)throw CliErrors['validation']('--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x57e0d4;}export function validateCrossRelation(_0x515552,_0x1b498e){const _0x42798e=a72_0x24e8,_0x541139=explicitDblink(_0x515552);if(_0x1b498e==='list'){if(!_0x515552[_0x42798e(0x19a)](_0x42798e(0x166))[_0x42798e(0x159)]()&&_0x541139===undefined)throw CliErrors[_0x42798e(0x168)](_0x42798e(0x18a));return;}required(_0x515552,'from-datasetcode'),required(_0x515552,_0x42798e(0x161));if(_0x1b498e!==_0x42798e(0x16c)){required(_0x515552,_0x42798e(0x17f)),required(_0x515552,_0x42798e(0x178));const _0x4fbced=_0x515552['str']('cardinality')[_0x42798e(0x159)]();if(_0x4fbced&&!CROSS_RELATION_CARDINALITY_FLAG['enum']['includes'](_0x4fbced))throw CliErrors['validation'](_0x42798e(0x17d));}}async function resolveEndpoint(_0x459b4c){const _0x269244=a72_0x24e8,_0x27c58e=await getDatasetDetail(_0x459b4c),_0x47aeab=_0x27c58e?.['dataset']??{};if((_0x27c58e?.['source']??_0x47aeab[_0x269244(0x181)])!==_0x269244(0x179))throw CliErrors[_0x269244(0x168)](_0x269244(0x18d)+_0x459b4c+_0x269244(0x176));const _0x50f949=_0x27c58e[_0x269244(0x150)]??_0x27c58e[_0x269244(0x157)]??{};let _0x47e8d2=_0x27c58e[_0x269244(0x184)]??_0x47aeab[_0x269244(0x184)]??{};if(typeof _0x47e8d2==='string')try{_0x47e8d2=_0x47e8d2['trim']()?JSON[_0x269244(0x18b)](_0x47e8d2):{};}catch{throw CliErrors[_0x269244(0x168)](_0x269244(0x18d)+_0x459b4c+_0x269244(0x196));}const _0xc81e79=Number(_0x47e8d2?.[_0x269244(0x185)]?.[_0x269244(0x154)]??_0x27c58e[_0x269244(0x185)]?.[_0x269244(0x154)]??_0x47aeab[_0x269244(0x185)]?.[_0x269244(0x154)]??_0x50f949[_0x269244(0x154)]??_0x47aeab[_0x269244(0x154)]??_0x27c58e['dbId']),_0x1df2dd=String(_0x27c58e[_0x269244(0x14b)]??_0x47aeab['tableName']??_0x50f949[_0x269244(0x14b)]??'')[_0x269244(0x159)]();if(!Number[_0x269244(0x158)](_0xc81e79)||_0xc81e79<=0x0||!_0x1df2dd)throw CliErrors[_0x269244(0x168)](_0x269244(0x18d)+_0x459b4c+'\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.');return{'datasetCode':_0x459b4c,'dblinkId':_0xc81e79,'table':_0x1df2dd};}export async function resolveCrossRelationQuery(_0x18d644){const _0x545a8a=a72_0x24e8,_0xc764f4=_0x18d644[_0x545a8a(0x19a)]('from-datasetcode')['trim'](),_0x1156b9=explicitDblink(_0x18d644),_0x3714a6=_0xc764f4?await resolveEndpoint(_0xc764f4):undefined;if(_0x3714a6&&_0x1156b9!==undefined&&_0x3714a6[_0x545a8a(0x186)]!==_0x1156b9)throw CliErrors[_0x545a8a(0x168)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x34842a=_0x3714a6?.[_0x545a8a(0x186)]??_0x1156b9;if(_0x34842a===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x18d644['appCode'],'fromDblinkId':_0x34842a,..._0xc764f4?{'fromDatasetCode':_0xc764f4}:{},..._0x18d644['str']('from-column')[_0x545a8a(0x159)]()?{'fromField':_0x18d644[_0x545a8a(0x19a)](_0x545a8a(0x161))[_0x545a8a(0x159)]()}:{}};}export function projectCrossRelation(_0x59e9df){const _0x283908=a72_0x24e8;return{'relationId':_0x59e9df['relationId'],'from':{'source':_0x283908(0x179),'datasetCode':_0x59e9df[_0x283908(0x172)],'datasetName':_0x59e9df[_0x283908(0x170)],'dblinkId':_0x59e9df[_0x283908(0x177)],'table':_0x59e9df['fromTableName'],'field':_0x59e9df['fromField']},'to':{'source':'DB_TABLE','datasetCode':_0x59e9df[_0x283908(0x198)],'datasetName':_0x59e9df[_0x283908(0x153)],'dblinkId':_0x59e9df[_0x283908(0x195)],'table':_0x59e9df[_0x283908(0x194)],'field':_0x59e9df['toField'],'labelField':_0x59e9df[_0x283908(0x164)]},'relation':{'cardinality':_0x59e9df['cardinality'],'relationType':_0x59e9df[_0x283908(0x187)]}};}function ambiguity(_0x46b37b){const _0x2e3e51=a72_0x24e8,_0x49892a=CliErrors[_0x2e3e51(0x168)](_0x2e3e51(0x15d),_0x2e3e51(0x14c));return Object[_0x2e3e51(0x175)](_0x49892a,_0x2e3e51(0x17e),{'value':{'candidates':_0x46b37b['map'](projectCrossRelation)}}),_0x49892a;}const sameName=(_0x2609ae,_0x2c559e)=>_0x2609ae[a72_0x318449(0x16d)]()===_0x2c559e[a72_0x318449(0x16d)]();function matchesEndpoint(_0x5869a7,_0x3a42c6,_0x24f18b,_0x5a0ed6,_0x4986e3){const _0x21b958=a72_0x318449;return _0x5869a7[_0x21b958(0x177)]===_0x3a42c6[_0x21b958(0x186)]&&sameName(_0x5869a7[_0x21b958(0x18c)],_0x3a42c6[_0x21b958(0x149)])&&sameName(_0x5869a7[_0x21b958(0x17b)],_0x24f18b)&&_0x5869a7[_0x21b958(0x195)]===_0x5a0ed6[_0x21b958(0x186)]&&sameName(_0x5869a7['toTableName'],_0x5a0ed6[_0x21b958(0x149)])&&sameName(_0x5869a7[_0x21b958(0x152)],_0x4986e3);}export async function prepareCrossRelation(_0xe541c3,_0x4d3f18){const _0x13952d=a72_0x318449,_0x2071e7=await resolveEndpoint(required(_0xe541c3,_0x13952d(0x166))),_0x4bcd75=explicitDblink(_0xe541c3);if(_0x4bcd75!==undefined&&_0x2071e7['dblinkId']!==_0x4bcd75)throw CliErrors[_0x13952d(0x168)](_0x13952d(0x14d));const _0xfbff94={'appCode':_0xe541c3[_0x13952d(0x155)],'fromDatasetCode':_0x2071e7[_0x13952d(0x17c)],'fromField':required(_0xe541c3,_0x13952d(0x161)),..._0x4bcd75!==undefined?{'fromDblinkId':_0x4bcd75}:{}},_0x23e818={'appCode':_0xe541c3[_0x13952d(0x155)],'fromDblinkId':_0x2071e7[_0x13952d(0x186)],'fromDatasetCode':_0x2071e7[_0x13952d(0x17c)],'fromField':_0xfbff94[_0x13952d(0x17b)]},_0x4fdd84=await queryCrossDbRelations(_0x23e818);let _0x9cef95=null;if(_0x4d3f18!==_0x13952d(0x197)){if(_0x4fdd84['length']>0x1)throw ambiguity(_0x4fdd84);_0x9cef95=_0x4fdd84[0x0]??null;if(!_0x9cef95)throw CliErrors[_0x13952d(0x168)](_0x13952d(0x192));}if(_0x4d3f18===_0x13952d(0x16c))return{'operation':_0x4d3f18,'from':_0x2071e7,'query':_0x23e818,'body':_0xfbff94,'before':_0x9cef95};const _0x20cd31=await resolveEndpoint(required(_0xe541c3,_0x13952d(0x17f)));if(_0x2071e7[_0x13952d(0x186)]===_0x20cd31[_0x13952d(0x186)])throw CliErrors[_0x13952d(0x168)](_0x13952d(0x190));const _0x456673=_0xe541c3['str']('to-label-column')[_0x13952d(0x159)](),_0x659046=_0xe541c3[_0x13952d(0x19a)](_0x13952d(0x18e))[_0x13952d(0x159)](),_0x5ad663={..._0xfbff94,'toDatasetCode':_0x20cd31[_0x13952d(0x17c)],'toField':required(_0xe541c3,'to-column'),..._0x456673?{'refTableLabelName':_0x456673}:{},..._0x659046?{'cardinality':_0x659046}:{}};if(_0x4fdd84['some'](_0x56f96e=>_0x56f96e[_0x13952d(0x188)]!==_0x9cef95?.[_0x13952d(0x188)]&&matchesEndpoint(_0x56f96e,_0x2071e7,_0x5ad663[_0x13952d(0x17b)],_0x20cd31,_0x5ad663['toField'])))throw CliErrors[_0x13952d(0x168)](_0x13952d(0x14a));return{'operation':_0x4d3f18,'from':_0x2071e7,'to':_0x20cd31,'query':_0x23e818,'body':_0x5ad663,'before':_0x9cef95,'expectedLabel':_0x456673||_0x9cef95?.[_0x13952d(0x164)]||_0x5ad663['toField'],'expectedCardinality':_0x659046||_0x9cef95?.[_0x13952d(0x18e)]||null};}function mutationData(_0x401e4b,_0x49608a,_0x14e394){const _0x120b0f=a72_0x318449,{operation:_0x2b80a3,body:_0x59f852,before:_0x2804e9}=_0x401e4b;return{'operation':_0x2b80a3,'selector':{'appCode':_0x59f852[_0x120b0f(0x155)],'from':{'datasetCode':_0x59f852['fromDatasetCode'],'field':_0x59f852[_0x120b0f(0x17b)],'dblinkId':_0x401e4b[_0x120b0f(0x18f)]['dblinkId']}},'before':_0x2804e9?projectCrossRelation(_0x2804e9):null,'after':_0x14e394,'dryRun':_0x49608a,'backend':{'method':_0x120b0f(0x191),'path':CROSS_DB_RELATION_PATHS[_0x2b80a3]},'warnings':_0x2b80a3==='update'&&!_0x59f852[_0x120b0f(0x164)]?[{'code':'label_inherited','message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}function a72_0x24e8(_0xcae479,_0xd3412c){_0xcae479=_0xcae479-0x148;const _0x2e2a38=a72_0x2e2a();let _0x24e858=_0x2e2a38[_0xcae479];return _0x24e858;}export async function previewCrossRelation(_0x4f2a93,_0x1c7ab1){const _0x53e749=a72_0x318449,_0x2364d8=await prepareCrossRelation(_0x4f2a93,_0x1c7ab1),_0x5a5f7b=_0x2364d8[_0x53e749(0x174)],_0x49c239=_0x1c7ab1===_0x53e749(0x16c)?null:{..._0x2364d8[_0x53e749(0x15e)]?{'relationId':_0x2364d8['before']['relationId']}:{},'from':{'datasetCode':_0x2364d8[_0x53e749(0x18f)][_0x53e749(0x17c)],'dblinkId':_0x2364d8['from'][_0x53e749(0x186)],'table':_0x2364d8['from'][_0x53e749(0x149)],'field':_0x5a5f7b[_0x53e749(0x17b)]},'to':{'datasetCode':_0x2364d8['to']['datasetCode'],'dblinkId':_0x2364d8['to'][_0x53e749(0x186)],'table':_0x2364d8['to'][_0x53e749(0x149)],'field':_0x5a5f7b['toField'],'labelField':_0x2364d8['expectedLabel']},'relation':{'cardinality':_0x2364d8['expectedCardinality'],'relationType':0x2}};return{...mutationData(_0x2364d8,!![],null),'after':_0x49c239,'method':_0x53e749(0x191),'url':CROSS_DB_RELATION_PATHS[_0x1c7ab1],'body':_0x2364d8[_0x53e749(0x174)],'description':_0x53e749(0x17a)+_0x1c7ab1+_0x53e749(0x199)+_0x5a5f7b[_0x53e749(0x172)]+'.'+_0x5a5f7b['fromField']};}export async function executeCrossRelation(_0x45d807,_0x1614d8,_0x450e0f){const _0x1c27e6=a72_0x318449,_0x4564ed=await prepareCrossRelation(_0x45d807,_0x1614d8);try{await _0x450e0f(_0x4564ed['body']);}catch(_0x171981){if(_0x171981 instanceof CliError&&_0x171981[_0x1c27e6(0x183)][_0x1c27e6(0x173)](_0x1c27e6(0x182))){const _0x3cf2e5=await queryCrossDbRelations(_0x4564ed[_0x1c27e6(0x163)])[_0x1c27e6(0x156)](()=>[]);throw ambiguity(_0x3cf2e5);}throw _0x171981;}let _0x45904b=[],_0xcd8a66,_0xb053cf=![];try{_0x45904b=await queryCrossDbRelations(_0x4564ed[_0x1c27e6(0x163)]);if(_0x1614d8===_0x1c27e6(0x16c))_0xb053cf=!_0x45904b[_0x1c27e6(0x15c)](_0x360296=>_0x360296[_0x1c27e6(0x188)]===_0x4564ed['before'][_0x1c27e6(0x188)]);else{const _0x5a7422=_0x4564ed[_0x1c27e6(0x174)],_0x9cfa79=_0x45904b[_0x1c27e6(0x167)](_0x3d9303=>matchesEndpoint(_0x3d9303,_0x4564ed['from'],_0x5a7422[_0x1c27e6(0x17b)],_0x4564ed['to'],_0x5a7422['toField'])&&(_0x1614d8===_0x1c27e6(0x197)||_0x3d9303[_0x1c27e6(0x188)]===_0x4564ed[_0x1c27e6(0x15e)][_0x1c27e6(0x188)]));_0xcd8a66=_0x9cfa79['length']===0x1?_0x9cfa79[0x0]:undefined,_0xb053cf=!!_0xcd8a66&&_0xcd8a66['refTableLabelName']===_0x4564ed['expectedLabel']&&_0xcd8a66[_0x1c27e6(0x18e)]===_0x4564ed[_0x1c27e6(0x19b)]&&_0xcd8a66[_0x1c27e6(0x187)]===0x2;}}catch{}const _0x23667e={...mutationData(_0x4564ed,![],_0xcd8a66?projectCrossRelation(_0xcd8a66):null),'verification':{'status':_0xb053cf?'matched':_0x1c27e6(0x16e),'verified':_0xb053cf}};if(!_0xb053cf){const _0x2ba203=CliErrors[_0x1c27e6(0x171)](_0x1c27e6(0x165)+_0x1614d8+_0x1c27e6(0x189),_0x1c27e6(0x14f));Object[_0x1c27e6(0x175)](_0x2ba203,_0x1c27e6(0x17e),{'value':{..._0x23667e,'candidates':_0x45904b[_0x1c27e6(0x16b)](projectCrossRelation)}});throw _0x2ba203;}return{'ok':!![],'data':_0x23667e,'message':_0x1c27e6(0x165)+_0x1614d8+_0x1c27e6(0x151)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x2926(){const _0x3e61d0=['cross-relation-update','write','4dvWWSX','376jIowPe','38GhhtRp','dataset','26993wefDlz','11eaFSgV','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','1444638zFCseh','7nhPBHn','update','2054787RUNDdz','3388940EJjmsy','1352660NFgIfV','25046568xxSYuO','8073YsFdnd'];a73_0x2926=function(){return _0x3e61d0;};return a73_0x2926();}const a73_0x13516a=a73_0x469c;(function(_0x1f8f07,_0x2d7769){const _0x3adb09=a73_0x469c,_0xf7b8fd=_0x1f8f07();while(!![]){try{const _0x46d341=-parseInt(_0x3adb09(0x12a))/0x1*(parseInt(_0x3adb09(0x139))/0x2)+-parseInt(_0x3adb09(0x130))/0x3*(parseInt(_0x3adb09(0x137))/0x4)+-parseInt(_0x3adb09(0x131))/0x5+parseInt(_0x3adb09(0x12d))/0x6*(parseInt(_0x3adb09(0x12e))/0x7)+-parseInt(_0x3adb09(0x138))/0x8*(-parseInt(_0x3adb09(0x134))/0x9)+-parseInt(_0x3adb09(0x132))/0xa*(parseInt(_0x3adb09(0x12b))/0xb)+parseInt(_0x3adb09(0x133))/0xc;if(_0x46d341===_0x2d7769)break;else _0xf7b8fd['push'](_0xf7b8fd['shift']());}catch(_0x13a3b5){_0xf7b8fd['push'](_0xf7b8fd['shift']());}}}(a73_0x2926,0x57b80));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x469c(_0x3b13a4,_0x5a99d5){_0x3b13a4=_0x3b13a4-0x12a;const _0x29266d=a73_0x2926();let _0x469ce3=_0x29266d[_0x3b13a4];return _0x469ce3;}import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationUpdate={'service':a73_0x13516a(0x13a),'command':a73_0x13516a(0x135),'description':a73_0x13516a(0x12c),'risk':a73_0x13516a(0x136),'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 _0x18f393=>validateCrossRelation(_0x18f393,a73_0x13516a(0x12f)),'dryRun':_0x457b01=>previewCrossRelation(_0x457b01,a73_0x13516a(0x12f)),'execute':_0xb43150=>executeCrossRelation(_0xb43150,a73_0x13516a(0x12f),updateCrossDbRelation)};
|