@lovrabet/rabetbase-cli 2.5.10-beta.3 → 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_0x4d50d2=a65_0x17ae;(function(_0x138346,_0x226013){const _0x4c5ed6=a65_0x17ae,_0x3ea3d4=_0x138346();while(!![]){try{const _0x3320d0=parseInt(_0x4c5ed6(0x83))/0x1+-parseInt(_0x4c5ed6(0x8c))/0x2*(parseInt(_0x4c5ed6(0xd0))/0x3)+-parseInt(_0x4c5ed6(0xbe))/0x4*(-parseInt(_0x4c5ed6(0x73))/0x5)+-parseInt(_0x4c5ed6(0x71))/0x6+parseInt(_0x4c5ed6(0xc9))/0x7+-parseInt(_0x4c5ed6(0xcb))/0x8*(-parseInt(_0x4c5ed6(0xc7))/0x9)+-parseInt(_0x4c5ed6(0xc8))/0xa;if(_0x3320d0===_0x226013)break;else _0x3ea3d4['push'](_0x3ea3d4['shift']());}catch(_0x2060bc){_0x3ea3d4['push'](_0x3ea3d4['shift']());}}}(a65_0x41f0,0x74b91));import{CliErrors}from'../../errors.js';function a65_0x17ae(_0x2d310d,_0x4e9d08){_0x2d310d=_0x2d310d-0x66;const _0x41f006=a65_0x41f0();let _0x17aeea=_0x41f006[_0x2d310d];return _0x17aeea;}const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x4d50d2(0x88),'ONE_TO_ONE']),SUPPORTED_FIELD_TYPES=new Set([a65_0x4d50d2(0xbf),a65_0x4d50d2(0xb0),a65_0x4d50d2(0xb8),a65_0x4d50d2(0x82),a65_0x4d50d2(0x68),a65_0x4d50d2(0x9c),a65_0x4d50d2(0x99),a65_0x4d50d2(0xaa),'ADDRESS',a65_0x4d50d2(0xba)]);export function isDatasetBatchDesign(_0x540747){const _0x4b7d7a=a65_0x4d50d2;return isObject(_0x540747)&&_0x540747[_0x4b7d7a(0x7f)]===_0x4b7d7a(0xc3);}function a65_0x41f0(){const _0x346131=['UPLOAD','code','refTableLabelField','refTable','2325404jNWsiY','TEXT','every','\x20connects\x20incompatible\x20field\x20types.','\x20non-empty\x20strings.','dataset-batch','fields','cardinality','modelCode','1638477mTShfs','1145450AWcHTE','635754xPLohH','length','32zBYGLM','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','].type\x20is\x20not\x20supported.','relations[','datasetCode','252qSfyJZ','toLowerCase','\x20is\x20required.','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','].design.dataset','unresolvedRelations','SELECT','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','.relationType\x20must\x20be\x20\x22lookup\x22.','unresolvedRelations[','fieldCode','expectedRelations','\x20references\x20an\x20unknown\x20field.','.toDatasetKey','fromDatasetKey','541470NBbdkm','metrics','5ZVNyKx','relations',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','createdDatasets[].localKey','].localKey\x20must\x20match\x20','toDatasetCode','fieldType','].design.dataset\x20must\x20be\x20an\x20object.','type','.cardinality\x20is\x20not\x20supported.','toUpperCase','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','kind','toField','name','BOOLEAN','174582Mcnhof','keys','test','].design.fields[','].design.fields','MANY_TO_ONE','lookup','].confidence','\x20references\x20an\x20unknown\x20dataset\x20localKey.','21240rEUkqk','localKey','design','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','string','relationType','].design','.confidence','\x20objects.','dataset','entries','has','DATE_RANGE','.reason','set','MULTI_SELECT','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','datasetName','expectedLocalKeys','validation','trim','\x20must\x20contain\x20','fieldName','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','join','some','createdRelations','isArray','schemaVersion','USER','size','createdDatasets','fromField','get','modelId','NUMBER','datasets','datasets[','].localKey','map','number','datasetId','].design\x20must\x20be\x20an\x20object.','DATETIME','add'];a65_0x41f0=function(){return _0x346131;};return a65_0x41f0();}export function validateDatasetBatchDesign(_0x1cf2b9){const _0x569efc=a65_0x4d50d2;(!isObject(_0x1cf2b9)||_0x1cf2b9[_0x569efc(0x7f)]!==_0x569efc(0xc3))&&fail(_0x569efc(0x7e));_0x1cf2b9[_0x569efc(0xa9)]!==0x1&&fail(_0x569efc(0xcc));const _0x25416d=objectArray(_0x1cf2b9[_0x569efc(0xb1)],_0x569efc(0xb1),0x1,0x14),_0x292ea1=objectArray(_0x1cf2b9[_0x569efc(0x74)],_0x569efc(0x74),0x0,0xc8),_0x59e201=objectArray(_0x1cf2b9[_0x569efc(0x67)],_0x569efc(0x67),0x0,0xc8),_0x482e06=new Set(),_0x24471e=new Map();for(const [_0x3028e3,_0x592e14]of _0x25416d[_0x569efc(0x97)]()){const _0x2b6b66=requiredString(_0x592e14[_0x569efc(0x8d)],_0x569efc(0xb2)+_0x3028e3+_0x569efc(0xb3));!LOCAL_KEY[_0x569efc(0x85)](_0x2b6b66)&&fail('datasets['+_0x3028e3+_0x569efc(0x77)+LOCAL_KEY['source']+'.');_0x482e06['has'](_0x2b6b66)&&fail(_0x569efc(0x8f));_0x482e06[_0x569efc(0xb9)](_0x2b6b66);!isObject(_0x592e14[_0x569efc(0x8e)])&&fail('datasets['+_0x3028e3+_0x569efc(0xb7));rejectServerDatasetIdentity(_0x592e14[_0x569efc(0x8e)],_0x569efc(0xb2)+_0x3028e3+_0x569efc(0x93));if(!isObject(_0x592e14[_0x569efc(0x8e)][_0x569efc(0x96)]))fail(_0x569efc(0xb2)+_0x3028e3+_0x569efc(0x7a));rejectServerDatasetIdentity(_0x592e14[_0x569efc(0x8e)][_0x569efc(0x96)],'datasets['+_0x3028e3+_0x569efc(0x66)),requiredString(_0x592e14[_0x569efc(0x8e)][_0x569efc(0x96)][_0x569efc(0x9e)],'datasets['+_0x3028e3+'].design.dataset.datasetName');'relations'in _0x592e14['design']&&(!Array[_0x569efc(0xa8)](_0x592e14['design'][_0x569efc(0x74)])||_0x592e14['design'][_0x569efc(0x74)]['length']!==0x0)&&fail(_0x569efc(0xb2)+_0x3028e3+_0x569efc(0x9d));const _0x45f31e=objectArray(_0x592e14[_0x569efc(0x8e)][_0x569efc(0xc4)],_0x569efc(0xb2)+_0x3028e3+_0x569efc(0x87),0x1,0xc8),_0x20edd5=new Map();for(const [_0x12bd31,_0x72f3c5]of _0x45f31e[_0x569efc(0x97)]()){const _0x33f763=fieldName(_0x72f3c5);if(!_0x33f763)fail(_0x569efc(0xb2)+_0x3028e3+_0x569efc(0x86)+_0x12bd31+_0x569efc(0x75));const _0x163d34=_0x33f763[_0x569efc(0xd1)]();if(_0x20edd5[_0x569efc(0x98)](_0x163d34))fail('Dataset\x20'+_0x2b6b66+_0x569efc(0xa4));const _0xd73c00=stringValue(_0x72f3c5[_0x569efc(0x7b)]??_0x72f3c5[_0x569efc(0x79)])[_0x569efc(0x7d)]();if(!SUPPORTED_FIELD_TYPES[_0x569efc(0x98)](_0xd73c00))fail('datasets['+_0x3028e3+_0x569efc(0x86)+_0x12bd31+_0x569efc(0xcd));_0x20edd5[_0x569efc(0x9b)](_0x163d34,_0xd73c00),[_0x72f3c5[_0x569efc(0xbd)],_0x72f3c5['refTableField'],_0x72f3c5[_0x569efc(0xbc)]][_0x569efc(0xa6)](_0x255850=>stringValue(_0x255850))&&fail(_0x569efc(0xb2)+_0x3028e3+_0x569efc(0x86)+_0x12bd31+_0x569efc(0x90));}_0x24471e[_0x569efc(0x9b)](_0x2b6b66,_0x20edd5);}const _0x4b7a7b=new Set(),_0x357f7f=new Set();for(const [_0x2a8586,_0x6993f5]of _0x292ea1[_0x569efc(0x97)]()){const _0xd8b2d9=validateRelation(_0x6993f5,_0x2a8586,_0x482e06,_0x24471e);if(_0x4b7a7b[_0x569efc(0x98)](_0xd8b2d9))fail(_0x569efc(0x69));_0x4b7a7b['add'](_0xd8b2d9);const _0x331475=_0xd8b2d9['split']('\x00',0x2)[_0x569efc(0xa5)]('\x00');if(_0x357f7f['has'](_0x331475))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x357f7f[_0x569efc(0xb9)](_0x331475);}for(const [_0x44895a,_0x13f7c1]of _0x59e201[_0x569efc(0x97)]()){requiredString(_0x13f7c1['reason'],_0x569efc(0x6b)+_0x44895a+'].reason'),validateConfidence(_0x13f7c1['confidence'],_0x569efc(0x6b)+_0x44895a+_0x569efc(0x8a));}return _0x1cf2b9;}export function reconcileBatchResult(_0x3c2001){const _0x325e3a=a65_0x4d50d2;if(!isObject(_0x3c2001))return null;try{const _0x2ccd36=stringArray(_0x3c2001[_0x325e3a(0x9f)],_0x325e3a(0x9f),0x1,0x14),_0x2c0d48=new Set(_0x2ccd36);if(_0x2c0d48[_0x325e3a(0xab)]!==_0x2ccd36['length']||_0x2ccd36['some'](_0x32ebe0=>!LOCAL_KEY['test'](_0x32ebe0)))return null;const _0x118ea4=objectArray(_0x3c2001[_0x325e3a(0xac)],_0x325e3a(0xac),0x1,0x14),_0x1787f1=new Map(),_0x15a845=new Set();for(const _0x12ced3 of _0x118ea4){const _0x4b61aa=requiredString(_0x12ced3[_0x325e3a(0x8d)],_0x325e3a(0x76)),_0x130b6b=requiredString(_0x12ced3[_0x325e3a(0xbb)]??_0x12ced3[_0x325e3a(0xcf)],'createdDatasets[].code');if(_0x1787f1[_0x325e3a(0x98)](_0x4b61aa)||_0x15a845[_0x325e3a(0x98)](_0x130b6b))return null;_0x1787f1[_0x325e3a(0x9b)](_0x4b61aa,_0x130b6b),_0x15a845['add'](_0x130b6b);}if(!sameSet(_0x2c0d48,new Set(_0x1787f1[_0x325e3a(0x84)]())))return null;const _0x502dce=objectArray(_0x3c2001[_0x325e3a(0x6d)],_0x325e3a(0x6d),0x0,0xc8),_0xc0d30d=objectArray(_0x3c2001[_0x325e3a(0xa7)],'createdRelations',0x0,0xc8),_0x4dbb7d=relationTupleSet(_0x502dce,![],_0x1787f1),_0xb992c4=relationTupleSet(_0xc0d30d,!![],_0x1787f1);if(!_0x4dbb7d||!_0xb992c4||!sameSet(_0x4dbb7d,_0xb992c4))return null;const _0x51b222=objectArray(_0x3c2001[_0x325e3a(0x67)],_0x325e3a(0x67),0x0,0xc8);return{'expectedLocalKeys':_0x2ccd36,'expectedRelations':_0x502dce,'createdDatasets':_0x118ea4,'createdRelations':_0xc0d30d,'unresolvedRelations':_0x51b222,...isObject(_0x3c2001[_0x325e3a(0x72)])?{'metrics':_0x3c2001[_0x325e3a(0x72)]}:{}};}catch{return null;}}function validateRelation(_0x57e730,_0x5cac01,_0x1e76aa,_0x3dc720){const _0x5b185b=a65_0x4d50d2,_0x3b3bd2=_0x5b185b(0xce)+_0x5cac01+']',_0x5d4001=requiredString(_0x57e730[_0x5b185b(0x70)],_0x3b3bd2+'.fromDatasetKey'),_0x3fab50=requiredString(_0x57e730['toDatasetKey'],_0x3b3bd2+_0x5b185b(0x6f)),_0x52f487=requiredString(_0x57e730[_0x5b185b(0xad)],_0x3b3bd2+'.fromField')[_0x5b185b(0xd1)](),_0x61cf81=requiredString(_0x57e730[_0x5b185b(0x80)],_0x3b3bd2+'.toField')[_0x5b185b(0xd1)]();if(!_0x1e76aa[_0x5b185b(0x98)](_0x5d4001)||!_0x1e76aa[_0x5b185b(0x98)](_0x3fab50))fail(_0x3b3bd2+_0x5b185b(0x8b));const _0x1d55c4=_0x3dc720[_0x5b185b(0xae)](_0x5d4001)?.['get'](_0x52f487),_0x255c07=_0x3dc720[_0x5b185b(0xae)](_0x3fab50)?.[_0x5b185b(0xae)](_0x61cf81);if(_0x1d55c4===undefined||_0x255c07===undefined)fail(_0x3b3bd2+_0x5b185b(0x6e));if(_0x1d55c4&&_0x255c07&&_0x1d55c4!==_0x255c07)fail(_0x3b3bd2+_0x5b185b(0xc1));const _0x743beb=stringValue(_0x57e730[_0x5b185b(0x92)])||_0x5b185b(0x89);if(_0x743beb!==_0x5b185b(0x89))fail(_0x3b3bd2+_0x5b185b(0x6a));const _0x5092dc=stringValue(_0x57e730['cardinality'])||'MANY_TO_ONE';if(!SUPPORTED_CARDINALITIES[_0x5b185b(0x98)](_0x5092dc))fail(_0x3b3bd2+_0x5b185b(0x7c));return requiredString(_0x57e730['reason'],_0x3b3bd2+_0x5b185b(0x9a)),validateConfidence(_0x57e730['confidence'],_0x3b3bd2+_0x5b185b(0x94)),tuple(_0x5d4001,_0x52f487,_0x3fab50,_0x61cf81,_0x5b185b(0x89),_0x5092dc);}function relationTupleSet(_0x183714,_0x5267ef,_0xc4d0c2){const _0x4b80e5=a65_0x4d50d2,_0x106016=new Set();for(const _0x542496 of _0x183714){const _0x69155c=stringValue(_0x542496['fromDatasetKey']),_0x17b2a1=stringValue(_0x542496['toDatasetKey']),_0x1c7d6e=stringValue(_0x542496[_0x4b80e5(0xad)])[_0x4b80e5(0xd1)](),_0x5c4a0b=stringValue(_0x542496[_0x4b80e5(0x80)])[_0x4b80e5(0xd1)](),_0x40ec61=stringValue(_0x542496[_0x4b80e5(0x92)]),_0x2f2c10=stringValue(_0x542496[_0x4b80e5(0xc5)]);if(!_0x69155c||!_0x17b2a1||!_0x1c7d6e||!_0x5c4a0b||_0x40ec61!=='lookup'||!SUPPORTED_CARDINALITIES[_0x4b80e5(0x98)](_0x2f2c10))return null;if(!_0xc4d0c2[_0x4b80e5(0x98)](_0x69155c)||!_0xc4d0c2[_0x4b80e5(0x98)](_0x17b2a1))return null;if(_0x5267ef&&(stringValue(_0x542496['fromDatasetCode'])!==_0xc4d0c2[_0x4b80e5(0xae)](_0x69155c)||stringValue(_0x542496[_0x4b80e5(0x78)])!==_0xc4d0c2['get'](_0x17b2a1)))return null;const _0x4a3078=tuple(_0x69155c,_0x1c7d6e,_0x17b2a1,_0x5c4a0b,_0x40ec61,_0x2f2c10);if(_0x106016[_0x4b80e5(0x98)](_0x4a3078))return null;_0x106016['add'](_0x4a3078);}return _0x106016;}function rejectServerDatasetIdentity(_0x487b5a,_0x436ef4){const _0x7297cd=a65_0x4d50d2;for(const _0x2a853d of['id',_0x7297cd(0xb6),_0x7297cd(0xaf),_0x7297cd(0xbb),_0x7297cd(0xcf),_0x7297cd(0xc6)]){if(_0x487b5a[_0x2a853d]!==undefined&&_0x487b5a[_0x2a853d]!==null&&_0x487b5a[_0x2a853d]!=='')fail(_0x436ef4+'.'+_0x2a853d+_0x7297cd(0xd3));}}function objectArray(_0x16b2b8,_0x4cedee,_0x1a84a9,_0xbcb0db){const _0x2fcff0=a65_0x4d50d2;return(!Array[_0x2fcff0(0xa8)](_0x16b2b8)||_0x16b2b8[_0x2fcff0(0xca)]<_0x1a84a9||_0x16b2b8[_0x2fcff0(0xca)]>_0xbcb0db||_0x16b2b8[_0x2fcff0(0xa6)](_0x54525c=>!isObject(_0x54525c)))&&fail(_0x4cedee+'\x20must\x20contain\x20'+_0x1a84a9+'..'+_0xbcb0db+_0x2fcff0(0x95)),_0x16b2b8;}function stringArray(_0x18e8e7,_0x15c77f,_0x4af3fe,_0x1285c2){const _0x10371c=a65_0x4d50d2;return(!Array['isArray'](_0x18e8e7)||_0x18e8e7[_0x10371c(0xca)]<_0x4af3fe||_0x18e8e7[_0x10371c(0xca)]>_0x1285c2||_0x18e8e7[_0x10371c(0xa6)](_0x1de121=>typeof _0x1de121!==_0x10371c(0x91)||!_0x1de121[_0x10371c(0xa1)]()))&&fail(_0x15c77f+_0x10371c(0xa2)+_0x4af3fe+'..'+_0x1285c2+_0x10371c(0xc2)),_0x18e8e7;}function requiredString(_0x2b7ecd,_0x2dc378){const _0x41f834=a65_0x4d50d2,_0x14b6dd=stringValue(_0x2b7ecd);if(!_0x14b6dd)fail(_0x2dc378+_0x41f834(0xd2));return _0x14b6dd;}function stringValue(_0x300285){const _0x20cc34=a65_0x4d50d2;return typeof _0x300285===_0x20cc34(0x91)?_0x300285[_0x20cc34(0xa1)]():'';}function fieldName(_0x338dde){const _0x4e03ce=a65_0x4d50d2;return stringValue(_0x338dde['code']??_0x338dde[_0x4e03ce(0x6c)]??_0x338dde[_0x4e03ce(0x81)]??_0x338dde[_0x4e03ce(0xa3)]);}function validateConfidence(_0x4d23ed,_0x441bab){const _0x1e529b=a65_0x4d50d2;_0x4d23ed!==undefined&&_0x4d23ed!==null&&(typeof _0x4d23ed!==_0x1e529b(0xb5)||!Number['isFinite'](_0x4d23ed)||_0x4d23ed<0x0||_0x4d23ed>0x1)&&fail(_0x441bab+'\x20must\x20be\x20between\x200\x20and\x201.');}function tuple(..._0x50786c){const _0x481c91=a65_0x4d50d2;return _0x50786c[_0x481c91(0xb4)]((_0x1458b9,_0xc4b4db)=>_0xc4b4db===0x1||_0xc4b4db===0x3?_0x1458b9[_0x481c91(0xd1)]():_0x1458b9)[_0x481c91(0xa5)]('\x00');}function sameSet(_0x4f4f17,_0x42ba07){const _0x59ed5f=a65_0x4d50d2;return _0x4f4f17['size']===_0x42ba07[_0x59ed5f(0xab)]&&[..._0x4f4f17][_0x59ed5f(0xc0)](_0x4b40b9=>_0x42ba07[_0x59ed5f(0x98)](_0x4b40b9));}function isObject(_0x30c981){const _0x2a0e07=a65_0x4d50d2;return typeof _0x30c981==='object'&&_0x30c981!==null&&!Array[_0x2a0e07(0xa8)](_0x30c981);}function fail(_0x1b84d7){const _0x50eb83=a65_0x4d50d2;throw CliErrors[_0x50eb83(0xa0)](_0x1b84d7);}
|
|
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_0x5e998c=a66_0x5895;(function(_0x400744,_0x30334d){const _0x3d9884=a66_0x5895,_0x3c1b80=_0x400744();while(!![]){try{const _0x3746a1=parseInt(_0x3d9884(0x1df))/0x1+parseInt(_0x3d9884(0x1fc))/0x2+parseInt(_0x3d9884(0x1e3))/0x3+-parseInt(_0x3d9884(0x1f2))/0x4+parseInt(_0x3d9884(0x1e5))/0x5+parseInt(_0x3d9884(0x1d1))/0x6+-parseInt(_0x3d9884(0x1c4))/0x7*(parseInt(_0x3d9884(0x1ed))/0x8);if(_0x3746a1===_0x30334d)break;else _0x3c1b80['push'](_0x3c1b80['shift']());}catch(_0xa98191){_0x3c1b80['push'](_0x3c1b80['shift']());}}}(a66_0x3b85,0x461cc));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_0x5e998c(0x1dd),METADATA_BACKEND_PATH=a66_0x5e998c(0x1cf),UNGROUPED_BUSINESS_GROUP=a66_0x5e998c(0x1cb);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x12eb9a,input:_0x183c7d,dryRun:_0x160701}){const _0x359dbc=a66_0x5e998c;validateInput(_0x183c7d);const _0x2f5dba=normalizeBusinessGroupArgument(_0x183c7d['businessGroup']),_0x506619=await getDatasetDetail(_0x183c7d[_0x359dbc(0x1e0)]),_0x5b0f94=resolveBusinessGroupDataset(_0x506619,_0x183c7d[_0x359dbc(0x1e0)]);assertBusinessGroupUpdateSupported(_0x5b0f94,_0x2f5dba);const _0x4be657=loadCurrentBusinessGroup(_0x506619,_0x5b0f94);assertExpectedBusinessGroup(_0x4be657,_0x183c7d[_0x359dbc(0x1fe)]);const _0x3fbf41=buildBackendPlan(_0x12eb9a,_0x5b0f94,_0x2f5dba),_0xadfb87=_0x4be657!==_0x2f5dba;let _0x227466;if(_0xadfb87&&!_0x160701){_0x3fbf41['kind']===_0x359dbc(0x1db)?await updateDbTableBusinessGroup(_0x3fbf41[_0x359dbc(0x1f0)]):await updateErBusinessGroup(_0x3fbf41['payload']);const _0x427633=await getDatasetDetail(_0x5b0f94[_0x359dbc(0x1e0)]),_0x1492e7=resolveBusinessGroupDataset(_0x427633,_0x5b0f94[_0x359dbc(0x1e0)]),_0x42ffe6=loadCurrentBusinessGroup(_0x427633,_0x1492e7);if(_0x42ffe6!==_0x2f5dba)throw CliErrors[_0x359dbc(0x1f1)](_0x359dbc(0x1f6),_0x359dbc(0x1ef)+JSON[_0x359dbc(0x1dc)](displayBusinessGroup(_0x2f5dba))+_0x359dbc(0x1c8)+JSON['stringify'](displayBusinessGroup(_0x42ffe6))+'.');_0x227466={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x42ffe6)}};}else!_0xadfb87&&(_0x227466={'verified':!![],'status':_0x359dbc(0x1e1),'afterReadback':{'businessGroup':displayBusinessGroup(_0x4be657)}});const _0x3eaa2f={'operation':_0x359dbc(0x1c7),'appCode':_0x12eb9a,'selector':{'code':_0x5b0f94['code']},'dataset':{'id':_0x5b0f94['id'],'code':_0x5b0f94['code'],'name':_0x5b0f94[_0x359dbc(0x1cd)],'sourceType':_0x5b0f94['sourceType']},'before':{'businessGroup':displayBusinessGroup(_0x4be657)},'after':{'businessGroup':displayBusinessGroup(_0x2f5dba)},'changed':_0xadfb87,'dryRun':_0x160701,'submitted':_0xadfb87&&!_0x160701,'backend':{'method':_0x3fbf41['method'],'path':_0x3fbf41[_0x359dbc(0x1fd)],'payload':_0x3fbf41['payload']},..._0x227466?{'verification':_0x227466}:{},'warnings':[]};return{'ok':!![],'data':_0x3eaa2f,'message':_0xadfb87?_0x160701?_0x359dbc(0x1c2)+_0x5b0f94[_0x359dbc(0x1e0)]:_0x359dbc(0x1ff)+_0x5b0f94['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x5b0f94[_0x359dbc(0x1e0)]};}export const datasetBusinessGroupUpdate={'service':a66_0x5e998c(0x1d6),'command':a66_0x5e998c(0x1e2),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':a66_0x5e998c(0x1e7),'type':a66_0x5e998c(0x1d7),'required':!![],'description':a66_0x5e998c(0x1d0)},{'name':a66_0x5e998c(0x205),'type':a66_0x5e998c(0x1d7),'required':![],'description':a66_0x5e998c(0x1fb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x46c6b6){validateInput(readBusinessGroupUpdateInput(_0x46c6b6));},async 'dryRun'(_0x1e6703){const _0x1a84a3=a66_0x5e998c,_0x418268=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x1e6703[_0x1a84a3(0x203)],'input':readBusinessGroupUpdateInput(_0x1e6703),'dryRun':!![]});return{'method':_0x418268[_0x1a84a3(0x1d4)][_0x1a84a3(0x1fa)]['method'],'url':_0x418268[_0x1a84a3(0x1d4)][_0x1a84a3(0x1fa)][_0x1a84a3(0x1fd)],'body':_0x418268['data'][_0x1a84a3(0x1fa)]['payload'],'description':_0x418268[_0x1a84a3(0x1d3)],..._0x418268[_0x1a84a3(0x1d4)]};},async 'execute'(_0x38e58c){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x38e58c['appCode'],'input':readBusinessGroupUpdateInput(_0x38e58c),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0xff9ee4){const _0x3ddaf7=a66_0x5e998c,_0x34d189=_0xff9ee4['str'](_0x3ddaf7(0x205));return{'code':trim(_0xff9ee4[_0x3ddaf7(0x1f9)](_0x3ddaf7(0x1e0))),'businessGroup':_0xff9ee4[_0x3ddaf7(0x1f9)]('business-group'),'expectBusinessGroup':_0x34d189===undefined||_0x34d189===''?undefined:_0x34d189};}function validateInput(_0x1c857e){const _0x12f9f4=a66_0x5e998c;if(!trim(_0x1c857e[_0x12f9f4(0x1e0)]))throw CliErrors[_0x12f9f4(0x1cc)](_0x12f9f4(0x1d2));if(_0x1c857e['businessGroup']===undefined)throw CliErrors[_0x12f9f4(0x1cc)]('--business-group\x20is\x20required');if(!trim(_0x1c857e[_0x12f9f4(0x1da)]))throw CliErrors[_0x12f9f4(0x1cc)](_0x12f9f4(0x1de));}function assertBusinessGroupUpdateSupported(_0x43cc55,_0x5cd39d){const _0x31eb53=a66_0x5e998c;if(_0x43cc55['sourceType']==='DB_TABLE'&&!_0x5cd39d)throw CliErrors[_0x31eb53(0x1cc)](_0x31eb53(0x1ce));}function resolveBusinessGroupDataset(_0x2c6cbb,_0x46b8fc){const _0x2414f9=a66_0x5e998c,_0x521e63=asPlainObject(_0x2c6cbb[_0x2414f9(0x1d6)]),_0x470efd=asPlainObject(_0x2c6cbb['dbtableConfig']),_0x5b8464=resolveSourceType(_0x2c6cbb,_0x521e63,_0x470efd),_0x11bb75=firstString(_0x2c6cbb[_0x2414f9(0x1f7)],_0x2c6cbb[_0x2414f9(0x1e0)],_0x521e63[_0x2414f9(0x1c5)],_0x46b8fc)||_0x46b8fc;return{'id':firstNumber(_0x2c6cbb[_0x2414f9(0x201)],_0x2c6cbb['id'],_0x521e63[_0x2414f9(0x1c9)])??firstString(_0x2c6cbb['modelId'],_0x2c6cbb['id'],_0x521e63[_0x2414f9(0x1c9)])??null,'code':_0x11bb75,'name':firstString(_0x2c6cbb[_0x2414f9(0x1cd)],_0x521e63[_0x2414f9(0x1d8)],_0x521e63[_0x2414f9(0x1cd)])||null,'sourceType':_0x5b8464,'dbTableSelector':_0x5b8464===_0x2414f9(0x1c3)?{'dbLinkId':firstNumber(_0x470efd[_0x2414f9(0x1d5)]),'tableName':firstString(_0x470efd[_0x2414f9(0x1f5)])||null}:null};}function resolveSourceType(_0x20998f,_0xeec72e,_0x1d3569){const _0xc79630=a66_0x5e998c,_0x1facb4=firstString(_0x20998f[_0xc79630(0x1e6)],_0x20998f[_0xc79630(0x207)],_0xeec72e[_0xc79630(0x1e6)],_0xeec72e[_0xc79630(0x207)])?.[_0xc79630(0x202)]()[_0xc79630(0x1f8)]();if(_0x1facb4===_0xc79630(0x1c3)||_0x1facb4===_0xc79630(0x1ee))return _0x1facb4;if(Object[_0xc79630(0x1f3)](_0x1d3569)[_0xc79630(0x1e8)]>0x0)return'DB_TABLE';throw CliErrors[_0xc79630(0x1cc)](_0xc79630(0x204));}function a66_0x3b85(){const _0x44dd1c=['toUpperCase','str','backend','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','655280zAIbIS','path','expectBusinessGroup','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','found','modelId','trim','appCode','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','expect-business-group','number','sourceType','dbTableSelector','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','DB_TABLE','788403bJClZR','datasetCode','parse','update',',\x20actual\x20','datasetId','Expectation\x20mismatch\x20at\x20businessGroup','ungrouped','validation','name','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','/smartapi/question/er-config/business-group/edit','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','986574HIapEC','--code\x20is\x20required','message','data','dbId','dataset','string','datasetName','isFinite','businessGroup','db-table','stringify','/smartapi/dblink/updateTableBusinessGroup','--business-group\x20must\x20not\x20be\x20blank','354278vQylOv','code','unchanged','business-group-update','1322505hiAXyA','object','582345rIFYBb','source','business-group','length','dbLinkId','isArray','value','prototype','56obgCBB','METADATA','Expected\x20','payload','apiError','1312272NlZkNK','keys','extend','tableName','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','modelCode'];a66_0x3b85=function(){return _0x44dd1c;};return a66_0x3b85();}function loadCurrentBusinessGroup(_0x4c0184,_0x55ecd4){const _0x5c97ee=a66_0x5e998c,_0x456e43=readBusinessGroupFromDatasetDetail(_0x4c0184,_0x55ecd4[_0x5c97ee(0x207)]);if(_0x456e43[_0x5c97ee(0x200)])return normalizeBusinessGroup(_0x456e43[_0x5c97ee(0x1eb)]);return'';}function readBusinessGroupFromDatasetDetail(_0x2ca011,_0x34f381){const _0x146105=a66_0x5e998c,_0x398793=asPlainObject(_0x2ca011[_0x146105(0x1d6)]),_0x13bd6b=firstPresent(_0x2ca011[_0x146105(0x1da)]);if(_0x13bd6b['found'])return _0x13bd6b;const _0x4abe2d=firstPresent(_0x398793[_0x146105(0x1da)]);if(_0x4abe2d[_0x146105(0x200)])return _0x4abe2d;if(_0x34f381===_0x146105(0x1c3))return{'found':![]};const _0x2a4952=readBusinessGroupFromExtend(_0x2ca011['extend']);if(_0x2a4952['found'])return _0x2a4952;return readBusinessGroupFromExtend(_0x398793[_0x146105(0x1f4)]);}function readBusinessGroupFromExtend(_0x59aefc){const _0x2eb009=a66_0x5e998c;if(_0x59aefc===undefined||_0x59aefc===null||_0x59aefc==='')return{'found':![]};if(typeof _0x59aefc===_0x2eb009(0x1d7))try{const _0x2a37c0=JSON[_0x2eb009(0x1c6)](_0x59aefc);return readBusinessGroupFromExtend(_0x2a37c0);}catch{return{'found':![]};}const _0x4d2db0=asPlainObject(_0x59aefc);if(Object[_0x2eb009(0x1ec)]['hasOwnProperty']['call'](_0x4d2db0,_0x2eb009(0x1da)))return{'found':!![],'value':_0x4d2db0['businessGroup']};return{'found':![]};}function firstPresent(..._0x54b9ee){for(const _0xe4924e of _0x54b9ee){if(_0xe4924e!==undefined&&_0xe4924e!==null)return{'found':!![],'value':_0xe4924e};}return{'found':![]};}function assertExpectedBusinessGroup(_0x576ac0,_0xaf4268){const _0x58ea91=a66_0x5e998c;if(_0xaf4268===undefined)return;const _0x109200=normalizeBusinessGroupArgument(_0xaf4268);if(_0x576ac0!==_0x109200)throw CliErrors[_0x58ea91(0x1cc)](_0x58ea91(0x1ca),_0x58ea91(0x1ef)+JSON[_0x58ea91(0x1dc)](_0x109200)+',\x20actual\x20'+JSON[_0x58ea91(0x1dc)](_0x576ac0));}function buildBackendPlan(_0x42286a,_0x21f30d,_0xb223e3){const _0x2682be=a66_0x5e998c;if(_0x21f30d[_0x2682be(0x207)]==='DB_TABLE'){if(!_0x21f30d[_0x2682be(0x208)]||_0x21f30d[_0x2682be(0x208)][_0x2682be(0x1e9)]===null||!_0x21f30d['dbTableSelector']['tableName'])throw CliErrors['validation']('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.');return{'kind':_0x2682be(0x1db),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x21f30d[_0x2682be(0x208)][_0x2682be(0x1e9)],'tableName':_0x21f30d[_0x2682be(0x208)][_0x2682be(0x1f5)],'businessGroup':_0xb223e3}};}return{'kind':'metadata','method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x42286a,'datasetCode':_0x21f30d[_0x2682be(0x1e0)],'businessGroup':_0xb223e3}};}function normalizeBusinessGroup(_0x17b475){const _0x358f3f=a66_0x5e998c;if(_0x17b475===undefined||_0x17b475===null)return'';return String(_0x17b475)[_0x358f3f(0x202)]();}function normalizeBusinessGroupArgument(_0xe5e834){const _0xfd3070=normalizeBusinessGroup(_0xe5e834);return _0xfd3070===UNGROUPED_BUSINESS_GROUP?'':_0xfd3070;}function displayBusinessGroup(_0xb2bb0){return _0xb2bb0||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x489372){const _0x67bc7c=a66_0x5e998c;if(!_0x489372||typeof _0x489372!==_0x67bc7c(0x1e4)||Array[_0x67bc7c(0x1ea)](_0x489372))return{};return _0x489372;}function a66_0x5895(_0x5d0fe4,_0x3f29e4){_0x5d0fe4=_0x5d0fe4-0x1c2;const _0x3b85df=a66_0x3b85();let _0x589506=_0x3b85df[_0x5d0fe4];return _0x589506;}function firstString(..._0x11ad62){const _0x26cb76=a66_0x5e998c;for(const _0x5e17e0 of _0x11ad62){if(typeof _0x5e17e0===_0x26cb76(0x1d7)&&_0x5e17e0[_0x26cb76(0x202)]())return _0x5e17e0[_0x26cb76(0x202)]();if(typeof _0x5e17e0==='number'&&Number[_0x26cb76(0x1d9)](_0x5e17e0))return String(_0x5e17e0);}return undefined;}function firstNumber(..._0x845621){const _0xa39e44=a66_0x5e998c;for(const _0xb28123 of _0x845621){if(typeof _0xb28123===_0xa39e44(0x206)&&Number[_0xa39e44(0x1d9)](_0xb28123))return _0xb28123;if(typeof _0xb28123===_0xa39e44(0x1d7)&&_0xb28123['trim']()&&Number[_0xa39e44(0x1d9)](Number(_0xb28123)))return Number(_0xb28123);}return null;}function trim(_0x5a08fe){return String(_0x5a08fe||'')['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
|
-
const
|
|
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
|
-
function
|
|
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_0x1ad704=a72_0x2b4a;(function(_0x4894b9,_0x2515e4){const _0x1fdca7=a72_0x2b4a,_0x3ee75e=_0x4894b9();while(!![]){try{const _0x5476ea=parseInt(_0x1fdca7(0x14e))/0x1*(-parseInt(_0x1fdca7(0x154))/0x2)+-parseInt(_0x1fdca7(0x11a))/0x3+-parseInt(_0x1fdca7(0x159))/0x4+parseInt(_0x1fdca7(0x146))/0x5*(parseInt(_0x1fdca7(0x141))/0x6)+parseInt(_0x1fdca7(0x129))/0x7*(-parseInt(_0x1fdca7(0x134))/0x8)+parseInt(_0x1fdca7(0x111))/0x9*(parseInt(_0x1fdca7(0x14b))/0xa)+parseInt(_0x1fdca7(0x126))/0xb*(parseInt(_0x1fdca7(0x151))/0xc);if(_0x5476ea===_0x2515e4)break;else _0x3ee75e['push'](_0x3ee75e['shift']());}catch(_0xff77c6){_0x3ee75e['push'](_0x3ee75e['shift']());}}}(a72_0x46ce,0xe22e6));function a72_0x2b4a(_0x1212a3,_0x389ee4){_0x1212a3=_0x1212a3-0x107;const _0x46ce69=a72_0x46ce();let _0x2b4a72=_0x46ce69[_0x1212a3];return _0x2b4a72;}import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x4d0476,_0x124cde){const _0x2bfabe=a72_0x2b4a,_0x56d0a3=_0x4d0476[_0x2bfabe(0x11e)](_0x124cde)[_0x2bfabe(0x132)]();if(!_0x56d0a3)throw CliErrors[_0x2bfabe(0x148)](_0x124cde);return _0x56d0a3;}function explicitDblink(_0x5bc433){const _0x345a81=a72_0x2b4a,_0x326ea2=_0x5bc433[_0x345a81(0x122)](_0x345a81(0x12f));if(_0x326ea2===undefined||_0x326ea2===null)return undefined;const _0x384074=Number(_0x326ea2);if(!Number['isSafeInteger'](_0x384074)||_0x384074<=0x0)throw CliErrors[_0x345a81(0x13e)](_0x345a81(0x121));return _0x384074;}export function validateCrossRelation(_0x4a371a,_0x3c5893){const _0x28dd1a=a72_0x2b4a,_0x55cf59=explicitDblink(_0x4a371a);if(_0x3c5893==='list'){if(!_0x4a371a[_0x28dd1a(0x11e)](_0x28dd1a(0x13c))[_0x28dd1a(0x132)]()&&_0x55cf59===undefined)throw CliErrors['validation'](_0x28dd1a(0x112));return;}required(_0x4a371a,_0x28dd1a(0x13c)),required(_0x4a371a,'from-column');if(_0x3c5893!=='delete'){required(_0x4a371a,'to-datasetcode'),required(_0x4a371a,_0x28dd1a(0x142));const _0x4141b3=_0x4a371a[_0x28dd1a(0x11e)](_0x28dd1a(0x15a))[_0x28dd1a(0x132)]();if(_0x4141b3&&!CROSS_RELATION_CARDINALITY_FLAG[_0x28dd1a(0x116)]['includes'](_0x4141b3))throw CliErrors['validation'](_0x28dd1a(0x13f));}}async function resolveEndpoint(_0x1cb9b9){const _0x5c0b12=a72_0x2b4a,_0x24f5c9=await getDatasetDetail(_0x1cb9b9),_0x27bbcd=_0x24f5c9?.[_0x5c0b12(0x14f)]??{};if((_0x24f5c9?.['source']??_0x27bbcd[_0x5c0b12(0x133)])!=='DB_TABLE')throw CliErrors[_0x5c0b12(0x13e)](_0x5c0b12(0x10d)+_0x1cb9b9+_0x5c0b12(0x117));const _0x596937=_0x24f5c9[_0x5c0b12(0x10c)]??_0x24f5c9[_0x5c0b12(0x11d)]??{};let _0x4e0423=_0x24f5c9['extend']??_0x27bbcd[_0x5c0b12(0x12a)]??{};if(typeof _0x4e0423===_0x5c0b12(0x107))try{_0x4e0423=_0x4e0423[_0x5c0b12(0x132)]()?JSON[_0x5c0b12(0x110)](_0x4e0423):{};}catch{throw CliErrors['validation'](_0x5c0b12(0x10d)+_0x1cb9b9+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x50bd38=Number(_0x4e0423?.['storageProfile']?.[_0x5c0b12(0x158)]??_0x24f5c9[_0x5c0b12(0x138)]?.['dbId']??_0x27bbcd[_0x5c0b12(0x138)]?.[_0x5c0b12(0x158)]??_0x596937[_0x5c0b12(0x158)]??_0x27bbcd['dbId']??_0x24f5c9[_0x5c0b12(0x158)]),_0x3e4196=String(_0x24f5c9[_0x5c0b12(0x153)]??_0x27bbcd[_0x5c0b12(0x153)]??_0x596937[_0x5c0b12(0x153)]??'')[_0x5c0b12(0x132)]();if(!Number[_0x5c0b12(0x149)](_0x50bd38)||_0x50bd38<=0x0||!_0x3e4196)throw CliErrors[_0x5c0b12(0x13e)]('Dataset\x20'+_0x1cb9b9+_0x5c0b12(0x12e));return{'datasetCode':_0x1cb9b9,'dblinkId':_0x50bd38,'table':_0x3e4196};}export async function resolveCrossRelationQuery(_0x1fc134){const _0x167c4b=a72_0x2b4a,_0x22a546=_0x1fc134['str'](_0x167c4b(0x13c))[_0x167c4b(0x132)](),_0x36cf35=explicitDblink(_0x1fc134),_0x4858b9=_0x22a546?await resolveEndpoint(_0x22a546):undefined;if(_0x4858b9&&_0x36cf35!==undefined&&_0x4858b9['dblinkId']!==_0x36cf35)throw CliErrors[_0x167c4b(0x13e)](_0x167c4b(0x155));const _0x1ac641=_0x4858b9?.[_0x167c4b(0x15b)]??_0x36cf35;if(_0x1ac641===undefined)throw CliErrors[_0x167c4b(0x13e)](_0x167c4b(0x112));return{'appCode':_0x1fc134['appCode'],'fromDblinkId':_0x1ac641,..._0x22a546?{'fromDatasetCode':_0x22a546}:{},..._0x1fc134[_0x167c4b(0x11e)](_0x167c4b(0x152))[_0x167c4b(0x132)]()?{'fromField':_0x1fc134[_0x167c4b(0x11e)]('from-column')[_0x167c4b(0x132)]()}:{}};}export function projectCrossRelation(_0x46ff39){const _0x4aa9ad=a72_0x2b4a;return{'relationId':_0x46ff39['relationId'],'from':{'source':_0x4aa9ad(0x11c),'datasetCode':_0x46ff39[_0x4aa9ad(0x109)],'datasetName':_0x46ff39['fromDatasetName'],'dblinkId':_0x46ff39['fromDblinkId'],'table':_0x46ff39[_0x4aa9ad(0x147)],'field':_0x46ff39[_0x4aa9ad(0x143)]},'to':{'source':_0x4aa9ad(0x11c),'datasetCode':_0x46ff39[_0x4aa9ad(0x124)],'datasetName':_0x46ff39['toDatasetName'],'dblinkId':_0x46ff39[_0x4aa9ad(0x13d)],'table':_0x46ff39[_0x4aa9ad(0x150)],'field':_0x46ff39[_0x4aa9ad(0x11f)],'labelField':_0x46ff39[_0x4aa9ad(0x119)]},'relation':{'cardinality':_0x46ff39['cardinality'],'relationType':_0x46ff39[_0x4aa9ad(0x113)]}};}function ambiguity(_0xaa850){const _0x304425=a72_0x2b4a,_0x5239ff=CliErrors[_0x304425(0x13e)](_0x304425(0x12c),_0x304425(0x13a));return Object[_0x304425(0x156)](_0x5239ff,_0x304425(0x15e),{'value':{'candidates':_0xaa850[_0x304425(0x10a)](projectCrossRelation)}}),_0x5239ff;}const sameName=(_0x358883,_0x17a4d0)=>_0x358883[a72_0x1ad704(0x144)]()===_0x17a4d0[a72_0x1ad704(0x144)]();function matchesEndpoint(_0x28e2e4,_0x1ba0d3,_0x5b6ee8,_0xbef0b3,_0x26bf5c){const _0x1cf9d5=a72_0x1ad704;return _0x28e2e4[_0x1cf9d5(0x130)]===_0x1ba0d3['dblinkId']&&sameName(_0x28e2e4['fromTableName'],_0x1ba0d3[_0x1cf9d5(0x13b)])&&sameName(_0x28e2e4[_0x1cf9d5(0x143)],_0x5b6ee8)&&_0x28e2e4['toDblinkId']===_0xbef0b3[_0x1cf9d5(0x15b)]&&sameName(_0x28e2e4['toTableName'],_0xbef0b3[_0x1cf9d5(0x13b)])&&sameName(_0x28e2e4[_0x1cf9d5(0x11f)],_0x26bf5c);}function a72_0x46ce(){const _0x1cc732=['matched','\x20write\x20was\x20not\x20verified.','storageProfile','expectedCardinality','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','table','from-datasetcode','toDblinkId','validation','Invalid\x20--cardinality.','relationId','12hGjOwy','to-column','fromField','toLowerCase','to-datasetcode','2967485lngCad','fromTableName','flagMissing','isSafeInteger','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','20ldbNGw','unconfirmed','body','33563NAvcQt','dataset','toTableName','94632ijEixQ','from-column','tableName','104KrMiMn','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','defineProperty','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','dbId','2497448MTtfTE','cardinality','dblinkId','from','length','data','string','label_inherited','fromDatasetCode','map','appCode','dbtableConfig','Dataset\x20','filter','multiple\x20cross-database\x20relations\x20matched','parse','5318289eyJKNa','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','relationType','message','delete','enum','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','\x20verified.','refTableLabelName','1102923hdUzoP','expectedLabel','DB_TABLE','dbtable','str','toField','Cross-database\x20relation\x20','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','flag','query','toDatasetCode','some','2101zhMepE','POST','to-label-column','34405vwXglr','extend','before','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','datasetCode','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','from-dblink-id','fromDblinkId','Would\x20','trim','sourceType','344DLYece','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.'];a72_0x46ce=function(){return _0x1cc732;};return a72_0x46ce();}export async function prepareCrossRelation(_0x4bf165,_0xc2c09c){const _0x14ddfd=a72_0x1ad704,_0x238495=await resolveEndpoint(required(_0x4bf165,_0x14ddfd(0x13c))),_0x351fe5=explicitDblink(_0x4bf165);if(_0x351fe5!==undefined&&_0x238495[_0x14ddfd(0x15b)]!==_0x351fe5)throw CliErrors[_0x14ddfd(0x13e)](_0x14ddfd(0x155));const _0x20680e={'appCode':_0x4bf165[_0x14ddfd(0x10b)],'fromDatasetCode':_0x238495['datasetCode'],'fromField':required(_0x4bf165,_0x14ddfd(0x152)),..._0x351fe5!==undefined?{'fromDblinkId':_0x351fe5}:{}},_0x4fc5d2={'appCode':_0x4bf165['appCode'],'fromDblinkId':_0x238495['dblinkId'],'fromDatasetCode':_0x238495[_0x14ddfd(0x12d)],'fromField':_0x20680e[_0x14ddfd(0x143)]},_0x2429cb=await queryCrossDbRelations(_0x4fc5d2);let _0x4d6d33=null;if(_0xc2c09c!=='create'){if(_0x2429cb[_0x14ddfd(0x15d)]>0x1)throw ambiguity(_0x2429cb);_0x4d6d33=_0x2429cb[0x0]??null;if(!_0x4d6d33)throw CliErrors['validation'](_0x14ddfd(0x14a));}if(_0xc2c09c===_0x14ddfd(0x115))return{'operation':_0xc2c09c,'from':_0x238495,'query':_0x4fc5d2,'body':_0x20680e,'before':_0x4d6d33};const _0x3c66e9=await resolveEndpoint(required(_0x4bf165,_0x14ddfd(0x145)));if(_0x238495[_0x14ddfd(0x15b)]===_0x3c66e9[_0x14ddfd(0x15b)])throw CliErrors[_0x14ddfd(0x13e)](_0x14ddfd(0x135));const _0x340719=_0x4bf165[_0x14ddfd(0x11e)](_0x14ddfd(0x128))[_0x14ddfd(0x132)](),_0x1ebcf1=_0x4bf165[_0x14ddfd(0x11e)]('cardinality')[_0x14ddfd(0x132)](),_0x2b2dfe={..._0x20680e,'toDatasetCode':_0x3c66e9[_0x14ddfd(0x12d)],'toField':required(_0x4bf165,_0x14ddfd(0x142)),..._0x340719?{'refTableLabelName':_0x340719}:{},..._0x1ebcf1?{'cardinality':_0x1ebcf1}:{}};if(_0x2429cb[_0x14ddfd(0x125)](_0x5a2c25=>_0x5a2c25[_0x14ddfd(0x140)]!==_0x4d6d33?.['relationId']&&matchesEndpoint(_0x5a2c25,_0x238495,_0x2b2dfe[_0x14ddfd(0x143)],_0x3c66e9,_0x2b2dfe[_0x14ddfd(0x11f)])))throw CliErrors[_0x14ddfd(0x13e)](_0x14ddfd(0x157));return{'operation':_0xc2c09c,'from':_0x238495,'to':_0x3c66e9,'query':_0x4fc5d2,'body':_0x2b2dfe,'before':_0x4d6d33,'expectedLabel':_0x340719||_0x4d6d33?.['refTableLabelName']||_0x2b2dfe['toField'],'expectedCardinality':_0x1ebcf1||_0x4d6d33?.[_0x14ddfd(0x15a)]||null};}function mutationData(_0x1ecff0,_0x201092,_0x583baa){const _0x38e083=a72_0x1ad704,{operation:_0x5161e6,body:_0x36523e,before:_0x354a88}=_0x1ecff0;return{'operation':_0x5161e6,'selector':{'appCode':_0x36523e[_0x38e083(0x10b)],'from':{'datasetCode':_0x36523e[_0x38e083(0x109)],'field':_0x36523e[_0x38e083(0x143)],'dblinkId':_0x1ecff0['from'][_0x38e083(0x15b)]}},'before':_0x354a88?projectCrossRelation(_0x354a88):null,'after':_0x583baa,'dryRun':_0x201092,'backend':{'method':_0x38e083(0x127),'path':CROSS_DB_RELATION_PATHS[_0x5161e6]},'warnings':_0x5161e6==='update'&&!_0x36523e[_0x38e083(0x119)]?[{'code':_0x38e083(0x108),'message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x24cc7e,_0x54a699){const _0x1bebef=a72_0x1ad704,_0x9d3c03=await prepareCrossRelation(_0x24cc7e,_0x54a699),_0x2bbb56=_0x9d3c03[_0x1bebef(0x14d)],_0x498d38=_0x54a699===_0x1bebef(0x115)?null:{..._0x9d3c03[_0x1bebef(0x12b)]?{'relationId':_0x9d3c03[_0x1bebef(0x12b)][_0x1bebef(0x140)]}:{},'from':{'datasetCode':_0x9d3c03[_0x1bebef(0x15c)][_0x1bebef(0x12d)],'dblinkId':_0x9d3c03[_0x1bebef(0x15c)][_0x1bebef(0x15b)],'table':_0x9d3c03['from']['table'],'field':_0x2bbb56['fromField']},'to':{'datasetCode':_0x9d3c03['to']['datasetCode'],'dblinkId':_0x9d3c03['to'][_0x1bebef(0x15b)],'table':_0x9d3c03['to'][_0x1bebef(0x13b)],'field':_0x2bbb56[_0x1bebef(0x11f)],'labelField':_0x9d3c03[_0x1bebef(0x11b)]},'relation':{'cardinality':_0x9d3c03['expectedCardinality'],'relationType':0x2}};return{...mutationData(_0x9d3c03,!![],null),'after':_0x498d38,'method':_0x1bebef(0x127),'url':CROSS_DB_RELATION_PATHS[_0x54a699],'body':_0x9d3c03['body'],'description':_0x1bebef(0x131)+_0x54a699+'\x20a\x20cross-database\x20relation\x20for\x20'+_0x2bbb56[_0x1bebef(0x109)]+'.'+_0x2bbb56[_0x1bebef(0x143)]};}export async function executeCrossRelation(_0x562f81,_0x5670be,_0x29dca4){const _0x2279f5=a72_0x1ad704,_0x4a8513=await prepareCrossRelation(_0x562f81,_0x5670be);try{await _0x29dca4(_0x4a8513[_0x2279f5(0x14d)]);}catch(_0x550a44){if(_0x550a44 instanceof CliError&&_0x550a44[_0x2279f5(0x114)]['includes'](_0x2279f5(0x10f))){const _0x2e8c2e=await queryCrossDbRelations(_0x4a8513[_0x2279f5(0x123)])['catch'](()=>[]);throw ambiguity(_0x2e8c2e);}throw _0x550a44;}let _0x30c798=[],_0x1798a2,_0x22f06c=![];try{_0x30c798=await queryCrossDbRelations(_0x4a8513[_0x2279f5(0x123)]);if(_0x5670be===_0x2279f5(0x115))_0x22f06c=!_0x30c798['some'](_0x542027=>_0x542027[_0x2279f5(0x140)]===_0x4a8513[_0x2279f5(0x12b)]['relationId']);else{const _0x2f6d29=_0x4a8513['body'],_0x28a3b8=_0x30c798[_0x2279f5(0x10e)](_0x5842e2=>matchesEndpoint(_0x5842e2,_0x4a8513[_0x2279f5(0x15c)],_0x2f6d29[_0x2279f5(0x143)],_0x4a8513['to'],_0x2f6d29[_0x2279f5(0x11f)])&&(_0x5670be==='create'||_0x5842e2[_0x2279f5(0x140)]===_0x4a8513['before'][_0x2279f5(0x140)]));_0x1798a2=_0x28a3b8[_0x2279f5(0x15d)]===0x1?_0x28a3b8[0x0]:undefined,_0x22f06c=!!_0x1798a2&&_0x1798a2[_0x2279f5(0x119)]===_0x4a8513[_0x2279f5(0x11b)]&&_0x1798a2[_0x2279f5(0x15a)]===_0x4a8513[_0x2279f5(0x139)]&&_0x1798a2[_0x2279f5(0x113)]===0x2;}}catch{}const _0xc4f843={...mutationData(_0x4a8513,![],_0x1798a2?projectCrossRelation(_0x1798a2):null),'verification':{'status':_0x22f06c?_0x2279f5(0x136):_0x2279f5(0x14c),'verified':_0x22f06c}};if(!_0x22f06c){const _0x4a5f9c=CliErrors['apiError'](_0x2279f5(0x120)+_0x5670be+_0x2279f5(0x137),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object[_0x2279f5(0x156)](_0x4a5f9c,_0x2279f5(0x15e),{'value':{..._0xc4f843,'candidates':_0x30c798[_0x2279f5(0x10a)](projectCrossRelation)}});throw _0x4a5f9c;}return{'ok':!![],'data':_0xc4f843,'message':_0x2279f5(0x120)+_0x5670be+_0x2279f5(0x118)};}
|
|
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
|
-
const
|
|
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)};
|