@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10-beta.5
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 +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x504687=a59_0x314f;(function(_0x17bc22,_0xd505b7){const _0x42727d=a59_0x314f,_0x33513a=_0x17bc22();while(!![]){try{const _0x24db4c=parseInt(_0x42727d(0x157))/0x1+-parseInt(_0x42727d(0x150))/0x2*(parseInt(_0x42727d(0x14e))/0x3)+parseInt(_0x42727d(0x14c))/0x4+-parseInt(_0x42727d(0x148))/0x5+parseInt(_0x42727d(0x156))/0x6+parseInt(_0x42727d(0x154))/0x7+-parseInt(_0x42727d(0x152))/0x8*(parseInt(_0x42727d(0x14f))/0x9);if(_0x24db4c===_0xd505b7)break;else _0x33513a['push'](_0x33513a['shift']());}catch(_0x5c7da6){_0x33513a['push'](_0x33513a['shift']());}}}(a59_0x560e,0xb8606));function a59_0x314f(_0x34ec91,_0x2fd925){_0x34ec91=_0x34ec91-0x147;const _0x560eee=a59_0x560e();let _0x314fe0=_0x560eee[_0x34ec91];return _0x314fe0;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x463d65){const _0x49e398=a59_0x314f,_0x11e24a=_0x463d65[_0x49e398(0x151)](_0x49e398(0x158));if(!_0x11e24a)throw CliErrors[_0x49e398(0x147)](_0x49e398(0x14b),_0x49e398(0x149)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0xc21c0a=readConfig(),_0x480c5f=_0x11e24a==='app'?_0x49e398(0x155):_0x11e24a,_0x4dc63c=_0xc21c0a[_0x480c5f];if(_0x4dc63c===undefined)throw CliErrors[_0x49e398(0x147)](_0x49e398(0x14d)+_0x11e24a);return{'ok':!![],'data':typeof _0x4dc63c===_0x49e398(0x153)?_0x4dc63c:{[_0x480c5f]:_0x4dc63c},'message':typeof _0x4dc63c===_0x49e398(0x153)?undefined:String(_0x4dc63c)};}export const configGetDefinition={'service':a59_0x504687(0x14a),'command':a59_0x504687(0x15a),'description':a59_0x504687(0x159),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x504687(0x158),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a59_0x560e(){const _0x17d5ed=['1236405qioOBY','key','Get\x20a\x20config\x20value\x20by\x20key','get','validation','2533560aQbRbM','Usage:\x20','config','Missing\x20key.','5623788PMnzrg','Key\x20not\x20found:\x20','51cbVxxc','36414CCITAA','67760BFvARb','str','3608QgHViJ','object','7005719IGVAiX','appcode','116730EqPRcQ'];a59_0x560e=function(){return _0x17d5ed;};return a59_0x560e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0x1801(_0x9d733b,_0x2b7e8c){_0x9d733b=_0x9d733b-0xed;const _0x52542d=a60_0x5254();let _0x180196=_0x52542d[_0x9d733b];return _0x180196;}function a60_0x5254(){const _0x40fd2d=['1141MDqEJa','24776ZcSZka','1012710doRArg','2939778oTOHxZ','2hDfMhO','22cUODrq','1128XQIiTV','180527bCXxUx','5892680ZrTiUg','1703824GDCqoc','16485VFcsPq'];a60_0x5254=function(){return _0x40fd2d;};return a60_0x5254();}(function(_0x3b25a5,_0x293ae5){const _0x24e7f8=a60_0x1801,_0x364a61=_0x3b25a5();while(!![]){try{const _0x21efe8=-parseInt(_0x24e7f8(0xee))/0x1*(parseInt(_0x24e7f8(0xf6))/0x2)+-parseInt(_0x24e7f8(0xf4))/0x3+-parseInt(_0x24e7f8(0xf0))/0x4+parseInt(_0x24e7f8(0xf1))/0x5*(-parseInt(_0x24e7f8(0xed))/0x6)+parseInt(_0x24e7f8(0xf2))/0x7*(parseInt(_0x24e7f8(0xf3))/0x8)+parseInt(_0x24e7f8(0xf5))/0x9+parseInt(_0x24e7f8(0xef))/0xa*(parseInt(_0x24e7f8(0xf7))/0xb);if(_0x21efe8===_0x293ae5)break;else _0x364a61['push'](_0x364a61['shift']());}catch(_0x23f9da){_0x364a61['push'](_0x364a61['shift']());}}}(a60_0x5254,0x6ce94));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0xfbd2b9=a61_0x1187;(function(_0x53c625,_0x47a33f){const _0x5eb54a=a61_0x1187,_0x110347=_0x53c625();while(!![]){try{const _0x13f2d2=-parseInt(_0x5eb54a(0xf8))/0x1+-parseInt(_0x5eb54a(0xf0))/0x2+parseInt(_0x5eb54a(0x109))/0x3*(parseInt(_0x5eb54a(0xef))/0x4)+-parseInt(_0x5eb54a(0x123))/0x5+parseInt(_0x5eb54a(0x113))/0x6+-parseInt(_0x5eb54a(0x11e))/0x7*(-parseInt(_0x5eb54a(0x11d))/0x8)+-parseInt(_0x5eb54a(0x119))/0x9;if(_0x13f2d2===_0x47a33f)break;else _0x110347['push'](_0x110347['shift']());}catch(_0x2fa82f){_0x110347['push'](_0x110347['shift']());}}}(a61_0x20e9,0x83670));function a61_0x1187(_0x2aaa0b,_0x24e6cd){_0x2aaa0b=_0x2aaa0b-0xed;const _0x20e9d2=a61_0x20e9();let _0x1187af=_0x20e9d2[_0x2aaa0b];return _0x1187af;}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';function a61_0x20e9(){const _0x5c0bd9=['name','domain-config','assign','3087750nKznSK','cancelled','Custom\x20Runtime\x20HTTPS\x20origin','certificate-domain','bool','Custom\x20certificate\x20service\x20HTTPS\x20origin','project','3156RQyVcb','547822OSctuY','kb-service-domain','localDomain','Custom\x20platform\x20API\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','validation','cdn','write','851259ARDPXR','routing','map','certificateDomain','domains','manifestDomains','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','enterprise-v1','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','Custom\x20KB\x20Service\x20HTTPS\x20origin','user-domain','config','mode','api-domain','keys','\x22\x20is\x20not\x20currently\x20available.','string','2802WcGdDo','kb-domain','Official\x20Lovrabet\x20region:\x20','Available\x20regions:\x20','official','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','join','Custom\x20User\x20HTTPS\x20origin','5090484ZZicQg','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','local-domain','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','Custom\x20knowledge-base\x20HTTPS\x20origin','2243439bJWEfE','region','global','label','1000IScUyJ','52913jVmKON','length'];a61_0x20e9=function(){return _0x5c0bd9;};return a61_0x20e9();}import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0xfbd2b9(0x11a),'type':'string','description':a61_0xfbd2b9(0x10b)+ENABLED_LOVRABET_REGION_VALUES[a61_0xfbd2b9(0x111)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0xfbd2b9(0x121),'type':'string','description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0xfbd2b9(0x102),'type':'string','description':a61_0xfbd2b9(0x112)},{'name':a61_0xfbd2b9(0x105),'type':a61_0xfbd2b9(0x108),'description':a61_0xfbd2b9(0xf3)},{'name':'runtime-domain','type':a61_0xfbd2b9(0x108),'description':a61_0xfbd2b9(0x125)},{'name':'skill-domain','type':'string','description':a61_0xfbd2b9(0xf4)},{'name':a61_0xfbd2b9(0x10a),'type':a61_0xfbd2b9(0x108),'description':a61_0xfbd2b9(0x118)},{'name':a61_0xfbd2b9(0xf1),'type':a61_0xfbd2b9(0x108),'description':a61_0xfbd2b9(0x101)},{'name':'app-domain','type':'string','description':a61_0xfbd2b9(0x117)},{'name':a61_0xfbd2b9(0x115),'type':'string','description':a61_0xfbd2b9(0x116)},{'name':a61_0xfbd2b9(0x126),'type':'string','description':a61_0xfbd2b9(0xed)}];async function resolveRegion(_0x5b194e){const _0x1bc01d=a61_0xfbd2b9,_0x4a35f7=_0x5b194e['str'](_0x1bc01d(0x11a));if(_0x4a35f7){if(!isEnabledLovrabetRegion(_0x4a35f7))throw CliErrors['validation']('Region\x20\x22'+_0x4a35f7+_0x1bc01d(0x107),_0x1bc01d(0x10c)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'));return _0x4a35f7;}if(_0x5b194e['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x1bc01d(0xfa)](_0x3624df=>({'name':getOfficialRoutingProfile(_0x3624df)[_0x1bc01d(0x11c)]+'\x20('+_0x3624df+')','value':_0x3624df}))});}catch(_0x195cb1){if(_0x195cb1?.[_0x1bc01d(0x120)]==='ExitPromptError')throw CliErrors[_0x1bc01d(0x124)]();throw _0x195cb1;}}export async function executeConfigInit(_0x4069f8){const _0x539d5d=a61_0xfbd2b9,_0x4ccb3c=resolveDomainConfigInput(_0x4069f8),_0x2cf799=_0x4ccb3c[_0x539d5d(0xfc)],_0xa3b2f1=Object[_0x539d5d(0x106)](_0x2cf799)[_0x539d5d(0x11f)]>0x0;if(_0xa3b2f1&&_0x4069f8['str'](_0x539d5d(0x11a)))throw CliErrors['validation'](_0x539d5d(0xfe));if(!!_0x2cf799[_0x539d5d(0xf2)]!==!!_0x2cf799[_0x539d5d(0xfb)])throw CliErrors[_0x539d5d(0xf5)](_0x539d5d(0x110));const _0x4114b0=_0x4069f8[_0x539d5d(0x127)](_0x539d5d(0x11b))?_0x539d5d(0x11b):_0x539d5d(0xee),_0x5719bf=readScopedConfig(_0x4114b0);for(const _0x5f1e46 of DOMAIN_CONFIG_FIELDS)delete _0x5719bf[_0x5f1e46];for(const _0x614894 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x5719bf[_0x614894];delete _0x5719bf['routing'];let _0x4e9a6f=null;if(_0xa3b2f1)delete _0x5719bf[_0x539d5d(0x11a)],_0x4ccb3c[_0x539d5d(0x104)]==='enterprise-v1'?_0x5719bf[_0x539d5d(0xf9)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x4ccb3c[_0x539d5d(0xfd)],'cdn':_0x4ccb3c[_0x539d5d(0xf6)]}:Object[_0x539d5d(0x122)](_0x5719bf,_0x2cf799);else{_0x4e9a6f=await resolveRegion(_0x4069f8);if(_0x4e9a6f===DEFAULT_LOVRABET_REGION)delete _0x5719bf[_0x539d5d(0x11a)];else _0x5719bf[_0x539d5d(0x11a)]=_0x4e9a6f;}return writeScopedConfig(_0x5719bf,_0x4114b0),{'ok':!![],'message':_0xa3b2f1?_0x539d5d(0x10f)+Object[_0x539d5d(0x106)](_0x4ccb3c[_0x539d5d(0x104)]===_0x539d5d(0xff)?_0x4ccb3c[_0x539d5d(0xfd)]:_0x2cf799)[_0x539d5d(0x111)](',\x20')+'.':_0x539d5d(0x114)+_0x4e9a6f+'.','data':{'mode':_0xa3b2f1?'independent':_0x539d5d(0x10d),'protocol':_0x4ccb3c[_0x539d5d(0x104)]===_0x539d5d(0xff)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4e9a6f,'domains':_0x2cf799,'cdn':_0x4ccb3c['mode']===_0x539d5d(0xff)?_0x4ccb3c[_0x539d5d(0xf6)]:undefined}};}export const configInitDefinition={'service':a61_0xfbd2b9(0x103),'command':'init','description':a61_0xfbd2b9(0x10e),'risk':a61_0xfbd2b9(0xf7),'confirmationDescription':a61_0xfbd2b9(0x100),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x2803a8=a62_0x5a2a;(function(_0x370a33,_0x224ae2){const _0x2da39f=a62_0x5a2a,_0x3ec996=_0x370a33();while(!![]){try{const _0x2efc04=-parseInt(_0x2da39f(0xd7))/0x1+parseInt(_0x2da39f(0xd8))/0x2+-parseInt(_0x2da39f(0xdb))/0x3*(parseInt(_0x2da39f(0xdd))/0x4)+parseInt(_0x2da39f(0xd4))/0x5*(parseInt(_0x2da39f(0xe0))/0x6)+parseInt(_0x2da39f(0xd1))/0x7+parseInt(_0x2da39f(0xd3))/0x8*(-parseInt(_0x2da39f(0xd9))/0x9)+parseInt(_0x2da39f(0xdf))/0xa;if(_0x2efc04===_0x224ae2)break;else _0x3ec996['push'](_0x3ec996['shift']());}catch(_0x25e43e){_0x3ec996['push'](_0x3ec996['shift']());}}}(a62_0x334e,0xc2318));function a62_0x334e(){const _0x2c445f=['1511025odQcRu','1709102PpLNyB','49464XcPNBL','bool','2349117uDxMvA','read','8gYdnIL','List\x20all\x20config\x20values','32753070RIvUCz','115662yMiOQF','global','5137944NLniyW','boolean','1920WAHkUm','85GrfVOJ','config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)'];a62_0x334e=function(){return _0x2c445f;};return a62_0x334e();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x451cd4){const _0x36123f=a62_0x5a2a,_0x2687a2=_0x451cd4[_0x36123f(0xda)]('global')?readScopedConfig(_0x36123f(0xe1)):readConfig();return{'ok':!![],'data':_0x2687a2};}function a62_0x5a2a(_0x3ac670,_0x483bb3){_0x3ac670=_0x3ac670-0xd1;const _0x334ef6=a62_0x334e();let _0x5a2ac5=_0x334ef6[_0x3ac670];return _0x5a2ac5;}export const configListDefinition={'service':a62_0x2803a8(0xd5),'command':'list','description':a62_0x2803a8(0xde),'risk':a62_0x2803a8(0xdc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x2803a8(0xe1),'type':a62_0x2803a8(0xd2),'description':a62_0x2803a8(0xd6),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a63_0x421d(_0xc33b65,_0x406ffd){_0xc33b65=_0xc33b65-0x174;const _0x122b7c=a63_0x122b();let _0x421dd2=_0x122b7c[_0xc33b65];return _0x421dd2;}const a63_0x4646fc=a63_0x421d;(function(_0x3a255f,_0xff06dc){const _0x154aaa=a63_0x421d,_0x452398=_0x3a255f();while(!![]){try{const _0x39e7e7=-parseInt(_0x154aaa(0x18f))/0x1+-parseInt(_0x154aaa(0x19c))/0x2+-parseInt(_0x154aaa(0x17a))/0x3*(-parseInt(_0x154aaa(0x186))/0x4)+-parseInt(_0x154aaa(0x19b))/0x5+-parseInt(_0x154aaa(0x18b))/0x6+parseInt(_0x154aaa(0x182))/0x7+parseInt(_0x154aaa(0x198))/0x8;if(_0x39e7e7===_0xff06dc)break;else _0x452398['push'](_0x452398['shift']());}catch(_0x29eeb4){_0x452398['push'](_0x452398['shift']());}}}(a63_0x122b,0xd1dd0));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a63_0x122b(){const _0x3018a6=['\x22\x20is\x20not\x20settable.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','1070795ZnqcfI','1326666uinevC','bool','join','Usage:\x20','write','\x20appcode\x20set\x20to:\x20','\x20workspace\x20add\x20<name>\x20--appcode\x20','\x20set\x20to:\x20','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','object','includes','boolean','string','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Missing\x20key.','Project','87Npoqlf','key','`,\x20`','Invalid\x20value\x20for\x20\x22','apps','appcode','app','Missing\x20value.','2946146LSXeVy','locale','env','\x22.\x20Allowed:\x20','115424wHVUUa','validation','Settable\x20top-level\x20keys:\x20','Top-level\x20key\x20\x22','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','6471282kvkcHD','Global','config','value','928416zdFYgQ','set','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','riskLevel','str','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','length','keys','19890824jjXMOJ'];a63_0x122b=function(){return _0x3018a6;};return a63_0x122b();}import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x117c7d){const _0x5a2452=a63_0x421d,_0x12c37d=_0x117c7d[_0x5a2452(0x194)](_0x5a2452(0x17b)),_0x1a844b=_0x117c7d[_0x5a2452(0x194)](_0x5a2452(0x18e));if(!_0x12c37d)throw CliErrors['validation'](_0x5a2452(0x178),_0x5a2452(0x19f)+CLI_BIN_NAME+_0x5a2452(0x19a));if(_0x1a844b===undefined||_0x1a844b==='')throw CliErrors[_0x5a2452(0x187)](_0x5a2452(0x181),_0x5a2452(0x19f)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');let _0x29bd1a=_0x12c37d,_0x2ce43d=_0x1a844b;if(_0x1a844b[_0x5a2452(0x196)]>0x1f4)throw CliErrors[_0x5a2452(0x187)](_0x5a2452(0x191));if(_0x12c37d===_0x5a2452(0x193))throw CliErrors[_0x5a2452(0x187)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x12c37d))throw CliErrors[_0x5a2452(0x187)](_0x5a2452(0x189)+_0x12c37d+_0x5a2452(0x199),_0x5a2452(0x188)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x12c37d]&&!CONFIG_ENUM_VALUES[_0x12c37d][_0x5a2452(0x174)](_0x1a844b))throw CliErrors[_0x5a2452(0x187)](_0x5a2452(0x17d)+_0x12c37d+_0x5a2452(0x185)+CONFIG_ENUM_VALUES[_0x12c37d][_0x5a2452(0x19e)](',\x20'));if(_0x12c37d===_0x5a2452(0x183)&&!normalizeLocale(_0x1a844b))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x5a2452(0x18a));DOMAIN_CONFIG_FIELDS[_0x5a2452(0x174)](_0x12c37d)&&(_0x2ce43d=normalizeDomainOrigin(_0x12c37d,_0x1a844b));const _0x29a7f8={'global':_0x117c7d[_0x5a2452(0x19d)]('global')},_0x1bc9bf=resolveWriteScope(_0x29a7f8),_0x39d4cc=readScopedConfig(_0x1bc9bf);_0x12c37d===_0x5a2452(0x180)&&(_0x29bd1a=_0x5a2452(0x17f),delete _0x39d4cc[_0x5a2452(0x180)]);_0x12c37d===_0x5a2452(0x183)&&(_0x2ce43d=normalizeLocale(_0x1a844b));if(_0x12c37d===_0x5a2452(0x184)){_0x2ce43d=normalizeEnv(_0x1a844b);if(!isProduction(_0x2ce43d)&&!isDaily(_0x2ce43d))throw CliErrors['validation'](_0x5a2452(0x1a4),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x12c37d===_0x5a2452(0x17f)){const _0x4f5fa6=_0x39d4cc[_0x5a2452(0x17e)]&&typeof _0x39d4cc[_0x5a2452(0x17e)]===_0x5a2452(0x1a5)?Object[_0x5a2452(0x197)](_0x39d4cc[_0x5a2452(0x17e)]):[];if(_0x4f5fa6['length']>0x0)throw CliErrors['validation']('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Use\x20`'+CLI_BIN_NAME+_0x5a2452(0x1a2)+_0x2ce43d+_0x5a2452(0x17c)+CLI_BIN_NAME+_0x5a2452(0x192));const _0x28607f=buildCanonicalProjectConfig({..._0x39d4cc},{'appCodes':[_0x2ce43d],'env':typeof _0x39d4cc[_0x5a2452(0x184)]==='string'?_0x39d4cc[_0x5a2452(0x184)]:undefined});writeScopedConfig(_0x28607f,_0x1bc9bf);const _0x265970=_0x1bc9bf==='global'?_0x5a2452(0x18c):_0x5a2452(0x179);return{'ok':!![],'message':'✓\x20'+_0x265970+_0x5a2452(0x1a1)+_0x2ce43d+_0x5a2452(0x177)};}_0x39d4cc[_0x29bd1a]=_0x2ce43d,writeScopedConfig(_0x39d4cc,_0x1bc9bf);const _0x5e8263=_0x1bc9bf==='global'?_0x5a2452(0x18c):_0x5a2452(0x179);return{'ok':!![],'message':'✓\x20'+_0x5e8263+'\x20'+_0x29bd1a+_0x5a2452(0x1a3)+_0x2ce43d};}export const configSetDefinition={'service':a63_0x4646fc(0x18d),'command':a63_0x4646fc(0x190),'description':'Set\x20a\x20config\x20value','risk':a63_0x4646fc(0x1a0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x4646fc(0x17b),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x4646fc(0x18e),'type':a63_0x4646fc(0x176),'description':'Config\x20value','required':!![]},{'name':'global','type':a63_0x4646fc(0x175),'description':a63_0x4646fc(0x195),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47b699,_0x56a512){var _0x1a8faf=a64_0x26e7,_0x1ab11b=_0x47b699();while(!![]){try{var _0x1a99be=-parseInt(_0x1a8faf(0x124))/0x1*(parseInt(_0x1a8faf(0x123))/0x2)+parseInt(_0x1a8faf(0x122))/0x3+-parseInt(_0x1a8faf(0x12b))/0x4+parseInt(_0x1a8faf(0x121))/0x5*(parseInt(_0x1a8faf(0x11e))/0x6)+-parseInt(_0x1a8faf(0x11f))/0x7*(parseInt(_0x1a8faf(0x12a))/0x8)+-parseInt(_0x1a8faf(0x126))/0x9*(-parseInt(_0x1a8faf(0x127))/0xa)+parseInt(_0x1a8faf(0x125))/0xb*(parseInt(_0x1a8faf(0x128))/0xc);if(_0x1a99be===_0x56a512)break;else _0x1ab11b['push'](_0x1ab11b['shift']());}catch(_0x42b118){_0x1ab11b['push'](_0x1ab11b['shift']());}}}(a64_0x392f,0x71844));function a64_0x26e7(_0x146b0d,_0x2caf72){_0x146b0d=_0x146b0d-0x11e;var _0x392fac=a64_0x392f();var _0x26e7fc=_0x392fac[_0x146b0d];return _0x26e7fc;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a64_0x392f(){var _0x5974b7=['global','8eRSRhA','977016nBzqbW','project','validation','24ZRcqWO','6142696czrEQZ','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','164330mOewXr','2606982UrcSax','2LDOCGE','45418ycbDpl','22FdyIcH','18990toSQdt','800abAgPx','2777436pFCWSr'];a64_0x392f=function(){return _0x5974b7;};return a64_0x392f();}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x5a53f2){var _0x310303=a64_0x26e7;if(_0x5a53f2[_0x310303(0x129)])return'global';if(!isInProject())throw CliErrors[_0x310303(0x12d)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x310303(0x120)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x310303(0x12c);}export function readScopedConfig(_0x100f9c){return readConfigFile(resolveWriteConfigPath(_0x100f9c));}export function writeScopedConfig(_0x52666d,_0x5d5dd3){writeConfigFile(resolveWriteConfigPath(_0x5d5dd3),_0x52666d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x15d796=a65_0xdb62;(function(_0x4ec153,_0x48890a){const _0x4abb89=a65_0xdb62,_0xa03e7d=_0x4ec153();while(!![]){try{const _0x23643f=-parseInt(_0x4abb89(0x1cb))/0x1+parseInt(_0x4abb89(0x1ad))/0x2+parseInt(_0x4abb89(0x1dc))/0x3+-parseInt(_0x4abb89(0x1cd))/0x4+parseInt(_0x4abb89(0x1d2))/0x5+parseInt(_0x4abb89(0x1d4))/0x6*(parseInt(_0x4abb89(0x1a6))/0x7)+parseInt(_0x4abb89(0x1e7))/0x8*(-parseInt(_0x4abb89(0x1e8))/0x9);if(_0x23643f===_0x48890a)break;else _0xa03e7d['push'](_0xa03e7d['shift']());}catch(_0x5eda9e){_0xa03e7d['push'](_0xa03e7d['shift']());}}}(a65_0x5ec9,0x5fdb4));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set(['MANY_TO_ONE',a65_0x15d796(0x1e4)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x15d796(0x1ef),a65_0x15d796(0x1d8),a65_0x15d796(0x1f1),'BOOLEAN',a65_0x15d796(0x19e),'MULTI_SELECT',a65_0x15d796(0x1c3),'USER',a65_0x15d796(0x1ca),a65_0x15d796(0x1b2)]);export function isDatasetBatchDesign(_0x16e56a){const _0x371752=a65_0x15d796;return isObject(_0x16e56a)&&_0x16e56a[_0x371752(0x1be)]===_0x371752(0x1df);}export function validateDatasetBatchDesign(_0x550467){const _0x381c25=a65_0x15d796;(!isObject(_0x550467)||_0x550467[_0x381c25(0x1be)]!=='dataset-batch')&&fail(_0x381c25(0x1a5));_0x550467[_0x381c25(0x1e2)]!==0x1&&fail(_0x381c25(0x199));const _0x42234f=objectArray(_0x550467[_0x381c25(0x1f4)],_0x381c25(0x1f4),0x1,0x14),_0x38aafa=objectArray(_0x550467[_0x381c25(0x1f7)],_0x381c25(0x1f7),0x0,0xc8),_0x1b8831=objectArray(_0x550467['unresolvedRelations'],'unresolvedRelations',0x0,0xc8),_0x1e9571=new Set(),_0x471ab6=new Map();for(const [_0x5f1c1c,_0x1d5a19]of _0x42234f[_0x381c25(0x1ea)]()){const _0x2136df=requiredString(_0x1d5a19['localKey'],_0x381c25(0x1c6)+_0x5f1c1c+_0x381c25(0x1ec));!LOCAL_KEY[_0x381c25(0x1f8)](_0x2136df)&&fail(_0x381c25(0x1c6)+_0x5f1c1c+_0x381c25(0x1e5)+LOCAL_KEY[_0x381c25(0x1fa)]+'.');_0x1e9571[_0x381c25(0x1cc)](_0x2136df)&&fail(_0x381c25(0x1b8));_0x1e9571[_0x381c25(0x1a4)](_0x2136df);!isObject(_0x1d5a19[_0x381c25(0x1b9)])&&fail(_0x381c25(0x1c6)+_0x5f1c1c+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x1d5a19[_0x381c25(0x1b9)],_0x381c25(0x1c6)+_0x5f1c1c+_0x381c25(0x1a3));if(!isObject(_0x1d5a19[_0x381c25(0x1b9)][_0x381c25(0x19b)]))fail(_0x381c25(0x1c6)+_0x5f1c1c+'].design.dataset\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x1d5a19[_0x381c25(0x1b9)][_0x381c25(0x19b)],_0x381c25(0x1c6)+_0x5f1c1c+_0x381c25(0x1a9)),requiredString(_0x1d5a19['design'][_0x381c25(0x19b)]['datasetName'],_0x381c25(0x1c6)+_0x5f1c1c+'].design.dataset.datasetName');_0x381c25(0x1f7)in _0x1d5a19[_0x381c25(0x1b9)]&&(!Array[_0x381c25(0x1d6)](_0x1d5a19[_0x381c25(0x1b9)]['relations'])||_0x1d5a19[_0x381c25(0x1b9)][_0x381c25(0x1f7)]['length']!==0x0)&&fail(_0x381c25(0x1c6)+_0x5f1c1c+_0x381c25(0x1f5));const _0x1cc731=objectArray(_0x1d5a19[_0x381c25(0x1b9)]['fields'],_0x381c25(0x1c6)+_0x5f1c1c+'].design.fields',0x1,0xc8),_0x4d017f=new Map();for(const [_0x2fce23,_0xd6e67d]of _0x1cc731[_0x381c25(0x1ea)]()){const _0x27ffe6=fieldName(_0xd6e67d);if(!_0x27ffe6)fail(_0x381c25(0x1c6)+_0x5f1c1c+'].design.fields['+_0x2fce23+_0x381c25(0x1ce));const _0x1d2ef1=_0x27ffe6[_0x381c25(0x1c7)]();if(_0x4d017f[_0x381c25(0x1cc)](_0x1d2ef1))fail(_0x381c25(0x1e1)+_0x2136df+_0x381c25(0x1f0));const _0x158c45=stringValue(_0xd6e67d[_0x381c25(0x1c0)]??_0xd6e67d[_0x381c25(0x1a8)])[_0x381c25(0x195)]();if(!SUPPORTED_FIELD_TYPES[_0x381c25(0x1cc)](_0x158c45))fail(_0x381c25(0x1c6)+_0x5f1c1c+_0x381c25(0x1de)+_0x2fce23+_0x381c25(0x1b1));_0x4d017f['set'](_0x1d2ef1,_0x158c45),[_0xd6e67d['refTable'],_0xd6e67d[_0x381c25(0x1ee)],_0xd6e67d['refTableLabelField']]['some'](_0xc05995=>stringValue(_0xc05995))&&fail(_0x381c25(0x1c6)+_0x5f1c1c+'].design.fields['+_0x2fce23+']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.');}_0x471ab6[_0x381c25(0x1a2)](_0x2136df,_0x4d017f);}const _0x3c934b=new Set(),_0x24e95c=new Set();for(const [_0x53abf5,_0x22e51e]of _0x38aafa['entries']()){const _0x13a9e2=validateRelation(_0x22e51e,_0x53abf5,_0x1e9571,_0x471ab6);if(_0x3c934b['has'](_0x13a9e2))fail(_0x381c25(0x1c2));_0x3c934b['add'](_0x13a9e2);const _0x9d6a03=_0x13a9e2[_0x381c25(0x1f6)]('\x00',0x2)[_0x381c25(0x1ba)]('\x00');if(_0x24e95c[_0x381c25(0x1cc)](_0x9d6a03))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x24e95c[_0x381c25(0x1a4)](_0x9d6a03);}for(const [_0x182a39,_0x11c8ac]of _0x1b8831[_0x381c25(0x1ea)]()){requiredString(_0x11c8ac[_0x381c25(0x1f9)],_0x381c25(0x1a7)+_0x182a39+_0x381c25(0x1b4)),validateConfidence(_0x11c8ac[_0x381c25(0x1ae)],_0x381c25(0x1a7)+_0x182a39+_0x381c25(0x1eb));}return _0x550467;}export function reconcileBatchResult(_0x3d5d9b){const _0xe97ac1=a65_0x15d796;if(!isObject(_0x3d5d9b))return null;try{const _0x20aae2=stringArray(_0x3d5d9b[_0xe97ac1(0x1ac)],_0xe97ac1(0x1ac),0x1,0x14),_0x1ad0f8=new Set(_0x20aae2);if(_0x1ad0f8[_0xe97ac1(0x1f2)]!==_0x20aae2[_0xe97ac1(0x1d5)]||_0x20aae2[_0xe97ac1(0x1d0)](_0x3d4c15=>!LOCAL_KEY['test'](_0x3d4c15)))return null;const _0x32adc6=objectArray(_0x3d5d9b[_0xe97ac1(0x1ab)],'createdDatasets',0x1,0x14),_0x520af5=new Map(),_0x51263d=new Set();for(const _0x51f0b of _0x32adc6){const _0x5540a7=requiredString(_0x51f0b[_0xe97ac1(0x1d7)],_0xe97ac1(0x1fb)),_0x58319e=requiredString(_0x51f0b['code']??_0x51f0b['datasetCode'],_0xe97ac1(0x1d1));if(_0x520af5[_0xe97ac1(0x1cc)](_0x5540a7)||_0x51263d[_0xe97ac1(0x1cc)](_0x58319e))return null;_0x520af5['set'](_0x5540a7,_0x58319e),_0x51263d['add'](_0x58319e);}if(!sameSet(_0x1ad0f8,new Set(_0x520af5[_0xe97ac1(0x1bb)]())))return null;const _0x47be95=objectArray(_0x3d5d9b[_0xe97ac1(0x1aa)],'expectedRelations',0x0,0xc8),_0x1527b3=objectArray(_0x3d5d9b[_0xe97ac1(0x1da)],_0xe97ac1(0x1da),0x0,0xc8),_0x29a6f8=relationTupleSet(_0x47be95,![],_0x520af5),_0x11c551=relationTupleSet(_0x1527b3,!![],_0x520af5);if(!_0x29a6f8||!_0x11c551||!sameSet(_0x29a6f8,_0x11c551))return null;const _0x28385a=objectArray(_0x3d5d9b[_0xe97ac1(0x1a0)],_0xe97ac1(0x1a0),0x0,0xc8);return{'expectedLocalKeys':_0x20aae2,'expectedRelations':_0x47be95,'createdDatasets':_0x32adc6,'createdRelations':_0x1527b3,'unresolvedRelations':_0x28385a,...isObject(_0x3d5d9b[_0xe97ac1(0x1f3)])?{'metrics':_0x3d5d9b[_0xe97ac1(0x1f3)]}:{}};}catch{return null;}}function validateRelation(_0x1aa3fd,_0x54afce,_0x2fcebd,_0xd6e71){const _0x2018b7=a65_0x15d796,_0x12a832='relations['+_0x54afce+']',_0x5de95b=requiredString(_0x1aa3fd['fromDatasetKey'],_0x12a832+_0x2018b7(0x1c9)),_0x311d34=requiredString(_0x1aa3fd[_0x2018b7(0x196)],_0x12a832+_0x2018b7(0x1e0)),_0x354fe9=requiredString(_0x1aa3fd['fromField'],_0x12a832+'.fromField')[_0x2018b7(0x1c7)](),_0x36522d=requiredString(_0x1aa3fd[_0x2018b7(0x194)],_0x12a832+_0x2018b7(0x1e9))[_0x2018b7(0x1c7)]();if(!_0x2fcebd['has'](_0x5de95b)||!_0x2fcebd[_0x2018b7(0x1cc)](_0x311d34))fail(_0x12a832+'\x20references\x20an\x20unknown\x20dataset\x20localKey.');const _0x375fdc=_0xd6e71[_0x2018b7(0x1fc)](_0x5de95b)?.[_0x2018b7(0x1fc)](_0x354fe9),_0x371e35=_0xd6e71[_0x2018b7(0x1fc)](_0x311d34)?.[_0x2018b7(0x1fc)](_0x36522d);if(_0x375fdc===undefined||_0x371e35===undefined)fail(_0x12a832+_0x2018b7(0x1cf));if(_0x375fdc&&_0x371e35&&_0x375fdc!==_0x371e35)fail(_0x12a832+_0x2018b7(0x1dd));const _0x2344a7=stringValue(_0x1aa3fd[_0x2018b7(0x1a1)])||_0x2018b7(0x19f);if(_0x2344a7!==_0x2018b7(0x19f))fail(_0x12a832+'.relationType\x20must\x20be\x20\x22lookup\x22.');const _0xa0881e=stringValue(_0x1aa3fd[_0x2018b7(0x1d3)])||'MANY_TO_ONE';if(!SUPPORTED_CARDINALITIES['has'](_0xa0881e))fail(_0x12a832+_0x2018b7(0x1ed));return requiredString(_0x1aa3fd['reason'],_0x12a832+_0x2018b7(0x1c4)),validateConfidence(_0x1aa3fd[_0x2018b7(0x1ae)],_0x12a832+_0x2018b7(0x1e6)),tuple(_0x5de95b,_0x354fe9,_0x311d34,_0x36522d,_0x2018b7(0x19f),_0xa0881e);}function relationTupleSet(_0x3f37d6,_0x48e1f8,_0x4f699c){const _0x8bb874=a65_0x15d796,_0x1766e4=new Set();for(const _0x460da1 of _0x3f37d6){const _0x3876c2=stringValue(_0x460da1[_0x8bb874(0x1db)]),_0xa1b70f=stringValue(_0x460da1[_0x8bb874(0x196)]),_0x4405ca=stringValue(_0x460da1[_0x8bb874(0x1af)])[_0x8bb874(0x1c7)](),_0x30af4b=stringValue(_0x460da1[_0x8bb874(0x194)])[_0x8bb874(0x1c7)](),_0x483889=stringValue(_0x460da1[_0x8bb874(0x1a1)]),_0x335cc7=stringValue(_0x460da1['cardinality']);if(!_0x3876c2||!_0xa1b70f||!_0x4405ca||!_0x30af4b||_0x483889!==_0x8bb874(0x19f)||!SUPPORTED_CARDINALITIES[_0x8bb874(0x1cc)](_0x335cc7))return null;if(!_0x4f699c[_0x8bb874(0x1cc)](_0x3876c2)||!_0x4f699c[_0x8bb874(0x1cc)](_0xa1b70f))return null;if(_0x48e1f8&&(stringValue(_0x460da1[_0x8bb874(0x1b3)])!==_0x4f699c['get'](_0x3876c2)||stringValue(_0x460da1[_0x8bb874(0x19d)])!==_0x4f699c['get'](_0xa1b70f)))return null;const _0xdf4a4a=tuple(_0x3876c2,_0x4405ca,_0xa1b70f,_0x30af4b,_0x483889,_0x335cc7);if(_0x1766e4[_0x8bb874(0x1cc)](_0xdf4a4a))return null;_0x1766e4[_0x8bb874(0x1a4)](_0xdf4a4a);}return _0x1766e4;}function a65_0xdb62(_0xfd1df0,_0x1078d8){_0xfd1df0=_0xfd1df0-0x194;const _0x5ec95b=a65_0x5ec9();let _0xdb624c=_0x5ec95b[_0xfd1df0];return _0xdb624c;}function rejectServerDatasetIdentity(_0x41494f,_0x3addd4){const _0x14f5bf=a65_0x15d796;for(const _0x212ea9 of['id',_0x14f5bf(0x197),_0x14f5bf(0x1bf),_0x14f5bf(0x198),'datasetCode','modelCode']){if(_0x41494f[_0x212ea9]!==undefined&&_0x41494f[_0x212ea9]!==null&&_0x41494f[_0x212ea9]!=='')fail(_0x3addd4+'.'+_0x212ea9+_0x14f5bf(0x19a));}}function objectArray(_0x184c2b,_0x1d6842,_0x4c2322,_0x5eb6da){const _0x301672=a65_0x15d796;return(!Array['isArray'](_0x184c2b)||_0x184c2b[_0x301672(0x1d5)]<_0x4c2322||_0x184c2b[_0x301672(0x1d5)]>_0x5eb6da||_0x184c2b[_0x301672(0x1d0)](_0x8acd4=>!isObject(_0x8acd4)))&&fail(_0x1d6842+'\x20must\x20contain\x20'+_0x4c2322+'..'+_0x5eb6da+_0x301672(0x1c8)),_0x184c2b;}function stringArray(_0x1dfdbc,_0x2778a8,_0x259b68,_0x181e57){const _0x5cfe04=a65_0x15d796;return(!Array[_0x5cfe04(0x1d6)](_0x1dfdbc)||_0x1dfdbc['length']<_0x259b68||_0x1dfdbc['length']>_0x181e57||_0x1dfdbc['some'](_0x38d30c=>typeof _0x38d30c!==_0x5cfe04(0x1b7)||!_0x38d30c[_0x5cfe04(0x19c)]()))&&fail(_0x2778a8+_0x5cfe04(0x1bc)+_0x259b68+'..'+_0x181e57+_0x5cfe04(0x1e3)),_0x1dfdbc;}function requiredString(_0x304ae0,_0x57c4e8){const _0x503e1c=stringValue(_0x304ae0);if(!_0x503e1c)fail(_0x57c4e8+'\x20is\x20required.');return _0x503e1c;}function a65_0x5ec9(){const _0xb9ab4d=['DATETIME','size','metrics','datasets','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','split','relations','test','reason','source','createdDatasets[].localKey','get','toField','toUpperCase','toDatasetKey','datasetId','code','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','dataset','trim','toDatasetCode','SELECT','lookup','unresolvedRelations','relationType','set','].design','add','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','5019308ZCJStx','unresolvedRelations[','fieldType','].design.dataset','expectedRelations','createdDatasets','expectedLocalKeys','1176880yOMwPK','confidence','fromField','map','].type\x20is\x20not\x20supported.','UPLOAD','fromDatasetCode','].reason','\x20must\x20be\x20between\x200\x20and\x201.','name','string','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','design','join','keys','\x20must\x20contain\x20','object','kind','modelId','type','fieldCode','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','DATE_RANGE','.reason','number','datasets[','toLowerCase','\x20objects.','.fromDatasetKey','ADDRESS','644696CbIGCh','has','2433588opLwfq',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20references\x20an\x20unknown\x20field.','some','createdDatasets[].code','468850VRdROa','cardinality','6qLQRZH','length','isArray','localKey','NUMBER','fieldName','createdRelations','fromDatasetKey','2260266wvicjM','\x20connects\x20incompatible\x20field\x20types.','].design.fields[','dataset-batch','.toDatasetKey','Dataset\x20','schemaVersion','\x20non-empty\x20strings.','ONE_TO_ONE','].localKey\x20must\x20match\x20','.confidence','4055640zBXoSR','9HmBJEG','.toField','entries','].confidence','].localKey','.cardinality\x20is\x20not\x20supported.','refTableField','TEXT','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.'];a65_0x5ec9=function(){return _0xb9ab4d;};return a65_0x5ec9();}function stringValue(_0x1f8e4d){const _0x1e5aba=a65_0x15d796;return typeof _0x1f8e4d===_0x1e5aba(0x1b7)?_0x1f8e4d[_0x1e5aba(0x19c)]():'';}function fieldName(_0x4d8e74){const _0x26edc1=a65_0x15d796;return stringValue(_0x4d8e74[_0x26edc1(0x198)]??_0x4d8e74[_0x26edc1(0x1c1)]??_0x4d8e74[_0x26edc1(0x1b6)]??_0x4d8e74[_0x26edc1(0x1d9)]);}function validateConfidence(_0x408eb4,_0x2c0f05){const _0x48917a=a65_0x15d796;_0x408eb4!==undefined&&_0x408eb4!==null&&(typeof _0x408eb4!==_0x48917a(0x1c5)||!Number['isFinite'](_0x408eb4)||_0x408eb4<0x0||_0x408eb4>0x1)&&fail(_0x2c0f05+_0x48917a(0x1b5));}function tuple(..._0x4cc9c8){const _0x2a4ab1=a65_0x15d796;return _0x4cc9c8[_0x2a4ab1(0x1b0)]((_0x1d452f,_0x4fcdfd)=>_0x4fcdfd===0x1||_0x4fcdfd===0x3?_0x1d452f[_0x2a4ab1(0x1c7)]():_0x1d452f)[_0x2a4ab1(0x1ba)]('\x00');}function sameSet(_0x47b936,_0x1d7105){const _0x565668=a65_0x15d796;return _0x47b936[_0x565668(0x1f2)]===_0x1d7105[_0x565668(0x1f2)]&&[..._0x47b936]['every'](_0x3b06a9=>_0x1d7105[_0x565668(0x1cc)](_0x3b06a9));}function isObject(_0x63b2d7){const _0x5cd82d=a65_0x15d796;return typeof _0x63b2d7===_0x5cd82d(0x1bd)&&_0x63b2d7!==null&&!Array['isArray'](_0x63b2d7);}function fail(_0x2f9a72){throw CliErrors['validation'](_0x2f9a72);}
|
|
1
|
+
const a65_0x244ed9=a65_0x470d;(function(_0x220c93,_0x24c0c9){const _0xa5f348=a65_0x470d,_0x3ac462=_0x220c93();while(!![]){try{const _0x184768=parseInt(_0xa5f348(0x1a7))/0x1*(-parseInt(_0xa5f348(0x1c8))/0x2)+-parseInt(_0xa5f348(0x19d))/0x3*(-parseInt(_0xa5f348(0x1e3))/0x4)+-parseInt(_0xa5f348(0x1d5))/0x5+parseInt(_0xa5f348(0x193))/0x6*(parseInt(_0xa5f348(0x196))/0x7)+parseInt(_0xa5f348(0x1d9))/0x8+parseInt(_0xa5f348(0x1da))/0x9+parseInt(_0xa5f348(0x1e7))/0xa*(-parseInt(_0xa5f348(0x1ab))/0xb);if(_0x184768===_0x24c0c9)break;else _0x3ac462['push'](_0x3ac462['shift']());}catch(_0x4f061d){_0x3ac462['push'](_0x3ac462['shift']());}}}(a65_0x63dd,0xeadd9));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x244ed9(0x1ef),a65_0x244ed9(0x1c1)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x244ed9(0x1e5),a65_0x244ed9(0x1ba),a65_0x244ed9(0x1c6),a65_0x244ed9(0x1b5),'SELECT','MULTI_SELECT',a65_0x244ed9(0x1c0),a65_0x244ed9(0x1ce),a65_0x244ed9(0x1dd),a65_0x244ed9(0x1d1)]);export function isDatasetBatchDesign(_0x4e36fa){return isObject(_0x4e36fa)&&_0x4e36fa['kind']==='dataset-batch';}export function validateDatasetBatchDesign(_0x2e831d){const _0x3b39d4=a65_0x244ed9;(!isObject(_0x2e831d)||_0x2e831d[_0x3b39d4(0x1f0)]!=='dataset-batch')&&fail(_0x3b39d4(0x1e2));_0x2e831d['schemaVersion']!==0x1&&fail(_0x3b39d4(0x1cf));const _0x4134b8=objectArray(_0x2e831d['datasets'],_0x3b39d4(0x19a),0x1,0x14),_0x9d4a09=objectArray(_0x2e831d['relations'],_0x3b39d4(0x1c2),0x0,0xc8),_0x3ad20a=objectArray(_0x2e831d[_0x3b39d4(0x1f6)],_0x3b39d4(0x1f6),0x0,0xc8),_0x336d40=new Set(),_0x7ad1cd=new Map();for(const [_0x3536ad,_0x1be16b]of _0x4134b8[_0x3b39d4(0x1b3)]()){const _0x231ffb=requiredString(_0x1be16b[_0x3b39d4(0x1f1)],_0x3b39d4(0x19c)+_0x3536ad+'].localKey');!LOCAL_KEY[_0x3b39d4(0x1eb)](_0x231ffb)&&fail(_0x3b39d4(0x19c)+_0x3536ad+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x3b39d4(0x1a9)]+'.');_0x336d40[_0x3b39d4(0x1ee)](_0x231ffb)&&fail(_0x3b39d4(0x1db));_0x336d40[_0x3b39d4(0x1d3)](_0x231ffb);!isObject(_0x1be16b[_0x3b39d4(0x1d7)])&&fail('datasets['+_0x3536ad+_0x3b39d4(0x1a5));rejectServerDatasetIdentity(_0x1be16b[_0x3b39d4(0x1d7)],'datasets['+_0x3536ad+_0x3b39d4(0x19b));if(!isObject(_0x1be16b[_0x3b39d4(0x1d7)][_0x3b39d4(0x1fa)]))fail(_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x1ed));rejectServerDatasetIdentity(_0x1be16b[_0x3b39d4(0x1d7)][_0x3b39d4(0x1fa)],_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x1f9)),requiredString(_0x1be16b[_0x3b39d4(0x1d7)][_0x3b39d4(0x1fa)][_0x3b39d4(0x1ea)],_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x19f));_0x3b39d4(0x1c2)in _0x1be16b['design']&&(!Array[_0x3b39d4(0x1d8)](_0x1be16b[_0x3b39d4(0x1d7)][_0x3b39d4(0x1c2)])||_0x1be16b[_0x3b39d4(0x1d7)]['relations']['length']!==0x0)&&fail(_0x3b39d4(0x19c)+_0x3536ad+'].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.');const _0x5374bb=objectArray(_0x1be16b[_0x3b39d4(0x1d7)]['fields'],_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x1e6),0x1,0xc8),_0x30816f=new Map();for(const [_0x4d393c,_0x572e19]of _0x5374bb['entries']()){const _0x53fa47=fieldName(_0x572e19);if(!_0x53fa47)fail(_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x1c3)+_0x4d393c+']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.');const _0xfa7b93=_0x53fa47['toLowerCase']();if(_0x30816f[_0x3b39d4(0x1ee)](_0xfa7b93))fail('Dataset\x20'+_0x231ffb+_0x3b39d4(0x1c4));const _0xa87471=stringValue(_0x572e19[_0x3b39d4(0x191)]??_0x572e19[_0x3b39d4(0x1cd)])['toUpperCase']();if(!SUPPORTED_FIELD_TYPES[_0x3b39d4(0x1ee)](_0xa87471))fail(_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x1c3)+_0x4d393c+_0x3b39d4(0x1ae));_0x30816f[_0x3b39d4(0x1a4)](_0xfa7b93,_0xa87471),[_0x572e19[_0x3b39d4(0x1b0)],_0x572e19[_0x3b39d4(0x1e4)],_0x572e19[_0x3b39d4(0x1f2)]][_0x3b39d4(0x1fc)](_0x56bd62=>stringValue(_0x56bd62))&&fail(_0x3b39d4(0x19c)+_0x3536ad+_0x3b39d4(0x1c3)+_0x4d393c+_0x3b39d4(0x1a2));}_0x7ad1cd[_0x3b39d4(0x1a4)](_0x231ffb,_0x30816f);}const _0x3559af=new Set(),_0x57e538=new Set();for(const [_0x4c819e,_0x2ee2b2]of _0x9d4a09[_0x3b39d4(0x1b3)]()){const _0x339290=validateRelation(_0x2ee2b2,_0x4c819e,_0x336d40,_0x7ad1cd);if(_0x3559af[_0x3b39d4(0x1ee)](_0x339290))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0x3559af[_0x3b39d4(0x1d3)](_0x339290);const _0x500381=_0x339290[_0x3b39d4(0x1af)]('\x00',0x2)[_0x3b39d4(0x1d6)]('\x00');if(_0x57e538[_0x3b39d4(0x1ee)](_0x500381))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x57e538[_0x3b39d4(0x1d3)](_0x500381);}for(const [_0x18719f,_0x38b506]of _0x3ad20a['entries']()){requiredString(_0x38b506[_0x3b39d4(0x1df)],_0x3b39d4(0x190)+_0x18719f+_0x3b39d4(0x1f8)),validateConfidence(_0x38b506[_0x3b39d4(0x1aa)],_0x3b39d4(0x190)+_0x18719f+'].confidence');}return _0x2e831d;}export function reconcileBatchResult(_0x428022){const _0x382f1=a65_0x244ed9;if(!isObject(_0x428022))return null;try{const _0x372137=stringArray(_0x428022[_0x382f1(0x1ca)],_0x382f1(0x1ca),0x1,0x14),_0xf6fb2c=new Set(_0x372137);if(_0xf6fb2c[_0x382f1(0x1f7)]!==_0x372137['length']||_0x372137[_0x382f1(0x1fc)](_0x20276b=>!LOCAL_KEY[_0x382f1(0x1eb)](_0x20276b)))return null;const _0x3bd277=objectArray(_0x428022[_0x382f1(0x1be)],'createdDatasets',0x1,0x14),_0x1ee717=new Map(),_0x2a8500=new Set();for(const _0x3cded1 of _0x3bd277){const _0x182b64=requiredString(_0x3cded1['localKey'],_0x382f1(0x18f)),_0x256e8f=requiredString(_0x3cded1[_0x382f1(0x1d2)]??_0x3cded1[_0x382f1(0x1a6)],_0x382f1(0x1c9));if(_0x1ee717['has'](_0x182b64)||_0x2a8500['has'](_0x256e8f))return null;_0x1ee717[_0x382f1(0x1a4)](_0x182b64,_0x256e8f),_0x2a8500[_0x382f1(0x1d3)](_0x256e8f);}if(!sameSet(_0xf6fb2c,new Set(_0x1ee717[_0x382f1(0x1e8)]())))return null;const _0x3e178f=objectArray(_0x428022[_0x382f1(0x1a3)],_0x382f1(0x1a3),0x0,0xc8),_0x1fe83e=objectArray(_0x428022[_0x382f1(0x1fb)],_0x382f1(0x1fb),0x0,0xc8),_0x2d39e3=relationTupleSet(_0x3e178f,![],_0x1ee717),_0x5219d0=relationTupleSet(_0x1fe83e,!![],_0x1ee717);if(!_0x2d39e3||!_0x5219d0||!sameSet(_0x2d39e3,_0x5219d0))return null;const _0xe3fa14=objectArray(_0x428022['unresolvedRelations'],_0x382f1(0x1f6),0x0,0xc8);return{'expectedLocalKeys':_0x372137,'expectedRelations':_0x3e178f,'createdDatasets':_0x3bd277,'createdRelations':_0x1fe83e,'unresolvedRelations':_0xe3fa14,...isObject(_0x428022[_0x382f1(0x1ec)])?{'metrics':_0x428022['metrics']}:{}};}catch{return null;}}function validateRelation(_0x336705,_0x5e98aa,_0x30fef9,_0x31416d){const _0x4dc52f=a65_0x244ed9,_0x47b5ca=_0x4dc52f(0x1bc)+_0x5e98aa+']',_0x435dbc=requiredString(_0x336705[_0x4dc52f(0x1c7)],_0x47b5ca+'.fromDatasetKey'),_0x10f5f7=requiredString(_0x336705[_0x4dc52f(0x1ac)],_0x47b5ca+_0x4dc52f(0x1f5)),_0x5bb8d8=requiredString(_0x336705[_0x4dc52f(0x1ad)],_0x47b5ca+_0x4dc52f(0x1b7))['toLowerCase'](),_0xc0734c=requiredString(_0x336705['toField'],_0x47b5ca+'.toField')['toLowerCase']();if(!_0x30fef9['has'](_0x435dbc)||!_0x30fef9['has'](_0x10f5f7))fail(_0x47b5ca+_0x4dc52f(0x1a0));const _0x27effa=_0x31416d[_0x4dc52f(0x1b8)](_0x435dbc)?.[_0x4dc52f(0x1b8)](_0x5bb8d8),_0x288910=_0x31416d[_0x4dc52f(0x1b8)](_0x10f5f7)?.[_0x4dc52f(0x1b8)](_0xc0734c);if(_0x27effa===undefined||_0x288910===undefined)fail(_0x47b5ca+_0x4dc52f(0x1f4));if(_0x27effa&&_0x288910&&_0x27effa!==_0x288910)fail(_0x47b5ca+_0x4dc52f(0x1bd));const _0x10426d=stringValue(_0x336705[_0x4dc52f(0x1e0)])||'lookup';if(_0x10426d!=='lookup')fail(_0x47b5ca+_0x4dc52f(0x1e1));const _0x119de8=stringValue(_0x336705[_0x4dc52f(0x1cb)])||_0x4dc52f(0x1ef);if(!SUPPORTED_CARDINALITIES[_0x4dc52f(0x1ee)](_0x119de8))fail(_0x47b5ca+_0x4dc52f(0x1de));return requiredString(_0x336705[_0x4dc52f(0x1df)],_0x47b5ca+'.reason'),validateConfidence(_0x336705[_0x4dc52f(0x1aa)],_0x47b5ca+_0x4dc52f(0x192)),tuple(_0x435dbc,_0x5bb8d8,_0x10f5f7,_0xc0734c,'lookup',_0x119de8);}function relationTupleSet(_0x1defd7,_0x2c14e7,_0x551469){const _0x545a99=a65_0x244ed9,_0x294178=new Set();for(const _0x3cf5a5 of _0x1defd7){const _0x3c3ab6=stringValue(_0x3cf5a5[_0x545a99(0x1c7)]),_0x13a72d=stringValue(_0x3cf5a5[_0x545a99(0x1ac)]),_0xfe3b75=stringValue(_0x3cf5a5[_0x545a99(0x1ad)])[_0x545a99(0x1cc)](),_0x199a15=stringValue(_0x3cf5a5[_0x545a99(0x199)])[_0x545a99(0x1cc)](),_0x2f2d56=stringValue(_0x3cf5a5[_0x545a99(0x1e0)]),_0x1027b2=stringValue(_0x3cf5a5[_0x545a99(0x1cb)]);if(!_0x3c3ab6||!_0x13a72d||!_0xfe3b75||!_0x199a15||_0x2f2d56!==_0x545a99(0x1e9)||!SUPPORTED_CARDINALITIES[_0x545a99(0x1ee)](_0x1027b2))return null;if(!_0x551469['has'](_0x3c3ab6)||!_0x551469[_0x545a99(0x1ee)](_0x13a72d))return null;if(_0x2c14e7&&(stringValue(_0x3cf5a5['fromDatasetCode'])!==_0x551469[_0x545a99(0x1b8)](_0x3c3ab6)||stringValue(_0x3cf5a5[_0x545a99(0x1bb)])!==_0x551469[_0x545a99(0x1b8)](_0x13a72d)))return null;const _0x2cf337=tuple(_0x3c3ab6,_0xfe3b75,_0x13a72d,_0x199a15,_0x2f2d56,_0x1027b2);if(_0x294178[_0x545a99(0x1ee)](_0x2cf337))return null;_0x294178[_0x545a99(0x1d3)](_0x2cf337);}return _0x294178;}function rejectServerDatasetIdentity(_0x4eff82,_0x49325c){const _0x15c520=a65_0x244ed9;for(const _0xedf2ce of['id',_0x15c520(0x1b2),_0x15c520(0x194),_0x15c520(0x1d2),'datasetCode',_0x15c520(0x1f3)]){if(_0x4eff82[_0xedf2ce]!==undefined&&_0x4eff82[_0xedf2ce]!==null&&_0x4eff82[_0xedf2ce]!=='')fail(_0x49325c+'.'+_0xedf2ce+_0x15c520(0x1dc));}}function objectArray(_0x33bcb6,_0x48deac,_0x42858b,_0x2b5401){const _0x26f202=a65_0x244ed9;return(!Array['isArray'](_0x33bcb6)||_0x33bcb6['length']<_0x42858b||_0x33bcb6['length']>_0x2b5401||_0x33bcb6['some'](_0x4b654c=>!isObject(_0x4b654c)))&&fail(_0x48deac+_0x26f202(0x197)+_0x42858b+'..'+_0x2b5401+_0x26f202(0x1a1)),_0x33bcb6;}function stringArray(_0x10b758,_0x101010,_0x3aca89,_0x3564ab){const _0x58a953=a65_0x244ed9;return(!Array['isArray'](_0x10b758)||_0x10b758[_0x58a953(0x19e)]<_0x3aca89||_0x10b758[_0x58a953(0x19e)]>_0x3564ab||_0x10b758[_0x58a953(0x1fc)](_0x2488be=>typeof _0x2488be!==_0x58a953(0x1b1)||!_0x2488be['trim']()))&&fail(_0x101010+_0x58a953(0x197)+_0x3aca89+'..'+_0x3564ab+'\x20non-empty\x20strings.'),_0x10b758;}function requiredString(_0x592cf4,_0x15c84f){const _0x492d12=a65_0x244ed9,_0x1d0614=stringValue(_0x592cf4);if(!_0x1d0614)fail(_0x15c84f+_0x492d12(0x1d4));return _0x1d0614;}function stringValue(_0x1f0581){const _0xbe7d46=a65_0x244ed9;return typeof _0x1f0581===_0xbe7d46(0x1b1)?_0x1f0581[_0xbe7d46(0x1b4)]():'';}function fieldName(_0x567e1b){const _0x5a9896=a65_0x244ed9;return stringValue(_0x567e1b[_0x5a9896(0x1d2)]??_0x567e1b[_0x5a9896(0x1c5)]??_0x567e1b[_0x5a9896(0x1bf)]??_0x567e1b[_0x5a9896(0x1a8)]);}function a65_0x470d(_0x5aecf9,_0x46cbd2){_0x5aecf9=_0x5aecf9-0x18f;const _0x63dd0=a65_0x63dd();let _0x470dd2=_0x63dd0[_0x5aecf9];return _0x470dd2;}function validateConfidence(_0x5577c6,_0x1ed85a){const _0x2e35b5=a65_0x244ed9;_0x5577c6!==undefined&&_0x5577c6!==null&&(typeof _0x5577c6!=='number'||!Number[_0x2e35b5(0x198)](_0x5577c6)||_0x5577c6<0x0||_0x5577c6>0x1)&&fail(_0x1ed85a+_0x2e35b5(0x195));}function tuple(..._0x38f620){return _0x38f620['map']((_0x29cb93,_0x213694)=>_0x213694===0x1||_0x213694===0x3?_0x29cb93['toLowerCase']():_0x29cb93)['join']('\x00');}function sameSet(_0x2c70bf,_0x506ee4){const _0xa5cbd1=a65_0x244ed9;return _0x2c70bf[_0xa5cbd1(0x1f7)]===_0x506ee4['size']&&[..._0x2c70bf][_0xa5cbd1(0x1b9)](_0x3c1e2b=>_0x506ee4['has'](_0x3c1e2b));}function isObject(_0x55aeb9){const _0x1f28b3=a65_0x244ed9;return typeof _0x55aeb9===_0x1f28b3(0x1b6)&&_0x55aeb9!==null&&!Array['isArray'](_0x55aeb9);}function fail(_0x280b66){const _0x515069=a65_0x244ed9;throw CliErrors[_0x515069(0x1d0)](_0x280b66);}function a65_0x63dd(){const _0x5f0051=['unresolvedRelations','size','].reason','].design.dataset','dataset','createdRelations','some','createdDatasets[].localKey','unresolvedRelations[','type','.confidence','6iJjDVy','modelId','\x20must\x20be\x20between\x200\x20and\x201.','11883361DrYeWC','\x20must\x20contain\x20','isFinite','toField','datasets','].design','datasets[','3330333HIJStO','length','].design.dataset.datasetName','\x20references\x20an\x20unknown\x20dataset\x20localKey.','\x20objects.',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','expectedRelations','set','].design\x20must\x20be\x20an\x20object.','datasetCode','1MboKAO','fieldName','source','confidence','388982PRLkIx','toDatasetKey','fromField','].type\x20is\x20not\x20supported.','split','refTable','string','datasetId','entries','trim','BOOLEAN','object','.fromField','get','every','NUMBER','toDatasetCode','relations[','\x20connects\x20incompatible\x20field\x20types.','createdDatasets','name','DATE_RANGE','ONE_TO_ONE','relations','].design.fields[','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','fieldCode','DATETIME','fromDatasetKey','1185536CoRpkR','createdDatasets[].code','expectedLocalKeys','cardinality','toLowerCase','fieldType','USER','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','validation','UPLOAD','code','add','\x20is\x20required.','636190vrLxBV','join','design','isArray','1963472lRVUqT','9301167lkhdcc','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','ADDRESS','.cardinality\x20is\x20not\x20supported.','reason','relationType','.relationType\x20must\x20be\x20\x22lookup\x22.','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','4rGrvRf','refTableField','TEXT','].design.fields','680IFifQW','keys','lookup','datasetName','test','metrics','].design.dataset\x20must\x20be\x20an\x20object.','has','MANY_TO_ONE','kind','localKey','refTableLabelField','modelCode','\x20references\x20an\x20unknown\x20field.','.toDatasetKey'];a65_0x63dd=function(){return _0x5f0051;};return a65_0x63dd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0x56f8ad=a66_0x1492;(function(_0x38a48f,_0x3ef1be){const _0x59247d=a66_0x1492,_0x5bc0ac=_0x38a48f();while(!![]){try{const _0x45c293=parseInt(_0x59247d(0x112))/0x1+-parseInt(_0x59247d(0x150))/0x2*(-parseInt(_0x59247d(0x156))/0x3)+-parseInt(_0x59247d(0x135))/0x4*(-parseInt(_0x59247d(0x142))/0x5)+parseInt(_0x59247d(0x157))/0x6*(parseInt(_0x59247d(0x146))/0x7)+-parseInt(_0x59247d(0x138))/0x8*(-parseInt(_0x59247d(0x14e))/0x9)+-parseInt(_0x59247d(0x134))/0xa+-parseInt(_0x59247d(0x13e))/0xb;if(_0x45c293===_0x3ef1be)break;else _0x5bc0ac['push'](_0x5bc0ac['shift']());}catch(_0x46c79e){_0x5bc0ac['push'](_0x5bc0ac['shift']());}}}(a66_0x49d0,0x3d534));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_0x56f8ad(0x153),METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP=a66_0x56f8ad(0x11d);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x232289,input:_0x3db4d5,dryRun:_0x91e2cb}){const _0x4a420d=a66_0x56f8ad;validateInput(_0x3db4d5);const _0x5ac34e=normalizeBusinessGroupArgument(_0x3db4d5[_0x4a420d(0x110)]),_0x4bd1ef=await getDatasetDetail(_0x3db4d5['code']),_0x23cff8=resolveBusinessGroupDataset(_0x4bd1ef,_0x3db4d5['code']);assertBusinessGroupUpdateSupported(_0x23cff8,_0x5ac34e);const _0x4bbbb1=loadCurrentBusinessGroup(_0x4bd1ef,_0x23cff8);assertExpectedBusinessGroup(_0x4bbbb1,_0x3db4d5[_0x4a420d(0x12f)]);const _0x25bdde=buildBackendPlan(_0x232289,_0x23cff8,_0x5ac34e),_0x2bc886=_0x4bbbb1!==_0x5ac34e;let _0xf2e1b3;if(_0x2bc886&&!_0x91e2cb){_0x25bdde[_0x4a420d(0x11e)]==='db-table'?await updateDbTableBusinessGroup(_0x25bdde[_0x4a420d(0x117)]):await updateErBusinessGroup(_0x25bdde['payload']);const _0x55de0d=await getDatasetDetail(_0x23cff8[_0x4a420d(0x145)]),_0x4192dc=resolveBusinessGroupDataset(_0x55de0d,_0x23cff8[_0x4a420d(0x145)]),_0x23475b=loadCurrentBusinessGroup(_0x55de0d,_0x4192dc);if(_0x23475b!==_0x5ac34e)throw CliErrors[_0x4a420d(0x151)](_0x4a420d(0x155),'Expected\x20'+JSON[_0x4a420d(0x144)](displayBusinessGroup(_0x5ac34e))+_0x4a420d(0x127)+JSON[_0x4a420d(0x144)](displayBusinessGroup(_0x23475b))+'.');_0xf2e1b3={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x23475b)}};}else!_0x2bc886&&(_0xf2e1b3={'verified':!![],'status':_0x4a420d(0x120),'afterReadback':{'businessGroup':displayBusinessGroup(_0x4bbbb1)}});const _0x2ec7bc={'operation':_0x4a420d(0x121),'appCode':_0x232289,'selector':{'code':_0x23cff8[_0x4a420d(0x145)]},'dataset':{'id':_0x23cff8['id'],'code':_0x23cff8['code'],'name':_0x23cff8[_0x4a420d(0x141)],'sourceType':_0x23cff8[_0x4a420d(0x131)]},'before':{'businessGroup':displayBusinessGroup(_0x4bbbb1)},'after':{'businessGroup':displayBusinessGroup(_0x5ac34e)},'changed':_0x2bc886,'dryRun':_0x91e2cb,'submitted':_0x2bc886&&!_0x91e2cb,'backend':{'method':_0x25bdde[_0x4a420d(0x111)],'path':_0x25bdde[_0x4a420d(0x14d)],'payload':_0x25bdde[_0x4a420d(0x117)]},..._0xf2e1b3?{'verification':_0xf2e1b3}:{},'warnings':[]};return{'ok':!![],'data':_0x2ec7bc,'message':_0x2bc886?_0x91e2cb?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x23cff8['code']:_0x4a420d(0x14c)+_0x23cff8[_0x4a420d(0x145)]:_0x4a420d(0x11a)+_0x23cff8[_0x4a420d(0x145)]};}export const datasetBusinessGroupUpdate={'service':a66_0x56f8ad(0x118),'command':a66_0x56f8ad(0x147),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':'business-group','type':a66_0x56f8ad(0x119),'required':!![],'description':a66_0x56f8ad(0x125)},{'name':a66_0x56f8ad(0x149),'type':a66_0x56f8ad(0x119),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x53892c){validateInput(readBusinessGroupUpdateInput(_0x53892c));},async 'dryRun'(_0x8df3ee){const _0x1cee54=a66_0x56f8ad,_0x82a872=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x8df3ee[_0x1cee54(0x11b)],'input':readBusinessGroupUpdateInput(_0x8df3ee),'dryRun':!![]});return{'method':_0x82a872[_0x1cee54(0x123)][_0x1cee54(0x136)][_0x1cee54(0x111)],'url':_0x82a872[_0x1cee54(0x123)][_0x1cee54(0x136)][_0x1cee54(0x14d)],'body':_0x82a872[_0x1cee54(0x123)][_0x1cee54(0x136)]['payload'],'description':_0x82a872[_0x1cee54(0x132)],..._0x82a872[_0x1cee54(0x123)]};},async 'execute'(_0x265109){const _0x47e63c=a66_0x56f8ad;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x265109[_0x47e63c(0x11b)],'input':readBusinessGroupUpdateInput(_0x265109),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x2f4574){const _0x3f5988=a66_0x56f8ad,_0x431b88=_0x2f4574[_0x3f5988(0x130)](_0x3f5988(0x149));return{'code':trim(_0x2f4574[_0x3f5988(0x130)](_0x3f5988(0x145))),'businessGroup':_0x2f4574[_0x3f5988(0x130)](_0x3f5988(0x140)),'expectBusinessGroup':_0x431b88===undefined||_0x431b88===''?undefined:_0x431b88};}function validateInput(_0x33e4e3){const _0x1ebacd=a66_0x56f8ad;if(!trim(_0x33e4e3[_0x1ebacd(0x145)]))throw CliErrors['validation'](_0x1ebacd(0x139));if(_0x33e4e3[_0x1ebacd(0x110)]===undefined)throw CliErrors[_0x1ebacd(0x13b)]('--business-group\x20is\x20required');if(!trim(_0x33e4e3[_0x1ebacd(0x110)]))throw CliErrors[_0x1ebacd(0x13b)](_0x1ebacd(0x113));}function assertBusinessGroupUpdateSupported(_0x4bfbd5,_0x199f9f){const _0x542c57=a66_0x56f8ad;if(_0x4bfbd5[_0x542c57(0x131)]===_0x542c57(0x12c)&&!_0x199f9f)throw CliErrors[_0x542c57(0x13b)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x5ce44a,_0x2e6ddc){const _0x5a9883=a66_0x56f8ad,_0x37267e=asPlainObject(_0x5ce44a[_0x5a9883(0x118)]),_0xd32c47=asPlainObject(_0x5ce44a['dbtableConfig']),_0x996a47=resolveSourceType(_0x5ce44a,_0x37267e,_0xd32c47),_0x484f57=firstString(_0x5ce44a['modelCode'],_0x5ce44a[_0x5a9883(0x145)],_0x37267e[_0x5a9883(0x14b)],_0x2e6ddc)||_0x2e6ddc;return{'id':firstNumber(_0x5ce44a[_0x5a9883(0x11f)],_0x5ce44a['id'],_0x37267e[_0x5a9883(0x12d)])??firstString(_0x5ce44a['modelId'],_0x5ce44a['id'],_0x37267e[_0x5a9883(0x12d)])??null,'code':_0x484f57,'name':firstString(_0x5ce44a[_0x5a9883(0x141)],_0x37267e[_0x5a9883(0x13c)],_0x37267e[_0x5a9883(0x141)])||null,'sourceType':_0x996a47,'dbTableSelector':_0x996a47==='DB_TABLE'?{'dbLinkId':firstNumber(_0xd32c47['dbId']),'tableName':firstString(_0xd32c47[_0x5a9883(0x12b)])||null}:null};}function resolveSourceType(_0x57f74f,_0x2c355c,_0x293ae1){const _0x3f16e6=a66_0x56f8ad,_0x376517=firstString(_0x57f74f[_0x3f16e6(0x10f)],_0x57f74f[_0x3f16e6(0x131)],_0x2c355c[_0x3f16e6(0x10f)],_0x2c355c[_0x3f16e6(0x131)])?.['trim']()[_0x3f16e6(0x133)]();if(_0x376517===_0x3f16e6(0x12c)||_0x376517==='METADATA')return _0x376517;if(Object[_0x3f16e6(0x14f)](_0x293ae1)['length']>0x0)return _0x3f16e6(0x12c);throw CliErrors[_0x3f16e6(0x13b)](_0x3f16e6(0x13d));}function loadCurrentBusinessGroup(_0xec3c70,_0x5652e0){const _0x20a7de=a66_0x56f8ad,_0x36e85e=readBusinessGroupFromDatasetDetail(_0xec3c70,_0x5652e0[_0x20a7de(0x131)]);if(_0x36e85e['found'])return normalizeBusinessGroup(_0x36e85e[_0x20a7de(0x129)]);return'';}function readBusinessGroupFromDatasetDetail(_0x564ca8,_0x33c988){const _0x23bc37=a66_0x56f8ad,_0x1ddf72=asPlainObject(_0x564ca8[_0x23bc37(0x118)]),_0x333b68=firstPresent(_0x564ca8[_0x23bc37(0x110)]);if(_0x333b68[_0x23bc37(0x143)])return _0x333b68;const _0x4ccf5e=firstPresent(_0x1ddf72[_0x23bc37(0x110)]);if(_0x4ccf5e[_0x23bc37(0x143)])return _0x4ccf5e;if(_0x33c988==='DB_TABLE')return{'found':![]};const _0x45cbde=readBusinessGroupFromExtend(_0x564ca8['extend']);if(_0x45cbde['found'])return _0x45cbde;return readBusinessGroupFromExtend(_0x1ddf72['extend']);}function readBusinessGroupFromExtend(_0x5d0c26){const _0x507f28=a66_0x56f8ad;if(_0x5d0c26===undefined||_0x5d0c26===null||_0x5d0c26==='')return{'found':![]};if(typeof _0x5d0c26===_0x507f28(0x119))try{const _0x153e39=JSON[_0x507f28(0x122)](_0x5d0c26);return readBusinessGroupFromExtend(_0x153e39);}catch{return{'found':![]};}const _0x4e0550=asPlainObject(_0x5d0c26);if(Object[_0x507f28(0x114)][_0x507f28(0x154)][_0x507f28(0x12a)](_0x4e0550,'businessGroup'))return{'found':!![],'value':_0x4e0550['businessGroup']};return{'found':![]};}function a66_0x1492(_0x51b98b,_0x2b611e){_0x51b98b=_0x51b98b-0x10f;const _0x49d0ef=a66_0x49d0();let _0x1492ca=_0x49d0ef[_0x51b98b];return _0x1492ca;}function firstPresent(..._0x1b7a42){for(const _0x4b2f1a of _0x1b7a42){if(_0x4b2f1a!==undefined&&_0x4b2f1a!==null)return{'found':!![],'value':_0x4b2f1a};}return{'found':![]};}function assertExpectedBusinessGroup(_0x271cb6,_0x1f87bf){const _0x1d7e8e=a66_0x56f8ad;if(_0x1f87bf===undefined)return;const _0x377b65=normalizeBusinessGroupArgument(_0x1f87bf);if(_0x271cb6!==_0x377b65)throw CliErrors[_0x1d7e8e(0x13b)](_0x1d7e8e(0x128),_0x1d7e8e(0x148)+JSON[_0x1d7e8e(0x144)](_0x377b65)+_0x1d7e8e(0x127)+JSON[_0x1d7e8e(0x144)](_0x271cb6));}function buildBackendPlan(_0x4cfd37,_0x1e98c4,_0x13e84b){const _0x473895=a66_0x56f8ad;if(_0x1e98c4[_0x473895(0x131)]===_0x473895(0x12c)){if(!_0x1e98c4[_0x473895(0x115)]||_0x1e98c4[_0x473895(0x115)]['dbLinkId']===null||!_0x1e98c4[_0x473895(0x115)][_0x473895(0x12b)])throw CliErrors[_0x473895(0x13b)](_0x473895(0x12e),_0x473895(0x152));return{'kind':_0x473895(0x14a),'method':_0x473895(0x124),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x1e98c4[_0x473895(0x115)][_0x473895(0x13f)],'tableName':_0x1e98c4[_0x473895(0x115)]['tableName'],'businessGroup':_0x13e84b}};}return{'kind':_0x473895(0x11c),'method':_0x473895(0x124),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x4cfd37,'datasetCode':_0x1e98c4[_0x473895(0x145)],'businessGroup':_0x13e84b}};}function normalizeBusinessGroup(_0x52e41a){if(_0x52e41a===undefined||_0x52e41a===null)return'';return String(_0x52e41a)['trim']();}function normalizeBusinessGroupArgument(_0x25ef57){const _0x5e6128=normalizeBusinessGroup(_0x25ef57);return _0x5e6128===UNGROUPED_BUSINESS_GROUP?'':_0x5e6128;}function displayBusinessGroup(_0x14d71b){return _0x14d71b||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x3632dd){const _0x371295=a66_0x56f8ad;if(!_0x3632dd||typeof _0x3632dd!=='object'||Array[_0x371295(0x116)](_0x3632dd))return{};return _0x3632dd;}function a66_0x49d0(){const _0x198e12=['keys','16wTccMX','apiError','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','/smartapi/dblink/updateTableBusinessGroup','hasOwnProperty','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','181125HRoRrX','1002eAwJXm','source','businessGroup','method','234492KvWsgK','--business-group\x20must\x20not\x20be\x20blank','prototype','dbTableSelector','isArray','payload','dataset','string','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','appCode','metadata','ungrouped','kind','modelId','unchanged','update','parse','data','POST','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','isFinite',',\x20actual\x20','Expectation\x20mismatch\x20at\x20businessGroup','value','call','tableName','DB_TABLE','datasetId','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','expectBusinessGroup','str','sourceType','message','toUpperCase','718860BnvFir','4MZAdmW','backend','trim','8AsIsDQ','--code\x20is\x20required','number','validation','datasetName','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','18479890OshPoG','dbLinkId','business-group','name','2167880JNmXIw','found','stringify','code','19439QlScCj','business-group-update','Expected\x20','expect-business-group','db-table','datasetCode','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','path','3494133xiaOKU'];a66_0x49d0=function(){return _0x198e12;};return a66_0x49d0();}function firstString(..._0x2b5884){const _0x5c28f1=a66_0x56f8ad;for(const _0x737104 of _0x2b5884){if(typeof _0x737104===_0x5c28f1(0x119)&&_0x737104[_0x5c28f1(0x137)]())return _0x737104[_0x5c28f1(0x137)]();if(typeof _0x737104===_0x5c28f1(0x13a)&&Number[_0x5c28f1(0x126)](_0x737104))return String(_0x737104);}return undefined;}function firstNumber(..._0x45b5c8){const _0x152e21=a66_0x56f8ad;for(const _0x284682 of _0x45b5c8){if(typeof _0x284682===_0x152e21(0x13a)&&Number[_0x152e21(0x126)](_0x284682))return _0x284682;if(typeof _0x284682==='string'&&_0x284682['trim']()&&Number[_0x152e21(0x126)](Number(_0x284682)))return Number(_0x284682);}return null;}function trim(_0xd8df54){return String(_0xd8df54||'')['trim']();}
|
|
1
|
+
const a66_0x159c0a=a66_0x2e62;(function(_0x496be6,_0x505f29){const _0x321962=a66_0x2e62,_0x1a0182=_0x496be6();while(!![]){try{const _0x9bc492=parseInt(_0x321962(0x1a9))/0x1*(-parseInt(_0x321962(0x1dd))/0x2)+parseInt(_0x321962(0x1a8))/0x3+parseInt(_0x321962(0x1d7))/0x4+-parseInt(_0x321962(0x1ae))/0x5*(-parseInt(_0x321962(0x1d4))/0x6)+-parseInt(_0x321962(0x1d3))/0x7*(-parseInt(_0x321962(0x1ac))/0x8)+parseInt(_0x321962(0x1a7))/0x9*(parseInt(_0x321962(0x1e8))/0xa)+parseInt(_0x321962(0x1e9))/0xb*(-parseInt(_0x321962(0x1e0))/0xc);if(_0x9bc492===_0x505f29)break;else _0x1a0182['push'](_0x1a0182['shift']());}catch(_0x388dea){_0x1a0182['push'](_0x1a0182['shift']());}}}(a66_0x1e5a,0x90f5f));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH=a66_0x159c0a(0x1e5),UNGROUPED_BUSINESS_GROUP=a66_0x159c0a(0x1c2);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0xdc7d96,input:_0x57edcd,dryRun:_0x252a35}){const _0x2eee5=a66_0x159c0a;validateInput(_0x57edcd);const _0x3434be=normalizeBusinessGroupArgument(_0x57edcd[_0x2eee5(0x1ba)]),_0x50b7e8=await getDatasetDetail(_0x57edcd[_0x2eee5(0x1bf)]),_0x550e4e=resolveBusinessGroupDataset(_0x50b7e8,_0x57edcd[_0x2eee5(0x1bf)]);assertBusinessGroupUpdateSupported(_0x550e4e,_0x3434be);const _0x3a5cc4=loadCurrentBusinessGroup(_0x50b7e8,_0x550e4e);assertExpectedBusinessGroup(_0x3a5cc4,_0x57edcd[_0x2eee5(0x1ab)]);const _0x50ebae=buildBackendPlan(_0xdc7d96,_0x550e4e,_0x3434be),_0x4494ba=_0x3a5cc4!==_0x3434be;let _0x17315c;if(_0x4494ba&&!_0x252a35){_0x50ebae['kind']===_0x2eee5(0x1e6)?await updateDbTableBusinessGroup(_0x50ebae[_0x2eee5(0x1e7)]):await updateErBusinessGroup(_0x50ebae[_0x2eee5(0x1e7)]);const _0x7e26f7=await getDatasetDetail(_0x550e4e['code']),_0x21055f=resolveBusinessGroupDataset(_0x7e26f7,_0x550e4e[_0x2eee5(0x1bf)]),_0x404605=loadCurrentBusinessGroup(_0x7e26f7,_0x21055f);if(_0x404605!==_0x3434be)throw CliErrors[_0x2eee5(0x1ea)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x2eee5(0x1b3)+JSON[_0x2eee5(0x1ca)](displayBusinessGroup(_0x3434be))+_0x2eee5(0x1e3)+JSON[_0x2eee5(0x1ca)](displayBusinessGroup(_0x404605))+'.');_0x17315c={'verified':!![],'status':_0x2eee5(0x1a6),'afterReadback':{'businessGroup':displayBusinessGroup(_0x404605)}};}else!_0x4494ba&&(_0x17315c={'verified':!![],'status':_0x2eee5(0x1df),'afterReadback':{'businessGroup':displayBusinessGroup(_0x3a5cc4)}});const _0x197ce9={'operation':_0x2eee5(0x1dc),'appCode':_0xdc7d96,'selector':{'code':_0x550e4e['code']},'dataset':{'id':_0x550e4e['id'],'code':_0x550e4e[_0x2eee5(0x1bf)],'name':_0x550e4e['name'],'sourceType':_0x550e4e['sourceType']},'before':{'businessGroup':displayBusinessGroup(_0x3a5cc4)},'after':{'businessGroup':displayBusinessGroup(_0x3434be)},'changed':_0x4494ba,'dryRun':_0x252a35,'submitted':_0x4494ba&&!_0x252a35,'backend':{'method':_0x50ebae[_0x2eee5(0x1de)],'path':_0x50ebae[_0x2eee5(0x1a3)],'payload':_0x50ebae[_0x2eee5(0x1e7)]},..._0x17315c?{'verification':_0x17315c}:{},'warnings':[]};return{'ok':!![],'data':_0x197ce9,'message':_0x4494ba?_0x252a35?_0x2eee5(0x1e2)+_0x550e4e[_0x2eee5(0x1bf)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x550e4e[_0x2eee5(0x1bf)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x550e4e[_0x2eee5(0x1bf)]};}export const datasetBusinessGroupUpdate={'service':a66_0x159c0a(0x1cb),'command':a66_0x159c0a(0x1a5),'description':a66_0x159c0a(0x1e4),'risk':a66_0x159c0a(0x1b1),'flags':[CODE_FLAG,{'name':a66_0x159c0a(0x1b7),'type':a66_0x159c0a(0x1ce),'required':!![],'description':a66_0x159c0a(0x1bc)},{'name':a66_0x159c0a(0x1b5),'type':a66_0x159c0a(0x1ce),'required':![],'description':a66_0x159c0a(0x1bd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x12e6a1){validateInput(readBusinessGroupUpdateInput(_0x12e6a1));},async 'dryRun'(_0x36bfeb){const _0x5473c9=a66_0x159c0a,_0x4c61ab=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x36bfeb['appCode'],'input':readBusinessGroupUpdateInput(_0x36bfeb),'dryRun':!![]});return{'method':_0x4c61ab[_0x5473c9(0x1c6)][_0x5473c9(0x1d2)][_0x5473c9(0x1de)],'url':_0x4c61ab['data']['backend'][_0x5473c9(0x1a3)],'body':_0x4c61ab[_0x5473c9(0x1c6)][_0x5473c9(0x1d2)][_0x5473c9(0x1e7)],'description':_0x4c61ab[_0x5473c9(0x1db)],..._0x4c61ab[_0x5473c9(0x1c6)]};},async 'execute'(_0x29f93d){const _0x1b2b8c=a66_0x159c0a;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x29f93d[_0x1b2b8c(0x1c5)],'input':readBusinessGroupUpdateInput(_0x29f93d),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x49576b){const _0x124bce=a66_0x159c0a,_0x1f689e=_0x49576b['str'](_0x124bce(0x1b5));return{'code':trim(_0x49576b[_0x124bce(0x1a2)](_0x124bce(0x1bf))),'businessGroup':_0x49576b[_0x124bce(0x1a2)]('business-group'),'expectBusinessGroup':_0x1f689e===undefined||_0x1f689e===''?undefined:_0x1f689e};}function validateInput(_0x28f26c){const _0x274371=a66_0x159c0a;if(!trim(_0x28f26c[_0x274371(0x1bf)]))throw CliErrors[_0x274371(0x1a0)](_0x274371(0x19e));if(_0x28f26c[_0x274371(0x1ba)]===undefined)throw CliErrors[_0x274371(0x1a0)]('--business-group\x20is\x20required');if(!trim(_0x28f26c[_0x274371(0x1ba)]))throw CliErrors[_0x274371(0x1a0)](_0x274371(0x1b2));}function assertBusinessGroupUpdateSupported(_0x1774f0,_0x41ee83){const _0x5277f4=a66_0x159c0a;if(_0x1774f0['sourceType']===_0x5277f4(0x1cd)&&!_0x41ee83)throw CliErrors[_0x5277f4(0x1a0)](_0x5277f4(0x1eb));}function resolveBusinessGroupDataset(_0x14b1de,_0x39d208){const _0x1a4f59=a66_0x159c0a,_0x4f201e=asPlainObject(_0x14b1de[_0x1a4f59(0x1cb)]),_0x33a989=asPlainObject(_0x14b1de[_0x1a4f59(0x1ad)]),_0xa7ed84=resolveSourceType(_0x14b1de,_0x4f201e,_0x33a989),_0x169781=firstString(_0x14b1de[_0x1a4f59(0x1c8)],_0x14b1de[_0x1a4f59(0x1bf)],_0x4f201e['datasetCode'],_0x39d208)||_0x39d208;return{'id':firstNumber(_0x14b1de[_0x1a4f59(0x1aa)],_0x14b1de['id'],_0x4f201e[_0x1a4f59(0x1a4)])??firstString(_0x14b1de['modelId'],_0x14b1de['id'],_0x4f201e['datasetId'])??null,'code':_0x169781,'name':firstString(_0x14b1de['name'],_0x4f201e[_0x1a4f59(0x1d9)],_0x4f201e[_0x1a4f59(0x1d8)])||null,'sourceType':_0xa7ed84,'dbTableSelector':_0xa7ed84==='DB_TABLE'?{'dbLinkId':firstNumber(_0x33a989[_0x1a4f59(0x1cc)]),'tableName':firstString(_0x33a989[_0x1a4f59(0x1e1)])||null}:null};}function a66_0x2e62(_0x473829,_0x3f8341){_0x473829=_0x473829-0x19e;const _0x1e5a1e=a66_0x1e5a();let _0x2e62ed=_0x1e5a1e[_0x473829];return _0x2e62ed;}function resolveSourceType(_0x4c50e7,_0x1fcdba,_0xce112e){const _0x4c8941=a66_0x159c0a,_0x2f08d1=firstString(_0x4c50e7['source'],_0x4c50e7[_0x4c8941(0x1a1)],_0x1fcdba[_0x4c8941(0x1da)],_0x1fcdba['sourceType'])?.[_0x4c8941(0x1d6)]()[_0x4c8941(0x1c9)]();if(_0x2f08d1==='DB_TABLE'||_0x2f08d1===_0x4c8941(0x1b4))return _0x2f08d1;if(Object[_0x4c8941(0x1d5)](_0xce112e)['length']>0x0)return _0x4c8941(0x1cd);throw CliErrors[_0x4c8941(0x1a0)]('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x2e396e,_0x24a2e3){const _0x56d073=a66_0x159c0a,_0x25a05a=readBusinessGroupFromDatasetDetail(_0x2e396e,_0x24a2e3[_0x56d073(0x1a1)]);if(_0x25a05a['found'])return normalizeBusinessGroup(_0x25a05a[_0x56d073(0x1c7)]);return'';}function readBusinessGroupFromDatasetDetail(_0x3cd7dd,_0x1295ba){const _0x515179=a66_0x159c0a,_0x1e2596=asPlainObject(_0x3cd7dd[_0x515179(0x1cb)]),_0x2b2828=firstPresent(_0x3cd7dd['businessGroup']);if(_0x2b2828[_0x515179(0x1d1)])return _0x2b2828;const _0x6bf24e=firstPresent(_0x1e2596['businessGroup']);if(_0x6bf24e[_0x515179(0x1d1)])return _0x6bf24e;if(_0x1295ba===_0x515179(0x1cd))return{'found':![]};const _0x55128e=readBusinessGroupFromExtend(_0x3cd7dd[_0x515179(0x1cf)]);if(_0x55128e['found'])return _0x55128e;return readBusinessGroupFromExtend(_0x1e2596[_0x515179(0x1cf)]);}function readBusinessGroupFromExtend(_0x4621ac){const _0x193cec=a66_0x159c0a;if(_0x4621ac===undefined||_0x4621ac===null||_0x4621ac==='')return{'found':![]};if(typeof _0x4621ac===_0x193cec(0x1ce))try{const _0x290f04=JSON[_0x193cec(0x1b8)](_0x4621ac);return readBusinessGroupFromExtend(_0x290f04);}catch{return{'found':![]};}const _0x2e4dee=asPlainObject(_0x4621ac);if(Object['prototype'][_0x193cec(0x1c3)][_0x193cec(0x19f)](_0x2e4dee,_0x193cec(0x1ba)))return{'found':!![],'value':_0x2e4dee['businessGroup']};return{'found':![]};}function firstPresent(..._0x3ac858){for(const _0x37ee6d of _0x3ac858){if(_0x37ee6d!==undefined&&_0x37ee6d!==null)return{'found':!![],'value':_0x37ee6d};}return{'found':![]};}function assertExpectedBusinessGroup(_0x1e02c9,_0x282ac5){const _0x31cfd0=a66_0x159c0a;if(_0x282ac5===undefined)return;const _0x4f8051=normalizeBusinessGroupArgument(_0x282ac5);if(_0x1e02c9!==_0x4f8051)throw CliErrors[_0x31cfd0(0x1a0)](_0x31cfd0(0x1af),_0x31cfd0(0x1b3)+JSON[_0x31cfd0(0x1ca)](_0x4f8051)+_0x31cfd0(0x1e3)+JSON[_0x31cfd0(0x1ca)](_0x1e02c9));}function buildBackendPlan(_0x2bda59,_0x5490dd,_0x526d89){const _0x2854e3=a66_0x159c0a;if(_0x5490dd[_0x2854e3(0x1a1)]===_0x2854e3(0x1cd)){if(!_0x5490dd[_0x2854e3(0x1c0)]||_0x5490dd['dbTableSelector'][_0x2854e3(0x1b9)]===null||!_0x5490dd[_0x2854e3(0x1c0)][_0x2854e3(0x1e1)])throw CliErrors[_0x2854e3(0x1a0)](_0x2854e3(0x1c1),_0x2854e3(0x1d0));return{'kind':_0x2854e3(0x1e6),'method':_0x2854e3(0x1c4),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x5490dd[_0x2854e3(0x1c0)][_0x2854e3(0x1b9)],'tableName':_0x5490dd[_0x2854e3(0x1c0)][_0x2854e3(0x1e1)],'businessGroup':_0x526d89}};}return{'kind':'metadata','method':_0x2854e3(0x1c4),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x2bda59,'datasetCode':_0x5490dd[_0x2854e3(0x1bf)],'businessGroup':_0x526d89}};}function normalizeBusinessGroup(_0xe92181){if(_0xe92181===undefined||_0xe92181===null)return'';return String(_0xe92181)['trim']();}function normalizeBusinessGroupArgument(_0x3bfc69){const _0x37cbb0=normalizeBusinessGroup(_0x3bfc69);return _0x37cbb0===UNGROUPED_BUSINESS_GROUP?'':_0x37cbb0;}function a66_0x1e5a(){const _0x229943=['datasetName','source','message','update','1237386BpooJE','method','unchanged','204dWWNfg','tableName','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20',',\x20actual\x20','Update\x20business\x20scenario\x20group','/smartapi/question/er-config/business-group/edit','db-table','payload','30XXMesa','1464463vcnPBQ','apiError','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','--code\x20is\x20required','call','validation','sourceType','str','path','datasetId','business-group-update','matched','2852163ZvXAuo','1493409uTFKmp','1qgTPzJ','modelId','expectBusinessGroup','8REUtpB','dbtableConfig','1365ntpEsU','Expectation\x20mismatch\x20at\x20businessGroup','object','write','--business-group\x20must\x20not\x20be\x20blank','Expected\x20','METADATA','expect-business-group','number','business-group','parse','dbLinkId','businessGroup','isArray','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','isFinite','code','dbTableSelector','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','ungrouped','hasOwnProperty','POST','appCode','data','value','modelCode','toUpperCase','stringify','dataset','dbId','DB_TABLE','string','extend','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','found','backend','7144718rmpkvx','11238eZTMex','keys','trim','1980744fgldlt','name'];a66_0x1e5a=function(){return _0x229943;};return a66_0x1e5a();}function displayBusinessGroup(_0x29696a){return _0x29696a||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x2371e2){const _0x3e3839=a66_0x159c0a;if(!_0x2371e2||typeof _0x2371e2!==_0x3e3839(0x1b0)||Array[_0x3e3839(0x1bb)](_0x2371e2))return{};return _0x2371e2;}function firstString(..._0x5668d0){const _0x5a3e75=a66_0x159c0a;for(const _0x30201d of _0x5668d0){if(typeof _0x30201d===_0x5a3e75(0x1ce)&&_0x30201d[_0x5a3e75(0x1d6)]())return _0x30201d[_0x5a3e75(0x1d6)]();if(typeof _0x30201d===_0x5a3e75(0x1b6)&&Number[_0x5a3e75(0x1be)](_0x30201d))return String(_0x30201d);}return undefined;}function firstNumber(..._0x672157){const _0x2ba9a7=a66_0x159c0a;for(const _0x462253 of _0x672157){if(typeof _0x462253===_0x2ba9a7(0x1b6)&&Number[_0x2ba9a7(0x1be)](_0x462253))return _0x462253;if(typeof _0x462253==='string'&&_0x462253[_0x2ba9a7(0x1d6)]()&&Number['isFinite'](Number(_0x462253)))return Number(_0x462253);}return null;}function trim(_0x111f13){return String(_0x111f13||'')['trim']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a67_0x298036=a67_0x2d03;function a67_0x58be(){const _0x3f7869=['2516907mtSJme','4gVrdiW','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','10qayihp','Found\x20','5CLhQEg','num','groups','12tZntjE','1180506QNHqCc','length','2168kNSbHd','business-groups','dbid','550759XjgqRy','47356SgYIGu','266sOCwMW','appCode','map','10669212HZTDKV','4748184HHTDHF'];a67_0x58be=function(){return _0x3f7869;};return a67_0x58be();}(function(_0x1bbb93,_0x4ca9ce){const _0x4d4d59=a67_0x2d03,_0x1dc7c3=_0x1bbb93();while(!![]){try{const _0x15efb2=parseInt(_0x4d4d59(0x82))/0x1*(-parseInt(_0x4d4d59(0x7b))/0x2)+parseInt(_0x4d4d59(0x88))/0x3*(parseInt(_0x4d4d59(0x89))/0x4)+-parseInt(_0x4d4d59(0x78))/0x5*(-parseInt(_0x4d4d59(0x7c))/0x6)+-parseInt(_0x4d4d59(0x83))/0x7*(-parseInt(_0x4d4d59(0x7e))/0x8)+parseInt(_0x4d4d59(0x87))/0x9+parseInt(_0x4d4d59(0x8b))/0xa*(parseInt(_0x4d4d59(0x81))/0xb)+-parseInt(_0x4d4d59(0x86))/0xc;if(_0x15efb2===_0x4ca9ce)break;else _0x1dc7c3['push'](_0x1dc7c3['shift']());}catch(_0x294e3b){_0x1dc7c3['push'](_0x1dc7c3['shift']());}}}(a67_0x58be,0x6df7a));function a67_0x2d03(_0x2064dc,_0x1c9bdd){_0x2064dc=_0x2064dc-0x77;const _0x58bee9=a67_0x58be();let _0x2d03d4=_0x58bee9[_0x2064dc];return _0x2d03d4;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':'dataset','command':a67_0x298036(0x7f),'description':'List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','risk':'read','flags':[{'name':a67_0x298036(0x80),'type':'number','required':!![],'description':a67_0x298036(0x8a)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x445c84){const _0x495003=a67_0x298036,_0x10f019=_0x445c84[_0x495003(0x79)](_0x495003(0x80)),_0x491b61=await getErBusinessGroupSummary(_0x445c84[_0x495003(0x84)],_0x10f019),_0x302ec3=_0x491b61[_0x495003(0x7a)][_0x495003(0x85)](_0xf6c4bf=>({..._0xf6c4bf,'businessGroup':_0xf6c4bf['businessGroup']['trim']()||'ungrouped'}));return{'ok':!![],'data':{..._0x491b61,'groups':_0x302ec3,'scope':'DB_TABLE'},'message':_0x495003(0x77)+_0x302ec3[_0x495003(0x7d)]+'\x20business\x20group(s)\x20for\x20database\x20connection\x20'+_0x10f019};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0xdb5fc5=a68_0x6680;(function(_0x388a75,_0x1158f8){const _0x150820=a68_0x6680,_0x8ab425=_0x388a75();while(!![]){try{const _0xdc9260=-parseInt(_0x150820(0x1ba))/0x1+parseInt(_0x150820(0x1be))/0x2+-parseInt(_0x150820(0x1b4))/0x3*(-parseInt(_0x150820(0x1b9))/0x4)+-parseInt(_0x150820(0x1bf))/0x5*(parseInt(_0x150820(0x1a7))/0x6)+parseInt(_0x150820(0x1a4))/0x7*(-parseInt(_0x150820(0x1aa))/0x8)+-parseInt(_0x150820(0x1b8))/0x9+parseInt(_0x150820(0x1b6))/0xa;if(_0xdc9260===_0x1158f8)break;else _0x8ab425['push'](_0x8ab425['shift']());}catch(_0x5db94d){_0x8ab425['push'](_0x8ab425['shift']());}}}(a68_0x4806,0xbd518));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0xdb5fc5(0x1af),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a68_0xdb5fc5(0x19f)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0xdb5fc5(0x1a5);function valueToString(_0x5d58e1){const _0x30cdaa=a68_0xdb5fc5;return _0x5d58e1==null?'':String(_0x5d58e1)[_0x30cdaa(0x1a3)]();}function getDatasetCode(_0x3d2f50){const _0x562314=a68_0xdb5fc5;return valueToString(_0x3d2f50[_0x562314(0x1a9)]??_0x3d2f50[_0x562314(0x1b2)]??_0x3d2f50['dataset']?.[_0x562314(0x1bb)]);}function getDatasetName(_0x1ca96d){const _0x581ee3=a68_0xdb5fc5;return valueToString(_0x1ca96d['name']??_0x1ca96d['dataset']?.[_0x581ee3(0x1ac)])||'unknown';}function a68_0x4806(){const _0x452513=['\x20is\x20','643959kTpyhy','SQL\x20schema\x20validation','15489240jotcUp','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','3179583AKevkx','24ycHckQ','49812JDILLR','datasetCode','join','UNKNOWN','1566114lMhjHA','604700RrRvbu','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','tableName','getOne','dbtableConfig','The\x20current\x20dataset\x20\x22','filter','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','validation','length','dataset','trim','952KVbwJI','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','48xrYDMh','toUpperCase','code','86696hqVzWc','dbtable','datasetName','source','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','lovrabet','sourceType','object','modelCode'];a68_0x4806=function(){return _0x452513;};return a68_0x4806();}function getDatasetSource(_0x1bbf03){const _0x3807a4=a68_0xdb5fc5;return valueToString(_0x1bbf03[_0x3807a4(0x1ad)]??_0x1bbf03[_0x3807a4(0x1a2)]?.[_0x3807a4(0x1b0)])[_0x3807a4(0x1a8)]();}function getDbtableConfig(_0x5f21db){const _0xe8d858=a68_0xdb5fc5,_0x530226=_0x5f21db[_0xe8d858(0x19c)]??_0x5f21db[_0xe8d858(0x1ab)];return _0x530226&&typeof _0x530226===_0xe8d858(0x1b1)?_0x530226:{};}export function isDbTableBackedDataset(_0x201a8f){const _0x5756a6=a68_0xdb5fc5,_0x227198=getDatasetSource(_0x201a8f);if(_0x227198==='METADATA')return![];const _0xadd847=getDbtableConfig(_0x201a8f),_0x5ab656=_0xadd847['dbId']??_0xadd847['id'],_0x36f9c3=valueToString(_0xadd847[_0x5756a6(0x19a)]??_0x201a8f[_0x5756a6(0x19a)]??_0x201a8f['dataset']?.[_0x5756a6(0x19a)]);return _0x5ab656!==undefined&&_0x5ab656!==null&&_0x36f9c3[_0x5756a6(0x1a1)]>0x0;}function a68_0x6680(_0xaebd8e,_0x57c6a8){_0xaebd8e=_0xaebd8e-0x19a;const _0x4806b6=a68_0x4806();let _0x668036=_0x4806b6[_0xaebd8e];return _0x668036;}export function filterDbTableBackedDatasets(_0x37aa6a){const _0x35bc56=a68_0xdb5fc5;return _0x37aa6a[_0x35bc56(0x19e)](_0x295fe4=>isDbTableBackedDataset(_0x295fe4));}export function buildDbTableBackedRequirementMessage(_0x5887bd,_0x298840=a68_0xdb5fc5(0x1b5)){const _0x9b2507=a68_0xdb5fc5,_0xc48983=getDatasetSource(_0x5887bd)||_0x9b2507(0x1bd),_0x403384=getDatasetName(_0x5887bd),_0x2243c1=getDatasetCode(_0x5887bd),_0xa942a7=_0x2243c1?'\x20('+_0x2243c1+')':'';return[_0x9b2507(0x19d)+_0x403384+'\x22'+_0xa942a7+_0x9b2507(0x1b3)+_0xc48983+_0x9b2507(0x1a6)+_0x298840+'.',_0x9b2507(0x1b7),_0x9b2507(0x1c0),_0x9b2507(0x1ae)+RUNTIME_DATA_ACCESS_COMMANDS[_0x9b2507(0x19e)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x9b2507(0x19b)]+'.'][_0x9b2507(0x1bc)]('\x20');}export function assertDatasetIsDbTableBacked(_0x365ccc,_0x4f9be4){const _0x58e84f=a68_0xdb5fc5;if(!isDbTableBackedDataset(_0x365ccc))throw CliErrors[_0x58e84f(0x1a0)](buildDbTableBackedRequirementMessage(_0x365ccc,_0x4f9be4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a69_0x4841(){const _0x1cd061=['214692rqCoRh','16REbfyK','496340EwbKmM','159RuhWYU','261880NrDjWD','write','dataset','643242uVRUgd','create','67216KgFyDa','8792541mdgVbs','2243535JQevDe','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections'];a69_0x4841=function(){return _0x1cd061;};return a69_0x4841();}function a69_0x1056(_0x1ebec0,_0x117f89){_0x1ebec0=_0x1ebec0-0x16e;const _0x48418f=a69_0x4841();let _0x105610=_0x48418f[_0x1ebec0];return _0x105610;}const a69_0x553be1=a69_0x1056;(function(_0x444ebb,_0x252fca){const _0x57920d=a69_0x1056,_0x1efdf9=_0x444ebb();while(!![]){try{const _0x23bd59=-parseInt(_0x57920d(0x170))/0x1+-parseInt(_0x57920d(0x173))/0x2+parseInt(_0x57920d(0x16f))/0x3*(-parseInt(_0x57920d(0x175))/0x4)+-parseInt(_0x57920d(0x16e))/0x5+parseInt(_0x57920d(0x179))/0x6+parseInt(_0x57920d(0x177))/0x7+-parseInt(_0x57920d(0x17a))/0x8*(-parseInt(_0x57920d(0x176))/0x9);if(_0x23bd59===_0x252fca)break;else _0x1efdf9['push'](_0x1efdf9['shift']());}catch(_0x38cced){_0x1efdf9['push'](_0x1efdf9['shift']());}}}(a69_0x4841,0xb3e24));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':a69_0x553be1(0x172),'command':'cross-relation-create','description':a69_0x553be1(0x178),'risk':a69_0x553be1(0x171),'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 _0x49d51a=>validateCrossRelation(_0x49d51a,a69_0x553be1(0x174)),'dryRun':_0x2a2ac7=>previewCrossRelation(_0x2a2ac7,'create'),'execute':_0x24630a=>executeCrossRelation(_0x24630a,a69_0x553be1(0x174),createCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x33d8b2=a70_0x57cc;function a70_0x57cc(_0x3f27db,_0x45cc36){_0x3f27db=_0x3f27db-0x194;const _0xc4b8df=a70_0xc4b8();let _0x57cc9a=_0xc4b8df[_0x3f27db];return _0x57cc9a;}(function(_0x149216,_0x48bc1d){const _0xb0cc4d=a70_0x57cc,_0x3c6fe7=_0x149216();while(!![]){try{const _0xcc6d94=-parseInt(_0xb0cc4d(0x19d))/0x1*(-parseInt(_0xb0cc4d(0x19e))/0x2)+-parseInt(_0xb0cc4d(0x196))/0x3*(-parseInt(_0xb0cc4d(0x197))/0x4)+-parseInt(_0xb0cc4d(0x198))/0x5+-parseInt(_0xb0cc4d(0x199))/0x6+-parseInt(_0xb0cc4d(0x19f))/0x7+-parseInt(_0xb0cc4d(0x1a0))/0x8*(-parseInt(_0xb0cc4d(0x195))/0x9)+parseInt(_0xb0cc4d(0x19a))/0xa;if(_0xcc6d94===_0x48bc1d)break;else _0x3c6fe7['push'](_0x3c6fe7['shift']());}catch(_0x12c5cd){_0x3c6fe7['push'](_0x3c6fe7['shift']());}}}(a70_0xc4b8,0xc426f));function a70_0xc4b8(){const _0x210d54=['51wBLWZl','126588rFXFAu','1542970IXomKJ','2911878nSfCYh','6152010ijGoXd','dataset','cross-relation-delete','1aAnQBd','1982578pQczcp','10657024zrUgQx','1114616MDyIAv','delete','63FvUBwF'];a70_0xc4b8=function(){return _0x210d54;};return a70_0xc4b8();}import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationDelete={'service':a70_0x33d8b2(0x19b),'command':a70_0x33d8b2(0x19c),'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 _0x4973e1=>validateCrossRelation(_0x4973e1,a70_0x33d8b2(0x194)),'dryRun':_0xed2e1a=>previewCrossRelation(_0xed2e1a,a70_0x33d8b2(0x194)),'execute':_0x1cfd7b=>executeCrossRelation(_0x1cfd7b,a70_0x33d8b2(0x194),deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x3f1eeb=a71_0x1375;(function(_0x1ec5d6,_0x4e438d){const _0x32f1e2=a71_0x1375,_0x304ce6=_0x1ec5d6();while(!![]){try{const _0x26f01b=-parseInt(_0x32f1e2(0xb6))/0x1*(-parseInt(_0x32f1e2(0xb9))/0x2)+-parseInt(_0x32f1e2(0xb3))/0x3+-parseInt(_0x32f1e2(0xbb))/0x4+-parseInt(_0x32f1e2(0xae))/0x5*(-parseInt(_0x32f1e2(0xaf))/0x6)+-parseInt(_0x32f1e2(0xb1))/0x7*(parseInt(_0x32f1e2(0xb4))/0x8)+parseInt(_0x32f1e2(0xba))/0x9*(parseInt(_0x32f1e2(0xbc))/0xa)+-parseInt(_0x32f1e2(0xb8))/0xb*(-parseInt(_0x32f1e2(0xb7))/0xc);if(_0x26f01b===_0x4e438d)break;else _0x304ce6['push'](_0x304ce6['shift']());}catch(_0x3e6327){_0x304ce6['push'](_0x304ce6['shift']());}}}(a71_0x33e5,0x7c546));import{queryCrossDbRelations}from'../../core/api-client.js';function a71_0x33e5(){const _0x26b14f=['length','cross-relation-list','496695XUwHNB','6cPRSPB','map','5769379GeVERH','dataset','2090754LuKUod','8hHIEph','appCode','246307NlkUMp','2303928srpeFH','77COtTZI','2rKPYke','24093wOEHeZ','2138456HRkPjm','3270sniSHx','list','read','Cross-database\x20relations:\x20','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection'];a71_0x33e5=function(){return _0x26b14f;};return a71_0x33e5();}import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a71_0x1375(_0x4ef60d,_0xb36301){_0x4ef60d=_0x4ef60d-0xa8;const _0x33e509=a71_0x33e5();let _0x137547=_0x33e509[_0x4ef60d];return _0x137547;}export const datasetCrossRelationList={'service':a71_0x3f1eeb(0xb2),'command':a71_0x3f1eeb(0xad),'description':a71_0x3f1eeb(0xab),'risk':a71_0x3f1eeb(0xa9),'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 _0xa7b8a8=>validateCrossRelation(_0xa7b8a8,a71_0x3f1eeb(0xa8)),async 'execute'(_0x558d95){const _0x10db58=a71_0x3f1eeb,_0x55ff8a=await resolveCrossRelationQuery(_0x558d95),_0x1719a3=await queryCrossDbRelations(_0x55ff8a);return{'ok':!![],'data':{'appCode':_0x558d95[_0x10db58(0xb5)],'selector':_0x55ff8a,'total':_0x1719a3[_0x10db58(0xac)],'relations':_0x1719a3[_0x10db58(0xb0)](projectCrossRelation)},'message':_0x10db58(0xaa)+_0x1719a3['length']+'\x20relation(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0xa2c321=a72_0x14fc;(function(_0x1784ac,_0x1ba4eb){const _0x4e0f3f=a72_0x14fc,_0x500ae8=_0x1784ac();while(!![]){try{const _0x1c577f=parseInt(_0x4e0f3f(0x80))/0x1*(-parseInt(_0x4e0f3f(0x91))/0x2)+-parseInt(_0x4e0f3f(0x7c))/0x3*(-parseInt(_0x4e0f3f(0x84))/0x4)+-parseInt(_0x4e0f3f(0x95))/0x5+parseInt(_0x4e0f3f(0x97))/0x6+-parseInt(_0x4e0f3f(0x8b))/0x7+-parseInt(_0x4e0f3f(0x8c))/0x8*(-parseInt(_0x4e0f3f(0x73))/0x9)+-parseInt(_0x4e0f3f(0x8f))/0xa*(-parseInt(_0x4e0f3f(0x86))/0xb);if(_0x1c577f===_0x1ba4eb)break;else _0x500ae8['push'](_0x500ae8['shift']());}catch(_0x27533d){_0x500ae8['push'](_0x500ae8['shift']());}}}(a72_0x507a,0x971ec));function a72_0x507a(){const _0x1ccead=['Dataset\x20','2YveZJL','toDblinkId','toTableName','filter','3417735VszUdg','extend','1678626dkMjgQ','from','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','cardinality','delete','before','relationId','expectedCardinality','flag','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Would\x20','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','datasetCode','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','Cross-database\x20relation\x20','from-datasetcode','toField','list','apiError','from-dblink-id','fromDatasetCode','appCode','multiple\x20cross-database\x20relations\x20matched','length','dbtable','matched','dbId','string','dbtableConfig','DB_TABLE','to-label-column','label_inherited','validation','Invalid\x20--cardinality.','to-column','fromTableName','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','fromField','catch','update','trim','refTableLabelName','includes','\x20write\x20was\x20not\x20verified.','map','POST','flagMissing','dblinkId','1154313gTGzke','storageProfile','toLowerCase','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','some','tableName','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','sourceType','table','154533WjOeqy','defineProperty','fromDatasetName','from-column','990536lIrjQj','to-datasetcode','relationType','isSafeInteger','20qyTWSh','expectedLabel','22782089AkwoZF','body','data','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','toDatasetName','5798674okdneo','32eKtWji','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','str','10zGqSPM'];a72_0x507a=function(){return _0x1ccead;};return a72_0x507a();}import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';function a72_0x14fc(_0xc28cda,_0x51ca1f){_0xc28cda=_0xc28cda-0x6e;const _0x507a3d=a72_0x507a();let _0x14fc62=_0x507a3d[_0xc28cda];return _0x14fc62;}import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x1b91de,_0x41fd84){const _0x3a6e92=a72_0x14fc,_0x1167b9=_0x1b91de[_0x3a6e92(0x8e)](_0x41fd84)[_0x3a6e92(0xc0)]();if(!_0x1167b9)throw CliErrors[_0x3a6e92(0x71)](_0x41fd84);return _0x1167b9;}function explicitDblink(_0x278fc){const _0x5b207e=a72_0x14fc,_0x441462=_0x278fc[_0x5b207e(0x9f)](_0x5b207e(0xab));if(_0x441462===undefined||_0x441462===null)return undefined;const _0x121dda=Number(_0x441462);if(!Number[_0x5b207e(0x83)](_0x121dda)||_0x121dda<=0x0)throw CliErrors[_0x5b207e(0xb8)](_0x5b207e(0xa0));return _0x121dda;}export function validateCrossRelation(_0x16e8f2,_0x2b563e){const _0x588202=a72_0x14fc,_0x85bf39=explicitDblink(_0x16e8f2);if(_0x2b563e===_0x588202(0xa9)){if(!_0x16e8f2[_0x588202(0x8e)](_0x588202(0xa7))[_0x588202(0xc0)]()&&_0x85bf39===undefined)throw CliErrors[_0x588202(0xb8)](_0x588202(0x76));return;}required(_0x16e8f2,_0x588202(0xa7)),required(_0x16e8f2,'from-column');if(_0x2b563e!==_0x588202(0x9b)){required(_0x16e8f2,_0x588202(0x81)),required(_0x16e8f2,_0x588202(0xba));const _0x40d348=_0x16e8f2[_0x588202(0x8e)](_0x588202(0x9a))[_0x588202(0xc0)]();if(_0x40d348&&!CROSS_RELATION_CARDINALITY_FLAG['enum'][_0x588202(0xc2)](_0x40d348))throw CliErrors['validation'](_0x588202(0xb9));}}async function resolveEndpoint(_0x16e0d0){const _0x19801a=a72_0x14fc,_0x3d7f8e=await getDatasetDetail(_0x16e0d0),_0x3ea0a2=_0x3d7f8e?.['dataset']??{};if((_0x3d7f8e?.['source']??_0x3ea0a2[_0x19801a(0x7a)])!==_0x19801a(0xb5))throw CliErrors[_0x19801a(0xb8)](_0x19801a(0x90)+_0x16e0d0+'\x20must\x20be\x20a\x20DB_TABLE\x20dataset.');const _0x5297cf=_0x3d7f8e[_0x19801a(0xb4)]??_0x3d7f8e[_0x19801a(0xb0)]??{};let _0x2ce16b=_0x3d7f8e['extend']??_0x3ea0a2[_0x19801a(0x96)]??{};if(typeof _0x2ce16b===_0x19801a(0xb3))try{_0x2ce16b=_0x2ce16b[_0x19801a(0xc0)]()?JSON['parse'](_0x2ce16b):{};}catch{throw CliErrors[_0x19801a(0xb8)](_0x19801a(0x90)+_0x16e0d0+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x225d81=Number(_0x2ce16b?.['storageProfile']?.[_0x19801a(0xb2)]??_0x3d7f8e[_0x19801a(0x74)]?.[_0x19801a(0xb2)]??_0x3ea0a2['storageProfile']?.[_0x19801a(0xb2)]??_0x5297cf['dbId']??_0x3ea0a2[_0x19801a(0xb2)]??_0x3d7f8e[_0x19801a(0xb2)]),_0x1fc37a=String(_0x3d7f8e[_0x19801a(0x78)]??_0x3ea0a2[_0x19801a(0x78)]??_0x5297cf[_0x19801a(0x78)]??'')[_0x19801a(0xc0)]();if(!Number[_0x19801a(0x83)](_0x225d81)||_0x225d81<=0x0||!_0x1fc37a)throw CliErrors[_0x19801a(0xb8)](_0x19801a(0x90)+_0x16e0d0+'\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.');return{'datasetCode':_0x16e0d0,'dblinkId':_0x225d81,'table':_0x1fc37a};}export async function resolveCrossRelationQuery(_0x2ba8a6){const _0x4f5e41=a72_0x14fc,_0xde3ab6=_0x2ba8a6['str'](_0x4f5e41(0xa7))['trim'](),_0x15529c=explicitDblink(_0x2ba8a6),_0x13b560=_0xde3ab6?await resolveEndpoint(_0xde3ab6):undefined;if(_0x13b560&&_0x15529c!==undefined&&_0x13b560['dblinkId']!==_0x15529c)throw CliErrors['validation'](_0x4f5e41(0xbc));const _0x389942=_0x13b560?.[_0x4f5e41(0x72)]??_0x15529c;if(_0x389942===undefined)throw CliErrors['validation'](_0x4f5e41(0x76));return{'appCode':_0x2ba8a6[_0x4f5e41(0xad)],'fromDblinkId':_0x389942,..._0xde3ab6?{'fromDatasetCode':_0xde3ab6}:{},..._0x2ba8a6[_0x4f5e41(0x8e)](_0x4f5e41(0x7f))[_0x4f5e41(0xc0)]()?{'fromField':_0x2ba8a6[_0x4f5e41(0x8e)]('from-column')[_0x4f5e41(0xc0)]()}:{}};}export function projectCrossRelation(_0x5dcfed){const _0x5c9757=a72_0x14fc;return{'relationId':_0x5dcfed[_0x5c9757(0x9d)],'from':{'source':_0x5c9757(0xb5),'datasetCode':_0x5dcfed['fromDatasetCode'],'datasetName':_0x5dcfed[_0x5c9757(0x7e)],'dblinkId':_0x5dcfed['fromDblinkId'],'table':_0x5dcfed[_0x5c9757(0xbb)],'field':_0x5dcfed[_0x5c9757(0xbd)]},'to':{'source':_0x5c9757(0xb5),'datasetCode':_0x5dcfed['toDatasetCode'],'datasetName':_0x5dcfed[_0x5c9757(0x8a)],'dblinkId':_0x5dcfed['toDblinkId'],'table':_0x5dcfed[_0x5c9757(0x93)],'field':_0x5dcfed[_0x5c9757(0xa8)],'labelField':_0x5dcfed['refTableLabelName']},'relation':{'cardinality':_0x5dcfed[_0x5c9757(0x9a)],'relationType':_0x5dcfed['relationType']}};}function ambiguity(_0x39b757){const _0x1e3352=a72_0x14fc,_0x265607=CliErrors['validation'](_0x1e3352(0x79),_0x1e3352(0x8d));return Object['defineProperty'](_0x265607,_0x1e3352(0x88),{'value':{'candidates':_0x39b757[_0x1e3352(0x6f)](projectCrossRelation)}}),_0x265607;}const sameName=(_0x21ffb4,_0x26c678)=>_0x21ffb4[a72_0xa2c321(0x75)]()===_0x26c678[a72_0xa2c321(0x75)]();function matchesEndpoint(_0xac94b9,_0x2a7ea9,_0x44cfbc,_0x2695db,_0x30161a){const _0xd2ed8c=a72_0xa2c321;return _0xac94b9['fromDblinkId']===_0x2a7ea9[_0xd2ed8c(0x72)]&&sameName(_0xac94b9[_0xd2ed8c(0xbb)],_0x2a7ea9[_0xd2ed8c(0x7b)])&&sameName(_0xac94b9[_0xd2ed8c(0xbd)],_0x44cfbc)&&_0xac94b9[_0xd2ed8c(0x92)]===_0x2695db[_0xd2ed8c(0x72)]&&sameName(_0xac94b9['toTableName'],_0x2695db[_0xd2ed8c(0x7b)])&&sameName(_0xac94b9[_0xd2ed8c(0xa8)],_0x30161a);}export async function prepareCrossRelation(_0x46daf8,_0x2699e2){const _0x305820=a72_0xa2c321,_0x2bfdf1=await resolveEndpoint(required(_0x46daf8,_0x305820(0xa7))),_0x2ffc35=explicitDblink(_0x46daf8);if(_0x2ffc35!==undefined&&_0x2bfdf1[_0x305820(0x72)]!==_0x2ffc35)throw CliErrors[_0x305820(0xb8)](_0x305820(0xbc));const _0x4f1d5b={'appCode':_0x46daf8['appCode'],'fromDatasetCode':_0x2bfdf1[_0x305820(0xa4)],'fromField':required(_0x46daf8,_0x305820(0x7f)),..._0x2ffc35!==undefined?{'fromDblinkId':_0x2ffc35}:{}},_0x41f3d8={'appCode':_0x46daf8['appCode'],'fromDblinkId':_0x2bfdf1[_0x305820(0x72)],'fromDatasetCode':_0x2bfdf1['datasetCode'],'fromField':_0x4f1d5b[_0x305820(0xbd)]},_0x38ae8c=await queryCrossDbRelations(_0x41f3d8);let _0x939528=null;if(_0x2699e2!=='create'){if(_0x38ae8c[_0x305820(0xaf)]>0x1)throw ambiguity(_0x38ae8c);_0x939528=_0x38ae8c[0x0]??null;if(!_0x939528)throw CliErrors[_0x305820(0xb8)](_0x305820(0xa2));}if(_0x2699e2===_0x305820(0x9b))return{'operation':_0x2699e2,'from':_0x2bfdf1,'query':_0x41f3d8,'body':_0x4f1d5b,'before':_0x939528};const _0x543223=await resolveEndpoint(required(_0x46daf8,_0x305820(0x81)));if(_0x2bfdf1['dblinkId']===_0x543223[_0x305820(0x72)])throw CliErrors[_0x305820(0xb8)](_0x305820(0xa3));const _0xd10d9=_0x46daf8['str'](_0x305820(0xb6))[_0x305820(0xc0)](),_0x4b54f8=_0x46daf8['str'](_0x305820(0x9a))[_0x305820(0xc0)](),_0x34a01d={..._0x4f1d5b,'toDatasetCode':_0x543223[_0x305820(0xa4)],'toField':required(_0x46daf8,_0x305820(0xba)),..._0xd10d9?{'refTableLabelName':_0xd10d9}:{},..._0x4b54f8?{'cardinality':_0x4b54f8}:{}};if(_0x38ae8c['some'](_0x1396ef=>_0x1396ef[_0x305820(0x9d)]!==_0x939528?.['relationId']&&matchesEndpoint(_0x1396ef,_0x2bfdf1,_0x34a01d['fromField'],_0x543223,_0x34a01d[_0x305820(0xa8)])))throw CliErrors[_0x305820(0xb8)](_0x305820(0xa5));return{'operation':_0x2699e2,'from':_0x2bfdf1,'to':_0x543223,'query':_0x41f3d8,'body':_0x34a01d,'before':_0x939528,'expectedLabel':_0xd10d9||_0x939528?.[_0x305820(0xc1)]||_0x34a01d[_0x305820(0xa8)],'expectedCardinality':_0x4b54f8||_0x939528?.[_0x305820(0x9a)]||null};}function mutationData(_0x3ee5bb,_0x5e76ce,_0x3ad0b0){const _0x39cb8e=a72_0xa2c321,{operation:_0x404e83,body:_0x121c92,before:_0x13973a}=_0x3ee5bb;return{'operation':_0x404e83,'selector':{'appCode':_0x121c92['appCode'],'from':{'datasetCode':_0x121c92['fromDatasetCode'],'field':_0x121c92[_0x39cb8e(0xbd)],'dblinkId':_0x3ee5bb[_0x39cb8e(0x98)][_0x39cb8e(0x72)]}},'before':_0x13973a?projectCrossRelation(_0x13973a):null,'after':_0x3ad0b0,'dryRun':_0x5e76ce,'backend':{'method':'POST','path':CROSS_DB_RELATION_PATHS[_0x404e83]},'warnings':_0x404e83===_0x39cb8e(0xbf)&&!_0x121c92[_0x39cb8e(0xc1)]?[{'code':_0x39cb8e(0xb7),'message':_0x39cb8e(0x99)}]:[]};}export async function previewCrossRelation(_0x1f3ec9,_0x36a3eb){const _0x48fe8a=a72_0xa2c321,_0x1e265f=await prepareCrossRelation(_0x1f3ec9,_0x36a3eb),_0x4c8805=_0x1e265f[_0x48fe8a(0x87)],_0x2398e6=_0x36a3eb===_0x48fe8a(0x9b)?null:{..._0x1e265f[_0x48fe8a(0x9c)]?{'relationId':_0x1e265f[_0x48fe8a(0x9c)][_0x48fe8a(0x9d)]}:{},'from':{'datasetCode':_0x1e265f[_0x48fe8a(0x98)]['datasetCode'],'dblinkId':_0x1e265f[_0x48fe8a(0x98)][_0x48fe8a(0x72)],'table':_0x1e265f[_0x48fe8a(0x98)][_0x48fe8a(0x7b)],'field':_0x4c8805[_0x48fe8a(0xbd)]},'to':{'datasetCode':_0x1e265f['to']['datasetCode'],'dblinkId':_0x1e265f['to'][_0x48fe8a(0x72)],'table':_0x1e265f['to'][_0x48fe8a(0x7b)],'field':_0x4c8805[_0x48fe8a(0xa8)],'labelField':_0x1e265f['expectedLabel']},'relation':{'cardinality':_0x1e265f[_0x48fe8a(0x9e)],'relationType':0x2}};return{...mutationData(_0x1e265f,!![],null),'after':_0x2398e6,'method':_0x48fe8a(0x70),'url':CROSS_DB_RELATION_PATHS[_0x36a3eb],'body':_0x1e265f[_0x48fe8a(0x87)],'description':_0x48fe8a(0xa1)+_0x36a3eb+'\x20a\x20cross-database\x20relation\x20for\x20'+_0x4c8805[_0x48fe8a(0xac)]+'.'+_0x4c8805[_0x48fe8a(0xbd)]};}export async function executeCrossRelation(_0x372093,_0x103122,_0x46c8b7){const _0x382a05=a72_0xa2c321,_0x31922a=await prepareCrossRelation(_0x372093,_0x103122);try{await _0x46c8b7(_0x31922a[_0x382a05(0x87)]);}catch(_0x16d428){if(_0x16d428 instanceof CliError&&_0x16d428['message'][_0x382a05(0xc2)](_0x382a05(0xae))){const _0x10d460=await queryCrossDbRelations(_0x31922a['query'])[_0x382a05(0xbe)](()=>[]);throw ambiguity(_0x10d460);}throw _0x16d428;}let _0x1497e5=[],_0x47ab6b,_0x5b79c8=![];try{_0x1497e5=await queryCrossDbRelations(_0x31922a['query']);if(_0x103122===_0x382a05(0x9b))_0x5b79c8=!_0x1497e5[_0x382a05(0x77)](_0x8d63f9=>_0x8d63f9['relationId']===_0x31922a[_0x382a05(0x9c)][_0x382a05(0x9d)]);else{const _0x4761d0=_0x31922a['body'],_0xd86dfc=_0x1497e5[_0x382a05(0x94)](_0x11a5e8=>matchesEndpoint(_0x11a5e8,_0x31922a[_0x382a05(0x98)],_0x4761d0[_0x382a05(0xbd)],_0x31922a['to'],_0x4761d0['toField'])&&(_0x103122==='create'||_0x11a5e8[_0x382a05(0x9d)]===_0x31922a[_0x382a05(0x9c)][_0x382a05(0x9d)]));_0x47ab6b=_0xd86dfc[_0x382a05(0xaf)]===0x1?_0xd86dfc[0x0]:undefined,_0x5b79c8=!!_0x47ab6b&&_0x47ab6b['refTableLabelName']===_0x31922a[_0x382a05(0x85)]&&_0x47ab6b[_0x382a05(0x9a)]===_0x31922a['expectedCardinality']&&_0x47ab6b[_0x382a05(0x82)]===0x2;}}catch{}const _0xb28cc8={...mutationData(_0x31922a,![],_0x47ab6b?projectCrossRelation(_0x47ab6b):null),'verification':{'status':_0x5b79c8?_0x382a05(0xb1):'unconfirmed','verified':_0x5b79c8}};if(!_0x5b79c8){const _0x5c921e=CliErrors[_0x382a05(0xaa)](_0x382a05(0xa6)+_0x103122+_0x382a05(0x6e),_0x382a05(0x89));Object[_0x382a05(0x7d)](_0x5c921e,_0x382a05(0x88),{'value':{..._0xb28cc8,'candidates':_0x1497e5['map'](projectCrossRelation)}});throw _0x5c921e;}return{'ok':!![],'data':_0xb28cc8,'message':_0x382a05(0xa6)+_0x103122+'\x20verified.'};}
|
|
1
|
+
const a72_0x48ac9b=a72_0x4a66;function a72_0x53ef(){const _0x381bf5=['label_inherited','164448UVPZvd','datasetCode','catch','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','includes','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','Cross-database\x20relation\x20','\x20verified.','4rYSrDY','query','fromTableName','toField','appCode','delete','multiple\x20cross-database\x20relations\x20matched','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','map','dbtable','filter','fromDblinkId','from-column','string','cardinality','254692BfFOeT','POST','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','length','trim','str','131870MQIDyM','some','apiError','from','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','14679pQLDgi','512PDrYeJ','matched','refTableLabelName','body','fromDatasetName','toDatasetCode','896316dHBlYl','\x20has\x20invalid\x20storage\x20configuration.','dblinkId','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','dbId','toLowerCase','to-datasetcode','before','parse','fromField','Would\x20','toDatasetName','494895qaLUap','data','table','extend','dataset','defineProperty','sourceType','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','Dataset\x20','\x20a\x20cross-database\x20relation\x20for\x20','isSafeInteger','\x20write\x20was\x20not\x20verified.','create','message','tableName','validation','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','flagMissing','relationId','1322112blatNU','fromDatasetCode','toTableName','list','toDblinkId','410JqJdwz','storageProfile','update','from-datasetcode','to-label-column','DB_TABLE','enum','flag','dbtableConfig'];a72_0x53ef=function(){return _0x381bf5;};return a72_0x53ef();}(function(_0x53a5f7,_0x2dc5d0){const _0x5be6da=a72_0x4a66,_0x5cc238=_0x53a5f7();while(!![]){try{const _0x4e4aab=parseInt(_0x5be6da(0x140))/0x1+-parseInt(_0x5be6da(0x146))/0x2+-parseInt(_0x5be6da(0x152))/0x3*(parseInt(_0x5be6da(0x131))/0x4)+-parseInt(_0x5be6da(0x15e))/0x5+-parseInt(_0x5be6da(0x11a))/0x6+-parseInt(_0x5be6da(0x14b))/0x7*(parseInt(_0x5be6da(0x14c))/0x8)+-parseInt(_0x5be6da(0x129))/0x9*(-parseInt(_0x5be6da(0x11f))/0xa);if(_0x4e4aab===_0x2dc5d0)break;else _0x5cc238['push'](_0x5cc238['shift']());}catch(_0x424ec2){_0x5cc238['push'](_0x5cc238['shift']());}}}(a72_0x53ef,0x2d4fe));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';function a72_0x4a66(_0x1a02fb,_0x48a364){_0x1a02fb=_0x1a02fb-0x11a;const _0x53efd9=a72_0x53ef();let _0x4a66e2=_0x53efd9[_0x1a02fb];return _0x4a66e2;}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(_0x2ce9ed,_0x3b7ccf){const _0x9433dc=a72_0x4a66,_0x19cc69=_0x2ce9ed[_0x9433dc(0x145)](_0x3b7ccf)[_0x9433dc(0x144)]();if(!_0x19cc69)throw CliErrors[_0x9433dc(0x16f)](_0x3b7ccf);return _0x19cc69;}function explicitDblink(_0x2926d1){const _0xf2bccc=a72_0x4a66,_0x5dc287=_0x2926d1[_0xf2bccc(0x126)]('from-dblink-id');if(_0x5dc287===undefined||_0x5dc287===null)return undefined;const _0x2fd3d1=Number(_0x5dc287);if(!Number[_0xf2bccc(0x168)](_0x2fd3d1)||_0x2fd3d1<=0x0)throw CliErrors[_0xf2bccc(0x16d)]('--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x2fd3d1;}export function validateCrossRelation(_0x2951f0,_0x222ec8){const _0x4d4c22=a72_0x4a66,_0x246877=explicitDblink(_0x2951f0);if(_0x222ec8===_0x4d4c22(0x11d)){if(!_0x2951f0[_0x4d4c22(0x145)](_0x4d4c22(0x122))['trim']()&&_0x246877===undefined)throw CliErrors[_0x4d4c22(0x16d)](_0x4d4c22(0x12e));return;}required(_0x2951f0,_0x4d4c22(0x122)),required(_0x2951f0,_0x4d4c22(0x13d));if(_0x222ec8!==_0x4d4c22(0x136)){required(_0x2951f0,_0x4d4c22(0x158)),required(_0x2951f0,'to-column');const _0x203107=_0x2951f0['str'](_0x4d4c22(0x13f))[_0x4d4c22(0x144)]();if(_0x203107&&!CROSS_RELATION_CARDINALITY_FLAG[_0x4d4c22(0x125)][_0x4d4c22(0x12d)](_0x203107))throw CliErrors[_0x4d4c22(0x16d)]('Invalid\x20--cardinality.');}}async function resolveEndpoint(_0x37157d){const _0x5ec5af=a72_0x4a66,_0x316d00=await getDatasetDetail(_0x37157d),_0x192450=_0x316d00?.[_0x5ec5af(0x162)]??{};if((_0x316d00?.['source']??_0x192450[_0x5ec5af(0x164)])!==_0x5ec5af(0x124))throw CliErrors[_0x5ec5af(0x16d)]('Dataset\x20'+_0x37157d+'\x20must\x20be\x20a\x20DB_TABLE\x20dataset.');const _0x1d12f2=_0x316d00[_0x5ec5af(0x127)]??_0x316d00[_0x5ec5af(0x13a)]??{};let _0x3c92e8=_0x316d00[_0x5ec5af(0x161)]??_0x192450[_0x5ec5af(0x161)]??{};if(typeof _0x3c92e8===_0x5ec5af(0x13e))try{_0x3c92e8=_0x3c92e8['trim']()?JSON[_0x5ec5af(0x15a)](_0x3c92e8):{};}catch{throw CliErrors[_0x5ec5af(0x16d)](_0x5ec5af(0x166)+_0x37157d+_0x5ec5af(0x153));}const _0x53edbb=Number(_0x3c92e8?.[_0x5ec5af(0x120)]?.[_0x5ec5af(0x156)]??_0x316d00[_0x5ec5af(0x120)]?.[_0x5ec5af(0x156)]??_0x192450[_0x5ec5af(0x120)]?.[_0x5ec5af(0x156)]??_0x1d12f2[_0x5ec5af(0x156)]??_0x192450[_0x5ec5af(0x156)]??_0x316d00[_0x5ec5af(0x156)]),_0x12f74c=String(_0x316d00[_0x5ec5af(0x16c)]??_0x192450[_0x5ec5af(0x16c)]??_0x1d12f2['tableName']??'')[_0x5ec5af(0x144)]();if(!Number[_0x5ec5af(0x168)](_0x53edbb)||_0x53edbb<=0x0||!_0x12f74c)throw CliErrors[_0x5ec5af(0x16d)](_0x5ec5af(0x166)+_0x37157d+_0x5ec5af(0x155));return{'datasetCode':_0x37157d,'dblinkId':_0x53edbb,'table':_0x12f74c};}export async function resolveCrossRelationQuery(_0x2ba644){const _0x20364c=a72_0x4a66,_0x1b5906=_0x2ba644[_0x20364c(0x145)]('from-datasetcode')[_0x20364c(0x144)](),_0xaf17b=explicitDblink(_0x2ba644),_0x33ae7b=_0x1b5906?await resolveEndpoint(_0x1b5906):undefined;if(_0x33ae7b&&_0xaf17b!==undefined&&_0x33ae7b[_0x20364c(0x154)]!==_0xaf17b)throw CliErrors[_0x20364c(0x16d)](_0x20364c(0x138));const _0x3e6a22=_0x33ae7b?.[_0x20364c(0x154)]??_0xaf17b;if(_0x3e6a22===undefined)throw CliErrors[_0x20364c(0x16d)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x2ba644[_0x20364c(0x135)],'fromDblinkId':_0x3e6a22,..._0x1b5906?{'fromDatasetCode':_0x1b5906}:{},..._0x2ba644[_0x20364c(0x145)](_0x20364c(0x13d))[_0x20364c(0x144)]()?{'fromField':_0x2ba644[_0x20364c(0x145)](_0x20364c(0x13d))[_0x20364c(0x144)]()}:{}};}export function projectCrossRelation(_0x49d46f){const _0x1b6b4f=a72_0x4a66;return{'relationId':_0x49d46f[_0x1b6b4f(0x170)],'from':{'source':'DB_TABLE','datasetCode':_0x49d46f[_0x1b6b4f(0x11b)],'datasetName':_0x49d46f[_0x1b6b4f(0x150)],'dblinkId':_0x49d46f['fromDblinkId'],'table':_0x49d46f[_0x1b6b4f(0x133)],'field':_0x49d46f['fromField']},'to':{'source':'DB_TABLE','datasetCode':_0x49d46f[_0x1b6b4f(0x151)],'datasetName':_0x49d46f[_0x1b6b4f(0x15d)],'dblinkId':_0x49d46f[_0x1b6b4f(0x11e)],'table':_0x49d46f[_0x1b6b4f(0x11c)],'field':_0x49d46f[_0x1b6b4f(0x134)],'labelField':_0x49d46f['refTableLabelName']},'relation':{'cardinality':_0x49d46f[_0x1b6b4f(0x13f)],'relationType':_0x49d46f['relationType']}};}function ambiguity(_0x4762cb){const _0x3f9b9c=a72_0x4a66,_0x29a7fd=CliErrors[_0x3f9b9c(0x16d)](_0x3f9b9c(0x16e),_0x3f9b9c(0x165));return Object[_0x3f9b9c(0x163)](_0x29a7fd,_0x3f9b9c(0x15f),{'value':{'candidates':_0x4762cb[_0x3f9b9c(0x139)](projectCrossRelation)}}),_0x29a7fd;}const sameName=(_0x587573,_0x2697f7)=>_0x587573[a72_0x48ac9b(0x157)]()===_0x2697f7[a72_0x48ac9b(0x157)]();function matchesEndpoint(_0x1ce207,_0x170b4e,_0xe576c8,_0x21f67d,_0x4bda88){const _0x9727d0=a72_0x48ac9b;return _0x1ce207[_0x9727d0(0x13c)]===_0x170b4e[_0x9727d0(0x154)]&&sameName(_0x1ce207['fromTableName'],_0x170b4e[_0x9727d0(0x160)])&&sameName(_0x1ce207[_0x9727d0(0x15b)],_0xe576c8)&&_0x1ce207[_0x9727d0(0x11e)]===_0x21f67d[_0x9727d0(0x154)]&&sameName(_0x1ce207[_0x9727d0(0x11c)],_0x21f67d[_0x9727d0(0x160)])&&sameName(_0x1ce207[_0x9727d0(0x134)],_0x4bda88);}export async function prepareCrossRelation(_0x56aad9,_0xb20a4){const _0x22fb26=a72_0x48ac9b,_0x2f6e64=await resolveEndpoint(required(_0x56aad9,_0x22fb26(0x122))),_0x1ccd43=explicitDblink(_0x56aad9);if(_0x1ccd43!==undefined&&_0x2f6e64[_0x22fb26(0x154)]!==_0x1ccd43)throw CliErrors[_0x22fb26(0x16d)](_0x22fb26(0x138));const _0x11586f={'appCode':_0x56aad9[_0x22fb26(0x135)],'fromDatasetCode':_0x2f6e64['datasetCode'],'fromField':required(_0x56aad9,'from-column'),..._0x1ccd43!==undefined?{'fromDblinkId':_0x1ccd43}:{}},_0x4ae4bb={'appCode':_0x56aad9[_0x22fb26(0x135)],'fromDblinkId':_0x2f6e64[_0x22fb26(0x154)],'fromDatasetCode':_0x2f6e64['datasetCode'],'fromField':_0x11586f[_0x22fb26(0x15b)]},_0x32699a=await queryCrossDbRelations(_0x4ae4bb);let _0x3e10b2=null;if(_0xb20a4!==_0x22fb26(0x16a)){if(_0x32699a[_0x22fb26(0x143)]>0x1)throw ambiguity(_0x32699a);_0x3e10b2=_0x32699a[0x0]??null;if(!_0x3e10b2)throw CliErrors['validation']('Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.');}if(_0xb20a4===_0x22fb26(0x136))return{'operation':_0xb20a4,'from':_0x2f6e64,'query':_0x4ae4bb,'body':_0x11586f,'before':_0x3e10b2};const _0x57e753=await resolveEndpoint(required(_0x56aad9,_0x22fb26(0x158)));if(_0x2f6e64[_0x22fb26(0x154)]===_0x57e753[_0x22fb26(0x154)])throw CliErrors[_0x22fb26(0x16d)](_0x22fb26(0x12c));const _0xdbbd76=_0x56aad9[_0x22fb26(0x145)](_0x22fb26(0x123))[_0x22fb26(0x144)](),_0x19cd4a=_0x56aad9[_0x22fb26(0x145)]('cardinality')[_0x22fb26(0x144)](),_0xa76e51={..._0x11586f,'toDatasetCode':_0x57e753['datasetCode'],'toField':required(_0x56aad9,'to-column'),..._0xdbbd76?{'refTableLabelName':_0xdbbd76}:{},..._0x19cd4a?{'cardinality':_0x19cd4a}:{}};if(_0x32699a[_0x22fb26(0x147)](_0x46e497=>_0x46e497[_0x22fb26(0x170)]!==_0x3e10b2?.['relationId']&&matchesEndpoint(_0x46e497,_0x2f6e64,_0xa76e51['fromField'],_0x57e753,_0xa76e51[_0x22fb26(0x134)])))throw CliErrors['validation'](_0x22fb26(0x14a));return{'operation':_0xb20a4,'from':_0x2f6e64,'to':_0x57e753,'query':_0x4ae4bb,'body':_0xa76e51,'before':_0x3e10b2,'expectedLabel':_0xdbbd76||_0x3e10b2?.[_0x22fb26(0x14e)]||_0xa76e51[_0x22fb26(0x134)],'expectedCardinality':_0x19cd4a||_0x3e10b2?.['cardinality']||null};}function mutationData(_0x1d6265,_0x3ded70,_0x1d19fe){const _0x5e5ab9=a72_0x48ac9b,{operation:_0x254d64,body:_0x61f132,before:_0x25b137}=_0x1d6265;return{'operation':_0x254d64,'selector':{'appCode':_0x61f132[_0x5e5ab9(0x135)],'from':{'datasetCode':_0x61f132[_0x5e5ab9(0x11b)],'field':_0x61f132[_0x5e5ab9(0x15b)],'dblinkId':_0x1d6265[_0x5e5ab9(0x149)][_0x5e5ab9(0x154)]}},'before':_0x25b137?projectCrossRelation(_0x25b137):null,'after':_0x1d19fe,'dryRun':_0x3ded70,'backend':{'method':_0x5e5ab9(0x141),'path':CROSS_DB_RELATION_PATHS[_0x254d64]},'warnings':_0x254d64===_0x5e5ab9(0x121)&&!_0x61f132[_0x5e5ab9(0x14e)]?[{'code':_0x5e5ab9(0x128),'message':_0x5e5ab9(0x142)}]:[]};}export async function previewCrossRelation(_0x29eb41,_0x2d205f){const _0x486c5d=a72_0x48ac9b,_0x3a9966=await prepareCrossRelation(_0x29eb41,_0x2d205f),_0x4c31e4=_0x3a9966[_0x486c5d(0x14f)],_0x2237ba=_0x2d205f==='delete'?null:{..._0x3a9966['before']?{'relationId':_0x3a9966['before'][_0x486c5d(0x170)]}:{},'from':{'datasetCode':_0x3a9966['from'][_0x486c5d(0x12a)],'dblinkId':_0x3a9966[_0x486c5d(0x149)][_0x486c5d(0x154)],'table':_0x3a9966[_0x486c5d(0x149)][_0x486c5d(0x160)],'field':_0x4c31e4[_0x486c5d(0x15b)]},'to':{'datasetCode':_0x3a9966['to']['datasetCode'],'dblinkId':_0x3a9966['to'][_0x486c5d(0x154)],'table':_0x3a9966['to'][_0x486c5d(0x160)],'field':_0x4c31e4['toField'],'labelField':_0x3a9966['expectedLabel']},'relation':{'cardinality':_0x3a9966['expectedCardinality'],'relationType':0x2}};return{...mutationData(_0x3a9966,!![],null),'after':_0x2237ba,'method':_0x486c5d(0x141),'url':CROSS_DB_RELATION_PATHS[_0x2d205f],'body':_0x3a9966['body'],'description':_0x486c5d(0x15c)+_0x2d205f+_0x486c5d(0x167)+_0x4c31e4[_0x486c5d(0x11b)]+'.'+_0x4c31e4[_0x486c5d(0x15b)]};}export async function executeCrossRelation(_0x206ee1,_0x55d37a,_0x49242d){const _0x2ba33a=a72_0x48ac9b,_0x2597bd=await prepareCrossRelation(_0x206ee1,_0x55d37a);try{await _0x49242d(_0x2597bd['body']);}catch(_0xe4a64){if(_0xe4a64 instanceof CliError&&_0xe4a64[_0x2ba33a(0x16b)][_0x2ba33a(0x12d)](_0x2ba33a(0x137))){const _0x4b7e1e=await queryCrossDbRelations(_0x2597bd[_0x2ba33a(0x132)])[_0x2ba33a(0x12b)](()=>[]);throw ambiguity(_0x4b7e1e);}throw _0xe4a64;}let _0x4e781b=[],_0x5f5221,_0x2e6f00=![];try{_0x4e781b=await queryCrossDbRelations(_0x2597bd[_0x2ba33a(0x132)]);if(_0x55d37a===_0x2ba33a(0x136))_0x2e6f00=!_0x4e781b[_0x2ba33a(0x147)](_0x3d5dcd=>_0x3d5dcd[_0x2ba33a(0x170)]===_0x2597bd[_0x2ba33a(0x159)][_0x2ba33a(0x170)]);else{const _0x4af986=_0x2597bd[_0x2ba33a(0x14f)],_0xd3bb56=_0x4e781b[_0x2ba33a(0x13b)](_0x107ad2=>matchesEndpoint(_0x107ad2,_0x2597bd['from'],_0x4af986[_0x2ba33a(0x15b)],_0x2597bd['to'],_0x4af986[_0x2ba33a(0x134)])&&(_0x55d37a===_0x2ba33a(0x16a)||_0x107ad2[_0x2ba33a(0x170)]===_0x2597bd[_0x2ba33a(0x159)][_0x2ba33a(0x170)]));_0x5f5221=_0xd3bb56[_0x2ba33a(0x143)]===0x1?_0xd3bb56[0x0]:undefined,_0x2e6f00=!!_0x5f5221&&_0x5f5221['refTableLabelName']===_0x2597bd['expectedLabel']&&_0x5f5221[_0x2ba33a(0x13f)]===_0x2597bd['expectedCardinality']&&_0x5f5221['relationType']===0x2;}}catch{}const _0x4dbf91={...mutationData(_0x2597bd,![],_0x5f5221?projectCrossRelation(_0x5f5221):null),'verification':{'status':_0x2e6f00?_0x2ba33a(0x14d):'unconfirmed','verified':_0x2e6f00}};if(!_0x2e6f00){const _0x2d4462=CliErrors[_0x2ba33a(0x148)](_0x2ba33a(0x12f)+_0x55d37a+_0x2ba33a(0x169),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object[_0x2ba33a(0x163)](_0x2d4462,_0x2ba33a(0x15f),{'value':{..._0x4dbf91,'candidates':_0x4e781b['map'](projectCrossRelation)}});throw _0x2d4462;}return{'ok':!![],'data':_0x4dbf91,'message':_0x2ba33a(0x12f)+_0x55d37a+_0x2ba33a(0x130)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x5cdd09=a73_0x46c9;(function(_0x266290,_0x5bc966){const _0x56608a=a73_0x46c9,_0x324872=_0x266290();while(!![]){try{const _0x45d547=-parseInt(_0x56608a(0xeb))/0x1*(-parseInt(_0x56608a(0xee))/0x2)+-parseInt(_0x56608a(0xe3))/0x3+parseInt(_0x56608a(0xe8))/0x4+parseInt(_0x56608a(0xec))/0x5*(-parseInt(_0x56608a(0xea))/0x6)+parseInt(_0x56608a(0xe1))/0x7*(-parseInt(_0x56608a(0xe7))/0x8)+-parseInt(_0x56608a(0xef))/0x9*(-parseInt(_0x56608a(0xe4))/0xa)+parseInt(_0x56608a(0xe5))/0xb;if(_0x45d547===_0x5bc966)break;else _0x324872['push'](_0x324872['shift']());}catch(_0x24b4c5){_0x324872['push'](_0x324872['shift']());}}}(a73_0x2a5c,0xa8f8a));function a73_0x2a5c(){const _0x4f1093=['477630ExxSZP','502909bFdcjA','cross-relation-update','4066576NGZViC','570300xlGAIB','write','6ZuKRrt','1wKHkbc','26855WaPtii','dataset','2365718lQPMTk','9lxqMVw','7RvPlpM','update','639351eMSeGc'];a73_0x2a5c=function(){return _0x4f1093;};return a73_0x2a5c();}import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x46c9(_0x28fdc4,_0x46d094){_0x28fdc4=_0x28fdc4-0xe1;const _0x2a5c2c=a73_0x2a5c();let _0x46c9fa=_0x2a5c2c[_0x28fdc4];return _0x46c9fa;}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_0x5cdd09(0xed),'command':a73_0x5cdd09(0xe6),'description':'Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a73_0x5cdd09(0xe9),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x3c9387=>validateCrossRelation(_0x3c9387,a73_0x5cdd09(0xe2)),'dryRun':_0x52a801=>previewCrossRelation(_0x52a801,a73_0x5cdd09(0xe2)),'execute':_0x11fe39=>executeCrossRelation(_0x11fe39,a73_0x5cdd09(0xe2),updateCrossDbRelation)};
|