@lovrabet/rabetbase-cli 2.5.6 → 2.5.7
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.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +26 -6
- 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.d.ts +12 -0
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +8 -4
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x1e1e(_0x5d6d2a,_0x359670){_0x5d6d2a=_0x5d6d2a-0x1a7;const _0x3e104b=a59_0x3e10();let _0x1e1eb3=_0x3e104b[_0x5d6d2a];return _0x1e1eb3;}function a59_0x3e10(){const _0x231ca5=['str','config','get','420759oxzRmp','436mVwcPO','37583986bTPMLp','string','validation','\x20config\x20get\x20--key\x20<key>','app','key','35FxgLRC','1VZZEPj','1114257typIoK','object','821544PBmroQ','2528166dzmFAX','25325ayJdLB','12vdPyqr','3120000DxpDPT','160Hulosr','Missing\x20key.'];a59_0x3e10=function(){return _0x231ca5;};return a59_0x3e10();}const a59_0x2b6e2d=a59_0x1e1e;(function(_0x22d31a,_0x18610f){const _0x2eda55=a59_0x1e1e,_0x308b34=_0x22d31a();while(!![]){try{const _0x41ccef=-parseInt(_0x2eda55(0x1af))/0x1*(parseInt(_0x2eda55(0x1b3))/0x2)+-parseInt(_0x2eda55(0x1b0))/0x3+-parseInt(_0x2eda55(0x1a7))/0x4*(parseInt(_0x2eda55(0x1b4))/0x5)+parseInt(_0x2eda55(0x1b2))/0x6*(-parseInt(_0x2eda55(0x1ae))/0x7)+-parseInt(_0x2eda55(0x1b6))/0x8+parseInt(_0x2eda55(0x1bc))/0x9*(parseInt(_0x2eda55(0x1b7))/0xa)+parseInt(_0x2eda55(0x1a8))/0xb*(parseInt(_0x2eda55(0x1b5))/0xc);if(_0x41ccef===_0x18610f)break;else _0x308b34['push'](_0x308b34['shift']());}catch(_0x3de546){_0x308b34['push'](_0x308b34['shift']());}}}(a59_0x3e10,0xdc587));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(_0x26387d){const _0x27d6ca=a59_0x1e1e,_0x28832f=_0x26387d[_0x27d6ca(0x1b9)](_0x27d6ca(0x1ad));if(!_0x28832f)throw CliErrors[_0x27d6ca(0x1aa)](_0x27d6ca(0x1b8),'Usage:\x20'+CLI_BIN_NAME+_0x27d6ca(0x1ab));const _0x8232bf=readConfig(),_0xdfed81=_0x28832f===_0x27d6ca(0x1ac)?'appcode':_0x28832f,_0x500d5d=_0x8232bf[_0xdfed81];if(_0x500d5d===undefined)throw CliErrors[_0x27d6ca(0x1aa)]('Key\x20not\x20found:\x20'+_0x28832f);return{'ok':!![],'data':typeof _0x500d5d===_0x27d6ca(0x1b1)?_0x500d5d:{[_0xdfed81]:_0x500d5d},'message':typeof _0x500d5d===_0x27d6ca(0x1b1)?undefined:String(_0x500d5d)};}export const configGetDefinition={'service':a59_0x2b6e2d(0x1ba),'command':a59_0x2b6e2d(0x1bb),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x2b6e2d(0x1ad),'type':a59_0x2b6e2d(0x1a9),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0x5776(_0x437c10,_0x2589af){_0x437c10=_0x437c10-0x82;const _0x187a9a=a60_0x187a();let _0x57764b=_0x187a9a[_0x437c10];return _0x57764b;}(function(_0x32a9dd,_0x128db5){const _0x19e667=a60_0x5776,_0x45f9ba=_0x32a9dd();while(!![]){try{const _0x2492cc=parseInt(_0x19e667(0x86))/0x1+-parseInt(_0x19e667(0x82))/0x2+-parseInt(_0x19e667(0x87))/0x3*(-parseInt(_0x19e667(0x85))/0x4)+parseInt(_0x19e667(0x88))/0x5+parseInt(_0x19e667(0x83))/0x6+parseInt(_0x19e667(0x84))/0x7+-parseInt(_0x19e667(0x89))/0x8;if(_0x2492cc===_0x128db5)break;else _0x45f9ba['push'](_0x45f9ba['shift']());}catch(_0x464ba4){_0x45f9ba['push'](_0x45f9ba['shift']());}}}(a60_0x187a,0x7ebbb));import{configListDefinition}from'../../commands/config/list.js';function a60_0x187a(){const _0x125787=['4643380CYlwca','13524640QzyTob','1612852TZmjDL','1917048YdajXh','2771636JCliyP','1540QgYJTk','871088KxNbGx','3903mxlgiy'];a60_0x187a=function(){return _0x125787;};return a60_0x187a();}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_0x4bf344=a61_0x3cb5;(function(_0x3f0795,_0x4f33cf){const _0x13ad13=a61_0x3cb5,_0x47751d=_0x3f0795();while(!![]){try{const _0x4c60be=-parseInt(_0x13ad13(0x1c7))/0x1*(-parseInt(_0x13ad13(0x1da))/0x2)+parseInt(_0x13ad13(0x1d6))/0x3*(-parseInt(_0x13ad13(0x1c1))/0x4)+-parseInt(_0x13ad13(0x1c8))/0x5*(parseInt(_0x13ad13(0x1ce))/0x6)+parseInt(_0x13ad13(0x1bd))/0x7+-parseInt(_0x13ad13(0x1bb))/0x8*(-parseInt(_0x13ad13(0x1cf))/0x9)+-parseInt(_0x13ad13(0x1b7))/0xa*(-parseInt(_0x13ad13(0x1ac))/0xb)+parseInt(_0x13ad13(0x1dc))/0xc;if(_0x4c60be===_0x4f33cf)break;else _0x47751d['push'](_0x47751d['shift']());}catch(_0x1b2b1c){_0x47751d['push'](_0x47751d['shift']());}}}(a61_0x4070,0xd4adf));function a61_0x4070(){const _0xe8e980=['8931192JjCUNN','config','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20platform\x20API\x20HTTPS\x20origin','independent','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','ExitPromptError','validation','5071ExqxCa','mode','join','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','official','manifestDomains','user-domain','runtime-domain','assign','Available\x20regions:\x20','certificateDomain','12380sAmotJ','str','project','localDomain','8TCWQbi','enterprise-v1','3953600uFfFqu','Custom\x20certificate\x20service\x20HTTPS\x20origin','api-domain','skill-domain','115124gYAXpy','Region\x20\x22','keys','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','cancelled','global','2003qYjcga','4435twzbxq','domains','Custom\x20knowledge-base\x20HTTPS\x20origin','Official\x20Lovrabet\x20region:\x20','name','kb-domain','930EIZHGh','3178233JqdyWi','region','kb-service-domain','write','cdn','string','label','132MBOYGC','app-domain','routing','Custom\x20Runtime\x20HTTPS\x20origin','42hZJnrK','Custom\x20KB\x20Service\x20HTTPS\x20origin'];a61_0x4070=function(){return _0xe8e980;};return a61_0x4070();}import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';function a61_0x3cb5(_0x3f4aa7,_0x287fbe){_0x3f4aa7=_0x3f4aa7-0x1a5;const _0x407067=a61_0x4070();let _0x3cb597=_0x407067[_0x3f4aa7];return _0x3cb597;}export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x4bf344(0x1d0),'type':'string','description':a61_0x4bf344(0x1cb)+ENABLED_LOVRABET_REGION_VALUES[a61_0x4bf344(0x1ae)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':a61_0x4bf344(0x1d4),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0x4bf344(0x1b2),'type':'string','description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a61_0x4bf344(0x1bf),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1a7)},{'name':a61_0x4bf344(0x1b3),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1d9)},{'name':a61_0x4bf344(0x1c0),'type':a61_0x4bf344(0x1d4),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a61_0x4bf344(0x1cd),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1ca)},{'name':a61_0x4bf344(0x1d1),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1db)},{'name':a61_0x4bf344(0x1d7),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1af)},{'name':'local-domain','type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1a6)},{'name':'certificate-domain','type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1be)}];async function resolveRegion(_0x1d1906){const _0x146baf=a61_0x4bf344,_0xa5ba32=_0x1d1906[_0x146baf(0x1b8)](_0x146baf(0x1d0));if(_0xa5ba32){if(!isEnabledLovrabetRegion(_0xa5ba32))throw CliErrors['validation'](_0x146baf(0x1c2)+_0xa5ba32+'\x22\x20is\x20not\x20currently\x20available.',_0x146baf(0x1b5)+ENABLED_LOVRABET_REGION_VALUES[_0x146baf(0x1ae)](',\x20'));return _0xa5ba32;}if(_0x1d1906['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x4abdf5=>({'name':getOfficialRoutingProfile(_0x4abdf5)[_0x146baf(0x1d5)]+'\x20('+_0x4abdf5+')','value':_0x4abdf5}))});}catch(_0x161311){if(_0x161311?.[_0x146baf(0x1cc)]===_0x146baf(0x1aa))throw CliErrors[_0x146baf(0x1c5)]();throw _0x161311;}}export async function executeConfigInit(_0x598c8e){const _0x14b3a1=a61_0x4bf344,_0x33f985=resolveDomainConfigInput(_0x598c8e),_0x1ea64e=_0x33f985[_0x14b3a1(0x1c9)],_0x5ca95e=Object[_0x14b3a1(0x1c3)](_0x1ea64e)['length']>0x0;if(_0x5ca95e&&_0x598c8e[_0x14b3a1(0x1b8)](_0x14b3a1(0x1d0)))throw CliErrors[_0x14b3a1(0x1ab)](_0x14b3a1(0x1c4));if(!!_0x1ea64e[_0x14b3a1(0x1ba)]!==!!_0x1ea64e[_0x14b3a1(0x1b6)])throw CliErrors[_0x14b3a1(0x1ab)]('Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.');const _0x6baba7=_0x598c8e['bool'](_0x14b3a1(0x1c6))?_0x14b3a1(0x1c6):_0x14b3a1(0x1b9),_0x150d6b=readScopedConfig(_0x6baba7);for(const _0x537599 of DOMAIN_CONFIG_FIELDS)delete _0x150d6b[_0x537599];for(const _0x4f59fd of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x150d6b[_0x4f59fd];delete _0x150d6b['routing'];let _0x1c2b3f=null;if(_0x5ca95e)delete _0x150d6b[_0x14b3a1(0x1d0)],_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?_0x150d6b[_0x14b3a1(0x1d8)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x33f985[_0x14b3a1(0x1b1)],'cdn':_0x33f985[_0x14b3a1(0x1d3)]}:Object[_0x14b3a1(0x1b4)](_0x150d6b,_0x1ea64e);else{_0x1c2b3f=await resolveRegion(_0x598c8e);if(_0x1c2b3f===DEFAULT_LOVRABET_REGION)delete _0x150d6b[_0x14b3a1(0x1d0)];else _0x150d6b[_0x14b3a1(0x1d0)]=_0x1c2b3f;}return writeScopedConfig(_0x150d6b,_0x6baba7),{'ok':!![],'message':_0x5ca95e?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x14b3a1(0x1c3)](_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?_0x33f985[_0x14b3a1(0x1b1)]:_0x1ea64e)[_0x14b3a1(0x1ae)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x1c2b3f+'.','data':{'mode':_0x5ca95e?_0x14b3a1(0x1a8):_0x14b3a1(0x1b0),'protocol':_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x1c2b3f,'domains':_0x1ea64e,'cdn':_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?_0x33f985['cdn']:undefined}};}export const configInitDefinition={'service':a61_0x4bf344(0x1a5),'command':'init','description':a61_0x4bf344(0x1a9),'risk':a61_0x4bf344(0x1d2),'confirmationDescription':'Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x40b553=a62_0x238f;(function(_0x3f06b1,_0x3105bd){const _0x4c5baf=a62_0x238f,_0x57d70f=_0x3f06b1();while(!![]){try{const _0x4c04e6=parseInt(_0x4c5baf(0x13f))/0x1+-parseInt(_0x4c5baf(0x141))/0x2*(parseInt(_0x4c5baf(0x140))/0x3)+parseInt(_0x4c5baf(0x145))/0x4*(parseInt(_0x4c5baf(0x13e))/0x5)+-parseInt(_0x4c5baf(0x142))/0x6*(-parseInt(_0x4c5baf(0x13d))/0x7)+parseInt(_0x4c5baf(0x14b))/0x8+-parseInt(_0x4c5baf(0x147))/0x9+-parseInt(_0x4c5baf(0x146))/0xa;if(_0x4c04e6===_0x3105bd)break;else _0x57d70f['push'](_0x57d70f['shift']());}catch(_0x624b4c){_0x57d70f['push'](_0x57d70f['shift']());}}}(a62_0x283f,0xaf554));import{readScopedConfig}from'../../commands/config/shared.js';function a62_0x283f(){const _0xc8318c=['List\x20all\x20config\x20values','bool','config','4654800WjAuWn','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','list','10997AAFFTz','2090255tSKtEv','1368176czwdiq','3GIfUok','344334MRwsqN','4578MzGdyf','read','global','4HCdHiW','22553140zSUWkN','3789945uDfivn'];a62_0x283f=function(){return _0xc8318c;};return a62_0x283f();}import{readConfig}from'../../utils/config.js';async function execute(_0x525b8f){const _0x3089d4=a62_0x238f,_0x38d1ba=_0x525b8f[_0x3089d4(0x149)](_0x3089d4(0x144))?readScopedConfig(_0x3089d4(0x144)):readConfig();return{'ok':!![],'data':_0x38d1ba};}function a62_0x238f(_0x3ce7e5,_0x36f5ff){_0x3ce7e5=_0x3ce7e5-0x13d;const _0x283f1f=a62_0x283f();let _0x238f8a=_0x283f1f[_0x3ce7e5];return _0x238f8a;}export const configListDefinition={'service':a62_0x40b553(0x14a),'command':a62_0x40b553(0x14d),'description':a62_0x40b553(0x148),'risk':a62_0x40b553(0x143),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a62_0x40b553(0x14c),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a63_0x4f5f(){const _0x1c35b4=['466300fUJVrF','Set\x20a\x20config\x20value','length','config','964899RdldPP','locale','633402IPVDna','Config\x20value','56886EbfsZh','\x20workspace\x20add\x20<name>\x20--appcode\x20','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','21FXICTY','join','Global','object','keys','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','str','env','Missing\x20value.','appcode','bool','value','Invalid\x20locale\x20value.','string','Usage:\x20','app','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x22.\x20Allowed:\x20','Missing\x20key.','key','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20set\x20to:\x20','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','25014630hSmeeM','8535pcQtOQ','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Settable\x20top-level\x20keys:\x20','Top-level\x20key\x20\x22','validation','Project','global','1885016BeZPAD','3lQRODU','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','1668JpbMUw','apps','`,\x20`','boolean','\x20appcode\x20set\x20to:\x20','riskLevel','includes','set'];a63_0x4f5f=function(){return _0x1c35b4;};return a63_0x4f5f();}const a63_0x3f3fd3=a63_0x479b;(function(_0x18bcf9,_0x4f342e){const _0x124179=a63_0x479b,_0x274a68=_0x18bcf9();while(!![]){try{const _0x3922d1=parseInt(_0x124179(0x1ca))/0x1*(-parseInt(_0x124179(0x1d4))/0x2)+-parseInt(_0x124179(0x1a6))/0x3+-parseInt(_0x124179(0x1cc))/0x4*(parseInt(_0x124179(0x1c2))/0x5)+-parseInt(_0x124179(0x1a4))/0x6+-parseInt(_0x124179(0x1a9))/0x7*(parseInt(_0x124179(0x1c9))/0x8)+parseInt(_0x124179(0x1d8))/0x9+parseInt(_0x124179(0x1c1))/0xa;if(_0x3922d1===_0x4f342e)break;else _0x274a68['push'](_0x274a68['shift']());}catch(_0x5a8532){_0x274a68['push'](_0x274a68['shift']());}}}(a63_0x4f5f,0x595ab));import{CliErrors}from'../../errors.js';function a63_0x479b(_0x3afac1,_0x1c4ca7){_0x3afac1=_0x3afac1-0x1a3;const _0x4f5f80=a63_0x4f5f();let _0x479b31=_0x4f5f80[_0x3afac1];return _0x479b31;}import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x4fd83f){const _0x242fe6=a63_0x479b,_0x524b06=_0x4fd83f[_0x242fe6(0x1af)](_0x242fe6(0x1bc)),_0x4e97f9=_0x4fd83f[_0x242fe6(0x1af)](_0x242fe6(0x1b4));if(!_0x524b06)throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1bb),_0x242fe6(0x1b7)+CLI_BIN_NAME+_0x242fe6(0x1bd));if(_0x4e97f9===undefined||_0x4e97f9==='')throw CliErrors['validation'](_0x242fe6(0x1b1),_0x242fe6(0x1b7)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');let _0x3c5610=_0x524b06,_0x13f78b=_0x4e97f9;if(_0x4e97f9[_0x242fe6(0x1d6)]>0x1f4)throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1be));if(_0x524b06===_0x242fe6(0x1d1))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1ae));if(!isTopLevelConfigKey(_0x524b06))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1c5)+_0x524b06+'\x22\x20is\x20not\x20settable.',_0x242fe6(0x1c4)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x524b06]&&!CONFIG_ENUM_VALUES[_0x524b06]['includes'](_0x4e97f9))throw CliErrors[_0x242fe6(0x1c6)]('Invalid\x20value\x20for\x20\x22'+_0x524b06+_0x242fe6(0x1ba)+CONFIG_ENUM_VALUES[_0x524b06][_0x242fe6(0x1aa)](',\x20'));if(_0x524b06===_0x242fe6(0x1a3)&&!normalizeLocale(_0x4e97f9))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1b5),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');DOMAIN_CONFIG_FIELDS[_0x242fe6(0x1d2)](_0x524b06)&&(_0x13f78b=normalizeDomainOrigin(_0x524b06,_0x4e97f9));const _0xca217b={'global':_0x4fd83f[_0x242fe6(0x1b3)](_0x242fe6(0x1c8))},_0x239300=resolveWriteScope(_0xca217b),_0x577de0=readScopedConfig(_0x239300);_0x524b06==='app'&&(_0x3c5610='appcode',delete _0x577de0[_0x242fe6(0x1b8)]);_0x524b06===_0x242fe6(0x1a3)&&(_0x13f78b=normalizeLocale(_0x4e97f9));if(_0x524b06===_0x242fe6(0x1b0)){_0x13f78b=normalizeEnv(_0x4e97f9);if(!isProduction(_0x13f78b)&&!isDaily(_0x13f78b))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1a8),_0x242fe6(0x1c3));}if(_0x524b06===_0x242fe6(0x1b2)){const _0x3ea5ad=_0x577de0['apps']&&typeof _0x577de0[_0x242fe6(0x1cd)]===_0x242fe6(0x1ac)?Object[_0x242fe6(0x1ad)](_0x577de0[_0x242fe6(0x1cd)]):[];if(_0x3ea5ad[_0x242fe6(0x1d6)]>0x0)throw CliErrors['validation'](_0x242fe6(0x1b9),'Use\x20`'+CLI_BIN_NAME+_0x242fe6(0x1a7)+_0x13f78b+_0x242fe6(0x1ce)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x475607=buildCanonicalProjectConfig({..._0x577de0},{'appCodes':[_0x13f78b],'env':typeof _0x577de0[_0x242fe6(0x1b0)]==='string'?_0x577de0[_0x242fe6(0x1b0)]:undefined});writeScopedConfig(_0x475607,_0x239300);const _0x1bea79=_0x239300===_0x242fe6(0x1c8)?'Global':_0x242fe6(0x1c7);return{'ok':!![],'message':'✓\x20'+_0x1bea79+_0x242fe6(0x1d0)+_0x13f78b+_0x242fe6(0x1c0)};}_0x577de0[_0x3c5610]=_0x13f78b,writeScopedConfig(_0x577de0,_0x239300);const _0x41be92=_0x239300===_0x242fe6(0x1c8)?_0x242fe6(0x1ab):_0x242fe6(0x1c7);return{'ok':!![],'message':'✓\x20'+_0x41be92+'\x20'+_0x3c5610+_0x242fe6(0x1bf)+_0x13f78b};}export const configSetDefinition={'service':a63_0x3f3fd3(0x1d7),'command':a63_0x3f3fd3(0x1d3),'description':a63_0x3f3fd3(0x1d5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x3f3fd3(0x1bc),'type':a63_0x3f3fd3(0x1b6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x3f3fd3(0x1b4),'type':'string','description':a63_0x3f3fd3(0x1a5),'required':!![]},{'name':'global','type':a63_0x3f3fd3(0x1cf),'description':a63_0x3f3fd3(0x1cb),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x125d65,_0x3a2a60){var _0x4d141d=a64_0x1a85,_0x5cf90a=_0x125d65();while(!![]){try{var _0x432680=parseInt(_0x4d141d(0xae))/0x1*(-parseInt(_0x4d141d(0xa9))/0x2)+-parseInt(_0x4d141d(0xac))/0x3*(-parseInt(_0x4d141d(0xa4))/0x4)+parseInt(_0x4d141d(0xaf))/0x5+parseInt(_0x4d141d(0xa3))/0x6*(-parseInt(_0x4d141d(0xb2))/0x7)+-parseInt(_0x4d141d(0xa8))/0x8*(-parseInt(_0x4d141d(0xad))/0x9)+parseInt(_0x4d141d(0xa6))/0xa*(-parseInt(_0x4d141d(0xb3))/0xb)+parseInt(_0x4d141d(0xa5))/0xc;if(_0x432680===_0x3a2a60)break;else _0x5cf90a['push'](_0x5cf90a['shift']());}catch(_0x46012c){_0x5cf90a['push'](_0x5cf90a['shift']());}}}(a64_0x325e,0x8052f));function a64_0x1a85(_0x16561d,_0x55e6c1){_0x16561d=_0x16561d-0xa3;var _0x325e49=a64_0x325e();var _0x1a854d=_0x325e49[_0x16561d];return _0x1a854d;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a64_0x325e(){var _0x28972c=['583TmibkB','56604WRkEwG','8mvvVle','6723000hvALkv','135230QJRFed','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','68648bHKGWw','1390MIkAFz','global','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','892383GnIVbT','342guHlrY','267brSLwQ','2516275KryhlL','project','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','413UYgcKE'];a64_0x325e=function(){return _0x28972c;};return a64_0x325e();}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x203a68){var _0x2f3341=a64_0x1a85;if(_0x203a68[_0x2f3341(0xaa)])return _0x2f3341(0xaa);if(!isInProject())throw CliErrors['validation'](_0x2f3341(0xb1),_0x2f3341(0xa7)+CLI_BIN_NAME+_0x2f3341(0xab));return _0x2f3341(0xb0);}export function readScopedConfig(_0x3b7e9c){return readConfigFile(resolveWriteConfigPath(_0x3b7e9c));}export function writeScopedConfig(_0x1afca4,_0xf55afa){writeConfigFile(resolveWriteConfigPath(_0xf55afa),_0x1afca4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x240fb9=a65_0x3404;(function(_0x47d01d,_0x4f289b){const _0x3f0215=a65_0x3404,_0x4a0239=_0x47d01d();while(!![]){try{const _0x2f5604=parseInt(_0x3f0215(0x14b))/0x1+-parseInt(_0x3f0215(0x184))/0x2+parseInt(_0x3f0215(0x15b))/0x3*(parseInt(_0x3f0215(0x18d))/0x4)+-parseInt(_0x3f0215(0x1a3))/0x5+parseInt(_0x3f0215(0x19f))/0x6*(-parseInt(_0x3f0215(0x15e))/0x7)+-parseInt(_0x3f0215(0x193))/0x8*(parseInt(_0x3f0215(0x188))/0x9)+parseInt(_0x3f0215(0x183))/0xa*(parseInt(_0x3f0215(0x181))/0xb);if(_0x2f5604===_0x4f289b)break;else _0x4a0239['push'](_0x4a0239['shift']());}catch(_0x44c33d){_0x4a0239['push'](_0x4a0239['shift']());}}}(a65_0x474a,0xccfc8));function a65_0x3404(_0x1f26b2,_0xd16804){_0x1f26b2=_0x1f26b2-0x146;const _0x474a4b=a65_0x474a();let _0x34049f=_0x474a4b[_0x1f26b2];return _0x34049f;}import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set(['MANY_TO_ONE',a65_0x240fb9(0x186)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x240fb9(0x15f),a65_0x240fb9(0x170),'DATETIME',a65_0x240fb9(0x163),a65_0x240fb9(0x14a),a65_0x240fb9(0x14e),a65_0x240fb9(0x18e),a65_0x240fb9(0x172),'ADDRESS',a65_0x240fb9(0x19a)]);export function isDatasetBatchDesign(_0xd9e370){const _0x418d8b=a65_0x240fb9;return isObject(_0xd9e370)&&_0xd9e370[_0x418d8b(0x1ad)]===_0x418d8b(0x160);}export function validateDatasetBatchDesign(_0x4c1ff5){const _0x2da541=a65_0x240fb9;(!isObject(_0x4c1ff5)||_0x4c1ff5[_0x2da541(0x1ad)]!==_0x2da541(0x160))&&fail(_0x2da541(0x187));_0x4c1ff5[_0x2da541(0x1a9)]!==0x1&&fail(_0x2da541(0x155));const _0x2d0ebe=objectArray(_0x4c1ff5[_0x2da541(0x173)],_0x2da541(0x173),0x1,0x14),_0x49bc1f=objectArray(_0x4c1ff5[_0x2da541(0x1a0)],_0x2da541(0x1a0),0x0,0xc8),_0x4988b1=objectArray(_0x4c1ff5[_0x2da541(0x148)],_0x2da541(0x148),0x0,0xc8),_0x598140=new Set(),_0xe38206=new Map();for(const [_0x2b4485,_0x107e4e]of _0x2d0ebe[_0x2da541(0x182)]()){const _0x422a24=requiredString(_0x107e4e[_0x2da541(0x199)],_0x2da541(0x177)+_0x2b4485+_0x2da541(0x18c));!LOCAL_KEY['test'](_0x422a24)&&fail(_0x2da541(0x177)+_0x2b4485+_0x2da541(0x15c)+LOCAL_KEY[_0x2da541(0x18b)]+'.');_0x598140['has'](_0x422a24)&&fail(_0x2da541(0x14f));_0x598140[_0x2da541(0x159)](_0x422a24);!isObject(_0x107e4e[_0x2da541(0x189)])&&fail('datasets['+_0x2b4485+_0x2da541(0x1ab));rejectServerDatasetIdentity(_0x107e4e['design'],_0x2da541(0x177)+_0x2b4485+_0x2da541(0x149));if(!isObject(_0x107e4e[_0x2da541(0x189)]['dataset']))fail(_0x2da541(0x177)+_0x2b4485+_0x2da541(0x151));rejectServerDatasetIdentity(_0x107e4e[_0x2da541(0x189)][_0x2da541(0x165)],_0x2da541(0x177)+_0x2b4485+_0x2da541(0x1a2)),requiredString(_0x107e4e[_0x2da541(0x189)][_0x2da541(0x165)][_0x2da541(0x17b)],'datasets['+_0x2b4485+_0x2da541(0x168));_0x2da541(0x1a0)in _0x107e4e[_0x2da541(0x189)]&&(!Array[_0x2da541(0x1a1)](_0x107e4e[_0x2da541(0x189)][_0x2da541(0x1a0)])||_0x107e4e[_0x2da541(0x189)]['relations'][_0x2da541(0x1ac)]!==0x0)&&fail('datasets['+_0x2b4485+_0x2da541(0x158));const _0x1e56c5=objectArray(_0x107e4e[_0x2da541(0x189)][_0x2da541(0x1ae)],'datasets['+_0x2b4485+_0x2da541(0x197),0x1,0xc8),_0x59b75a=new Map();for(const [_0x36ffb1,_0x5e6da9]of _0x1e56c5[_0x2da541(0x182)]()){const _0x14e5f8=fieldName(_0x5e6da9);if(!_0x14e5f8)fail(_0x2da541(0x177)+_0x2b4485+'].design.fields['+_0x36ffb1+_0x2da541(0x16a));const _0x23736a=_0x14e5f8[_0x2da541(0x152)]();if(_0x59b75a[_0x2da541(0x16d)](_0x23736a))fail(_0x2da541(0x169)+_0x422a24+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0x2cd8e7=stringValue(_0x5e6da9['type']??_0x5e6da9['fieldType'])[_0x2da541(0x190)]();if(!SUPPORTED_FIELD_TYPES[_0x2da541(0x16d)](_0x2cd8e7))fail(_0x2da541(0x177)+_0x2b4485+_0x2da541(0x18f)+_0x36ffb1+_0x2da541(0x1b1));_0x59b75a[_0x2da541(0x17c)](_0x23736a,_0x2cd8e7),[_0x5e6da9['refTable'],_0x5e6da9[_0x2da541(0x178)],_0x5e6da9['refTableLabelField']]['some'](_0x21a4f5=>stringValue(_0x21a4f5))&&fail(_0x2da541(0x177)+_0x2b4485+'].design.fields['+_0x36ffb1+_0x2da541(0x191));}_0xe38206[_0x2da541(0x17c)](_0x422a24,_0x59b75a);}const _0x4ff099=new Set(),_0x117bc8=new Set();for(const [_0x4520ee,_0x289f53]of _0x49bc1f['entries']()){const _0x329bed=validateRelation(_0x289f53,_0x4520ee,_0x598140,_0xe38206);if(_0x4ff099[_0x2da541(0x16d)](_0x329bed))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0x4ff099[_0x2da541(0x159)](_0x329bed);const _0x1c52c6=_0x329bed[_0x2da541(0x14c)]('\x00',0x2)[_0x2da541(0x157)]('\x00');if(_0x117bc8[_0x2da541(0x16d)](_0x1c52c6))fail(_0x2da541(0x19d));_0x117bc8[_0x2da541(0x159)](_0x1c52c6);}for(const [_0x2b9ce4,_0x3dc915]of _0x4988b1[_0x2da541(0x182)]()){requiredString(_0x3dc915[_0x2da541(0x166)],'unresolvedRelations['+_0x2b9ce4+_0x2da541(0x1a5)),validateConfidence(_0x3dc915['confidence'],'unresolvedRelations['+_0x2b9ce4+'].confidence');}return _0x4c1ff5;}export function reconcileBatchResult(_0x44be34){const _0x248174=a65_0x240fb9;if(!isObject(_0x44be34))return null;try{const _0x390779=stringArray(_0x44be34[_0x248174(0x154)],_0x248174(0x154),0x1,0x14),_0x2500f3=new Set(_0x390779);if(_0x2500f3[_0x248174(0x16e)]!==_0x390779[_0x248174(0x1ac)]||_0x390779[_0x248174(0x18a)](_0x3d06f3=>!LOCAL_KEY[_0x248174(0x17f)](_0x3d06f3)))return null;const _0x75d3ef=objectArray(_0x44be34[_0x248174(0x1a8)],_0x248174(0x1a8),0x1,0x14),_0x5124a3=new Map(),_0xdd2c79=new Set();for(const _0x219677 of _0x75d3ef){const _0x15766d=requiredString(_0x219677['localKey'],_0x248174(0x15d)),_0x5d5f4b=requiredString(_0x219677[_0x248174(0x1a6)]??_0x219677['datasetCode'],_0x248174(0x19b));if(_0x5124a3[_0x248174(0x16d)](_0x15766d)||_0xdd2c79[_0x248174(0x16d)](_0x5d5f4b))return null;_0x5124a3['set'](_0x15766d,_0x5d5f4b),_0xdd2c79['add'](_0x5d5f4b);}if(!sameSet(_0x2500f3,new Set(_0x5124a3[_0x248174(0x196)]())))return null;const _0x304066=objectArray(_0x44be34['expectedRelations'],'expectedRelations',0x0,0xc8),_0x24eee7=objectArray(_0x44be34[_0x248174(0x195)],_0x248174(0x195),0x0,0xc8),_0x540066=relationTupleSet(_0x304066,![],_0x5124a3),_0x3b39aa=relationTupleSet(_0x24eee7,!![],_0x5124a3);if(!_0x540066||!_0x3b39aa||!sameSet(_0x540066,_0x3b39aa))return null;const _0x37f15a=objectArray(_0x44be34[_0x248174(0x148)],_0x248174(0x148),0x0,0xc8);return{'expectedLocalKeys':_0x390779,'expectedRelations':_0x304066,'createdDatasets':_0x75d3ef,'createdRelations':_0x24eee7,'unresolvedRelations':_0x37f15a,...isObject(_0x44be34[_0x248174(0x1b0)])?{'metrics':_0x44be34['metrics']}:{}};}catch{return null;}}function validateRelation(_0x4f9045,_0x333938,_0x130a5d,_0xd88364){const _0x1fb065=a65_0x240fb9,_0x1b578e=_0x1fb065(0x17d)+_0x333938+']',_0x412882=requiredString(_0x4f9045['fromDatasetKey'],_0x1b578e+_0x1fb065(0x164)),_0x149bd8=requiredString(_0x4f9045[_0x1fb065(0x16f)],_0x1b578e+_0x1fb065(0x175)),_0x2341e9=requiredString(_0x4f9045['fromField'],_0x1b578e+_0x1fb065(0x19c))['toLowerCase'](),_0x41b55d=requiredString(_0x4f9045[_0x1fb065(0x162)],_0x1b578e+_0x1fb065(0x176))['toLowerCase']();if(!_0x130a5d['has'](_0x412882)||!_0x130a5d[_0x1fb065(0x16d)](_0x149bd8))fail(_0x1b578e+_0x1fb065(0x17e));const _0x4b0b5d=_0xd88364[_0x1fb065(0x156)](_0x412882)?.['get'](_0x2341e9),_0xbb5613=_0xd88364[_0x1fb065(0x156)](_0x149bd8)?.['get'](_0x41b55d);if(_0x4b0b5d===undefined||_0xbb5613===undefined)fail(_0x1b578e+'\x20references\x20an\x20unknown\x20field.');if(_0x4b0b5d&&_0xbb5613&&_0x4b0b5d!==_0xbb5613)fail(_0x1b578e+_0x1fb065(0x16b));const _0x8666da=stringValue(_0x4f9045[_0x1fb065(0x17a)])||_0x1fb065(0x1aa);if(_0x8666da!==_0x1fb065(0x1aa))fail(_0x1b578e+'.relationType\x20must\x20be\x20\x22lookup\x22.');const _0x5c6cbf=stringValue(_0x4f9045['cardinality'])||_0x1fb065(0x161);if(!SUPPORTED_CARDINALITIES['has'](_0x5c6cbf))fail(_0x1b578e+_0x1fb065(0x16c));return requiredString(_0x4f9045[_0x1fb065(0x166)],_0x1b578e+'.reason'),validateConfidence(_0x4f9045['confidence'],_0x1b578e+'.confidence'),tuple(_0x412882,_0x2341e9,_0x149bd8,_0x41b55d,_0x1fb065(0x1aa),_0x5c6cbf);}function relationTupleSet(_0x543b08,_0x4a0aab,_0x27e3e2){const _0x4ea527=a65_0x240fb9,_0x39c342=new Set();for(const _0x517991 of _0x543b08){const _0x3e9f02=stringValue(_0x517991[_0x4ea527(0x167)]),_0x391e06=stringValue(_0x517991['toDatasetKey']),_0x235f9e=stringValue(_0x517991[_0x4ea527(0x15a)])[_0x4ea527(0x152)](),_0x45bdec=stringValue(_0x517991[_0x4ea527(0x162)])[_0x4ea527(0x152)](),_0x212f39=stringValue(_0x517991[_0x4ea527(0x17a)]),_0x953cf8=stringValue(_0x517991['cardinality']);if(!_0x3e9f02||!_0x391e06||!_0x235f9e||!_0x45bdec||_0x212f39!==_0x4ea527(0x1aa)||!SUPPORTED_CARDINALITIES[_0x4ea527(0x16d)](_0x953cf8))return null;if(!_0x27e3e2[_0x4ea527(0x16d)](_0x3e9f02)||!_0x27e3e2['has'](_0x391e06))return null;if(_0x4a0aab&&(stringValue(_0x517991['fromDatasetCode'])!==_0x27e3e2[_0x4ea527(0x156)](_0x3e9f02)||stringValue(_0x517991[_0x4ea527(0x180)])!==_0x27e3e2[_0x4ea527(0x156)](_0x391e06)))return null;const _0x32870e=tuple(_0x3e9f02,_0x235f9e,_0x391e06,_0x45bdec,_0x212f39,_0x953cf8);if(_0x39c342[_0x4ea527(0x16d)](_0x32870e))return null;_0x39c342['add'](_0x32870e);}return _0x39c342;}function rejectServerDatasetIdentity(_0x5d7252,_0x236206){const _0x224344=a65_0x240fb9;for(const _0x14f3f5 of['id','datasetId',_0x224344(0x192),'code',_0x224344(0x153),'modelCode']){if(_0x5d7252[_0x14f3f5]!==undefined&&_0x5d7252[_0x14f3f5]!==null&&_0x5d7252[_0x14f3f5]!=='')fail(_0x236206+'.'+_0x14f3f5+_0x224344(0x14d));}}function objectArray(_0x5994ef,_0x40d255,_0x3b6602,_0xf8f6f2){const _0x2a9be3=a65_0x240fb9;return(!Array['isArray'](_0x5994ef)||_0x5994ef[_0x2a9be3(0x1ac)]<_0x3b6602||_0x5994ef[_0x2a9be3(0x1ac)]>_0xf8f6f2||_0x5994ef[_0x2a9be3(0x18a)](_0x56c16d=>!isObject(_0x56c16d)))&&fail(_0x40d255+'\x20must\x20contain\x20'+_0x3b6602+'..'+_0xf8f6f2+_0x2a9be3(0x146)),_0x5994ef;}function stringArray(_0x2ca95c,_0x5defba,_0x4b559f,_0x3d5d3d){const _0x186adb=a65_0x240fb9;return(!Array['isArray'](_0x2ca95c)||_0x2ca95c[_0x186adb(0x1ac)]<_0x4b559f||_0x2ca95c[_0x186adb(0x1ac)]>_0x3d5d3d||_0x2ca95c[_0x186adb(0x18a)](_0x1eaba4=>typeof _0x1eaba4!==_0x186adb(0x171)||!_0x1eaba4['trim']()))&&fail(_0x5defba+_0x186adb(0x174)+_0x4b559f+'..'+_0x3d5d3d+_0x186adb(0x19e)),_0x2ca95c;}function requiredString(_0x457129,_0x3e6588){const _0xd5c799=stringValue(_0x457129);if(!_0xd5c799)fail(_0x3e6588+'\x20is\x20required.');return _0xd5c799;}function stringValue(_0x42196f){const _0x11d44d=a65_0x240fb9;return typeof _0x42196f===_0x11d44d(0x171)?_0x42196f[_0x11d44d(0x150)]():'';}function fieldName(_0x465c77){const _0x18c820=a65_0x240fb9;return stringValue(_0x465c77['code']??_0x465c77[_0x18c820(0x194)]??_0x465c77['name']??_0x465c77['fieldName']);}function validateConfidence(_0x4d9db1,_0x2f4715){const _0x5ddf40=a65_0x240fb9;_0x4d9db1!==undefined&&_0x4d9db1!==null&&(typeof _0x4d9db1!==_0x5ddf40(0x147)||!Number[_0x5ddf40(0x1a4)](_0x4d9db1)||_0x4d9db1<0x0||_0x4d9db1>0x1)&&fail(_0x2f4715+_0x5ddf40(0x198));}function tuple(..._0x32ded1){const _0x22000f=a65_0x240fb9;return _0x32ded1[_0x22000f(0x179)]((_0x3c6139,_0x15023c)=>_0x15023c===0x1||_0x15023c===0x3?_0x3c6139['toLowerCase']():_0x3c6139)['join']('\x00');}function sameSet(_0xbec964,_0x66f9a7){const _0x3ff303=a65_0x240fb9;return _0xbec964[_0x3ff303(0x16e)]===_0x66f9a7[_0x3ff303(0x16e)]&&[..._0xbec964][_0x3ff303(0x185)](_0x556c7d=>_0x66f9a7[_0x3ff303(0x16d)](_0x556c7d));}function isObject(_0x3e4832){const _0x7ffbb9=a65_0x240fb9;return typeof _0x3e4832===_0x7ffbb9(0x1af)&&_0x3e4832!==null&&!Array[_0x7ffbb9(0x1a1)](_0x3e4832);}function a65_0x474a(){const _0x36c883=['refTableField','map','relationType','datasetName','set','relations[','\x20references\x20an\x20unknown\x20dataset\x20localKey.','test','toDatasetCode','44NnwGJd','entries','2985380anKrDe','2284402olfndj','every','ONE_TO_ONE','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','4518513ujsLRU','design','some','source','].localKey','1502908qzQsCG','DATE_RANGE','].design.fields[','toUpperCase',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','modelId','8yXQBnp','fieldCode','createdRelations','keys','].design.fields','\x20must\x20be\x20between\x200\x20and\x201.','localKey','UPLOAD','createdDatasets[].code','.fromField','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','\x20non-empty\x20strings.','6cxGxSM','relations','isArray','].design.dataset','573840EejvsM','isFinite','].reason','code','validation','createdDatasets','schemaVersion','lookup','].design\x20must\x20be\x20an\x20object.','length','kind','fields','object','metrics','].type\x20is\x20not\x20supported.','\x20objects.','number','unresolvedRelations','].design','SELECT','1482671FfPYdf','split','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','MULTI_SELECT','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','trim','].design.dataset\x20must\x20be\x20an\x20object.','toLowerCase','datasetCode','expectedLocalKeys','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','get','join','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','add','fromField','6gdRLCX','].localKey\x20must\x20match\x20','createdDatasets[].localKey','5807389rctWTy','TEXT','dataset-batch','MANY_TO_ONE','toField','BOOLEAN','.fromDatasetKey','dataset','reason','fromDatasetKey','].design.dataset.datasetName','Dataset\x20',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20connects\x20incompatible\x20field\x20types.','.cardinality\x20is\x20not\x20supported.','has','size','toDatasetKey','NUMBER','string','USER','datasets','\x20must\x20contain\x20','.toDatasetKey','.toField','datasets['];a65_0x474a=function(){return _0x36c883;};return a65_0x474a();}function fail(_0x413bdf){const _0x320914=a65_0x240fb9;throw CliErrors[_0x320914(0x1a7)](_0x413bdf);}
|
|
1
|
+
const a65_0x306f5e=a65_0xf5e6;(function(_0x18411a,_0x4177b0){const _0x292b4e=a65_0xf5e6,_0x40f023=_0x18411a();while(!![]){try{const _0x90acce=-parseInt(_0x292b4e(0x1fa))/0x1*(parseInt(_0x292b4e(0x221))/0x2)+parseInt(_0x292b4e(0x1f6))/0x3+parseInt(_0x292b4e(0x23a))/0x4*(-parseInt(_0x292b4e(0x1dd))/0x5)+-parseInt(_0x292b4e(0x242))/0x6*(-parseInt(_0x292b4e(0x20f))/0x7)+-parseInt(_0x292b4e(0x219))/0x8*(-parseInt(_0x292b4e(0x1e2))/0x9)+-parseInt(_0x292b4e(0x1f7))/0xa*(-parseInt(_0x292b4e(0x1fc))/0xb)+-parseInt(_0x292b4e(0x1e3))/0xc*(parseInt(_0x292b4e(0x215))/0xd);if(_0x90acce===_0x4177b0)break;else _0x40f023['push'](_0x40f023['shift']());}catch(_0x47a4be){_0x40f023['push'](_0x40f023['shift']());}}}(a65_0x2668,0x39c1b));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x306f5e(0x216),a65_0x306f5e(0x202)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x306f5e(0x1eb),a65_0x306f5e(0x220),a65_0x306f5e(0x21c),a65_0x306f5e(0x235),a65_0x306f5e(0x1e6),'MULTI_SELECT',a65_0x306f5e(0x212),a65_0x306f5e(0x241),a65_0x306f5e(0x226),a65_0x306f5e(0x22b)]);export function isDatasetBatchDesign(_0x179a82){const _0x3e11b0=a65_0x306f5e;return isObject(_0x179a82)&&_0x179a82[_0x3e11b0(0x225)]===_0x3e11b0(0x224);}export function validateDatasetBatchDesign(_0x238438){const _0x2e8ea4=a65_0x306f5e;(!isObject(_0x238438)||_0x238438[_0x2e8ea4(0x225)]!==_0x2e8ea4(0x224))&&fail(_0x2e8ea4(0x234));_0x238438[_0x2e8ea4(0x222)]!==0x1&&fail(_0x2e8ea4(0x20c));const _0x2dcfa2=objectArray(_0x238438['datasets'],_0x2e8ea4(0x236),0x1,0x14),_0x31e861=objectArray(_0x238438['relations'],_0x2e8ea4(0x1f9),0x0,0xc8),_0x5c4b5e=objectArray(_0x238438['unresolvedRelations'],_0x2e8ea4(0x233),0x0,0xc8),_0x5774c6=new Set(),_0x525275=new Map();for(const [_0x5822c3,_0x5bc160]of _0x2dcfa2['entries']()){const _0x465c5c=requiredString(_0x5bc160[_0x2e8ea4(0x246)],_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x1ef));!LOCAL_KEY['test'](_0x465c5c)&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x240)+LOCAL_KEY[_0x2e8ea4(0x21d)]+'.');_0x5774c6[_0x2e8ea4(0x1db)](_0x465c5c)&&fail(_0x2e8ea4(0x248));_0x5774c6[_0x2e8ea4(0x213)](_0x465c5c);!isObject(_0x5bc160[_0x2e8ea4(0x1fe)])&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x23e));rejectServerDatasetIdentity(_0x5bc160['design'],_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x22a));if(!isObject(_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x237)]))fail('datasets['+_0x5822c3+'].design.dataset\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x237)],_0x2e8ea4(0x1f4)+_0x5822c3+'].design.dataset'),requiredString(_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x237)][_0x2e8ea4(0x1fd)],_0x2e8ea4(0x1f4)+_0x5822c3+'].design.dataset.datasetName');_0x2e8ea4(0x1f9)in _0x5bc160['design']&&(!Array[_0x2e8ea4(0x244)](_0x5bc160[_0x2e8ea4(0x1fe)]['relations'])||_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x1f9)]['length']!==0x0)&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x218));const _0x238602=objectArray(_0x5bc160['design']['fields'],'datasets['+_0x5822c3+_0x2e8ea4(0x1f0),0x1,0xc8),_0x3a797c=new Map();for(const [_0x2c7662,_0x5718b7]of _0x238602[_0x2e8ea4(0x21b)]()){const _0xcf02e=fieldName(_0x5718b7);if(!_0xcf02e)fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x249)+_0x2c7662+']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.');const _0x2cf3d9=_0xcf02e['toLowerCase']();if(_0x3a797c[_0x2e8ea4(0x1db)](_0x2cf3d9))fail(_0x2e8ea4(0x207)+_0x465c5c+_0x2e8ea4(0x23f));const _0x215d4c=stringValue(_0x5718b7[_0x2e8ea4(0x206)]??_0x5718b7[_0x2e8ea4(0x217)])[_0x2e8ea4(0x1ff)]();if(!SUPPORTED_FIELD_TYPES[_0x2e8ea4(0x1db)](_0x215d4c))fail('datasets['+_0x5822c3+_0x2e8ea4(0x249)+_0x2c7662+_0x2e8ea4(0x214));_0x3a797c['set'](_0x2cf3d9,_0x215d4c),[_0x5718b7['refTable'],_0x5718b7[_0x2e8ea4(0x1e4)],_0x5718b7['refTableLabelField']]['some'](_0x529045=>stringValue(_0x529045))&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x249)+_0x2c7662+_0x2e8ea4(0x205));}_0x525275[_0x2e8ea4(0x1de)](_0x465c5c,_0x3a797c);}const _0x24c49d=new Set(),_0x8d6f01=new Set();for(const [_0x4b79a6,_0x5eb37f]of _0x31e861['entries']()){const _0x437d2d=validateRelation(_0x5eb37f,_0x4b79a6,_0x5774c6,_0x525275);if(_0x24c49d[_0x2e8ea4(0x1db)](_0x437d2d))fail(_0x2e8ea4(0x238));_0x24c49d[_0x2e8ea4(0x213)](_0x437d2d);const _0x18eefb=_0x437d2d[_0x2e8ea4(0x20b)]('\x00',0x2)[_0x2e8ea4(0x1f5)]('\x00');if(_0x8d6f01[_0x2e8ea4(0x1db)](_0x18eefb))fail(_0x2e8ea4(0x231));_0x8d6f01[_0x2e8ea4(0x213)](_0x18eefb);}for(const [_0x10a4a6,_0x3fed39]of _0x5c4b5e[_0x2e8ea4(0x21b)]()){requiredString(_0x3fed39['reason'],_0x2e8ea4(0x245)+_0x10a4a6+'].reason'),validateConfidence(_0x3fed39[_0x2e8ea4(0x229)],_0x2e8ea4(0x245)+_0x10a4a6+_0x2e8ea4(0x200));}return _0x238438;}export function reconcileBatchResult(_0x34c750){const _0x4b066f=a65_0x306f5e;if(!isObject(_0x34c750))return null;try{const _0xd63298=stringArray(_0x34c750[_0x4b066f(0x228)],_0x4b066f(0x228),0x1,0x14),_0x4f8d7a=new Set(_0xd63298);if(_0x4f8d7a[_0x4b066f(0x21f)]!==_0xd63298[_0x4b066f(0x1ee)]||_0xd63298[_0x4b066f(0x1e8)](_0x540756=>!LOCAL_KEY['test'](_0x540756)))return null;const _0x2d7c1a=objectArray(_0x34c750[_0x4b066f(0x1ea)],_0x4b066f(0x1ea),0x1,0x14),_0x4d30df=new Map(),_0x577ee4=new Set();for(const _0x3ca115 of _0x2d7c1a){const _0x2d4b0e=requiredString(_0x3ca115[_0x4b066f(0x246)],'createdDatasets[].localKey'),_0x372c60=requiredString(_0x3ca115[_0x4b066f(0x1f1)]??_0x3ca115[_0x4b066f(0x21e)],_0x4b066f(0x211));if(_0x4d30df['has'](_0x2d4b0e)||_0x577ee4[_0x4b066f(0x1db)](_0x372c60))return null;_0x4d30df['set'](_0x2d4b0e,_0x372c60),_0x577ee4['add'](_0x372c60);}if(!sameSet(_0x4f8d7a,new Set(_0x4d30df['keys']())))return null;const _0x439eb9=objectArray(_0x34c750[_0x4b066f(0x22d)],_0x4b066f(0x22d),0x0,0xc8),_0x247918=objectArray(_0x34c750['createdRelations'],_0x4b066f(0x1f3),0x0,0xc8),_0x3203e1=relationTupleSet(_0x439eb9,![],_0x4d30df),_0x4b6a7b=relationTupleSet(_0x247918,!![],_0x4d30df);if(!_0x3203e1||!_0x4b6a7b||!sameSet(_0x3203e1,_0x4b6a7b))return null;const _0x50d4d5=objectArray(_0x34c750[_0x4b066f(0x233)],'unresolvedRelations',0x0,0xc8);return{'expectedLocalKeys':_0xd63298,'expectedRelations':_0x439eb9,'createdDatasets':_0x2d7c1a,'createdRelations':_0x247918,'unresolvedRelations':_0x50d4d5,...isObject(_0x34c750['metrics'])?{'metrics':_0x34c750[_0x4b066f(0x23d)]}:{}};}catch{return null;}}function validateRelation(_0x2ec26a,_0x45b263,_0x402c02,_0x3f6b3e){const _0x1c6919=a65_0x306f5e,_0xbc7f7=_0x1c6919(0x1e1)+_0x45b263+']',_0x1d9a15=requiredString(_0x2ec26a[_0x1c6919(0x1fb)],_0xbc7f7+'.fromDatasetKey'),_0x4db681=requiredString(_0x2ec26a[_0x1c6919(0x23c)],_0xbc7f7+'.toDatasetKey'),_0x213658=requiredString(_0x2ec26a[_0x1c6919(0x1f8)],_0xbc7f7+_0x1c6919(0x1f2))[_0x1c6919(0x21a)](),_0x14833a=requiredString(_0x2ec26a[_0x1c6919(0x208)],_0xbc7f7+_0x1c6919(0x20a))['toLowerCase']();if(!_0x402c02[_0x1c6919(0x1db)](_0x1d9a15)||!_0x402c02[_0x1c6919(0x1db)](_0x4db681))fail(_0xbc7f7+_0x1c6919(0x232));const _0x1534e9=_0x3f6b3e[_0x1c6919(0x22c)](_0x1d9a15)?.[_0x1c6919(0x22c)](_0x213658),_0x8023b4=_0x3f6b3e[_0x1c6919(0x22c)](_0x4db681)?.[_0x1c6919(0x22c)](_0x14833a);if(_0x1534e9===undefined||_0x8023b4===undefined)fail(_0xbc7f7+_0x1c6919(0x1dc));if(_0x1534e9&&_0x8023b4&&_0x1534e9!==_0x8023b4)fail(_0xbc7f7+_0x1c6919(0x230));const _0xaeebb0=stringValue(_0x2ec26a[_0x1c6919(0x209)])||_0x1c6919(0x203);if(_0xaeebb0!==_0x1c6919(0x203))fail(_0xbc7f7+_0x1c6919(0x22f));const _0x50e203=stringValue(_0x2ec26a[_0x1c6919(0x22e)])||_0x1c6919(0x216);if(!SUPPORTED_CARDINALITIES[_0x1c6919(0x1db)](_0x50e203))fail(_0xbc7f7+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x2ec26a['reason'],_0xbc7f7+_0x1c6919(0x1e5)),validateConfidence(_0x2ec26a[_0x1c6919(0x229)],_0xbc7f7+_0x1c6919(0x1ed)),tuple(_0x1d9a15,_0x213658,_0x4db681,_0x14833a,_0x1c6919(0x203),_0x50e203);}function relationTupleSet(_0x4b85c9,_0x2c2512,_0x4df29d){const _0x3d3256=a65_0x306f5e,_0xceed8e=new Set();for(const _0x505262 of _0x4b85c9){const _0x4d4822=stringValue(_0x505262[_0x3d3256(0x1fb)]),_0x528b74=stringValue(_0x505262['toDatasetKey']),_0x3a1fe4=stringValue(_0x505262[_0x3d3256(0x1f8)])[_0x3d3256(0x21a)](),_0x4914ba=stringValue(_0x505262['toField'])[_0x3d3256(0x21a)](),_0x8a40d=stringValue(_0x505262[_0x3d3256(0x209)]),_0x1de28b=stringValue(_0x505262[_0x3d3256(0x22e)]);if(!_0x4d4822||!_0x528b74||!_0x3a1fe4||!_0x4914ba||_0x8a40d!=='lookup'||!SUPPORTED_CARDINALITIES[_0x3d3256(0x1db)](_0x1de28b))return null;if(!_0x4df29d[_0x3d3256(0x1db)](_0x4d4822)||!_0x4df29d[_0x3d3256(0x1db)](_0x528b74))return null;if(_0x2c2512&&(stringValue(_0x505262[_0x3d3256(0x1df)])!==_0x4df29d[_0x3d3256(0x22c)](_0x4d4822)||stringValue(_0x505262[_0x3d3256(0x20e)])!==_0x4df29d[_0x3d3256(0x22c)](_0x528b74)))return null;const _0x46d145=tuple(_0x4d4822,_0x3a1fe4,_0x528b74,_0x4914ba,_0x8a40d,_0x1de28b);if(_0xceed8e[_0x3d3256(0x1db)](_0x46d145))return null;_0xceed8e[_0x3d3256(0x213)](_0x46d145);}return _0xceed8e;}function rejectServerDatasetIdentity(_0x59872b,_0xb888e8){const _0x2a3e72=a65_0x306f5e;for(const _0x12a2e4 of['id','datasetId',_0x2a3e72(0x1e9),_0x2a3e72(0x1f1),_0x2a3e72(0x21e),'modelCode']){if(_0x59872b[_0x12a2e4]!==undefined&&_0x59872b[_0x12a2e4]!==null&&_0x59872b[_0x12a2e4]!=='')fail(_0xb888e8+'.'+_0x12a2e4+_0x2a3e72(0x210));}}function objectArray(_0x128255,_0xbf70ef,_0x20b588,_0x270722){const _0x1dde4b=a65_0x306f5e;return(!Array['isArray'](_0x128255)||_0x128255[_0x1dde4b(0x1ee)]<_0x20b588||_0x128255[_0x1dde4b(0x1ee)]>_0x270722||_0x128255['some'](_0x556d6b=>!isObject(_0x556d6b)))&&fail(_0xbf70ef+_0x1dde4b(0x1e7)+_0x20b588+'..'+_0x270722+'\x20objects.'),_0x128255;}function stringArray(_0x5cdf21,_0xff1f22,_0x391731,_0x9aa248){const _0x595455=a65_0x306f5e;return(!Array['isArray'](_0x5cdf21)||_0x5cdf21[_0x595455(0x1ee)]<_0x391731||_0x5cdf21[_0x595455(0x1ee)]>_0x9aa248||_0x5cdf21[_0x595455(0x1e8)](_0x2d1349=>typeof _0x2d1349!=='string'||!_0x2d1349[_0x595455(0x239)]()))&&fail(_0xff1f22+_0x595455(0x1e7)+_0x391731+'..'+_0x9aa248+'\x20non-empty\x20strings.'),_0x5cdf21;}function requiredString(_0x2eaf66,_0x354e59){const _0x5ed33e=a65_0x306f5e,_0x662cc0=stringValue(_0x2eaf66);if(!_0x662cc0)fail(_0x354e59+_0x5ed33e(0x1ec));return _0x662cc0;}function a65_0x2668(){const _0x1379dc=['Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','\x20references\x20an\x20unknown\x20dataset\x20localKey.','unresolvedRelations','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','BOOLEAN','datasets','dataset','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','trim','13956ScUGyg','map','toDatasetKey','metrics','].design\x20must\x20be\x20an\x20object.','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','].localKey\x20must\x20match\x20','USER','6HEYKlx','object','isArray','unresolvedRelations[','localKey','every','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','].design.fields[','has','\x20references\x20an\x20unknown\x20field.','395AMAtqX','set','fromDatasetCode','isFinite','relations[','919719oCZsnq','23808aJxmHI','refTableField','.reason','SELECT','\x20must\x20contain\x20','some','modelId','createdDatasets','TEXT','\x20is\x20required.','.confidence','length','].localKey','].design.fields','code','.fromField','createdRelations','datasets[','join','104157kkYrQS','48670nJWFFf','fromField','relations','3mimlSf','fromDatasetKey','781sjtjGV','datasetName','design','toUpperCase','].confidence','string','ONE_TO_ONE','lookup','\x20must\x20be\x20between\x200\x20and\x201.',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','type','Dataset\x20','toField','relationType','.toField','split','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','fieldName','toDatasetCode','771575yEfomi','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','createdDatasets[].code','DATE_RANGE','add','].type\x20is\x20not\x20supported.','533mgrSRg','MANY_TO_ONE','fieldType','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','16uQhEYt','toLowerCase','entries','DATETIME','source','datasetCode','size','NUMBER','67558kiKSfX','schemaVersion','validation','dataset-batch','kind','ADDRESS','name','expectedLocalKeys','confidence','].design','UPLOAD','get','expectedRelations','cardinality','.relationType\x20must\x20be\x20\x22lookup\x22.','\x20connects\x20incompatible\x20field\x20types.'];a65_0x2668=function(){return _0x1379dc;};return a65_0x2668();}function a65_0xf5e6(_0x18ed93,_0x32d35f){_0x18ed93=_0x18ed93-0x1db;const _0x266813=a65_0x2668();let _0xf5e6d6=_0x266813[_0x18ed93];return _0xf5e6d6;}function stringValue(_0xf146ef){const _0x1330fd=a65_0x306f5e;return typeof _0xf146ef===_0x1330fd(0x201)?_0xf146ef[_0x1330fd(0x239)]():'';}function fieldName(_0x236a0a){const _0x59ef1e=a65_0x306f5e;return stringValue(_0x236a0a[_0x59ef1e(0x1f1)]??_0x236a0a['fieldCode']??_0x236a0a[_0x59ef1e(0x227)]??_0x236a0a[_0x59ef1e(0x20d)]);}function validateConfidence(_0x23f888,_0x336419){const _0xe5e112=a65_0x306f5e;_0x23f888!==undefined&&_0x23f888!==null&&(typeof _0x23f888!=='number'||!Number[_0xe5e112(0x1e0)](_0x23f888)||_0x23f888<0x0||_0x23f888>0x1)&&fail(_0x336419+_0xe5e112(0x204));}function tuple(..._0x500e61){const _0x5b15f2=a65_0x306f5e;return _0x500e61[_0x5b15f2(0x23b)]((_0x631329,_0xd79d77)=>_0xd79d77===0x1||_0xd79d77===0x3?_0x631329['toLowerCase']():_0x631329)[_0x5b15f2(0x1f5)]('\x00');}function sameSet(_0x340960,_0x31a730){const _0x3c6da5=a65_0x306f5e;return _0x340960[_0x3c6da5(0x21f)]===_0x31a730[_0x3c6da5(0x21f)]&&[..._0x340960][_0x3c6da5(0x247)](_0x265b5a=>_0x31a730[_0x3c6da5(0x1db)](_0x265b5a));}function isObject(_0x2492ef){const _0x3317dd=a65_0x306f5e;return typeof _0x2492ef===_0x3317dd(0x243)&&_0x2492ef!==null&&!Array['isArray'](_0x2492ef);}function fail(_0x4de733){const _0x58809c=a65_0x306f5e;throw CliErrors[_0x58809c(0x223)](_0x4de733);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a66_0x564b(_0x43ef2a,_0x539891){_0x43ef2a=_0x43ef2a-0x121;const _0x2cd475=a66_0x2cd4();let _0x564b9b=_0x2cd475[_0x43ef2a];return _0x564b9b;}function a66_0x2cd4(){const _0xdf1099=['Expected\x20','dbTableSelector','backend','found','business-group','name','matched','datasetCode','source','metadata','code','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','datasetId','835702zGucSI','2749404zcyxvK','data','call','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','update','parse','path','trim','914850dwNkjt','str','db-table',',\x20actual\x20','validation','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','modelId','--code\x20is\x20required','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','businessGroup','string','hasOwnProperty','extend','business-group-update','object','modelCode','DB_TABLE','appCode','--business-group\x20must\x20not\x20be\x20blank','keys','92692ZOFhNi','expect-business-group','write','dbLinkId','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','/smartapi/question/er-config/business-group/edit','2765224OFhouG','--business-group\x20is\x20required','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','1028409XibQMV','apiError','isArray','stringify','623405zAOidL','1pzkMLT','Expectation\x20mismatch\x20at\x20businessGroup','tableName','isFinite','number','value','unchanged','POST','message','kind','payload','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','expectBusinessGroup','dbtableConfig','toUpperCase','ungrouped','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','datasetName','sourceType','Update\x20business\x20scenario\x20group','dataset'];a66_0x2cd4=function(){return _0xdf1099;};return a66_0x2cd4();}const a66_0x3eb540=a66_0x564b;(function(_0x452f4c,_0x20dc39){const _0x3f0d19=a66_0x564b,_0x457092=_0x452f4c();while(!![]){try{const _0x18aa15=-parseInt(_0x3f0d19(0x140))/0x1*(parseInt(_0x3f0d19(0x162))/0x2)+parseInt(_0x3f0d19(0x13b))/0x3+parseInt(_0x3f0d19(0x132))/0x4+parseInt(_0x3f0d19(0x13f))/0x5+parseInt(_0x3f0d19(0x16b))/0x6+parseInt(_0x3f0d19(0x163))/0x7+-parseInt(_0x3f0d19(0x138))/0x8;if(_0x18aa15===_0x20dc39)break;else _0x457092['push'](_0x457092['shift']());}catch(_0x5b573a){_0x457092['push'](_0x457092['shift']());}}}(a66_0x2cd4,0x42810));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_0x3eb540(0x137),UNGROUPED_BUSINESS_GROUP=a66_0x3eb540(0x14f);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x28e4f6,input:_0x1a2e28,dryRun:_0x5b0023}){const _0x380c11=a66_0x3eb540;validateInput(_0x1a2e28);const _0x127334=normalizeBusinessGroupArgument(_0x1a2e28[_0x380c11(0x127)]),_0x418618=await getDatasetDetail(_0x1a2e28[_0x380c11(0x15f)]),_0x241dc2=resolveBusinessGroupDataset(_0x418618,_0x1a2e28[_0x380c11(0x15f)]);assertBusinessGroupUpdateSupported(_0x241dc2,_0x127334);const _0x4fc704=loadCurrentBusinessGroup(_0x418618,_0x241dc2);assertExpectedBusinessGroup(_0x4fc704,_0x1a2e28[_0x380c11(0x14c)]);const _0x396081=buildBackendPlan(_0x28e4f6,_0x241dc2,_0x127334),_0x56a970=_0x4fc704!==_0x127334;let _0x4b98db;if(_0x56a970&&!_0x5b0023){_0x396081[_0x380c11(0x149)]===_0x380c11(0x16d)?await updateDbTableBusinessGroup(_0x396081[_0x380c11(0x14a)]):await updateErBusinessGroup(_0x396081[_0x380c11(0x14a)]);const _0x58c864=await getDatasetDetail(_0x241dc2[_0x380c11(0x15f)]),_0x220a62=resolveBusinessGroupDataset(_0x58c864,_0x241dc2[_0x380c11(0x15f)]),_0x2f8d3f=loadCurrentBusinessGroup(_0x58c864,_0x220a62);if(_0x2f8d3f!==_0x127334)throw CliErrors[_0x380c11(0x13c)](_0x380c11(0x123),'Expected\x20'+JSON['stringify'](displayBusinessGroup(_0x127334))+_0x380c11(0x121)+JSON[_0x380c11(0x13e)](displayBusinessGroup(_0x2f8d3f))+'.');_0x4b98db={'verified':!![],'status':_0x380c11(0x15b),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2f8d3f)}};}else!_0x56a970&&(_0x4b98db={'verified':!![],'status':_0x380c11(0x146),'afterReadback':{'businessGroup':displayBusinessGroup(_0x4fc704)}});const _0x39f45f={'operation':_0x380c11(0x167),'appCode':_0x28e4f6,'selector':{'code':_0x241dc2[_0x380c11(0x15f)]},'dataset':{'id':_0x241dc2['id'],'code':_0x241dc2[_0x380c11(0x15f)],'name':_0x241dc2[_0x380c11(0x15a)],'sourceType':_0x241dc2[_0x380c11(0x152)]},'before':{'businessGroup':displayBusinessGroup(_0x4fc704)},'after':{'businessGroup':displayBusinessGroup(_0x127334)},'changed':_0x56a970,'dryRun':_0x5b0023,'submitted':_0x56a970&&!_0x5b0023,'backend':{'method':_0x396081['method'],'path':_0x396081[_0x380c11(0x169)],'payload':_0x396081[_0x380c11(0x14a)]},..._0x4b98db?{'verification':_0x4b98db}:{},'warnings':[]};return{'ok':!![],'data':_0x39f45f,'message':_0x56a970?_0x5b0023?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x241dc2['code']:_0x380c11(0x150)+_0x241dc2['code']:_0x380c11(0x14b)+_0x241dc2[_0x380c11(0x15f)]};}export const datasetBusinessGroupUpdate={'service':a66_0x3eb540(0x154),'command':a66_0x3eb540(0x12b),'description':a66_0x3eb540(0x153),'risk':a66_0x3eb540(0x134),'flags':[CODE_FLAG,{'name':a66_0x3eb540(0x159),'type':'string','required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it'},{'name':a66_0x3eb540(0x133),'type':a66_0x3eb540(0x128),'required':![],'description':a66_0x3eb540(0x126)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e0d0e){validateInput(readBusinessGroupUpdateInput(_0x1e0d0e));},async 'dryRun'(_0x10f4e2){const _0x37957d=a66_0x3eb540,_0x4182f0=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x10f4e2['appCode'],'input':readBusinessGroupUpdateInput(_0x10f4e2),'dryRun':!![]});return{'method':_0x4182f0[_0x37957d(0x164)][_0x37957d(0x157)]['method'],'url':_0x4182f0[_0x37957d(0x164)][_0x37957d(0x157)][_0x37957d(0x169)],'body':_0x4182f0[_0x37957d(0x164)][_0x37957d(0x157)][_0x37957d(0x14a)],'description':_0x4182f0[_0x37957d(0x148)],..._0x4182f0[_0x37957d(0x164)]};},async 'execute'(_0x4ea4c7){const _0xc1c02c=a66_0x3eb540;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4ea4c7[_0xc1c02c(0x12f)],'input':readBusinessGroupUpdateInput(_0x4ea4c7),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x319513){const _0x32d7db=a66_0x3eb540,_0x10c6f0=_0x319513[_0x32d7db(0x16c)](_0x32d7db(0x133));return{'code':trim(_0x319513[_0x32d7db(0x16c)](_0x32d7db(0x15f))),'businessGroup':_0x319513[_0x32d7db(0x16c)](_0x32d7db(0x159)),'expectBusinessGroup':_0x10c6f0===undefined||_0x10c6f0===''?undefined:_0x10c6f0};}function validateInput(_0x31bff0){const _0x4d1349=a66_0x3eb540;if(!trim(_0x31bff0[_0x4d1349(0x15f)]))throw CliErrors['validation'](_0x4d1349(0x125));if(_0x31bff0[_0x4d1349(0x127)]===undefined)throw CliErrors['validation'](_0x4d1349(0x139));if(!trim(_0x31bff0[_0x4d1349(0x127)]))throw CliErrors[_0x4d1349(0x122)](_0x4d1349(0x130));}function assertBusinessGroupUpdateSupported(_0x57335a,_0x52ea19){const _0xf5f4ee=a66_0x3eb540;if(_0x57335a[_0xf5f4ee(0x152)]===_0xf5f4ee(0x12e)&&!_0x52ea19)throw CliErrors[_0xf5f4ee(0x122)](_0xf5f4ee(0x160));}function resolveBusinessGroupDataset(_0xf15a04,_0x5316dd){const _0x56175a=a66_0x3eb540,_0x4ca9d4=asPlainObject(_0xf15a04[_0x56175a(0x154)]),_0x56fd50=asPlainObject(_0xf15a04[_0x56175a(0x14d)]),_0x597873=resolveSourceType(_0xf15a04,_0x4ca9d4,_0x56fd50),_0xec7b31=firstString(_0xf15a04[_0x56175a(0x12d)],_0xf15a04[_0x56175a(0x15f)],_0x4ca9d4[_0x56175a(0x15c)],_0x5316dd)||_0x5316dd;return{'id':firstNumber(_0xf15a04[_0x56175a(0x124)],_0xf15a04['id'],_0x4ca9d4[_0x56175a(0x161)])??firstString(_0xf15a04[_0x56175a(0x124)],_0xf15a04['id'],_0x4ca9d4['datasetId'])??null,'code':_0xec7b31,'name':firstString(_0xf15a04[_0x56175a(0x15a)],_0x4ca9d4[_0x56175a(0x151)],_0x4ca9d4[_0x56175a(0x15a)])||null,'sourceType':_0x597873,'dbTableSelector':_0x597873===_0x56175a(0x12e)?{'dbLinkId':firstNumber(_0x56fd50['dbId']),'tableName':firstString(_0x56fd50[_0x56175a(0x142)])||null}:null};}function resolveSourceType(_0x3ad8b0,_0x1424f7,_0x4ffb89){const _0x540737=a66_0x3eb540,_0x46ef0c=firstString(_0x3ad8b0[_0x540737(0x15d)],_0x3ad8b0['sourceType'],_0x1424f7[_0x540737(0x15d)],_0x1424f7[_0x540737(0x152)])?.[_0x540737(0x16a)]()[_0x540737(0x14e)]();if(_0x46ef0c===_0x540737(0x12e)||_0x46ef0c==='METADATA')return _0x46ef0c;if(Object[_0x540737(0x131)](_0x4ffb89)['length']>0x0)return'DB_TABLE';throw CliErrors[_0x540737(0x122)](_0x540737(0x136));}function loadCurrentBusinessGroup(_0x51de02,_0x1fe1d1){const _0x3bdcd1=a66_0x3eb540,_0x457e3c=readBusinessGroupFromDatasetDetail(_0x51de02,_0x1fe1d1[_0x3bdcd1(0x152)]);if(_0x457e3c[_0x3bdcd1(0x158)])return normalizeBusinessGroup(_0x457e3c[_0x3bdcd1(0x145)]);return'';}function readBusinessGroupFromDatasetDetail(_0x44c15c,_0x2d1978){const _0x28ab8a=a66_0x3eb540,_0x3048a0=asPlainObject(_0x44c15c[_0x28ab8a(0x154)]),_0x576e15=firstPresent(_0x44c15c[_0x28ab8a(0x127)]);if(_0x576e15[_0x28ab8a(0x158)])return _0x576e15;const _0x561ab2=firstPresent(_0x3048a0[_0x28ab8a(0x127)]);if(_0x561ab2[_0x28ab8a(0x158)])return _0x561ab2;if(_0x2d1978===_0x28ab8a(0x12e))return{'found':![]};const _0x581ce2=readBusinessGroupFromExtend(_0x44c15c[_0x28ab8a(0x12a)]);if(_0x581ce2[_0x28ab8a(0x158)])return _0x581ce2;return readBusinessGroupFromExtend(_0x3048a0[_0x28ab8a(0x12a)]);}function readBusinessGroupFromExtend(_0x314185){const _0x393ae7=a66_0x3eb540;if(_0x314185===undefined||_0x314185===null||_0x314185==='')return{'found':![]};if(typeof _0x314185==='string')try{const _0x5d4d7b=JSON[_0x393ae7(0x168)](_0x314185);return readBusinessGroupFromExtend(_0x5d4d7b);}catch{return{'found':![]};}const _0x494ca2=asPlainObject(_0x314185);if(Object['prototype'][_0x393ae7(0x129)][_0x393ae7(0x165)](_0x494ca2,'businessGroup'))return{'found':!![],'value':_0x494ca2[_0x393ae7(0x127)]};return{'found':![]};}function firstPresent(..._0xbfe927){for(const _0x46a236 of _0xbfe927){if(_0x46a236!==undefined&&_0x46a236!==null)return{'found':!![],'value':_0x46a236};}return{'found':![]};}function assertExpectedBusinessGroup(_0x22e700,_0x11e7b6){const _0x302f5a=a66_0x3eb540;if(_0x11e7b6===undefined)return;const _0x250776=normalizeBusinessGroupArgument(_0x11e7b6);if(_0x22e700!==_0x250776)throw CliErrors[_0x302f5a(0x122)](_0x302f5a(0x141),_0x302f5a(0x155)+JSON[_0x302f5a(0x13e)](_0x250776)+_0x302f5a(0x121)+JSON['stringify'](_0x22e700));}function buildBackendPlan(_0xe490c8,_0x4108cc,_0x5c9d9b){const _0x15f82c=a66_0x3eb540;if(_0x4108cc[_0x15f82c(0x152)]==='DB_TABLE'){if(!_0x4108cc[_0x15f82c(0x156)]||_0x4108cc[_0x15f82c(0x156)][_0x15f82c(0x135)]===null||!_0x4108cc[_0x15f82c(0x156)][_0x15f82c(0x142)])throw CliErrors[_0x15f82c(0x122)](_0x15f82c(0x13a),_0x15f82c(0x166));return{'kind':_0x15f82c(0x16d),'method':_0x15f82c(0x147),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x4108cc['dbTableSelector'][_0x15f82c(0x135)],'tableName':_0x4108cc[_0x15f82c(0x156)][_0x15f82c(0x142)],'businessGroup':_0x5c9d9b}};}return{'kind':_0x15f82c(0x15e),'method':_0x15f82c(0x147),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0xe490c8,'datasetCode':_0x4108cc[_0x15f82c(0x15f)],'businessGroup':_0x5c9d9b}};}function normalizeBusinessGroup(_0x4e85fc){const _0x174929=a66_0x3eb540;if(_0x4e85fc===undefined||_0x4e85fc===null)return'';return String(_0x4e85fc)[_0x174929(0x16a)]();}function normalizeBusinessGroupArgument(_0x581863){const _0x145451=normalizeBusinessGroup(_0x581863);return _0x145451===UNGROUPED_BUSINESS_GROUP?'':_0x145451;}function displayBusinessGroup(_0xe41d86){return _0xe41d86||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x349229){const _0x2ea55b=a66_0x3eb540;if(!_0x349229||typeof _0x349229!==_0x2ea55b(0x12c)||Array[_0x2ea55b(0x13d)](_0x349229))return{};return _0x349229;}function firstString(..._0x63d8f1){const _0x27e4dc=a66_0x3eb540;for(const _0x43bb0c of _0x63d8f1){if(typeof _0x43bb0c===_0x27e4dc(0x128)&&_0x43bb0c[_0x27e4dc(0x16a)]())return _0x43bb0c[_0x27e4dc(0x16a)]();if(typeof _0x43bb0c===_0x27e4dc(0x144)&&Number[_0x27e4dc(0x143)](_0x43bb0c))return String(_0x43bb0c);}return undefined;}function firstNumber(..._0x5f30f0){const _0x271c80=a66_0x3eb540;for(const _0x475abd of _0x5f30f0){if(typeof _0x475abd===_0x271c80(0x144)&&Number[_0x271c80(0x143)](_0x475abd))return _0x475abd;if(typeof _0x475abd===_0x271c80(0x128)&&_0x475abd[_0x271c80(0x16a)]()&&Number[_0x271c80(0x143)](Number(_0x475abd)))return Number(_0x475abd);}return null;}function trim(_0xbb4240){const _0x4ad1e5=a66_0x3eb540;return String(_0xbb4240||'')[_0x4ad1e5(0x16a)]();}
|
|
1
|
+
const a66_0x32c37d=a66_0x4b78;(function(_0x2a33b2,_0xb629b9){const _0x5412ae=a66_0x4b78,_0x369abc=_0x2a33b2();while(!![]){try{const _0x526c34=-parseInt(_0x5412ae(0x170))/0x1*(parseInt(_0x5412ae(0x18a))/0x2)+parseInt(_0x5412ae(0x175))/0x3*(-parseInt(_0x5412ae(0x192))/0x4)+parseInt(_0x5412ae(0x17c))/0x5*(-parseInt(_0x5412ae(0x1a5))/0x6)+-parseInt(_0x5412ae(0x1a2))/0x7*(parseInt(_0x5412ae(0x198))/0x8)+-parseInt(_0x5412ae(0x177))/0x9+-parseInt(_0x5412ae(0x16e))/0xa*(parseInt(_0x5412ae(0x189))/0xb)+-parseInt(_0x5412ae(0x18d))/0xc*(-parseInt(_0x5412ae(0x19d))/0xd);if(_0x526c34===_0xb629b9)break;else _0x369abc['push'](_0x369abc['shift']());}catch(_0x158279){_0x369abc['push'](_0x369abc['shift']());}}}(a66_0x4ac5,0xa64d5));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_0x32c37d(0x190),METADATA_BACKEND_PATH=a66_0x32c37d(0x193),UNGROUPED_BUSINESS_GROUP=a66_0x32c37d(0x166);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x2896db,input:_0x3d1144,dryRun:_0x44c120}){const _0x2c9316=a66_0x32c37d;validateInput(_0x3d1144);const _0x33926c=normalizeBusinessGroupArgument(_0x3d1144[_0x2c9316(0x188)]),_0x2a54db=await getDatasetDetail(_0x3d1144[_0x2c9316(0x184)]),_0x20cf90=resolveBusinessGroupDataset(_0x2a54db,_0x3d1144[_0x2c9316(0x184)]);assertBusinessGroupUpdateSupported(_0x20cf90,_0x33926c);const _0xfc160b=loadCurrentBusinessGroup(_0x2a54db,_0x20cf90);assertExpectedBusinessGroup(_0xfc160b,_0x3d1144[_0x2c9316(0x173)]);const _0x455238=buildBackendPlan(_0x2896db,_0x20cf90,_0x33926c),_0x4e21f5=_0xfc160b!==_0x33926c;let _0x32aed1;if(_0x4e21f5&&!_0x44c120){_0x455238[_0x2c9316(0x1a0)]==='db-table'?await updateDbTableBusinessGroup(_0x455238[_0x2c9316(0x174)]):await updateErBusinessGroup(_0x455238[_0x2c9316(0x174)]);const _0x191668=await getDatasetDetail(_0x20cf90['code']),_0x9e57ff=resolveBusinessGroupDataset(_0x191668,_0x20cf90[_0x2c9316(0x184)]),_0x2d6c83=loadCurrentBusinessGroup(_0x191668,_0x9e57ff);if(_0x2d6c83!==_0x33926c)throw CliErrors[_0x2c9316(0x19b)](_0x2c9316(0x187),'Expected\x20'+JSON[_0x2c9316(0x1a8)](displayBusinessGroup(_0x33926c))+_0x2c9316(0x1a3)+JSON['stringify'](displayBusinessGroup(_0x2d6c83))+'.');_0x32aed1={'verified':!![],'status':_0x2c9316(0x182),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2d6c83)}};}else!_0x4e21f5&&(_0x32aed1={'verified':!![],'status':_0x2c9316(0x196),'afterReadback':{'businessGroup':displayBusinessGroup(_0xfc160b)}});const _0x2ecf4c={'operation':_0x2c9316(0x1a7),'appCode':_0x2896db,'selector':{'code':_0x20cf90[_0x2c9316(0x184)]},'dataset':{'id':_0x20cf90['id'],'code':_0x20cf90[_0x2c9316(0x184)],'name':_0x20cf90[_0x2c9316(0x194)],'sourceType':_0x20cf90[_0x2c9316(0x191)]},'before':{'businessGroup':displayBusinessGroup(_0xfc160b)},'after':{'businessGroup':displayBusinessGroup(_0x33926c)},'changed':_0x4e21f5,'dryRun':_0x44c120,'submitted':_0x4e21f5&&!_0x44c120,'backend':{'method':_0x455238['method'],'path':_0x455238[_0x2c9316(0x169)],'payload':_0x455238[_0x2c9316(0x174)]},..._0x32aed1?{'verification':_0x32aed1}:{},'warnings':[]};return{'ok':!![],'data':_0x2ecf4c,'message':_0x4e21f5?_0x44c120?_0x2c9316(0x16b)+_0x20cf90[_0x2c9316(0x184)]:_0x2c9316(0x160)+_0x20cf90[_0x2c9316(0x184)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x20cf90[_0x2c9316(0x184)]};}export const datasetBusinessGroupUpdate={'service':a66_0x32c37d(0x17a),'command':a66_0x32c37d(0x195),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':'business-group','type':a66_0x32c37d(0x180),'required':!![],'description':a66_0x32c37d(0x165)},{'name':'expect-business-group','type':a66_0x32c37d(0x180),'required':![],'description':a66_0x32c37d(0x18e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x42af37){validateInput(readBusinessGroupUpdateInput(_0x42af37));},async 'dryRun'(_0x2c2964){const _0x2f935f=a66_0x32c37d,_0x3774f8=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2c2964[_0x2f935f(0x17e)],'input':readBusinessGroupUpdateInput(_0x2c2964),'dryRun':!![]});return{'method':_0x3774f8[_0x2f935f(0x172)]['backend']['method'],'url':_0x3774f8[_0x2f935f(0x172)][_0x2f935f(0x19c)][_0x2f935f(0x169)],'body':_0x3774f8[_0x2f935f(0x172)][_0x2f935f(0x19c)][_0x2f935f(0x174)],'description':_0x3774f8[_0x2f935f(0x186)],..._0x3774f8[_0x2f935f(0x172)]};},async 'execute'(_0x461920){const _0x3e4f10=a66_0x32c37d;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x461920[_0x3e4f10(0x17e)],'input':readBusinessGroupUpdateInput(_0x461920),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x32f9d3){const _0x395ed8=a66_0x32c37d,_0x5c2587=_0x32f9d3[_0x395ed8(0x15f)]('expect-business-group');return{'code':trim(_0x32f9d3[_0x395ed8(0x15f)](_0x395ed8(0x184))),'businessGroup':_0x32f9d3[_0x395ed8(0x15f)](_0x395ed8(0x17d)),'expectBusinessGroup':_0x5c2587===undefined||_0x5c2587===''?undefined:_0x5c2587};}function a66_0x4ac5(){const _0x36c5e8=['apiError','backend','18493553ZrhSQW','db-table','--business-group\x20is\x20required','kind','modelCode','168gjsOiP',',\x20actual\x20','dbId','18xkBJqg','--code\x20is\x20required','update','stringify','DB_TABLE','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','call','number','metadata','str','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','dbLinkId','found','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','hasOwnProperty','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','ungrouped','METADATA','toUpperCase','path','source','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','datasetId','extend','1748970vncAVp','POST','2KJneuI','prototype','data','expectBusinessGroup','payload','607077CCBfPo','dbtableConfig','9800892egdcOI','datasetCode','length','dataset','--business-group\x20must\x20not\x20be\x20blank','1090365QTsPoY','business-group','appCode','dbTableSelector','string','tableName','matched','validation','code','trim','message','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','businessGroup','55FSAxbk','406336sZCQgc','keys','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','36maRKXb','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','datasetName','/smartapi/dblink/updateTableBusinessGroup','sourceType','8AHBLca','/smartapi/question/er-config/business-group/edit','name','business-group-update','unchanged','isFinite','52608joqbZJ','modelId','value'];a66_0x4ac5=function(){return _0x36c5e8;};return a66_0x4ac5();}function validateInput(_0x505b36){const _0x556fc0=a66_0x32c37d;if(!trim(_0x505b36[_0x556fc0(0x184)]))throw CliErrors[_0x556fc0(0x183)](_0x556fc0(0x1a6));if(_0x505b36[_0x556fc0(0x188)]===undefined)throw CliErrors[_0x556fc0(0x183)](_0x556fc0(0x19f));if(!trim(_0x505b36[_0x556fc0(0x188)]))throw CliErrors[_0x556fc0(0x183)](_0x556fc0(0x17b));}function a66_0x4b78(_0x197ac7,_0x245a77){_0x197ac7=_0x197ac7-0x15c;const _0x4ac5a9=a66_0x4ac5();let _0x4b7895=_0x4ac5a9[_0x197ac7];return _0x4b7895;}function assertBusinessGroupUpdateSupported(_0x52bc83,_0x85912e){const _0x3b1169=a66_0x32c37d;if(_0x52bc83[_0x3b1169(0x191)]==='DB_TABLE'&&!_0x85912e)throw CliErrors['validation']('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x49cd3a,_0x5efb15){const _0x4ef393=a66_0x32c37d,_0x581bad=asPlainObject(_0x49cd3a[_0x4ef393(0x17a)]),_0x4baa97=asPlainObject(_0x49cd3a[_0x4ef393(0x176)]),_0x2e5c4e=resolveSourceType(_0x49cd3a,_0x581bad,_0x4baa97),_0x2d9ba4=firstString(_0x49cd3a[_0x4ef393(0x1a1)],_0x49cd3a[_0x4ef393(0x184)],_0x581bad[_0x4ef393(0x178)],_0x5efb15)||_0x5efb15;return{'id':firstNumber(_0x49cd3a['modelId'],_0x49cd3a['id'],_0x581bad['datasetId'])??firstString(_0x49cd3a[_0x4ef393(0x199)],_0x49cd3a['id'],_0x581bad[_0x4ef393(0x16c)])??null,'code':_0x2d9ba4,'name':firstString(_0x49cd3a['name'],_0x581bad[_0x4ef393(0x18f)],_0x581bad[_0x4ef393(0x194)])||null,'sourceType':_0x2e5c4e,'dbTableSelector':_0x2e5c4e===_0x4ef393(0x1a9)?{'dbLinkId':firstNumber(_0x4baa97[_0x4ef393(0x1a4)]),'tableName':firstString(_0x4baa97['tableName'])||null}:null};}function resolveSourceType(_0x8376c8,_0x5feb86,_0x4b86b4){const _0x2367d7=a66_0x32c37d,_0x194db8=firstString(_0x8376c8[_0x2367d7(0x16a)],_0x8376c8[_0x2367d7(0x191)],_0x5feb86[_0x2367d7(0x16a)],_0x5feb86[_0x2367d7(0x191)])?.[_0x2367d7(0x185)]()[_0x2367d7(0x168)]();if(_0x194db8===_0x2367d7(0x1a9)||_0x194db8===_0x2367d7(0x167))return _0x194db8;if(Object[_0x2367d7(0x18b)](_0x4b86b4)[_0x2367d7(0x179)]>0x0)return'DB_TABLE';throw CliErrors[_0x2367d7(0x183)](_0x2367d7(0x18c));}function loadCurrentBusinessGroup(_0x3875ce,_0x9e92c2){const _0x43e7d2=a66_0x32c37d,_0x587fcc=readBusinessGroupFromDatasetDetail(_0x3875ce,_0x9e92c2[_0x43e7d2(0x191)]);if(_0x587fcc[_0x43e7d2(0x162)])return normalizeBusinessGroup(_0x587fcc[_0x43e7d2(0x19a)]);return'';}function readBusinessGroupFromDatasetDetail(_0x18a232,_0x348250){const _0x2cb87d=a66_0x32c37d,_0x5fcbf8=asPlainObject(_0x18a232[_0x2cb87d(0x17a)]),_0x358589=firstPresent(_0x18a232[_0x2cb87d(0x188)]);if(_0x358589[_0x2cb87d(0x162)])return _0x358589;const _0x7a26d3=firstPresent(_0x5fcbf8[_0x2cb87d(0x188)]);if(_0x7a26d3[_0x2cb87d(0x162)])return _0x7a26d3;if(_0x348250===_0x2cb87d(0x1a9))return{'found':![]};const _0x7b9c81=readBusinessGroupFromExtend(_0x18a232[_0x2cb87d(0x16d)]);if(_0x7b9c81[_0x2cb87d(0x162)])return _0x7b9c81;return readBusinessGroupFromExtend(_0x5fcbf8[_0x2cb87d(0x16d)]);}function readBusinessGroupFromExtend(_0x4c4550){const _0x453161=a66_0x32c37d;if(_0x4c4550===undefined||_0x4c4550===null||_0x4c4550==='')return{'found':![]};if(typeof _0x4c4550===_0x453161(0x180))try{const _0x3da45c=JSON['parse'](_0x4c4550);return readBusinessGroupFromExtend(_0x3da45c);}catch{return{'found':![]};}const _0x523946=asPlainObject(_0x4c4550);if(Object[_0x453161(0x171)][_0x453161(0x164)][_0x453161(0x15c)](_0x523946,'businessGroup'))return{'found':!![],'value':_0x523946[_0x453161(0x188)]};return{'found':![]};}function firstPresent(..._0x50d71c){for(const _0xad4c6b of _0x50d71c){if(_0xad4c6b!==undefined&&_0xad4c6b!==null)return{'found':!![],'value':_0xad4c6b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x3788a0,_0x1365bb){const _0x38f7dd=a66_0x32c37d;if(_0x1365bb===undefined)return;const _0x36bc2f=normalizeBusinessGroupArgument(_0x1365bb);if(_0x3788a0!==_0x36bc2f)throw CliErrors[_0x38f7dd(0x183)]('Expectation\x20mismatch\x20at\x20businessGroup','Expected\x20'+JSON[_0x38f7dd(0x1a8)](_0x36bc2f)+_0x38f7dd(0x1a3)+JSON['stringify'](_0x3788a0));}function buildBackendPlan(_0x3ff8bf,_0x54d0c9,_0x5e8b6c){const _0x192085=a66_0x32c37d;if(_0x54d0c9[_0x192085(0x191)]===_0x192085(0x1a9)){if(!_0x54d0c9[_0x192085(0x17f)]||_0x54d0c9[_0x192085(0x17f)][_0x192085(0x161)]===null||!_0x54d0c9[_0x192085(0x17f)]['tableName'])throw CliErrors[_0x192085(0x183)](_0x192085(0x163),_0x192085(0x1aa));return{'kind':_0x192085(0x19e),'method':_0x192085(0x16f),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x54d0c9['dbTableSelector'][_0x192085(0x161)],'tableName':_0x54d0c9[_0x192085(0x17f)][_0x192085(0x181)],'businessGroup':_0x5e8b6c}};}return{'kind':_0x192085(0x15e),'method':_0x192085(0x16f),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x3ff8bf,'datasetCode':_0x54d0c9['code'],'businessGroup':_0x5e8b6c}};}function normalizeBusinessGroup(_0x510ff1){const _0x75bc98=a66_0x32c37d;if(_0x510ff1===undefined||_0x510ff1===null)return'';return String(_0x510ff1)[_0x75bc98(0x185)]();}function normalizeBusinessGroupArgument(_0x49044a){const _0x4959cb=normalizeBusinessGroup(_0x49044a);return _0x4959cb===UNGROUPED_BUSINESS_GROUP?'':_0x4959cb;}function displayBusinessGroup(_0x573c09){return _0x573c09||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0xcc0719){if(!_0xcc0719||typeof _0xcc0719!=='object'||Array['isArray'](_0xcc0719))return{};return _0xcc0719;}function firstString(..._0x403da2){const _0x21cc2f=a66_0x32c37d;for(const _0x1c3879 of _0x403da2){if(typeof _0x1c3879===_0x21cc2f(0x180)&&_0x1c3879['trim']())return _0x1c3879[_0x21cc2f(0x185)]();if(typeof _0x1c3879===_0x21cc2f(0x15d)&&Number[_0x21cc2f(0x197)](_0x1c3879))return String(_0x1c3879);}return undefined;}function firstNumber(..._0x9aaea1){const _0x513f8d=a66_0x32c37d;for(const _0x98d0d of _0x9aaea1){if(typeof _0x98d0d===_0x513f8d(0x15d)&&Number[_0x513f8d(0x197)](_0x98d0d))return _0x98d0d;if(typeof _0x98d0d===_0x513f8d(0x180)&&_0x98d0d['trim']()&&Number[_0x513f8d(0x197)](Number(_0x98d0d)))return Number(_0x98d0d);}return null;}function trim(_0x5df6ec){const _0x100e56=a66_0x32c37d;return String(_0x5df6ec||'')[_0x100e56(0x185)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x299f(_0x818499,_0x22060b){_0x818499=_0x818499-0x15e;const _0x290b4b=a67_0x290b();let _0x299f40=_0x290b4b[_0x818499];return _0x299f40;}function a67_0x290b(){const _0x40ecab=['read','623VEaGOK','9Plwidn','number','7978280ViVNDx','length','85bkkrDJ','dataset','groups','businessGroup','num','356810giiusk','trim','543977GpRiSi','Found\x20','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','dbid','627804fwDjce','map','34376xRHjSN','6125152rykaaO','29028ncaGkr','\x20business\x20group(s)\x20for\x20database\x20connection\x20','appCode'];a67_0x290b=function(){return _0x40ecab;};return a67_0x290b();}const a67_0x5955d3=a67_0x299f;(function(_0x1410b3,_0x309c2d){const _0x1a454d=a67_0x299f,_0x451651=_0x1410b3();while(!![]){try{const _0x32f010=parseInt(_0x1a454d(0x15f))/0x1+-parseInt(_0x1a454d(0x175))/0x2+-parseInt(_0x1a454d(0x163))/0x3+parseInt(_0x1a454d(0x165))/0x4*(-parseInt(_0x1a454d(0x170))/0x5)+-parseInt(_0x1a454d(0x167))/0x6*(-parseInt(_0x1a454d(0x16b))/0x7)+parseInt(_0x1a454d(0x166))/0x8+parseInt(_0x1a454d(0x16c))/0x9*(-parseInt(_0x1a454d(0x16e))/0xa);if(_0x32f010===_0x309c2d)break;else _0x451651['push'](_0x451651['shift']());}catch(_0x464d0f){_0x451651['push'](_0x451651['shift']());}}}(a67_0x290b,0x63c1c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x5955d3(0x171),'command':'business-groups','description':a67_0x5955d3(0x161),'risk':a67_0x5955d3(0x16a),'flags':[{'name':a67_0x5955d3(0x162),'type':a67_0x5955d3(0x16d),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x13e80f){const _0x3ee237=a67_0x5955d3,_0x2d8718=_0x13e80f[_0x3ee237(0x174)](_0x3ee237(0x162)),_0x19f52f=await getErBusinessGroupSummary(_0x13e80f[_0x3ee237(0x169)],_0x2d8718),_0x3e3ebc=_0x19f52f[_0x3ee237(0x172)][_0x3ee237(0x164)](_0xb002b=>({..._0xb002b,'businessGroup':_0xb002b[_0x3ee237(0x173)][_0x3ee237(0x15e)]()||'ungrouped'}));return{'ok':!![],'data':{..._0x19f52f,'groups':_0x3e3ebc,'scope':'DB_TABLE'},'message':_0x3ee237(0x160)+_0x3e3ebc[_0x3ee237(0x16f)]+_0x3ee237(0x168)+_0x2d8718};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x857b(_0x53b8c4,_0x41edb1){_0x53b8c4=_0x53b8c4-0x188;const _0x765c67=a68_0x765c();let _0x857b14=_0x765c67[_0x53b8c4];return _0x857b14;}function a68_0x765c(){const _0xe275a9=['Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','METADATA','sourceType','SQL\x20schema\x20validation','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','7976458HDSkGM','tableName','datasetName','unknown','dataset','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','filter','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','source','\x20is\x20','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','787132vibyfc','3243570fWcKCv','datasetCode','9544455ImFqVj','The\x20current\x20dataset\x20\x22','4275APTSGF','1658452PkmfmN','76290iKhSFv','11287832xJsxqo','code','dbtable','join','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','2lbVBAE','trim','dbId','6chZDTT','length','dbtableConfig'];a68_0x765c=function(){return _0xe275a9;};return a68_0x765c();}const a68_0x7d1eb6=a68_0x857b;(function(_0x4e5614,_0x3542d5){const _0x44ab03=a68_0x857b,_0x45c13b=_0x4e5614();while(!![]){try{const _0x3635fc=parseInt(_0x44ab03(0x18f))/0x1+parseInt(_0x44ab03(0x19c))/0x2*(-parseInt(_0x44ab03(0x190))/0x3)+parseInt(_0x44ab03(0x195))/0x4+parseInt(_0x44ab03(0x192))/0x5*(parseInt(_0x44ab03(0x19f))/0x6)+parseInt(_0x44ab03(0x1a7))/0x7+parseInt(_0x44ab03(0x197))/0x8+parseInt(_0x44ab03(0x194))/0x9*(-parseInt(_0x44ab03(0x196))/0xa);if(_0x3635fc===_0x3542d5)break;else _0x45c13b['push'](_0x45c13b['shift']());}catch(_0x3a4b4a){_0x45c13b['push'](_0x45c13b['shift']());}}}(a68_0x765c,0xe96f0));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x7d1eb6(0x189),'getOne':a68_0x7d1eb6(0x19b)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x7d1eb6(0x188);function valueToString(_0x2c2777){const _0x43b5db=a68_0x7d1eb6;return _0x2c2777==null?'':String(_0x2c2777)[_0x43b5db(0x19d)]();}function getDatasetCode(_0x24aa6a){const _0x5e3cdd=a68_0x7d1eb6;return valueToString(_0x24aa6a[_0x5e3cdd(0x198)]??_0x24aa6a['modelCode']??_0x24aa6a[_0x5e3cdd(0x1ab)]?.[_0x5e3cdd(0x191)]);}function getDatasetName(_0x17a192){const _0x223ff8=a68_0x7d1eb6;return valueToString(_0x17a192['name']??_0x17a192[_0x223ff8(0x1ab)]?.[_0x223ff8(0x1a9)])||_0x223ff8(0x1aa);}function getDatasetSource(_0x523e88){const _0x5cedc0=a68_0x7d1eb6;return valueToString(_0x523e88[_0x5cedc0(0x18c)]??_0x523e88[_0x5cedc0(0x1ab)]?.[_0x5cedc0(0x1a4)])['toUpperCase']();}function getDbtableConfig(_0x4118eb){const _0x16d5eb=a68_0x7d1eb6,_0x5016d5=_0x4118eb[_0x16d5eb(0x1a1)]??_0x4118eb[_0x16d5eb(0x199)];return _0x5016d5&&typeof _0x5016d5==='object'?_0x5016d5:{};}export function isDbTableBackedDataset(_0x42434a){const _0x3db7eb=a68_0x7d1eb6,_0x2f259e=getDatasetSource(_0x42434a);if(_0x2f259e===_0x3db7eb(0x1a3))return![];const _0x462a6e=getDbtableConfig(_0x42434a),_0x1e199e=_0x462a6e[_0x3db7eb(0x19e)]??_0x462a6e['id'],_0x5f45ed=valueToString(_0x462a6e['tableName']??_0x42434a[_0x3db7eb(0x1a8)]??_0x42434a[_0x3db7eb(0x1ab)]?.[_0x3db7eb(0x1a8)]);return _0x1e199e!==undefined&&_0x1e199e!==null&&_0x5f45ed[_0x3db7eb(0x1a0)]>0x0;}export function filterDbTableBackedDatasets(_0x5b5cdc){const _0x55c652=a68_0x7d1eb6;return _0x5b5cdc[_0x55c652(0x18a)](_0x239506=>isDbTableBackedDataset(_0x239506));}export function buildDbTableBackedRequirementMessage(_0x576308,_0x1cfdd7=a68_0x7d1eb6(0x1a5)){const _0x1ac8e3=a68_0x7d1eb6,_0x17baf3=getDatasetSource(_0x576308)||'UNKNOWN',_0x2f93de=getDatasetName(_0x576308),_0x1c8ee3=getDatasetCode(_0x576308),_0x28a853=_0x1c8ee3?'\x20('+_0x1c8ee3+')':'';return[_0x1ac8e3(0x193)+_0x2f93de+'\x22'+_0x28a853+_0x1ac8e3(0x18d)+_0x17baf3+_0x1ac8e3(0x18b)+_0x1cfdd7+'.',_0x1ac8e3(0x1a2),_0x1ac8e3(0x1a6),_0x1ac8e3(0x18e)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.'][_0x1ac8e3(0x19a)]('\x20');}export function assertDatasetIsDbTableBacked(_0x2b2431,_0x254ffd){if(!isDbTableBackedDataset(_0x2b2431))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x2b2431,_0x254ffd));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x2fec55=a69_0x4e4e;function a69_0x4e4e(_0x5d28ed,_0x47d130){_0x5d28ed=_0x5d28ed-0x1ef;const _0x53d44e=a69_0x53d4();let _0x4e4e42=_0x53d44e[_0x5d28ed];return _0x4e4e42;}(function(_0xa9382d,_0x59e29b){const _0xf54b3f=a69_0x4e4e,_0x14ab4f=_0xa9382d();while(!![]){try{const _0x5dd51e=parseInt(_0xf54b3f(0x1f2))/0x1*(parseInt(_0xf54b3f(0x1f4))/0x2)+-parseInt(_0xf54b3f(0x1f5))/0x3*(-parseInt(_0xf54b3f(0x1fb))/0x4)+-parseInt(_0xf54b3f(0x1f3))/0x5*(parseInt(_0xf54b3f(0x1f8))/0x6)+parseInt(_0xf54b3f(0x1fc))/0x7+-parseInt(_0xf54b3f(0x1f1))/0x8*(-parseInt(_0xf54b3f(0x1f0))/0x9)+-parseInt(_0xf54b3f(0x1fa))/0xa+-parseInt(_0xf54b3f(0x1f7))/0xb;if(_0x5dd51e===_0x59e29b)break;else _0x14ab4f['push'](_0x14ab4f['shift']());}catch(_0x258525){_0x14ab4f['push'](_0x14ab4f['shift']());}}}(a69_0x53d4,0x31224));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a69_0x53d4(){const _0x53a766=['1363915MxUQHE','4rhauDc','360546XSeAHb','cross-relation-create','4266152fAhwXu','6cPUdOe','dataset','432860gODUah','12ppAVGk','2691780rmdSev','create','8685WwvOmZ','216VOswUD','67006zvxdDQ'];a69_0x53d4=function(){return _0x53a766;};return a69_0x53d4();}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':a69_0x2fec55(0x1f9),'command':a69_0x2fec55(0x1f6),'description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':'write','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 _0x5df924=>validateCrossRelation(_0x5df924,a69_0x2fec55(0x1ef)),'dryRun':_0x2298b9=>previewCrossRelation(_0x2298b9,a69_0x2fec55(0x1ef)),'execute':_0x3608b9=>executeCrossRelation(_0x3608b9,a69_0x2fec55(0x1ef),createCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x3ac9(_0x1d304e,_0x3e826c){_0x1d304e=_0x1d304e-0x89;const _0x1d5e46=a70_0x1d5e();let _0x3ac9d3=_0x1d5e46[_0x1d304e];return _0x3ac9d3;}const a70_0x4118a3=a70_0x3ac9;(function(_0x2957dd,_0x42259f){const _0x2e151c=a70_0x3ac9,_0x1805c0=_0x2957dd();while(!![]){try{const _0x5cff62=parseInt(_0x2e151c(0x89))/0x1*(-parseInt(_0x2e151c(0x8e))/0x2)+parseInt(_0x2e151c(0x91))/0x3*(parseInt(_0x2e151c(0x8f))/0x4)+-parseInt(_0x2e151c(0x8c))/0x5+parseInt(_0x2e151c(0x90))/0x6*(parseInt(_0x2e151c(0x98))/0x7)+-parseInt(_0x2e151c(0x95))/0x8*(parseInt(_0x2e151c(0x92))/0x9)+parseInt(_0x2e151c(0x8a))/0xa*(-parseInt(_0x2e151c(0x8b))/0xb)+parseInt(_0x2e151c(0x96))/0xc;if(_0x5cff62===_0x42259f)break;else _0x1805c0['push'](_0x1805c0['shift']());}catch(_0x3bda8a){_0x1805c0['push'](_0x1805c0['shift']());}}}(a70_0x1d5e,0x1fff8));import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a70_0x1d5e(){const _0x17a773=['delete','cross-relation-delete','32EIXEYH','5081484QjGIIq','dataset','347522AGyRzd','1XsupRb','80YVsUMH','170434IZbslj','506745FsjrTV','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','432458onLJTu','1012516KZzayl','12YAhHlB','3nWClVj','457389IaYhbV'];a70_0x1d5e=function(){return _0x17a773;};return a70_0x1d5e();}export const datasetCrossRelationDelete={'service':a70_0x4118a3(0x97),'command':a70_0x4118a3(0x94),'description':a70_0x4118a3(0x8d),'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 _0x5a4fec=>validateCrossRelation(_0x5a4fec,a70_0x4118a3(0x93)),'dryRun':_0x254dfd=>previewCrossRelation(_0x254dfd,a70_0x4118a3(0x93)),'execute':_0x575dec=>executeCrossRelation(_0x575dec,a70_0x4118a3(0x93),deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x4d0182=a71_0x316f;(function(_0x444a1a,_0x538991){const _0x3dac3b=a71_0x316f,_0x48573f=_0x444a1a();while(!![]){try{const _0x3d66ea=-parseInt(_0x3dac3b(0x147))/0x1*(parseInt(_0x3dac3b(0x13e))/0x2)+parseInt(_0x3dac3b(0x149))/0x3*(-parseInt(_0x3dac3b(0x145))/0x4)+parseInt(_0x3dac3b(0x141))/0x5+-parseInt(_0x3dac3b(0x142))/0x6+parseInt(_0x3dac3b(0x143))/0x7+-parseInt(_0x3dac3b(0x146))/0x8*(parseInt(_0x3dac3b(0x13f))/0x9)+parseInt(_0x3dac3b(0x148))/0xa;if(_0x3d66ea===_0x538991)break;else _0x48573f['push'](_0x48573f['shift']());}catch(_0x1c8e3a){_0x48573f['push'](_0x48573f['shift']());}}}(a71_0x4f81,0xbddbc));function a71_0x316f(_0x19db01,_0x541307){_0x19db01=_0x19db01-0x13c;const _0x4f81e2=a71_0x4f81();let _0x316fb5=_0x4f81e2[_0x19db01];return _0x316fb5;}import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a71_0x4f81(){const _0x37f64c=['map','638165DppifL','6823194QLgiEj','9399593tKaLRx','list','3452PzBdKN','11952248QXFMpW','166HPBkbk','27115750XfmeEw','1167VYAJRn','cross-relation-list','\x20relation(s)','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','length','appCode','Cross-database\x20relations:\x20','read','5270aEpwOB','9zIPtYy'];a71_0x4f81=function(){return _0x37f64c;};return a71_0x4f81();}export const datasetCrossRelationList={'service':'dataset','command':a71_0x4d0182(0x14a),'description':a71_0x4d0182(0x14c),'risk':a71_0x4d0182(0x13d),'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 _0x1798c8=>validateCrossRelation(_0x1798c8,a71_0x4d0182(0x144)),async 'execute'(_0x21bf02){const _0x157172=a71_0x4d0182,_0x13dfd1=await resolveCrossRelationQuery(_0x21bf02),_0x451c7f=await queryCrossDbRelations(_0x13dfd1);return{'ok':!![],'data':{'appCode':_0x21bf02[_0x157172(0x14e)],'selector':_0x13dfd1,'total':_0x451c7f[_0x157172(0x14d)],'relations':_0x451c7f[_0x157172(0x140)](projectCrossRelation)},'message':_0x157172(0x13c)+_0x451c7f[_0x157172(0x14d)]+_0x157172(0x14b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x508adc=a72_0x2120;(function(_0x5d34c8,_0xaa3df8){const _0x4113b4=a72_0x2120,_0x29844f=_0x5d34c8();while(!![]){try{const _0x44274e=-parseInt(_0x4113b4(0x147))/0x1*(-parseInt(_0x4113b4(0x16e))/0x2)+-parseInt(_0x4113b4(0x14f))/0x3*(-parseInt(_0x4113b4(0x144))/0x4)+parseInt(_0x4113b4(0x15c))/0x5+-parseInt(_0x4113b4(0x173))/0x6+parseInt(_0x4113b4(0x15e))/0x7+-parseInt(_0x4113b4(0x166))/0x8*(parseInt(_0x4113b4(0x157))/0x9)+-parseInt(_0x4113b4(0x16c))/0xa;if(_0x44274e===_0xaa3df8)break;else _0x29844f['push'](_0x29844f['shift']());}catch(_0x161331){_0x29844f['push'](_0x29844f['shift']());}}}(a72_0x4a58,0x39b1c));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';function a72_0x2120(_0x1b2f98,_0x4d3fe1){_0x1b2f98=_0x1b2f98-0x131;const _0x4a58a7=a72_0x4a58();let _0x212061=_0x4a58a7[_0x1b2f98];return _0x212061;}import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x51c983,_0x485244){const _0x21e80a=a72_0x2120,_0x1d49a2=_0x51c983['str'](_0x485244)[_0x21e80a(0x14b)]();if(!_0x1d49a2)throw CliErrors[_0x21e80a(0x137)](_0x485244);return _0x1d49a2;}function explicitDblink(_0xda79f2){const _0x15620a=a72_0x2120,_0x194a3d=_0xda79f2['flag'](_0x15620a(0x17c));if(_0x194a3d===undefined||_0x194a3d===null)return undefined;const _0x4016ce=Number(_0x194a3d);if(!Number[_0x15620a(0x163)](_0x4016ce)||_0x4016ce<=0x0)throw CliErrors['validation'](_0x15620a(0x162));return _0x4016ce;}export function validateCrossRelation(_0x4214ea,_0x44e909){const _0x4fc397=a72_0x2120,_0x357323=explicitDblink(_0x4214ea);if(_0x44e909==='list'){if(!_0x4214ea[_0x4fc397(0x13d)](_0x4fc397(0x16b))[_0x4fc397(0x14b)]()&&_0x357323===undefined)throw CliErrors[_0x4fc397(0x13b)](_0x4fc397(0x156));return;}required(_0x4214ea,_0x4fc397(0x16b)),required(_0x4214ea,'from-column');if(_0x44e909!==_0x4fc397(0x15d)){required(_0x4214ea,_0x4fc397(0x13e)),required(_0x4214ea,'to-column');const _0x329dec=_0x4214ea['str'](_0x4fc397(0x177))[_0x4fc397(0x14b)]();if(_0x329dec&&!CROSS_RELATION_CARDINALITY_FLAG[_0x4fc397(0x13f)][_0x4fc397(0x183)](_0x329dec))throw CliErrors[_0x4fc397(0x13b)](_0x4fc397(0x13c));}}async function resolveEndpoint(_0x268d5b){const _0x1fa621=a72_0x2120,_0x15093f=await getDatasetDetail(_0x268d5b),_0x1b3653=_0x15093f?.[_0x1fa621(0x182)]??{};if((_0x15093f?.[_0x1fa621(0x16a)]??_0x1b3653['sourceType'])!==_0x1fa621(0x149))throw CliErrors[_0x1fa621(0x13b)](_0x1fa621(0x170)+_0x268d5b+_0x1fa621(0x15f));const _0x1d9082=_0x15093f[_0x1fa621(0x178)]??_0x15093f[_0x1fa621(0x133)]??{};let _0x56ce68=_0x15093f['extend']??_0x1b3653[_0x1fa621(0x174)]??{};if(typeof _0x56ce68===_0x1fa621(0x16f))try{_0x56ce68=_0x56ce68['trim']()?JSON['parse'](_0x56ce68):{};}catch{throw CliErrors['validation'](_0x1fa621(0x170)+_0x268d5b+_0x1fa621(0x145));}const _0x2f33c0=Number(_0x56ce68?.[_0x1fa621(0x140)]?.['dbId']??_0x15093f[_0x1fa621(0x140)]?.['dbId']??_0x1b3653[_0x1fa621(0x140)]?.[_0x1fa621(0x152)]??_0x1d9082[_0x1fa621(0x152)]??_0x1b3653[_0x1fa621(0x152)]??_0x15093f[_0x1fa621(0x152)]),_0x206108=String(_0x15093f[_0x1fa621(0x15a)]??_0x1b3653['tableName']??_0x1d9082[_0x1fa621(0x15a)]??'')[_0x1fa621(0x14b)]();if(!Number[_0x1fa621(0x163)](_0x2f33c0)||_0x2f33c0<=0x0||!_0x206108)throw CliErrors[_0x1fa621(0x13b)](_0x1fa621(0x170)+_0x268d5b+'\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.');return{'datasetCode':_0x268d5b,'dblinkId':_0x2f33c0,'table':_0x206108};}export async function resolveCrossRelationQuery(_0x21eca9){const _0x5f3a99=a72_0x2120,_0x5ff6ff=_0x21eca9[_0x5f3a99(0x13d)](_0x5f3a99(0x16b))[_0x5f3a99(0x14b)](),_0x27389c=explicitDblink(_0x21eca9),_0x58c463=_0x5ff6ff?await resolveEndpoint(_0x5ff6ff):undefined;if(_0x58c463&&_0x27389c!==undefined&&_0x58c463[_0x5f3a99(0x14d)]!==_0x27389c)throw CliErrors[_0x5f3a99(0x13b)](_0x5f3a99(0x171));const _0x10933d=_0x58c463?.[_0x5f3a99(0x14d)]??_0x27389c;if(_0x10933d===undefined)throw CliErrors[_0x5f3a99(0x13b)](_0x5f3a99(0x156));return{'appCode':_0x21eca9[_0x5f3a99(0x167)],'fromDblinkId':_0x10933d,..._0x5ff6ff?{'fromDatasetCode':_0x5ff6ff}:{},..._0x21eca9['str']('from-column')[_0x5f3a99(0x14b)]()?{'fromField':_0x21eca9[_0x5f3a99(0x13d)](_0x5f3a99(0x154))[_0x5f3a99(0x14b)]()}:{}};}export function projectCrossRelation(_0x32ef0e){const _0x4e0ee5=a72_0x2120;return{'relationId':_0x32ef0e[_0x4e0ee5(0x143)],'from':{'source':_0x4e0ee5(0x149),'datasetCode':_0x32ef0e[_0x4e0ee5(0x181)],'datasetName':_0x32ef0e['fromDatasetName'],'dblinkId':_0x32ef0e[_0x4e0ee5(0x136)],'table':_0x32ef0e[_0x4e0ee5(0x134)],'field':_0x32ef0e[_0x4e0ee5(0x14e)]},'to':{'source':'DB_TABLE','datasetCode':_0x32ef0e['toDatasetCode'],'datasetName':_0x32ef0e[_0x4e0ee5(0x165)],'dblinkId':_0x32ef0e[_0x4e0ee5(0x153)],'table':_0x32ef0e['toTableName'],'field':_0x32ef0e[_0x4e0ee5(0x17d)],'labelField':_0x32ef0e[_0x4e0ee5(0x17a)]},'relation':{'cardinality':_0x32ef0e['cardinality'],'relationType':_0x32ef0e[_0x4e0ee5(0x15b)]}};}function ambiguity(_0x404414){const _0x12ea69=a72_0x2120,_0x59c8fe=CliErrors[_0x12ea69(0x13b)](_0x12ea69(0x176),'Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.');return Object[_0x12ea69(0x172)](_0x59c8fe,'data',{'value':{'candidates':_0x404414[_0x12ea69(0x141)](projectCrossRelation)}}),_0x59c8fe;}const sameName=(_0x493ead,_0x2b9766)=>_0x493ead[a72_0x508adc(0x16d)]()===_0x2b9766[a72_0x508adc(0x16d)]();function matchesEndpoint(_0x20087b,_0x2265a2,_0x450694,_0x5baad0,_0x2e12b9){const _0x447539=a72_0x508adc;return _0x20087b[_0x447539(0x136)]===_0x2265a2['dblinkId']&&sameName(_0x20087b[_0x447539(0x134)],_0x2265a2[_0x447539(0x158)])&&sameName(_0x20087b[_0x447539(0x14e)],_0x450694)&&_0x20087b[_0x447539(0x153)]===_0x5baad0[_0x447539(0x14d)]&&sameName(_0x20087b[_0x447539(0x168)],_0x5baad0[_0x447539(0x158)])&&sameName(_0x20087b[_0x447539(0x17d)],_0x2e12b9);}export async function prepareCrossRelation(_0x27c64d,_0xff44b2){const _0x1364c3=a72_0x508adc,_0x5b320c=await resolveEndpoint(required(_0x27c64d,_0x1364c3(0x16b))),_0x4656f0=explicitDblink(_0x27c64d);if(_0x4656f0!==undefined&&_0x5b320c[_0x1364c3(0x14d)]!==_0x4656f0)throw CliErrors[_0x1364c3(0x13b)](_0x1364c3(0x171));const _0x18a888={'appCode':_0x27c64d[_0x1364c3(0x167)],'fromDatasetCode':_0x5b320c[_0x1364c3(0x17e)],'fromField':required(_0x27c64d,_0x1364c3(0x154)),..._0x4656f0!==undefined?{'fromDblinkId':_0x4656f0}:{}},_0x465800={'appCode':_0x27c64d[_0x1364c3(0x167)],'fromDblinkId':_0x5b320c['dblinkId'],'fromDatasetCode':_0x5b320c[_0x1364c3(0x17e)],'fromField':_0x18a888['fromField']},_0xb1b589=await queryCrossDbRelations(_0x465800);let _0x1503f7=null;if(_0xff44b2!=='create'){if(_0xb1b589[_0x1364c3(0x148)]>0x1)throw ambiguity(_0xb1b589);_0x1503f7=_0xb1b589[0x0]??null;if(!_0x1503f7)throw CliErrors[_0x1364c3(0x13b)](_0x1364c3(0x180));}if(_0xff44b2===_0x1364c3(0x15d))return{'operation':_0xff44b2,'from':_0x5b320c,'query':_0x465800,'body':_0x18a888,'before':_0x1503f7};const _0x306205=await resolveEndpoint(required(_0x27c64d,_0x1364c3(0x13e)));if(_0x5b320c[_0x1364c3(0x14d)]===_0x306205[_0x1364c3(0x14d)])throw CliErrors[_0x1364c3(0x13b)]('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0xbcdde5=_0x27c64d[_0x1364c3(0x13d)](_0x1364c3(0x169))['trim'](),_0x2fd709=_0x27c64d[_0x1364c3(0x13d)](_0x1364c3(0x177))[_0x1364c3(0x14b)](),_0x2971a9={..._0x18a888,'toDatasetCode':_0x306205[_0x1364c3(0x17e)],'toField':required(_0x27c64d,'to-column'),..._0xbcdde5?{'refTableLabelName':_0xbcdde5}:{},..._0x2fd709?{'cardinality':_0x2fd709}:{}};if(_0xb1b589[_0x1364c3(0x14c)](_0x21438d=>_0x21438d[_0x1364c3(0x143)]!==_0x1503f7?.[_0x1364c3(0x143)]&&matchesEndpoint(_0x21438d,_0x5b320c,_0x2971a9[_0x1364c3(0x14e)],_0x306205,_0x2971a9[_0x1364c3(0x17d)])))throw CliErrors[_0x1364c3(0x13b)](_0x1364c3(0x175));return{'operation':_0xff44b2,'from':_0x5b320c,'to':_0x306205,'query':_0x465800,'body':_0x2971a9,'before':_0x1503f7,'expectedLabel':_0xbcdde5||_0x1503f7?.[_0x1364c3(0x17a)]||_0x2971a9[_0x1364c3(0x17d)],'expectedCardinality':_0x2fd709||_0x1503f7?.[_0x1364c3(0x177)]||null};}function mutationData(_0x1c3939,_0x4005d7,_0x19b0b3){const _0x2294cc=a72_0x508adc,{operation:_0x419e9e,body:_0x5374b5,before:_0x39f156}=_0x1c3939;return{'operation':_0x419e9e,'selector':{'appCode':_0x5374b5[_0x2294cc(0x167)],'from':{'datasetCode':_0x5374b5[_0x2294cc(0x181)],'field':_0x5374b5[_0x2294cc(0x14e)],'dblinkId':_0x1c3939[_0x2294cc(0x135)][_0x2294cc(0x14d)]}},'before':_0x39f156?projectCrossRelation(_0x39f156):null,'after':_0x19b0b3,'dryRun':_0x4005d7,'backend':{'method':_0x2294cc(0x17f),'path':CROSS_DB_RELATION_PATHS[_0x419e9e]},'warnings':_0x419e9e===_0x2294cc(0x17b)&&!_0x5374b5['refTableLabelName']?[{'code':'label_inherited','message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x26213a,_0xf0f838){const _0x5546b9=a72_0x508adc,_0x2310ae=await prepareCrossRelation(_0x26213a,_0xf0f838),_0x3bb8c4=_0x2310ae[_0x5546b9(0x146)],_0x35aa2e=_0xf0f838===_0x5546b9(0x15d)?null:{..._0x2310ae[_0x5546b9(0x179)]?{'relationId':_0x2310ae['before'][_0x5546b9(0x143)]}:{},'from':{'datasetCode':_0x2310ae[_0x5546b9(0x135)][_0x5546b9(0x17e)],'dblinkId':_0x2310ae[_0x5546b9(0x135)][_0x5546b9(0x14d)],'table':_0x2310ae[_0x5546b9(0x135)][_0x5546b9(0x158)],'field':_0x3bb8c4[_0x5546b9(0x14e)]},'to':{'datasetCode':_0x2310ae['to'][_0x5546b9(0x17e)],'dblinkId':_0x2310ae['to'][_0x5546b9(0x14d)],'table':_0x2310ae['to'][_0x5546b9(0x158)],'field':_0x3bb8c4[_0x5546b9(0x17d)],'labelField':_0x2310ae[_0x5546b9(0x155)]},'relation':{'cardinality':_0x2310ae[_0x5546b9(0x139)],'relationType':0x2}};return{...mutationData(_0x2310ae,!![],null),'after':_0x35aa2e,'method':'POST','url':CROSS_DB_RELATION_PATHS[_0xf0f838],'body':_0x2310ae[_0x5546b9(0x146)],'description':'Would\x20'+_0xf0f838+'\x20a\x20cross-database\x20relation\x20for\x20'+_0x3bb8c4[_0x5546b9(0x181)]+'.'+_0x3bb8c4[_0x5546b9(0x14e)]};}function a72_0x4a58(){const _0x5dc8dc=['Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','9XrCVUz','table','matched','tableName','relationType','1426080tEhkLt','delete','586901UucPaO','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','apiError','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','isSafeInteger','Cross-database\x20relation\x20','toDatasetName','1621984ynnFQJ','appCode','toTableName','to-label-column','source','from-datasetcode','3163550BXtdwA','toLowerCase','6OYztZC','string','Dataset\x20','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','defineProperty','365760ZaskEl','extend','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','cardinality','dbtableConfig','before','refTableLabelName','update','from-dblink-id','toField','datasetCode','POST','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','fromDatasetCode','dataset','includes','filter','create','dbtable','fromTableName','from','fromDblinkId','flagMissing','data','expectedCardinality','multiple\x20cross-database\x20relations\x20matched','validation','Invalid\x20--cardinality.','str','to-datasetcode','enum','storageProfile','map','query','relationId','110804DBCLVj','\x20has\x20invalid\x20storage\x20configuration.','body','29069DNWhwT','length','DB_TABLE','unconfirmed','trim','some','dblinkId','fromField','39lyciKg','\x20verified.','message','dbId','toDblinkId','from-column','expectedLabel'];a72_0x4a58=function(){return _0x5dc8dc;};return a72_0x4a58();}export async function executeCrossRelation(_0x5d7462,_0x3bb309,_0x8029ec){const _0x55ac45=a72_0x508adc,_0x15a11c=await prepareCrossRelation(_0x5d7462,_0x3bb309);try{await _0x8029ec(_0x15a11c[_0x55ac45(0x146)]);}catch(_0x153534){if(_0x153534 instanceof CliError&&_0x153534[_0x55ac45(0x151)][_0x55ac45(0x183)](_0x55ac45(0x13a))){const _0x8d37a7=await queryCrossDbRelations(_0x15a11c[_0x55ac45(0x142)])['catch'](()=>[]);throw ambiguity(_0x8d37a7);}throw _0x153534;}let _0x52b256=[],_0x5a3852,_0x267898=![];try{_0x52b256=await queryCrossDbRelations(_0x15a11c[_0x55ac45(0x142)]);if(_0x3bb309===_0x55ac45(0x15d))_0x267898=!_0x52b256[_0x55ac45(0x14c)](_0x12b2f4=>_0x12b2f4[_0x55ac45(0x143)]===_0x15a11c[_0x55ac45(0x179)]['relationId']);else{const _0x78bfcd=_0x15a11c[_0x55ac45(0x146)],_0x2cd557=_0x52b256[_0x55ac45(0x131)](_0x1791e0=>matchesEndpoint(_0x1791e0,_0x15a11c['from'],_0x78bfcd['fromField'],_0x15a11c['to'],_0x78bfcd[_0x55ac45(0x17d)])&&(_0x3bb309===_0x55ac45(0x132)||_0x1791e0[_0x55ac45(0x143)]===_0x15a11c[_0x55ac45(0x179)][_0x55ac45(0x143)]));_0x5a3852=_0x2cd557[_0x55ac45(0x148)]===0x1?_0x2cd557[0x0]:undefined,_0x267898=!!_0x5a3852&&_0x5a3852['refTableLabelName']===_0x15a11c[_0x55ac45(0x155)]&&_0x5a3852[_0x55ac45(0x177)]===_0x15a11c[_0x55ac45(0x139)]&&_0x5a3852[_0x55ac45(0x15b)]===0x2;}}catch{}const _0x10dca3={...mutationData(_0x15a11c,![],_0x5a3852?projectCrossRelation(_0x5a3852):null),'verification':{'status':_0x267898?_0x55ac45(0x159):_0x55ac45(0x14a),'verified':_0x267898}};if(!_0x267898){const _0x4bbb13=CliErrors[_0x55ac45(0x161)](_0x55ac45(0x164)+_0x3bb309+'\x20write\x20was\x20not\x20verified.',_0x55ac45(0x160));Object[_0x55ac45(0x172)](_0x4bbb13,_0x55ac45(0x138),{'value':{..._0x10dca3,'candidates':_0x52b256[_0x55ac45(0x141)](projectCrossRelation)}});throw _0x4bbb13;}return{'ok':!![],'data':_0x10dca3,'message':_0x55ac45(0x164)+_0x3bb309+_0x55ac45(0x150)};}
|
|
1
|
+
const a72_0x4b8dac=a72_0x4345;(function(_0x31ea1b,_0x4169f4){const _0x4f060f=a72_0x4345,_0x327a9a=_0x31ea1b();while(!![]){try{const _0x1846d1=-parseInt(_0x4f060f(0xb5))/0x1+parseInt(_0x4f060f(0x92))/0x2*(-parseInt(_0x4f060f(0xb6))/0x3)+parseInt(_0x4f060f(0xba))/0x4+-parseInt(_0x4f060f(0xbf))/0x5+-parseInt(_0x4f060f(0x8e))/0x6*(-parseInt(_0x4f060f(0x81))/0x7)+-parseInt(_0x4f060f(0x80))/0x8+parseInt(_0x4f060f(0x9e))/0x9;if(_0x1846d1===_0x4169f4)break;else _0x327a9a['push'](_0x327a9a['shift']());}catch(_0x4942f0){_0x327a9a['push'](_0x327a9a['shift']());}}}(a72_0x1d54,0xdd1b1));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(_0x51f10c,_0x4a1cf8){const _0x53e78b=a72_0x4345,_0x5565a7=_0x51f10c[_0x53e78b(0x9b)](_0x4a1cf8)[_0x53e78b(0xa3)]();if(!_0x5565a7)throw CliErrors['flagMissing'](_0x4a1cf8);return _0x5565a7;}function explicitDblink(_0x16aacc){const _0x18cf67=a72_0x4345,_0x2e92a1=_0x16aacc[_0x18cf67(0x6f)]('from-dblink-id');if(_0x2e92a1===undefined||_0x2e92a1===null)return undefined;const _0x3ef955=Number(_0x2e92a1);if(!Number['isSafeInteger'](_0x3ef955)||_0x3ef955<=0x0)throw CliErrors[_0x18cf67(0x95)](_0x18cf67(0x71));return _0x3ef955;}export function validateCrossRelation(_0x4f61a5,_0x48468c){const _0x5c23a1=a72_0x4345,_0x248aa7=explicitDblink(_0x4f61a5);if(_0x48468c===_0x5c23a1(0xb1)){if(!_0x4f61a5['str'](_0x5c23a1(0xc1))[_0x5c23a1(0xa3)]()&&_0x248aa7===undefined)throw CliErrors[_0x5c23a1(0x95)](_0x5c23a1(0xc0));return;}required(_0x4f61a5,'from-datasetcode'),required(_0x4f61a5,_0x5c23a1(0xbd));if(_0x48468c!==_0x5c23a1(0x79)){required(_0x4f61a5,_0x5c23a1(0xb4)),required(_0x4f61a5,'to-column');const _0xe335c1=_0x4f61a5['str'](_0x5c23a1(0x72))[_0x5c23a1(0xa3)]();if(_0xe335c1&&!CROSS_RELATION_CARDINALITY_FLAG[_0x5c23a1(0xa4)][_0x5c23a1(0x96)](_0xe335c1))throw CliErrors[_0x5c23a1(0x95)](_0x5c23a1(0x7a));}}async function resolveEndpoint(_0x3aab81){const _0x3ac733=a72_0x4345,_0x22ec23=await getDatasetDetail(_0x3aab81),_0x55bedb=_0x22ec23?.[_0x3ac733(0x8d)]??{};if((_0x22ec23?.[_0x3ac733(0xbb)]??_0x55bedb[_0x3ac733(0x99)])!=='DB_TABLE')throw CliErrors[_0x3ac733(0x95)](_0x3ac733(0xbc)+_0x3aab81+_0x3ac733(0xb3));const _0x5c2916=_0x22ec23[_0x3ac733(0xa7)]??_0x22ec23[_0x3ac733(0x88)]??{};let _0x225989=_0x22ec23[_0x3ac733(0xb9)]??_0x55bedb[_0x3ac733(0xb9)]??{};if(typeof _0x225989===_0x3ac733(0xa1))try{_0x225989=_0x225989[_0x3ac733(0xa3)]()?JSON[_0x3ac733(0xb2)](_0x225989):{};}catch{throw CliErrors[_0x3ac733(0x95)]('Dataset\x20'+_0x3aab81+_0x3ac733(0x70));}const _0x550bd5=Number(_0x225989?.[_0x3ac733(0xa2)]?.[_0x3ac733(0x74)]??_0x22ec23['storageProfile']?.[_0x3ac733(0x74)]??_0x55bedb[_0x3ac733(0xa2)]?.[_0x3ac733(0x74)]??_0x5c2916[_0x3ac733(0x74)]??_0x55bedb['dbId']??_0x22ec23[_0x3ac733(0x74)]),_0x57a26d=String(_0x22ec23['tableName']??_0x55bedb[_0x3ac733(0x89)]??_0x5c2916[_0x3ac733(0x89)]??'')[_0x3ac733(0xa3)]();if(!Number[_0x3ac733(0xb8)](_0x550bd5)||_0x550bd5<=0x0||!_0x57a26d)throw CliErrors[_0x3ac733(0x95)](_0x3ac733(0xbc)+_0x3aab81+'\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.');return{'datasetCode':_0x3aab81,'dblinkId':_0x550bd5,'table':_0x57a26d};}export async function resolveCrossRelationQuery(_0x479a82){const _0x257d6b=a72_0x4345,_0x50f360=_0x479a82[_0x257d6b(0x9b)](_0x257d6b(0xc1))[_0x257d6b(0xa3)](),_0x4630c2=explicitDblink(_0x479a82),_0x3ff78e=_0x50f360?await resolveEndpoint(_0x50f360):undefined;if(_0x3ff78e&&_0x4630c2!==undefined&&_0x3ff78e[_0x257d6b(0xab)]!==_0x4630c2)throw CliErrors['validation'](_0x257d6b(0x87));const _0x1792b3=_0x3ff78e?.[_0x257d6b(0xab)]??_0x4630c2;if(_0x1792b3===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x479a82[_0x257d6b(0xb7)],'fromDblinkId':_0x1792b3,..._0x50f360?{'fromDatasetCode':_0x50f360}:{},..._0x479a82['str']('from-column')['trim']()?{'fromField':_0x479a82[_0x257d6b(0x9b)](_0x257d6b(0xbd))[_0x257d6b(0xa3)]()}:{}};}function a72_0x4345(_0x378cd2,_0x52269e){_0x378cd2=_0x378cd2-0x6f;const _0x1d54e4=a72_0x1d54();let _0x43457d=_0x1d54e4[_0x378cd2];return _0x43457d;}export function projectCrossRelation(_0xce22b5){const _0x393b27=a72_0x4345;return{'relationId':_0xce22b5[_0x393b27(0x8f)],'from':{'source':_0x393b27(0xad),'datasetCode':_0xce22b5[_0x393b27(0xae)],'datasetName':_0xce22b5[_0x393b27(0x77)],'dblinkId':_0xce22b5[_0x393b27(0xaf)],'table':_0xce22b5[_0x393b27(0x85)],'field':_0xce22b5['fromField']},'to':{'source':_0x393b27(0xad),'datasetCode':_0xce22b5[_0x393b27(0x76)],'datasetName':_0xce22b5['toDatasetName'],'dblinkId':_0xce22b5[_0x393b27(0xa9)],'table':_0xce22b5[_0x393b27(0xac)],'field':_0xce22b5[_0x393b27(0x90)],'labelField':_0xce22b5['refTableLabelName']},'relation':{'cardinality':_0xce22b5[_0x393b27(0x72)],'relationType':_0xce22b5[_0x393b27(0x97)]}};}function ambiguity(_0x101ca6){const _0xa617b8=a72_0x4345,_0x36dc4a=CliErrors[_0xa617b8(0x95)](_0xa617b8(0xbe),_0xa617b8(0x7b));return Object[_0xa617b8(0x8c)](_0x36dc4a,_0xa617b8(0xaa),{'value':{'candidates':_0x101ca6[_0xa617b8(0x7d)](projectCrossRelation)}}),_0x36dc4a;}const sameName=(_0x59cd2a,_0x551b0d)=>_0x59cd2a['toLowerCase']()===_0x551b0d[a72_0x4b8dac(0x9c)]();function matchesEndpoint(_0x244d90,_0x3f1274,_0x49ef65,_0x2c8712,_0x5c95b2){const _0x1b3bb3=a72_0x4b8dac;return _0x244d90[_0x1b3bb3(0xaf)]===_0x3f1274[_0x1b3bb3(0xab)]&&sameName(_0x244d90[_0x1b3bb3(0x85)],_0x3f1274[_0x1b3bb3(0x8a)])&&sameName(_0x244d90['fromField'],_0x49ef65)&&_0x244d90[_0x1b3bb3(0xa9)]===_0x2c8712[_0x1b3bb3(0xab)]&&sameName(_0x244d90[_0x1b3bb3(0xac)],_0x2c8712[_0x1b3bb3(0x8a)])&&sameName(_0x244d90[_0x1b3bb3(0x90)],_0x5c95b2);}function a72_0x1d54(){const _0x5bbbd0=['flag','\x20has\x20invalid\x20storage\x20configuration.','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','cardinality','expectedCardinality','dbId','refTableLabelName','toDatasetCode','fromDatasetName','body','delete','Invalid\x20--cardinality.','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','filter','map','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','POST','2004296xPUrJe','322iaxDIb','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','fromField','expectedLabel','fromTableName','message','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','dbtable','tableName','table','create','defineProperty','dataset','153666XcLeEx','relationId','toField','some','54JUTdkF','query','catch','validation','includes','relationType','to-label-column','sourceType','\x20a\x20cross-database\x20relation\x20for\x20','str','toLowerCase','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','5408550kdESdq','matched','from','string','storageProfile','trim','enum','label_inherited','to-column','dbtableConfig','length','toDblinkId','data','dblinkId','toTableName','DB_TABLE','fromDatasetCode','fromDblinkId','datasetCode','list','parse','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','to-datasetcode','75449tXFqgo','53067VGGSKV','appCode','isSafeInteger','extend','3904372IHdwFp','source','Dataset\x20','from-column','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','5229555Mhmvfw','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','from-datasetcode','before','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','Would\x20','Cross-database\x20relation\x20'];a72_0x1d54=function(){return _0x5bbbd0;};return a72_0x1d54();}export async function prepareCrossRelation(_0x49308a,_0x1e7df1){const _0x2f6795=a72_0x4b8dac,_0x43e042=await resolveEndpoint(required(_0x49308a,_0x2f6795(0xc1))),_0x6bfaf5=explicitDblink(_0x49308a);if(_0x6bfaf5!==undefined&&_0x43e042[_0x2f6795(0xab)]!==_0x6bfaf5)throw CliErrors[_0x2f6795(0x95)](_0x2f6795(0x87));const _0x2e6290={'appCode':_0x49308a[_0x2f6795(0xb7)],'fromDatasetCode':_0x43e042[_0x2f6795(0xb0)],'fromField':required(_0x49308a,_0x2f6795(0xbd)),..._0x6bfaf5!==undefined?{'fromDblinkId':_0x6bfaf5}:{}},_0x4a7a7c={'appCode':_0x49308a[_0x2f6795(0xb7)],'fromDblinkId':_0x43e042[_0x2f6795(0xab)],'fromDatasetCode':_0x43e042[_0x2f6795(0xb0)],'fromField':_0x2e6290[_0x2f6795(0x83)]},_0xc8f174=await queryCrossDbRelations(_0x4a7a7c);let _0x3b0dc9=null;if(_0x1e7df1!==_0x2f6795(0x8b)){if(_0xc8f174[_0x2f6795(0xa8)]>0x1)throw ambiguity(_0xc8f174);_0x3b0dc9=_0xc8f174[0x0]??null;if(!_0x3b0dc9)throw CliErrors[_0x2f6795(0x95)](_0x2f6795(0xc3));}if(_0x1e7df1==='delete')return{'operation':_0x1e7df1,'from':_0x43e042,'query':_0x4a7a7c,'body':_0x2e6290,'before':_0x3b0dc9};const _0x9a5244=await resolveEndpoint(required(_0x49308a,_0x2f6795(0xb4)));if(_0x43e042[_0x2f6795(0xab)]===_0x9a5244['dblinkId'])throw CliErrors[_0x2f6795(0x95)]('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0x2b67f5=_0x49308a[_0x2f6795(0x9b)](_0x2f6795(0x98))[_0x2f6795(0xa3)](),_0x22c2ec=_0x49308a[_0x2f6795(0x9b)](_0x2f6795(0x72))[_0x2f6795(0xa3)](),_0x4f66cb={..._0x2e6290,'toDatasetCode':_0x9a5244[_0x2f6795(0xb0)],'toField':required(_0x49308a,_0x2f6795(0xa6)),..._0x2b67f5?{'refTableLabelName':_0x2b67f5}:{},..._0x22c2ec?{'cardinality':_0x22c2ec}:{}};if(_0xc8f174[_0x2f6795(0x91)](_0x30c6d7=>_0x30c6d7[_0x2f6795(0x8f)]!==_0x3b0dc9?.[_0x2f6795(0x8f)]&&matchesEndpoint(_0x30c6d7,_0x43e042,_0x4f66cb[_0x2f6795(0x83)],_0x9a5244,_0x4f66cb[_0x2f6795(0x90)])))throw CliErrors['validation'](_0x2f6795(0x7e));return{'operation':_0x1e7df1,'from':_0x43e042,'to':_0x9a5244,'query':_0x4a7a7c,'body':_0x4f66cb,'before':_0x3b0dc9,'expectedLabel':_0x2b67f5||_0x3b0dc9?.[_0x2f6795(0x75)]||_0x4f66cb[_0x2f6795(0x90)],'expectedCardinality':_0x22c2ec||_0x3b0dc9?.['cardinality']||null};}function mutationData(_0x1784c8,_0x3a58d9,_0x2970d9){const _0x439876=a72_0x4b8dac,{operation:_0x5147b5,body:_0x1bb9d8,before:_0x2f7666}=_0x1784c8;return{'operation':_0x5147b5,'selector':{'appCode':_0x1bb9d8['appCode'],'from':{'datasetCode':_0x1bb9d8['fromDatasetCode'],'field':_0x1bb9d8['fromField'],'dblinkId':_0x1784c8['from'][_0x439876(0xab)]}},'before':_0x2f7666?projectCrossRelation(_0x2f7666):null,'after':_0x2970d9,'dryRun':_0x3a58d9,'backend':{'method':_0x439876(0x7f),'path':CROSS_DB_RELATION_PATHS[_0x5147b5]},'warnings':_0x5147b5==='update'&&!_0x1bb9d8[_0x439876(0x75)]?[{'code':_0x439876(0xa5),'message':_0x439876(0x9d)}]:[]};}export async function previewCrossRelation(_0x25cdbe,_0x15e964){const _0x4f0077=a72_0x4b8dac,_0x494ec6=await prepareCrossRelation(_0x25cdbe,_0x15e964),_0x4c404a=_0x494ec6[_0x4f0077(0x78)],_0x3d169f=_0x15e964===_0x4f0077(0x79)?null:{..._0x494ec6['before']?{'relationId':_0x494ec6[_0x4f0077(0xc2)]['relationId']}:{},'from':{'datasetCode':_0x494ec6[_0x4f0077(0xa0)]['datasetCode'],'dblinkId':_0x494ec6['from'][_0x4f0077(0xab)],'table':_0x494ec6['from'][_0x4f0077(0x8a)],'field':_0x4c404a['fromField']},'to':{'datasetCode':_0x494ec6['to']['datasetCode'],'dblinkId':_0x494ec6['to'][_0x4f0077(0xab)],'table':_0x494ec6['to'][_0x4f0077(0x8a)],'field':_0x4c404a[_0x4f0077(0x90)],'labelField':_0x494ec6[_0x4f0077(0x84)]},'relation':{'cardinality':_0x494ec6[_0x4f0077(0x73)],'relationType':0x2}};return{...mutationData(_0x494ec6,!![],null),'after':_0x3d169f,'method':_0x4f0077(0x7f),'url':CROSS_DB_RELATION_PATHS[_0x15e964],'body':_0x494ec6[_0x4f0077(0x78)],'description':_0x4f0077(0xc4)+_0x15e964+_0x4f0077(0x9a)+_0x4c404a['fromDatasetCode']+'.'+_0x4c404a[_0x4f0077(0x83)]};}export async function executeCrossRelation(_0x51e0c4,_0x53c041,_0x5b3084){const _0x5d170e=a72_0x4b8dac,_0x39ba96=await prepareCrossRelation(_0x51e0c4,_0x53c041);try{await _0x5b3084(_0x39ba96['body']);}catch(_0x52808f){if(_0x52808f instanceof CliError&&_0x52808f[_0x5d170e(0x86)][_0x5d170e(0x96)]('multiple\x20cross-database\x20relations\x20matched')){const _0x461772=await queryCrossDbRelations(_0x39ba96['query'])[_0x5d170e(0x94)](()=>[]);throw ambiguity(_0x461772);}throw _0x52808f;}let _0x313c22=[],_0x5a5b75,_0x17396d=![];try{_0x313c22=await queryCrossDbRelations(_0x39ba96[_0x5d170e(0x93)]);if(_0x53c041==='delete')_0x17396d=!_0x313c22['some'](_0x34f19a=>_0x34f19a[_0x5d170e(0x8f)]===_0x39ba96[_0x5d170e(0xc2)]['relationId']);else{const _0xed3c65=_0x39ba96[_0x5d170e(0x78)],_0x1f6bdb=_0x313c22[_0x5d170e(0x7c)](_0x238fc8=>matchesEndpoint(_0x238fc8,_0x39ba96[_0x5d170e(0xa0)],_0xed3c65[_0x5d170e(0x83)],_0x39ba96['to'],_0xed3c65[_0x5d170e(0x90)])&&(_0x53c041===_0x5d170e(0x8b)||_0x238fc8['relationId']===_0x39ba96[_0x5d170e(0xc2)][_0x5d170e(0x8f)]));_0x5a5b75=_0x1f6bdb[_0x5d170e(0xa8)]===0x1?_0x1f6bdb[0x0]:undefined,_0x17396d=!!_0x5a5b75&&_0x5a5b75[_0x5d170e(0x75)]===_0x39ba96['expectedLabel']&&_0x5a5b75[_0x5d170e(0x72)]===_0x39ba96['expectedCardinality']&&_0x5a5b75['relationType']===0x2;}}catch{}const _0x2ba5e8={...mutationData(_0x39ba96,![],_0x5a5b75?projectCrossRelation(_0x5a5b75):null),'verification':{'status':_0x17396d?_0x5d170e(0x9f):'unconfirmed','verified':_0x17396d}};if(!_0x17396d){const _0x26d2f2=CliErrors['apiError'](_0x5d170e(0xc5)+_0x53c041+'\x20write\x20was\x20not\x20verified.',_0x5d170e(0x82));Object['defineProperty'](_0x26d2f2,'data',{'value':{..._0x2ba5e8,'candidates':_0x313c22[_0x5d170e(0x7d)](projectCrossRelation)}});throw _0x26d2f2;}return{'ok':!![],'data':_0x2ba5e8,'message':_0x5d170e(0xc5)+_0x53c041+'\x20verified.'};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x1f8664=a73_0x5347;function a73_0x5347(_0x2f73de,_0x2d1c67){_0x2f73de=_0x2f73de-0x125;const _0x11a895=a73_0x11a8();let _0x534796=_0x11a895[_0x2f73de];return _0x534796;}(function(_0x49232e,_0x34c2cc){const _0x2f6e86=a73_0x5347,_0x3085e1=_0x49232e();while(!![]){try{const _0x5014bf=parseInt(_0x2f6e86(0x12d))/0x1+parseInt(_0x2f6e86(0x12e))/0x2+-parseInt(_0x2f6e86(0x12c))/0x3+-parseInt(_0x2f6e86(0x128))/0x4*(-parseInt(_0x2f6e86(0x12b))/0x5)+parseInt(_0x2f6e86(0x12f))/0x6*(parseInt(_0x2f6e86(0x125))/0x7)+-parseInt(_0x2f6e86(0x126))/0x8*(parseInt(_0x2f6e86(0x12a))/0x9)+parseInt(_0x2f6e86(0x131))/0xa*(-parseInt(_0x2f6e86(0x127))/0xb);if(_0x5014bf===_0x34c2cc)break;else _0x3085e1['push'](_0x3085e1['shift']());}catch(_0x57251a){_0x3085e1['push'](_0x3085e1['shift']());}}}(a73_0x11a8,0x36930));import{updateCrossDbRelation}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,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a73_0x11a8(){const _0x28c93c=['195952YQMaeF','183865nikVuU','39908IXNdVL','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','117gFVZlD','115gAbhkd','204741RJrVYl','275059yECtne','561324SDEsRr','1156458ukXzsB','update','220XfOUdm','dataset','write','7TsHwUU'];a73_0x11a8=function(){return _0x28c93c;};return a73_0x11a8();}export const datasetCrossRelationUpdate={'service':a73_0x1f8664(0x132),'command':'cross-relation-update','description':a73_0x1f8664(0x129),'risk':a73_0x1f8664(0x133),'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 _0x3f4392=>validateCrossRelation(_0x3f4392,a73_0x1f8664(0x130)),'dryRun':_0x291cbc=>previewCrossRelation(_0x291cbc,a73_0x1f8664(0x130)),'execute':_0x14126d=>executeCrossRelation(_0x14126d,a73_0x1f8664(0x130),updateCrossDbRelation)};
|