@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.8-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/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x334846=a59_0xd524;(function(_0x260391,_0x5b8200){const _0x57dd29=a59_0xd524,_0x3f47fd=_0x260391();while(!![]){try{const _0x277673=parseInt(_0x57dd29(0x94))/0x1*(-parseInt(_0x57dd29(0x91))/0x2)+parseInt(_0x57dd29(0x92))/0x3+parseInt(_0x57dd29(0x88))/0x4*(-parseInt(_0x57dd29(0x8c))/0x5)+-parseInt(_0x57dd29(0x84))/0x6*(parseInt(_0x57dd29(0x90))/0x7)+parseInt(_0x57dd29(0x85))/0x8*(-parseInt(_0x57dd29(0x8f))/0x9)+parseInt(_0x57dd29(0x8b))/0xa+-parseInt(_0x57dd29(0x80))/0xb*(parseInt(_0x57dd29(0x89))/0xc);if(_0x277673===_0x5b8200)break;else _0x3f47fd['push'](_0x3f47fd['shift']());}catch(_0xd68481){_0x3f47fd['push'](_0x3f47fd['shift']());}}}(a59_0x2dc1,0x4e188));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a59_0xd524(_0x4bea67,_0x4173d5){_0x4bea67=_0x4bea67-0x7d;const _0x2dc1c9=a59_0x2dc1();let _0xd5243d=_0x2dc1c9[_0x4bea67];return _0xd5243d;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a59_0x2dc1(){const _0x2d42aa=['747SvlUQf','1073506EWQDTu','12128HfbWLI','977412FCfrAC','str','19mnRkdb','validation','Get\x20a\x20config\x20value\x20by\x20key','object','55lIjPPh','config','Usage:\x20','\x20config\x20get\x20--key\x20<key>','12TlXwzR','7616HxTLmE','key','get','4YrliPt','13308GdpDcq','read','6168600xFYJWy','581455RLqTiW','appcode','app'];a59_0x2dc1=function(){return _0x2d42aa;};return a59_0x2dc1();}async function execute(_0x2f1310){const _0x3f12f8=a59_0xd524,_0x521e5e=_0x2f1310[_0x3f12f8(0x93)](_0x3f12f8(0x86));if(!_0x521e5e)throw CliErrors[_0x3f12f8(0x7d)]('Missing\x20key.',_0x3f12f8(0x82)+CLI_BIN_NAME+_0x3f12f8(0x83));const _0x2fa38d=readConfig(),_0x52c0ce=_0x521e5e===_0x3f12f8(0x8e)?_0x3f12f8(0x8d):_0x521e5e,_0x3c38cb=_0x2fa38d[_0x52c0ce];if(_0x3c38cb===undefined)throw CliErrors[_0x3f12f8(0x7d)]('Key\x20not\x20found:\x20'+_0x521e5e);return{'ok':!![],'data':typeof _0x3c38cb==='object'?_0x3c38cb:{[_0x52c0ce]:_0x3c38cb},'message':typeof _0x3c38cb===_0x3f12f8(0x7f)?undefined:String(_0x3c38cb)};}export const configGetDefinition={'service':a59_0x334846(0x81),'command':a59_0x334846(0x87),'description':a59_0x334846(0x7e),'risk':a59_0x334846(0x8a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x334846(0x86),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x424912,_0x95fb12){const _0x1ed727=a60_0x2008,_0x4ca9e4=_0x424912();while(!![]){try{const _0x54b3bc=-parseInt(_0x1ed727(0x1a4))/0x1+-parseInt(_0x1ed727(0x1a2))/0x2*(-parseInt(_0x1ed727(0x1a3))/0x3)+-parseInt(_0x1ed727(0x1a5))/0x4+parseInt(_0x1ed727(0x1a6))/0x5+parseInt(_0x1ed727(0x19f))/0x6*(-parseInt(_0x1ed727(0x1a7))/0x7)+-parseInt(_0x1ed727(0x1a0))/0x8*(parseInt(_0x1ed727(0x1a1))/0x9)+parseInt(_0x1ed727(0x19e))/0xa;if(_0x54b3bc===_0x95fb12)break;else _0x4ca9e4['push'](_0x4ca9e4['shift']());}catch(_0xea6841){_0x4ca9e4['push'](_0x4ca9e4['shift']());}}}(a60_0x1aba,0x8c61b));function a60_0x2008(_0x1ee6bf,_0x37a3a2){_0x1ee6bf=_0x1ee6bf-0x19e;const _0x1aba2d=a60_0x1aba();let _0x2008d7=_0x1aba2d[_0x1ee6bf];return _0x2008d7;}function a60_0x1aba(){const _0x76180e=['7hUEARH','10648910zEPQro','2263482CHqMuB','8yeyCEp','5650092fzltaA','19582EWZBUQ','291SrpRtq','334811FuMnCH','1835012wdCuIc','1794920uHnvqr'];a60_0x1aba=function(){return _0x76180e;};return a60_0x1aba();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a61_0x1441(_0x4bf37d,_0x2beede){_0x4bf37d=_0x4bf37d-0x1db;const _0x4ca3fd=a61_0x4ca3();let _0x14418e=_0x4ca3fd[_0x4bf37d];return _0x14418e;}const a61_0x150042=a61_0x1441;(function(_0x5422d4,_0x372465){const _0x33b654=a61_0x1441,_0xcf87ed=_0x5422d4();while(!![]){try{const _0x163d36=-parseInt(_0x33b654(0x1f5))/0x1+parseInt(_0x33b654(0x1fa))/0x2*(parseInt(_0x33b654(0x1df))/0x3)+parseInt(_0x33b654(0x20a))/0x4+parseInt(_0x33b654(0x204))/0x5*(-parseInt(_0x33b654(0x200))/0x6)+-parseInt(_0x33b654(0x1f7))/0x7+parseInt(_0x33b654(0x1f6))/0x8*(-parseInt(_0x33b654(0x211))/0x9)+parseInt(_0x33b654(0x20e))/0xa;if(_0x163d36===_0x372465)break;else _0xcf87ed['push'](_0xcf87ed['shift']());}catch(_0x2e9cb1){_0xcf87ed['push'](_0xcf87ed['shift']());}}}(a61_0x4ca3,0xbcd3e));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x150042(0x203),'type':a61_0x150042(0x1ec),'description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a61_0x150042(0x213)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x150042(0x1e7),'type':a61_0x150042(0x1ec),'description':a61_0x150042(0x210)},{'name':a61_0x150042(0x1dd),'type':'string','description':a61_0x150042(0x1ee)},{'name':a61_0x150042(0x1ef),'type':'string','description':a61_0x150042(0x1f1)},{'name':'runtime-domain','type':a61_0x150042(0x1ec),'description':a61_0x150042(0x1f2)},{'name':a61_0x150042(0x208),'type':a61_0x150042(0x1ec),'description':a61_0x150042(0x1e9)},{'name':a61_0x150042(0x212),'type':a61_0x150042(0x1ec),'description':a61_0x150042(0x1fb)},{'name':a61_0x150042(0x1eb),'type':'string','description':a61_0x150042(0x1e8)},{'name':a61_0x150042(0x1f9),'type':a61_0x150042(0x1ec),'description':a61_0x150042(0x214)},{'name':a61_0x150042(0x209),'type':'string','description':a61_0x150042(0x201)},{'name':a61_0x150042(0x1e1),'type':'string','description':a61_0x150042(0x1e2)}];async function resolveRegion(_0x567491){const _0x48bee2=a61_0x150042,_0x1ab732=_0x567491[_0x48bee2(0x1f4)](_0x48bee2(0x203));if(_0x1ab732){if(!isEnabledLovrabetRegion(_0x1ab732))throw CliErrors[_0x48bee2(0x20d)](_0x48bee2(0x1e3)+_0x1ab732+_0x48bee2(0x1de),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'));return _0x1ab732;}if(_0x567491[_0x48bee2(0x1dc)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x48bee2(0x1f8),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x48bee2(0x20b)](_0x55f599=>({'name':getOfficialRoutingProfile(_0x55f599)[_0x48bee2(0x207)]+'\x20('+_0x55f599+')','value':_0x55f599}))});}catch(_0x26f89f){if(_0x26f89f?.['name']===_0x48bee2(0x20f))throw CliErrors['cancelled']();throw _0x26f89f;}}export async function executeConfigInit(_0x3ca948){const _0x2b1e1c=a61_0x150042,_0x414b3d=resolveDomainConfigInput(_0x3ca948),_0xfd2832=_0x414b3d[_0x2b1e1c(0x1e6)],_0x4fd4bd=Object[_0x2b1e1c(0x1fe)](_0xfd2832)['length']>0x0;if(_0x4fd4bd&&_0x3ca948['str'](_0x2b1e1c(0x203)))throw CliErrors[_0x2b1e1c(0x20d)](_0x2b1e1c(0x1fd));if(!!_0xfd2832['localDomain']!==!!_0xfd2832['certificateDomain'])throw CliErrors[_0x2b1e1c(0x20d)](_0x2b1e1c(0x202));const _0x2ca3f7=_0x3ca948[_0x2b1e1c(0x1ff)]('global')?'global':_0x2b1e1c(0x1e4),_0x4dc6fc=readScopedConfig(_0x2ca3f7);for(const _0x2d6ac8 of DOMAIN_CONFIG_FIELDS)delete _0x4dc6fc[_0x2d6ac8];for(const _0x1ac77d of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4dc6fc[_0x1ac77d];delete _0x4dc6fc[_0x2b1e1c(0x1ed)];let _0x4abd01=null;if(_0x4fd4bd)delete _0x4dc6fc[_0x2b1e1c(0x203)],_0x414b3d[_0x2b1e1c(0x205)]==='enterprise-v1'?_0x4dc6fc[_0x2b1e1c(0x1ed)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x414b3d['manifestDomains'],'cdn':_0x414b3d['cdn']}:Object[_0x2b1e1c(0x1f0)](_0x4dc6fc,_0xfd2832);else{_0x4abd01=await resolveRegion(_0x3ca948);if(_0x4abd01===DEFAULT_LOVRABET_REGION)delete _0x4dc6fc[_0x2b1e1c(0x203)];else _0x4dc6fc[_0x2b1e1c(0x203)]=_0x4abd01;}return writeScopedConfig(_0x4dc6fc,_0x2ca3f7),{'ok':!![],'message':_0x4fd4bd?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x2b1e1c(0x1fe)](_0x414b3d['mode']==='enterprise-v1'?_0x414b3d[_0x2b1e1c(0x1fc)]:_0xfd2832)['join'](',\x20')+'.':_0x2b1e1c(0x1e5)+_0x4abd01+'.','data':{'mode':_0x4fd4bd?'independent':_0x2b1e1c(0x20c),'protocol':_0x414b3d[_0x2b1e1c(0x205)]===_0x2b1e1c(0x1f3)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4abd01,'domains':_0xfd2832,'cdn':_0x414b3d['mode']==='enterprise-v1'?_0x414b3d[_0x2b1e1c(0x1db)]:undefined}};}export const configInitDefinition={'service':a61_0x150042(0x206),'command':a61_0x150042(0x1ea),'description':a61_0x150042(0x215),'risk':'write','confirmationDescription':a61_0x150042(0x1e0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};function a61_0x4ca3(){const _0x1ffc73=['Custom\x20User\x20HTTPS\x20origin','api-domain','assign','Custom\x20platform\x20API\x20HTTPS\x20origin','Custom\x20Runtime\x20HTTPS\x20origin','enterprise-v1','str','648922dDZowV','128vKzpSu','9908696LuFpcr','Select\x20Lovrabet\x20region','app-domain','14MPpqEf','Custom\x20knowledge-base\x20HTTPS\x20origin','manifestDomains','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','keys','bool','4614xxqizG','Custom\x20local\x20callback\x20HTTPS\x20origin','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','region','9835mJlNlh','mode','config','label','skill-domain','local-domain','2006252cLjnAW','map','official','validation','48622320pOCNBv','ExitPromptError','Independent-deployment\x20Domain\x20JSON\x20file','829989zfoMOj','kb-domain','join','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','cdn','nonInteractive','user-domain','\x22\x20is\x20not\x20currently\x20available.','198108ZiWTWe','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','certificate-domain','Custom\x20certificate\x20service\x20HTTPS\x20origin','Region\x20\x22','project','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','domains','domain-config','Custom\x20KB\x20Service\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','init','kb-service-domain','string','routing'];a61_0x4ca3=function(){return _0x1ffc73;};return a61_0x4ca3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a62_0x70c4(){const _0x27d178=['config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','3270cKmlOG','8618099ZJWKzq','2505LayMPZ','2YqFyGK','45397oxghsz','11040792NcwCVN','List\x20all\x20config\x20values','read','2875096heftWE','9WHNHZC','321673GSDKff','bool','boolean','4278AizmXC','global','1043637HoNcHS'];a62_0x70c4=function(){return _0x27d178;};return a62_0x70c4();}const a62_0xfce1af=a62_0x281e;function a62_0x281e(_0x250090,_0x200a14){_0x250090=_0x250090-0x98;const _0x70c475=a62_0x70c4();let _0x281e18=_0x70c475[_0x250090];return _0x281e18;}(function(_0x4755a0,_0x2958f4){const _0x41d818=a62_0x281e,_0x4067f0=_0x4755a0();while(!![]){try{const _0x3d9d0d=-parseInt(_0x41d818(0xa6))/0x1+parseInt(_0x41d818(0x9f))/0x2*(-parseInt(_0x41d818(0x99))/0x3)+parseInt(_0x41d818(0xa4))/0x4+-parseInt(_0x41d818(0x9e))/0x5*(parseInt(_0x41d818(0xa9))/0x6)+parseInt(_0x41d818(0x9d))/0x7+-parseInt(_0x41d818(0xa1))/0x8*(parseInt(_0x41d818(0xa5))/0x9)+parseInt(_0x41d818(0x9c))/0xa*(parseInt(_0x41d818(0xa0))/0xb);if(_0x3d9d0d===_0x2958f4)break;else _0x4067f0['push'](_0x4067f0['shift']());}catch(_0x218879){_0x4067f0['push'](_0x4067f0['shift']());}}}(a62_0x70c4,0xd9eb4));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x566d45){const _0x49380f=a62_0x281e,_0x411e86=_0x566d45[_0x49380f(0xa7)](_0x49380f(0x98))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x411e86};}export const configListDefinition={'service':a62_0xfce1af(0x9a),'command':'list','description':a62_0xfce1af(0xa2),'risk':a62_0xfce1af(0xa3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0xfce1af(0x98),'type':a62_0xfce1af(0xa8),'description':a62_0xfce1af(0x9b),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a63_0x4313(){const _0x58e22f=['write','includes','keys','locale','validation','Invalid\x20locale\x20value.','Use\x20`','length','value','env','Invalid\x20value\x20for\x20\x22','Usage:\x20','str','Missing\x20key.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','boolean','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Settable\x20top-level\x20keys:\x20','3252165jdkcIN','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','\x22.\x20Allowed:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','string','config','`,\x20`','188208JipSDd','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Top-level\x20key\x20\x22','1220879fOEPek','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','665042PlrOcH','object','1732TDotii','597CwtOSE','Config\x20value','key','Set\x20a\x20config\x20value','Missing\x20value.','160nTmRrV','global','678804GdbQzy','apps','\x20set\x20to:\x20','57282GcUcwb','join','445Wgaowj','8wKpPgp','appcode','\x22\x20is\x20not\x20settable.','Global','Project','\x20appcode\x20set\x20to:\x20'];a63_0x4313=function(){return _0x58e22f;};return a63_0x4313();}const a63_0x32cb58=a63_0x3cd6;(function(_0x1d8d81,_0xeb79a9){const _0x33ddb8=a63_0x3cd6,_0x127d5d=_0x1d8d81();while(!![]){try{const _0x352562=parseInt(_0x33ddb8(0x1e4))/0x1+parseInt(_0x33ddb8(0x1da))/0x2+parseInt(_0x33ddb8(0x1dd))/0x3*(-parseInt(_0x33ddb8(0x1dc))/0x4)+-parseInt(_0x33ddb8(0x1e9))/0x5*(-parseInt(_0x33ddb8(0x1e7))/0x6)+-parseInt(_0x33ddb8(0x1ce))/0x7*(-parseInt(_0x33ddb8(0x1ea))/0x8)+-parseInt(_0x33ddb8(0x1d5))/0x9+parseInt(_0x33ddb8(0x1e2))/0xa*(-parseInt(_0x33ddb8(0x1d8))/0xb);if(_0x352562===_0xeb79a9)break;else _0x127d5d['push'](_0x127d5d['shift']());}catch(_0x18c1e7){_0x127d5d['push'](_0x127d5d['shift']());}}}(a63_0x4313,0x6c14c));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';async function execute(_0x5e5519){const _0x5ea1d5=a63_0x3cd6,_0x4c831b=_0x5e5519[_0x5ea1d5(0x1c6)]('key'),_0x3c5400=_0x5e5519[_0x5ea1d5(0x1c6)](_0x5ea1d5(0x1c2));if(!_0x4c831b)throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1c7),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x3c5400===undefined||_0x3c5400==='')throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1e1),_0x5ea1d5(0x1c5)+CLI_BIN_NAME+_0x5ea1d5(0x1cb));let _0x2b9ffb=_0x4c831b,_0x2c42d9=_0x3c5400;if(_0x3c5400[_0x5ea1d5(0x1c1)]>0x1f4)throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1cc));if(_0x4c831b==='riskLevel')throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1c8));if(!isTopLevelConfigKey(_0x4c831b))throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1d7)+_0x4c831b+_0x5ea1d5(0x1ec),_0x5ea1d5(0x1cd)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x4c831b]&&!CONFIG_ENUM_VALUES[_0x4c831b]['includes'](_0x3c5400))throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1c4)+_0x4c831b+_0x5ea1d5(0x1d0)+CONFIG_ENUM_VALUES[_0x4c831b][_0x5ea1d5(0x1e8)](',\x20'));if(_0x4c831b===_0x5ea1d5(0x1bd)&&!normalizeLocale(_0x3c5400))throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1bf),_0x5ea1d5(0x1d6));DOMAIN_CONFIG_FIELDS[_0x5ea1d5(0x1bb)](_0x4c831b)&&(_0x2c42d9=normalizeDomainOrigin(_0x4c831b,_0x3c5400));const _0x389da9={'global':_0x5e5519['bool']('global')},_0x487cf7=resolveWriteScope(_0x389da9),_0xd3a35=readScopedConfig(_0x487cf7);_0x4c831b==='app'&&(_0x2b9ffb=_0x5ea1d5(0x1eb),delete _0xd3a35['app']);_0x4c831b===_0x5ea1d5(0x1bd)&&(_0x2c42d9=normalizeLocale(_0x3c5400));if(_0x4c831b===_0x5ea1d5(0x1c3)){_0x2c42d9=normalizeEnv(_0x3c5400);if(!isProduction(_0x2c42d9)&&!isDaily(_0x2c42d9))throw CliErrors[_0x5ea1d5(0x1be)](_0x5ea1d5(0x1ca),_0x5ea1d5(0x1cf));}if(_0x4c831b===_0x5ea1d5(0x1eb)){const _0x3734a8=_0xd3a35[_0x5ea1d5(0x1e5)]&&typeof _0xd3a35[_0x5ea1d5(0x1e5)]===_0x5ea1d5(0x1db)?Object[_0x5ea1d5(0x1bc)](_0xd3a35[_0x5ea1d5(0x1e5)]):[];if(_0x3734a8[_0x5ea1d5(0x1c1)]>0x0)throw CliErrors[_0x5ea1d5(0x1be)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x5ea1d5(0x1c0)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x2c42d9+_0x5ea1d5(0x1d4)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x421f45=buildCanonicalProjectConfig({..._0xd3a35},{'appCodes':[_0x2c42d9],'env':typeof _0xd3a35[_0x5ea1d5(0x1c3)]==='string'?_0xd3a35[_0x5ea1d5(0x1c3)]:undefined});writeScopedConfig(_0x421f45,_0x487cf7);const _0x2ffb84=_0x487cf7===_0x5ea1d5(0x1e3)?_0x5ea1d5(0x1ed):'Project';return{'ok':!![],'message':'✓\x20'+_0x2ffb84+_0x5ea1d5(0x1ef)+_0x2c42d9+_0x5ea1d5(0x1d9)};}_0xd3a35[_0x2b9ffb]=_0x2c42d9,writeScopedConfig(_0xd3a35,_0x487cf7);const _0xb947a=_0x487cf7===_0x5ea1d5(0x1e3)?'Global':_0x5ea1d5(0x1ee);return{'ok':!![],'message':'✓\x20'+_0xb947a+'\x20'+_0x2b9ffb+_0x5ea1d5(0x1e6)+_0x2c42d9};}function a63_0x3cd6(_0x3491ca,_0x579807){_0x3491ca=_0x3491ca-0x1ba;const _0x4313e2=a63_0x4313();let _0x3cd6b0=_0x4313e2[_0x3491ca];return _0x3cd6b0;}export const configSetDefinition={'service':a63_0x32cb58(0x1d3),'command':'set','description':a63_0x32cb58(0x1e0),'risk':a63_0x32cb58(0x1ba),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x32cb58(0x1df),'type':a63_0x32cb58(0x1d2),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x32cb58(0x1c2),'type':a63_0x32cb58(0x1d2),'description':a63_0x32cb58(0x1de),'required':!![]},{'name':a63_0x32cb58(0x1e3),'type':a63_0x32cb58(0x1c9),'description':a63_0x32cb58(0x1d1),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x503e9f,_0xebf167){var _0x21f199=a64_0x479e,_0x5366a7=_0x503e9f();while(!![]){try{var _0x59d34f=-parseInt(_0x21f199(0x15b))/0x1*(parseInt(_0x21f199(0x15a))/0x2)+parseInt(_0x21f199(0x165))/0x3*(parseInt(_0x21f199(0x15c))/0x4)+parseInt(_0x21f199(0x15f))/0x5*(-parseInt(_0x21f199(0x160))/0x6)+-parseInt(_0x21f199(0x162))/0x7+-parseInt(_0x21f199(0x163))/0x8*(parseInt(_0x21f199(0x161))/0x9)+parseInt(_0x21f199(0x158))/0xa+parseInt(_0x21f199(0x15e))/0xb;if(_0x59d34f===_0xebf167)break;else _0x5366a7['push'](_0x5366a7['shift']());}catch(_0x138578){_0x5366a7['push'](_0x5366a7['shift']());}}}(a64_0x41d3,0xbeecc));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x479e(_0x113767,_0x595b12){_0x113767=_0x113767-0x158;var _0x41d3b1=a64_0x41d3();var _0x479e8f=_0x41d3b1[_0x113767];return _0x479e8f;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a64_0x41d3(){var _0xe84beb=['1767pDlGzY','721410kractN','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','146XiZdmK','3385usMvBU','3764bnwodc','global','28746795MwlZlG','1145GEUaFb','15198AzfShG','1809TRkyVV','8625141SrYSio','15856RXTcdu','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).'];a64_0x41d3=function(){return _0xe84beb;};return a64_0x41d3();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0xe299e5){var _0x18812e=a64_0x479e;if(_0xe299e5[_0x18812e(0x15d)])return _0x18812e(0x15d);if(!isInProject())throw CliErrors['validation'](_0x18812e(0x164),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x18812e(0x159));return'project';}export function readScopedConfig(_0x1a5b13){return readConfigFile(resolveWriteConfigPath(_0x1a5b13));}export function writeScopedConfig(_0x2cbcc8,_0x5752fd){writeConfigFile(resolveWriteConfigPath(_0x5752fd),_0x2cbcc8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x40cc67=a65_0x3897;(function(_0x64c741,_0x2e8481){const _0xde6b29=a65_0x3897,_0x389b38=_0x64c741();while(!![]){try{const _0x27158b=parseInt(_0xde6b29(0xb4))/0x1+-parseInt(_0xde6b29(0xc3))/0x2*(-parseInt(_0xde6b29(0xfc))/0x3)+parseInt(_0xde6b29(0xf3))/0x4*(-parseInt(_0xde6b29(0xa4))/0x5)+-parseInt(_0xde6b29(0x105))/0x6+-parseInt(_0xde6b29(0xdb))/0x7+-parseInt(_0xde6b29(0xd1))/0x8+parseInt(_0xde6b29(0xc0))/0x9;if(_0x27158b===_0x2e8481)break;else _0x389b38['push'](_0x389b38['shift']());}catch(_0x2fe439){_0x389b38['push'](_0x389b38['shift']());}}}(a65_0x2d4a,0x37849));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x40cc67(0x102),'ONE_TO_ONE']),SUPPORTED_FIELD_TYPES=new Set([a65_0x40cc67(0xe1),a65_0x40cc67(0xa9),a65_0x40cc67(0x106),a65_0x40cc67(0xe4),a65_0x40cc67(0xe7),a65_0x40cc67(0xc5),a65_0x40cc67(0x108),a65_0x40cc67(0xca),a65_0x40cc67(0xb0),'UPLOAD']);export function isDatasetBatchDesign(_0x2b7b14){const _0x3ec070=a65_0x40cc67;return isObject(_0x2b7b14)&&_0x2b7b14[_0x3ec070(0xc1)]===_0x3ec070(0x103);}export function validateDatasetBatchDesign(_0x18adf6){const _0x4191bc=a65_0x40cc67;(!isObject(_0x18adf6)||_0x18adf6[_0x4191bc(0xc1)]!==_0x4191bc(0x103))&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x18adf6['schemaVersion']!==0x1&&fail('Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.');const _0x176c51=objectArray(_0x18adf6['datasets'],_0x4191bc(0xa3),0x1,0x14),_0x418c77=objectArray(_0x18adf6[_0x4191bc(0xf5)],_0x4191bc(0xf5),0x0,0xc8),_0xc885e8=objectArray(_0x18adf6[_0x4191bc(0xb7)],_0x4191bc(0xb7),0x0,0xc8),_0x54ff6d=new Set(),_0x4d2bbb=new Map();for(const [_0x551067,_0x232dbe]of _0x176c51[_0x4191bc(0xae)]()){const _0x5012a3=requiredString(_0x232dbe['localKey'],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xe2));!LOCAL_KEY[_0x4191bc(0x10a)](_0x5012a3)&&fail('datasets['+_0x551067+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x4191bc(0xd7)]+'.');_0x54ff6d[_0x4191bc(0xd0)](_0x5012a3)&&fail('Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.');_0x54ff6d[_0x4191bc(0x107)](_0x5012a3);!isObject(_0x232dbe['design'])&&fail(_0x4191bc(0x9f)+_0x551067+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x232dbe[_0x4191bc(0xf9)],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xc6));if(!isObject(_0x232dbe['design'][_0x4191bc(0xcd)]))fail(_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xed));rejectServerDatasetIdentity(_0x232dbe[_0x4191bc(0xf9)][_0x4191bc(0xcd)],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xe0)),requiredString(_0x232dbe[_0x4191bc(0xf9)][_0x4191bc(0xcd)]['datasetName'],'datasets['+_0x551067+'].design.dataset.datasetName');_0x4191bc(0xf5)in _0x232dbe[_0x4191bc(0xf9)]&&(!Array['isArray'](_0x232dbe['design'][_0x4191bc(0xf5)])||_0x232dbe[_0x4191bc(0xf9)]['relations'][_0x4191bc(0xe6)]!==0x0)&&fail(_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xa2));const _0x550959=objectArray(_0x232dbe['design'][_0x4191bc(0xc9)],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xb5),0x1,0xc8),_0x38b18f=new Map();for(const [_0x42c663,_0x399ad1]of _0x550959['entries']()){const _0x1f64d2=fieldName(_0x399ad1);if(!_0x1f64d2)fail(_0x4191bc(0x9f)+_0x551067+'].design.fields['+_0x42c663+_0x4191bc(0xcb));const _0xcf6bb1=_0x1f64d2['toLowerCase']();if(_0x38b18f['has'](_0xcf6bb1))fail(_0x4191bc(0xbf)+_0x5012a3+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0xa48758=stringValue(_0x399ad1[_0x4191bc(0xc8)]??_0x399ad1[_0x4191bc(0xa8)])[_0x4191bc(0xb6)]();if(!SUPPORTED_FIELD_TYPES['has'](_0xa48758))fail(_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xf7)+_0x42c663+_0x4191bc(0xac));_0x38b18f[_0x4191bc(0xbe)](_0xcf6bb1,_0xa48758),[_0x399ad1[_0x4191bc(0xfb)],_0x399ad1['refTableField'],_0x399ad1[_0x4191bc(0xd6)]]['some'](_0x16cb9c=>stringValue(_0x16cb9c))&&fail('datasets['+_0x551067+_0x4191bc(0xf7)+_0x42c663+_0x4191bc(0x100));}_0x4d2bbb['set'](_0x5012a3,_0x38b18f);}const _0x1138cf=new Set(),_0x53e6cd=new Set();for(const [_0x420bbe,_0x4fdf61]of _0x418c77[_0x4191bc(0xae)]()){const _0x16c614=validateRelation(_0x4fdf61,_0x420bbe,_0x54ff6d,_0x4d2bbb);if(_0x1138cf[_0x4191bc(0xd0)](_0x16c614))fail(_0x4191bc(0xab));_0x1138cf[_0x4191bc(0x107)](_0x16c614);const _0x5318e3=_0x16c614[_0x4191bc(0xe5)]('\x00',0x2)['join']('\x00');if(_0x53e6cd[_0x4191bc(0xd0)](_0x5318e3))fail(_0x4191bc(0xdf));_0x53e6cd['add'](_0x5318e3);}for(const [_0x3fd849,_0x55ab84]of _0xc885e8[_0x4191bc(0xae)]()){requiredString(_0x55ab84[_0x4191bc(0xe8)],'unresolvedRelations['+_0x3fd849+_0x4191bc(0xe9)),validateConfidence(_0x55ab84[_0x4191bc(0xcf)],'unresolvedRelations['+_0x3fd849+_0x4191bc(0xf4));}return _0x18adf6;}export function reconcileBatchResult(_0x3d5e4e){const _0x271b0c=a65_0x40cc67;if(!isObject(_0x3d5e4e))return null;try{const _0x1f9c40=stringArray(_0x3d5e4e[_0x271b0c(0xaf)],'expectedLocalKeys',0x1,0x14),_0x278532=new Set(_0x1f9c40);if(_0x278532[_0x271b0c(0xee)]!==_0x1f9c40[_0x271b0c(0xe6)]||_0x1f9c40['some'](_0x5e2b09=>!LOCAL_KEY[_0x271b0c(0x10a)](_0x5e2b09)))return null;const _0x551ab3=objectArray(_0x3d5e4e[_0x271b0c(0xd9)],_0x271b0c(0xd9),0x1,0x14),_0x5e2b61=new Map(),_0x5b29f5=new Set();for(const _0x35a098 of _0x551ab3){const _0x89c297=requiredString(_0x35a098[_0x271b0c(0xfa)],_0x271b0c(0xd3)),_0x29e626=requiredString(_0x35a098[_0x271b0c(0xeb)]??_0x35a098[_0x271b0c(0xad)],'createdDatasets[].code');if(_0x5e2b61[_0x271b0c(0xd0)](_0x89c297)||_0x5b29f5[_0x271b0c(0xd0)](_0x29e626))return null;_0x5e2b61['set'](_0x89c297,_0x29e626),_0x5b29f5[_0x271b0c(0x107)](_0x29e626);}if(!sameSet(_0x278532,new Set(_0x5e2b61[_0x271b0c(0xc7)]())))return null;const _0x497f3b=objectArray(_0x3d5e4e[_0x271b0c(0xa6)],_0x271b0c(0xa6),0x0,0xc8),_0x1751e5=objectArray(_0x3d5e4e[_0x271b0c(0x104)],'createdRelations',0x0,0xc8),_0x43d1d0=relationTupleSet(_0x497f3b,![],_0x5e2b61),_0x55b1f3=relationTupleSet(_0x1751e5,!![],_0x5e2b61);if(!_0x43d1d0||!_0x55b1f3||!sameSet(_0x43d1d0,_0x55b1f3))return null;const _0x3f04ae=objectArray(_0x3d5e4e[_0x271b0c(0xb7)],_0x271b0c(0xb7),0x0,0xc8);return{'expectedLocalKeys':_0x1f9c40,'expectedRelations':_0x497f3b,'createdDatasets':_0x551ab3,'createdRelations':_0x1751e5,'unresolvedRelations':_0x3f04ae,...isObject(_0x3d5e4e[_0x271b0c(0xd2)])?{'metrics':_0x3d5e4e[_0x271b0c(0xd2)]}:{}};}catch{return null;}}function validateRelation(_0x463b03,_0x1732b6,_0x523ec2,_0x40f5d2){const _0x47cd15=a65_0x40cc67,_0x203294=_0x47cd15(0xff)+_0x1732b6+']',_0xa7caa6=requiredString(_0x463b03['fromDatasetKey'],_0x203294+_0x47cd15(0xa5)),_0x115fec=requiredString(_0x463b03[_0x47cd15(0xf8)],_0x203294+_0x47cd15(0xce)),_0x5e0c24=requiredString(_0x463b03['fromField'],_0x203294+'.fromField')[_0x47cd15(0x109)](),_0x483576=requiredString(_0x463b03['toField'],_0x203294+_0x47cd15(0xbc))[_0x47cd15(0x109)]();if(!_0x523ec2['has'](_0xa7caa6)||!_0x523ec2[_0x47cd15(0xd0)](_0x115fec))fail(_0x203294+'\x20references\x20an\x20unknown\x20dataset\x20localKey.');const _0x34d72a=_0x40f5d2[_0x47cd15(0xfd)](_0xa7caa6)?.[_0x47cd15(0xfd)](_0x5e0c24),_0xd5ef96=_0x40f5d2['get'](_0x115fec)?.['get'](_0x483576);if(_0x34d72a===undefined||_0xd5ef96===undefined)fail(_0x203294+_0x47cd15(0xaa));if(_0x34d72a&&_0xd5ef96&&_0x34d72a!==_0xd5ef96)fail(_0x203294+'\x20connects\x20incompatible\x20field\x20types.');const _0x127e71=stringValue(_0x463b03[_0x47cd15(0xc2)])||_0x47cd15(0xb1);if(_0x127e71!==_0x47cd15(0xb1))fail(_0x203294+'.relationType\x20must\x20be\x20\x22lookup\x22.');const _0x2a3d4e=stringValue(_0x463b03[_0x47cd15(0xef)])||_0x47cd15(0x102);if(!SUPPORTED_CARDINALITIES[_0x47cd15(0xd0)](_0x2a3d4e))fail(_0x203294+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x463b03['reason'],_0x203294+_0x47cd15(0xdc)),validateConfidence(_0x463b03[_0x47cd15(0xcf)],_0x203294+_0x47cd15(0xe3)),tuple(_0xa7caa6,_0x5e0c24,_0x115fec,_0x483576,_0x47cd15(0xb1),_0x2a3d4e);}function relationTupleSet(_0x1e7f8b,_0x135a69,_0x329196){const _0x3f55fb=a65_0x40cc67,_0x25ef81=new Set();for(const _0xb37af3 of _0x1e7f8b){const _0x24edb7=stringValue(_0xb37af3[_0x3f55fb(0xea)]),_0x47c684=stringValue(_0xb37af3['toDatasetKey']),_0x316be3=stringValue(_0xb37af3[_0x3f55fb(0xf6)])[_0x3f55fb(0x109)](),_0x29dfe6=stringValue(_0xb37af3['toField'])[_0x3f55fb(0x109)](),_0x1a5d93=stringValue(_0xb37af3[_0x3f55fb(0xc2)]),_0x3407a8=stringValue(_0xb37af3[_0x3f55fb(0xef)]);if(!_0x24edb7||!_0x47c684||!_0x316be3||!_0x29dfe6||_0x1a5d93!==_0x3f55fb(0xb1)||!SUPPORTED_CARDINALITIES['has'](_0x3407a8))return null;if(!_0x329196[_0x3f55fb(0xd0)](_0x24edb7)||!_0x329196[_0x3f55fb(0xd0)](_0x47c684))return null;if(_0x135a69&&(stringValue(_0xb37af3[_0x3f55fb(0xda)])!==_0x329196[_0x3f55fb(0xfd)](_0x24edb7)||stringValue(_0xb37af3[_0x3f55fb(0xdd)])!==_0x329196[_0x3f55fb(0xfd)](_0x47c684)))return null;const _0x1cf210=tuple(_0x24edb7,_0x316be3,_0x47c684,_0x29dfe6,_0x1a5d93,_0x3407a8);if(_0x25ef81[_0x3f55fb(0xd0)](_0x1cf210))return null;_0x25ef81[_0x3f55fb(0x107)](_0x1cf210);}return _0x25ef81;}function rejectServerDatasetIdentity(_0x1e69d6,_0x52f8c9){const _0x4fba09=a65_0x40cc67;for(const _0x59b50c of['id',_0x4fba09(0xf0),_0x4fba09(0xd4),_0x4fba09(0xeb),_0x4fba09(0xad),_0x4fba09(0xbd)]){if(_0x1e69d6[_0x59b50c]!==undefined&&_0x1e69d6[_0x59b50c]!==null&&_0x1e69d6[_0x59b50c]!=='')fail(_0x52f8c9+'.'+_0x59b50c+_0x4fba09(0xa7));}}function a65_0x2d4a(){const _0x90590c=['\x20references\x20an\x20unknown\x20field.','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','].type\x20is\x20not\x20supported.','datasetCode','entries','expectedLocalKeys','ADDRESS','lookup','string','isFinite','132991BdniAJ','].design.fields','toUpperCase','unresolvedRelations','\x20non-empty\x20strings.','fieldName','name','every','.toField','modelCode','set','Dataset\x20','7060482XPoZzn','kind','relationType','2qJAeVH','\x20must\x20contain\x20','MULTI_SELECT','].design','keys','type','fields','USER',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20is\x20required.','dataset','.toDatasetKey','confidence','has','3044776CamRmJ','metrics','createdDatasets[].localKey','modelId','\x20objects.','refTableLabelField','source','join','createdDatasets','fromDatasetCode','948206yczpkR','.reason','toDatasetCode','some','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','].design.dataset','TEXT','].localKey','.confidence','BOOLEAN','split','length','SELECT','reason','].reason','fromDatasetKey','code','isArray','].design.dataset\x20must\x20be\x20an\x20object.','size','cardinality','datasetId','validation','fieldCode','4sQmUfT','].confidence','relations','fromField','].design.fields[','toDatasetKey','design','localKey','refTable','1285791hmhurX','get','number','relations[',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','trim','MANY_TO_ONE','dataset-batch','createdRelations','1665102TAeWsH','DATETIME','add','DATE_RANGE','toLowerCase','test','datasets[','object','\x20must\x20be\x20between\x200\x20and\x201.','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','datasets','1625565CRiubi','.fromDatasetKey','expectedRelations','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','fieldType','NUMBER'];a65_0x2d4a=function(){return _0x90590c;};return a65_0x2d4a();}function objectArray(_0x31c57e,_0x467acf,_0x57ebcb,_0xc24053){const _0x46f15d=a65_0x40cc67;return(!Array[_0x46f15d(0xec)](_0x31c57e)||_0x31c57e[_0x46f15d(0xe6)]<_0x57ebcb||_0x31c57e[_0x46f15d(0xe6)]>_0xc24053||_0x31c57e[_0x46f15d(0xde)](_0x42d6f8=>!isObject(_0x42d6f8)))&&fail(_0x467acf+_0x46f15d(0xc4)+_0x57ebcb+'..'+_0xc24053+_0x46f15d(0xd5)),_0x31c57e;}function stringArray(_0x314d25,_0x293d72,_0x3a45c7,_0x40fd83){const _0x3dc952=a65_0x40cc67;return(!Array[_0x3dc952(0xec)](_0x314d25)||_0x314d25[_0x3dc952(0xe6)]<_0x3a45c7||_0x314d25[_0x3dc952(0xe6)]>_0x40fd83||_0x314d25[_0x3dc952(0xde)](_0x42d212=>typeof _0x42d212!==_0x3dc952(0xb2)||!_0x42d212[_0x3dc952(0x101)]()))&&fail(_0x293d72+'\x20must\x20contain\x20'+_0x3a45c7+'..'+_0x40fd83+_0x3dc952(0xb8)),_0x314d25;}function a65_0x3897(_0x138e32,_0x3c68ae){_0x138e32=_0x138e32-0x9f;const _0x2d4a59=a65_0x2d4a();let _0x3897ed=_0x2d4a59[_0x138e32];return _0x3897ed;}function requiredString(_0x32f570,_0x412739){const _0x33f9fc=a65_0x40cc67,_0x245979=stringValue(_0x32f570);if(!_0x245979)fail(_0x412739+_0x33f9fc(0xcc));return _0x245979;}function stringValue(_0x11126e){const _0x492af=a65_0x40cc67;return typeof _0x11126e===_0x492af(0xb2)?_0x11126e[_0x492af(0x101)]():'';}function fieldName(_0x46515c){const _0xc74a9=a65_0x40cc67;return stringValue(_0x46515c[_0xc74a9(0xeb)]??_0x46515c[_0xc74a9(0xf2)]??_0x46515c[_0xc74a9(0xba)]??_0x46515c[_0xc74a9(0xb9)]);}function validateConfidence(_0x120235,_0x7844b5){const _0x37d385=a65_0x40cc67;_0x120235!==undefined&&_0x120235!==null&&(typeof _0x120235!==_0x37d385(0xfe)||!Number[_0x37d385(0xb3)](_0x120235)||_0x120235<0x0||_0x120235>0x1)&&fail(_0x7844b5+_0x37d385(0xa1));}function tuple(..._0x33aea9){const _0x1edb50=a65_0x40cc67;return _0x33aea9['map']((_0x1e24e9,_0x2553cb)=>_0x2553cb===0x1||_0x2553cb===0x3?_0x1e24e9['toLowerCase']():_0x1e24e9)[_0x1edb50(0xd8)]('\x00');}function sameSet(_0x8084f1,_0x4c249b){const _0x35c1ae=a65_0x40cc67;return _0x8084f1[_0x35c1ae(0xee)]===_0x4c249b[_0x35c1ae(0xee)]&&[..._0x8084f1][_0x35c1ae(0xbb)](_0x3e3c23=>_0x4c249b[_0x35c1ae(0xd0)](_0x3e3c23));}function isObject(_0x504c68){const _0x15b6eb=a65_0x40cc67;return typeof _0x504c68===_0x15b6eb(0xa0)&&_0x504c68!==null&&!Array[_0x15b6eb(0xec)](_0x504c68);}function fail(_0x54328e){const _0x269233=a65_0x40cc67;throw CliErrors[_0x269233(0xf1)](_0x54328e);}
|
|
1
|
+
const a65_0x2d6610=a65_0x4c18;(function(_0x59855f,_0x3ee07c){const _0x55905a=a65_0x4c18,_0xbe992d=_0x59855f();while(!![]){try{const _0x443ab8=parseInt(_0x55905a(0x106))/0x1*(-parseInt(_0x55905a(0xfb))/0x2)+-parseInt(_0x55905a(0x110))/0x3+-parseInt(_0x55905a(0x117))/0x4+parseInt(_0x55905a(0x107))/0x5*(-parseInt(_0x55905a(0xc7))/0x6)+parseInt(_0x55905a(0x11c))/0x7+-parseInt(_0x55905a(0xf1))/0x8*(parseInt(_0x55905a(0xbb))/0x9)+parseInt(_0x55905a(0xe9))/0xa;if(_0x443ab8===_0x3ee07c)break;else _0xbe992d['push'](_0xbe992d['shift']());}catch(_0x4d5e6b){_0xbe992d['push'](_0xbe992d['shift']());}}}(a65_0x3dd4,0xf0bca));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x2d6610(0x10a),a65_0x2d6610(0xfc)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x2d6610(0xdf),a65_0x2d6610(0xdc),'DATETIME','BOOLEAN',a65_0x2d6610(0xdb),a65_0x2d6610(0x10b),a65_0x2d6610(0xfe),a65_0x2d6610(0xd1),a65_0x2d6610(0x11b),'UPLOAD']);export function isDatasetBatchDesign(_0x13b2ab){const _0x2850c=a65_0x2d6610;return isObject(_0x13b2ab)&&_0x13b2ab[_0x2850c(0x103)]===_0x2850c(0x115);}export function validateDatasetBatchDesign(_0x154c31){const _0x2d6077=a65_0x2d6610;(!isObject(_0x154c31)||_0x154c31['kind']!==_0x2d6077(0x115))&&fail(_0x2d6077(0xf3));_0x154c31['schemaVersion']!==0x1&&fail(_0x2d6077(0xbc));const _0x10ba14=objectArray(_0x154c31[_0x2d6077(0xe4)],_0x2d6077(0xe4),0x1,0x14),_0x390332=objectArray(_0x154c31[_0x2d6077(0xc1)],'relations',0x0,0xc8),_0x283d09=objectArray(_0x154c31['unresolvedRelations'],_0x2d6077(0x101),0x0,0xc8),_0x213bdf=new Set(),_0x5f1bb3=new Map();for(const [_0x338efb,_0x1b0053]of _0x10ba14[_0x2d6077(0xbf)]()){const _0x4d978e=requiredString(_0x1b0053[_0x2d6077(0xc4)],_0x2d6077(0xec)+_0x338efb+'].localKey');!LOCAL_KEY[_0x2d6077(0x120)](_0x4d978e)&&fail(_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xd3)+LOCAL_KEY['source']+'.');_0x213bdf['has'](_0x4d978e)&&fail('Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.');_0x213bdf[_0x2d6077(0x10f)](_0x4d978e);!isObject(_0x1b0053[_0x2d6077(0xf5)])&&fail('datasets['+_0x338efb+_0x2d6077(0x100));rejectServerDatasetIdentity(_0x1b0053[_0x2d6077(0xf5)],_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xf9));if(!isObject(_0x1b0053['design'][_0x2d6077(0xba)]))fail(_0x2d6077(0xec)+_0x338efb+'].design.dataset\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x1b0053['design'][_0x2d6077(0xba)],'datasets['+_0x338efb+_0x2d6077(0xff)),requiredString(_0x1b0053[_0x2d6077(0xf5)][_0x2d6077(0xba)][_0x2d6077(0xc0)],'datasets['+_0x338efb+'].design.dataset.datasetName');_0x2d6077(0xc1)in _0x1b0053[_0x2d6077(0xf5)]&&(!Array['isArray'](_0x1b0053['design'][_0x2d6077(0xc1)])||_0x1b0053[_0x2d6077(0xf5)][_0x2d6077(0xc1)][_0x2d6077(0xcf)]!==0x0)&&fail(_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xfd));const _0x5e0389=objectArray(_0x1b0053[_0x2d6077(0xf5)][_0x2d6077(0xd8)],_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xb7),0x1,0xc8),_0x24a186=new Map();for(const [_0x1aa46d,_0x36685e]of _0x5e0389[_0x2d6077(0xbf)]()){const _0x47758e=fieldName(_0x36685e);if(!_0x47758e)fail(_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xf4)+_0x1aa46d+_0x2d6077(0x11a));const _0x40df09=_0x47758e['toLowerCase']();if(_0x24a186[_0x2d6077(0xe2)](_0x40df09))fail(_0x2d6077(0x118)+_0x4d978e+_0x2d6077(0x11f));const _0x356dd4=stringValue(_0x36685e[_0x2d6077(0xb9)]??_0x36685e[_0x2d6077(0xce)])[_0x2d6077(0xe3)]();if(!SUPPORTED_FIELD_TYPES[_0x2d6077(0xe2)](_0x356dd4))fail(_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xf4)+_0x1aa46d+_0x2d6077(0xe8));_0x24a186[_0x2d6077(0xcd)](_0x40df09,_0x356dd4),[_0x36685e[_0x2d6077(0x116)],_0x36685e['refTableField'],_0x36685e['refTableLabelField']][_0x2d6077(0x114)](_0x3eb8ee=>stringValue(_0x3eb8ee))&&fail(_0x2d6077(0xec)+_0x338efb+_0x2d6077(0xf4)+_0x1aa46d+_0x2d6077(0xeb));}_0x5f1bb3['set'](_0x4d978e,_0x24a186);}const _0x1acc8a=new Set(),_0x25dfc3=new Set();for(const [_0x331e6f,_0x37dc9f]of _0x390332['entries']()){const _0x13222e=validateRelation(_0x37dc9f,_0x331e6f,_0x213bdf,_0x5f1bb3);if(_0x1acc8a[_0x2d6077(0xe2)](_0x13222e))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0x1acc8a['add'](_0x13222e);const _0x2b3622=_0x13222e[_0x2d6077(0xd2)]('\x00',0x2)[_0x2d6077(0x10d)]('\x00');if(_0x25dfc3['has'](_0x2b3622))fail(_0x2d6077(0xb5));_0x25dfc3[_0x2d6077(0x10f)](_0x2b3622);}for(const [_0x1f4b50,_0x582700]of _0x283d09[_0x2d6077(0xbf)]()){requiredString(_0x582700[_0x2d6077(0x119)],_0x2d6077(0x11e)+_0x1f4b50+'].reason'),validateConfidence(_0x582700[_0x2d6077(0xed)],_0x2d6077(0x11e)+_0x1f4b50+_0x2d6077(0xc2));}return _0x154c31;}export function reconcileBatchResult(_0x1c6d31){const _0x3365d0=a65_0x2d6610;if(!isObject(_0x1c6d31))return null;try{const _0x3799a8=stringArray(_0x1c6d31[_0x3365d0(0xfa)],_0x3365d0(0xfa),0x1,0x14),_0x28cb37=new Set(_0x3799a8);if(_0x28cb37[_0x3365d0(0xde)]!==_0x3799a8['length']||_0x3799a8['some'](_0x3de34a=>!LOCAL_KEY[_0x3365d0(0x120)](_0x3de34a)))return null;const _0x5a655a=objectArray(_0x1c6d31[_0x3365d0(0xef)],_0x3365d0(0xef),0x1,0x14),_0x1b89ae=new Map(),_0x4d5f8d=new Set();for(const _0x135ade of _0x5a655a){const _0x317259=requiredString(_0x135ade[_0x3365d0(0xc4)],_0x3365d0(0xd7)),_0x226702=requiredString(_0x135ade[_0x3365d0(0xd5)]??_0x135ade[_0x3365d0(0xee)],_0x3365d0(0xb3));if(_0x1b89ae[_0x3365d0(0xe2)](_0x317259)||_0x4d5f8d[_0x3365d0(0xe2)](_0x226702))return null;_0x1b89ae[_0x3365d0(0xcd)](_0x317259,_0x226702),_0x4d5f8d[_0x3365d0(0x10f)](_0x226702);}if(!sameSet(_0x28cb37,new Set(_0x1b89ae[_0x3365d0(0xe5)]())))return null;const _0x1ea83d=objectArray(_0x1c6d31[_0x3365d0(0xf6)],_0x3365d0(0xf6),0x0,0xc8),_0x109cd1=objectArray(_0x1c6d31['createdRelations'],_0x3365d0(0xcc),0x0,0xc8),_0x279fee=relationTupleSet(_0x1ea83d,![],_0x1b89ae),_0x28f962=relationTupleSet(_0x109cd1,!![],_0x1b89ae);if(!_0x279fee||!_0x28f962||!sameSet(_0x279fee,_0x28f962))return null;const _0x1e21ea=objectArray(_0x1c6d31[_0x3365d0(0x101)],_0x3365d0(0x101),0x0,0xc8);return{'expectedLocalKeys':_0x3799a8,'expectedRelations':_0x1ea83d,'createdDatasets':_0x5a655a,'createdRelations':_0x109cd1,'unresolvedRelations':_0x1e21ea,...isObject(_0x1c6d31[_0x3365d0(0xea)])?{'metrics':_0x1c6d31[_0x3365d0(0xea)]}:{}};}catch{return null;}}function validateRelation(_0x386292,_0x37b0b6,_0x52636b,_0x3b1750){const _0xf344a2=a65_0x2d6610,_0x3166ec=_0xf344a2(0xf0)+_0x37b0b6+']',_0x2f4e72=requiredString(_0x386292[_0xf344a2(0xd0)],_0x3166ec+'.fromDatasetKey'),_0x291e37=requiredString(_0x386292[_0xf344a2(0xe0)],_0x3166ec+_0xf344a2(0x10c)),_0x59864d=requiredString(_0x386292[_0xf344a2(0xca)],_0x3166ec+_0xf344a2(0xe7))[_0xf344a2(0xc6)](),_0x4c6edb=requiredString(_0x386292['toField'],_0x3166ec+'.toField')[_0xf344a2(0xc6)]();if(!_0x52636b['has'](_0x2f4e72)||!_0x52636b[_0xf344a2(0xe2)](_0x291e37))fail(_0x3166ec+_0xf344a2(0x112));const _0x469f12=_0x3b1750[_0xf344a2(0xf7)](_0x2f4e72)?.['get'](_0x59864d),_0x26f69c=_0x3b1750[_0xf344a2(0xf7)](_0x291e37)?.[_0xf344a2(0xf7)](_0x4c6edb);if(_0x469f12===undefined||_0x26f69c===undefined)fail(_0x3166ec+_0xf344a2(0xda));if(_0x469f12&&_0x26f69c&&_0x469f12!==_0x26f69c)fail(_0x3166ec+_0xf344a2(0xe1));const _0x1744dd=stringValue(_0x386292['relationType'])||_0xf344a2(0xd9);if(_0x1744dd!=='lookup')fail(_0x3166ec+_0xf344a2(0xdd));const _0x173d46=stringValue(_0x386292['cardinality'])||_0xf344a2(0x10a);if(!SUPPORTED_CARDINALITIES['has'](_0x173d46))fail(_0x3166ec+_0xf344a2(0xd6));return requiredString(_0x386292[_0xf344a2(0x119)],_0x3166ec+_0xf344a2(0x108)),validateConfidence(_0x386292['confidence'],_0x3166ec+_0xf344a2(0xe6)),tuple(_0x2f4e72,_0x59864d,_0x291e37,_0x4c6edb,'lookup',_0x173d46);}function relationTupleSet(_0x69db43,_0x125a42,_0x4b2cd2){const _0x25b277=a65_0x2d6610,_0x899cd7=new Set();for(const _0x54722f of _0x69db43){const _0x1b6c36=stringValue(_0x54722f['fromDatasetKey']),_0x1e79e4=stringValue(_0x54722f[_0x25b277(0xe0)]),_0x15f382=stringValue(_0x54722f[_0x25b277(0xca)])[_0x25b277(0xc6)](),_0x140fdf=stringValue(_0x54722f[_0x25b277(0x10e)])[_0x25b277(0xc6)](),_0x2b2f4f=stringValue(_0x54722f['relationType']),_0x3fda05=stringValue(_0x54722f[_0x25b277(0xb8)]);if(!_0x1b6c36||!_0x1e79e4||!_0x15f382||!_0x140fdf||_0x2b2f4f!==_0x25b277(0xd9)||!SUPPORTED_CARDINALITIES[_0x25b277(0xe2)](_0x3fda05))return null;if(!_0x4b2cd2[_0x25b277(0xe2)](_0x1b6c36)||!_0x4b2cd2[_0x25b277(0xe2)](_0x1e79e4))return null;if(_0x125a42&&(stringValue(_0x54722f[_0x25b277(0xc9)])!==_0x4b2cd2[_0x25b277(0xf7)](_0x1b6c36)||stringValue(_0x54722f['toDatasetCode'])!==_0x4b2cd2[_0x25b277(0xf7)](_0x1e79e4)))return null;const _0x3e80ab=tuple(_0x1b6c36,_0x15f382,_0x1e79e4,_0x140fdf,_0x2b2f4f,_0x3fda05);if(_0x899cd7[_0x25b277(0xe2)](_0x3e80ab))return null;_0x899cd7[_0x25b277(0x10f)](_0x3e80ab);}return _0x899cd7;}function rejectServerDatasetIdentity(_0x1853d1,_0x3455c5){const _0x55d908=a65_0x2d6610;for(const _0xc20d31 of['id',_0x55d908(0xd4),_0x55d908(0x105),_0x55d908(0xd5),_0x55d908(0xee),_0x55d908(0xc5)]){if(_0x1853d1[_0xc20d31]!==undefined&&_0x1853d1[_0xc20d31]!==null&&_0x1853d1[_0xc20d31]!=='')fail(_0x3455c5+'.'+_0xc20d31+_0x55d908(0xcb));}}function objectArray(_0x2ff4f4,_0x3eb26b,_0x449be4,_0x2d69b4){const _0x529050=a65_0x2d6610;return(!Array[_0x529050(0x111)](_0x2ff4f4)||_0x2ff4f4[_0x529050(0xcf)]<_0x449be4||_0x2ff4f4[_0x529050(0xcf)]>_0x2d69b4||_0x2ff4f4['some'](_0x2b9dff=>!isObject(_0x2b9dff)))&&fail(_0x3eb26b+'\x20must\x20contain\x20'+_0x449be4+'..'+_0x2d69b4+_0x529050(0xbd)),_0x2ff4f4;}function stringArray(_0x2e5a0f,_0x13140f,_0x2d8132,_0x3c630b){const _0x23daff=a65_0x2d6610;return(!Array['isArray'](_0x2e5a0f)||_0x2e5a0f['length']<_0x2d8132||_0x2e5a0f[_0x23daff(0xcf)]>_0x3c630b||_0x2e5a0f[_0x23daff(0x114)](_0x27c17d=>typeof _0x27c17d!==_0x23daff(0xb6)||!_0x27c17d[_0x23daff(0xbe)]()))&&fail(_0x13140f+_0x23daff(0xf2)+_0x2d8132+'..'+_0x3c630b+_0x23daff(0x104)),_0x2e5a0f;}function a65_0x4c18(_0x40c397,_0x48ef18){_0x40c397=_0x40c397-0xb3;const _0x3dd451=a65_0x3dd4();let _0x4c181f=_0x3dd451[_0x40c397];return _0x4c181f;}function requiredString(_0x20d9ce,_0x56b54c){const _0xfa39ae=a65_0x2d6610,_0x908af4=stringValue(_0x20d9ce);if(!_0x908af4)fail(_0x56b54c+_0xfa39ae(0x11d));return _0x908af4;}function stringValue(_0x4f52f0){const _0xae2aaa=a65_0x2d6610;return typeof _0x4f52f0===_0xae2aaa(0xb6)?_0x4f52f0[_0xae2aaa(0xbe)]():'';}function fieldName(_0x2cd1f5){const _0x3b6153=a65_0x2d6610;return stringValue(_0x2cd1f5[_0x3b6153(0xd5)]??_0x2cd1f5[_0x3b6153(0xb4)]??_0x2cd1f5['name']??_0x2cd1f5[_0x3b6153(0xc3)]);}function a65_0x3dd4(){const _0x58e51c=['].design.fields','cardinality','type','dataset','2523978dsCshJ','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','\x20objects.','trim','entries','datasetName','relations','].confidence','fieldName','localKey','modelCode','toLowerCase','6nSSfud','isFinite','fromDatasetCode','fromField','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','createdRelations','set','fieldType','length','fromDatasetKey','USER','split','].localKey\x20must\x20match\x20','datasetId','code','.cardinality\x20is\x20not\x20supported.','createdDatasets[].localKey','fields','lookup','\x20references\x20an\x20unknown\x20field.','SELECT','NUMBER','.relationType\x20must\x20be\x20\x22lookup\x22.','size','TEXT','toDatasetKey','\x20connects\x20incompatible\x20field\x20types.','has','toUpperCase','datasets','keys','.confidence','.fromField','].type\x20is\x20not\x20supported.','81154810RuJONm','metrics',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','datasets[','confidence','datasetCode','createdDatasets','relations[','56yjeGeX','\x20must\x20contain\x20','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','].design.fields[','design','expectedRelations','get','object','].design','expectedLocalKeys','2NePJza','ONE_TO_ONE','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','DATE_RANGE','].design.dataset','].design\x20must\x20be\x20an\x20object.','unresolvedRelations','\x20must\x20be\x20between\x200\x20and\x201.','kind','\x20non-empty\x20strings.','modelId','1862404etfQjl','9183305xSMUQg','.reason','validation','MANY_TO_ONE','MULTI_SELECT','.toDatasetKey','join','toField','add','1903248gxlnpc','isArray','\x20references\x20an\x20unknown\x20dataset\x20localKey.','every','some','dataset-batch','refTable','7301188nzhygt','Dataset\x20','reason',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','ADDRESS','6947143CyraCU','\x20is\x20required.','unresolvedRelations[','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','test','createdDatasets[].code','fieldCode','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','string'];a65_0x3dd4=function(){return _0x58e51c;};return a65_0x3dd4();}function validateConfidence(_0x43c53d,_0x8733a0){const _0x58ebb9=a65_0x2d6610;_0x43c53d!==undefined&&_0x43c53d!==null&&(typeof _0x43c53d!=='number'||!Number[_0x58ebb9(0xc8)](_0x43c53d)||_0x43c53d<0x0||_0x43c53d>0x1)&&fail(_0x8733a0+_0x58ebb9(0x102));}function tuple(..._0x514c86){const _0x32ad0a=a65_0x2d6610;return _0x514c86['map']((_0x4b3b05,_0x3bf5df)=>_0x3bf5df===0x1||_0x3bf5df===0x3?_0x4b3b05[_0x32ad0a(0xc6)]():_0x4b3b05)['join']('\x00');}function sameSet(_0x118edc,_0x5e9baf){const _0x2d8a67=a65_0x2d6610;return _0x118edc[_0x2d8a67(0xde)]===_0x5e9baf[_0x2d8a67(0xde)]&&[..._0x118edc][_0x2d8a67(0x113)](_0x4b085f=>_0x5e9baf['has'](_0x4b085f));}function isObject(_0x4b90c3){const _0x2dd177=a65_0x2d6610;return typeof _0x4b90c3===_0x2dd177(0xf8)&&_0x4b90c3!==null&&!Array[_0x2dd177(0x111)](_0x4b90c3);}function fail(_0x2a4b1e){const _0x306fc4=a65_0x2d6610;throw CliErrors[_0x306fc4(0x109)](_0x2a4b1e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0xc0e25f=a66_0x3729;(function(_0x54f6be,_0x4b65b7){const _0x384a11=a66_0x3729,_0x2b1af1=_0x54f6be();while(!![]){try{const _0x2db173=parseInt(_0x384a11(0xde))/0x1+-parseInt(_0x384a11(0xcf))/0x2+-parseInt(_0x384a11(0xc2))/0x3*(parseInt(_0x384a11(0xe9))/0x4)+parseInt(_0x384a11(0xf7))/0x5*(parseInt(_0x384a11(0xdf))/0x6)+-parseInt(_0x384a11(0xf1))/0x7*(parseInt(_0x384a11(0xe6))/0x8)+-parseInt(_0x384a11(0xc3))/0x9+parseInt(_0x384a11(0xe5))/0xa;if(_0x2db173===_0x4b65b7)break;else _0x2b1af1['push'](_0x2b1af1['shift']());}catch(_0x9333af){_0x2b1af1['push'](_0x2b1af1['shift']());}}}(a66_0x1914,0x3a6be));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_0xc0e25f(0xd5),METADATA_BACKEND_PATH=a66_0xc0e25f(0xea),UNGROUPED_BUSINESS_GROUP=a66_0xc0e25f(0xf4);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x4d5b97,input:_0x57f7d8,dryRun:_0x4a3738}){const _0x256b7c=a66_0xc0e25f;validateInput(_0x57f7d8);const _0x3f2834=normalizeBusinessGroupArgument(_0x57f7d8[_0x256b7c(0xdd)]),_0xeb557b=await getDatasetDetail(_0x57f7d8[_0x256b7c(0xd8)]),_0x122210=resolveBusinessGroupDataset(_0xeb557b,_0x57f7d8['code']);assertBusinessGroupUpdateSupported(_0x122210,_0x3f2834);const _0x1f4094=loadCurrentBusinessGroup(_0xeb557b,_0x122210);assertExpectedBusinessGroup(_0x1f4094,_0x57f7d8[_0x256b7c(0xd0)]);const _0x77fadc=buildBackendPlan(_0x4d5b97,_0x122210,_0x3f2834),_0x489289=_0x1f4094!==_0x3f2834;let _0x4ca224;if(_0x489289&&!_0x4a3738){_0x77fadc['kind']==='db-table'?await updateDbTableBusinessGroup(_0x77fadc[_0x256b7c(0xf5)]):await updateErBusinessGroup(_0x77fadc[_0x256b7c(0xf5)]);const _0x22d232=await getDatasetDetail(_0x122210[_0x256b7c(0xd8)]),_0x14a0bd=resolveBusinessGroupDataset(_0x22d232,_0x122210['code']),_0x3cdf4d=loadCurrentBusinessGroup(_0x22d232,_0x14a0bd);if(_0x3cdf4d!==_0x3f2834)throw CliErrors[_0x256b7c(0xcd)](_0x256b7c(0xf3),_0x256b7c(0xba)+JSON[_0x256b7c(0xdb)](displayBusinessGroup(_0x3f2834))+_0x256b7c(0xc1)+JSON['stringify'](displayBusinessGroup(_0x3cdf4d))+'.');_0x4ca224={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x3cdf4d)}};}else!_0x489289&&(_0x4ca224={'verified':!![],'status':_0x256b7c(0xbf),'afterReadback':{'businessGroup':displayBusinessGroup(_0x1f4094)}});const _0xda3e44={'operation':_0x256b7c(0xd2),'appCode':_0x4d5b97,'selector':{'code':_0x122210[_0x256b7c(0xd8)]},'dataset':{'id':_0x122210['id'],'code':_0x122210[_0x256b7c(0xd8)],'name':_0x122210['name'],'sourceType':_0x122210[_0x256b7c(0xd7)]},'before':{'businessGroup':displayBusinessGroup(_0x1f4094)},'after':{'businessGroup':displayBusinessGroup(_0x3f2834)},'changed':_0x489289,'dryRun':_0x4a3738,'submitted':_0x489289&&!_0x4a3738,'backend':{'method':_0x77fadc[_0x256b7c(0xbc)],'path':_0x77fadc[_0x256b7c(0xdc)],'payload':_0x77fadc['payload']},..._0x4ca224?{'verification':_0x4ca224}:{},'warnings':[]};return{'ok':!![],'data':_0xda3e44,'message':_0x489289?_0x4a3738?_0x256b7c(0xe2)+_0x122210['code']:_0x256b7c(0xf2)+_0x122210['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x122210[_0x256b7c(0xd8)]};}export const datasetBusinessGroupUpdate={'service':a66_0xc0e25f(0xca),'command':a66_0xc0e25f(0xf6),'description':a66_0xc0e25f(0xe7),'risk':'write','flags':[CODE_FLAG,{'name':a66_0xc0e25f(0xee),'type':a66_0xc0e25f(0xc6),'required':!![],'description':a66_0xc0e25f(0xfa)},{'name':a66_0xc0e25f(0xd3),'type':'string','required':![],'description':a66_0xc0e25f(0xe1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x276d4d){validateInput(readBusinessGroupUpdateInput(_0x276d4d));},async 'dryRun'(_0x264930){const _0x2b97c7=a66_0xc0e25f,_0x58e77c=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x264930['appCode'],'input':readBusinessGroupUpdateInput(_0x264930),'dryRun':!![]});return{'method':_0x58e77c[_0x2b97c7(0xb7)][_0x2b97c7(0xd4)][_0x2b97c7(0xbc)],'url':_0x58e77c[_0x2b97c7(0xb7)][_0x2b97c7(0xd4)][_0x2b97c7(0xdc)],'body':_0x58e77c[_0x2b97c7(0xb7)][_0x2b97c7(0xd4)]['payload'],'description':_0x58e77c[_0x2b97c7(0xe4)],..._0x58e77c[_0x2b97c7(0xb7)]};},async 'execute'(_0x102e10){const _0x36e3a2=a66_0xc0e25f;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x102e10[_0x36e3a2(0xed)],'input':readBusinessGroupUpdateInput(_0x102e10),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x5170be){const _0x33de29=a66_0xc0e25f,_0x41c093=_0x5170be[_0x33de29(0xb9)](_0x33de29(0xd3));return{'code':trim(_0x5170be[_0x33de29(0xb9)](_0x33de29(0xd8))),'businessGroup':_0x5170be[_0x33de29(0xb9)]('business-group'),'expectBusinessGroup':_0x41c093===undefined||_0x41c093===''?undefined:_0x41c093};}function validateInput(_0x16fe54){const _0x4a9930=a66_0xc0e25f;if(!trim(_0x16fe54[_0x4a9930(0xd8)]))throw CliErrors[_0x4a9930(0xb8)](_0x4a9930(0xf9));if(_0x16fe54['businessGroup']===undefined)throw CliErrors[_0x4a9930(0xb8)]('--business-group\x20is\x20required');if(!trim(_0x16fe54[_0x4a9930(0xdd)]))throw CliErrors['validation']('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x95bfce,_0x453be5){const _0x5afe84=a66_0xc0e25f;if(_0x95bfce[_0x5afe84(0xd7)]==='DB_TABLE'&&!_0x453be5)throw CliErrors['validation']('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x3f5b9f,_0x10c0f4){const _0x3141f3=a66_0xc0e25f,_0x5bf215=asPlainObject(_0x3f5b9f[_0x3141f3(0xca)]),_0x2babed=asPlainObject(_0x3f5b9f[_0x3141f3(0xc9)]),_0x457323=resolveSourceType(_0x3f5b9f,_0x5bf215,_0x2babed),_0x3ac320=firstString(_0x3f5b9f['modelCode'],_0x3f5b9f[_0x3141f3(0xd8)],_0x5bf215[_0x3141f3(0xbe)],_0x10c0f4)||_0x10c0f4;return{'id':firstNumber(_0x3f5b9f[_0x3141f3(0xe3)],_0x3f5b9f['id'],_0x5bf215[_0x3141f3(0xec)])??firstString(_0x3f5b9f['modelId'],_0x3f5b9f['id'],_0x5bf215[_0x3141f3(0xec)])??null,'code':_0x3ac320,'name':firstString(_0x3f5b9f[_0x3141f3(0xeb)],_0x5bf215['datasetName'],_0x5bf215['name'])||null,'sourceType':_0x457323,'dbTableSelector':_0x457323==='DB_TABLE'?{'dbLinkId':firstNumber(_0x2babed[_0x3141f3(0xef)]),'tableName':firstString(_0x2babed[_0x3141f3(0xc5)])||null}:null};}function resolveSourceType(_0x275467,_0x4e2d24,_0x26c466){const _0x38c660=a66_0xc0e25f,_0x2fec96=firstString(_0x275467[_0x38c660(0xd1)],_0x275467[_0x38c660(0xd7)],_0x4e2d24['source'],_0x4e2d24['sourceType'])?.[_0x38c660(0xe0)]()['toUpperCase']();if(_0x2fec96===_0x38c660(0xb6)||_0x2fec96===_0x38c660(0xcc))return _0x2fec96;if(Object[_0x38c660(0xda)](_0x26c466)[_0x38c660(0xd9)]>0x0)return _0x38c660(0xb6);throw CliErrors[_0x38c660(0xb8)](_0x38c660(0xf8));}function loadCurrentBusinessGroup(_0x2701da,_0x4756ce){const _0x12f749=a66_0xc0e25f,_0x331b1e=readBusinessGroupFromDatasetDetail(_0x2701da,_0x4756ce[_0x12f749(0xd7)]);if(_0x331b1e['found'])return normalizeBusinessGroup(_0x331b1e[_0x12f749(0xe8)]);return'';}function readBusinessGroupFromDatasetDetail(_0x1491ad,_0x1cba9b){const _0x5b9658=a66_0xc0e25f,_0x57068d=asPlainObject(_0x1491ad['dataset']),_0x36ed59=firstPresent(_0x1491ad[_0x5b9658(0xdd)]);if(_0x36ed59[_0x5b9658(0xd6)])return _0x36ed59;const _0x1f8d13=firstPresent(_0x57068d[_0x5b9658(0xdd)]);if(_0x1f8d13[_0x5b9658(0xd6)])return _0x1f8d13;if(_0x1cba9b===_0x5b9658(0xb6))return{'found':![]};const _0x22b536=readBusinessGroupFromExtend(_0x1491ad['extend']);if(_0x22b536[_0x5b9658(0xd6)])return _0x22b536;return readBusinessGroupFromExtend(_0x57068d['extend']);}function readBusinessGroupFromExtend(_0x15628b){const _0x5a1ff6=a66_0xc0e25f;if(_0x15628b===undefined||_0x15628b===null||_0x15628b==='')return{'found':![]};if(typeof _0x15628b==='string')try{const _0x4e3ce3=JSON['parse'](_0x15628b);return readBusinessGroupFromExtend(_0x4e3ce3);}catch{return{'found':![]};}const _0x3052fc=asPlainObject(_0x15628b);if(Object[_0x5a1ff6(0xf0)]['hasOwnProperty'][_0x5a1ff6(0xc0)](_0x3052fc,_0x5a1ff6(0xdd)))return{'found':!![],'value':_0x3052fc[_0x5a1ff6(0xdd)]};return{'found':![]};}function firstPresent(..._0x2c284f){for(const _0x5bd57b of _0x2c284f){if(_0x5bd57b!==undefined&&_0x5bd57b!==null)return{'found':!![],'value':_0x5bd57b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4ca074,_0x2fb6ff){const _0xa1f91=a66_0xc0e25f;if(_0x2fb6ff===undefined)return;const _0x14d8d6=normalizeBusinessGroupArgument(_0x2fb6ff);if(_0x4ca074!==_0x14d8d6)throw CliErrors[_0xa1f91(0xb8)]('Expectation\x20mismatch\x20at\x20businessGroup',_0xa1f91(0xba)+JSON[_0xa1f91(0xdb)](_0x14d8d6)+_0xa1f91(0xc1)+JSON['stringify'](_0x4ca074));}function buildBackendPlan(_0x199487,_0xfcfc04,_0x54c10b){const _0x4d8c47=a66_0xc0e25f;if(_0xfcfc04[_0x4d8c47(0xd7)]===_0x4d8c47(0xb6)){if(!_0xfcfc04['dbTableSelector']||_0xfcfc04['dbTableSelector'][_0x4d8c47(0xbb)]===null||!_0xfcfc04[_0x4d8c47(0xc7)]['tableName'])throw CliErrors[_0x4d8c47(0xb8)]('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x4d8c47(0xcb));return{'kind':_0x4d8c47(0xce),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0xfcfc04[_0x4d8c47(0xc7)][_0x4d8c47(0xbb)],'tableName':_0xfcfc04[_0x4d8c47(0xc7)][_0x4d8c47(0xc5)],'businessGroup':_0x54c10b}};}return{'kind':'metadata','method':_0x4d8c47(0xc4),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x199487,'datasetCode':_0xfcfc04[_0x4d8c47(0xd8)],'businessGroup':_0x54c10b}};}function normalizeBusinessGroup(_0x1fec36){const _0x14af8a=a66_0xc0e25f;if(_0x1fec36===undefined||_0x1fec36===null)return'';return String(_0x1fec36)[_0x14af8a(0xe0)]();}function normalizeBusinessGroupArgument(_0x24d611){const _0xcd0478=normalizeBusinessGroup(_0x24d611);return _0xcd0478===UNGROUPED_BUSINESS_GROUP?'':_0xcd0478;}function displayBusinessGroup(_0x3841a9){return _0x3841a9||UNGROUPED_BUSINESS_GROUP;}function a66_0x3729(_0x29709e,_0x46caf2){_0x29709e=_0x29709e-0xb5;const _0x191466=a66_0x1914();let _0x37290c=_0x191466[_0x29709e];return _0x37290c;}function asPlainObject(_0x4c2695){const _0x5e69fa=a66_0xc0e25f;if(!_0x4c2695||typeof _0x4c2695!==_0x5e69fa(0xb5)||Array[_0x5e69fa(0xbd)](_0x4c2695))return{};return _0x4c2695;}function a66_0x1914(){const _0x18e224=['trim','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','modelId','message','8272990jOVwgj','38992qmHOOJ','Update\x20business\x20scenario\x20group','value','267356GqtZAw','/smartapi/question/er-config/business-group/edit','name','datasetId','appCode','business-group','dbId','prototype','553dFqFVS','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','ungrouped','payload','business-group-update','15BeSfHs','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','--code\x20is\x20required','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','object','DB_TABLE','data','validation','str','Expected\x20','dbLinkId','method','isArray','datasetCode','unchanged','call',',\x20actual\x20','3piZIfr','2726820BBccMx','POST','tableName','string','dbTableSelector','number','dbtableConfig','dataset','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','METADATA','apiError','db-table','937238OycyeK','expectBusinessGroup','source','update','expect-business-group','backend','/smartapi/dblink/updateTableBusinessGroup','found','sourceType','code','length','keys','stringify','path','businessGroup','443170MposwF','384618CcAwWb'];a66_0x1914=function(){return _0x18e224;};return a66_0x1914();}function firstString(..._0x3b54d5){const _0x1a1fbd=a66_0xc0e25f;for(const _0x2b96d8 of _0x3b54d5){if(typeof _0x2b96d8===_0x1a1fbd(0xc6)&&_0x2b96d8[_0x1a1fbd(0xe0)]())return _0x2b96d8[_0x1a1fbd(0xe0)]();if(typeof _0x2b96d8===_0x1a1fbd(0xc8)&&Number['isFinite'](_0x2b96d8))return String(_0x2b96d8);}return undefined;}function firstNumber(..._0x4e0e26){const _0x2d11ec=a66_0xc0e25f;for(const _0x348c26 of _0x4e0e26){if(typeof _0x348c26===_0x2d11ec(0xc8)&&Number['isFinite'](_0x348c26))return _0x348c26;if(typeof _0x348c26===_0x2d11ec(0xc6)&&_0x348c26['trim']()&&Number['isFinite'](Number(_0x348c26)))return Number(_0x348c26);}return null;}function trim(_0xb46a9f){const _0x5f4379=a66_0xc0e25f;return String(_0xb46a9f||'')[_0x5f4379(0xe0)]();}
|
|
1
|
+
const a66_0x2abea9=a66_0x3419;(function(_0x1c210e,_0x4b0ae7){const _0x165b5c=a66_0x3419,_0x3c2a8b=_0x1c210e();while(!![]){try{const _0x155128=parseInt(_0x165b5c(0x1c9))/0x1*(parseInt(_0x165b5c(0x207))/0x2)+parseInt(_0x165b5c(0x205))/0x3+parseInt(_0x165b5c(0x1fa))/0x4*(parseInt(_0x165b5c(0x1e6))/0x5)+parseInt(_0x165b5c(0x1e1))/0x6+parseInt(_0x165b5c(0x1ec))/0x7+parseInt(_0x165b5c(0x1de))/0x8*(-parseInt(_0x165b5c(0x1ba))/0x9)+parseInt(_0x165b5c(0x1f4))/0xa*(-parseInt(_0x165b5c(0x1bf))/0xb);if(_0x155128===_0x4b0ae7)break;else _0x3c2a8b['push'](_0x3c2a8b['shift']());}catch(_0x1816e8){_0x3c2a8b['push'](_0x3c2a8b['shift']());}}}(a66_0x30a4,0x27cf9));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=a66_0x2abea9(0x1f1),UNGROUPED_BUSINESS_GROUP=a66_0x2abea9(0x1ee);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x575b37,input:_0x3eb1d9,dryRun:_0x13443d}){const _0xc2537b=a66_0x2abea9;validateInput(_0x3eb1d9);const _0x1a3c2b=normalizeBusinessGroupArgument(_0x3eb1d9[_0xc2537b(0x1d1)]),_0x4b4568=await getDatasetDetail(_0x3eb1d9[_0xc2537b(0x1db)]),_0x48ca29=resolveBusinessGroupDataset(_0x4b4568,_0x3eb1d9[_0xc2537b(0x1db)]);assertBusinessGroupUpdateSupported(_0x48ca29,_0x1a3c2b);const _0x272859=loadCurrentBusinessGroup(_0x4b4568,_0x48ca29);assertExpectedBusinessGroup(_0x272859,_0x3eb1d9['expectBusinessGroup']);const _0x30d8b2=buildBackendPlan(_0x575b37,_0x48ca29,_0x1a3c2b),_0x42b2d1=_0x272859!==_0x1a3c2b;let _0x1aa16e;if(_0x42b2d1&&!_0x13443d){_0x30d8b2[_0xc2537b(0x203)]===_0xc2537b(0x1dd)?await updateDbTableBusinessGroup(_0x30d8b2[_0xc2537b(0x206)]):await updateErBusinessGroup(_0x30d8b2[_0xc2537b(0x206)]);const _0x434d2a=await getDatasetDetail(_0x48ca29[_0xc2537b(0x1db)]),_0x452a09=resolveBusinessGroupDataset(_0x434d2a,_0x48ca29['code']),_0x3da49b=loadCurrentBusinessGroup(_0x434d2a,_0x452a09);if(_0x3da49b!==_0x1a3c2b)throw CliErrors[_0xc2537b(0x1c1)](_0xc2537b(0x1e7),'Expected\x20'+JSON[_0xc2537b(0x1cb)](displayBusinessGroup(_0x1a3c2b))+_0xc2537b(0x1e0)+JSON[_0xc2537b(0x1cb)](displayBusinessGroup(_0x3da49b))+'.');_0x1aa16e={'verified':!![],'status':_0xc2537b(0x1dc),'afterReadback':{'businessGroup':displayBusinessGroup(_0x3da49b)}};}else!_0x42b2d1&&(_0x1aa16e={'verified':!![],'status':_0xc2537b(0x1f7),'afterReadback':{'businessGroup':displayBusinessGroup(_0x272859)}});const _0x12f7ce={'operation':_0xc2537b(0x1e8),'appCode':_0x575b37,'selector':{'code':_0x48ca29[_0xc2537b(0x1db)]},'dataset':{'id':_0x48ca29['id'],'code':_0x48ca29[_0xc2537b(0x1db)],'name':_0x48ca29['name'],'sourceType':_0x48ca29['sourceType']},'before':{'businessGroup':displayBusinessGroup(_0x272859)},'after':{'businessGroup':displayBusinessGroup(_0x1a3c2b)},'changed':_0x42b2d1,'dryRun':_0x13443d,'submitted':_0x42b2d1&&!_0x13443d,'backend':{'method':_0x30d8b2['method'],'path':_0x30d8b2[_0xc2537b(0x1c2)],'payload':_0x30d8b2[_0xc2537b(0x206)]},..._0x1aa16e?{'verification':_0x1aa16e}:{},'warnings':[]};return{'ok':!![],'data':_0x12f7ce,'message':_0x42b2d1?_0x13443d?_0xc2537b(0x1e2)+_0x48ca29[_0xc2537b(0x1db)]:_0xc2537b(0x1c3)+_0x48ca29[_0xc2537b(0x1db)]:_0xc2537b(0x1ca)+_0x48ca29[_0xc2537b(0x1db)]};}export const datasetBusinessGroupUpdate={'service':a66_0x2abea9(0x1c0),'command':a66_0x2abea9(0x1d2),'description':a66_0x2abea9(0x1cc),'risk':a66_0x2abea9(0x1c6),'flags':[CODE_FLAG,{'name':'business-group','type':a66_0x2abea9(0x1da),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it'},{'name':a66_0x2abea9(0x1fc),'type':a66_0x2abea9(0x1da),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49d5fc){validateInput(readBusinessGroupUpdateInput(_0x49d5fc));},async 'dryRun'(_0x3c3834){const _0x2c1a28=a66_0x2abea9,_0x165143=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x3c3834[_0x2c1a28(0x1f2)],'input':readBusinessGroupUpdateInput(_0x3c3834),'dryRun':!![]});return{'method':_0x165143[_0x2c1a28(0x1d0)]['backend'][_0x2c1a28(0x201)],'url':_0x165143['data'][_0x2c1a28(0x1d6)][_0x2c1a28(0x1c2)],'body':_0x165143[_0x2c1a28(0x1d0)][_0x2c1a28(0x1d6)]['payload'],'description':_0x165143[_0x2c1a28(0x1bb)],..._0x165143[_0x2c1a28(0x1d0)]};},async 'execute'(_0x4a52d4){const _0x494a4b=a66_0x2abea9;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4a52d4[_0x494a4b(0x1f2)],'input':readBusinessGroupUpdateInput(_0x4a52d4),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x55ed1f){const _0x213b26=a66_0x2abea9,_0x5f0d60=_0x55ed1f[_0x213b26(0x208)](_0x213b26(0x1fc));return{'code':trim(_0x55ed1f[_0x213b26(0x208)](_0x213b26(0x1db))),'businessGroup':_0x55ed1f[_0x213b26(0x208)](_0x213b26(0x1d7)),'expectBusinessGroup':_0x5f0d60===undefined||_0x5f0d60===''?undefined:_0x5f0d60};}function validateInput(_0x5d435a){const _0x492417=a66_0x2abea9;if(!trim(_0x5d435a[_0x492417(0x1db)]))throw CliErrors['validation'](_0x492417(0x1d9));if(_0x5d435a['businessGroup']===undefined)throw CliErrors[_0x492417(0x1c5)](_0x492417(0x1ff));if(!trim(_0x5d435a[_0x492417(0x1d1)]))throw CliErrors[_0x492417(0x1c5)](_0x492417(0x200));}function assertBusinessGroupUpdateSupported(_0x422d2b,_0x4a107b){const _0x42a3c1=a66_0x2abea9;if(_0x422d2b['sourceType']===_0x42a3c1(0x1d8)&&!_0x4a107b)throw CliErrors[_0x42a3c1(0x1c5)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function a66_0x30a4(){const _0x411ece=['366513ZensFH','datasetName','ungrouped','prototype','found','/smartapi/question/er-config/business-group/edit','appCode','keys','10yLbZzF','isArray','source','unchanged','parse','trim','16cIoeGn','modelCode','expect-business-group','datasetCode','dbtableConfig','--business-group\x20is\x20required','--business-group\x20must\x20not\x20be\x20blank','method','metadata','kind','value','731235nfLUna','payload','4196NNZebs','str','168219oRnoGT','message','dbId','dbLinkId','POST','5993141Sbzgjx','dataset','apiError','path','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','validation','write','number','extend','110mrGKku','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','stringify','Update\x20business\x20scenario\x20group','length','toUpperCase','isFinite','data','businessGroup','business-group-update','dbTableSelector','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','modelId','backend','business-group','DB_TABLE','--code\x20is\x20required','string','code','matched','db-table','64LrYtGV','Expected\x20',',\x20actual\x20','952224UTvSFj','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','call','sourceType','name','214795CXkEeX','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','update','tableName','METADATA','hasOwnProperty'];a66_0x30a4=function(){return _0x411ece;};return a66_0x30a4();}function resolveBusinessGroupDataset(_0x4be1c8,_0x4d1a69){const _0x3a9978=a66_0x2abea9,_0x2837ca=asPlainObject(_0x4be1c8[_0x3a9978(0x1c0)]),_0x1e63b3=asPlainObject(_0x4be1c8[_0x3a9978(0x1fe)]),_0x461415=resolveSourceType(_0x4be1c8,_0x2837ca,_0x1e63b3),_0x4d2418=firstString(_0x4be1c8[_0x3a9978(0x1fb)],_0x4be1c8[_0x3a9978(0x1db)],_0x2837ca[_0x3a9978(0x1fd)],_0x4d1a69)||_0x4d1a69;return{'id':firstNumber(_0x4be1c8[_0x3a9978(0x1d5)],_0x4be1c8['id'],_0x2837ca['datasetId'])??firstString(_0x4be1c8[_0x3a9978(0x1d5)],_0x4be1c8['id'],_0x2837ca['datasetId'])??null,'code':_0x4d2418,'name':firstString(_0x4be1c8[_0x3a9978(0x1e5)],_0x2837ca[_0x3a9978(0x1ed)],_0x2837ca[_0x3a9978(0x1e5)])||null,'sourceType':_0x461415,'dbTableSelector':_0x461415==='DB_TABLE'?{'dbLinkId':firstNumber(_0x1e63b3[_0x3a9978(0x1bc)]),'tableName':firstString(_0x1e63b3[_0x3a9978(0x1e9)])||null}:null};}function resolveSourceType(_0x59463b,_0x53b9cc,_0x539303){const _0x12ac26=a66_0x2abea9,_0x3e3805=firstString(_0x59463b['source'],_0x59463b[_0x12ac26(0x1e4)],_0x53b9cc[_0x12ac26(0x1f6)],_0x53b9cc[_0x12ac26(0x1e4)])?.[_0x12ac26(0x1f9)]()[_0x12ac26(0x1ce)]();if(_0x3e3805===_0x12ac26(0x1d8)||_0x3e3805===_0x12ac26(0x1ea))return _0x3e3805;if(Object[_0x12ac26(0x1f3)](_0x539303)[_0x12ac26(0x1cd)]>0x0)return _0x12ac26(0x1d8);throw CliErrors['validation'](_0x12ac26(0x1d4));}function loadCurrentBusinessGroup(_0x2bfc73,_0x3a4688){const _0x213e55=a66_0x2abea9,_0x4568c3=readBusinessGroupFromDatasetDetail(_0x2bfc73,_0x3a4688['sourceType']);if(_0x4568c3['found'])return normalizeBusinessGroup(_0x4568c3[_0x213e55(0x204)]);return'';}function readBusinessGroupFromDatasetDetail(_0x36239e,_0x2235d6){const _0x443813=a66_0x2abea9,_0x520ca7=asPlainObject(_0x36239e[_0x443813(0x1c0)]),_0xe834c=firstPresent(_0x36239e['businessGroup']);if(_0xe834c[_0x443813(0x1f0)])return _0xe834c;const _0x46b770=firstPresent(_0x520ca7[_0x443813(0x1d1)]);if(_0x46b770[_0x443813(0x1f0)])return _0x46b770;if(_0x2235d6===_0x443813(0x1d8))return{'found':![]};const _0x76480b=readBusinessGroupFromExtend(_0x36239e[_0x443813(0x1c8)]);if(_0x76480b['found'])return _0x76480b;return readBusinessGroupFromExtend(_0x520ca7['extend']);}function readBusinessGroupFromExtend(_0x2b15aa){const _0x36c7d0=a66_0x2abea9;if(_0x2b15aa===undefined||_0x2b15aa===null||_0x2b15aa==='')return{'found':![]};if(typeof _0x2b15aa===_0x36c7d0(0x1da))try{const _0x25f8cd=JSON[_0x36c7d0(0x1f8)](_0x2b15aa);return readBusinessGroupFromExtend(_0x25f8cd);}catch{return{'found':![]};}const _0x3d2851=asPlainObject(_0x2b15aa);if(Object[_0x36c7d0(0x1ef)][_0x36c7d0(0x1eb)][_0x36c7d0(0x1e3)](_0x3d2851,_0x36c7d0(0x1d1)))return{'found':!![],'value':_0x3d2851[_0x36c7d0(0x1d1)]};return{'found':![]};}function firstPresent(..._0x195806){for(const _0x5a0644 of _0x195806){if(_0x5a0644!==undefined&&_0x5a0644!==null)return{'found':!![],'value':_0x5a0644};}return{'found':![]};}function assertExpectedBusinessGroup(_0x1dcb2c,_0x284fb9){const _0x2d6c37=a66_0x2abea9;if(_0x284fb9===undefined)return;const _0x139ed4=normalizeBusinessGroupArgument(_0x284fb9);if(_0x1dcb2c!==_0x139ed4)throw CliErrors[_0x2d6c37(0x1c5)]('Expectation\x20mismatch\x20at\x20businessGroup',_0x2d6c37(0x1df)+JSON['stringify'](_0x139ed4)+_0x2d6c37(0x1e0)+JSON[_0x2d6c37(0x1cb)](_0x1dcb2c));}function buildBackendPlan(_0x4dc331,_0x524c23,_0x40a6f6){const _0x4cefa7=a66_0x2abea9;if(_0x524c23[_0x4cefa7(0x1e4)]===_0x4cefa7(0x1d8)){if(!_0x524c23['dbTableSelector']||_0x524c23[_0x4cefa7(0x1d3)][_0x4cefa7(0x1bd)]===null||!_0x524c23[_0x4cefa7(0x1d3)][_0x4cefa7(0x1e9)])throw CliErrors['validation']('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x4cefa7(0x1c4));return{'kind':_0x4cefa7(0x1dd),'method':_0x4cefa7(0x1be),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x524c23['dbTableSelector'][_0x4cefa7(0x1bd)],'tableName':_0x524c23[_0x4cefa7(0x1d3)][_0x4cefa7(0x1e9)],'businessGroup':_0x40a6f6}};}return{'kind':_0x4cefa7(0x202),'method':_0x4cefa7(0x1be),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x4dc331,'datasetCode':_0x524c23[_0x4cefa7(0x1db)],'businessGroup':_0x40a6f6}};}function normalizeBusinessGroup(_0x46c464){if(_0x46c464===undefined||_0x46c464===null)return'';return String(_0x46c464)['trim']();}function normalizeBusinessGroupArgument(_0x12f870){const _0x2b86fe=normalizeBusinessGroup(_0x12f870);return _0x2b86fe===UNGROUPED_BUSINESS_GROUP?'':_0x2b86fe;}function displayBusinessGroup(_0x2303bf){return _0x2303bf||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x4701a3){const _0x10b1eb=a66_0x2abea9;if(!_0x4701a3||typeof _0x4701a3!=='object'||Array[_0x10b1eb(0x1f5)](_0x4701a3))return{};return _0x4701a3;}function firstString(..._0x3b073a){const _0x1c2e3a=a66_0x2abea9;for(const _0x1ddb45 of _0x3b073a){if(typeof _0x1ddb45===_0x1c2e3a(0x1da)&&_0x1ddb45['trim']())return _0x1ddb45['trim']();if(typeof _0x1ddb45===_0x1c2e3a(0x1c7)&&Number['isFinite'](_0x1ddb45))return String(_0x1ddb45);}return undefined;}function a66_0x3419(_0x3e0efe,_0x434b5f){_0x3e0efe=_0x3e0efe-0x1ba;const _0x30a4aa=a66_0x30a4();let _0x3419a8=_0x30a4aa[_0x3e0efe];return _0x3419a8;}function firstNumber(..._0x201446){const _0x3e4c91=a66_0x2abea9;for(const _0x4faaa3 of _0x201446){if(typeof _0x4faaa3===_0x3e4c91(0x1c7)&&Number['isFinite'](_0x4faaa3))return _0x4faaa3;if(typeof _0x4faaa3===_0x3e4c91(0x1da)&&_0x4faaa3[_0x3e4c91(0x1f9)]()&&Number[_0x3e4c91(0x1cf)](Number(_0x4faaa3)))return Number(_0x4faaa3);}return null;}function trim(_0x4d4492){return String(_0x4d4492||'')['trim']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x134330=a67_0x3b16;(function(_0x2e7cc3,_0x2e87b0){const _0x3959bb=a67_0x3b16,_0x2a6761=_0x2e7cc3();while(!![]){try{const _0x57aec0=-parseInt(_0x3959bb(0x1bd))/0x1*(-parseInt(_0x3959bb(0x1c6))/0x2)+parseInt(_0x3959bb(0x1c7))/0x3+parseInt(_0x3959bb(0x1b5))/0x4*(parseInt(_0x3959bb(0x1be))/0x5)+parseInt(_0x3959bb(0x1c5))/0x6+parseInt(_0x3959bb(0x1bb))/0x7+-parseInt(_0x3959bb(0x1ba))/0x8*(-parseInt(_0x3959bb(0x1c3))/0x9)+parseInt(_0x3959bb(0x1b2))/0xa*(-parseInt(_0x3959bb(0x1b1))/0xb);if(_0x57aec0===_0x2e87b0)break;else _0x2a6761['push'](_0x2a6761['shift']());}catch(_0x769c0b){_0x2a6761['push'](_0x2a6761['shift']());}}}(a67_0x2209,0x66c67));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';function a67_0x2209(){const _0x17efc2=['length','2333ZyDtzw','227835PjcAYY','map','business-groups','dataset','ungrouped','387NJhxJY','groups','1288164hKvxJd','394DoKMhL','1327755fMibKc','143OSLFHv','1506720RsiegT','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','Found\x20','28GxuIGt','businessGroup','num','dbid','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','129736IqFblN','1725661FfnPgh'];a67_0x2209=function(){return _0x17efc2;};return a67_0x2209();}function a67_0x3b16(_0x56dfd9,_0x31ab7b){_0x56dfd9=_0x56dfd9-0x1b1;const _0x2209d2=a67_0x2209();let _0x3b162e=_0x2209d2[_0x56dfd9];return _0x3b162e;}export const datasetBusinessGroups={'service':a67_0x134330(0x1c1),'command':a67_0x134330(0x1c0),'description':a67_0x134330(0x1b3),'risk':'read','flags':[{'name':'dbid','type':'number','required':!![],'description':a67_0x134330(0x1b9)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x20f458){const _0x19af0c=a67_0x134330,_0x2f4152=_0x20f458[_0x19af0c(0x1b7)](_0x19af0c(0x1b8)),_0x5e5d7c=await getErBusinessGroupSummary(_0x20f458['appCode'],_0x2f4152),_0x14c8fb=_0x5e5d7c[_0x19af0c(0x1c4)][_0x19af0c(0x1bf)](_0x337eb5=>({..._0x337eb5,'businessGroup':_0x337eb5[_0x19af0c(0x1b6)]['trim']()||_0x19af0c(0x1c2)}));return{'ok':!![],'data':{..._0x5e5d7c,'groups':_0x14c8fb,'scope':'DB_TABLE'},'message':_0x19af0c(0x1b4)+_0x14c8fb[_0x19af0c(0x1bc)]+'\x20business\x20group(s)\x20for\x20database\x20connection\x20'+_0x2f4152};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x1cbf22=a68_0x52b7;(function(_0x5e89aa,_0x8683bb){const _0x75a5dd=a68_0x52b7,_0x8385dd=_0x5e89aa();while(!![]){try{const _0x562c03=parseInt(_0x75a5dd(0x1b3))/0x1+-parseInt(_0x75a5dd(0x1a8))/0x2*(parseInt(_0x75a5dd(0x1b0))/0x3)+-parseInt(_0x75a5dd(0x194))/0x4+parseInt(_0x75a5dd(0x1b1))/0x5*(-parseInt(_0x75a5dd(0x1af))/0x6)+-parseInt(_0x75a5dd(0x19b))/0x7+-parseInt(_0x75a5dd(0x199))/0x8*(parseInt(_0x75a5dd(0x19c))/0x9)+-parseInt(_0x75a5dd(0x1ab))/0xa*(-parseInt(_0x75a5dd(0x1a6))/0xb);if(_0x562c03===_0x8683bb)break;else _0x8385dd['push'](_0x8385dd['shift']());}catch(_0x2286e3){_0x8385dd['push'](_0x8385dd['shift']());}}}(a68_0x1db2,0x7a4b3));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x1cbf22(0x1a7),'filter':a68_0x1cbf22(0x1a2),'getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};function a68_0x52b7(_0x1da6e6,_0x169d20){_0x1da6e6=_0x1da6e6-0x18e;const _0x1db249=a68_0x1db2();let _0x52b7ca=_0x1db249[_0x1da6e6];return _0x52b7ca;}export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x1cbf22(0x192);function valueToString(_0x27220c){const _0x38d665=a68_0x1cbf22;return _0x27220c==null?'':String(_0x27220c)[_0x38d665(0x1a1)]();}function getDatasetCode(_0x23a24c){const _0x280edb=a68_0x1cbf22;return valueToString(_0x23a24c[_0x280edb(0x1b6)]??_0x23a24c['modelCode']??_0x23a24c[_0x280edb(0x19f)]?.[_0x280edb(0x190)]);}function getDatasetName(_0x26bc65){const _0x4bff90=a68_0x1cbf22;return valueToString(_0x26bc65[_0x4bff90(0x196)]??_0x26bc65[_0x4bff90(0x19f)]?.[_0x4bff90(0x18e)])||_0x4bff90(0x19e);}function getDatasetSource(_0x1a3c47){const _0x5a4652=a68_0x1cbf22;return valueToString(_0x1a3c47[_0x5a4652(0x1a0)]??_0x1a3c47[_0x5a4652(0x19f)]?.[_0x5a4652(0x1ac)])[_0x5a4652(0x1a4)]();}function getDbtableConfig(_0x49895c){const _0x4b49a5=a68_0x1cbf22,_0x9aa76d=_0x49895c[_0x4b49a5(0x1aa)]??_0x49895c[_0x4b49a5(0x1a3)];return _0x9aa76d&&typeof _0x9aa76d===_0x4b49a5(0x19d)?_0x9aa76d:{};}export function isDbTableBackedDataset(_0x4dd0bd){const _0x44f864=a68_0x1cbf22,_0x1deb0c=getDatasetSource(_0x4dd0bd);if(_0x1deb0c===_0x44f864(0x198))return![];const _0x1fd250=getDbtableConfig(_0x4dd0bd),_0x42c7a4=_0x1fd250[_0x44f864(0x1ae)]??_0x1fd250['id'],_0x3ef17e=valueToString(_0x1fd250[_0x44f864(0x197)]??_0x4dd0bd[_0x44f864(0x197)]??_0x4dd0bd[_0x44f864(0x19f)]?.[_0x44f864(0x197)]);return _0x42c7a4!==undefined&&_0x42c7a4!==null&&_0x3ef17e[_0x44f864(0x195)]>0x0;}export function filterDbTableBackedDatasets(_0x376669){const _0x58586b=a68_0x1cbf22;return _0x376669[_0x58586b(0x1ad)](_0x1ac1c1=>isDbTableBackedDataset(_0x1ac1c1));}export function buildDbTableBackedRequirementMessage(_0x3461cd,_0x2e4dd1=a68_0x1cbf22(0x1b5)){const _0x3d6dec=a68_0x1cbf22,_0x5ac9cf=getDatasetSource(_0x3461cd)||_0x3d6dec(0x1b4),_0x2b9ac4=getDatasetName(_0x3461cd),_0x27a989=getDatasetCode(_0x3461cd),_0x1de07f=_0x27a989?'\x20('+_0x27a989+')':'';return['The\x20current\x20dataset\x20\x22'+_0x2b9ac4+'\x22'+_0x1de07f+_0x3d6dec(0x1a5)+_0x5ac9cf+_0x3d6dec(0x193)+_0x2e4dd1+'.',_0x3d6dec(0x191),_0x3d6dec(0x19a),_0x3d6dec(0x1b2)+RUNTIME_DATA_ACCESS_COMMANDS[_0x3d6dec(0x1ad)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.'][_0x3d6dec(0x18f)]('\x20');}export function assertDatasetIsDbTableBacked(_0x487224,_0x220532){const _0x286e8b=a68_0x1cbf22;if(!isDbTableBackedDataset(_0x487224))throw CliErrors[_0x286e8b(0x1a9)](buildDbTableBackedRequirementMessage(_0x487224,_0x220532));}function a68_0x1db2(){const _0x585f75=['216FAAhJG','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','840322ThBhBr','187605LoubvA','object','unknown','dataset','source','trim','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','dbtable','toUpperCase','\x20is\x20','22901648MZpVma','lovrabet','141196RtEFSR','validation','dbtableConfig','10BKmJYi','sourceType','filter','dbId','12DfZfnr','24ugTaqd','1406215zPezIN','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','480560orlLUO','UNKNOWN','SQL\x20schema\x20validation','code','datasetName','join','datasetCode','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','1005928kRWvrk','length','name','tableName','METADATA'];a68_0x1db2=function(){return _0x585f75;};return a68_0x1db2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x44ee08=a69_0x5321;(function(_0x4b3567,_0x439d13){const _0x4141da=a69_0x5321,_0x4d62ef=_0x4b3567();while(!![]){try{const _0x2a0f36=-parseInt(_0x4141da(0x1a7))/0x1*(-parseInt(_0x4141da(0x1ac))/0x2)+parseInt(_0x4141da(0x1a8))/0x3+-parseInt(_0x4141da(0x1ad))/0x4+parseInt(_0x4141da(0x1af))/0x5+parseInt(_0x4141da(0x1b2))/0x6+parseInt(_0x4141da(0x1b3))/0x7+-parseInt(_0x4141da(0x1b1))/0x8;if(_0x2a0f36===_0x439d13)break;else _0x4d62ef['push'](_0x4d62ef['shift']());}catch(_0x369796){_0x4d62ef['push'](_0x4d62ef['shift']());}}}(a69_0x403d,0x56d2f));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':a69_0x44ee08(0x1aa),'command':a69_0x44ee08(0x1a9),'description':a69_0x44ee08(0x1b0),'risk':a69_0x44ee08(0x1ab),'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 _0x56891f=>validateCrossRelation(_0x56891f,a69_0x44ee08(0x1ae)),'dryRun':_0xce81c5=>previewCrossRelation(_0xce81c5,a69_0x44ee08(0x1ae)),'execute':_0x5370dd=>executeCrossRelation(_0x5370dd,a69_0x44ee08(0x1ae),createCrossDbRelation)};function a69_0x5321(_0x5abe92,_0x5eaa5b){_0x5abe92=_0x5abe92-0x1a7;const _0x403d27=a69_0x403d();let _0x532168=_0x403d27[_0x5abe92];return _0x532168;}function a69_0x403d(){const _0x1dbe6c=['1878524rfiTtj','create','1183105MaCrtP','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','8292304HVMGDV','4157424ixNdKY','3195206ZsySac','50003MPxjUU','677406QpUPyK','cross-relation-create','dataset','write','10xOkXRx'];a69_0x403d=function(){return _0x1dbe6c;};return a69_0x403d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x1e5118=a70_0x7e55;function a70_0x4c7a(){const _0x202371=['delete','32260HAqcrA','7gFvcfo','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','718740shgUeN','1380738GMwZvA','864252xCZuua','dataset','65FikGJy','852iXKyPL','2923990iaEXuX','1iTltrE','48QkzvnE','43714TnkAjy','cross-relation-delete','high-risk-write','852060xqQgkD'];a70_0x4c7a=function(){return _0x202371;};return a70_0x4c7a();}(function(_0x2c5177,_0x1c37d8){const _0x2bf892=a70_0x7e55,_0x5d1db5=_0x2c5177();while(!![]){try{const _0x5618a3=parseInt(_0x2bf892(0xe2))/0x1*(-parseInt(_0x2bf892(0xdd))/0x2)+parseInt(_0x2bf892(0xdc))/0x3+-parseInt(_0x2bf892(0xd8))/0x4*(parseInt(_0x2bf892(0xdf))/0x5)+-parseInt(_0x2bf892(0xd6))/0x6*(parseInt(_0x2bf892(0xd9))/0x7)+parseInt(_0x2bf892(0xe3))/0x8*(parseInt(_0x2bf892(0xdb))/0x9)+-parseInt(_0x2bf892(0xe1))/0xa+parseInt(_0x2bf892(0xe4))/0xb*(parseInt(_0x2bf892(0xe0))/0xc);if(_0x5618a3===_0x1c37d8)break;else _0x5d1db5['push'](_0x5d1db5['shift']());}catch(_0x17f4a9){_0x5d1db5['push'](_0x5d1db5['shift']());}}}(a70_0x4c7a,0x3d144));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';function a70_0x7e55(_0x140596,_0x2ec742){_0x140596=_0x140596-0xd4;const _0x4c7ae5=a70_0x4c7a();let _0x7e55e1=_0x4c7ae5[_0x140596];return _0x7e55e1;}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationDelete={'service':a70_0x1e5118(0xde),'command':a70_0x1e5118(0xd4),'description':a70_0x1e5118(0xda),'risk':a70_0x1e5118(0xd5),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x2ea285=>validateCrossRelation(_0x2ea285,a70_0x1e5118(0xd7)),'dryRun':_0x4947ce=>previewCrossRelation(_0x4947ce,'delete'),'execute':_0x1f25ef=>executeCrossRelation(_0x1f25ef,a70_0x1e5118(0xd7),deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x499715=a71_0x46bc;function a71_0x46bc(_0x4e0071,_0x296724){_0x4e0071=_0x4e0071-0x8f;const _0x58153d=a71_0x5815();let _0x46bcb0=_0x58153d[_0x4e0071];return _0x46bcb0;}(function(_0x548b56,_0x221242){const _0x43cc84=a71_0x46bc,_0x61e575=_0x548b56();while(!![]){try{const _0xce6acd=-parseInt(_0x43cc84(0xa0))/0x1*(-parseInt(_0x43cc84(0x98))/0x2)+parseInt(_0x43cc84(0x9d))/0x3*(-parseInt(_0x43cc84(0x9b))/0x4)+-parseInt(_0x43cc84(0x9a))/0x5*(parseInt(_0x43cc84(0xa1))/0x6)+parseInt(_0x43cc84(0x96))/0x7*(-parseInt(_0x43cc84(0x91))/0x8)+-parseInt(_0x43cc84(0x8f))/0x9+parseInt(_0x43cc84(0x90))/0xa+parseInt(_0x43cc84(0xa2))/0xb*(parseInt(_0x43cc84(0xa3))/0xc);if(_0xce6acd===_0x221242)break;else _0x61e575['push'](_0x61e575['shift']());}catch(_0x128398){_0x61e575['push'](_0x61e575['shift']());}}}(a71_0x5815,0xc0725));import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationList={'service':a71_0x499715(0x93),'command':a71_0x499715(0x9e),'description':a71_0x499715(0x94),'risk':a71_0x499715(0x95),'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 _0x4b1905=>validateCrossRelation(_0x4b1905,a71_0x499715(0x9c)),async 'execute'(_0x590da3){const _0x34321e=a71_0x499715,_0x194a99=await resolveCrossRelationQuery(_0x590da3),_0x4d0cb2=await queryCrossDbRelations(_0x194a99);return{'ok':!![],'data':{'appCode':_0x590da3[_0x34321e(0x99)],'selector':_0x194a99,'total':_0x4d0cb2[_0x34321e(0x97)],'relations':_0x4d0cb2['map'](projectCrossRelation)},'message':_0x34321e(0x92)+_0x4d0cb2[_0x34321e(0x97)]+_0x34321e(0x9f)};}};function a71_0x5815(){const _0x4bd186=['60rZFiEb','84XzAldP','list','212265uUVdoP','cross-relation-list','\x20relation(s)','1bEZCoy','343038QRBrgo','77YjCfHx','2383152vPaVqL','1889379LkyloV','14012340OjsgUd','32DHXrhN','Cross-database\x20relations:\x20','dataset','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','read','1778266QiBRUY','length','2789738gstIKP','appCode'];a71_0x5815=function(){return _0x4bd186;};return a71_0x5815();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x4287da=a72_0x2bae;(function(_0x306ec1,_0x359a3f){const _0x8bd7fa=a72_0x2bae,_0x3cc854=_0x306ec1();while(!![]){try{const _0x1eb41e=parseInt(_0x8bd7fa(0x180))/0x1+-parseInt(_0x8bd7fa(0x159))/0x2*(parseInt(_0x8bd7fa(0x176))/0x3)+parseInt(_0x8bd7fa(0x163))/0x4+-parseInt(_0x8bd7fa(0x17b))/0x5+parseInt(_0x8bd7fa(0x175))/0x6*(-parseInt(_0x8bd7fa(0x166))/0x7)+parseInt(_0x8bd7fa(0x154))/0x8+parseInt(_0x8bd7fa(0x17a))/0x9;if(_0x1eb41e===_0x359a3f)break;else _0x3cc854['push'](_0x3cc854['shift']());}catch(_0x13e5fd){_0x3cc854['push'](_0x3cc854['shift']());}}}(a72_0x2b72,0xccef8));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 a72_0x2b72(){const _0x329076=['list','expectedLabel','appCode','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','fromDatasetCode','message','toLowerCase','13020840uuLXKJ','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','toDatasetName','flag','update','1704886mgpHXn','sourceType','\x20verified.','dbId','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','create','relationId','dblinkId','extend','3164784OiXdlR','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','includes','77MdMpfu','parse','expectedCardinality','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','toField','datasetCode','trim','to-datasetcode','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','flagMissing','enum','validation','query','data','str','834810YyfonS','3ShWRnT','dbtable','isSafeInteger','\x20has\x20invalid\x20storage\x20configuration.','13166136ujYVlH','6072635FzzMOb','storageProfile','to-column','string','Invalid\x20--cardinality.','555166TOoIGg','refTableLabelName','fromDatasetName','multiple\x20cross-database\x20relations\x20matched','before','catch','Dataset\x20','defineProperty','Cross-database\x20relation\x20','fromDblinkId','Would\x20','fromField','cardinality','some','table','unconfirmed','from-dblink-id','\x20a\x20cross-database\x20relation\x20for\x20','DB_TABLE','tableName','map','from','fromTableName','filter','delete','from-datasetcode','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','length','relationType','body','label_inherited'];a72_0x2b72=function(){return _0x329076;};return a72_0x2b72();}function required(_0x2792e0,_0x542877){const _0x5cf3cc=a72_0x2bae,_0x59dd28=_0x2792e0[_0x5cf3cc(0x174)](_0x542877)[_0x5cf3cc(0x16c)]();if(!_0x59dd28)throw CliErrors[_0x5cf3cc(0x16f)](_0x542877);return _0x59dd28;}function explicitDblink(_0x2bd346){const _0x46d95b=a72_0x2bae,_0x5e4d1a=_0x2bd346[_0x46d95b(0x157)](_0x46d95b(0x13e));if(_0x5e4d1a===undefined||_0x5e4d1a===null)return undefined;const _0x3eb7e4=Number(_0x5e4d1a);if(!Number[_0x46d95b(0x178)](_0x3eb7e4)||_0x3eb7e4<=0x0)throw CliErrors[_0x46d95b(0x171)]('--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x3eb7e4;}export function validateCrossRelation(_0x200c87,_0x51ba83){const _0x8cdaca=a72_0x2bae,_0x3fb12a=explicitDblink(_0x200c87);if(_0x51ba83===_0x8cdaca(0x14d)){if(!_0x200c87['str'](_0x8cdaca(0x147))[_0x8cdaca(0x16c)]()&&_0x3fb12a===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x200c87,_0x8cdaca(0x147)),required(_0x200c87,'from-column');if(_0x51ba83!==_0x8cdaca(0x146)){required(_0x200c87,_0x8cdaca(0x16d)),required(_0x200c87,_0x8cdaca(0x17d));const _0x42c72a=_0x200c87[_0x8cdaca(0x174)]('cardinality')[_0x8cdaca(0x16c)]();if(_0x42c72a&&!CROSS_RELATION_CARDINALITY_FLAG[_0x8cdaca(0x170)]['includes'](_0x42c72a))throw CliErrors[_0x8cdaca(0x171)](_0x8cdaca(0x17f));}}async function resolveEndpoint(_0x4b90c2){const _0x117336=a72_0x2bae,_0xd99fac=await getDatasetDetail(_0x4b90c2),_0x32f8d7=_0xd99fac?.['dataset']??{};if((_0xd99fac?.['source']??_0x32f8d7[_0x117336(0x15a)])!=='DB_TABLE')throw CliErrors['validation'](_0x117336(0x134)+_0x4b90c2+_0x117336(0x15e));const _0x51fbc7=_0xd99fac['dbtableConfig']??_0xd99fac[_0x117336(0x177)]??{};let _0x2431d7=_0xd99fac[_0x117336(0x162)]??_0x32f8d7['extend']??{};if(typeof _0x2431d7===_0x117336(0x17e))try{_0x2431d7=_0x2431d7[_0x117336(0x16c)]()?JSON[_0x117336(0x167)](_0x2431d7):{};}catch{throw CliErrors[_0x117336(0x171)](_0x117336(0x134)+_0x4b90c2+_0x117336(0x179));}const _0x50ddff=Number(_0x2431d7?.[_0x117336(0x17c)]?.[_0x117336(0x15c)]??_0xd99fac['storageProfile']?.[_0x117336(0x15c)]??_0x32f8d7[_0x117336(0x17c)]?.['dbId']??_0x51fbc7['dbId']??_0x32f8d7['dbId']??_0xd99fac[_0x117336(0x15c)]),_0x5a3009=String(_0xd99fac[_0x117336(0x141)]??_0x32f8d7[_0x117336(0x141)]??_0x51fbc7['tableName']??'')[_0x117336(0x16c)]();if(!Number[_0x117336(0x178)](_0x50ddff)||_0x50ddff<=0x0||!_0x5a3009)throw CliErrors[_0x117336(0x171)]('Dataset\x20'+_0x4b90c2+_0x117336(0x148));return{'datasetCode':_0x4b90c2,'dblinkId':_0x50ddff,'table':_0x5a3009};}export async function resolveCrossRelationQuery(_0xc08a81){const _0x418414=a72_0x2bae,_0x584ed9=_0xc08a81[_0x418414(0x174)]('from-datasetcode')['trim'](),_0x3c9d6f=explicitDblink(_0xc08a81),_0xf6a033=_0x584ed9?await resolveEndpoint(_0x584ed9):undefined;if(_0xf6a033&&_0x3c9d6f!==undefined&&_0xf6a033[_0x418414(0x161)]!==_0x3c9d6f)throw CliErrors['validation'](_0x418414(0x169));const _0x51e5cf=_0xf6a033?.[_0x418414(0x161)]??_0x3c9d6f;if(_0x51e5cf===undefined)throw CliErrors[_0x418414(0x171)](_0x418414(0x164));return{'appCode':_0xc08a81[_0x418414(0x14f)],'fromDblinkId':_0x51e5cf,..._0x584ed9?{'fromDatasetCode':_0x584ed9}:{},..._0xc08a81[_0x418414(0x174)]('from-column')[_0x418414(0x16c)]()?{'fromField':_0xc08a81[_0x418414(0x174)]('from-column')[_0x418414(0x16c)]()}:{}};}export function projectCrossRelation(_0xc2af20){const _0x37526c=a72_0x2bae;return{'relationId':_0xc2af20['relationId'],'from':{'source':_0x37526c(0x140),'datasetCode':_0xc2af20[_0x37526c(0x151)],'datasetName':_0xc2af20[_0x37526c(0x182)],'dblinkId':_0xc2af20[_0x37526c(0x137)],'table':_0xc2af20[_0x37526c(0x144)],'field':_0xc2af20['fromField']},'to':{'source':_0x37526c(0x140),'datasetCode':_0xc2af20['toDatasetCode'],'datasetName':_0xc2af20[_0x37526c(0x156)],'dblinkId':_0xc2af20['toDblinkId'],'table':_0xc2af20['toTableName'],'field':_0xc2af20[_0x37526c(0x16a)],'labelField':_0xc2af20[_0x37526c(0x181)]},'relation':{'cardinality':_0xc2af20[_0x37526c(0x13a)],'relationType':_0xc2af20['relationType']}};}function ambiguity(_0x18a63c){const _0x1eba19=a72_0x2bae,_0x15dc02=CliErrors[_0x1eba19(0x171)]('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.',_0x1eba19(0x16e));return Object[_0x1eba19(0x135)](_0x15dc02,_0x1eba19(0x173),{'value':{'candidates':_0x18a63c[_0x1eba19(0x142)](projectCrossRelation)}}),_0x15dc02;}const sameName=(_0xcbc7,_0x1e53ea)=>_0xcbc7[a72_0x4287da(0x153)]()===_0x1e53ea[a72_0x4287da(0x153)]();function matchesEndpoint(_0x5c8433,_0x28698e,_0x43f38d,_0x2f4df2,_0x244913){const _0x44c1ca=a72_0x4287da;return _0x5c8433['fromDblinkId']===_0x28698e['dblinkId']&&sameName(_0x5c8433['fromTableName'],_0x28698e[_0x44c1ca(0x13c)])&&sameName(_0x5c8433['fromField'],_0x43f38d)&&_0x5c8433['toDblinkId']===_0x2f4df2[_0x44c1ca(0x161)]&&sameName(_0x5c8433['toTableName'],_0x2f4df2[_0x44c1ca(0x13c)])&&sameName(_0x5c8433[_0x44c1ca(0x16a)],_0x244913);}export async function prepareCrossRelation(_0x1fca82,_0x5d0d27){const _0x31ee8f=a72_0x4287da,_0x14ec5b=await resolveEndpoint(required(_0x1fca82,_0x31ee8f(0x147))),_0x2167ca=explicitDblink(_0x1fca82);if(_0x2167ca!==undefined&&_0x14ec5b['dblinkId']!==_0x2167ca)throw CliErrors[_0x31ee8f(0x171)](_0x31ee8f(0x169));const _0x1bf3ad={'appCode':_0x1fca82[_0x31ee8f(0x14f)],'fromDatasetCode':_0x14ec5b[_0x31ee8f(0x16b)],'fromField':required(_0x1fca82,'from-column'),..._0x2167ca!==undefined?{'fromDblinkId':_0x2167ca}:{}},_0x5afc81={'appCode':_0x1fca82[_0x31ee8f(0x14f)],'fromDblinkId':_0x14ec5b[_0x31ee8f(0x161)],'fromDatasetCode':_0x14ec5b['datasetCode'],'fromField':_0x1bf3ad[_0x31ee8f(0x139)]},_0x2a8f2d=await queryCrossDbRelations(_0x5afc81);let _0xb422ba=null;if(_0x5d0d27!==_0x31ee8f(0x15f)){if(_0x2a8f2d[_0x31ee8f(0x149)]>0x1)throw ambiguity(_0x2a8f2d);_0xb422ba=_0x2a8f2d[0x0]??null;if(!_0xb422ba)throw CliErrors[_0x31ee8f(0x171)](_0x31ee8f(0x150));}if(_0x5d0d27==='delete')return{'operation':_0x5d0d27,'from':_0x14ec5b,'query':_0x5afc81,'body':_0x1bf3ad,'before':_0xb422ba};const _0x3279d1=await resolveEndpoint(required(_0x1fca82,_0x31ee8f(0x16d)));if(_0x14ec5b[_0x31ee8f(0x161)]===_0x3279d1[_0x31ee8f(0x161)])throw CliErrors[_0x31ee8f(0x171)]('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0x13bb40=_0x1fca82[_0x31ee8f(0x174)]('to-label-column')['trim'](),_0x21f9a5=_0x1fca82[_0x31ee8f(0x174)](_0x31ee8f(0x13a))[_0x31ee8f(0x16c)](),_0x33a285={..._0x1bf3ad,'toDatasetCode':_0x3279d1[_0x31ee8f(0x16b)],'toField':required(_0x1fca82,'to-column'),..._0x13bb40?{'refTableLabelName':_0x13bb40}:{},..._0x21f9a5?{'cardinality':_0x21f9a5}:{}};if(_0x2a8f2d[_0x31ee8f(0x13b)](_0x9c181d=>_0x9c181d[_0x31ee8f(0x160)]!==_0xb422ba?.[_0x31ee8f(0x160)]&&matchesEndpoint(_0x9c181d,_0x14ec5b,_0x33a285['fromField'],_0x3279d1,_0x33a285[_0x31ee8f(0x16a)])))throw CliErrors[_0x31ee8f(0x171)]('Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.');return{'operation':_0x5d0d27,'from':_0x14ec5b,'to':_0x3279d1,'query':_0x5afc81,'body':_0x33a285,'before':_0xb422ba,'expectedLabel':_0x13bb40||_0xb422ba?.[_0x31ee8f(0x181)]||_0x33a285[_0x31ee8f(0x16a)],'expectedCardinality':_0x21f9a5||_0xb422ba?.[_0x31ee8f(0x13a)]||null};}function mutationData(_0x43962f,_0x322482,_0x327bc0){const _0x5d9e22=a72_0x4287da,{operation:_0x5c3d74,body:_0x5715ae,before:_0x42494b}=_0x43962f;return{'operation':_0x5c3d74,'selector':{'appCode':_0x5715ae[_0x5d9e22(0x14f)],'from':{'datasetCode':_0x5715ae[_0x5d9e22(0x151)],'field':_0x5715ae['fromField'],'dblinkId':_0x43962f['from'][_0x5d9e22(0x161)]}},'before':_0x42494b?projectCrossRelation(_0x42494b):null,'after':_0x327bc0,'dryRun':_0x322482,'backend':{'method':'POST','path':CROSS_DB_RELATION_PATHS[_0x5c3d74]},'warnings':_0x5c3d74===_0x5d9e22(0x158)&&!_0x5715ae['refTableLabelName']?[{'code':_0x5d9e22(0x14c),'message':_0x5d9e22(0x155)}]:[]};}function a72_0x2bae(_0x36720e,_0x446f7c){_0x36720e=_0x36720e-0x134;const _0x2b7229=a72_0x2b72();let _0x2baef2=_0x2b7229[_0x36720e];return _0x2baef2;}export async function previewCrossRelation(_0x2fb751,_0x671617){const _0x5ec29e=a72_0x4287da,_0x410583=await prepareCrossRelation(_0x2fb751,_0x671617),_0xc39ad7=_0x410583[_0x5ec29e(0x14b)],_0x5bfba3=_0x671617==='delete'?null:{..._0x410583[_0x5ec29e(0x184)]?{'relationId':_0x410583['before']['relationId']}:{},'from':{'datasetCode':_0x410583[_0x5ec29e(0x143)][_0x5ec29e(0x16b)],'dblinkId':_0x410583['from']['dblinkId'],'table':_0x410583[_0x5ec29e(0x143)]['table'],'field':_0xc39ad7[_0x5ec29e(0x139)]},'to':{'datasetCode':_0x410583['to']['datasetCode'],'dblinkId':_0x410583['to']['dblinkId'],'table':_0x410583['to'][_0x5ec29e(0x13c)],'field':_0xc39ad7[_0x5ec29e(0x16a)],'labelField':_0x410583['expectedLabel']},'relation':{'cardinality':_0x410583[_0x5ec29e(0x168)],'relationType':0x2}};return{...mutationData(_0x410583,!![],null),'after':_0x5bfba3,'method':'POST','url':CROSS_DB_RELATION_PATHS[_0x671617],'body':_0x410583[_0x5ec29e(0x14b)],'description':_0x5ec29e(0x138)+_0x671617+_0x5ec29e(0x13f)+_0xc39ad7[_0x5ec29e(0x151)]+'.'+_0xc39ad7[_0x5ec29e(0x139)]};}export async function executeCrossRelation(_0x3d2f16,_0x250622,_0xb820e){const _0x2e6b22=a72_0x4287da,_0xeee67f=await prepareCrossRelation(_0x3d2f16,_0x250622);try{await _0xb820e(_0xeee67f[_0x2e6b22(0x14b)]);}catch(_0x45f03e){if(_0x45f03e instanceof CliError&&_0x45f03e[_0x2e6b22(0x152)][_0x2e6b22(0x165)](_0x2e6b22(0x183))){const _0x2910fe=await queryCrossDbRelations(_0xeee67f[_0x2e6b22(0x172)])[_0x2e6b22(0x185)](()=>[]);throw ambiguity(_0x2910fe);}throw _0x45f03e;}let _0x18e5b2=[],_0x1da58e,_0x4599b8=![];try{_0x18e5b2=await queryCrossDbRelations(_0xeee67f['query']);if(_0x250622===_0x2e6b22(0x146))_0x4599b8=!_0x18e5b2[_0x2e6b22(0x13b)](_0x41a137=>_0x41a137[_0x2e6b22(0x160)]===_0xeee67f[_0x2e6b22(0x184)][_0x2e6b22(0x160)]);else{const _0x438b95=_0xeee67f['body'],_0x199677=_0x18e5b2[_0x2e6b22(0x145)](_0x5ab2e7=>matchesEndpoint(_0x5ab2e7,_0xeee67f[_0x2e6b22(0x143)],_0x438b95[_0x2e6b22(0x139)],_0xeee67f['to'],_0x438b95[_0x2e6b22(0x16a)])&&(_0x250622===_0x2e6b22(0x15f)||_0x5ab2e7[_0x2e6b22(0x160)]===_0xeee67f[_0x2e6b22(0x184)][_0x2e6b22(0x160)]));_0x1da58e=_0x199677[_0x2e6b22(0x149)]===0x1?_0x199677[0x0]:undefined,_0x4599b8=!!_0x1da58e&&_0x1da58e[_0x2e6b22(0x181)]===_0xeee67f[_0x2e6b22(0x14e)]&&_0x1da58e[_0x2e6b22(0x13a)]===_0xeee67f[_0x2e6b22(0x168)]&&_0x1da58e[_0x2e6b22(0x14a)]===0x2;}}catch{}const _0x1ee50c={...mutationData(_0xeee67f,![],_0x1da58e?projectCrossRelation(_0x1da58e):null),'verification':{'status':_0x4599b8?'matched':_0x2e6b22(0x13d),'verified':_0x4599b8}};if(!_0x4599b8){const _0x1ecf1d=CliErrors['apiError']('Cross-database\x20relation\x20'+_0x250622+'\x20write\x20was\x20not\x20verified.',_0x2e6b22(0x15d));Object['defineProperty'](_0x1ecf1d,'data',{'value':{..._0x1ee50c,'candidates':_0x18e5b2[_0x2e6b22(0x142)](projectCrossRelation)}});throw _0x1ecf1d;}return{'ok':!![],'data':_0x1ee50c,'message':_0x2e6b22(0x136)+_0x250622+_0x2e6b22(0x15b)};}
|
|
1
|
+
const a72_0x1baadf=a72_0x23ff;(function(_0x205eb8,_0x3839e2){const _0x2fc972=a72_0x23ff,_0x2c15cb=_0x205eb8();while(!![]){try{const _0x56010=-parseInt(_0x2fc972(0xce))/0x1+parseInt(_0x2fc972(0xa5))/0x2+parseInt(_0x2fc972(0x92))/0x3+parseInt(_0x2fc972(0xc5))/0x4*(parseInt(_0x2fc972(0xc7))/0x5)+-parseInt(_0x2fc972(0x9f))/0x6+parseInt(_0x2fc972(0xb4))/0x7*(parseInt(_0x2fc972(0xb6))/0x8)+-parseInt(_0x2fc972(0xd3))/0x9;if(_0x56010===_0x3839e2)break;else _0x2c15cb['push'](_0x2c15cb['shift']());}catch(_0x3c9342){_0x2c15cb['push'](_0x2c15cb['shift']());}}}(a72_0x5e8a,0x66ba7));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(_0x2135d1,_0x52674f){const _0x39a8a9=a72_0x23ff,_0x545d6e=_0x2135d1['str'](_0x52674f)[_0x39a8a9(0x97)]();if(!_0x545d6e)throw CliErrors[_0x39a8a9(0xb1)](_0x52674f);return _0x545d6e;}function a72_0x23ff(_0x1a0e42,_0x49247c){_0x1a0e42=_0x1a0e42-0x86;const _0x5e8a40=a72_0x5e8a();let _0x23ff53=_0x5e8a40[_0x1a0e42];return _0x23ff53;}function explicitDblink(_0x13488e){const _0x9d83d=a72_0x23ff,_0x333c3e=_0x13488e[_0x9d83d(0x86)]('from-dblink-id');if(_0x333c3e===undefined||_0x333c3e===null)return undefined;const _0x48fe7a=Number(_0x333c3e);if(!Number[_0x9d83d(0xc2)](_0x48fe7a)||_0x48fe7a<=0x0)throw CliErrors['validation'](_0x9d83d(0xb7));return _0x48fe7a;}export function validateCrossRelation(_0x8824e8,_0x518c35){const _0x492c43=a72_0x23ff,_0x9fdab4=explicitDblink(_0x8824e8);if(_0x518c35===_0x492c43(0xd2)){if(!_0x8824e8['str']('from-datasetcode')[_0x492c43(0x97)]()&&_0x9fdab4===undefined)throw CliErrors[_0x492c43(0xc9)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x8824e8,'from-datasetcode'),required(_0x8824e8,_0x492c43(0xbf));if(_0x518c35!==_0x492c43(0x87)){required(_0x8824e8,'to-datasetcode'),required(_0x8824e8,_0x492c43(0xa2));const _0x5b7ec5=_0x8824e8['str'](_0x492c43(0xd8))[_0x492c43(0x97)]();if(_0x5b7ec5&&!CROSS_RELATION_CARDINALITY_FLAG[_0x492c43(0xb3)][_0x492c43(0xd6)](_0x5b7ec5))throw CliErrors['validation'](_0x492c43(0x98));}}async function resolveEndpoint(_0x30a7c0){const _0x10517c=a72_0x23ff,_0x3cfcf3=await getDatasetDetail(_0x30a7c0),_0x5cb537=_0x3cfcf3?.['dataset']??{};if((_0x3cfcf3?.[_0x10517c(0x9d)]??_0x5cb537[_0x10517c(0xb9)])!==_0x10517c(0x96))throw CliErrors['validation'](_0x10517c(0xb8)+_0x30a7c0+_0x10517c(0xd4));const _0x13df21=_0x3cfcf3[_0x10517c(0xc3)]??_0x3cfcf3[_0x10517c(0xcb)]??{};let _0x58f445=_0x3cfcf3['extend']??_0x5cb537[_0x10517c(0x8b)]??{};if(typeof _0x58f445==='string')try{_0x58f445=_0x58f445[_0x10517c(0x97)]()?JSON[_0x10517c(0xb0)](_0x58f445):{};}catch{throw CliErrors[_0x10517c(0xc9)](_0x10517c(0xb8)+_0x30a7c0+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x21f3b5=Number(_0x58f445?.[_0x10517c(0xcc)]?.['dbId']??_0x3cfcf3[_0x10517c(0xcc)]?.[_0x10517c(0xb5)]??_0x5cb537[_0x10517c(0xcc)]?.[_0x10517c(0xb5)]??_0x13df21[_0x10517c(0xb5)]??_0x5cb537['dbId']??_0x3cfcf3[_0x10517c(0xb5)]),_0x512a75=String(_0x3cfcf3[_0x10517c(0xb2)]??_0x5cb537[_0x10517c(0xb2)]??_0x13df21[_0x10517c(0xb2)]??'')[_0x10517c(0x97)]();if(!Number[_0x10517c(0xc2)](_0x21f3b5)||_0x21f3b5<=0x0||!_0x512a75)throw CliErrors[_0x10517c(0xc9)](_0x10517c(0xb8)+_0x30a7c0+'\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.');return{'datasetCode':_0x30a7c0,'dblinkId':_0x21f3b5,'table':_0x512a75};}export async function resolveCrossRelationQuery(_0x28a979){const _0x506a91=a72_0x23ff,_0x46ca17=_0x28a979['str'](_0x506a91(0xca))[_0x506a91(0x97)](),_0xb0576e=explicitDblink(_0x28a979),_0x310f74=_0x46ca17?await resolveEndpoint(_0x46ca17):undefined;if(_0x310f74&&_0xb0576e!==undefined&&_0x310f74[_0x506a91(0x8f)]!==_0xb0576e)throw CliErrors[_0x506a91(0xc9)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x466146=_0x310f74?.['dblinkId']??_0xb0576e;if(_0x466146===undefined)throw CliErrors[_0x506a91(0xc9)](_0x506a91(0xab));return{'appCode':_0x28a979['appCode'],'fromDblinkId':_0x466146,..._0x46ca17?{'fromDatasetCode':_0x46ca17}:{},..._0x28a979[_0x506a91(0xa1)](_0x506a91(0xbf))[_0x506a91(0x97)]()?{'fromField':_0x28a979[_0x506a91(0xa1)](_0x506a91(0xbf))[_0x506a91(0x97)]()}:{}};}export function projectCrossRelation(_0x5f4c81){const _0x270787=a72_0x23ff;return{'relationId':_0x5f4c81['relationId'],'from':{'source':_0x270787(0x96),'datasetCode':_0x5f4c81[_0x270787(0xd9)],'datasetName':_0x5f4c81[_0x270787(0x9e)],'dblinkId':_0x5f4c81[_0x270787(0xac)],'table':_0x5f4c81[_0x270787(0x99)],'field':_0x5f4c81[_0x270787(0xa8)]},'to':{'source':_0x270787(0x96),'datasetCode':_0x5f4c81[_0x270787(0x9c)],'datasetName':_0x5f4c81[_0x270787(0x9b)],'dblinkId':_0x5f4c81[_0x270787(0xbe)],'table':_0x5f4c81['toTableName'],'field':_0x5f4c81['toField'],'labelField':_0x5f4c81[_0x270787(0xaa)]},'relation':{'cardinality':_0x5f4c81['cardinality'],'relationType':_0x5f4c81[_0x270787(0x8d)]}};}function ambiguity(_0x41a46c){const _0x398a6e=a72_0x23ff,_0x4fe884=CliErrors[_0x398a6e(0xc9)]('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.',_0x398a6e(0xd7));return Object['defineProperty'](_0x4fe884,_0x398a6e(0xbb),{'value':{'candidates':_0x41a46c[_0x398a6e(0xba)](projectCrossRelation)}}),_0x4fe884;}const sameName=(_0x165d41,_0x4fb1b6)=>_0x165d41[a72_0x1baadf(0x8a)]()===_0x4fb1b6[a72_0x1baadf(0x8a)]();function matchesEndpoint(_0x3b3bc3,_0x1c07a0,_0x417062,_0x334cce,_0x34e82d){const _0x18e834=a72_0x1baadf;return _0x3b3bc3[_0x18e834(0xac)]===_0x1c07a0[_0x18e834(0x8f)]&&sameName(_0x3b3bc3[_0x18e834(0x99)],_0x1c07a0[_0x18e834(0xbc)])&&sameName(_0x3b3bc3['fromField'],_0x417062)&&_0x3b3bc3[_0x18e834(0xbe)]===_0x334cce[_0x18e834(0x8f)]&&sameName(_0x3b3bc3[_0x18e834(0xc6)],_0x334cce[_0x18e834(0xbc)])&&sameName(_0x3b3bc3[_0x18e834(0xa6)],_0x34e82d);}export async function prepareCrossRelation(_0x5c6734,_0x2d2256){const _0x583dd1=a72_0x1baadf,_0x18e0ac=await resolveEndpoint(required(_0x5c6734,_0x583dd1(0xca))),_0x1b3cf8=explicitDblink(_0x5c6734);if(_0x1b3cf8!==undefined&&_0x18e0ac[_0x583dd1(0x8f)]!==_0x1b3cf8)throw CliErrors[_0x583dd1(0xc9)](_0x583dd1(0x94));const _0x4a6fd1={'appCode':_0x5c6734['appCode'],'fromDatasetCode':_0x18e0ac[_0x583dd1(0xd1)],'fromField':required(_0x5c6734,_0x583dd1(0xbf)),..._0x1b3cf8!==undefined?{'fromDblinkId':_0x1b3cf8}:{}},_0x1ba936={'appCode':_0x5c6734[_0x583dd1(0xc0)],'fromDblinkId':_0x18e0ac[_0x583dd1(0x8f)],'fromDatasetCode':_0x18e0ac[_0x583dd1(0xd1)],'fromField':_0x4a6fd1[_0x583dd1(0xa8)]},_0x3b2770=await queryCrossDbRelations(_0x1ba936);let _0x17104b=null;if(_0x2d2256!==_0x583dd1(0x8c)){if(_0x3b2770['length']>0x1)throw ambiguity(_0x3b2770);_0x17104b=_0x3b2770[0x0]??null;if(!_0x17104b)throw CliErrors[_0x583dd1(0xc9)](_0x583dd1(0xaf));}if(_0x2d2256===_0x583dd1(0x87))return{'operation':_0x2d2256,'from':_0x18e0ac,'query':_0x1ba936,'body':_0x4a6fd1,'before':_0x17104b};const _0x7e54d4=await resolveEndpoint(required(_0x5c6734,_0x583dd1(0xcd)));if(_0x18e0ac[_0x583dd1(0x8f)]===_0x7e54d4['dblinkId'])throw CliErrors[_0x583dd1(0xc9)](_0x583dd1(0x91));const _0x396aca=_0x5c6734[_0x583dd1(0xa1)](_0x583dd1(0xd0))[_0x583dd1(0x97)](),_0x3a0c04=_0x5c6734[_0x583dd1(0xa1)](_0x583dd1(0xd8))['trim'](),_0x51e13f={..._0x4a6fd1,'toDatasetCode':_0x7e54d4[_0x583dd1(0xd1)],'toField':required(_0x5c6734,_0x583dd1(0xa2)),..._0x396aca?{'refTableLabelName':_0x396aca}:{},..._0x3a0c04?{'cardinality':_0x3a0c04}:{}};if(_0x3b2770['some'](_0x16d62a=>_0x16d62a[_0x583dd1(0x95)]!==_0x17104b?.[_0x583dd1(0x95)]&&matchesEndpoint(_0x16d62a,_0x18e0ac,_0x51e13f[_0x583dd1(0xa8)],_0x7e54d4,_0x51e13f[_0x583dd1(0xa6)])))throw CliErrors[_0x583dd1(0xc9)](_0x583dd1(0xa7));return{'operation':_0x2d2256,'from':_0x18e0ac,'to':_0x7e54d4,'query':_0x1ba936,'body':_0x51e13f,'before':_0x17104b,'expectedLabel':_0x396aca||_0x17104b?.['refTableLabelName']||_0x51e13f[_0x583dd1(0xa6)],'expectedCardinality':_0x3a0c04||_0x17104b?.[_0x583dd1(0xd8)]||null};}function mutationData(_0x1a9a43,_0xa699ae,_0x4e9665){const _0x344d75=a72_0x1baadf,{operation:_0x3f5800,body:_0x5dc402,before:_0x1a3100}=_0x1a9a43;return{'operation':_0x3f5800,'selector':{'appCode':_0x5dc402[_0x344d75(0xc0)],'from':{'datasetCode':_0x5dc402[_0x344d75(0xd9)],'field':_0x5dc402[_0x344d75(0xa8)],'dblinkId':_0x1a9a43[_0x344d75(0x8e)][_0x344d75(0x8f)]}},'before':_0x1a3100?projectCrossRelation(_0x1a3100):null,'after':_0x4e9665,'dryRun':_0xa699ae,'backend':{'method':_0x344d75(0xa3),'path':CROSS_DB_RELATION_PATHS[_0x3f5800]},'warnings':_0x3f5800===_0x344d75(0xc4)&&!_0x5dc402[_0x344d75(0xaa)]?[{'code':_0x344d75(0xd5),'message':_0x344d75(0x93)}]:[]};}export async function previewCrossRelation(_0x4b5dc3,_0x48c55c){const _0x9a66d9=a72_0x1baadf,_0x2ea15f=await prepareCrossRelation(_0x4b5dc3,_0x48c55c),_0x29d215=_0x2ea15f['body'],_0x18f817=_0x48c55c===_0x9a66d9(0x87)?null:{..._0x2ea15f['before']?{'relationId':_0x2ea15f[_0x9a66d9(0x88)][_0x9a66d9(0x95)]}:{},'from':{'datasetCode':_0x2ea15f[_0x9a66d9(0x8e)]['datasetCode'],'dblinkId':_0x2ea15f['from'][_0x9a66d9(0x8f)],'table':_0x2ea15f[_0x9a66d9(0x8e)]['table'],'field':_0x29d215[_0x9a66d9(0xa8)]},'to':{'datasetCode':_0x2ea15f['to']['datasetCode'],'dblinkId':_0x2ea15f['to']['dblinkId'],'table':_0x2ea15f['to'][_0x9a66d9(0xbc)],'field':_0x29d215['toField'],'labelField':_0x2ea15f[_0x9a66d9(0xda)]},'relation':{'cardinality':_0x2ea15f[_0x9a66d9(0x9a)],'relationType':0x2}};return{...mutationData(_0x2ea15f,!![],null),'after':_0x18f817,'method':_0x9a66d9(0xa3),'url':CROSS_DB_RELATION_PATHS[_0x48c55c],'body':_0x2ea15f[_0x9a66d9(0xc1)],'description':'Would\x20'+_0x48c55c+_0x9a66d9(0xa9)+_0x29d215['fromDatasetCode']+'.'+_0x29d215['fromField']};}function a72_0x5e8a(){const _0x3d7497=['storageProfile','to-datasetcode','397741nfUqQm','Cross-database\x20relation\x20','to-label-column','datasetCode','list','3191814ScpgjA','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','label_inherited','includes','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','cardinality','fromDatasetCode','expectedLabel','flag','delete','before','catch','toLowerCase','extend','create','relationType','from','dblinkId','multiple\x20cross-database\x20relations\x20matched','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','1187370zRVHnG','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','relationId','DB_TABLE','trim','Invalid\x20--cardinality.','fromTableName','expectedCardinality','toDatasetName','toDatasetCode','source','fromDatasetName','2086662eOoXTI','unconfirmed','str','to-column','POST','matched','1391734HgXimZ','toField','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','fromField','\x20a\x20cross-database\x20relation\x20for\x20','refTableLabelName','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','fromDblinkId','apiError','\x20write\x20was\x20not\x20verified.','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','parse','flagMissing','tableName','enum','2916697aKoGkd','dbId','8uEEUWx','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Dataset\x20','sourceType','map','data','table','message','toDblinkId','from-column','appCode','body','isSafeInteger','dbtableConfig','update','4NjDPnS','toTableName','63055OsNPxH','defineProperty','validation','from-datasetcode','dbtable'];a72_0x5e8a=function(){return _0x3d7497;};return a72_0x5e8a();}export async function executeCrossRelation(_0x17ff02,_0x4c2d82,_0x57133c){const _0x167679=a72_0x1baadf,_0xa02b9a=await prepareCrossRelation(_0x17ff02,_0x4c2d82);try{await _0x57133c(_0xa02b9a[_0x167679(0xc1)]);}catch(_0x566773){if(_0x566773 instanceof CliError&&_0x566773[_0x167679(0xbd)][_0x167679(0xd6)](_0x167679(0x90))){const _0x2c94d3=await queryCrossDbRelations(_0xa02b9a['query'])[_0x167679(0x89)](()=>[]);throw ambiguity(_0x2c94d3);}throw _0x566773;}let _0x3c9562=[],_0x3b5192,_0x2b45bd=![];try{_0x3c9562=await queryCrossDbRelations(_0xa02b9a['query']);if(_0x4c2d82==='delete')_0x2b45bd=!_0x3c9562['some'](_0x1b629b=>_0x1b629b['relationId']===_0xa02b9a[_0x167679(0x88)][_0x167679(0x95)]);else{const _0x352c28=_0xa02b9a[_0x167679(0xc1)],_0x3de8df=_0x3c9562['filter'](_0x4ff421=>matchesEndpoint(_0x4ff421,_0xa02b9a['from'],_0x352c28[_0x167679(0xa8)],_0xa02b9a['to'],_0x352c28[_0x167679(0xa6)])&&(_0x4c2d82===_0x167679(0x8c)||_0x4ff421[_0x167679(0x95)]===_0xa02b9a[_0x167679(0x88)]['relationId']));_0x3b5192=_0x3de8df['length']===0x1?_0x3de8df[0x0]:undefined,_0x2b45bd=!!_0x3b5192&&_0x3b5192[_0x167679(0xaa)]===_0xa02b9a[_0x167679(0xda)]&&_0x3b5192[_0x167679(0xd8)]===_0xa02b9a['expectedCardinality']&&_0x3b5192[_0x167679(0x8d)]===0x2;}}catch{}const _0x5a7f06={...mutationData(_0xa02b9a,![],_0x3b5192?projectCrossRelation(_0x3b5192):null),'verification':{'status':_0x2b45bd?_0x167679(0xa4):_0x167679(0xa0),'verified':_0x2b45bd}};if(!_0x2b45bd){const _0xee64e1=CliErrors[_0x167679(0xad)](_0x167679(0xcf)+_0x4c2d82+_0x167679(0xae),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object[_0x167679(0xc8)](_0xee64e1,'data',{'value':{..._0x5a7f06,'candidates':_0x3c9562['map'](projectCrossRelation)}});throw _0xee64e1;}return{'ok':!![],'data':_0x5a7f06,'message':_0x167679(0xcf)+_0x4c2d82+'\x20verified.'};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x1f65a4=a73_0x1e15;(function(_0x2de4b8,_0x4100f6){const _0x1ea6df=a73_0x1e15,_0x22d3f2=_0x2de4b8();while(!![]){try{const _0x1cc3c3=parseInt(_0x1ea6df(0x173))/0x1*(parseInt(_0x1ea6df(0x176))/0x2)+parseInt(_0x1ea6df(0x171))/0x3+-parseInt(_0x1ea6df(0x174))/0x4+parseInt(_0x1ea6df(0x16b))/0x5*(-parseInt(_0x1ea6df(0x175))/0x6)+-parseInt(_0x1ea6df(0x177))/0x7+parseInt(_0x1ea6df(0x16c))/0x8*(-parseInt(_0x1ea6df(0x178))/0x9)+parseInt(_0x1ea6df(0x16d))/0xa;if(_0x1cc3c3===_0x4100f6)break;else _0x22d3f2['push'](_0x22d3f2['shift']());}catch(_0x300a71){_0x22d3f2['push'](_0x22d3f2['shift']());}}}(a73_0x16e6,0x3145c));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x16e6(){const _0x20be16=['1244019pKRGUo','9BgelFR','334940RaKEXe','2655416nbvnuw','6318740dZEzah','update','write','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','734274dTANRj','cross-relation-update','1031pknaRV','17652hgOZwB','18MUwyPk','78DYpHAg'];a73_0x16e6=function(){return _0x20be16;};return a73_0x16e6();}function a73_0x1e15(_0x29857f,_0x542599){_0x29857f=_0x29857f-0x16b;const _0x16e62a=a73_0x16e6();let _0x1e151f=_0x16e62a[_0x29857f];return _0x1e151f;}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':'dataset','command':a73_0x1f65a4(0x172),'description':a73_0x1f65a4(0x170),'risk':a73_0x1f65a4(0x16f),'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 _0x2d9336=>validateCrossRelation(_0x2d9336,'update'),'dryRun':_0x4d3bbe=>previewCrossRelation(_0x4d3bbe,'update'),'execute':_0x593807=>executeCrossRelation(_0x593807,a73_0x1f65a4(0x16e),updateCrossDbRelation)};
|