@lovrabet/rabetbase-cli 2.5.12 → 2.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x1093(){const _0x5c7041=['get','app','read','3IEFoUg','object','string','1030995LpDBui','5Ljyanf','validation','Key\x20not\x20found:\x20','1303372alaFku','5757582rDdPdR','config','\x20config\x20get\x20--key\x20<key>','2390128Mxmhbk','str','key','Usage:\x20','1281090xKUuwy','90333XxjTlb','1910Gjgahv','Get\x20a\x20config\x20value\x20by\x20key','5035226ovRzZp','Missing\x20key.'];a59_0x1093=function(){return _0x5c7041;};return a59_0x1093();}const a59_0x450f09=a59_0x19a1;(function(_0x3d6974,_0x87dca4){const _0x2aa9ba=a59_0x19a1,_0x47c508=_0x3d6974();while(!![]){try{const _0x49e96e=-parseInt(_0x2aa9ba(0x1e0))/0x1+parseInt(_0x2aa9ba(0x1d4))/0x2+parseInt(_0x2aa9ba(0x1dd))/0x3*(-parseInt(_0x2aa9ba(0x1cc))/0x4)+-parseInt(_0x2aa9ba(0x1c9))/0x5*(parseInt(_0x2aa9ba(0x1cd))/0x6)+parseInt(_0x2aa9ba(0x1d8))/0x7+-parseInt(_0x2aa9ba(0x1d0))/0x8+-parseInt(_0x2aa9ba(0x1d5))/0x9*(-parseInt(_0x2aa9ba(0x1d6))/0xa);if(_0x49e96e===_0x87dca4)break;else _0x47c508['push'](_0x47c508['shift']());}catch(_0x45f7ad){_0x47c508['push'](_0x47c508['shift']());}}}(a59_0x1093,0xa18e1));import{CliErrors}from'../../errors.js';function a59_0x19a1(_0x33e178,_0x28af04){_0x33e178=_0x33e178-0x1c9;const _0x10934f=a59_0x1093();let _0x19a1c1=_0x10934f[_0x33e178];return _0x19a1c1;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2720b4){const _0x3d76c0=a59_0x19a1,_0x17bc13=_0x2720b4[_0x3d76c0(0x1d1)](_0x3d76c0(0x1d2));if(!_0x17bc13)throw CliErrors[_0x3d76c0(0x1ca)](_0x3d76c0(0x1d9),_0x3d76c0(0x1d3)+CLI_BIN_NAME+_0x3d76c0(0x1cf));const _0x2acdc5=readConfig(),_0x256b35=_0x17bc13===_0x3d76c0(0x1db)?'appcode':_0x17bc13,_0x4ab9f6=_0x2acdc5[_0x256b35];if(_0x4ab9f6===undefined)throw CliErrors['validation'](_0x3d76c0(0x1cb)+_0x17bc13);return{'ok':!![],'data':typeof _0x4ab9f6===_0x3d76c0(0x1de)?_0x4ab9f6:{[_0x256b35]:_0x4ab9f6},'message':typeof _0x4ab9f6===_0x3d76c0(0x1de)?undefined:String(_0x4ab9f6)};}export const configGetDefinition={'service':a59_0x450f09(0x1ce),'command':a59_0x450f09(0x1da),'description':a59_0x450f09(0x1d7),'risk':a59_0x450f09(0x1dc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a59_0x450f09(0x1df),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb104e,_0x135e51){const _0x4c4c8e=a60_0x2aa7,_0x1ae874=_0xb104e();while(!![]){try{const _0x48bee6=parseInt(_0x4c4c8e(0x1a8))/0x1*(-parseInt(_0x4c4c8e(0x1ab))/0x2)+-parseInt(_0x4c4c8e(0x1b1))/0x3+-parseInt(_0x4c4c8e(0x1ac))/0x4*(-parseInt(_0x4c4c8e(0x1b0))/0x5)+-parseInt(_0x4c4c8e(0x1a9))/0x6*(parseInt(_0x4c4c8e(0x1aa))/0x7)+parseInt(_0x4c4c8e(0x1ae))/0x8*(-parseInt(_0x4c4c8e(0x1ad))/0x9)+-parseInt(_0x4c4c8e(0x1a7))/0xa+parseInt(_0x4c4c8e(0x1af))/0xb;if(_0x48bee6===_0x135e51)break;else _0x1ae874['push'](_0x1ae874['shift']());}catch(_0x464b6e){_0x1ae874['push'](_0x1ae874['shift']());}}}(a60_0x5593,0x2fbb9));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';function a60_0x2aa7(_0x2ee030,_0x4e8d3b){_0x2ee030=_0x2ee030-0x1a7;const _0x559361=a60_0x5593();let _0x2aa73e=_0x559361[_0x2ee030];return _0x2aa73e;}function a60_0x5593(){const _0x2cdf70=['2557760DsuJtX','2zxCMbq','1312908lkcwNt','7EVrdcJ','96746eecFML','1479952oRRWQn','666RrjyNL','31456dmrxGP','8085264ggrAVD','5yONFOj','141573XMsiEc'];a60_0x5593=function(){return _0x2cdf70;};return a60_0x5593();}import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x2f488c=a61_0x13d6;function a61_0x32e1(){const _0x3cc689=['1996UejLXo','Custom\x20Runtime\x20HTTPS\x20origin','3980328sIIjQB','27770BDUaTg','Official\x20Lovrabet\x20region:\x20','label','Region\x20\x22','routing','Available\x20regions:\x20','domains','local-domain','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','1617TouKOk','certificate-domain','Custom\x20platform\x20API\x20HTTPS\x20origin','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','407tyjAgx','region','localDomain','bool','init','skill-domain','711rwLsrH','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','api-domain','mode','860318VurJxR','global','official','5430hiXFNW','228768Fczxyt','Custom\x20knowledge-base\x20HTTPS\x20origin','name','Custom\x20User\x20HTTPS\x20origin','join','1FktKvX','Custom\x20SkillHub\x20HTTPS\x20origin','Select\x20Lovrabet\x20region','Independent-deployment\x20Domain\x20JSON\x20file','enterprise-v1','6189850gqHTST','Custom\x20local\x20callback\x20HTTPS\x20origin','manifestDomains','cancelled','user-domain','project','Custom\x20certificate\x20service\x20HTTPS\x20origin','3603qcxUlj','validation','length','ExitPromptError','\x22\x20is\x20not\x20currently\x20available.','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','config','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','cdn','str','string','app-domain','Custom\x20KB\x20Service\x20HTTPS\x20origin','keys','domain-config'];a61_0x32e1=function(){return _0x3cc689;};return a61_0x32e1();}(function(_0x22a9dd,_0x341cbc){const _0x2c0963=a61_0x13d6,_0x22bf7a=_0x22a9dd();while(!![]){try{const _0x1b9e8d=-parseInt(_0x2c0963(0x12d))/0x1*(parseInt(_0x2c0963(0x124))/0x2)+-parseInt(_0x2c0963(0x139))/0x3*(-parseInt(_0x2c0963(0x148))/0x4)+parseInt(_0x2c0963(0x132))/0x5+-parseInt(_0x2c0963(0x127))/0x6*(-parseInt(_0x2c0963(0x116))/0x7)+-parseInt(_0x2c0963(0x14a))/0x8+-parseInt(_0x2c0963(0x120))/0x9*(-parseInt(_0x2c0963(0x14b))/0xa)+parseInt(_0x2c0963(0x11a))/0xb*(-parseInt(_0x2c0963(0x128))/0xc);if(_0x1b9e8d===_0x341cbc)break;else _0x22bf7a['push'](_0x22bf7a['shift']());}catch(_0x511131){_0x22bf7a['push'](_0x22bf7a['shift']());}}}(a61_0x32e1,0x9a73f));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';function a61_0x13d6(_0x33e54b,_0x59feae){_0x33e54b=_0x33e54b-0x112;const _0x32e1ed=a61_0x32e1();let _0x13d609=_0x32e1ed[_0x33e54b];return _0x13d609;}export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x2f488c(0x11b),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x14c)+ENABLED_LOVRABET_REGION_VALUES[a61_0x2f488c(0x12c)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x2f488c(0x147),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x130)},{'name':a61_0x2f488c(0x136),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x12b)},{'name':a61_0x2f488c(0x122),'type':'string','description':a61_0x2f488c(0x118)},{'name':'runtime-domain','type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x149)},{'name':a61_0x2f488c(0x11f),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x12e)},{'name':'kb-domain','type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x129)},{'name':'kb-service-domain','type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x145)},{'name':a61_0x2f488c(0x144),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x13e)},{'name':a61_0x2f488c(0x114),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x133)},{'name':a61_0x2f488c(0x117),'type':a61_0x2f488c(0x143),'description':a61_0x2f488c(0x138)}];async function resolveRegion(_0x4c11dd){const _0x11767f=a61_0x2f488c,_0x2c20d3=_0x4c11dd[_0x11767f(0x142)](_0x11767f(0x11b));if(_0x2c20d3){if(!isEnabledLovrabetRegion(_0x2c20d3))throw CliErrors[_0x11767f(0x13a)](_0x11767f(0x14e)+_0x2c20d3+_0x11767f(0x13d),_0x11767f(0x112)+ENABLED_LOVRABET_REGION_VALUES[_0x11767f(0x12c)](',\x20'));return _0x2c20d3;}if(_0x4c11dd['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x11767f(0x12f),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x369a72=>({'name':getOfficialRoutingProfile(_0x369a72)[_0x11767f(0x14d)]+'\x20('+_0x369a72+')','value':_0x369a72}))});}catch(_0x512089){if(_0x512089?.[_0x11767f(0x12a)]===_0x11767f(0x13c))throw CliErrors[_0x11767f(0x135)]();throw _0x512089;}}export async function executeConfigInit(_0x5b1e3f){const _0x8ba3e0=a61_0x2f488c,_0x4826d0=resolveDomainConfigInput(_0x5b1e3f),_0x54ba49=_0x4826d0[_0x8ba3e0(0x113)],_0x552725=Object[_0x8ba3e0(0x146)](_0x54ba49)[_0x8ba3e0(0x13b)]>0x0;if(_0x552725&&_0x5b1e3f[_0x8ba3e0(0x142)]('region'))throw CliErrors[_0x8ba3e0(0x13a)](_0x8ba3e0(0x115));if(!!_0x54ba49[_0x8ba3e0(0x11c)]!==!!_0x54ba49['certificateDomain'])throw CliErrors[_0x8ba3e0(0x13a)]('Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.');const _0x44f47a=_0x5b1e3f[_0x8ba3e0(0x11d)]('global')?_0x8ba3e0(0x125):_0x8ba3e0(0x137),_0x144669=readScopedConfig(_0x44f47a);for(const _0x51397c of DOMAIN_CONFIG_FIELDS)delete _0x144669[_0x51397c];for(const _0x1157e3 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x144669[_0x1157e3];delete _0x144669['routing'];let _0x297e91=null;if(_0x552725)delete _0x144669[_0x8ba3e0(0x11b)],_0x4826d0[_0x8ba3e0(0x123)]===_0x8ba3e0(0x131)?_0x144669[_0x8ba3e0(0x14f)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x4826d0[_0x8ba3e0(0x134)],'cdn':_0x4826d0[_0x8ba3e0(0x141)]}:Object['assign'](_0x144669,_0x54ba49);else{_0x297e91=await resolveRegion(_0x5b1e3f);if(_0x297e91===DEFAULT_LOVRABET_REGION)delete _0x144669[_0x8ba3e0(0x11b)];else _0x144669[_0x8ba3e0(0x11b)]=_0x297e91;}return writeScopedConfig(_0x144669,_0x44f47a),{'ok':!![],'message':_0x552725?_0x8ba3e0(0x121)+Object[_0x8ba3e0(0x146)](_0x4826d0[_0x8ba3e0(0x123)]===_0x8ba3e0(0x131)?_0x4826d0[_0x8ba3e0(0x134)]:_0x54ba49)[_0x8ba3e0(0x12c)](',\x20')+'.':_0x8ba3e0(0x119)+_0x297e91+'.','data':{'mode':_0x552725?'independent':_0x8ba3e0(0x126),'protocol':_0x4826d0['mode']==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x297e91,'domains':_0x54ba49,'cdn':_0x4826d0[_0x8ba3e0(0x123)]===_0x8ba3e0(0x131)?_0x4826d0[_0x8ba3e0(0x141)]:undefined}};}export const configInitDefinition={'service':a61_0x2f488c(0x13f),'command':a61_0x2f488c(0x11e),'description':'Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':'write','confirmationDescription':a61_0x2f488c(0x140),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x41b0db=a62_0x2bec;(function(_0x33a53c,_0x3ee30a){const _0x3be5f5=a62_0x2bec,_0x4fe60f=_0x33a53c();while(!![]){try{const _0x9e881d=parseInt(_0x3be5f5(0x135))/0x1+-parseInt(_0x3be5f5(0x13c))/0x2+-parseInt(_0x3be5f5(0x13b))/0x3+-parseInt(_0x3be5f5(0x131))/0x4+-parseInt(_0x3be5f5(0x130))/0x5*(-parseInt(_0x3be5f5(0x136))/0x6)+parseInt(_0x3be5f5(0x139))/0x7+parseInt(_0x3be5f5(0x138))/0x8*(parseInt(_0x3be5f5(0x12f))/0x9);if(_0x9e881d===_0x3ee30a)break;else _0x4fe60f['push'](_0x4fe60f['shift']());}catch(_0x1e6395){_0x4fe60f['push'](_0x4fe60f['shift']());}}}(a62_0x4cb5,0xbb94f));function a62_0x2bec(_0x580e0f,_0x378fa2){_0x580e0f=_0x580e0f-0x12e;const _0x4cb538=a62_0x4cb5();let _0x2bec52=_0x4cb538[_0x580e0f];return _0x2bec52;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a62_0x4cb5(){const _0x5b83c5=['6216728daACpp','read','1343916KGinqO','2335634KBvllE','global','List\x20all\x20config\x20values','1917018jrOPqM','40vgsmoC','5813348gqWNef','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','boolean','list','1169563TERDSH','536088CUBYIA','bool','40urrDzI'];a62_0x4cb5=function(){return _0x5b83c5;};return a62_0x4cb5();}async function execute(_0x60b138){const _0x38d0cc=a62_0x2bec,_0x727673=_0x60b138[_0x38d0cc(0x137)]('global')?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x727673};}export const configListDefinition={'service':'config','command':a62_0x41b0db(0x134),'description':a62_0x41b0db(0x12e),'risk':a62_0x41b0db(0x13a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x41b0db(0x13d),'type':a62_0x41b0db(0x133),'description':a62_0x41b0db(0x132),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x2a3c13=a63_0x5aa8;(function(_0x40acf4,_0x56a2a4){const _0x4f35b5=a63_0x5aa8,_0x4b69fa=_0x40acf4();while(!![]){try{const _0x4ed149=-parseInt(_0x4f35b5(0x17f))/0x1*(parseInt(_0x4f35b5(0x1ac))/0x2)+parseInt(_0x4f35b5(0x1a6))/0x3*(parseInt(_0x4f35b5(0x188))/0x4)+parseInt(_0x4f35b5(0x1a8))/0x5+parseInt(_0x4f35b5(0x18a))/0x6*(-parseInt(_0x4f35b5(0x17b))/0x7)+-parseInt(_0x4f35b5(0x190))/0x8*(-parseInt(_0x4f35b5(0x182))/0x9)+parseInt(_0x4f35b5(0x197))/0xa+-parseInt(_0x4f35b5(0x192))/0xb;if(_0x4ed149===_0x56a2a4)break;else _0x4b69fa['push'](_0x4b69fa['shift']());}catch(_0x41abac){_0x4b69fa['push'](_0x4b69fa['shift']());}}}(a63_0x5e18,0xae431));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a63_0x5e18(){const _0x540b6e=['Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','apps','3690783tmVGEf','Project','value','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','includes','Settable\x20top-level\x20keys:\x20','5118140apPKTJ','appcode','6nYitZC','env','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','locale','validation','object','8gFcEmq','string','6821155JKLgmw','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Config\x20value','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Global','3414920QchwaY','\x20appcode\x20set\x20to:\x20','Usage:\x20','Missing\x20key.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20locale\x20value.','write','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','config','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Missing\x20value.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Top-level\x20key\x20\x22','riskLevel','join','3flKrWP','Invalid\x20value\x20for\x20\x22','1376765ezAeOm','boolean','bool','app','4GoUItj','global','length','\x22.\x20Allowed:\x20','5694899bkNZaw','`,\x20`','keys','str','79514vOtgmH'];a63_0x5e18=function(){return _0x540b6e;};return a63_0x5e18();}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a63_0x5aa8(_0x540673,_0x553d56){_0x540673=_0x540673-0x17a;const _0x5e1855=a63_0x5e18();let _0x5aa8a4=_0x5e1855[_0x540673];return _0x5aa8a4;}import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x206189){const _0x5af050=a63_0x5aa8,_0x4ab50d=_0x206189[_0x5af050(0x17e)]('key'),_0x2e6801=_0x206189[_0x5af050(0x17e)](_0x5af050(0x184));if(!_0x4ab50d)throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x19a),'Usage:\x20'+CLI_BIN_NAME+_0x5af050(0x19e));if(_0x2e6801===undefined||_0x2e6801==='')throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x1a1),_0x5af050(0x199)+CLI_BIN_NAME+_0x5af050(0x19e));let _0x274f3e=_0x4ab50d,_0x2cf657=_0x2e6801;if(_0x2e6801[_0x5af050(0x1ae)]>0x1f4)throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x19b));if(_0x4ab50d===_0x5af050(0x1a4))throw CliErrors['validation'](_0x5af050(0x1a2));if(!isTopLevelConfigKey(_0x4ab50d))throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x1a3)+_0x4ab50d+'\x22\x20is\x20not\x20settable.',_0x5af050(0x187)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x4ab50d]&&!CONFIG_ENUM_VALUES[_0x4ab50d][_0x5af050(0x186)](_0x2e6801))throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x1a7)+_0x4ab50d+_0x5af050(0x17a)+CONFIG_ENUM_VALUES[_0x4ab50d][_0x5af050(0x1a5)](',\x20'));if(_0x4ab50d===_0x5af050(0x18d)&&!normalizeLocale(_0x2e6801))throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x19c),_0x5af050(0x1a0));DOMAIN_CONFIG_FIELDS[_0x5af050(0x186)](_0x4ab50d)&&(_0x2cf657=normalizeDomainOrigin(_0x4ab50d,_0x2e6801));const _0x4fca6e={'global':_0x206189[_0x5af050(0x1aa)]('global')},_0x3cc3da=resolveWriteScope(_0x4fca6e),_0x365129=readScopedConfig(_0x3cc3da);_0x4ab50d===_0x5af050(0x1ab)&&(_0x274f3e='appcode',delete _0x365129[_0x5af050(0x1ab)]);_0x4ab50d===_0x5af050(0x18d)&&(_0x2cf657=normalizeLocale(_0x2e6801));if(_0x4ab50d===_0x5af050(0x18b)){_0x2cf657=normalizeEnv(_0x2e6801);if(!isProduction(_0x2cf657)&&!isDaily(_0x2cf657))throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x193),_0x5af050(0x185));}if(_0x4ab50d===_0x5af050(0x189)){const _0x8d9e21=_0x365129[_0x5af050(0x181)]&&typeof _0x365129['apps']===_0x5af050(0x18f)?Object[_0x5af050(0x17d)](_0x365129[_0x5af050(0x181)]):[];if(_0x8d9e21[_0x5af050(0x1ae)]>0x0)throw CliErrors[_0x5af050(0x18e)](_0x5af050(0x180),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x2cf657+_0x5af050(0x17c)+CLI_BIN_NAME+_0x5af050(0x18c));const _0x3a6671=buildCanonicalProjectConfig({..._0x365129},{'appCodes':[_0x2cf657],'env':typeof _0x365129[_0x5af050(0x18b)]===_0x5af050(0x191)?_0x365129[_0x5af050(0x18b)]:undefined});writeScopedConfig(_0x3a6671,_0x3cc3da);const _0x3421e2=_0x3cc3da===_0x5af050(0x1ad)?'Global':_0x5af050(0x183);return{'ok':!![],'message':'✓\x20'+_0x3421e2+_0x5af050(0x198)+_0x2cf657+_0x5af050(0x195)};}_0x365129[_0x274f3e]=_0x2cf657,writeScopedConfig(_0x365129,_0x3cc3da);const _0xa748e1=_0x3cc3da===_0x5af050(0x1ad)?_0x5af050(0x196):_0x5af050(0x183);return{'ok':!![],'message':'✓\x20'+_0xa748e1+'\x20'+_0x274f3e+'\x20set\x20to:\x20'+_0x2cf657};}export const configSetDefinition={'service':a63_0x2a3c13(0x19f),'command':'set','description':'Set\x20a\x20config\x20value','risk':a63_0x2a3c13(0x19d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a63_0x2a3c13(0x191),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x2a3c13(0x184),'type':a63_0x2a3c13(0x191),'description':a63_0x2a3c13(0x194),'required':!![]},{'name':a63_0x2a3c13(0x1ad),'type':a63_0x2a3c13(0x1a9),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5623c2,_0x14c31e){var _0x533816=a64_0x8bcf,_0x2a688e=_0x5623c2();while(!![]){try{var _0x38ce1d=parseInt(_0x533816(0x1ed))/0x1*(parseInt(_0x533816(0x1f1))/0x2)+-parseInt(_0x533816(0x1fe))/0x3*(-parseInt(_0x533816(0x1f4))/0x4)+parseInt(_0x533816(0x1f6))/0x5*(parseInt(_0x533816(0x1f7))/0x6)+-parseInt(_0x533816(0x1ef))/0x7*(parseInt(_0x533816(0x1fc))/0x8)+-parseInt(_0x533816(0x1ec))/0x9+-parseInt(_0x533816(0x1fb))/0xa*(parseInt(_0x533816(0x1f5))/0xb)+parseInt(_0x533816(0x1f2))/0xc*(-parseInt(_0x533816(0x1fa))/0xd);if(_0x38ce1d===_0x14c31e)break;else _0x2a688e['push'](_0x2a688e['shift']());}catch(_0x1cd7e4){_0x2a688e['push'](_0x2a688e['shift']());}}}(a64_0x5de5,0xa7a30));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x8bcf(_0x9a6763,_0x13f467){_0x9a6763=_0x9a6763-0x1ec;var _0x5de5ed=a64_0x5de5();var _0x8bcf32=_0x5de5ed[_0x9a6763];return _0x8bcf32;}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};function a64_0x5de5(){var _0x577850=['validation','13FDDLkL','320Ljktfy','1944sDBAPY','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','33oHGDVg','2279700BUObzB','4353AfwqzK','global','24451EbSNJv','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','204eMnoBP','82920VCzaMk','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','409160xAFGnv','266453ANeLwt','40715bTNmTm','738bdUUve','project'];a64_0x5de5=function(){return _0x577850;};return a64_0x5de5();}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x424fc4){var _0x26983e=a64_0x8bcf;if(_0x424fc4[_0x26983e(0x1ee)])return'global';if(!isInProject())throw CliErrors[_0x26983e(0x1f9)](_0x26983e(0x1f3),_0x26983e(0x1f0)+CLI_BIN_NAME+_0x26983e(0x1fd));return _0x26983e(0x1f8);}export function readScopedConfig(_0x488cc4){return readConfigFile(resolveWriteConfigPath(_0x488cc4));}export function writeScopedConfig(_0x419d0f,_0x5b9f75){writeConfigFile(resolveWriteConfigPath(_0x5b9f75),_0x419d0f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x55bd58=a65_0x1b54;(function(_0x1b218e,_0x1cbe50){const _0x230926=a65_0x1b54,_0x2ff254=_0x1b218e();while(!![]){try{const _0x5598f7=-parseInt(_0x230926(0x1b8))/0x1*(parseInt(_0x230926(0x1a6))/0x2)+-parseInt(_0x230926(0x14b))/0x3*(parseInt(_0x230926(0x179))/0x4)+-parseInt(_0x230926(0x150))/0x5+-parseInt(_0x230926(0x197))/0x6+parseInt(_0x230926(0x163))/0x7*(parseInt(_0x230926(0x1ad))/0x8)+-parseInt(_0x230926(0x189))/0x9+parseInt(_0x230926(0x14e))/0xa*(parseInt(_0x230926(0x19f))/0xb);if(_0x5598f7===_0x1cbe50)break;else _0x2ff254['push'](_0x2ff254['shift']());}catch(_0x454d5b){_0x2ff254['push'](_0x2ff254['shift']());}}}(a65_0x1f6b,0x5754f));function a65_0x1f6b(){const _0x83c994=['ADDRESS','.cardinality\x20is\x20not\x20supported.','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','length','].design.fields','datasetName','73407mrFZel','string','].design','].confidence','set','MULTI_SELECT','1798842cVZUuK','schemaVersion','expectedRelations','50pwYZBV','toDatasetCode','2829560kuWCyS','.toDatasetKey','fields','every','cardinality','\x20references\x20an\x20unknown\x20field.','modelId','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','size','fieldCode','].localKey','].design.dataset\x20must\x20be\x20an\x20object.','toDatasetKey','code','datasets[','expectedLocalKeys','\x20objects.','].design.dataset.datasetName','7XsbPhI','Dataset\x20','dataset','object','\x20references\x20an\x20unknown\x20dataset\x20localKey.','.fromDatasetKey','SELECT','test','isArray','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','relations','fromDatasetCode','modelCode','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','confidence','DATETIME','].reason','lookup','MANY_TO_ONE','\x20non-empty\x20strings.','DATE_RANGE','4Iybmss','].type\x20is\x20not\x20supported.','UPLOAD','.toField','refTableField','validation','toUpperCase','.reason','unresolvedRelations','some','map','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','has','datasetCode','.relationType\x20must\x20be\x20\x22lookup\x22.','refTable','1493793KnkAoy','ONE_TO_ONE','unresolvedRelations[','number','get','relations[','createdDatasets[].localKey','relationType','dataset-batch','join','fromField','design','add','toField','1967496Tyudut','\x20is\x20required.','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','reason','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','\x20must\x20contain\x20','createdRelations','datasets','4421131VamDlx','localKey','\x20connects\x20incompatible\x20field\x20types.','.confidence','].design.fields[','].design\x20must\x20be\x20an\x20object.','fromDatasetKey','14soqXFM','\x20must\x20be\x20between\x200\x20and\x201.','toLowerCase','metrics','createdDatasets','split','kind','4170992fHDoHe','TEXT','trim','entries','source'];a65_0x1f6b=function(){return _0x83c994;};return a65_0x1f6b();}import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x55bd58(0x176),a65_0x55bd58(0x18a)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x55bd58(0x1ae),'NUMBER',a65_0x55bd58(0x173),'BOOLEAN',a65_0x55bd58(0x169),a65_0x55bd58(0x14a),a65_0x55bd58(0x178),'USER',a65_0x55bd58(0x1b2),a65_0x55bd58(0x17b)]);export function isDatasetBatchDesign(_0x132a24){const _0xfb5069=a65_0x55bd58;return isObject(_0x132a24)&&_0x132a24[_0xfb5069(0x1ac)]===_0xfb5069(0x191);}export function validateDatasetBatchDesign(_0x17a00d){const _0x5e8445=a65_0x55bd58;(!isObject(_0x17a00d)||_0x17a00d['kind']!==_0x5e8445(0x191))&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x17a00d[_0x5e8445(0x14c)]!==0x1&&fail(_0x5e8445(0x1b4));const _0x36d031=objectArray(_0x17a00d[_0x5e8445(0x19e)],_0x5e8445(0x19e),0x1,0x14),_0xedafaf=objectArray(_0x17a00d[_0x5e8445(0x16e)],_0x5e8445(0x16e),0x0,0xc8),_0x9a4e5b=objectArray(_0x17a00d[_0x5e8445(0x181)],_0x5e8445(0x181),0x0,0xc8),_0x35d681=new Set(),_0x279cde=new Map();for(const [_0x4c7146,_0x3295ef]of _0x36d031[_0x5e8445(0x1b0)]()){const _0x5bf6a3=requiredString(_0x3295ef[_0x5e8445(0x1a0)],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x15b));!LOCAL_KEY[_0x5e8445(0x16a)](_0x5bf6a3)&&fail(_0x5e8445(0x15f)+_0x4c7146+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x5e8445(0x1b1)]+'.');_0x35d681[_0x5e8445(0x185)](_0x5bf6a3)&&fail(_0x5e8445(0x184));_0x35d681['add'](_0x5bf6a3);!isObject(_0x3295ef[_0x5e8445(0x194)])&&fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1a4));rejectServerDatasetIdentity(_0x3295ef['design'],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1ba));if(!isObject(_0x3295ef['design']['dataset']))fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x15c));rejectServerDatasetIdentity(_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x165)],'datasets['+_0x4c7146+'].design.dataset'),requiredString(_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x165)][_0x5e8445(0x1b7)],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x162));_0x5e8445(0x16e)in _0x3295ef['design']&&(!Array[_0x5e8445(0x16b)](_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x16e)])||_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x16e)][_0x5e8445(0x1b5)]!==0x0)&&fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x199));const _0x1440b0=objectArray(_0x3295ef[_0x5e8445(0x194)][_0x5e8445(0x152)],_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1b6),0x1,0xc8),_0x3accbe=new Map();for(const [_0x286af7,_0x156072]of _0x1440b0[_0x5e8445(0x1b0)]()){const _0x5308ec=fieldName(_0x156072);if(!_0x5308ec)fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1a3)+_0x286af7+_0x5e8445(0x16d));const _0x123c96=_0x5308ec['toLowerCase']();if(_0x3accbe['has'](_0x123c96))fail(_0x5e8445(0x164)+_0x5bf6a3+_0x5e8445(0x171));const _0xd0eb7b=stringValue(_0x156072['type']??_0x156072['fieldType'])[_0x5e8445(0x17f)]();if(!SUPPORTED_FIELD_TYPES[_0x5e8445(0x185)](_0xd0eb7b))fail(_0x5e8445(0x15f)+_0x4c7146+_0x5e8445(0x1a3)+_0x286af7+_0x5e8445(0x17a));_0x3accbe[_0x5e8445(0x1bc)](_0x123c96,_0xd0eb7b),[_0x156072[_0x5e8445(0x188)],_0x156072[_0x5e8445(0x17d)],_0x156072['refTableLabelField']][_0x5e8445(0x182)](_0x5e2567=>stringValue(_0x5e2567))&&fail(_0x5e8445(0x15f)+_0x4c7146+'].design.fields['+_0x286af7+_0x5e8445(0x158));}_0x279cde['set'](_0x5bf6a3,_0x3accbe);}const _0x272029=new Set(),_0x44c983=new Set();for(const [_0x1fcd9e,_0x15678f]of _0xedafaf[_0x5e8445(0x1b0)]()){const _0x553e9b=validateRelation(_0x15678f,_0x1fcd9e,_0x35d681,_0x279cde);if(_0x272029[_0x5e8445(0x185)](_0x553e9b))fail(_0x5e8445(0x19b));_0x272029[_0x5e8445(0x195)](_0x553e9b);const _0xab6e8f=_0x553e9b[_0x5e8445(0x1ab)]('\x00',0x2)[_0x5e8445(0x192)]('\x00');if(_0x44c983[_0x5e8445(0x185)](_0xab6e8f))fail(_0x5e8445(0x16c));_0x44c983[_0x5e8445(0x195)](_0xab6e8f);}for(const [_0xe8af28,_0x243a67]of _0x9a4e5b[_0x5e8445(0x1b0)]()){requiredString(_0x243a67[_0x5e8445(0x19a)],_0x5e8445(0x18b)+_0xe8af28+_0x5e8445(0x174)),validateConfidence(_0x243a67['confidence'],_0x5e8445(0x18b)+_0xe8af28+_0x5e8445(0x1bb));}return _0x17a00d;}export function reconcileBatchResult(_0x33dd53){const _0x48cca1=a65_0x55bd58;if(!isObject(_0x33dd53))return null;try{const _0x3545da=stringArray(_0x33dd53[_0x48cca1(0x160)],_0x48cca1(0x160),0x1,0x14),_0x3fb349=new Set(_0x3545da);if(_0x3fb349[_0x48cca1(0x159)]!==_0x3545da[_0x48cca1(0x1b5)]||_0x3545da['some'](_0x398207=>!LOCAL_KEY[_0x48cca1(0x16a)](_0x398207)))return null;const _0x16d2f9=objectArray(_0x33dd53[_0x48cca1(0x1aa)],_0x48cca1(0x1aa),0x1,0x14),_0x1a1d0f=new Map(),_0x54bc64=new Set();for(const _0x274ba7 of _0x16d2f9){const _0x57d42a=requiredString(_0x274ba7[_0x48cca1(0x1a0)],_0x48cca1(0x18f)),_0x560388=requiredString(_0x274ba7[_0x48cca1(0x15e)]??_0x274ba7[_0x48cca1(0x186)],'createdDatasets[].code');if(_0x1a1d0f[_0x48cca1(0x185)](_0x57d42a)||_0x54bc64[_0x48cca1(0x185)](_0x560388))return null;_0x1a1d0f['set'](_0x57d42a,_0x560388),_0x54bc64[_0x48cca1(0x195)](_0x560388);}if(!sameSet(_0x3fb349,new Set(_0x1a1d0f['keys']())))return null;const _0x1791c6=objectArray(_0x33dd53[_0x48cca1(0x14d)],_0x48cca1(0x14d),0x0,0xc8),_0x1fb3ff=objectArray(_0x33dd53[_0x48cca1(0x19d)],_0x48cca1(0x19d),0x0,0xc8),_0x2738d9=relationTupleSet(_0x1791c6,![],_0x1a1d0f),_0x8c3ec6=relationTupleSet(_0x1fb3ff,!![],_0x1a1d0f);if(!_0x2738d9||!_0x8c3ec6||!sameSet(_0x2738d9,_0x8c3ec6))return null;const _0x12d8c6=objectArray(_0x33dd53[_0x48cca1(0x181)],'unresolvedRelations',0x0,0xc8);return{'expectedLocalKeys':_0x3545da,'expectedRelations':_0x1791c6,'createdDatasets':_0x16d2f9,'createdRelations':_0x1fb3ff,'unresolvedRelations':_0x12d8c6,...isObject(_0x33dd53[_0x48cca1(0x1a9)])?{'metrics':_0x33dd53[_0x48cca1(0x1a9)]}:{}};}catch{return null;}}function validateRelation(_0x8ece5a,_0x2c32b9,_0x511ad2,_0xe03efd){const _0x917e1=a65_0x55bd58,_0x5f1f29=_0x917e1(0x18e)+_0x2c32b9+']',_0x1f4655=requiredString(_0x8ece5a[_0x917e1(0x1a5)],_0x5f1f29+_0x917e1(0x168)),_0x995e2a=requiredString(_0x8ece5a[_0x917e1(0x15d)],_0x5f1f29+_0x917e1(0x151)),_0x373597=requiredString(_0x8ece5a[_0x917e1(0x193)],_0x5f1f29+'.fromField')['toLowerCase'](),_0x2ddb09=requiredString(_0x8ece5a[_0x917e1(0x196)],_0x5f1f29+_0x917e1(0x17c))['toLowerCase']();if(!_0x511ad2[_0x917e1(0x185)](_0x1f4655)||!_0x511ad2[_0x917e1(0x185)](_0x995e2a))fail(_0x5f1f29+_0x917e1(0x167));const _0x34a753=_0xe03efd[_0x917e1(0x18d)](_0x1f4655)?.[_0x917e1(0x18d)](_0x373597),_0x199ef1=_0xe03efd[_0x917e1(0x18d)](_0x995e2a)?.['get'](_0x2ddb09);if(_0x34a753===undefined||_0x199ef1===undefined)fail(_0x5f1f29+_0x917e1(0x155));if(_0x34a753&&_0x199ef1&&_0x34a753!==_0x199ef1)fail(_0x5f1f29+_0x917e1(0x1a1));const _0x303862=stringValue(_0x8ece5a['relationType'])||_0x917e1(0x175);if(_0x303862!=='lookup')fail(_0x5f1f29+_0x917e1(0x187));const _0x1be0e1=stringValue(_0x8ece5a[_0x917e1(0x154)])||_0x917e1(0x176);if(!SUPPORTED_CARDINALITIES[_0x917e1(0x185)](_0x1be0e1))fail(_0x5f1f29+_0x917e1(0x1b3));return requiredString(_0x8ece5a[_0x917e1(0x19a)],_0x5f1f29+_0x917e1(0x180)),validateConfidence(_0x8ece5a[_0x917e1(0x172)],_0x5f1f29+_0x917e1(0x1a2)),tuple(_0x1f4655,_0x373597,_0x995e2a,_0x2ddb09,'lookup',_0x1be0e1);}function relationTupleSet(_0x1b85db,_0x285309,_0x10cd02){const _0x2e76f5=a65_0x55bd58,_0x36b4dd=new Set();for(const _0x5e7c4d of _0x1b85db){const _0x1e5b8e=stringValue(_0x5e7c4d[_0x2e76f5(0x1a5)]),_0x551f90=stringValue(_0x5e7c4d[_0x2e76f5(0x15d)]),_0x3eba9c=stringValue(_0x5e7c4d[_0x2e76f5(0x193)])[_0x2e76f5(0x1a8)](),_0x2d4a3b=stringValue(_0x5e7c4d[_0x2e76f5(0x196)])[_0x2e76f5(0x1a8)](),_0x228aca=stringValue(_0x5e7c4d[_0x2e76f5(0x190)]),_0x13a6f0=stringValue(_0x5e7c4d[_0x2e76f5(0x154)]);if(!_0x1e5b8e||!_0x551f90||!_0x3eba9c||!_0x2d4a3b||_0x228aca!==_0x2e76f5(0x175)||!SUPPORTED_CARDINALITIES['has'](_0x13a6f0))return null;if(!_0x10cd02['has'](_0x1e5b8e)||!_0x10cd02[_0x2e76f5(0x185)](_0x551f90))return null;if(_0x285309&&(stringValue(_0x5e7c4d[_0x2e76f5(0x16f)])!==_0x10cd02[_0x2e76f5(0x18d)](_0x1e5b8e)||stringValue(_0x5e7c4d[_0x2e76f5(0x14f)])!==_0x10cd02['get'](_0x551f90)))return null;const _0x4b042c=tuple(_0x1e5b8e,_0x3eba9c,_0x551f90,_0x2d4a3b,_0x228aca,_0x13a6f0);if(_0x36b4dd[_0x2e76f5(0x185)](_0x4b042c))return null;_0x36b4dd[_0x2e76f5(0x195)](_0x4b042c);}return _0x36b4dd;}function a65_0x1b54(_0x539d81,_0x28c411){_0x539d81=_0x539d81-0x14a;const _0x1f6bbd=a65_0x1f6b();let _0x1b544a=_0x1f6bbd[_0x539d81];return _0x1b544a;}function rejectServerDatasetIdentity(_0x52d249,_0x5f1fe7){const _0x4f18aa=a65_0x55bd58;for(const _0x27dee2 of['id','datasetId',_0x4f18aa(0x156),_0x4f18aa(0x15e),_0x4f18aa(0x186),_0x4f18aa(0x170)]){if(_0x52d249[_0x27dee2]!==undefined&&_0x52d249[_0x27dee2]!==null&&_0x52d249[_0x27dee2]!=='')fail(_0x5f1fe7+'.'+_0x27dee2+_0x4f18aa(0x157));}}function objectArray(_0x1385ee,_0x1636ee,_0x31a2f8,_0x14ebe2){const _0x584066=a65_0x55bd58;return(!Array['isArray'](_0x1385ee)||_0x1385ee[_0x584066(0x1b5)]<_0x31a2f8||_0x1385ee[_0x584066(0x1b5)]>_0x14ebe2||_0x1385ee['some'](_0x4b0ac8=>!isObject(_0x4b0ac8)))&&fail(_0x1636ee+_0x584066(0x19c)+_0x31a2f8+'..'+_0x14ebe2+_0x584066(0x161)),_0x1385ee;}function stringArray(_0x33f228,_0x23bdff,_0xa97524,_0x2d02ec){const _0x3bbcf=a65_0x55bd58;return(!Array[_0x3bbcf(0x16b)](_0x33f228)||_0x33f228[_0x3bbcf(0x1b5)]<_0xa97524||_0x33f228[_0x3bbcf(0x1b5)]>_0x2d02ec||_0x33f228[_0x3bbcf(0x182)](_0x5a6761=>typeof _0x5a6761!=='string'||!_0x5a6761['trim']()))&&fail(_0x23bdff+_0x3bbcf(0x19c)+_0xa97524+'..'+_0x2d02ec+_0x3bbcf(0x177)),_0x33f228;}function requiredString(_0xe81d65,_0x565276){const _0x42c0c7=a65_0x55bd58,_0x145a8a=stringValue(_0xe81d65);if(!_0x145a8a)fail(_0x565276+_0x42c0c7(0x198));return _0x145a8a;}function stringValue(_0x807d0a){const _0xcd0456=a65_0x55bd58;return typeof _0x807d0a===_0xcd0456(0x1b9)?_0x807d0a[_0xcd0456(0x1af)]():'';}function fieldName(_0x52584a){const _0x3a3c57=a65_0x55bd58;return stringValue(_0x52584a[_0x3a3c57(0x15e)]??_0x52584a[_0x3a3c57(0x15a)]??_0x52584a['name']??_0x52584a['fieldName']);}function validateConfidence(_0x51c621,_0x5096c2){const _0x10cc2f=a65_0x55bd58;_0x51c621!==undefined&&_0x51c621!==null&&(typeof _0x51c621!==_0x10cc2f(0x18c)||!Number['isFinite'](_0x51c621)||_0x51c621<0x0||_0x51c621>0x1)&&fail(_0x5096c2+_0x10cc2f(0x1a7));}function tuple(..._0x4a1ad2){const _0x4a6109=a65_0x55bd58;return _0x4a1ad2[_0x4a6109(0x183)]((_0x39e5ef,_0x5623e0)=>_0x5623e0===0x1||_0x5623e0===0x3?_0x39e5ef[_0x4a6109(0x1a8)]():_0x39e5ef)[_0x4a6109(0x192)]('\x00');}function sameSet(_0x350f58,_0x25d32a){const _0xa732d7=a65_0x55bd58;return _0x350f58['size']===_0x25d32a[_0xa732d7(0x159)]&&[..._0x350f58][_0xa732d7(0x153)](_0x4e69eb=>_0x25d32a[_0xa732d7(0x185)](_0x4e69eb));}function isObject(_0xade0d1){const _0x205cad=a65_0x55bd58;return typeof _0xade0d1===_0x205cad(0x166)&&_0xade0d1!==null&&!Array[_0x205cad(0x16b)](_0xade0d1);}function fail(_0x3145a5){const _0x14bd25=a65_0x55bd58;throw CliErrors[_0x14bd25(0x17e)](_0x3145a5);}
|
|
1
|
+
const a65_0x559050=a65_0x544f;(function(_0x20b9ca,_0xe65264){const _0x5ccbee=a65_0x544f,_0x26dc21=_0x20b9ca();while(!![]){try{const _0x8a643=-parseInt(_0x5ccbee(0x96))/0x1*(-parseInt(_0x5ccbee(0x9f))/0x2)+-parseInt(_0x5ccbee(0x91))/0x3+parseInt(_0x5ccbee(0xc1))/0x4*(-parseInt(_0x5ccbee(0xaf))/0x5)+-parseInt(_0x5ccbee(0xac))/0x6*(parseInt(_0x5ccbee(0xd3))/0x7)+-parseInt(_0x5ccbee(0x8a))/0x8+-parseInt(_0x5ccbee(0x80))/0x9+parseInt(_0x5ccbee(0x9d))/0xa;if(_0x8a643===_0xe65264)break;else _0x26dc21['push'](_0x26dc21['shift']());}catch(_0x180a63){_0x26dc21['push'](_0x26dc21['shift']());}}}(a65_0x1667,0x6c735));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x559050(0xc6),a65_0x559050(0xba)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x559050(0x89),a65_0x559050(0x6e),'DATETIME',a65_0x559050(0xbc),a65_0x559050(0xbb),a65_0x559050(0xb1),a65_0x559050(0xcb),a65_0x559050(0x7e),'ADDRESS',a65_0x559050(0x88)]);export function isDatasetBatchDesign(_0x2e7c7c){const _0x1964e0=a65_0x559050;return isObject(_0x2e7c7c)&&_0x2e7c7c[_0x1964e0(0xcf)]==='dataset-batch';}export function validateDatasetBatchDesign(_0x1d3679){const _0x3ddd21=a65_0x559050;(!isObject(_0x1d3679)||_0x1d3679[_0x3ddd21(0xcf)]!==_0x3ddd21(0xd6))&&fail(_0x3ddd21(0x74));_0x1d3679[_0x3ddd21(0x81)]!==0x1&&fail(_0x3ddd21(0x7c));const _0x304577=objectArray(_0x1d3679[_0x3ddd21(0x9e)],_0x3ddd21(0x9e),0x1,0x14),_0x4f2c6d=objectArray(_0x1d3679['relations'],_0x3ddd21(0x84),0x0,0xc8),_0x30f3a9=objectArray(_0x1d3679['unresolvedRelations'],'unresolvedRelations',0x0,0xc8),_0x527818=new Set(),_0x2667f8=new Map();for(const [_0x29b955,_0x59c40d]of _0x304577['entries']()){const _0x59995e=requiredString(_0x59c40d[_0x3ddd21(0xad)],_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0x6d));!LOCAL_KEY[_0x3ddd21(0xb5)](_0x59995e)&&fail(_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0x93)+LOCAL_KEY['source']+'.');_0x527818['has'](_0x59995e)&&fail(_0x3ddd21(0x86));_0x527818['add'](_0x59995e);!isObject(_0x59c40d[_0x3ddd21(0x72)])&&fail(_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0xc9));rejectServerDatasetIdentity(_0x59c40d[_0x3ddd21(0x72)],'datasets['+_0x29b955+_0x3ddd21(0xcd));if(!isObject(_0x59c40d[_0x3ddd21(0x72)]['dataset']))fail(_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0x97));rejectServerDatasetIdentity(_0x59c40d['design']['dataset'],_0x3ddd21(0xb8)+_0x29b955+'].design.dataset'),requiredString(_0x59c40d['design'][_0x3ddd21(0xd5)][_0x3ddd21(0x82)],_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0xbf));'relations'in _0x59c40d[_0x3ddd21(0x72)]&&(!Array[_0x3ddd21(0xa6)](_0x59c40d[_0x3ddd21(0x72)]['relations'])||_0x59c40d[_0x3ddd21(0x72)][_0x3ddd21(0x84)][_0x3ddd21(0xc7)]!==0x0)&&fail(_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0x8d));const _0x3b98e0=objectArray(_0x59c40d[_0x3ddd21(0x72)]['fields'],_0x3ddd21(0xb8)+_0x29b955+'].design.fields',0x1,0xc8),_0x22d3c9=new Map();for(const [_0x1c7291,_0x254a00]of _0x3b98e0['entries']()){const _0x24cf4d=fieldName(_0x254a00);if(!_0x24cf4d)fail(_0x3ddd21(0xb8)+_0x29b955+'].design.fields['+_0x1c7291+_0x3ddd21(0x99));const _0x4f5940=_0x24cf4d['toLowerCase']();if(_0x22d3c9[_0x3ddd21(0xb0)](_0x4f5940))fail(_0x3ddd21(0xa5)+_0x59995e+_0x3ddd21(0xc8));const _0x5c23aa=stringValue(_0x254a00[_0x3ddd21(0x85)]??_0x254a00[_0x3ddd21(0xce)])[_0x3ddd21(0xa0)]();if(!SUPPORTED_FIELD_TYPES[_0x3ddd21(0xb0)](_0x5c23aa))fail(_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0x7d)+_0x1c7291+'].type\x20is\x20not\x20supported.');_0x22d3c9[_0x3ddd21(0xa8)](_0x4f5940,_0x5c23aa),[_0x254a00[_0x3ddd21(0xa4)],_0x254a00[_0x3ddd21(0x95)],_0x254a00[_0x3ddd21(0xd4)]]['some'](_0x58ac84=>stringValue(_0x58ac84))&&fail(_0x3ddd21(0xb8)+_0x29b955+_0x3ddd21(0x7d)+_0x1c7291+_0x3ddd21(0x70));}_0x2667f8[_0x3ddd21(0xa8)](_0x59995e,_0x22d3c9);}const _0xac7147=new Set(),_0xee5dcf=new Set();for(const [_0x3be205,_0x5062fa]of _0x4f2c6d[_0x3ddd21(0x76)]()){const _0x11d57f=validateRelation(_0x5062fa,_0x3be205,_0x527818,_0x2667f8);if(_0xac7147[_0x3ddd21(0xb0)](_0x11d57f))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0xac7147['add'](_0x11d57f);const _0x16776a=_0x11d57f[_0x3ddd21(0xa3)]('\x00',0x2)['join']('\x00');if(_0xee5dcf[_0x3ddd21(0xb0)](_0x16776a))fail(_0x3ddd21(0x8b));_0xee5dcf['add'](_0x16776a);}for(const [_0x4b14d4,_0x366354]of _0x30f3a9[_0x3ddd21(0x76)]()){requiredString(_0x366354[_0x3ddd21(0xa9)],'unresolvedRelations['+_0x4b14d4+_0x3ddd21(0x92)),validateConfidence(_0x366354[_0x3ddd21(0x73)],_0x3ddd21(0xae)+_0x4b14d4+_0x3ddd21(0x98));}return _0x1d3679;}function a65_0x544f(_0x411c35,_0x2e2c14){_0x411c35=_0x411c35-0x6c;const _0x1667db=a65_0x1667();let _0x544f1f=_0x1667db[_0x411c35];return _0x544f1f;}export function reconcileBatchResult(_0x2df936){const _0x4df768=a65_0x559050;if(!isObject(_0x2df936))return null;try{const _0x2855cb=stringArray(_0x2df936['expectedLocalKeys'],'expectedLocalKeys',0x1,0x14),_0x521d37=new Set(_0x2855cb);if(_0x521d37[_0x4df768(0xb7)]!==_0x2855cb['length']||_0x2855cb[_0x4df768(0xb2)](_0x454738=>!LOCAL_KEY[_0x4df768(0xb5)](_0x454738)))return null;const _0x502476=objectArray(_0x2df936[_0x4df768(0xc3)],_0x4df768(0xc3),0x1,0x14),_0x45fd43=new Map(),_0x2dc546=new Set();for(const _0x1a32ed of _0x502476){const _0x16c2c2=requiredString(_0x1a32ed[_0x4df768(0xad)],'createdDatasets[].localKey'),_0x36f9d1=requiredString(_0x1a32ed['code']??_0x1a32ed['datasetCode'],_0x4df768(0x8f));if(_0x45fd43[_0x4df768(0xb0)](_0x16c2c2)||_0x2dc546[_0x4df768(0xb0)](_0x36f9d1))return null;_0x45fd43[_0x4df768(0xa8)](_0x16c2c2,_0x36f9d1),_0x2dc546[_0x4df768(0x9a)](_0x36f9d1);}if(!sameSet(_0x521d37,new Set(_0x45fd43[_0x4df768(0xa2)]())))return null;const _0x436562=objectArray(_0x2df936[_0x4df768(0x78)],_0x4df768(0x78),0x0,0xc8),_0x159ca5=objectArray(_0x2df936[_0x4df768(0x6f)],_0x4df768(0x6f),0x0,0xc8),_0x2e2061=relationTupleSet(_0x436562,![],_0x45fd43),_0x4415e5=relationTupleSet(_0x159ca5,!![],_0x45fd43);if(!_0x2e2061||!_0x4415e5||!sameSet(_0x2e2061,_0x4415e5))return null;const _0x143aa0=objectArray(_0x2df936[_0x4df768(0xd7)],_0x4df768(0xd7),0x0,0xc8);return{'expectedLocalKeys':_0x2855cb,'expectedRelations':_0x436562,'createdDatasets':_0x502476,'createdRelations':_0x159ca5,'unresolvedRelations':_0x143aa0,...isObject(_0x2df936[_0x4df768(0x83)])?{'metrics':_0x2df936[_0x4df768(0x83)]}:{}};}catch{return null;}}function a65_0x1667(){const _0x4472f5=['set','reason','\x20connects\x20incompatible\x20field\x20types.','map','6lkNLrP','localKey','unresolvedRelations[','4144975MDufxz','has','MULTI_SELECT','some','fromField','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','test','get','size','datasets[','every','ONE_TO_ONE','SELECT','BOOLEAN','relationType','\x20non-empty\x20strings.','].design.dataset.datasetName','trim','4UkpVZa','toField','createdDatasets','modelId','isFinite','MANY_TO_ONE','length','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','].design\x20must\x20be\x20an\x20object.','validation','DATE_RANGE','.confidence','].design','fieldType','kind','string','\x20must\x20be\x20between\x200\x20and\x201.','.fromDatasetKey','1015833tNuEME','refTableLabelField','dataset','dataset-batch','unresolvedRelations','\x20references\x20an\x20unknown\x20field.','datasetId','].localKey','NUMBER','createdRelations',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','toDatasetKey','design','confidence','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','\x20objects.','entries','.fromField','expectedRelations','cardinality','toDatasetCode','fromDatasetCode','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','].design.fields[','USER','number','1029312ojngIW','schemaVersion','datasetName','metrics','relations','type','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','.reason','UPLOAD','TEXT','3419032UlRnek','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','toLowerCase','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','object','createdDatasets[].code','\x20must\x20contain\x20','308274FTQPgp','].reason','].localKey\x20must\x20match\x20','.relationType\x20must\x20be\x20\x22lookup\x22.','refTableField','421SyqUTE','].design.dataset\x20must\x20be\x20an\x20object.','].confidence',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','add','lookup','join','17214010LUoJQI','datasets','1622KGhNUV','toUpperCase','fromDatasetKey','keys','split','refTable','Dataset\x20','isArray','code'];a65_0x1667=function(){return _0x4472f5;};return a65_0x1667();}function validateRelation(_0x5d70ed,_0x2491ff,_0x26ae5a,_0x138f56){const _0x1a4745=a65_0x559050,_0x1909b5='relations['+_0x2491ff+']',_0x32b263=requiredString(_0x5d70ed['fromDatasetKey'],_0x1909b5+_0x1a4745(0xd2)),_0x7d1e2=requiredString(_0x5d70ed[_0x1a4745(0x71)],_0x1909b5+'.toDatasetKey'),_0x3b55b3=requiredString(_0x5d70ed[_0x1a4745(0xb3)],_0x1909b5+_0x1a4745(0x77))['toLowerCase'](),_0x21f13e=requiredString(_0x5d70ed[_0x1a4745(0xc2)],_0x1909b5+'.toField')[_0x1a4745(0x8c)]();if(!_0x26ae5a[_0x1a4745(0xb0)](_0x32b263)||!_0x26ae5a[_0x1a4745(0xb0)](_0x7d1e2))fail(_0x1909b5+'\x20references\x20an\x20unknown\x20dataset\x20localKey.');const _0x544f8f=_0x138f56[_0x1a4745(0xb6)](_0x32b263)?.['get'](_0x3b55b3),_0x2bd015=_0x138f56[_0x1a4745(0xb6)](_0x7d1e2)?.['get'](_0x21f13e);if(_0x544f8f===undefined||_0x2bd015===undefined)fail(_0x1909b5+_0x1a4745(0xd8));if(_0x544f8f&&_0x2bd015&&_0x544f8f!==_0x2bd015)fail(_0x1909b5+_0x1a4745(0xaa));const _0x2d460d=stringValue(_0x5d70ed[_0x1a4745(0xbd)])||_0x1a4745(0x9b);if(_0x2d460d!==_0x1a4745(0x9b))fail(_0x1909b5+_0x1a4745(0x94));const _0x3d681b=stringValue(_0x5d70ed[_0x1a4745(0x79)])||_0x1a4745(0xc6);if(!SUPPORTED_CARDINALITIES[_0x1a4745(0xb0)](_0x3d681b))fail(_0x1909b5+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x5d70ed[_0x1a4745(0xa9)],_0x1909b5+_0x1a4745(0x87)),validateConfidence(_0x5d70ed[_0x1a4745(0x73)],_0x1909b5+_0x1a4745(0xcc)),tuple(_0x32b263,_0x3b55b3,_0x7d1e2,_0x21f13e,_0x1a4745(0x9b),_0x3d681b);}function relationTupleSet(_0x55d11a,_0x5e0f81,_0x102dfa){const _0x3c515e=a65_0x559050,_0x2e1b5f=new Set();for(const _0x4b422a of _0x55d11a){const _0x4b8c41=stringValue(_0x4b422a[_0x3c515e(0xa1)]),_0xc7239e=stringValue(_0x4b422a['toDatasetKey']),_0x576fb0=stringValue(_0x4b422a[_0x3c515e(0xb3)])['toLowerCase'](),_0x4bb274=stringValue(_0x4b422a[_0x3c515e(0xc2)])[_0x3c515e(0x8c)](),_0x195801=stringValue(_0x4b422a[_0x3c515e(0xbd)]),_0x270af=stringValue(_0x4b422a[_0x3c515e(0x79)]);if(!_0x4b8c41||!_0xc7239e||!_0x576fb0||!_0x4bb274||_0x195801!=='lookup'||!SUPPORTED_CARDINALITIES[_0x3c515e(0xb0)](_0x270af))return null;if(!_0x102dfa[_0x3c515e(0xb0)](_0x4b8c41)||!_0x102dfa[_0x3c515e(0xb0)](_0xc7239e))return null;if(_0x5e0f81&&(stringValue(_0x4b422a[_0x3c515e(0x7b)])!==_0x102dfa['get'](_0x4b8c41)||stringValue(_0x4b422a[_0x3c515e(0x7a)])!==_0x102dfa['get'](_0xc7239e)))return null;const _0x3edff0=tuple(_0x4b8c41,_0x576fb0,_0xc7239e,_0x4bb274,_0x195801,_0x270af);if(_0x2e1b5f[_0x3c515e(0xb0)](_0x3edff0))return null;_0x2e1b5f[_0x3c515e(0x9a)](_0x3edff0);}return _0x2e1b5f;}function rejectServerDatasetIdentity(_0x5eed25,_0x4b937b){const _0x6adde5=a65_0x559050;for(const _0x4f53de of['id',_0x6adde5(0x6c),_0x6adde5(0xc4),_0x6adde5(0xa7),'datasetCode','modelCode']){if(_0x5eed25[_0x4f53de]!==undefined&&_0x5eed25[_0x4f53de]!==null&&_0x5eed25[_0x4f53de]!=='')fail(_0x4b937b+'.'+_0x4f53de+_0x6adde5(0xb4));}}function objectArray(_0x1e6f2c,_0x1171f9,_0x285695,_0x434960){const _0x463e6d=a65_0x559050;return(!Array[_0x463e6d(0xa6)](_0x1e6f2c)||_0x1e6f2c[_0x463e6d(0xc7)]<_0x285695||_0x1e6f2c['length']>_0x434960||_0x1e6f2c[_0x463e6d(0xb2)](_0x3cd283=>!isObject(_0x3cd283)))&&fail(_0x1171f9+_0x463e6d(0x90)+_0x285695+'..'+_0x434960+_0x463e6d(0x75)),_0x1e6f2c;}function stringArray(_0x2c5bfe,_0x24826f,_0x743f5,_0x3f8d2e){const _0x2e34d7=a65_0x559050;return(!Array['isArray'](_0x2c5bfe)||_0x2c5bfe['length']<_0x743f5||_0x2c5bfe['length']>_0x3f8d2e||_0x2c5bfe[_0x2e34d7(0xb2)](_0x47abd6=>typeof _0x47abd6!==_0x2e34d7(0xd0)||!_0x47abd6[_0x2e34d7(0xc0)]()))&&fail(_0x24826f+'\x20must\x20contain\x20'+_0x743f5+'..'+_0x3f8d2e+_0x2e34d7(0xbe)),_0x2c5bfe;}function requiredString(_0x2a706b,_0x426a49){const _0x557196=stringValue(_0x2a706b);if(!_0x557196)fail(_0x426a49+'\x20is\x20required.');return _0x557196;}function stringValue(_0x148f92){const _0x2aa088=a65_0x559050;return typeof _0x148f92===_0x2aa088(0xd0)?_0x148f92[_0x2aa088(0xc0)]():'';}function fieldName(_0x3971e1){const _0x3ed973=a65_0x559050;return stringValue(_0x3971e1[_0x3ed973(0xa7)]??_0x3971e1['fieldCode']??_0x3971e1['name']??_0x3971e1['fieldName']);}function validateConfidence(_0x243529,_0x4fadef){const _0x3b0891=a65_0x559050;_0x243529!==undefined&&_0x243529!==null&&(typeof _0x243529!==_0x3b0891(0x7f)||!Number[_0x3b0891(0xc5)](_0x243529)||_0x243529<0x0||_0x243529>0x1)&&fail(_0x4fadef+_0x3b0891(0xd1));}function tuple(..._0x1e2be1){const _0x175fcd=a65_0x559050;return _0x1e2be1[_0x175fcd(0xab)]((_0x1cf8b1,_0x59db35)=>_0x59db35===0x1||_0x59db35===0x3?_0x1cf8b1[_0x175fcd(0x8c)]():_0x1cf8b1)[_0x175fcd(0x9c)]('\x00');}function sameSet(_0x5ca061,_0x242658){const _0x19590c=a65_0x559050;return _0x5ca061['size']===_0x242658['size']&&[..._0x5ca061][_0x19590c(0xb9)](_0x19870a=>_0x242658['has'](_0x19870a));}function isObject(_0x28546d){const _0x3fdb3f=a65_0x559050;return typeof _0x28546d===_0x3fdb3f(0x8e)&&_0x28546d!==null&&!Array['isArray'](_0x28546d);}function fail(_0x1b48ae){const _0x1444ba=a65_0x559050;throw CliErrors[_0x1444ba(0xca)](_0x1b48ae);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0x13de21=a66_0x1d02;(function(_0x5971a8,_0x17027a){const _0x2310ea=a66_0x1d02,_0x4894fa=_0x5971a8();while(!![]){try{const _0x238442=parseInt(_0x2310ea(0xe7))/0x1+parseInt(_0x2310ea(0xbf))/0x2*(parseInt(_0x2310ea(0xad))/0x3)+parseInt(_0x2310ea(0xd3))/0x4*(-parseInt(_0x2310ea(0xd9))/0x5)+-parseInt(_0x2310ea(0xc9))/0x6*(-parseInt(_0x2310ea(0xcc))/0x7)+-parseInt(_0x2310ea(0xe3))/0x8*(parseInt(_0x2310ea(0xf7))/0x9)+-parseInt(_0x2310ea(0xde))/0xa+parseInt(_0x2310ea(0xdc))/0xb;if(_0x238442===_0x17027a)break;else _0x4894fa['push'](_0x4894fa['shift']());}catch(_0x307ad3){_0x4894fa['push'](_0x4894fa['shift']());}}}(a66_0x1cd2,0x7fd46));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x3b4e9b,input:_0x3c5478,dryRun:_0x4049a3}){const _0x4bb43c=a66_0x1d02;validateInput(_0x3c5478);const _0x27d9c7=normalizeBusinessGroupArgument(_0x3c5478['businessGroup']),_0x368fb9=await getDatasetDetail(_0x3c5478[_0x4bb43c(0xe6)]),_0x34eceb=resolveBusinessGroupDataset(_0x368fb9,_0x3c5478[_0x4bb43c(0xe6)]);assertBusinessGroupUpdateSupported(_0x34eceb,_0x27d9c7);const _0x5d4927=loadCurrentBusinessGroup(_0x368fb9,_0x34eceb);assertExpectedBusinessGroup(_0x5d4927,_0x3c5478[_0x4bb43c(0xeb)]);const _0x4c8339=buildBackendPlan(_0x3b4e9b,_0x34eceb,_0x27d9c7),_0x57f617=_0x5d4927!==_0x27d9c7;let _0x53b884;if(_0x57f617&&!_0x4049a3){_0x4c8339[_0x4bb43c(0xd4)]==='db-table'?await updateDbTableBusinessGroup(_0x4c8339[_0x4bb43c(0xcf)]):await updateErBusinessGroup(_0x4c8339['payload']);const _0x52269a=await getDatasetDetail(_0x34eceb[_0x4bb43c(0xe6)]),_0x41c392=resolveBusinessGroupDataset(_0x52269a,_0x34eceb[_0x4bb43c(0xe6)]),_0x22ddeb=loadCurrentBusinessGroup(_0x52269a,_0x41c392);if(_0x22ddeb!==_0x27d9c7)throw CliErrors['apiError'](_0x4bb43c(0xcd),_0x4bb43c(0xe9)+JSON[_0x4bb43c(0xf1)](displayBusinessGroup(_0x27d9c7))+_0x4bb43c(0xfa)+JSON[_0x4bb43c(0xf1)](displayBusinessGroup(_0x22ddeb))+'.');_0x53b884={'verified':!![],'status':_0x4bb43c(0xb1),'afterReadback':{'businessGroup':displayBusinessGroup(_0x22ddeb)}};}else!_0x57f617&&(_0x53b884={'verified':!![],'status':_0x4bb43c(0xc3),'afterReadback':{'businessGroup':displayBusinessGroup(_0x5d4927)}});const _0x48b7d0={'operation':_0x4bb43c(0xb7),'appCode':_0x3b4e9b,'selector':{'code':_0x34eceb['code']},'dataset':{'id':_0x34eceb['id'],'code':_0x34eceb[_0x4bb43c(0xe6)],'name':_0x34eceb[_0x4bb43c(0xac)],'sourceType':_0x34eceb[_0x4bb43c(0xcb)]},'before':{'businessGroup':displayBusinessGroup(_0x5d4927)},'after':{'businessGroup':displayBusinessGroup(_0x27d9c7)},'changed':_0x57f617,'dryRun':_0x4049a3,'submitted':_0x57f617&&!_0x4049a3,'backend':{'method':_0x4c8339[_0x4bb43c(0xc4)],'path':_0x4c8339['path'],'payload':_0x4c8339[_0x4bb43c(0xcf)]},..._0x53b884?{'verification':_0x53b884}:{},'warnings':[]};return{'ok':!![],'data':_0x48b7d0,'message':_0x57f617?_0x4049a3?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x34eceb[_0x4bb43c(0xe6)]:_0x4bb43c(0xdd)+_0x34eceb[_0x4bb43c(0xe6)]:_0x4bb43c(0xb8)+_0x34eceb[_0x4bb43c(0xe6)]};}export const datasetBusinessGroupUpdate={'service':a66_0x13de21(0xc5),'command':a66_0x13de21(0xe5),'description':a66_0x13de21(0xb9),'risk':a66_0x13de21(0xc8),'flags':[CODE_FLAG,{'name':a66_0x13de21(0xb3),'type':'string','required':!![],'description':a66_0x13de21(0xdf)},{'name':a66_0x13de21(0xae),'type':a66_0x13de21(0xf6),'required':![],'description':a66_0x13de21(0xed)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3d16ea){validateInput(readBusinessGroupUpdateInput(_0x3d16ea));},async 'dryRun'(_0x2735c2){const _0xb60eeb=a66_0x13de21,_0x509b60=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2735c2[_0xb60eeb(0xdb)],'input':readBusinessGroupUpdateInput(_0x2735c2),'dryRun':!![]});return{'method':_0x509b60[_0xb60eeb(0xce)][_0xb60eeb(0xf2)][_0xb60eeb(0xc4)],'url':_0x509b60[_0xb60eeb(0xce)][_0xb60eeb(0xf2)]['path'],'body':_0x509b60['data']['backend'][_0xb60eeb(0xcf)],'description':_0x509b60[_0xb60eeb(0xe8)],..._0x509b60[_0xb60eeb(0xce)]};},async 'execute'(_0x2c3c7b){const _0x231bb0=a66_0x13de21;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x2c3c7b[_0x231bb0(0xdb)],'input':readBusinessGroupUpdateInput(_0x2c3c7b),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x4e4b87){const _0x4da907=a66_0x13de21,_0x21e8c6=_0x4e4b87['str']('expect-business-group');return{'code':trim(_0x4e4b87[_0x4da907(0xf9)](_0x4da907(0xe6))),'businessGroup':_0x4e4b87[_0x4da907(0xf9)]('business-group'),'expectBusinessGroup':_0x21e8c6===undefined||_0x21e8c6===''?undefined:_0x21e8c6};}function validateInput(_0x540baf){const _0x490ae9=a66_0x13de21;if(!trim(_0x540baf[_0x490ae9(0xe6)]))throw CliErrors['validation'](_0x490ae9(0xba));if(_0x540baf[_0x490ae9(0xbe)]===undefined)throw CliErrors[_0x490ae9(0xb5)](_0x490ae9(0xc0));if(!trim(_0x540baf[_0x490ae9(0xbe)]))throw CliErrors[_0x490ae9(0xb5)]('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x136a6a,_0x439672){const _0x5a2a93=a66_0x13de21;if(_0x136a6a[_0x5a2a93(0xcb)]===_0x5a2a93(0xd5)&&!_0x439672)throw CliErrors[_0x5a2a93(0xb5)](_0x5a2a93(0xef));}function resolveBusinessGroupDataset(_0xedb6fa,_0x3c7ef8){const _0x5c0175=a66_0x13de21,_0x141f28=asPlainObject(_0xedb6fa[_0x5c0175(0xc5)]),_0x5a17c5=asPlainObject(_0xedb6fa[_0x5c0175(0xe2)]),_0x4c989a=resolveSourceType(_0xedb6fa,_0x141f28,_0x5a17c5),_0x5b900a=firstString(_0xedb6fa[_0x5c0175(0xf4)],_0xedb6fa[_0x5c0175(0xe6)],_0x141f28[_0x5c0175(0xd0)],_0x3c7ef8)||_0x3c7ef8;return{'id':firstNumber(_0xedb6fa[_0x5c0175(0xee)],_0xedb6fa['id'],_0x141f28[_0x5c0175(0xec)])??firstString(_0xedb6fa[_0x5c0175(0xee)],_0xedb6fa['id'],_0x141f28['datasetId'])??null,'code':_0x5b900a,'name':firstString(_0xedb6fa[_0x5c0175(0xac)],_0x141f28[_0x5c0175(0xf3)],_0x141f28[_0x5c0175(0xac)])||null,'sourceType':_0x4c989a,'dbTableSelector':_0x4c989a==='DB_TABLE'?{'dbLinkId':firstNumber(_0x5a17c5['dbId']),'tableName':firstString(_0x5a17c5[_0x5c0175(0xaf)])||null}:null};}function resolveSourceType(_0x1d9409,_0x435f57,_0x442ac3){const _0x585745=a66_0x13de21,_0x512b72=firstString(_0x1d9409[_0x585745(0xc2)],_0x1d9409[_0x585745(0xcb)],_0x435f57[_0x585745(0xc2)],_0x435f57[_0x585745(0xcb)])?.[_0x585745(0xd6)]()[_0x585745(0xc7)]();if(_0x512b72==='DB_TABLE'||_0x512b72===_0x585745(0xf8))return _0x512b72;if(Object[_0x585745(0xd2)](_0x442ac3)['length']>0x0)return _0x585745(0xd5);throw CliErrors[_0x585745(0xb5)](_0x585745(0xbb));}function loadCurrentBusinessGroup(_0x4889d6,_0x356c12){const _0x5b8fc4=a66_0x13de21,_0x29c901=readBusinessGroupFromDatasetDetail(_0x4889d6,_0x356c12[_0x5b8fc4(0xcb)]);if(_0x29c901[_0x5b8fc4(0xb2)])return normalizeBusinessGroup(_0x29c901[_0x5b8fc4(0xd7)]);return'';}function a66_0x1cd2(){const _0x49e208=['string','9PCveuz','METADATA','str',',\x20actual\x20','name','1299qmxFIY','expect-business-group','tableName','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','matched','found','business-group','db-table','validation','Expectation\x20mismatch\x20at\x20businessGroup','update','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Update\x20business\x20scenario\x20group','--code\x20is\x20required','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','metadata','call','businessGroup','1514Neoist','--business-group\x20is\x20required','isFinite','source','unchanged','method','dataset','parse','toUpperCase','write','95112PlbBzt','POST','sourceType','252DSEKUN','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','data','payload','datasetCode','extend','keys','252QCbIPs','kind','DB_TABLE','trim','value','prototype','46685VHQnzK','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','appCode','4814458iKSPQp','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','2792670kUvcIS','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','hasOwnProperty','dbTableSelector','dbtableConfig','3029600ngMcqO','dbLinkId','business-group-update','code','433657RLCbJY','message','Expected\x20','number','expectBusinessGroup','datasetId','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','modelId','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','object','stringify','backend','datasetName','modelCode','isArray'];a66_0x1cd2=function(){return _0x49e208;};return a66_0x1cd2();}function readBusinessGroupFromDatasetDetail(_0x156cb7,_0x15db21){const _0x464ecc=a66_0x13de21,_0x4f9c80=asPlainObject(_0x156cb7[_0x464ecc(0xc5)]),_0x43f314=firstPresent(_0x156cb7[_0x464ecc(0xbe)]);if(_0x43f314[_0x464ecc(0xb2)])return _0x43f314;const _0x5ef130=firstPresent(_0x4f9c80['businessGroup']);if(_0x5ef130[_0x464ecc(0xb2)])return _0x5ef130;if(_0x15db21==='DB_TABLE')return{'found':![]};const _0x60a49b=readBusinessGroupFromExtend(_0x156cb7['extend']);if(_0x60a49b[_0x464ecc(0xb2)])return _0x60a49b;return readBusinessGroupFromExtend(_0x4f9c80[_0x464ecc(0xd1)]);}function readBusinessGroupFromExtend(_0x54b32e){const _0x209267=a66_0x13de21;if(_0x54b32e===undefined||_0x54b32e===null||_0x54b32e==='')return{'found':![]};if(typeof _0x54b32e===_0x209267(0xf6))try{const _0x293ebc=JSON[_0x209267(0xc6)](_0x54b32e);return readBusinessGroupFromExtend(_0x293ebc);}catch{return{'found':![]};}const _0x498fe6=asPlainObject(_0x54b32e);if(Object[_0x209267(0xd8)][_0x209267(0xe0)][_0x209267(0xbd)](_0x498fe6,_0x209267(0xbe)))return{'found':!![],'value':_0x498fe6[_0x209267(0xbe)]};return{'found':![]};}function a66_0x1d02(_0x34d7f6,_0x9887df){_0x34d7f6=_0x34d7f6-0xac;const _0x1cd27=a66_0x1cd2();let _0x1d0287=_0x1cd27[_0x34d7f6];return _0x1d0287;}function firstPresent(..._0x3dbd50){for(const _0x125de3 of _0x3dbd50){if(_0x125de3!==undefined&&_0x125de3!==null)return{'found':!![],'value':_0x125de3};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2c12ac,_0x2e9b12){const _0xb5132b=a66_0x13de21;if(_0x2e9b12===undefined)return;const _0x4d078b=normalizeBusinessGroupArgument(_0x2e9b12);if(_0x2c12ac!==_0x4d078b)throw CliErrors['validation'](_0xb5132b(0xb6),_0xb5132b(0xe9)+JSON[_0xb5132b(0xf1)](_0x4d078b)+',\x20actual\x20'+JSON[_0xb5132b(0xf1)](_0x2c12ac));}function buildBackendPlan(_0xd2c8dd,_0x418ed5,_0x4700bd){const _0x3a9033=a66_0x13de21;if(_0x418ed5[_0x3a9033(0xcb)]===_0x3a9033(0xd5)){if(!_0x418ed5[_0x3a9033(0xe1)]||_0x418ed5[_0x3a9033(0xe1)][_0x3a9033(0xe4)]===null||!_0x418ed5[_0x3a9033(0xe1)][_0x3a9033(0xaf)])throw CliErrors['validation'](_0x3a9033(0xda),_0x3a9033(0xb0));return{'kind':_0x3a9033(0xb4),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x418ed5['dbTableSelector']['dbLinkId'],'tableName':_0x418ed5[_0x3a9033(0xe1)][_0x3a9033(0xaf)],'businessGroup':_0x4700bd}};}return{'kind':_0x3a9033(0xbc),'method':_0x3a9033(0xca),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0xd2c8dd,'datasetCode':_0x418ed5[_0x3a9033(0xe6)],'businessGroup':_0x4700bd}};}function normalizeBusinessGroup(_0x7d6153){if(_0x7d6153===undefined||_0x7d6153===null)return'';return String(_0x7d6153)['trim']();}function normalizeBusinessGroupArgument(_0x276d53){const _0x5a96bd=normalizeBusinessGroup(_0x276d53);return _0x5a96bd===UNGROUPED_BUSINESS_GROUP?'':_0x5a96bd;}function displayBusinessGroup(_0x112280){return _0x112280||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x509500){const _0x124736=a66_0x13de21;if(!_0x509500||typeof _0x509500!==_0x124736(0xf0)||Array[_0x124736(0xf5)](_0x509500))return{};return _0x509500;}function firstString(..._0x5cc0a1){const _0x425fc5=a66_0x13de21;for(const _0xc21cb3 of _0x5cc0a1){if(typeof _0xc21cb3===_0x425fc5(0xf6)&&_0xc21cb3[_0x425fc5(0xd6)]())return _0xc21cb3[_0x425fc5(0xd6)]();if(typeof _0xc21cb3===_0x425fc5(0xea)&&Number[_0x425fc5(0xc1)](_0xc21cb3))return String(_0xc21cb3);}return undefined;}function firstNumber(..._0x15ab1f){const _0x40aa28=a66_0x13de21;for(const _0x3d91a1 of _0x15ab1f){if(typeof _0x3d91a1===_0x40aa28(0xea)&&Number[_0x40aa28(0xc1)](_0x3d91a1))return _0x3d91a1;if(typeof _0x3d91a1==='string'&&_0x3d91a1[_0x40aa28(0xd6)]()&&Number[_0x40aa28(0xc1)](Number(_0x3d91a1)))return Number(_0x3d91a1);}return null;}function trim(_0x4accdd){const _0x319eee=a66_0x13de21;return String(_0x4accdd||'')[_0x319eee(0xd6)]();}
|
|
1
|
+
const a66_0x3deab3=a66_0x1282;(function(_0x3f3e70,_0x10f5a0){const _0x4205e3=a66_0x1282,_0x34e9d3=_0x3f3e70();while(!![]){try{const _0x31571c=parseInt(_0x4205e3(0x131))/0x1*(parseInt(_0x4205e3(0xf5))/0x2)+-parseInt(_0x4205e3(0xe9))/0x3*(-parseInt(_0x4205e3(0x100))/0x4)+parseInt(_0x4205e3(0xed))/0x5*(-parseInt(_0x4205e3(0xfc))/0x6)+parseInt(_0x4205e3(0x128))/0x7*(-parseInt(_0x4205e3(0x120))/0x8)+parseInt(_0x4205e3(0x101))/0x9*(-parseInt(_0x4205e3(0x111))/0xa)+parseInt(_0x4205e3(0x112))/0xb*(-parseInt(_0x4205e3(0x119))/0xc)+parseInt(_0x4205e3(0x109))/0xd*(parseInt(_0x4205e3(0x105))/0xe);if(_0x31571c===_0x10f5a0)break;else _0x34e9d3['push'](_0x34e9d3['shift']());}catch(_0x465635){_0x34e9d3['push'](_0x34e9d3['shift']());}}}(a66_0x59b8,0x3a0b8));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_0x3deab3(0x138),METADATA_BACKEND_PATH=a66_0x3deab3(0xf9),UNGROUPED_BUSINESS_GROUP=a66_0x3deab3(0x130);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x5e5eb1,input:_0x34b7ae,dryRun:_0xdb9805}){const _0x3bb0a5=a66_0x3deab3;validateInput(_0x34b7ae);const _0xc004cc=normalizeBusinessGroupArgument(_0x34b7ae[_0x3bb0a5(0x135)]),_0xb6259f=await getDatasetDetail(_0x34b7ae[_0x3bb0a5(0x129)]),_0x462df0=resolveBusinessGroupDataset(_0xb6259f,_0x34b7ae[_0x3bb0a5(0x129)]);assertBusinessGroupUpdateSupported(_0x462df0,_0xc004cc);const _0x478714=loadCurrentBusinessGroup(_0xb6259f,_0x462df0);assertExpectedBusinessGroup(_0x478714,_0x34b7ae[_0x3bb0a5(0x137)]);const _0x1192fa=buildBackendPlan(_0x5e5eb1,_0x462df0,_0xc004cc),_0x2878b5=_0x478714!==_0xc004cc;let _0x30b3fe;if(_0x2878b5&&!_0xdb9805){_0x1192fa[_0x3bb0a5(0x12c)]===_0x3bb0a5(0x13b)?await updateDbTableBusinessGroup(_0x1192fa[_0x3bb0a5(0x133)]):await updateErBusinessGroup(_0x1192fa[_0x3bb0a5(0x133)]);const _0x58b78b=await getDatasetDetail(_0x462df0[_0x3bb0a5(0x129)]),_0x363a99=resolveBusinessGroupDataset(_0x58b78b,_0x462df0[_0x3bb0a5(0x129)]),_0x35aa36=loadCurrentBusinessGroup(_0x58b78b,_0x363a99);if(_0x35aa36!==_0xc004cc)throw CliErrors[_0x3bb0a5(0x139)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x3bb0a5(0x12b)+JSON['stringify'](displayBusinessGroup(_0xc004cc))+_0x3bb0a5(0x113)+JSON[_0x3bb0a5(0x114)](displayBusinessGroup(_0x35aa36))+'.');_0x30b3fe={'verified':!![],'status':_0x3bb0a5(0x122),'afterReadback':{'businessGroup':displayBusinessGroup(_0x35aa36)}};}else!_0x2878b5&&(_0x30b3fe={'verified':!![],'status':_0x3bb0a5(0xfd),'afterReadback':{'businessGroup':displayBusinessGroup(_0x478714)}});const _0x1cf52e={'operation':_0x3bb0a5(0xef),'appCode':_0x5e5eb1,'selector':{'code':_0x462df0[_0x3bb0a5(0x129)]},'dataset':{'id':_0x462df0['id'],'code':_0x462df0[_0x3bb0a5(0x129)],'name':_0x462df0[_0x3bb0a5(0x126)],'sourceType':_0x462df0[_0x3bb0a5(0x10d)]},'before':{'businessGroup':displayBusinessGroup(_0x478714)},'after':{'businessGroup':displayBusinessGroup(_0xc004cc)},'changed':_0x2878b5,'dryRun':_0xdb9805,'submitted':_0x2878b5&&!_0xdb9805,'backend':{'method':_0x1192fa[_0x3bb0a5(0xf0)],'path':_0x1192fa[_0x3bb0a5(0xec)],'payload':_0x1192fa[_0x3bb0a5(0x133)]},..._0x30b3fe?{'verification':_0x30b3fe}:{},'warnings':[]};return{'ok':!![],'data':_0x1cf52e,'message':_0x2878b5?_0xdb9805?_0x3bb0a5(0xf1)+_0x462df0[_0x3bb0a5(0x129)]:_0x3bb0a5(0x132)+_0x462df0[_0x3bb0a5(0x129)]:_0x3bb0a5(0x134)+_0x462df0[_0x3bb0a5(0x129)]};}export const datasetBusinessGroupUpdate={'service':'dataset','command':'business-group-update','description':a66_0x3deab3(0xf4),'risk':a66_0x3deab3(0x12d),'flags':[CODE_FLAG,{'name':a66_0x3deab3(0x10e),'type':'string','required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it'},{'name':a66_0x3deab3(0x11c),'type':'string','required':![],'description':a66_0x3deab3(0x10c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x356916){validateInput(readBusinessGroupUpdateInput(_0x356916));},async 'dryRun'(_0x37bef6){const _0x4221b0=a66_0x3deab3,_0x4903ed=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x37bef6['appCode'],'input':readBusinessGroupUpdateInput(_0x37bef6),'dryRun':!![]});return{'method':_0x4903ed[_0x4221b0(0x12f)][_0x4221b0(0xff)][_0x4221b0(0xf0)],'url':_0x4903ed[_0x4221b0(0x12f)][_0x4221b0(0xff)][_0x4221b0(0xec)],'body':_0x4903ed[_0x4221b0(0x12f)]['backend'][_0x4221b0(0x133)],'description':_0x4903ed[_0x4221b0(0xfe)],..._0x4903ed[_0x4221b0(0x12f)]};},async 'execute'(_0x561013){const _0x107135=a66_0x3deab3;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x561013[_0x107135(0x121)],'input':readBusinessGroupUpdateInput(_0x561013),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x3a7255){const _0x3b8b8c=a66_0x3deab3,_0x219ed6=_0x3a7255[_0x3b8b8c(0x102)](_0x3b8b8c(0x11c));return{'code':trim(_0x3a7255[_0x3b8b8c(0x102)](_0x3b8b8c(0x129))),'businessGroup':_0x3a7255[_0x3b8b8c(0x102)](_0x3b8b8c(0x10e)),'expectBusinessGroup':_0x219ed6===undefined||_0x219ed6===''?undefined:_0x219ed6};}function validateInput(_0x44d5d6){const _0x24d770=a66_0x3deab3;if(!trim(_0x44d5d6[_0x24d770(0x129)]))throw CliErrors[_0x24d770(0x12a)](_0x24d770(0x118));if(_0x44d5d6[_0x24d770(0x135)]===undefined)throw CliErrors['validation'](_0x24d770(0x107));if(!trim(_0x44d5d6[_0x24d770(0x135)]))throw CliErrors[_0x24d770(0x12a)](_0x24d770(0x104));}function assertBusinessGroupUpdateSupported(_0x285cbb,_0x15514c){const _0x3481c1=a66_0x3deab3;if(_0x285cbb[_0x3481c1(0x10d)]===_0x3481c1(0x117)&&!_0x15514c)throw CliErrors[_0x3481c1(0x12a)](_0x3481c1(0x11e));}function resolveBusinessGroupDataset(_0x245f8c,_0x8f2a75){const _0x4f79c4=a66_0x3deab3,_0x168102=asPlainObject(_0x245f8c[_0x4f79c4(0xf7)]),_0x20eb00=asPlainObject(_0x245f8c[_0x4f79c4(0xea)]),_0x255934=resolveSourceType(_0x245f8c,_0x168102,_0x20eb00),_0x5e072d=firstString(_0x245f8c[_0x4f79c4(0x103)],_0x245f8c[_0x4f79c4(0x129)],_0x168102[_0x4f79c4(0x11d)],_0x8f2a75)||_0x8f2a75;return{'id':firstNumber(_0x245f8c['modelId'],_0x245f8c['id'],_0x168102['datasetId'])??firstString(_0x245f8c[_0x4f79c4(0xf6)],_0x245f8c['id'],_0x168102[_0x4f79c4(0xf3)])??null,'code':_0x5e072d,'name':firstString(_0x245f8c[_0x4f79c4(0x126)],_0x168102[_0x4f79c4(0x125)],_0x168102['name'])||null,'sourceType':_0x255934,'dbTableSelector':_0x255934===_0x4f79c4(0x117)?{'dbLinkId':firstNumber(_0x20eb00[_0x4f79c4(0x11b)]),'tableName':firstString(_0x20eb00['tableName'])||null}:null};}function resolveSourceType(_0x40c809,_0x34d0c3,_0x5c496b){const _0x3716ff=a66_0x3deab3,_0x56e1ab=firstString(_0x40c809[_0x3716ff(0x123)],_0x40c809[_0x3716ff(0x10d)],_0x34d0c3[_0x3716ff(0x123)],_0x34d0c3[_0x3716ff(0x10d)])?.[_0x3716ff(0x124)]()[_0x3716ff(0x13c)]();if(_0x56e1ab===_0x3716ff(0x117)||_0x56e1ab==='METADATA')return _0x56e1ab;if(Object[_0x3716ff(0x136)](_0x5c496b)[_0x3716ff(0x110)]>0x0)return'DB_TABLE';throw CliErrors[_0x3716ff(0x12a)](_0x3716ff(0xeb));}function a66_0x59b8(){const _0x5a41d9=[',\x20actual\x20','stringify','dbLinkId','metadata','DB_TABLE','--code\x20is\x20required','1291452CyZrjc','isFinite','dbId','expect-business-group','datasetCode','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','hasOwnProperty','432AwnrYO','appCode','matched','source','trim','datasetName','name','tableName','51569uRqORI','code','validation','Expected\x20','kind','write','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','data','ungrouped','121798MCmMtw','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','payload','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','businessGroup','keys','expectBusinessGroup','/smartapi/dblink/updateTableBusinessGroup','apiError','string','db-table','toUpperCase','object','3RBCDyJ','dbtableConfig','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','path','5990leqzVn','dbTableSelector','update','method','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','Expectation\x20mismatch\x20at\x20businessGroup','datasetId','Update\x20business\x20scenario\x20group','6cvejJt','modelId','dataset','value','/smartapi/question/er-config/business-group/edit','isArray','found','798VGxLDH','unchanged','message','backend','62968SyOrwg','280179guzJiO','str','modelCode','--business-group\x20must\x20not\x20be\x20blank','56RHdNqG','call','--business-group\x20is\x20required','POST','3009799ZocFFQ','number','parse','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','sourceType','business-group','extend','length','130RSXujx','11Dqezyb'];a66_0x59b8=function(){return _0x5a41d9;};return a66_0x59b8();}function loadCurrentBusinessGroup(_0x189fb2,_0x43dfe0){const _0xc1c63b=a66_0x3deab3,_0x168744=readBusinessGroupFromDatasetDetail(_0x189fb2,_0x43dfe0['sourceType']);if(_0x168744[_0xc1c63b(0xfb)])return normalizeBusinessGroup(_0x168744[_0xc1c63b(0xf8)]);return'';}function a66_0x1282(_0x374c8d,_0x24f2a3){_0x374c8d=_0x374c8d-0xe9;const _0x59b872=a66_0x59b8();let _0x128258=_0x59b872[_0x374c8d];return _0x128258;}function readBusinessGroupFromDatasetDetail(_0x27b526,_0x4d9356){const _0x1b9321=a66_0x3deab3,_0x35122e=asPlainObject(_0x27b526[_0x1b9321(0xf7)]),_0x594402=firstPresent(_0x27b526['businessGroup']);if(_0x594402['found'])return _0x594402;const _0x48a83b=firstPresent(_0x35122e[_0x1b9321(0x135)]);if(_0x48a83b[_0x1b9321(0xfb)])return _0x48a83b;if(_0x4d9356==='DB_TABLE')return{'found':![]};const _0x2cbdae=readBusinessGroupFromExtend(_0x27b526[_0x1b9321(0x10f)]);if(_0x2cbdae[_0x1b9321(0xfb)])return _0x2cbdae;return readBusinessGroupFromExtend(_0x35122e[_0x1b9321(0x10f)]);}function readBusinessGroupFromExtend(_0x44f6cc){const _0x10ea7e=a66_0x3deab3;if(_0x44f6cc===undefined||_0x44f6cc===null||_0x44f6cc==='')return{'found':![]};if(typeof _0x44f6cc===_0x10ea7e(0x13a))try{const _0x4e09e9=JSON[_0x10ea7e(0x10b)](_0x44f6cc);return readBusinessGroupFromExtend(_0x4e09e9);}catch{return{'found':![]};}const _0xdc40f5=asPlainObject(_0x44f6cc);if(Object['prototype'][_0x10ea7e(0x11f)][_0x10ea7e(0x106)](_0xdc40f5,_0x10ea7e(0x135)))return{'found':!![],'value':_0xdc40f5[_0x10ea7e(0x135)]};return{'found':![]};}function firstPresent(..._0x3241e3){for(const _0x10370d of _0x3241e3){if(_0x10370d!==undefined&&_0x10370d!==null)return{'found':!![],'value':_0x10370d};}return{'found':![]};}function assertExpectedBusinessGroup(_0x7fbbe2,_0x34c56c){const _0x2be7dc=a66_0x3deab3;if(_0x34c56c===undefined)return;const _0x14fbc7=normalizeBusinessGroupArgument(_0x34c56c);if(_0x7fbbe2!==_0x14fbc7)throw CliErrors[_0x2be7dc(0x12a)](_0x2be7dc(0xf2),_0x2be7dc(0x12b)+JSON[_0x2be7dc(0x114)](_0x14fbc7)+_0x2be7dc(0x113)+JSON[_0x2be7dc(0x114)](_0x7fbbe2));}function buildBackendPlan(_0x33c2b6,_0xf38b0d,_0xcbaa03){const _0x33ad9e=a66_0x3deab3;if(_0xf38b0d[_0x33ad9e(0x10d)]==='DB_TABLE'){if(!_0xf38b0d['dbTableSelector']||_0xf38b0d[_0x33ad9e(0xee)]['dbLinkId']===null||!_0xf38b0d[_0x33ad9e(0xee)][_0x33ad9e(0x127)])throw CliErrors[_0x33ad9e(0x12a)]('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x33ad9e(0x12e));return{'kind':'db-table','method':_0x33ad9e(0x108),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0xf38b0d[_0x33ad9e(0xee)][_0x33ad9e(0x115)],'tableName':_0xf38b0d['dbTableSelector'][_0x33ad9e(0x127)],'businessGroup':_0xcbaa03}};}return{'kind':_0x33ad9e(0x116),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x33c2b6,'datasetCode':_0xf38b0d['code'],'businessGroup':_0xcbaa03}};}function normalizeBusinessGroup(_0x1c1f50){if(_0x1c1f50===undefined||_0x1c1f50===null)return'';return String(_0x1c1f50)['trim']();}function normalizeBusinessGroupArgument(_0x31dc47){const _0x4f1fac=normalizeBusinessGroup(_0x31dc47);return _0x4f1fac===UNGROUPED_BUSINESS_GROUP?'':_0x4f1fac;}function displayBusinessGroup(_0xecb910){return _0xecb910||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x30e47f){const _0x1c7b66=a66_0x3deab3;if(!_0x30e47f||typeof _0x30e47f!==_0x1c7b66(0x13d)||Array[_0x1c7b66(0xfa)](_0x30e47f))return{};return _0x30e47f;}function firstString(..._0x10d391){const _0x116735=a66_0x3deab3;for(const _0xc5ae32 of _0x10d391){if(typeof _0xc5ae32===_0x116735(0x13a)&&_0xc5ae32[_0x116735(0x124)]())return _0xc5ae32['trim']();if(typeof _0xc5ae32===_0x116735(0x10a)&&Number[_0x116735(0x11a)](_0xc5ae32))return String(_0xc5ae32);}return undefined;}function firstNumber(..._0x22e591){const _0x132701=a66_0x3deab3;for(const _0x4bacea of _0x22e591){if(typeof _0x4bacea==='number'&&Number['isFinite'](_0x4bacea))return _0x4bacea;if(typeof _0x4bacea===_0x132701(0x13a)&&_0x4bacea[_0x132701(0x124)]()&&Number[_0x132701(0x11a)](Number(_0x4bacea)))return Number(_0x4bacea);}return null;}function trim(_0x46ba96){const _0x41b6d8=a66_0x3deab3;return String(_0x46ba96||'')[_0x41b6d8(0x124)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x35ac15=a67_0x2359;(function(_0x177aa6,_0x7d7efd){const _0x1b9416=a67_0x2359,_0x422206=_0x177aa6();while(!![]){try{const _0x1a0289=-parseInt(_0x1b9416(0x88))/0x1+-parseInt(_0x1b9416(0x7b))/0x2*(parseInt(_0x1b9416(0x74))/0x3)+parseInt(_0x1b9416(0x73))/0x4*(parseInt(_0x1b9416(0x8a))/0x5)+-parseInt(_0x1b9416(0x80))/0x6*(parseInt(_0x1b9416(0x81))/0x7)+parseInt(_0x1b9416(0x7c))/0x8+parseInt(_0x1b9416(0x78))/0x9+parseInt(_0x1b9416(0x76))/0xa;if(_0x1a0289===_0x7d7efd)break;else _0x422206['push'](_0x422206['shift']());}catch(_0x30eaf2){_0x422206['push'](_0x422206['shift']());}}}(a67_0x519c,0xde7ba));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x2359(_0x3fcdbe,_0x6ecda2){_0x3fcdbe=_0x3fcdbe-0x73;const _0x519c21=a67_0x519c();let _0x23598d=_0x519c21[_0x3fcdbe];return _0x23598d;}import{getErBusinessGroupSummary}from'../../core/api-client.js';function a67_0x519c(){const _0x170988=['9254592ExMHqH','trim','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','dataset','5393736WccmkQ','7XBOuUk','groups','business-groups','number','\x20business\x20group(s)\x20for\x20database\x20connection\x20','map','ungrouped','419804kuBNPF','DB_TABLE','5265nIBDgS','3052euMyFx','25527coqjMv','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','5503240blyWWs','businessGroup','4444038huIxqe','dbid','appCode','182QCOJFU'];a67_0x519c=function(){return _0x170988;};return a67_0x519c();}export const datasetBusinessGroups={'service':a67_0x35ac15(0x7f),'command':a67_0x35ac15(0x83),'description':a67_0x35ac15(0x7e),'risk':'read','flags':[{'name':'dbid','type':a67_0x35ac15(0x84),'required':!![],'description':a67_0x35ac15(0x75)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0xb33327){const _0x70b23d=a67_0x35ac15,_0x1f78f1=_0xb33327['num'](_0x70b23d(0x79)),_0x2b87e4=await getErBusinessGroupSummary(_0xb33327[_0x70b23d(0x7a)],_0x1f78f1),_0x41f5cf=_0x2b87e4[_0x70b23d(0x82)][_0x70b23d(0x86)](_0x1892fa=>({..._0x1892fa,'businessGroup':_0x1892fa[_0x70b23d(0x77)][_0x70b23d(0x7d)]()||_0x70b23d(0x87)}));return{'ok':!![],'data':{..._0x2b87e4,'groups':_0x41f5cf,'scope':_0x70b23d(0x89)},'message':'Found\x20'+_0x41f5cf['length']+_0x70b23d(0x85)+_0x1f78f1};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x583c8a=a68_0x4cfe;(function(_0x324e96,_0x392753){const _0x5401f5=a68_0x4cfe,_0x331502=_0x324e96();while(!![]){try{const _0xec4795=-parseInt(_0x5401f5(0xd9))/0x1+parseInt(_0x5401f5(0xdc))/0x2+parseInt(_0x5401f5(0xdd))/0x3*(parseInt(_0x5401f5(0xd3))/0x4)+parseInt(_0x5401f5(0xe2))/0x5+-parseInt(_0x5401f5(0xea))/0x6*(parseInt(_0x5401f5(0xd4))/0x7)+-parseInt(_0x5401f5(0xed))/0x8+parseInt(_0x5401f5(0xf5))/0x9;if(_0xec4795===_0x392753)break;else _0x331502['push'](_0x331502['shift']());}catch(_0x369081){_0x331502['push'](_0x331502['shift']());}}}(a68_0x297a,0x1acaf));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x583c8a(0xf4),'filter':a68_0x583c8a(0xec),'getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};function a68_0x4cfe(_0x56a718,_0xc489de){_0x56a718=_0x56a718-0xd3;const _0x297a18=a68_0x297a();let _0x4cfe92=_0x297a18[_0x56a718];return _0x4cfe92;}export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x583c8a(0xe9);function valueToString(_0x4a92dc){const _0x4723cc=a68_0x583c8a;return _0x4a92dc==null?'':String(_0x4a92dc)[_0x4723cc(0xef)]();}function getDatasetCode(_0x41960a){const _0x5186cd=a68_0x583c8a;return valueToString(_0x41960a[_0x5186cd(0xf1)]??_0x41960a[_0x5186cd(0xd8)]??_0x41960a[_0x5186cd(0xda)]?.[_0x5186cd(0xe8)]);}function getDatasetName(_0x1a17c4){const _0x454133=a68_0x583c8a;return valueToString(_0x1a17c4[_0x454133(0xf6)]??_0x1a17c4['dataset']?.[_0x454133(0xe1)])||_0x454133(0xe7);}function getDatasetSource(_0x26585d){const _0x38cbef=a68_0x583c8a;return valueToString(_0x26585d[_0x38cbef(0xd5)]??_0x26585d[_0x38cbef(0xda)]?.['sourceType'])[_0x38cbef(0xee)]();}function getDbtableConfig(_0x25adcc){const _0x1864b5=a68_0x583c8a,_0x2b2aa7=_0x25adcc[_0x1864b5(0xde)]??_0x25adcc['dbtable'];return _0x2b2aa7&&typeof _0x2b2aa7===_0x1864b5(0xeb)?_0x2b2aa7:{};}export function isDbTableBackedDataset(_0x2cc380){const _0x26ba85=a68_0x583c8a,_0x3c64c9=getDatasetSource(_0x2cc380);if(_0x3c64c9==='METADATA')return![];const _0x5820e2=getDbtableConfig(_0x2cc380),_0x3cd9cd=_0x5820e2[_0x26ba85(0xe5)]??_0x5820e2['id'],_0x24dda1=valueToString(_0x5820e2[_0x26ba85(0xdb)]??_0x2cc380[_0x26ba85(0xdb)]??_0x2cc380[_0x26ba85(0xda)]?.['tableName']);return _0x3cd9cd!==undefined&&_0x3cd9cd!==null&&_0x24dda1[_0x26ba85(0xe3)]>0x0;}export function filterDbTableBackedDatasets(_0x4b63fe){const _0x60b4c=a68_0x583c8a;return _0x4b63fe[_0x60b4c(0xf0)](_0x370e6f=>isDbTableBackedDataset(_0x370e6f));}export function buildDbTableBackedRequirementMessage(_0x45a6ae,_0xcabc24=a68_0x583c8a(0xe6)){const _0x14be29=a68_0x583c8a,_0x2f2a3a=getDatasetSource(_0x45a6ae)||'UNKNOWN',_0xe3ee37=getDatasetName(_0x45a6ae),_0x1af360=getDatasetCode(_0x45a6ae),_0x54c3e0=_0x1af360?'\x20('+_0x1af360+')':'';return[_0x14be29(0xd7)+_0xe3ee37+'\x22'+_0x54c3e0+_0x14be29(0xe4)+_0x2f2a3a+'\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20'+_0xcabc24+'.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.',_0x14be29(0xf2),_0x14be29(0xdf)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x14be29(0xe0)]+'.'][_0x14be29(0xf3)]('\x20');}export function assertDatasetIsDbTableBacked(_0xb91b9,_0x4be755){const _0x3a42ba=a68_0x583c8a;if(!isDbTableBackedDataset(_0xb91b9))throw CliErrors[_0x3a42ba(0xd6)](buildDbTableBackedRequirementMessage(_0xb91b9,_0x4be755));}function a68_0x297a(){const _0x3c2257=['232257IkaCIx','dbtableConfig','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','getOne','datasetName','211970chQbZU','length','\x20is\x20','dbId','SQL\x20schema\x20validation','unknown','datasetCode','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','870bbgXen','object','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','631192UPXxhe','toUpperCase','trim','filter','code','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','join','lovrabet','140913xlFmom','name','4KSFWKM','3283SLFAzV','source','validation','The\x20current\x20dataset\x20\x22','modelCode','75885FXFeHN','dataset','tableName','394124LLMNqP'];a68_0x297a=function(){return _0x3c2257;};return a68_0x297a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a69_0x4117(){const _0x1acf43=['269260DWnAfC','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','230198GucHlZ','3kUXKYe','464970sWPPwv','2141536abNxtI','create','dataset','write','218150alvvrq','5NpjHox','62784BEDWgy','1887867XaaPuZ','112kpJNUO'];a69_0x4117=function(){return _0x1acf43;};return a69_0x4117();}const a69_0x404bae=a69_0x33b3;(function(_0x3bf17a,_0x6f970d){const _0x1e731e=a69_0x33b3,_0x2272a6=_0x3bf17a();while(!![]){try{const _0x15a98c=-parseInt(_0x1e731e(0x86))/0x1+-parseInt(_0x1e731e(0x7f))/0x2*(-parseInt(_0x1e731e(0x80))/0x3)+parseInt(_0x1e731e(0x8b))/0x4*(parseInt(_0x1e731e(0x87))/0x5)+parseInt(_0x1e731e(0x88))/0x6*(parseInt(_0x1e731e(0x8a))/0x7)+parseInt(_0x1e731e(0x82))/0x8+-parseInt(_0x1e731e(0x89))/0x9+-parseInt(_0x1e731e(0x81))/0xa;if(_0x15a98c===_0x6f970d)break;else _0x2272a6['push'](_0x2272a6['shift']());}catch(_0x7578f1){_0x2272a6['push'](_0x2272a6['shift']());}}}(a69_0x4117,0x22f10));import{createCrossDbRelation}from'../../core/api-client.js';function a69_0x33b3(_0x253f33,_0x129ebd){_0x253f33=_0x253f33-0x7f;const _0x4117aa=a69_0x4117();let _0x33b385=_0x4117aa[_0x253f33];return _0x33b385;}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_0x404bae(0x84),'command':'cross-relation-create','description':a69_0x404bae(0x8c),'risk':a69_0x404bae(0x85),'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 _0x5bda3e=>validateCrossRelation(_0x5bda3e,a69_0x404bae(0x83)),'dryRun':_0x691ef=>previewCrossRelation(_0x691ef,a69_0x404bae(0x83)),'execute':_0x3fd525=>executeCrossRelation(_0x3fd525,a69_0x404bae(0x83),createCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x34d83c=a70_0x1f9c;(function(_0x172649,_0x3549b3){const _0x49f3c4=a70_0x1f9c,_0x52cdb8=_0x172649();while(!![]){try{const _0x1a252a=-parseInt(_0x49f3c4(0x103))/0x1+-parseInt(_0x49f3c4(0x104))/0x2*(parseInt(_0x49f3c4(0x107))/0x3)+parseInt(_0x49f3c4(0x10c))/0x4*(parseInt(_0x49f3c4(0x100))/0x5)+parseInt(_0x49f3c4(0x109))/0x6*(-parseInt(_0x49f3c4(0x101))/0x7)+-parseInt(_0x49f3c4(0x108))/0x8*(parseInt(_0x49f3c4(0x105))/0x9)+parseInt(_0x49f3c4(0x102))/0xa+-parseInt(_0x49f3c4(0xff))/0xb*(parseInt(_0x49f3c4(0x10a))/0xc);if(_0x1a252a===_0x3549b3)break;else _0x52cdb8['push'](_0x52cdb8['shift']());}catch(_0x130dde){_0x52cdb8['push'](_0x52cdb8['shift']());}}}(a70_0x28bc,0x543e7));function a70_0x28bc(){const _0x21e2fa=['10XoksvN','9VJBrkl','dataset','123507knFGNh','118264PMXTeg','6fTUMnc','12tzwFbT','delete','41124peqylH','2550218UssRkP','305Rdhobi','2926511HebfJg','6135970OxPDiK','25136LbNMYW'];a70_0x28bc=function(){return _0x21e2fa;};return a70_0x28bc();}import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a70_0x1f9c(_0x4d9810,_0xad4668){_0x4d9810=_0x4d9810-0xff;const _0x28bcd6=a70_0x28bc();let _0x1f9c7d=_0x28bcd6[_0x4d9810];return _0x1f9c7d;}export const datasetCrossRelationDelete={'service':a70_0x34d83c(0x106),'command':'cross-relation-delete','description':'Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':'high-risk-write','strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x1f4b3e=>validateCrossRelation(_0x1f4b3e,a70_0x34d83c(0x10b)),'dryRun':_0x3a7c0a=>previewCrossRelation(_0x3a7c0a,a70_0x34d83c(0x10b)),'execute':_0x407a68=>executeCrossRelation(_0x407a68,'delete',deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x218055=a71_0x5dd9;(function(_0x484a49,_0x2096f9){const _0x4bb1b2=a71_0x5dd9,_0x5c1f8a=_0x484a49();while(!![]){try{const _0x46f303=parseInt(_0x4bb1b2(0x188))/0x1*(-parseInt(_0x4bb1b2(0x17e))/0x2)+parseInt(_0x4bb1b2(0x182))/0x3+-parseInt(_0x4bb1b2(0x184))/0x4+-parseInt(_0x4bb1b2(0x185))/0x5*(parseInt(_0x4bb1b2(0x177))/0x6)+-parseInt(_0x4bb1b2(0x17c))/0x7+-parseInt(_0x4bb1b2(0x178))/0x8*(parseInt(_0x4bb1b2(0x17f))/0x9)+parseInt(_0x4bb1b2(0x186))/0xa;if(_0x46f303===_0x2096f9)break;else _0x5c1f8a['push'](_0x5c1f8a['shift']());}catch(_0x103751){_0x5c1f8a['push'](_0x5c1f8a['shift']());}}}(a71_0x1232,0x52972));import{queryCrossDbRelations}from'../../core/api-client.js';function a71_0x1232(){const _0x48a799=['appCode','26ntDOrH','cross-relation-list','6qnpkCB','1355544LGAGol','Cross-database\x20relations:\x20','list','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','746697OGKkZi','\x20relation(s)','16186EEqVdV','18eNZUhm','length','map','979815sERQZQ','read','663112ejGCVu','1496195IbjCJo','11326770obitoB'];a71_0x1232=function(){return _0x48a799;};return a71_0x1232();}function a71_0x5dd9(_0x424a1a,_0x4795ec){_0x424a1a=_0x424a1a-0x177;const _0x1232db=a71_0x1232();let _0x5dd974=_0x1232db[_0x424a1a];return _0x5dd974;}import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationList={'service':'dataset','command':a71_0x218055(0x189),'description':a71_0x218055(0x17b),'risk':a71_0x218055(0x183),'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 _0xe116fb=>validateCrossRelation(_0xe116fb,a71_0x218055(0x17a)),async 'execute'(_0x199bdc){const _0xa4bc0b=a71_0x218055,_0x24213d=await resolveCrossRelationQuery(_0x199bdc),_0x4f70af=await queryCrossDbRelations(_0x24213d);return{'ok':!![],'data':{'appCode':_0x199bdc[_0xa4bc0b(0x187)],'selector':_0x24213d,'total':_0x4f70af[_0xa4bc0b(0x180)],'relations':_0x4f70af[_0xa4bc0b(0x181)](projectCrossRelation)},'message':_0xa4bc0b(0x179)+_0x4f70af[_0xa4bc0b(0x180)]+_0xa4bc0b(0x17d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x2e8053=a72_0x1c45;(function(_0x4036e2,_0x3bd836){const _0x449a59=a72_0x1c45,_0x5b4fa1=_0x4036e2();while(!![]){try{const _0x3d9ef5=parseInt(_0x449a59(0x1d3))/0x1*(parseInt(_0x449a59(0x1a9))/0x2)+parseInt(_0x449a59(0x1c1))/0x3+-parseInt(_0x449a59(0x1b9))/0x4*(parseInt(_0x449a59(0x1b0))/0x5)+-parseInt(_0x449a59(0x1a7))/0x6*(parseInt(_0x449a59(0x198))/0x7)+parseInt(_0x449a59(0x1d4))/0x8*(parseInt(_0x449a59(0x19e))/0x9)+-parseInt(_0x449a59(0x1c2))/0xa+parseInt(_0x449a59(0x18a))/0xb;if(_0x3d9ef5===_0x3bd836)break;else _0x5b4fa1['push'](_0x5b4fa1['shift']());}catch(_0x1eaec5){_0x5b4fa1['push'](_0x5b4fa1['shift']());}}}(a72_0x21ec,0x39365));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x3d4354,_0x4d96a9){const _0x4317db=a72_0x1c45,_0x2b0681=_0x3d4354[_0x4317db(0x19d)](_0x4d96a9)[_0x4317db(0x1c7)]();if(!_0x2b0681)throw CliErrors[_0x4317db(0x1c5)](_0x4d96a9);return _0x2b0681;}function explicitDblink(_0x4e5b97){const _0x482cca=a72_0x1c45,_0x1ae0ca=_0x4e5b97[_0x482cca(0x18c)]('from-dblink-id');if(_0x1ae0ca===undefined||_0x1ae0ca===null)return undefined;const _0x145302=Number(_0x1ae0ca);if(!Number[_0x482cca(0x1b3)](_0x145302)||_0x145302<=0x0)throw CliErrors['validation'](_0x482cca(0x1d2));return _0x145302;}export function validateCrossRelation(_0x3a5917,_0x7e37c2){const _0x464bef=a72_0x1c45,_0xa33d39=explicitDblink(_0x3a5917);if(_0x7e37c2==='list'){if(!_0x3a5917[_0x464bef(0x19d)]('from-datasetcode')[_0x464bef(0x1c7)]()&&_0xa33d39===undefined)throw CliErrors[_0x464bef(0x187)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x3a5917,_0x464bef(0x1be)),required(_0x3a5917,_0x464bef(0x1ad));if(_0x7e37c2!==_0x464bef(0x18b)){required(_0x3a5917,_0x464bef(0x1d1)),required(_0x3a5917,_0x464bef(0x196));const _0x3d0e1a=_0x3a5917[_0x464bef(0x19d)](_0x464bef(0x19c))[_0x464bef(0x1c7)]();if(_0x3d0e1a&&!CROSS_RELATION_CARDINALITY_FLAG[_0x464bef(0x1c6)][_0x464bef(0x18f)](_0x3d0e1a))throw CliErrors['validation'](_0x464bef(0x1d5));}}async function resolveEndpoint(_0x1c36c8){const _0x289517=a72_0x1c45,_0x9e291=await getDatasetDetail(_0x1c36c8),_0x591c5b=_0x9e291?.[_0x289517(0x19a)]??{};if((_0x9e291?.[_0x289517(0x1b4)]??_0x591c5b['sourceType'])!==_0x289517(0x1b5))throw CliErrors[_0x289517(0x187)](_0x289517(0x1c4)+_0x1c36c8+_0x289517(0x1aa));const _0x294c2f=_0x9e291[_0x289517(0x197)]??_0x9e291[_0x289517(0x1d9)]??{};let _0x438215=_0x9e291[_0x289517(0x1cc)]??_0x591c5b['extend']??{};if(typeof _0x438215==='string')try{_0x438215=_0x438215[_0x289517(0x1c7)]()?JSON[_0x289517(0x1dc)](_0x438215):{};}catch{throw CliErrors[_0x289517(0x187)](_0x289517(0x1c4)+_0x1c36c8+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x1b0b89=Number(_0x438215?.[_0x289517(0x1db)]?.[_0x289517(0x1cb)]??_0x9e291[_0x289517(0x1db)]?.['dbId']??_0x591c5b[_0x289517(0x1db)]?.[_0x289517(0x1cb)]??_0x294c2f['dbId']??_0x591c5b[_0x289517(0x1cb)]??_0x9e291[_0x289517(0x1cb)]),_0x177f28=String(_0x9e291[_0x289517(0x1c0)]??_0x591c5b[_0x289517(0x1c0)]??_0x294c2f[_0x289517(0x1c0)]??'')['trim']();if(!Number[_0x289517(0x1b3)](_0x1b0b89)||_0x1b0b89<=0x0||!_0x177f28)throw CliErrors[_0x289517(0x187)]('Dataset\x20'+_0x1c36c8+_0x289517(0x1d6));return{'datasetCode':_0x1c36c8,'dblinkId':_0x1b0b89,'table':_0x177f28};}export async function resolveCrossRelationQuery(_0x239b29){const _0x110601=a72_0x1c45,_0x38e547=_0x239b29[_0x110601(0x19d)](_0x110601(0x1be))[_0x110601(0x1c7)](),_0x2ae3a3=explicitDblink(_0x239b29),_0x4d7b94=_0x38e547?await resolveEndpoint(_0x38e547):undefined;if(_0x4d7b94&&_0x2ae3a3!==undefined&&_0x4d7b94[_0x110601(0x1ac)]!==_0x2ae3a3)throw CliErrors[_0x110601(0x187)](_0x110601(0x1bd));const _0x32feab=_0x4d7b94?.[_0x110601(0x1ac)]??_0x2ae3a3;if(_0x32feab===undefined)throw CliErrors[_0x110601(0x187)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x239b29[_0x110601(0x1cf)],'fromDblinkId':_0x32feab,..._0x38e547?{'fromDatasetCode':_0x38e547}:{},..._0x239b29['str'](_0x110601(0x1ad))[_0x110601(0x1c7)]()?{'fromField':_0x239b29[_0x110601(0x19d)]('from-column')[_0x110601(0x1c7)]()}:{}};}export function projectCrossRelation(_0x551674){const _0x178fb3=a72_0x1c45;return{'relationId':_0x551674[_0x178fb3(0x1da)],'from':{'source':'DB_TABLE','datasetCode':_0x551674[_0x178fb3(0x1af)],'datasetName':_0x551674[_0x178fb3(0x1d0)],'dblinkId':_0x551674['fromDblinkId'],'table':_0x551674[_0x178fb3(0x1ca)],'field':_0x551674[_0x178fb3(0x1b2)]},'to':{'source':'DB_TABLE','datasetCode':_0x551674[_0x178fb3(0x1ce)],'datasetName':_0x551674[_0x178fb3(0x19b)],'dblinkId':_0x551674[_0x178fb3(0x194)],'table':_0x551674[_0x178fb3(0x19f)],'field':_0x551674[_0x178fb3(0x1ae)],'labelField':_0x551674[_0x178fb3(0x1c3)]},'relation':{'cardinality':_0x551674[_0x178fb3(0x19c)],'relationType':_0x551674[_0x178fb3(0x1b1)]}};}function ambiguity(_0x12d304){const _0x203c20=a72_0x1c45,_0x1e9a5d=CliErrors[_0x203c20(0x187)](_0x203c20(0x1a4),_0x203c20(0x1a0));return Object[_0x203c20(0x1b6)](_0x1e9a5d,_0x203c20(0x1a6),{'value':{'candidates':_0x12d304[_0x203c20(0x1b7)](projectCrossRelation)}}),_0x1e9a5d;}const sameName=(_0x2125d8,_0x42b9d4)=>_0x2125d8[a72_0x2e8053(0x1c8)]()===_0x42b9d4[a72_0x2e8053(0x1c8)]();function a72_0x1c45(_0xfa0442,_0x246988){_0xfa0442=_0xfa0442-0x185;const _0x21ecab=a72_0x21ec();let _0x1c45e7=_0x21ecab[_0xfa0442];return _0x1c45e7;}function matchesEndpoint(_0x17e36f,_0x34c516,_0x2ac0dc,_0x3b3a0c,_0x4cf335){const _0x3fc1eb=a72_0x2e8053;return _0x17e36f[_0x3fc1eb(0x199)]===_0x34c516[_0x3fc1eb(0x1ac)]&&sameName(_0x17e36f[_0x3fc1eb(0x1ca)],_0x34c516[_0x3fc1eb(0x1a5)])&&sameName(_0x17e36f[_0x3fc1eb(0x1b2)],_0x2ac0dc)&&_0x17e36f['toDblinkId']===_0x3b3a0c['dblinkId']&&sameName(_0x17e36f['toTableName'],_0x3b3a0c[_0x3fc1eb(0x1a5)])&&sameName(_0x17e36f[_0x3fc1eb(0x1ae)],_0x4cf335);}export async function prepareCrossRelation(_0xcf90a2,_0x214620){const _0x2e2cd5=a72_0x2e8053,_0x376c64=await resolveEndpoint(required(_0xcf90a2,_0x2e2cd5(0x1be))),_0x12f5de=explicitDblink(_0xcf90a2);if(_0x12f5de!==undefined&&_0x376c64[_0x2e2cd5(0x1ac)]!==_0x12f5de)throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x1bd));const _0x56c220={'appCode':_0xcf90a2[_0x2e2cd5(0x1cf)],'fromDatasetCode':_0x376c64[_0x2e2cd5(0x1c9)],'fromField':required(_0xcf90a2,_0x2e2cd5(0x1ad)),..._0x12f5de!==undefined?{'fromDblinkId':_0x12f5de}:{}},_0x208f28={'appCode':_0xcf90a2[_0x2e2cd5(0x1cf)],'fromDblinkId':_0x376c64[_0x2e2cd5(0x1ac)],'fromDatasetCode':_0x376c64['datasetCode'],'fromField':_0x56c220[_0x2e2cd5(0x1b2)]},_0x499047=await queryCrossDbRelations(_0x208f28);let _0x10556f=null;if(_0x214620!==_0x2e2cd5(0x1d8)){if(_0x499047['length']>0x1)throw ambiguity(_0x499047);_0x10556f=_0x499047[0x0]??null;if(!_0x10556f)throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x1a8));}if(_0x214620==='delete')return{'operation':_0x214620,'from':_0x376c64,'query':_0x208f28,'body':_0x56c220,'before':_0x10556f};const _0x3b237d=await resolveEndpoint(required(_0xcf90a2,_0x2e2cd5(0x1d1)));if(_0x376c64[_0x2e2cd5(0x1ac)]===_0x3b237d[_0x2e2cd5(0x1ac)])throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x1ba));const _0x27c1da=_0xcf90a2[_0x2e2cd5(0x19d)](_0x2e2cd5(0x190))['trim'](),_0x272162=_0xcf90a2['str'](_0x2e2cd5(0x19c))[_0x2e2cd5(0x1c7)](),_0x4d5688={..._0x56c220,'toDatasetCode':_0x3b237d['datasetCode'],'toField':required(_0xcf90a2,_0x2e2cd5(0x196)),..._0x27c1da?{'refTableLabelName':_0x27c1da}:{},..._0x272162?{'cardinality':_0x272162}:{}};if(_0x499047['some'](_0x4db52f=>_0x4db52f[_0x2e2cd5(0x1da)]!==_0x10556f?.[_0x2e2cd5(0x1da)]&&matchesEndpoint(_0x4db52f,_0x376c64,_0x4d5688[_0x2e2cd5(0x1b2)],_0x3b237d,_0x4d5688[_0x2e2cd5(0x1ae)])))throw CliErrors[_0x2e2cd5(0x187)](_0x2e2cd5(0x18d));return{'operation':_0x214620,'from':_0x376c64,'to':_0x3b237d,'query':_0x208f28,'body':_0x4d5688,'before':_0x10556f,'expectedLabel':_0x27c1da||_0x10556f?.['refTableLabelName']||_0x4d5688[_0x2e2cd5(0x1ae)],'expectedCardinality':_0x272162||_0x10556f?.[_0x2e2cd5(0x19c)]||null};}function mutationData(_0x5689d1,_0xd8ff73,_0xceecb){const _0x3a1077=a72_0x2e8053,{operation:_0x469d18,body:_0x38b56f,before:_0x38304e}=_0x5689d1;return{'operation':_0x469d18,'selector':{'appCode':_0x38b56f[_0x3a1077(0x1cf)],'from':{'datasetCode':_0x38b56f[_0x3a1077(0x1af)],'field':_0x38b56f[_0x3a1077(0x1b2)],'dblinkId':_0x5689d1[_0x3a1077(0x1bb)][_0x3a1077(0x1ac)]}},'before':_0x38304e?projectCrossRelation(_0x38304e):null,'after':_0xceecb,'dryRun':_0xd8ff73,'backend':{'method':_0x3a1077(0x188),'path':CROSS_DB_RELATION_PATHS[_0x469d18]},'warnings':_0x469d18==='update'&&!_0x38b56f['refTableLabelName']?[{'code':_0x3a1077(0x193),'message':_0x3a1077(0x1a3)}]:[]};}function a72_0x21ec(){const _0x50b7a9=['Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','catch','includes','to-label-column','expectedLabel','Would\x20','label_inherited','toDblinkId','\x20verified.','to-column','dbtableConfig','322qEkUoq','fromDblinkId','dataset','toDatasetName','cardinality','str','484335XcmXad','toTableName','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','some','Cross-database\x20relation\x20','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','table','data','40380VacnHr','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','134qlbHoN','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','body','dblinkId','from-column','toField','fromDatasetCode','5jtnLbt','relationType','fromField','isSafeInteger','source','DB_TABLE','defineProperty','map','message','247592icYWZw','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','from','before','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','from-datasetcode','expectedCardinality','tableName','251565MpJhww','2798980ucKnPn','refTableLabelName','Dataset\x20','flagMissing','enum','trim','toLowerCase','datasetCode','fromTableName','dbId','extend','matched','toDatasetCode','appCode','fromDatasetName','to-datasetcode','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','971zUMxzD','8CpLuNU','Invalid\x20--cardinality.','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','\x20a\x20cross-database\x20relation\x20for\x20','create','dbtable','relationId','storageProfile','parse','unconfirmed','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','validation','POST','length','7512890pVpJLm','delete','flag'];a72_0x21ec=function(){return _0x50b7a9;};return a72_0x21ec();}export async function previewCrossRelation(_0x2c2e4b,_0x558a72){const _0x293d0d=a72_0x2e8053,_0x3ea77b=await prepareCrossRelation(_0x2c2e4b,_0x558a72),_0x11c1a3=_0x3ea77b[_0x293d0d(0x1ab)],_0x290629=_0x558a72===_0x293d0d(0x18b)?null:{..._0x3ea77b['before']?{'relationId':_0x3ea77b[_0x293d0d(0x1bc)][_0x293d0d(0x1da)]}:{},'from':{'datasetCode':_0x3ea77b[_0x293d0d(0x1bb)][_0x293d0d(0x1c9)],'dblinkId':_0x3ea77b[_0x293d0d(0x1bb)]['dblinkId'],'table':_0x3ea77b[_0x293d0d(0x1bb)][_0x293d0d(0x1a5)],'field':_0x11c1a3[_0x293d0d(0x1b2)]},'to':{'datasetCode':_0x3ea77b['to']['datasetCode'],'dblinkId':_0x3ea77b['to']['dblinkId'],'table':_0x3ea77b['to'][_0x293d0d(0x1a5)],'field':_0x11c1a3[_0x293d0d(0x1ae)],'labelField':_0x3ea77b[_0x293d0d(0x191)]},'relation':{'cardinality':_0x3ea77b[_0x293d0d(0x1bf)],'relationType':0x2}};return{...mutationData(_0x3ea77b,!![],null),'after':_0x290629,'method':_0x293d0d(0x188),'url':CROSS_DB_RELATION_PATHS[_0x558a72],'body':_0x3ea77b[_0x293d0d(0x1ab)],'description':_0x293d0d(0x192)+_0x558a72+_0x293d0d(0x1d7)+_0x11c1a3['fromDatasetCode']+'.'+_0x11c1a3['fromField']};}export async function executeCrossRelation(_0x1bda77,_0x23e711,_0x50b9f9){const _0x3b907d=a72_0x2e8053,_0x30a54c=await prepareCrossRelation(_0x1bda77,_0x23e711);try{await _0x50b9f9(_0x30a54c['body']);}catch(_0x3641cf){if(_0x3641cf instanceof CliError&&_0x3641cf[_0x3b907d(0x1b8)][_0x3b907d(0x18f)]('multiple\x20cross-database\x20relations\x20matched')){const _0x5d70e7=await queryCrossDbRelations(_0x30a54c['query'])[_0x3b907d(0x18e)](()=>[]);throw ambiguity(_0x5d70e7);}throw _0x3641cf;}let _0x453380=[],_0x111456,_0x1a16d1=![];try{_0x453380=await queryCrossDbRelations(_0x30a54c['query']);if(_0x23e711===_0x3b907d(0x18b))_0x1a16d1=!_0x453380[_0x3b907d(0x1a1)](_0x37e002=>_0x37e002[_0x3b907d(0x1da)]===_0x30a54c['before'][_0x3b907d(0x1da)]);else{const _0x2b7975=_0x30a54c[_0x3b907d(0x1ab)],_0xdc015=_0x453380['filter'](_0x45db2d=>matchesEndpoint(_0x45db2d,_0x30a54c[_0x3b907d(0x1bb)],_0x2b7975[_0x3b907d(0x1b2)],_0x30a54c['to'],_0x2b7975[_0x3b907d(0x1ae)])&&(_0x23e711===_0x3b907d(0x1d8)||_0x45db2d[_0x3b907d(0x1da)]===_0x30a54c[_0x3b907d(0x1bc)][_0x3b907d(0x1da)]));_0x111456=_0xdc015[_0x3b907d(0x189)]===0x1?_0xdc015[0x0]:undefined,_0x1a16d1=!!_0x111456&&_0x111456[_0x3b907d(0x1c3)]===_0x30a54c[_0x3b907d(0x191)]&&_0x111456[_0x3b907d(0x19c)]===_0x30a54c[_0x3b907d(0x1bf)]&&_0x111456[_0x3b907d(0x1b1)]===0x2;}}catch{}const _0x2ae6b6={...mutationData(_0x30a54c,![],_0x111456?projectCrossRelation(_0x111456):null),'verification':{'status':_0x1a16d1?_0x3b907d(0x1cd):_0x3b907d(0x185),'verified':_0x1a16d1}};if(!_0x1a16d1){const _0x4bfdcf=CliErrors['apiError'](_0x3b907d(0x1a2)+_0x23e711+'\x20write\x20was\x20not\x20verified.',_0x3b907d(0x186));Object[_0x3b907d(0x1b6)](_0x4bfdcf,'data',{'value':{..._0x2ae6b6,'candidates':_0x453380[_0x3b907d(0x1b7)](projectCrossRelation)}});throw _0x4bfdcf;}return{'ok':!![],'data':_0x2ae6b6,'message':_0x3b907d(0x1a2)+_0x23e711+_0x3b907d(0x195)};}
|
|
1
|
+
const a72_0x5bffc1=a72_0x5595;(function(_0x19a38d,_0x31693f){const _0xc0890e=a72_0x5595,_0x2daef1=_0x19a38d();while(!![]){try{const _0x23f06a=-parseInt(_0xc0890e(0xb3))/0x1+-parseInt(_0xc0890e(0xb8))/0x2+parseInt(_0xc0890e(0xc2))/0x3*(parseInt(_0xc0890e(0xa5))/0x4)+-parseInt(_0xc0890e(0xc5))/0x5+parseInt(_0xc0890e(0xae))/0x6*(-parseInt(_0xc0890e(0x99))/0x7)+parseInt(_0xc0890e(0xd4))/0x8+parseInt(_0xc0890e(0xb7))/0x9;if(_0x23f06a===_0x31693f)break;else _0x2daef1['push'](_0x2daef1['shift']());}catch(_0x29d85f){_0x2daef1['push'](_0x2daef1['shift']());}}}(a72_0x1fbc,0x9617a));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';function a72_0x5595(_0x15c16b,_0x173dc4){_0x15c16b=_0x15c16b-0x96;const _0x1fbc61=a72_0x1fbc();let _0x5595cb=_0x1fbc61[_0x15c16b];return _0x5595cb;}import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0xc96da0,_0x4cfdb1){const _0x5009a4=a72_0x5595,_0x53088f=_0xc96da0[_0x5009a4(0xcd)](_0x4cfdb1)[_0x5009a4(0x96)]();if(!_0x53088f)throw CliErrors[_0x5009a4(0xc4)](_0x4cfdb1);return _0x53088f;}function explicitDblink(_0x19c656){const _0x33e346=a72_0x5595,_0xf9c506=_0x19c656[_0x33e346(0xb0)](_0x33e346(0x9b));if(_0xf9c506===undefined||_0xf9c506===null)return undefined;const _0x1038e0=Number(_0xf9c506);if(!Number[_0x33e346(0xb1)](_0x1038e0)||_0x1038e0<=0x0)throw CliErrors['validation'](_0x33e346(0xa7));return _0x1038e0;}export function validateCrossRelation(_0x38ce77,_0x2e8f14){const _0x42dd80=a72_0x5595,_0x478482=explicitDblink(_0x38ce77);if(_0x2e8f14==='list'){if(!_0x38ce77['str'](_0x42dd80(0xad))['trim']()&&_0x478482===undefined)throw CliErrors['validation'](_0x42dd80(0xbe));return;}required(_0x38ce77,'from-datasetcode'),required(_0x38ce77,'from-column');if(_0x2e8f14!==_0x42dd80(0xa3)){required(_0x38ce77,_0x42dd80(0xc1)),required(_0x38ce77,_0x42dd80(0x97));const _0x3c4d85=_0x38ce77[_0x42dd80(0xcd)]('cardinality')['trim']();if(_0x3c4d85&&!CROSS_RELATION_CARDINALITY_FLAG['enum'][_0x42dd80(0xbf)](_0x3c4d85))throw CliErrors[_0x42dd80(0xa2)](_0x42dd80(0xea));}}function a72_0x1fbc(){const _0x393749=['label_inherited','\x20write\x20was\x20not\x20verified.','validation','delete','datasetCode','4472828JQSNVi','update','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','table','Would\x20','length','map','\x20verified.','from-datasetcode','5348298GHWjrP','string','flag','isSafeInteger','dataset','1068320IJmtrl','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','relationType','9734409vDUZHK','1086rplvaF','toField','filter','data','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','extend','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','includes','toTableName','to-datasetcode','3sSfYWS','some','flagMissing','2784475mdktpc','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','DB_TABLE','expectedLabel','\x20a\x20cross-database\x20relation\x20for\x20','query','unconfirmed','fromDblinkId','str','to-label-column','fromTableName','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','matched','appCode','parse','7456888tJiqvL','toDatasetCode','dbId','create','Dataset\x20','dblinkId','expectedCardinality','from','toLowerCase','cardinality','refTableLabelName','tableName','fromField','from-column','dbtable','\x20has\x20invalid\x20storage\x20configuration.','catch','apiError','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','source','storageProfile','fromDatasetName','Invalid\x20--cardinality.','toDblinkId','POST','relationId','trim','to-column','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','7HmRzwJ','fromDatasetCode','from-dblink-id','before','sourceType','body','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.'];a72_0x1fbc=function(){return _0x393749;};return a72_0x1fbc();}async function resolveEndpoint(_0x2bee35){const _0x38b2b0=a72_0x5595,_0x11d511=await getDatasetDetail(_0x2bee35),_0x1f352d=_0x11d511?.[_0x38b2b0(0xb2)]??{};if((_0x11d511?.[_0x38b2b0(0xe7)]??_0x1f352d[_0x38b2b0(0x9d)])!==_0x38b2b0(0xc7))throw CliErrors[_0x38b2b0(0xa2)](_0x38b2b0(0xd8)+_0x2bee35+_0x38b2b0(0xb4));const _0x13af82=_0x11d511['dbtableConfig']??_0x11d511[_0x38b2b0(0xe2)]??{};let _0x289e66=_0x11d511['extend']??_0x1f352d[_0x38b2b0(0xbd)]??{};if(typeof _0x289e66===_0x38b2b0(0xaf))try{_0x289e66=_0x289e66[_0x38b2b0(0x96)]()?JSON[_0x38b2b0(0xd3)](_0x289e66):{};}catch{throw CliErrors[_0x38b2b0(0xa2)]('Dataset\x20'+_0x2bee35+_0x38b2b0(0xe3));}const _0x31f170=Number(_0x289e66?.['storageProfile']?.[_0x38b2b0(0xd6)]??_0x11d511['storageProfile']?.[_0x38b2b0(0xd6)]??_0x1f352d[_0x38b2b0(0xe8)]?.[_0x38b2b0(0xd6)]??_0x13af82[_0x38b2b0(0xd6)]??_0x1f352d[_0x38b2b0(0xd6)]??_0x11d511[_0x38b2b0(0xd6)]),_0xaaedfe=String(_0x11d511[_0x38b2b0(0xdf)]??_0x1f352d[_0x38b2b0(0xdf)]??_0x13af82[_0x38b2b0(0xdf)]??'')[_0x38b2b0(0x96)]();if(!Number[_0x38b2b0(0xb1)](_0x31f170)||_0x31f170<=0x0||!_0xaaedfe)throw CliErrors[_0x38b2b0(0xa2)](_0x38b2b0(0xd8)+_0x2bee35+_0x38b2b0(0xc6));return{'datasetCode':_0x2bee35,'dblinkId':_0x31f170,'table':_0xaaedfe};}export async function resolveCrossRelationQuery(_0x1125e8){const _0x24f0bb=a72_0x5595,_0x441642=_0x1125e8[_0x24f0bb(0xcd)](_0x24f0bb(0xad))['trim'](),_0x253ae1=explicitDblink(_0x1125e8),_0x83dcaa=_0x441642?await resolveEndpoint(_0x441642):undefined;if(_0x83dcaa&&_0x253ae1!==undefined&&_0x83dcaa[_0x24f0bb(0xd9)]!==_0x253ae1)throw CliErrors[_0x24f0bb(0xa2)](_0x24f0bb(0x9f));const _0x5b7f7e=_0x83dcaa?.[_0x24f0bb(0xd9)]??_0x253ae1;if(_0x5b7f7e===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x1125e8['appCode'],'fromDblinkId':_0x5b7f7e,..._0x441642?{'fromDatasetCode':_0x441642}:{},..._0x1125e8[_0x24f0bb(0xcd)]('from-column')[_0x24f0bb(0x96)]()?{'fromField':_0x1125e8[_0x24f0bb(0xcd)](_0x24f0bb(0xe1))['trim']()}:{}};}export function projectCrossRelation(_0x1bf011){const _0x55651b=a72_0x5595;return{'relationId':_0x1bf011[_0x55651b(0xed)],'from':{'source':_0x55651b(0xc7),'datasetCode':_0x1bf011[_0x55651b(0x9a)],'datasetName':_0x1bf011[_0x55651b(0xe9)],'dblinkId':_0x1bf011[_0x55651b(0xcc)],'table':_0x1bf011['fromTableName'],'field':_0x1bf011[_0x55651b(0xe0)]},'to':{'source':'DB_TABLE','datasetCode':_0x1bf011[_0x55651b(0xd5)],'datasetName':_0x1bf011['toDatasetName'],'dblinkId':_0x1bf011[_0x55651b(0xeb)],'table':_0x1bf011[_0x55651b(0xc0)],'field':_0x1bf011[_0x55651b(0xb9)],'labelField':_0x1bf011[_0x55651b(0xde)]},'relation':{'cardinality':_0x1bf011[_0x55651b(0xdd)],'relationType':_0x1bf011[_0x55651b(0xb6)]}};}function ambiguity(_0x3e311b){const _0x5dc40e=a72_0x5595,_0x4e9344=CliErrors['validation'](_0x5dc40e(0xe6),_0x5dc40e(0xd0));return Object['defineProperty'](_0x4e9344,_0x5dc40e(0xbb),{'value':{'candidates':_0x3e311b[_0x5dc40e(0xab)](projectCrossRelation)}}),_0x4e9344;}const sameName=(_0x2b83ec,_0x157ed5)=>_0x2b83ec[a72_0x5bffc1(0xdc)]()===_0x157ed5[a72_0x5bffc1(0xdc)]();function matchesEndpoint(_0x298c3e,_0x26fc8c,_0x58f6a2,_0x510838,_0x261086){const _0x383386=a72_0x5bffc1;return _0x298c3e[_0x383386(0xcc)]===_0x26fc8c[_0x383386(0xd9)]&&sameName(_0x298c3e[_0x383386(0xcf)],_0x26fc8c[_0x383386(0xa8)])&&sameName(_0x298c3e[_0x383386(0xe0)],_0x58f6a2)&&_0x298c3e[_0x383386(0xeb)]===_0x510838['dblinkId']&&sameName(_0x298c3e['toTableName'],_0x510838['table'])&&sameName(_0x298c3e['toField'],_0x261086);}export async function prepareCrossRelation(_0x210eb1,_0x940c50){const _0x5e4208=a72_0x5bffc1,_0x42a19f=await resolveEndpoint(required(_0x210eb1,'from-datasetcode')),_0x4e1381=explicitDblink(_0x210eb1);if(_0x4e1381!==undefined&&_0x42a19f[_0x5e4208(0xd9)]!==_0x4e1381)throw CliErrors[_0x5e4208(0xa2)](_0x5e4208(0x9f));const _0x13793d={'appCode':_0x210eb1[_0x5e4208(0xd2)],'fromDatasetCode':_0x42a19f[_0x5e4208(0xa4)],'fromField':required(_0x210eb1,'from-column'),..._0x4e1381!==undefined?{'fromDblinkId':_0x4e1381}:{}},_0x13d889={'appCode':_0x210eb1['appCode'],'fromDblinkId':_0x42a19f['dblinkId'],'fromDatasetCode':_0x42a19f['datasetCode'],'fromField':_0x13793d[_0x5e4208(0xe0)]},_0x4429d5=await queryCrossDbRelations(_0x13d889);let _0x1b9c49=null;if(_0x940c50!==_0x5e4208(0xd7)){if(_0x4429d5[_0x5e4208(0xaa)]>0x1)throw ambiguity(_0x4429d5);_0x1b9c49=_0x4429d5[0x0]??null;if(!_0x1b9c49)throw CliErrors['validation'](_0x5e4208(0x98));}if(_0x940c50===_0x5e4208(0xa3))return{'operation':_0x940c50,'from':_0x42a19f,'query':_0x13d889,'body':_0x13793d,'before':_0x1b9c49};const _0x266a7d=await resolveEndpoint(required(_0x210eb1,_0x5e4208(0xc1)));if(_0x42a19f['dblinkId']===_0x266a7d[_0x5e4208(0xd9)])throw CliErrors[_0x5e4208(0xa2)](_0x5e4208(0xbc));const _0x60b7e3=_0x210eb1[_0x5e4208(0xcd)](_0x5e4208(0xce))[_0x5e4208(0x96)](),_0x313646=_0x210eb1[_0x5e4208(0xcd)](_0x5e4208(0xdd))[_0x5e4208(0x96)](),_0x354c74={..._0x13793d,'toDatasetCode':_0x266a7d[_0x5e4208(0xa4)],'toField':required(_0x210eb1,'to-column'),..._0x60b7e3?{'refTableLabelName':_0x60b7e3}:{},..._0x313646?{'cardinality':_0x313646}:{}};if(_0x4429d5[_0x5e4208(0xc3)](_0x55c8e6=>_0x55c8e6['relationId']!==_0x1b9c49?.[_0x5e4208(0xed)]&&matchesEndpoint(_0x55c8e6,_0x42a19f,_0x354c74[_0x5e4208(0xe0)],_0x266a7d,_0x354c74[_0x5e4208(0xb9)])))throw CliErrors[_0x5e4208(0xa2)]('Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.');return{'operation':_0x940c50,'from':_0x42a19f,'to':_0x266a7d,'query':_0x13d889,'body':_0x354c74,'before':_0x1b9c49,'expectedLabel':_0x60b7e3||_0x1b9c49?.[_0x5e4208(0xde)]||_0x354c74[_0x5e4208(0xb9)],'expectedCardinality':_0x313646||_0x1b9c49?.[_0x5e4208(0xdd)]||null};}function mutationData(_0x2df385,_0x4e0277,_0x22940f){const _0x251fb0=a72_0x5bffc1,{operation:_0x1f58f2,body:_0x3042aa,before:_0x4e8c59}=_0x2df385;return{'operation':_0x1f58f2,'selector':{'appCode':_0x3042aa[_0x251fb0(0xd2)],'from':{'datasetCode':_0x3042aa[_0x251fb0(0x9a)],'field':_0x3042aa[_0x251fb0(0xe0)],'dblinkId':_0x2df385[_0x251fb0(0xdb)][_0x251fb0(0xd9)]}},'before':_0x4e8c59?projectCrossRelation(_0x4e8c59):null,'after':_0x22940f,'dryRun':_0x4e0277,'backend':{'method':_0x251fb0(0xec),'path':CROSS_DB_RELATION_PATHS[_0x1f58f2]},'warnings':_0x1f58f2===_0x251fb0(0xa6)&&!_0x3042aa['refTableLabelName']?[{'code':_0x251fb0(0xa0),'message':_0x251fb0(0xb5)}]:[]};}export async function previewCrossRelation(_0x35573a,_0x44a1f8){const _0x5c1e00=a72_0x5bffc1,_0x5e43a2=await prepareCrossRelation(_0x35573a,_0x44a1f8),_0x7ee611=_0x5e43a2[_0x5c1e00(0x9e)],_0x38b67a=_0x44a1f8===_0x5c1e00(0xa3)?null:{..._0x5e43a2[_0x5c1e00(0x9c)]?{'relationId':_0x5e43a2[_0x5c1e00(0x9c)][_0x5c1e00(0xed)]}:{},'from':{'datasetCode':_0x5e43a2[_0x5c1e00(0xdb)][_0x5c1e00(0xa4)],'dblinkId':_0x5e43a2[_0x5c1e00(0xdb)]['dblinkId'],'table':_0x5e43a2[_0x5c1e00(0xdb)][_0x5c1e00(0xa8)],'field':_0x7ee611[_0x5c1e00(0xe0)]},'to':{'datasetCode':_0x5e43a2['to'][_0x5c1e00(0xa4)],'dblinkId':_0x5e43a2['to'][_0x5c1e00(0xd9)],'table':_0x5e43a2['to']['table'],'field':_0x7ee611['toField'],'labelField':_0x5e43a2[_0x5c1e00(0xc8)]},'relation':{'cardinality':_0x5e43a2[_0x5c1e00(0xda)],'relationType':0x2}};return{...mutationData(_0x5e43a2,!![],null),'after':_0x38b67a,'method':_0x5c1e00(0xec),'url':CROSS_DB_RELATION_PATHS[_0x44a1f8],'body':_0x5e43a2['body'],'description':_0x5c1e00(0xa9)+_0x44a1f8+_0x5c1e00(0xc9)+_0x7ee611['fromDatasetCode']+'.'+_0x7ee611['fromField']};}export async function executeCrossRelation(_0x64bd15,_0x10a4e2,_0x395903){const _0xf76088=a72_0x5bffc1,_0x22bdb5=await prepareCrossRelation(_0x64bd15,_0x10a4e2);try{await _0x395903(_0x22bdb5['body']);}catch(_0x4ec865){if(_0x4ec865 instanceof CliError&&_0x4ec865['message']['includes']('multiple\x20cross-database\x20relations\x20matched')){const _0x5aa51d=await queryCrossDbRelations(_0x22bdb5[_0xf76088(0xca)])[_0xf76088(0xe4)](()=>[]);throw ambiguity(_0x5aa51d);}throw _0x4ec865;}let _0x3d01fb=[],_0x5ed34c,_0x1f9e3d=![];try{_0x3d01fb=await queryCrossDbRelations(_0x22bdb5[_0xf76088(0xca)]);if(_0x10a4e2===_0xf76088(0xa3))_0x1f9e3d=!_0x3d01fb[_0xf76088(0xc3)](_0x50cd51=>_0x50cd51['relationId']===_0x22bdb5['before']['relationId']);else{const _0xb752ab=_0x22bdb5[_0xf76088(0x9e)],_0x24f46d=_0x3d01fb[_0xf76088(0xba)](_0xad24ab=>matchesEndpoint(_0xad24ab,_0x22bdb5[_0xf76088(0xdb)],_0xb752ab['fromField'],_0x22bdb5['to'],_0xb752ab['toField'])&&(_0x10a4e2===_0xf76088(0xd7)||_0xad24ab[_0xf76088(0xed)]===_0x22bdb5[_0xf76088(0x9c)][_0xf76088(0xed)]));_0x5ed34c=_0x24f46d[_0xf76088(0xaa)]===0x1?_0x24f46d[0x0]:undefined,_0x1f9e3d=!!_0x5ed34c&&_0x5ed34c['refTableLabelName']===_0x22bdb5[_0xf76088(0xc8)]&&_0x5ed34c[_0xf76088(0xdd)]===_0x22bdb5['expectedCardinality']&&_0x5ed34c['relationType']===0x2;}}catch{}const _0x37f1fc={...mutationData(_0x22bdb5,![],_0x5ed34c?projectCrossRelation(_0x5ed34c):null),'verification':{'status':_0x1f9e3d?_0xf76088(0xd1):_0xf76088(0xcb),'verified':_0x1f9e3d}};if(!_0x1f9e3d){const _0x545154=CliErrors[_0xf76088(0xe5)]('Cross-database\x20relation\x20'+_0x10a4e2+_0xf76088(0xa1),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object['defineProperty'](_0x545154,_0xf76088(0xbb),{'value':{..._0x37f1fc,'candidates':_0x3d01fb[_0xf76088(0xab)](projectCrossRelation)}});throw _0x545154;}return{'ok':!![],'data':_0x37f1fc,'message':'Cross-database\x20relation\x20'+_0x10a4e2+_0xf76088(0xac)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x1fff0d=a73_0x309b;(function(_0x216b9d,_0x3f0ac6){const _0x27b796=a73_0x309b,_0x5b4b6c=_0x216b9d();while(!![]){try{const _0x346a7f=-parseInt(_0x27b796(0x1b0))/0x1+parseInt(_0x27b796(0x1a5))/0x2*(parseInt(_0x27b796(0x1b1))/0x3)+parseInt(_0x27b796(0x1a4))/0x4+-parseInt(_0x27b796(0x1a6))/0x5+parseInt(_0x27b796(0x1a9))/0x6*(-parseInt(_0x27b796(0x1ab))/0x7)+-parseInt(_0x27b796(0x1b2))/0x8+-parseInt(_0x27b796(0x1ad))/0x9*(-parseInt(_0x27b796(0x1ae))/0xa);if(_0x346a7f===_0x3f0ac6)break;else _0x5b4b6c['push'](_0x5b4b6c['shift']());}catch(_0xb3d2a9){_0x5b4b6c['push'](_0x5b4b6c['shift']());}}}(a73_0x2087,0x21ddc));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x309b(_0x2bedec,_0x5ab7f0){_0x2bedec=_0x2bedec-0x1a4;const _0x2087de=a73_0x2087();let _0x309b98=_0x2087de[_0x2bedec];return _0x309b98;}function a73_0x2087(){const _0x2207f5=['30250auzlTr','cross-relation-update','write','6zTyBOd','dataset','1699061tenuaB','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','18lTTfwF','1724980DwUUAE','update','240687kFPTSA','5388yxaQbf','1071152AphITe','949896KjmRMA','200ZDEZgI'];a73_0x2087=function(){return _0x2207f5;};return a73_0x2087();}import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationUpdate={'service':a73_0x1fff0d(0x1aa),'command':a73_0x1fff0d(0x1a7),'description':a73_0x1fff0d(0x1ac),'risk':a73_0x1fff0d(0x1a8),'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 _0x36e929=>validateCrossRelation(_0x36e929,a73_0x1fff0d(0x1af)),'dryRun':_0x9b66be=>previewCrossRelation(_0x9b66be,a73_0x1fff0d(0x1af)),'execute':_0x564bfb=>executeCrossRelation(_0x564bfb,a73_0x1fff0d(0x1af),updateCrossDbRelation)};
|