@lovrabet/rabetbase-cli 2.5.5-beta.3 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/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/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/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x43186f=a59_0x3963;(function(_0x53b457,_0x59d885){const _0x2b65ac=a59_0x3963,_0x39a3c5=_0x53b457();while(!![]){try{const _0x152f66=-parseInt(_0x2b65ac(0x13c))/0x1*(parseInt(_0x2b65ac(0x135))/0x2)+parseInt(_0x2b65ac(0x139))/0x3*(-parseInt(_0x2b65ac(0x13b))/0x4)+parseInt(_0x2b65ac(0x13d))/0x5+-parseInt(_0x2b65ac(0x13a))/0x6*(-parseInt(_0x2b65ac(0x141))/0x7)+parseInt(_0x2b65ac(0x146))/0x8+-parseInt(_0x2b65ac(0x137))/0x9+parseInt(_0x2b65ac(0x140))/0xa*(parseInt(_0x2b65ac(0x134))/0xb);if(_0x152f66===_0x59d885)break;else _0x39a3c5['push'](_0x39a3c5['shift']());}catch(_0x124319){_0x39a3c5['push'](_0x39a3c5['shift']());}}}(a59_0x4049,0xe1c40));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';function a59_0x4049(){const _0x34d971=['app','read','string','Usage:\x20','\x20config\x20get\x20--key\x20<key>','525525snYbvv','29674oNDCZJ','object','16212744pXggRt','Missing\x20key.','2112840SOWpjF','6TyBblH','8YrycNK','122UOtiEf','3792605qwGSKi','Key\x20not\x20found:\x20','str','530tzNRoI','10227091GwLAzq','Get\x20a\x20config\x20value\x20by\x20key','validation','config','get','9545736ImyIYR','appcode'];a59_0x4049=function(){return _0x34d971;};return a59_0x4049();}function a59_0x3963(_0x378d51,_0x18c691){_0x378d51=_0x378d51-0x12f;const _0x4049f8=a59_0x4049();let _0x39630b=_0x4049f8[_0x378d51];return _0x39630b;}async function execute(_0x571a1e){const _0x45583a=a59_0x3963,_0x49301e=_0x571a1e[_0x45583a(0x13f)]('key');if(!_0x49301e)throw CliErrors['validation'](_0x45583a(0x138),_0x45583a(0x132)+CLI_BIN_NAME+_0x45583a(0x133));const _0x157675=readConfig(),_0xdaff07=_0x49301e===_0x45583a(0x12f)?_0x45583a(0x147):_0x49301e,_0x159733=_0x157675[_0xdaff07];if(_0x159733===undefined)throw CliErrors[_0x45583a(0x143)](_0x45583a(0x13e)+_0x49301e);return{'ok':!![],'data':typeof _0x159733==='object'?_0x159733:{[_0xdaff07]:_0x159733},'message':typeof _0x159733===_0x45583a(0x136)?undefined:String(_0x159733)};}export const configGetDefinition={'service':a59_0x43186f(0x144),'command':a59_0x43186f(0x145),'description':a59_0x43186f(0x142),'risk':a59_0x43186f(0x130),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a59_0x43186f(0x131),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d5cfa,_0x54cdad){const _0x399567=a60_0x1090,_0x34b396=_0x3d5cfa();while(!![]){try{const _0xafc6d8=parseInt(_0x399567(0x7b))/0x1+-parseInt(_0x399567(0x78))/0x2+-parseInt(_0x399567(0x77))/0x3*(-parseInt(_0x399567(0x7f))/0x4)+-parseInt(_0x399567(0x79))/0x5*(parseInt(_0x399567(0x7c))/0x6)+-parseInt(_0x399567(0x80))/0x7+parseInt(_0x399567(0x7e))/0x8+-parseInt(_0x399567(0x7d))/0x9*(-parseInt(_0x399567(0x7a))/0xa);if(_0xafc6d8===_0x54cdad)break;else _0x34b396['push'](_0x34b396['shift']());}catch(_0x23780c){_0x34b396['push'](_0x34b396['shift']());}}}(a60_0x4390,0x333b2));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a60_0x1090(_0x470ff5,_0x593d39){_0x470ff5=_0x470ff5-0x77;const _0x439076=a60_0x4390();let _0x10903c=_0x439076[_0x470ff5];return _0x10903c;}import{configSetDefinition}from'../../commands/config/set.js';function a60_0x4390(){const _0x37b6c0=['817660kQrZLP','315vpWqzI','10pDHXCZ','204556RNyoVx','36492GIbEPS','4730877KZarPk','2765928wWoNUN','1864MacIIQ','2107378ftrntN','1461qmGQJY'];a60_0x4390=function(){return _0x37b6c0;};return a60_0x4390();}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_0x3cd0c6=a61_0x577d;(function(_0x439362,_0x45195a){const _0x98e761=a61_0x577d,_0xda15fb=_0x439362();while(!![]){try{const _0x100c95=-parseInt(_0x98e761(0x147))/0x1*(parseInt(_0x98e761(0x123))/0x2)+-parseInt(_0x98e761(0x136))/0x3*(parseInt(_0x98e761(0x126))/0x4)+parseInt(_0x98e761(0x11c))/0x5+parseInt(_0x98e761(0x12e))/0x6*(-parseInt(_0x98e761(0x143))/0x7)+parseInt(_0x98e761(0x152))/0x8*(-parseInt(_0x98e761(0x145))/0x9)+-parseInt(_0x98e761(0x155))/0xa+parseInt(_0x98e761(0x138))/0xb;if(_0x100c95===_0x45195a)break;else _0xda15fb['push'](_0xda15fb['shift']());}catch(_0x5f4922){_0xda15fb['push'](_0xda15fb['shift']());}}}(a61_0x3804,0xf2037));function a61_0x577d(_0xbdd9c9,_0x8c3028){_0xbdd9c9=_0xbdd9c9-0x11c;const _0x380401=a61_0x3804();let _0x577d62=_0x380401[_0xbdd9c9];return _0x577d62;}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';function a61_0x3804(){const _0x4b272d=['12259590dxqfAL','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','certificateDomain','global','767825XXczQY','local-domain','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Official\x20Lovrabet\x20region:\x20','join','\x22\x20is\x20not\x20currently\x20available.','str','2AiuKsj','validation','certificate-domain','2839348QNJSlZ','Region\x20\x22','kb-service-domain','bool','manifestDomains','Custom\x20knowledge-base\x20HTTPS\x20origin','mode','kb-domain','486450YpZiku','ExitPromptError','Select\x20Lovrabet\x20region','keys','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','localDomain','enterprise-v1','official','3YiTFab','project','52943088wZiUOJ','Available\x20regions:\x20','write','name','string','Custom\x20SkillHub\x20HTTPS\x20origin','region','skill-domain','config','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20platform\x20API\x20HTTPS\x20origin','21cLeQFF','Custom\x20Runtime\x20HTTPS\x20origin','468iqGgxk','map','168977vgNmfe','domain-config','user-domain','length','init','Independent-deployment\x20Domain\x20JSON\x20file','api-domain','domains','app-domain','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','cdn','250352YdGASr','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','routing'];a61_0x3804=function(){return _0x4b272d;};return a61_0x3804();}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':'region','type':'string','description':a61_0x3cd0c6(0x11f)+ENABLED_LOVRABET_REGION_VALUES[a61_0x3cd0c6(0x120)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x3cd0c6(0x148),'type':a61_0x3cd0c6(0x13c),'description':a61_0x3cd0c6(0x14c)},{'name':a61_0x3cd0c6(0x149),'type':a61_0x3cd0c6(0x13c),'description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a61_0x3cd0c6(0x14d),'type':a61_0x3cd0c6(0x13c),'description':a61_0x3cd0c6(0x142)},{'name':'runtime-domain','type':'string','description':a61_0x3cd0c6(0x144)},{'name':a61_0x3cd0c6(0x13f),'type':a61_0x3cd0c6(0x13c),'description':a61_0x3cd0c6(0x13d)},{'name':a61_0x3cd0c6(0x12d),'type':a61_0x3cd0c6(0x13c),'description':a61_0x3cd0c6(0x12b)},{'name':a61_0x3cd0c6(0x128),'type':a61_0x3cd0c6(0x13c),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'},{'name':a61_0x3cd0c6(0x14f),'type':a61_0x3cd0c6(0x13c),'description':'Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin'},{'name':a61_0x3cd0c6(0x11d),'type':a61_0x3cd0c6(0x13c),'description':a61_0x3cd0c6(0x141)},{'name':a61_0x3cd0c6(0x125),'type':a61_0x3cd0c6(0x13c),'description':'Custom\x20certificate\x20service\x20HTTPS\x20origin'}];async function resolveRegion(_0x1b5b4b){const _0x128f9e=a61_0x3cd0c6,_0x580d9c=_0x1b5b4b['str'](_0x128f9e(0x13e));if(_0x580d9c){if(!isEnabledLovrabetRegion(_0x580d9c))throw CliErrors[_0x128f9e(0x124)](_0x128f9e(0x127)+_0x580d9c+_0x128f9e(0x121),_0x128f9e(0x139)+ENABLED_LOVRABET_REGION_VALUES[_0x128f9e(0x120)](',\x20'));return _0x580d9c;}if(_0x1b5b4b['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x128f9e(0x130),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x128f9e(0x146)](_0x47ae33=>({'name':getOfficialRoutingProfile(_0x47ae33)['label']+'\x20('+_0x47ae33+')','value':_0x47ae33}))});}catch(_0x327588){if(_0x327588?.[_0x128f9e(0x13b)]===_0x128f9e(0x12f))throw CliErrors['cancelled']();throw _0x327588;}}export async function executeConfigInit(_0x413032){const _0x4934d7=a61_0x3cd0c6,_0x10322e=resolveDomainConfigInput(_0x413032),_0x278730=_0x10322e[_0x4934d7(0x14e)],_0x10c5e7=Object[_0x4934d7(0x131)](_0x278730)[_0x4934d7(0x14a)]>0x0;if(_0x10c5e7&&_0x413032[_0x4934d7(0x122)](_0x4934d7(0x13e)))throw CliErrors[_0x4934d7(0x124)](_0x4934d7(0x150));if(!!_0x278730[_0x4934d7(0x133)]!==!!_0x278730[_0x4934d7(0x157)])throw CliErrors['validation'](_0x4934d7(0x132));const _0x3ebefd=_0x413032[_0x4934d7(0x129)]('global')?_0x4934d7(0x158):_0x4934d7(0x137),_0x8abbf4=readScopedConfig(_0x3ebefd);for(const _0x403f5b of DOMAIN_CONFIG_FIELDS)delete _0x8abbf4[_0x403f5b];for(const _0x1d9f7a of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x8abbf4[_0x1d9f7a];delete _0x8abbf4[_0x4934d7(0x154)];let _0x29d307=null;if(_0x10c5e7)delete _0x8abbf4[_0x4934d7(0x13e)],_0x10322e[_0x4934d7(0x12c)]==='enterprise-v1'?_0x8abbf4['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x10322e[_0x4934d7(0x12a)],'cdn':_0x10322e[_0x4934d7(0x151)]}:Object['assign'](_0x8abbf4,_0x278730);else{_0x29d307=await resolveRegion(_0x413032);if(_0x29d307===DEFAULT_LOVRABET_REGION)delete _0x8abbf4[_0x4934d7(0x13e)];else _0x8abbf4[_0x4934d7(0x13e)]=_0x29d307;}return writeScopedConfig(_0x8abbf4,_0x3ebefd),{'ok':!![],'message':_0x10c5e7?_0x4934d7(0x11e)+Object[_0x4934d7(0x131)](_0x10322e[_0x4934d7(0x12c)]===_0x4934d7(0x134)?_0x10322e[_0x4934d7(0x12a)]:_0x278730)[_0x4934d7(0x120)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x29d307+'.','data':{'mode':_0x10c5e7?'independent':_0x4934d7(0x135),'protocol':_0x10322e[_0x4934d7(0x12c)]==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x29d307,'domains':_0x278730,'cdn':_0x10322e[_0x4934d7(0x12c)]==='enterprise-v1'?_0x10322e['cdn']:undefined}};}export const configInitDefinition={'service':a61_0x3cd0c6(0x140),'command':a61_0x3cd0c6(0x14b),'description':a61_0x3cd0c6(0x153),'risk':a61_0x3cd0c6(0x13a),'confirmationDescription':a61_0x3cd0c6(0x156),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a62_0x53f707=a62_0x4b70;(function(_0x192254,_0x52a605){const _0x37c5c5=a62_0x4b70,_0x56ee39=_0x192254();while(!![]){try{const _0x93794f=parseInt(_0x37c5c5(0xf8))/0x1*(-parseInt(_0x37c5c5(0xf9))/0x2)+-parseInt(_0x37c5c5(0x100))/0x3+parseInt(_0x37c5c5(0xfb))/0x4*(parseInt(_0x37c5c5(0x103))/0x5)+-parseInt(_0x37c5c5(0x104))/0x6*(parseInt(_0x37c5c5(0x102))/0x7)+parseInt(_0x37c5c5(0xfa))/0x8+parseInt(_0x37c5c5(0xf4))/0x9*(-parseInt(_0x37c5c5(0xfc))/0xa)+-parseInt(_0x37c5c5(0xf3))/0xb*(-parseInt(_0x37c5c5(0xf7))/0xc);if(_0x93794f===_0x52a605)break;else _0x56ee39['push'](_0x56ee39['shift']());}catch(_0x44e17d){_0x56ee39['push'](_0x56ee39['shift']());}}}(a62_0x5344,0x2b130));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a62_0x4b70(_0x25e4c1,_0x2b1c4a){_0x25e4c1=_0x25e4c1-0xf3;const _0x534434=a62_0x5344();let _0x4b7060=_0x534434[_0x25e4c1];return _0x4b7060;}async function execute(_0xbf01e5){const _0x55a2c0=a62_0x4b70,_0x4c0c88=_0xbf01e5[_0x55a2c0(0x105)](_0x55a2c0(0xfd))?readScopedConfig(_0x55a2c0(0xfd)):readConfig();return{'ok':!![],'data':_0x4c0c88};}function a62_0x5344(){const _0x332fe7=['1007805lCiepN','List\x20all\x20config\x20values','1239cusFtz','8115uhaQgt','9486kgGpCu','bool','11ottPwB','926676NIzdTk','config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','7055856DgdEEf','14LtafoR','14030PJVyhn','2111968fsRzIf','856insQuh','30yOazZg','global','read','boolean'];a62_0x5344=function(){return _0x332fe7;};return a62_0x5344();}export const configListDefinition={'service':a62_0x53f707(0xf5),'command':'list','description':a62_0x53f707(0x101),'risk':a62_0x53f707(0xfe),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x53f707(0xfd),'type':a62_0x53f707(0xff),'description':a62_0x53f707(0xf6),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a63_0x2ce39a=a63_0x58f9;(function(_0x2c40d5,_0x25c2f0){const _0x3a1e6a=a63_0x58f9,_0x16373a=_0x2c40d5();while(!![]){try{const _0x45f33f=-parseInt(_0x3a1e6a(0x187))/0x1*(parseInt(_0x3a1e6a(0x177))/0x2)+-parseInt(_0x3a1e6a(0x1a1))/0x3+-parseInt(_0x3a1e6a(0x173))/0x4+parseInt(_0x3a1e6a(0x172))/0x5+parseInt(_0x3a1e6a(0x180))/0x6*(parseInt(_0x3a1e6a(0x19c))/0x7)+-parseInt(_0x3a1e6a(0x17d))/0x8*(parseInt(_0x3a1e6a(0x18c))/0x9)+-parseInt(_0x3a1e6a(0x18d))/0xa*(-parseInt(_0x3a1e6a(0x183))/0xb);if(_0x45f33f===_0x25c2f0)break;else _0x16373a['push'](_0x16373a['shift']());}catch(_0x32f6cf){_0x16373a['push'](_0x16373a['shift']());}}}(a63_0x3c7a,0x7e7a6));import{CliErrors}from'../../errors.js';function a63_0x58f9(_0x5f442b,_0x153431){_0x5f442b=_0x5f442b-0x172;const _0x3c7ab5=a63_0x3c7a();let _0x58f9f8=_0x3c7ab5[_0x5f442b];return _0x58f9f8;}import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a63_0x3c7a(){const _0x5424=['riskLevel','str','2917455LWvfjh','Missing\x20value.','3591815pEohXv','795904ABfQvN','Invalid\x20value\x20for\x20\x22','string','bool','2xxPBCR','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x20workspace\x20add\x20<name>\x20--appcode\x20','\x22\x20is\x20not\x20settable.','appcode','Set\x20a\x20config\x20value','8yeSiff','Usage:\x20','write','5571282fZWaEP','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','11JTDcKv','Config\x20value','value','config','493305xbnKeP','app','join','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','object','4482045pfTurE','10339150WCLdrf','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','global','Settable\x20top-level\x20keys:\x20','env','set','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','apps','length','includes','key','Global','Top-level\x20key\x20\x22','\x20set\x20to:\x20','7ePwqLI','validation','Project'];a63_0x3c7a=function(){return _0x5424;};return a63_0x3c7a();}import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x27ea80){const _0x437a6a=a63_0x58f9,_0x204eb6=_0x27ea80['str'](_0x437a6a(0x198)),_0x10193c=_0x27ea80[_0x437a6a(0x1a0)](_0x437a6a(0x185));if(!_0x204eb6)throw CliErrors[_0x437a6a(0x19d)]('Missing\x20key.',_0x437a6a(0x17e)+CLI_BIN_NAME+_0x437a6a(0x18a));if(_0x10193c===undefined||_0x10193c==='')throw CliErrors['validation'](_0x437a6a(0x1a2),_0x437a6a(0x17e)+CLI_BIN_NAME+_0x437a6a(0x18a));let _0xbd9ebe=_0x204eb6,_0x4309e6=_0x10193c;if(_0x10193c['length']>0x1f4)throw CliErrors[_0x437a6a(0x19d)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x204eb6===_0x437a6a(0x19f))throw CliErrors[_0x437a6a(0x19d)](_0x437a6a(0x194));if(!isTopLevelConfigKey(_0x204eb6))throw CliErrors[_0x437a6a(0x19d)](_0x437a6a(0x19a)+_0x204eb6+_0x437a6a(0x17a),_0x437a6a(0x191)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x204eb6]&&!CONFIG_ENUM_VALUES[_0x204eb6][_0x437a6a(0x197)](_0x10193c))throw CliErrors[_0x437a6a(0x19d)](_0x437a6a(0x174)+_0x204eb6+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x204eb6][_0x437a6a(0x189)](',\x20'));if(_0x204eb6==='locale'&&!normalizeLocale(_0x10193c))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x437a6a(0x178));DOMAIN_CONFIG_FIELDS[_0x437a6a(0x197)](_0x204eb6)&&(_0x4309e6=normalizeDomainOrigin(_0x204eb6,_0x10193c));const _0x4109fb={'global':_0x27ea80[_0x437a6a(0x176)](_0x437a6a(0x190))},_0x2a6c73=resolveWriteScope(_0x4109fb),_0x50ea73=readScopedConfig(_0x2a6c73);_0x204eb6===_0x437a6a(0x188)&&(_0xbd9ebe='appcode',delete _0x50ea73['app']);_0x204eb6==='locale'&&(_0x4309e6=normalizeLocale(_0x10193c));if(_0x204eb6==='env'){_0x4309e6=normalizeEnv(_0x10193c);if(!isProduction(_0x4309e6)&&!isDaily(_0x4309e6))throw CliErrors[_0x437a6a(0x19d)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x204eb6===_0x437a6a(0x17b)){const _0x42482f=_0x50ea73[_0x437a6a(0x195)]&&typeof _0x50ea73[_0x437a6a(0x195)]===_0x437a6a(0x18b)?Object['keys'](_0x50ea73[_0x437a6a(0x195)]):[];if(_0x42482f[_0x437a6a(0x196)]>0x0)throw CliErrors[_0x437a6a(0x19d)](_0x437a6a(0x181),'Use\x20`'+CLI_BIN_NAME+_0x437a6a(0x179)+_0x4309e6+'`,\x20`'+CLI_BIN_NAME+_0x437a6a(0x18e));const _0x1e7cf0=buildCanonicalProjectConfig({..._0x50ea73},{'appCodes':[_0x4309e6],'env':typeof _0x50ea73[_0x437a6a(0x192)]==='string'?_0x50ea73['env']:undefined});writeScopedConfig(_0x1e7cf0,_0x2a6c73);const _0x43e0f7=_0x2a6c73===_0x437a6a(0x190)?'Global':_0x437a6a(0x19e);return{'ok':!![],'message':'✓\x20'+_0x43e0f7+'\x20appcode\x20set\x20to:\x20'+_0x4309e6+_0x437a6a(0x18f)};}_0x50ea73[_0xbd9ebe]=_0x4309e6,writeScopedConfig(_0x50ea73,_0x2a6c73);const _0xce651a=_0x2a6c73===_0x437a6a(0x190)?_0x437a6a(0x199):_0x437a6a(0x19e);return{'ok':!![],'message':'✓\x20'+_0xce651a+'\x20'+_0xbd9ebe+_0x437a6a(0x19b)+_0x4309e6};}export const configSetDefinition={'service':a63_0x2ce39a(0x186),'command':a63_0x2ce39a(0x193),'description':a63_0x2ce39a(0x17c),'risk':a63_0x2ce39a(0x17f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x2ce39a(0x198),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x2ce39a(0x185),'type':a63_0x2ce39a(0x175),'description':a63_0x2ce39a(0x184),'required':!![]},{'name':a63_0x2ce39a(0x190),'type':'boolean','description':a63_0x2ce39a(0x182),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x557d81,_0x85f3be){var _0xf184fd=a64_0x4d2d,_0x298800=_0x557d81();while(!![]){try{var _0x5b6374=-parseInt(_0xf184fd(0xdb))/0x1*(-parseInt(_0xf184fd(0xe9))/0x2)+-parseInt(_0xf184fd(0xe0))/0x3*(parseInt(_0xf184fd(0xe1))/0x4)+parseInt(_0xf184fd(0xe3))/0x5+-parseInt(_0xf184fd(0xe8))/0x6+-parseInt(_0xf184fd(0xdf))/0x7*(-parseInt(_0xf184fd(0xe7))/0x8)+parseInt(_0xf184fd(0xe5))/0x9*(parseInt(_0xf184fd(0xdd))/0xa)+-parseInt(_0xf184fd(0xdc))/0xb*(parseInt(_0xf184fd(0xe4))/0xc);if(_0x5b6374===_0x85f3be)break;else _0x298800['push'](_0x298800['shift']());}catch(_0x2aab6f){_0x298800['push'](_0x298800['shift']());}}}(a64_0xc506,0xdf1ef));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';function a64_0x4d2d(_0x5d225e,_0x6c942a){_0x5d225e=_0x5d225e-0xdb;var _0xc506e=a64_0xc506();var _0x4d2dc2=_0xc506e[_0x5d225e];return _0x4d2dc2;}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x20149a){var _0x41cd35=a64_0x4d2d;if(_0x20149a[_0x41cd35(0xde)])return'global';if(!isInProject())throw CliErrors['validation'](_0x41cd35(0xe6),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x41cd35(0xe2);}export function readScopedConfig(_0x3c33a9){return readConfigFile(resolveWriteConfigPath(_0x3c33a9));}function a64_0xc506(){var _0x21adb3=['369kbxuvv','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2778952fvenBn','3257004HAVNkQ','10skqTlT','313451fnzppg','1903oJtkvf','263850GBLUJS','global','7ybQuyb','80151vkPRcL','12gOUbSr','project','8831185hhEuEy','223752dkauoT'];a64_0xc506=function(){return _0x21adb3;};return a64_0xc506();}export function writeScopedConfig(_0x1c8ba7,_0xf89219){writeConfigFile(resolveWriteConfigPath(_0xf89219),_0x1c8ba7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x3af336=a65_0x1855;(function(_0x1bb6db,_0x3f69d5){const _0x31f3ad=a65_0x1855,_0x2ac384=_0x1bb6db();while(!![]){try{const _0x5a211a=parseInt(_0x31f3ad(0x21f))/0x1+-parseInt(_0x31f3ad(0x1f4))/0x2+parseInt(_0x31f3ad(0x20f))/0x3+-parseInt(_0x31f3ad(0x21a))/0x4*(-parseInt(_0x31f3ad(0x1c7))/0x5)+parseInt(_0x31f3ad(0x217))/0x6+-parseInt(_0x31f3ad(0x1da))/0x7*(-parseInt(_0x31f3ad(0x1f8))/0x8)+-parseInt(_0x31f3ad(0x1fe))/0x9;if(_0x5a211a===_0x3f69d5)break;else _0x2ac384['push'](_0x2ac384['shift']());}catch(_0x4a51fe){_0x2ac384['push'](_0x2ac384['shift']());}}}(a65_0x39f8,0x65294));function a65_0x1855(_0x14190d,_0x272bb1){_0x14190d=_0x14190d-0x1b0;const _0x39f8da=a65_0x39f8();let _0x1855c4=_0x39f8da[_0x14190d];return _0x1855c4;}import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x3af336(0x1d8),a65_0x3af336(0x20e)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x3af336(0x1f7),a65_0x3af336(0x1e0),'DATETIME',a65_0x3af336(0x21d),'SELECT',a65_0x3af336(0x208),a65_0x3af336(0x20b),a65_0x3af336(0x20d),a65_0x3af336(0x1df),a65_0x3af336(0x205)]);export function isDatasetBatchDesign(_0x29f2ab){const _0x2d710f=a65_0x3af336;return isObject(_0x29f2ab)&&_0x29f2ab[_0x2d710f(0x1db)]===_0x2d710f(0x202);}export function validateDatasetBatchDesign(_0x3cef50){const _0x5e943f=a65_0x3af336;(!isObject(_0x3cef50)||_0x3cef50[_0x5e943f(0x1db)]!=='dataset-batch')&&fail(_0x5e943f(0x1ea));_0x3cef50[_0x5e943f(0x1fa)]!==0x1&&fail(_0x5e943f(0x206));const _0x2cc4e1=objectArray(_0x3cef50[_0x5e943f(0x1d1)],_0x5e943f(0x1d1),0x1,0x14),_0x20841b=objectArray(_0x3cef50[_0x5e943f(0x209)],'relations',0x0,0xc8),_0x5e6a80=objectArray(_0x3cef50['unresolvedRelations'],'unresolvedRelations',0x0,0xc8),_0xe8c661=new Set(),_0x2f32d1=new Map();for(const [_0xb43019,_0x518dec]of _0x2cc4e1[_0x5e943f(0x1e8)]()){const _0x1a7fa5=requiredString(_0x518dec[_0x5e943f(0x216)],_0x5e943f(0x1b3)+_0xb43019+'].localKey');!LOCAL_KEY['test'](_0x1a7fa5)&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1e5)+LOCAL_KEY['source']+'.');_0xe8c661['has'](_0x1a7fa5)&&fail(_0x5e943f(0x1d6));_0xe8c661[_0x5e943f(0x1fd)](_0x1a7fa5);!isObject(_0x518dec[_0x5e943f(0x1bc)])&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x207));rejectServerDatasetIdentity(_0x518dec[_0x5e943f(0x1bc)],'datasets['+_0xb43019+_0x5e943f(0x21b));if(!isObject(_0x518dec['design'][_0x5e943f(0x1d2)]))fail('datasets['+_0xb43019+_0x5e943f(0x1d5));rejectServerDatasetIdentity(_0x518dec[_0x5e943f(0x1bc)]['dataset'],_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1c2)),requiredString(_0x518dec[_0x5e943f(0x1bc)][_0x5e943f(0x1d2)][_0x5e943f(0x219)],_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1b7));'relations'in _0x518dec[_0x5e943f(0x1bc)]&&(!Array[_0x5e943f(0x1c0)](_0x518dec[_0x5e943f(0x1bc)]['relations'])||_0x518dec['design'][_0x5e943f(0x209)][_0x5e943f(0x1c4)]!==0x0)&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1f6));const _0x309fa1=objectArray(_0x518dec[_0x5e943f(0x1bc)][_0x5e943f(0x1ec)],'datasets['+_0xb43019+_0x5e943f(0x1c1),0x1,0xc8),_0x3a06ed=new Map();for(const [_0x1c36d9,_0x36b153]of _0x309fa1[_0x5e943f(0x1e8)]()){const _0x543e34=fieldName(_0x36b153);if(!_0x543e34)fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x21c)+_0x1c36d9+_0x5e943f(0x1ce));const _0x53a3d2=_0x543e34['toLowerCase']();if(_0x3a06ed[_0x5e943f(0x1dc)](_0x53a3d2))fail(_0x5e943f(0x1bd)+_0x1a7fa5+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0x3e49c2=stringValue(_0x36b153[_0x5e943f(0x1dd)]??_0x36b153['fieldType'])[_0x5e943f(0x1f9)]();if(!SUPPORTED_FIELD_TYPES[_0x5e943f(0x1dc)](_0x3e49c2))fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x21c)+_0x1c36d9+'].type\x20is\x20not\x20supported.');_0x3a06ed[_0x5e943f(0x1ca)](_0x53a3d2,_0x3e49c2),[_0x36b153[_0x5e943f(0x213)],_0x36b153[_0x5e943f(0x1ff)],_0x36b153['refTableLabelField']]['some'](_0xd4e6f=>stringValue(_0xd4e6f))&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x21c)+_0x1c36d9+_0x5e943f(0x203));}_0x2f32d1['set'](_0x1a7fa5,_0x3a06ed);}const _0x55331e=new Set(),_0x172fd6=new Set();for(const [_0x2d41db,_0x1056aa]of _0x20841b['entries']()){const _0x337623=validateRelation(_0x1056aa,_0x2d41db,_0xe8c661,_0x2f32d1);if(_0x55331e[_0x5e943f(0x1dc)](_0x337623))fail(_0x5e943f(0x1e4));_0x55331e[_0x5e943f(0x1fd)](_0x337623);const _0x3d601a=_0x337623[_0x5e943f(0x1e3)]('\x00',0x2)['join']('\x00');if(_0x172fd6['has'](_0x3d601a))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x172fd6[_0x5e943f(0x1fd)](_0x3d601a);}for(const [_0x33b4a7,_0x22822]of _0x5e6a80[_0x5e943f(0x1e8)]()){requiredString(_0x22822[_0x5e943f(0x1f2)],_0x5e943f(0x1b6)+_0x33b4a7+_0x5e943f(0x20c)),validateConfidence(_0x22822[_0x5e943f(0x200)],_0x5e943f(0x1b6)+_0x33b4a7+'].confidence');}return _0x3cef50;}export function reconcileBatchResult(_0x2bff52){const _0x177c93=a65_0x3af336;if(!isObject(_0x2bff52))return null;try{const _0x546bc6=stringArray(_0x2bff52[_0x177c93(0x1c9)],'expectedLocalKeys',0x1,0x14),_0x497e1e=new Set(_0x546bc6);if(_0x497e1e[_0x177c93(0x1cc)]!==_0x546bc6[_0x177c93(0x1c4)]||_0x546bc6[_0x177c93(0x1f1)](_0x139381=>!LOCAL_KEY[_0x177c93(0x211)](_0x139381)))return null;const _0x555b17=objectArray(_0x2bff52[_0x177c93(0x201)],_0x177c93(0x201),0x1,0x14),_0x354677=new Map(),_0xe79d6a=new Set();for(const _0x366d94 of _0x555b17){const _0x44e34e=requiredString(_0x366d94['localKey'],'createdDatasets[].localKey'),_0x279694=requiredString(_0x366d94[_0x177c93(0x1c3)]??_0x366d94['datasetCode'],_0x177c93(0x1cf));if(_0x354677[_0x177c93(0x1dc)](_0x44e34e)||_0xe79d6a['has'](_0x279694))return null;_0x354677[_0x177c93(0x1ca)](_0x44e34e,_0x279694),_0xe79d6a[_0x177c93(0x1fd)](_0x279694);}if(!sameSet(_0x497e1e,new Set(_0x354677[_0x177c93(0x1ee)]())))return null;const _0x1a928f=objectArray(_0x2bff52[_0x177c93(0x1ed)],_0x177c93(0x1ed),0x0,0xc8),_0x21307d=objectArray(_0x2bff52[_0x177c93(0x1b4)],_0x177c93(0x1b4),0x0,0xc8),_0x2e2458=relationTupleSet(_0x1a928f,![],_0x354677),_0x4a795b=relationTupleSet(_0x21307d,!![],_0x354677);if(!_0x2e2458||!_0x4a795b||!sameSet(_0x2e2458,_0x4a795b))return null;const _0x4dfa79=objectArray(_0x2bff52[_0x177c93(0x1c8)],_0x177c93(0x1c8),0x0,0xc8);return{'expectedLocalKeys':_0x546bc6,'expectedRelations':_0x1a928f,'createdDatasets':_0x555b17,'createdRelations':_0x21307d,'unresolvedRelations':_0x4dfa79,...isObject(_0x2bff52[_0x177c93(0x1e1)])?{'metrics':_0x2bff52[_0x177c93(0x1e1)]}:{}};}catch{return null;}}function validateRelation(_0x3dcf97,_0x86e1df,_0x1bb01b,_0x3f9465){const _0x26f089=a65_0x3af336,_0x44c3e4=_0x26f089(0x1ef)+_0x86e1df+']',_0xb7476f=requiredString(_0x3dcf97[_0x26f089(0x1e7)],_0x44c3e4+_0x26f089(0x215)),_0x354a23=requiredString(_0x3dcf97[_0x26f089(0x204)],_0x44c3e4+_0x26f089(0x1c5)),_0x39e4fe=requiredString(_0x3dcf97[_0x26f089(0x1b5)],_0x44c3e4+_0x26f089(0x1ba))[_0x26f089(0x1fc)](),_0x25dd89=requiredString(_0x3dcf97[_0x26f089(0x214)],_0x44c3e4+_0x26f089(0x1f0))[_0x26f089(0x1fc)]();if(!_0x1bb01b[_0x26f089(0x1dc)](_0xb7476f)||!_0x1bb01b['has'](_0x354a23))fail(_0x44c3e4+'\x20references\x20an\x20unknown\x20dataset\x20localKey.');const _0x11670d=_0x3f9465[_0x26f089(0x21e)](_0xb7476f)?.[_0x26f089(0x21e)](_0x39e4fe),_0x3d263b=_0x3f9465['get'](_0x354a23)?.[_0x26f089(0x21e)](_0x25dd89);if(_0x11670d===undefined||_0x3d263b===undefined)fail(_0x44c3e4+'\x20references\x20an\x20unknown\x20field.');if(_0x11670d&&_0x3d263b&&_0x11670d!==_0x3d263b)fail(_0x44c3e4+_0x26f089(0x1be));const _0x41a690=stringValue(_0x3dcf97[_0x26f089(0x1bb)])||_0x26f089(0x210);if(_0x41a690!==_0x26f089(0x210))fail(_0x44c3e4+_0x26f089(0x1b8));const _0x186c88=stringValue(_0x3dcf97[_0x26f089(0x1b9)])||_0x26f089(0x1d8);if(!SUPPORTED_CARDINALITIES['has'](_0x186c88))fail(_0x44c3e4+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x3dcf97[_0x26f089(0x1f2)],_0x44c3e4+_0x26f089(0x1d9)),validateConfidence(_0x3dcf97[_0x26f089(0x200)],_0x44c3e4+_0x26f089(0x1d0)),tuple(_0xb7476f,_0x39e4fe,_0x354a23,_0x25dd89,_0x26f089(0x210),_0x186c88);}function relationTupleSet(_0x4467cc,_0x1ae259,_0xcbbde1){const _0x1d95b2=a65_0x3af336,_0x82d8bb=new Set();for(const _0x42d97c of _0x4467cc){const _0x51bb63=stringValue(_0x42d97c[_0x1d95b2(0x1e7)]),_0x5976e9=stringValue(_0x42d97c['toDatasetKey']),_0x2a626f=stringValue(_0x42d97c[_0x1d95b2(0x1b5)])[_0x1d95b2(0x1fc)](),_0x5b1a86=stringValue(_0x42d97c['toField'])[_0x1d95b2(0x1fc)](),_0x3ba800=stringValue(_0x42d97c['relationType']),_0x154ace=stringValue(_0x42d97c['cardinality']);if(!_0x51bb63||!_0x5976e9||!_0x2a626f||!_0x5b1a86||_0x3ba800!==_0x1d95b2(0x210)||!SUPPORTED_CARDINALITIES[_0x1d95b2(0x1dc)](_0x154ace))return null;if(!_0xcbbde1['has'](_0x51bb63)||!_0xcbbde1[_0x1d95b2(0x1dc)](_0x5976e9))return null;if(_0x1ae259&&(stringValue(_0x42d97c['fromDatasetCode'])!==_0xcbbde1[_0x1d95b2(0x21e)](_0x51bb63)||stringValue(_0x42d97c[_0x1d95b2(0x1c6)])!==_0xcbbde1['get'](_0x5976e9)))return null;const _0x4f9867=tuple(_0x51bb63,_0x2a626f,_0x5976e9,_0x5b1a86,_0x3ba800,_0x154ace);if(_0x82d8bb['has'](_0x4f9867))return null;_0x82d8bb[_0x1d95b2(0x1fd)](_0x4f9867);}return _0x82d8bb;}function rejectServerDatasetIdentity(_0x2ebd57,_0x42f37f){const _0x32e340=a65_0x3af336;for(const _0x2d9a7f of['id',_0x32e340(0x1d7),_0x32e340(0x1de),_0x32e340(0x1c3),_0x32e340(0x20a),'modelCode']){if(_0x2ebd57[_0x2d9a7f]!==undefined&&_0x2ebd57[_0x2d9a7f]!==null&&_0x2ebd57[_0x2d9a7f]!=='')fail(_0x42f37f+'.'+_0x2d9a7f+_0x32e340(0x1d4));}}function objectArray(_0x16569e,_0x430cb1,_0x4c393a,_0x577fe3){const _0x35717d=a65_0x3af336;return(!Array[_0x35717d(0x1c0)](_0x16569e)||_0x16569e['length']<_0x4c393a||_0x16569e[_0x35717d(0x1c4)]>_0x577fe3||_0x16569e[_0x35717d(0x1f1)](_0x2b6165=>!isObject(_0x2b6165)))&&fail(_0x430cb1+_0x35717d(0x1e2)+_0x4c393a+'..'+_0x577fe3+_0x35717d(0x1cd)),_0x16569e;}function stringArray(_0x2edf3a,_0x19b385,_0xb42494,_0x37f852){const _0x18fa0e=a65_0x3af336;return(!Array['isArray'](_0x2edf3a)||_0x2edf3a[_0x18fa0e(0x1c4)]<_0xb42494||_0x2edf3a[_0x18fa0e(0x1c4)]>_0x37f852||_0x2edf3a[_0x18fa0e(0x1f1)](_0x1e599d=>typeof _0x1e599d!=='string'||!_0x1e599d['trim']()))&&fail(_0x19b385+'\x20must\x20contain\x20'+_0xb42494+'..'+_0x37f852+_0x18fa0e(0x1eb)),_0x2edf3a;}function requiredString(_0x5b8d66,_0x5cf9c1){const _0x7b0bb0=a65_0x3af336,_0x3e7d76=stringValue(_0x5b8d66);if(!_0x3e7d76)fail(_0x5cf9c1+_0x7b0bb0(0x1e6));return _0x3e7d76;}function stringValue(_0x1d8cd8){const _0x29b305=a65_0x3af336;return typeof _0x1d8cd8===_0x29b305(0x1d3)?_0x1d8cd8[_0x29b305(0x212)]():'';}function fieldName(_0x302e05){const _0x4b3e3b=a65_0x3af336;return stringValue(_0x302e05[_0x4b3e3b(0x1c3)]??_0x302e05[_0x4b3e3b(0x1f5)]??_0x302e05[_0x4b3e3b(0x1b0)]??_0x302e05[_0x4b3e3b(0x1cb)]);}function validateConfidence(_0x406a9c,_0x56e055){const _0x6eaf81=a65_0x3af336;_0x406a9c!==undefined&&_0x406a9c!==null&&(typeof _0x406a9c!==_0x6eaf81(0x218)||!Number[_0x6eaf81(0x1b1)](_0x406a9c)||_0x406a9c<0x0||_0x406a9c>0x1)&&fail(_0x56e055+_0x6eaf81(0x1b2));}function tuple(..._0x5a9d4f){const _0x36e570=a65_0x3af336;return _0x5a9d4f[_0x36e570(0x1f3)]((_0x10a616,_0x2e5369)=>_0x2e5369===0x1||_0x2e5369===0x3?_0x10a616[_0x36e570(0x1fc)]():_0x10a616)[_0x36e570(0x1bf)]('\x00');}function sameSet(_0x5617b6,_0x1aab59){const _0x49a79e=a65_0x3af336;return _0x5617b6[_0x49a79e(0x1cc)]===_0x1aab59[_0x49a79e(0x1cc)]&&[..._0x5617b6][_0x49a79e(0x1e9)](_0x308fab=>_0x1aab59[_0x49a79e(0x1dc)](_0x308fab));}function a65_0x39f8(){const _0x235b78=['BOOLEAN','get','423866iaucmJ','name','isFinite','\x20must\x20be\x20between\x200\x20and\x201.','datasets[','createdRelations','fromField','unresolvedRelations[','].design.dataset.datasetName','.relationType\x20must\x20be\x20\x22lookup\x22.','cardinality','.fromField','relationType','design','Dataset\x20','\x20connects\x20incompatible\x20field\x20types.','join','isArray','].design.fields','].design.dataset','code','length','.toDatasetKey','toDatasetCode','5DdFNRs','unresolvedRelations','expectedLocalKeys','set','fieldName','size','\x20objects.',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','createdDatasets[].code','.confidence','datasets','dataset','string','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','].design.dataset\x20must\x20be\x20an\x20object.','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','datasetId','MANY_TO_ONE','.reason','1412159PcIdwb','kind','has','type','modelId','ADDRESS','NUMBER','metrics','\x20must\x20contain\x20','split','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','].localKey\x20must\x20match\x20','\x20is\x20required.','fromDatasetKey','entries','every','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','\x20non-empty\x20strings.','fields','expectedRelations','keys','relations[','.toField','some','reason','map','520494zOCDna','fieldCode','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','TEXT','8OBTDBM','toUpperCase','schemaVersion','object','toLowerCase','add','11582523MOronP','refTableField','confidence','createdDatasets','dataset-batch',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','toDatasetKey','UPLOAD','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','].design\x20must\x20be\x20an\x20object.','MULTI_SELECT','relations','datasetCode','DATE_RANGE','].reason','USER','ONE_TO_ONE','489843cQcZfc','lookup','test','trim','refTable','toField','.fromDatasetKey','localKey','4409766RoVLYU','number','datasetName','1750820SFxXBH','].design','].design.fields['];a65_0x39f8=function(){return _0x235b78;};return a65_0x39f8();}function isObject(_0x4d57e3){const _0x3f38ad=a65_0x3af336;return typeof _0x4d57e3===_0x3f38ad(0x1fb)&&_0x4d57e3!==null&&!Array['isArray'](_0x4d57e3);}function fail(_0x2b8855){throw CliErrors['validation'](_0x2b8855);}
|
|
1
|
+
const a65_0x36bf80=a65_0x8010;(function(_0xa6836,_0x113aa9){const _0x5856b8=a65_0x8010,_0x2eefdb=_0xa6836();while(!![]){try{const _0xb4ad12=parseInt(_0x5856b8(0x18c))/0x1*(-parseInt(_0x5856b8(0x19b))/0x2)+-parseInt(_0x5856b8(0x1cd))/0x3*(parseInt(_0x5856b8(0x1d2))/0x4)+-parseInt(_0x5856b8(0x186))/0x5*(parseInt(_0x5856b8(0x194))/0x6)+parseInt(_0x5856b8(0x165))/0x7+parseInt(_0x5856b8(0x1d5))/0x8*(-parseInt(_0x5856b8(0x1ab))/0x9)+-parseInt(_0x5856b8(0x191))/0xa+parseInt(_0x5856b8(0x1ce))/0xb*(parseInt(_0x5856b8(0x1c3))/0xc);if(_0xb4ad12===_0x113aa9)break;else _0x2eefdb['push'](_0x2eefdb['shift']());}catch(_0x12a8af){_0x2eefdb['push'](_0x2eefdb['shift']());}}}(a65_0x54a2,0xb2fec));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x36bf80(0x174),a65_0x36bf80(0x16b)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x36bf80(0x1d1),a65_0x36bf80(0x1bd),a65_0x36bf80(0x16d),a65_0x36bf80(0x1d4),a65_0x36bf80(0x196),a65_0x36bf80(0x185),a65_0x36bf80(0x17b),a65_0x36bf80(0x172),a65_0x36bf80(0x18a),a65_0x36bf80(0x197)]);export function isDatasetBatchDesign(_0x1d3c40){const _0x866caf=a65_0x36bf80;return isObject(_0x1d3c40)&&_0x1d3c40[_0x866caf(0x1b0)]===_0x866caf(0x1a7);}export function validateDatasetBatchDesign(_0x3d65cb){const _0x365800=a65_0x36bf80;(!isObject(_0x3d65cb)||_0x3d65cb['kind']!=='dataset-batch')&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x3d65cb['schemaVersion']!==0x1&&fail('Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.');const _0x254b2b=objectArray(_0x3d65cb[_0x365800(0x17e)],_0x365800(0x17e),0x1,0x14),_0xf31f43=objectArray(_0x3d65cb[_0x365800(0x18e)],_0x365800(0x18e),0x0,0xc8),_0x18ab99=objectArray(_0x3d65cb[_0x365800(0x1b9)],_0x365800(0x1b9),0x0,0xc8),_0x3bfc55=new Set(),_0xd3c19d=new Map();for(const [_0x46cef3,_0x64cde3]of _0x254b2b[_0x365800(0x1c4)]()){const _0x4ae704=requiredString(_0x64cde3[_0x365800(0x167)],_0x365800(0x1bf)+_0x46cef3+_0x365800(0x190));!LOCAL_KEY[_0x365800(0x1c0)](_0x4ae704)&&fail(_0x365800(0x1bf)+_0x46cef3+_0x365800(0x18d)+LOCAL_KEY['source']+'.');_0x3bfc55['has'](_0x4ae704)&&fail(_0x365800(0x1ad));_0x3bfc55[_0x365800(0x16f)](_0x4ae704);!isObject(_0x64cde3[_0x365800(0x1a3)])&&fail(_0x365800(0x1bf)+_0x46cef3+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x64cde3[_0x365800(0x1a3)],'datasets['+_0x46cef3+_0x365800(0x1b7));if(!isObject(_0x64cde3[_0x365800(0x1a3)][_0x365800(0x176)]))fail(_0x365800(0x1bf)+_0x46cef3+_0x365800(0x177));rejectServerDatasetIdentity(_0x64cde3[_0x365800(0x1a3)][_0x365800(0x176)],_0x365800(0x1bf)+_0x46cef3+_0x365800(0x195)),requiredString(_0x64cde3[_0x365800(0x1a3)][_0x365800(0x176)][_0x365800(0x179)],'datasets['+_0x46cef3+'].design.dataset.datasetName');_0x365800(0x18e)in _0x64cde3[_0x365800(0x1a3)]&&(!Array[_0x365800(0x1c2)](_0x64cde3[_0x365800(0x1a3)][_0x365800(0x18e)])||_0x64cde3['design'][_0x365800(0x18e)][_0x365800(0x1c8)]!==0x0)&&fail('datasets['+_0x46cef3+'].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.');const _0xe5297a=objectArray(_0x64cde3[_0x365800(0x1a3)][_0x365800(0x19e)],_0x365800(0x1bf)+_0x46cef3+_0x365800(0x1a2),0x1,0xc8),_0xb6c55d=new Map();for(const [_0x5b2311,_0x4d3a92]of _0xe5297a[_0x365800(0x1c4)]()){const _0x32408d=fieldName(_0x4d3a92);if(!_0x32408d)fail(_0x365800(0x1bf)+_0x46cef3+'].design.fields['+_0x5b2311+']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.');const _0x48d701=_0x32408d[_0x365800(0x16a)]();if(_0xb6c55d[_0x365800(0x1d0)](_0x48d701))fail(_0x365800(0x188)+_0x4ae704+_0x365800(0x1c9));const _0x21a252=stringValue(_0x4d3a92[_0x365800(0x170)]??_0x4d3a92[_0x365800(0x1d6)])[_0x365800(0x193)]();if(!SUPPORTED_FIELD_TYPES['has'](_0x21a252))fail(_0x365800(0x1bf)+_0x46cef3+_0x365800(0x1ca)+_0x5b2311+_0x365800(0x1ba));_0xb6c55d[_0x365800(0x198)](_0x48d701,_0x21a252),[_0x4d3a92[_0x365800(0x17a)],_0x4d3a92[_0x365800(0x19c)],_0x4d3a92['refTableLabelField']]['some'](_0x550550=>stringValue(_0x550550))&&fail('datasets['+_0x46cef3+_0x365800(0x1ca)+_0x5b2311+_0x365800(0x1b4));}_0xd3c19d[_0x365800(0x198)](_0x4ae704,_0xb6c55d);}const _0x21f21f=new Set(),_0xe6e523=new Set();for(const [_0x217ad7,_0x5a1d27]of _0xf31f43[_0x365800(0x1c4)]()){const _0x5b1a30=validateRelation(_0x5a1d27,_0x217ad7,_0x3bfc55,_0xd3c19d);if(_0x21f21f[_0x365800(0x1d0)](_0x5b1a30))fail(_0x365800(0x183));_0x21f21f['add'](_0x5b1a30);const _0x311497=_0x5b1a30[_0x365800(0x1b8)]('\x00',0x2)['join']('\x00');if(_0xe6e523[_0x365800(0x1d0)](_0x311497))fail(_0x365800(0x1d3));_0xe6e523['add'](_0x311497);}for(const [_0x27db3f,_0x868221]of _0x18ab99['entries']()){requiredString(_0x868221[_0x365800(0x1aa)],'unresolvedRelations['+_0x27db3f+_0x365800(0x18f)),validateConfidence(_0x868221[_0x365800(0x16e)],_0x365800(0x175)+_0x27db3f+_0x365800(0x1a4));}return _0x3d65cb;}export function reconcileBatchResult(_0x586783){const _0x4b1b54=a65_0x36bf80;if(!isObject(_0x586783))return null;try{const _0x487c29=stringArray(_0x586783['expectedLocalKeys'],_0x4b1b54(0x163),0x1,0x14),_0x1da093=new Set(_0x487c29);if(_0x1da093['size']!==_0x487c29[_0x4b1b54(0x1c8)]||_0x487c29[_0x4b1b54(0x18b)](_0x2298bf=>!LOCAL_KEY[_0x4b1b54(0x1c0)](_0x2298bf)))return null;const _0x1b9304=objectArray(_0x586783[_0x4b1b54(0x1bb)],_0x4b1b54(0x1bb),0x1,0x14),_0x4498f1=new Map(),_0xe5f922=new Set();for(const _0x504ba8 of _0x1b9304){const _0x579aab=requiredString(_0x504ba8[_0x4b1b54(0x167)],'createdDatasets[].localKey'),_0x6c83bb=requiredString(_0x504ba8[_0x4b1b54(0x1b6)]??_0x504ba8[_0x4b1b54(0x161)],_0x4b1b54(0x1c5));if(_0x4498f1[_0x4b1b54(0x1d0)](_0x579aab)||_0xe5f922[_0x4b1b54(0x1d0)](_0x6c83bb))return null;_0x4498f1[_0x4b1b54(0x198)](_0x579aab,_0x6c83bb),_0xe5f922[_0x4b1b54(0x16f)](_0x6c83bb);}if(!sameSet(_0x1da093,new Set(_0x4498f1[_0x4b1b54(0x1a9)]())))return null;const _0x33dccd=objectArray(_0x586783[_0x4b1b54(0x187)],'expectedRelations',0x0,0xc8),_0x561c5e=objectArray(_0x586783[_0x4b1b54(0x178)],_0x4b1b54(0x178),0x0,0xc8),_0x5dec80=relationTupleSet(_0x33dccd,![],_0x4498f1),_0x113f1c=relationTupleSet(_0x561c5e,!![],_0x4498f1);if(!_0x5dec80||!_0x113f1c||!sameSet(_0x5dec80,_0x113f1c))return null;const _0x36c317=objectArray(_0x586783[_0x4b1b54(0x1b9)],'unresolvedRelations',0x0,0xc8);return{'expectedLocalKeys':_0x487c29,'expectedRelations':_0x33dccd,'createdDatasets':_0x1b9304,'createdRelations':_0x561c5e,'unresolvedRelations':_0x36c317,...isObject(_0x586783['metrics'])?{'metrics':_0x586783[_0x4b1b54(0x173)]}:{}};}catch{return null;}}function validateRelation(_0x51c3a4,_0x29e6c0,_0x171ad1,_0x5b9783){const _0x43bd07=a65_0x36bf80,_0x439460=_0x43bd07(0x17c)+_0x29e6c0+']',_0x20d41e=requiredString(_0x51c3a4[_0x43bd07(0x171)],_0x439460+_0x43bd07(0x1cc)),_0x2d5f91=requiredString(_0x51c3a4[_0x43bd07(0x1a6)],_0x439460+_0x43bd07(0x1ae)),_0xb89aa5=requiredString(_0x51c3a4[_0x43bd07(0x169)],_0x439460+_0x43bd07(0x1a1))[_0x43bd07(0x16a)](),_0xd53c77=requiredString(_0x51c3a4[_0x43bd07(0x19a)],_0x439460+_0x43bd07(0x1cb))[_0x43bd07(0x16a)]();if(!_0x171ad1[_0x43bd07(0x1d0)](_0x20d41e)||!_0x171ad1[_0x43bd07(0x1d0)](_0x2d5f91))fail(_0x439460+_0x43bd07(0x182));const _0xa7a157=_0x5b9783[_0x43bd07(0x180)](_0x20d41e)?.[_0x43bd07(0x180)](_0xb89aa5),_0x4bbe42=_0x5b9783['get'](_0x2d5f91)?.[_0x43bd07(0x180)](_0xd53c77);if(_0xa7a157===undefined||_0x4bbe42===undefined)fail(_0x439460+_0x43bd07(0x1af));if(_0xa7a157&&_0x4bbe42&&_0xa7a157!==_0x4bbe42)fail(_0x439460+_0x43bd07(0x192));const _0x290a9e=stringValue(_0x51c3a4[_0x43bd07(0x1a8)])||_0x43bd07(0x19f);if(_0x290a9e!==_0x43bd07(0x19f))fail(_0x439460+'.relationType\x20must\x20be\x20\x22lookup\x22.');const _0x708584=stringValue(_0x51c3a4[_0x43bd07(0x1cf)])||_0x43bd07(0x174);if(!SUPPORTED_CARDINALITIES[_0x43bd07(0x1d0)](_0x708584))fail(_0x439460+_0x43bd07(0x1ac));return requiredString(_0x51c3a4[_0x43bd07(0x1aa)],_0x439460+_0x43bd07(0x184)),validateConfidence(_0x51c3a4[_0x43bd07(0x16e)],_0x439460+_0x43bd07(0x1be)),tuple(_0x20d41e,_0xb89aa5,_0x2d5f91,_0xd53c77,_0x43bd07(0x19f),_0x708584);}function a65_0x54a2(){const _0x32cb04=['.confidence','datasets[','test','fieldName','isArray','384LqiNUv','entries','createdDatasets[].code','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','number','length','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','].design.fields[','.toField','.fromDatasetKey','21jxnkRH','1352153Ruiwvz','cardinality','has','TEXT','622988ffDNcX','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','BOOLEAN','16bFEPBG','fieldType','datasetCode','string','expectedLocalKeys','\x20must\x20be\x20between\x200\x20and\x201.','6107318uCzhQE','name','localKey','every','fromField','toLowerCase','ONE_TO_ONE','modelId','DATETIME','confidence','add','type','fromDatasetKey','USER','metrics','MANY_TO_ONE','unresolvedRelations[','dataset','].design.dataset\x20must\x20be\x20an\x20object.','createdRelations','datasetName','refTable','DATE_RANGE','relations[','toDatasetCode','datasets','trim','get','\x20non-empty\x20strings.','\x20references\x20an\x20unknown\x20dataset\x20localKey.','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','.reason','MULTI_SELECT','145XqLgFd','expectedRelations','Dataset\x20','join','ADDRESS','some','1072712IOtnMR','].localKey\x20must\x20match\x20','relations','].reason','].localKey','6330880CcuScH','\x20connects\x20incompatible\x20field\x20types.','toUpperCase','213474OQQMVN','].design.dataset','SELECT','UPLOAD','set','modelCode','toField','2IAXvTi','refTableField','validation','fields','lookup','\x20is\x20required.','.fromField','].design.fields','design','].confidence','map','toDatasetKey','dataset-batch','relationType','keys','reason','1102617mJtcGi','.cardinality\x20is\x20not\x20supported.','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','.toDatasetKey','\x20references\x20an\x20unknown\x20field.','kind','\x20must\x20contain\x20','size','fromDatasetCode',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','object','code','].design','split','unresolvedRelations','].type\x20is\x20not\x20supported.','createdDatasets','datasetId','NUMBER'];a65_0x54a2=function(){return _0x32cb04;};return a65_0x54a2();}function relationTupleSet(_0x2a133d,_0x2b9774,_0x109561){const _0x18f30d=a65_0x36bf80,_0x42c25f=new Set();for(const _0x54612a of _0x2a133d){const _0x1ce1e6=stringValue(_0x54612a[_0x18f30d(0x171)]),_0x2754ef=stringValue(_0x54612a[_0x18f30d(0x1a6)]),_0x3ec686=stringValue(_0x54612a[_0x18f30d(0x169)])[_0x18f30d(0x16a)](),_0x1f3314=stringValue(_0x54612a[_0x18f30d(0x19a)])['toLowerCase'](),_0x584f93=stringValue(_0x54612a[_0x18f30d(0x1a8)]),_0x122315=stringValue(_0x54612a['cardinality']);if(!_0x1ce1e6||!_0x2754ef||!_0x3ec686||!_0x1f3314||_0x584f93!==_0x18f30d(0x19f)||!SUPPORTED_CARDINALITIES[_0x18f30d(0x1d0)](_0x122315))return null;if(!_0x109561['has'](_0x1ce1e6)||!_0x109561['has'](_0x2754ef))return null;if(_0x2b9774&&(stringValue(_0x54612a[_0x18f30d(0x1b3)])!==_0x109561[_0x18f30d(0x180)](_0x1ce1e6)||stringValue(_0x54612a[_0x18f30d(0x17d)])!==_0x109561[_0x18f30d(0x180)](_0x2754ef)))return null;const _0x1bdeff=tuple(_0x1ce1e6,_0x3ec686,_0x2754ef,_0x1f3314,_0x584f93,_0x122315);if(_0x42c25f[_0x18f30d(0x1d0)](_0x1bdeff))return null;_0x42c25f['add'](_0x1bdeff);}return _0x42c25f;}function rejectServerDatasetIdentity(_0x394c4e,_0x30d5a8){const _0x4b0409=a65_0x36bf80;for(const _0x113f96 of['id',_0x4b0409(0x1bc),_0x4b0409(0x16c),_0x4b0409(0x1b6),'datasetCode',_0x4b0409(0x199)]){if(_0x394c4e[_0x113f96]!==undefined&&_0x394c4e[_0x113f96]!==null&&_0x394c4e[_0x113f96]!=='')fail(_0x30d5a8+'.'+_0x113f96+_0x4b0409(0x1c6));}}function objectArray(_0xacab99,_0x471246,_0x341a11,_0x2ec114){const _0x121f0f=a65_0x36bf80;return(!Array['isArray'](_0xacab99)||_0xacab99[_0x121f0f(0x1c8)]<_0x341a11||_0xacab99[_0x121f0f(0x1c8)]>_0x2ec114||_0xacab99['some'](_0x1ab5f3=>!isObject(_0x1ab5f3)))&&fail(_0x471246+_0x121f0f(0x1b1)+_0x341a11+'..'+_0x2ec114+'\x20objects.'),_0xacab99;}function stringArray(_0x327e61,_0x514cd1,_0x23ea93,_0x5a62a7){const _0x4f913c=a65_0x36bf80;return(!Array[_0x4f913c(0x1c2)](_0x327e61)||_0x327e61['length']<_0x23ea93||_0x327e61[_0x4f913c(0x1c8)]>_0x5a62a7||_0x327e61[_0x4f913c(0x18b)](_0x46eca8=>typeof _0x46eca8!==_0x4f913c(0x162)||!_0x46eca8[_0x4f913c(0x17f)]()))&&fail(_0x514cd1+_0x4f913c(0x1b1)+_0x23ea93+'..'+_0x5a62a7+_0x4f913c(0x181)),_0x327e61;}function requiredString(_0x426bf2,_0x1e8f38){const _0x231081=a65_0x36bf80,_0x318e7e=stringValue(_0x426bf2);if(!_0x318e7e)fail(_0x1e8f38+_0x231081(0x1a0));return _0x318e7e;}function stringValue(_0x3b8ad1){const _0x4e0068=a65_0x36bf80;return typeof _0x3b8ad1===_0x4e0068(0x162)?_0x3b8ad1['trim']():'';}function fieldName(_0x18df92){const _0x1376c1=a65_0x36bf80;return stringValue(_0x18df92['code']??_0x18df92['fieldCode']??_0x18df92[_0x1376c1(0x166)]??_0x18df92[_0x1376c1(0x1c1)]);}function validateConfidence(_0x297226,_0x56d6e7){const _0xd08fe9=a65_0x36bf80;_0x297226!==undefined&&_0x297226!==null&&(typeof _0x297226!==_0xd08fe9(0x1c7)||!Number['isFinite'](_0x297226)||_0x297226<0x0||_0x297226>0x1)&&fail(_0x56d6e7+_0xd08fe9(0x164));}function tuple(..._0x46884f){const _0x4635ef=a65_0x36bf80;return _0x46884f[_0x4635ef(0x1a5)]((_0x2c6053,_0x2328eb)=>_0x2328eb===0x1||_0x2328eb===0x3?_0x2c6053['toLowerCase']():_0x2c6053)[_0x4635ef(0x189)]('\x00');}function a65_0x8010(_0x2fe6c3,_0x2378a4){_0x2fe6c3=_0x2fe6c3-0x161;const _0x54a2e2=a65_0x54a2();let _0x8010a=_0x54a2e2[_0x2fe6c3];return _0x8010a;}function sameSet(_0x864f87,_0x1373ad){const _0x33c6ca=a65_0x36bf80;return _0x864f87['size']===_0x1373ad[_0x33c6ca(0x1b2)]&&[..._0x864f87][_0x33c6ca(0x168)](_0x4b627d=>_0x1373ad[_0x33c6ca(0x1d0)](_0x4b627d));}function isObject(_0x40e223){const _0x41c812=a65_0x36bf80;return typeof _0x40e223===_0x41c812(0x1b5)&&_0x40e223!==null&&!Array[_0x41c812(0x1c2)](_0x40e223);}function fail(_0x1b0cd6){const _0x23392a=a65_0x36bf80;throw CliErrors[_0x23392a(0x19d)](_0x1b0cd6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0x2bfb3f=a66_0x32cf;(function(_0xf3fd3b,_0x4222d1){const _0x770a2c=a66_0x32cf,_0x55dd62=_0xf3fd3b();while(!![]){try{const _0x4efadc=parseInt(_0x770a2c(0x19e))/0x1*(parseInt(_0x770a2c(0x19a))/0x2)+-parseInt(_0x770a2c(0x17e))/0x3*(-parseInt(_0x770a2c(0x18d))/0x4)+-parseInt(_0x770a2c(0x194))/0x5+-parseInt(_0x770a2c(0x1b0))/0x6+parseInt(_0x770a2c(0x17f))/0x7+parseInt(_0x770a2c(0x1c3))/0x8*(-parseInt(_0x770a2c(0x191))/0x9)+-parseInt(_0x770a2c(0x176))/0xa*(parseInt(_0x770a2c(0x1a0))/0xb);if(_0x4efadc===_0x4222d1)break;else _0x55dd62['push'](_0x55dd62['shift']());}catch(_0x2a6cd3){_0x55dd62['push'](_0x55dd62['shift']());}}}(a66_0x1e97,0xde6c3));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_0x2bfb3f(0x1ac),METADATA_BACKEND_PATH=a66_0x2bfb3f(0x1c0),UNGROUPED_BUSINESS_GROUP=a66_0x2bfb3f(0x195);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x47d4bc,input:_0x5120d1,dryRun:_0x5f4dd5}){const _0x3b60a9=a66_0x2bfb3f;validateInput(_0x5120d1);const _0xd230dc=normalizeBusinessGroupArgument(_0x5120d1['businessGroup']),_0x3e3003=await getDatasetDetail(_0x5120d1[_0x3b60a9(0x1a3)]),_0x156a30=resolveBusinessGroupDataset(_0x3e3003,_0x5120d1[_0x3b60a9(0x1a3)]);assertBusinessGroupUpdateSupported(_0x156a30,_0xd230dc);const _0x1ca10c=loadCurrentBusinessGroup(_0x3e3003,_0x156a30);assertExpectedBusinessGroup(_0x1ca10c,_0x5120d1[_0x3b60a9(0x1a4)]);const _0x573a5e=buildBackendPlan(_0x47d4bc,_0x156a30,_0xd230dc),_0x23a273=_0x1ca10c!==_0xd230dc;let _0x40539f;if(_0x23a273&&!_0x5f4dd5){_0x573a5e['kind']===_0x3b60a9(0x1ae)?await updateDbTableBusinessGroup(_0x573a5e[_0x3b60a9(0x178)]):await updateErBusinessGroup(_0x573a5e[_0x3b60a9(0x178)]);const _0x172e33=await getDatasetDetail(_0x156a30['code']),_0x1201fb=resolveBusinessGroupDataset(_0x172e33,_0x156a30[_0x3b60a9(0x1a3)]),_0x5f4b50=loadCurrentBusinessGroup(_0x172e33,_0x1201fb);if(_0x5f4b50!==_0xd230dc)throw CliErrors['apiError'](_0x3b60a9(0x1bf),_0x3b60a9(0x1b1)+JSON[_0x3b60a9(0x1bc)](displayBusinessGroup(_0xd230dc))+_0x3b60a9(0x19d)+JSON[_0x3b60a9(0x1bc)](displayBusinessGroup(_0x5f4b50))+'.');_0x40539f={'verified':!![],'status':_0x3b60a9(0x17c),'afterReadback':{'businessGroup':displayBusinessGroup(_0x5f4b50)}};}else!_0x23a273&&(_0x40539f={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x1ca10c)}});const _0x1dc146={'operation':_0x3b60a9(0x183),'appCode':_0x47d4bc,'selector':{'code':_0x156a30[_0x3b60a9(0x1a3)]},'dataset':{'id':_0x156a30['id'],'code':_0x156a30[_0x3b60a9(0x1a3)],'name':_0x156a30[_0x3b60a9(0x1b3)],'sourceType':_0x156a30[_0x3b60a9(0x198)]},'before':{'businessGroup':displayBusinessGroup(_0x1ca10c)},'after':{'businessGroup':displayBusinessGroup(_0xd230dc)},'changed':_0x23a273,'dryRun':_0x5f4dd5,'submitted':_0x23a273&&!_0x5f4dd5,'backend':{'method':_0x573a5e[_0x3b60a9(0x1b7)],'path':_0x573a5e[_0x3b60a9(0x1b8)],'payload':_0x573a5e[_0x3b60a9(0x178)]},..._0x40539f?{'verification':_0x40539f}:{},'warnings':[]};return{'ok':!![],'data':_0x1dc146,'message':_0x23a273?_0x5f4dd5?_0x3b60a9(0x177)+_0x156a30['code']:_0x3b60a9(0x190)+_0x156a30['code']:_0x3b60a9(0x18a)+_0x156a30[_0x3b60a9(0x1a3)]};}export const datasetBusinessGroupUpdate={'service':a66_0x2bfb3f(0x199),'command':a66_0x2bfb3f(0x18c),'description':a66_0x2bfb3f(0x1ab),'risk':'write','flags':[CODE_FLAG,{'name':a66_0x2bfb3f(0x1a7),'type':a66_0x2bfb3f(0x1b6),'required':!![],'description':a66_0x2bfb3f(0x189)},{'name':a66_0x2bfb3f(0x187),'type':'string','required':![],'description':a66_0x2bfb3f(0x185)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xcf9cd7){validateInput(readBusinessGroupUpdateInput(_0xcf9cd7));},async 'dryRun'(_0x4eb318){const _0x2ad856=a66_0x2bfb3f,_0x43a4f9=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x4eb318[_0x2ad856(0x196)],'input':readBusinessGroupUpdateInput(_0x4eb318),'dryRun':!![]});return{'method':_0x43a4f9[_0x2ad856(0x1ba)][_0x2ad856(0x1c1)][_0x2ad856(0x1b7)],'url':_0x43a4f9[_0x2ad856(0x1ba)][_0x2ad856(0x1c1)][_0x2ad856(0x1b8)],'body':_0x43a4f9[_0x2ad856(0x1ba)][_0x2ad856(0x1c1)][_0x2ad856(0x178)],'description':_0x43a4f9['message'],..._0x43a4f9[_0x2ad856(0x1ba)]};},async 'execute'(_0x1e1336){const _0x3f64ae=a66_0x2bfb3f;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1e1336[_0x3f64ae(0x196)],'input':readBusinessGroupUpdateInput(_0x1e1336),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x499c95){const _0x633a28=a66_0x2bfb3f,_0x5dc5d9=_0x499c95[_0x633a28(0x1a1)](_0x633a28(0x187));return{'code':trim(_0x499c95[_0x633a28(0x1a1)](_0x633a28(0x1a3))),'businessGroup':_0x499c95[_0x633a28(0x1a1)](_0x633a28(0x1a7)),'expectBusinessGroup':_0x5dc5d9===undefined||_0x5dc5d9===''?undefined:_0x5dc5d9};}function validateInput(_0x4f2394){const _0x5d0f5f=a66_0x2bfb3f;if(!trim(_0x4f2394[_0x5d0f5f(0x1a3)]))throw CliErrors[_0x5d0f5f(0x1ad)](_0x5d0f5f(0x186));if(_0x4f2394[_0x5d0f5f(0x179)]===undefined)throw CliErrors[_0x5d0f5f(0x1ad)]('--business-group\x20is\x20required');if(!trim(_0x4f2394['businessGroup']))throw CliErrors[_0x5d0f5f(0x1ad)](_0x5d0f5f(0x1a8));}function assertBusinessGroupUpdateSupported(_0x169f98,_0xd430fe){const _0x51fe95=a66_0x2bfb3f;if(_0x169f98[_0x51fe95(0x198)]===_0x51fe95(0x18b)&&!_0xd430fe)throw CliErrors[_0x51fe95(0x1ad)](_0x51fe95(0x193));}function resolveBusinessGroupDataset(_0x1199ba,_0x454b2b){const _0x34dedf=a66_0x2bfb3f,_0xc4a6eb=asPlainObject(_0x1199ba[_0x34dedf(0x199)]),_0x42e5a0=asPlainObject(_0x1199ba[_0x34dedf(0x1aa)]),_0x102098=resolveSourceType(_0x1199ba,_0xc4a6eb,_0x42e5a0),_0x5bb5bf=firstString(_0x1199ba[_0x34dedf(0x1a2)],_0x1199ba[_0x34dedf(0x1a3)],_0xc4a6eb[_0x34dedf(0x19f)],_0x454b2b)||_0x454b2b;return{'id':firstNumber(_0x1199ba[_0x34dedf(0x1af)],_0x1199ba['id'],_0xc4a6eb[_0x34dedf(0x1b5)])??firstString(_0x1199ba['modelId'],_0x1199ba['id'],_0xc4a6eb['datasetId'])??null,'code':_0x5bb5bf,'name':firstString(_0x1199ba['name'],_0xc4a6eb[_0x34dedf(0x182)],_0xc4a6eb[_0x34dedf(0x1b3)])||null,'sourceType':_0x102098,'dbTableSelector':_0x102098===_0x34dedf(0x18b)?{'dbLinkId':firstNumber(_0x42e5a0[_0x34dedf(0x17d)]),'tableName':firstString(_0x42e5a0[_0x34dedf(0x19c)])||null}:null};}function resolveSourceType(_0xa1b719,_0x44e24b,_0x547338){const _0x54c197=a66_0x2bfb3f,_0x372cae=firstString(_0xa1b719[_0x54c197(0x184)],_0xa1b719['sourceType'],_0x44e24b[_0x54c197(0x184)],_0x44e24b[_0x54c197(0x198)])?.['trim']()[_0x54c197(0x18f)]();if(_0x372cae==='DB_TABLE'||_0x372cae==='METADATA')return _0x372cae;if(Object[_0x54c197(0x1c2)](_0x547338)[_0x54c197(0x1a5)]>0x0)return _0x54c197(0x18b);throw CliErrors['validation'](_0x54c197(0x1b2));}function loadCurrentBusinessGroup(_0x45cca6,_0x1f8894){const _0x15eb27=a66_0x2bfb3f,_0x54576d=readBusinessGroupFromDatasetDetail(_0x45cca6,_0x1f8894['sourceType']);if(_0x54576d['found'])return normalizeBusinessGroup(_0x54576d[_0x15eb27(0x181)]);return'';}function a66_0x32cf(_0x49206d,_0x11b47e){_0x49206d=_0x49206d-0x174;const _0x1e9755=a66_0x1e97();let _0x32cf43=_0x1e9755[_0x49206d];return _0x32cf43;}function a66_0x1e97(){const _0x22ae40=['7237410JKmqVq','ungrouped','appCode','call','sourceType','dataset','2YQhuti','dbLinkId','tableName',',\x20actual\x20','1755024pyiWVI','datasetCode','803bsBvKA','str','modelCode','code','expectBusinessGroup','length','Expectation\x20mismatch\x20at\x20businessGroup','business-group','--business-group\x20must\x20not\x20be\x20blank','metadata','dbtableConfig','Update\x20business\x20scenario\x20group','/smartapi/dblink/updateTableBusinessGroup','validation','db-table','modelId','8792778OXaIdS','Expected\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','name','object','datasetId','string','method','path','trim','data','POST','stringify','hasOwnProperty','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','/smartapi/question/er-config/business-group/edit','backend','keys','248000trmsZM','isArray','extend','61140gBZgoj','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','payload','businessGroup','found','dbTableSelector','matched','dbId','6879rNNFrd','12477535qEHtJD','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','value','datasetName','update','source','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','--code\x20is\x20required','expect-business-group','number','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','DB_TABLE','business-group-update','2468RTnPWG','isFinite','toUpperCase','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','198IYGPAP','prototype','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.'];a66_0x1e97=function(){return _0x22ae40;};return a66_0x1e97();}function readBusinessGroupFromDatasetDetail(_0x4a6d77,_0x4c3db9){const _0x51d476=a66_0x2bfb3f,_0x3f2b25=asPlainObject(_0x4a6d77['dataset']),_0x48d6c2=firstPresent(_0x4a6d77['businessGroup']);if(_0x48d6c2['found'])return _0x48d6c2;const _0x3f6e3a=firstPresent(_0x3f2b25[_0x51d476(0x179)]);if(_0x3f6e3a[_0x51d476(0x17a)])return _0x3f6e3a;if(_0x4c3db9==='DB_TABLE')return{'found':![]};const _0x155f79=readBusinessGroupFromExtend(_0x4a6d77[_0x51d476(0x175)]);if(_0x155f79[_0x51d476(0x17a)])return _0x155f79;return readBusinessGroupFromExtend(_0x3f2b25[_0x51d476(0x175)]);}function readBusinessGroupFromExtend(_0x4a1262){const _0x44700d=a66_0x2bfb3f;if(_0x4a1262===undefined||_0x4a1262===null||_0x4a1262==='')return{'found':![]};if(typeof _0x4a1262===_0x44700d(0x1b6))try{const _0x48ed03=JSON['parse'](_0x4a1262);return readBusinessGroupFromExtend(_0x48ed03);}catch{return{'found':![]};}const _0x21ca06=asPlainObject(_0x4a1262);if(Object[_0x44700d(0x192)][_0x44700d(0x1bd)][_0x44700d(0x197)](_0x21ca06,'businessGroup'))return{'found':!![],'value':_0x21ca06[_0x44700d(0x179)]};return{'found':![]};}function firstPresent(..._0x36c595){for(const _0x4134f0 of _0x36c595){if(_0x4134f0!==undefined&&_0x4134f0!==null)return{'found':!![],'value':_0x4134f0};}return{'found':![]};}function assertExpectedBusinessGroup(_0x3c8d8b,_0x495b61){const _0x5aad6b=a66_0x2bfb3f;if(_0x495b61===undefined)return;const _0x158a85=normalizeBusinessGroupArgument(_0x495b61);if(_0x3c8d8b!==_0x158a85)throw CliErrors[_0x5aad6b(0x1ad)](_0x5aad6b(0x1a6),_0x5aad6b(0x1b1)+JSON[_0x5aad6b(0x1bc)](_0x158a85)+_0x5aad6b(0x19d)+JSON['stringify'](_0x3c8d8b));}function buildBackendPlan(_0x254e8a,_0x2b5772,_0x58226e){const _0x764d0e=a66_0x2bfb3f;if(_0x2b5772[_0x764d0e(0x198)]===_0x764d0e(0x18b)){if(!_0x2b5772[_0x764d0e(0x17b)]||_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19b)]===null||!_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19c)])throw CliErrors[_0x764d0e(0x1ad)](_0x764d0e(0x1be),_0x764d0e(0x180));return{'kind':_0x764d0e(0x1ae),'method':_0x764d0e(0x1bb),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19b)],'tableName':_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19c)],'businessGroup':_0x58226e}};}return{'kind':_0x764d0e(0x1a9),'method':_0x764d0e(0x1bb),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x254e8a,'datasetCode':_0x2b5772[_0x764d0e(0x1a3)],'businessGroup':_0x58226e}};}function normalizeBusinessGroup(_0x345f49){const _0x31473a=a66_0x2bfb3f;if(_0x345f49===undefined||_0x345f49===null)return'';return String(_0x345f49)[_0x31473a(0x1b9)]();}function normalizeBusinessGroupArgument(_0x2ce94a){const _0x291d16=normalizeBusinessGroup(_0x2ce94a);return _0x291d16===UNGROUPED_BUSINESS_GROUP?'':_0x291d16;}function displayBusinessGroup(_0x26c66f){return _0x26c66f||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x3ef069){const _0x5c3369=a66_0x2bfb3f;if(!_0x3ef069||typeof _0x3ef069!==_0x5c3369(0x1b4)||Array[_0x5c3369(0x174)](_0x3ef069))return{};return _0x3ef069;}function firstString(..._0x18f0f8){const _0x5910b0=a66_0x2bfb3f;for(const _0x502139 of _0x18f0f8){if(typeof _0x502139===_0x5910b0(0x1b6)&&_0x502139[_0x5910b0(0x1b9)]())return _0x502139[_0x5910b0(0x1b9)]();if(typeof _0x502139===_0x5910b0(0x188)&&Number[_0x5910b0(0x18e)](_0x502139))return String(_0x502139);}return undefined;}function firstNumber(..._0xe505f5){const _0x4aa61f=a66_0x2bfb3f;for(const _0x53412a of _0xe505f5){if(typeof _0x53412a==='number'&&Number[_0x4aa61f(0x18e)](_0x53412a))return _0x53412a;if(typeof _0x53412a===_0x4aa61f(0x1b6)&&_0x53412a[_0x4aa61f(0x1b9)]()&&Number[_0x4aa61f(0x18e)](Number(_0x53412a)))return Number(_0x53412a);}return null;}function trim(_0x123a38){return String(_0x123a38||'')['trim']();}
|
|
1
|
+
const a66_0x24e1a2=a66_0x20db;(function(_0x3bf16e,_0x2e81f4){const _0x4fbb29=a66_0x20db,_0xe38b1a=_0x3bf16e();while(!![]){try{const _0x2fb2e1=-parseInt(_0x4fbb29(0x137))/0x1+parseInt(_0x4fbb29(0x13d))/0x2*(parseInt(_0x4fbb29(0x108))/0x3)+parseInt(_0x4fbb29(0x106))/0x4+-parseInt(_0x4fbb29(0x126))/0x5*(-parseInt(_0x4fbb29(0x12b))/0x6)+parseInt(_0x4fbb29(0x146))/0x7*(-parseInt(_0x4fbb29(0x125))/0x8)+-parseInt(_0x4fbb29(0x147))/0x9*(-parseInt(_0x4fbb29(0x133))/0xa)+-parseInt(_0x4fbb29(0x12c))/0xb;if(_0x2fb2e1===_0x2e81f4)break;else _0xe38b1a['push'](_0xe38b1a['shift']());}catch(_0x23fc68){_0xe38b1a['push'](_0xe38b1a['shift']());}}}(a66_0x1cc5,0xb11bf));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_0x24e1a2(0x13c),METADATA_BACKEND_PATH=a66_0x24e1a2(0x10f),UNGROUPED_BUSINESS_GROUP=a66_0x24e1a2(0x11c);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x21fe5a,input:_0x5ae442,dryRun:_0x11660a}){const _0x266934=a66_0x24e1a2;validateInput(_0x5ae442);const _0x29ad76=normalizeBusinessGroupArgument(_0x5ae442['businessGroup']),_0x4ad0b5=await getDatasetDetail(_0x5ae442['code']),_0x21390e=resolveBusinessGroupDataset(_0x4ad0b5,_0x5ae442[_0x266934(0x135)]);assertBusinessGroupUpdateSupported(_0x21390e,_0x29ad76);const _0x7527ef=loadCurrentBusinessGroup(_0x4ad0b5,_0x21390e);assertExpectedBusinessGroup(_0x7527ef,_0x5ae442[_0x266934(0x123)]);const _0x197255=buildBackendPlan(_0x21fe5a,_0x21390e,_0x29ad76),_0x9ec31e=_0x7527ef!==_0x29ad76;let _0x5a774b;if(_0x9ec31e&&!_0x11660a){_0x197255['kind']===_0x266934(0x143)?await updateDbTableBusinessGroup(_0x197255[_0x266934(0x10d)]):await updateErBusinessGroup(_0x197255['payload']);const _0x32086d=await getDatasetDetail(_0x21390e[_0x266934(0x135)]),_0x3381c0=resolveBusinessGroupDataset(_0x32086d,_0x21390e[_0x266934(0x135)]),_0xb317cf=loadCurrentBusinessGroup(_0x32086d,_0x3381c0);if(_0xb317cf!==_0x29ad76)throw CliErrors[_0x266934(0x12a)](_0x266934(0x107),_0x266934(0x102)+JSON[_0x266934(0x112)](displayBusinessGroup(_0x29ad76))+',\x20actual\x20'+JSON[_0x266934(0x112)](displayBusinessGroup(_0xb317cf))+'.');_0x5a774b={'verified':!![],'status':_0x266934(0x14a),'afterReadback':{'businessGroup':displayBusinessGroup(_0xb317cf)}};}else!_0x9ec31e&&(_0x5a774b={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x7527ef)}});const _0x2654da={'operation':'update','appCode':_0x21fe5a,'selector':{'code':_0x21390e[_0x266934(0x135)]},'dataset':{'id':_0x21390e['id'],'code':_0x21390e[_0x266934(0x135)],'name':_0x21390e[_0x266934(0x11d)],'sourceType':_0x21390e[_0x266934(0x11e)]},'before':{'businessGroup':displayBusinessGroup(_0x7527ef)},'after':{'businessGroup':displayBusinessGroup(_0x29ad76)},'changed':_0x9ec31e,'dryRun':_0x11660a,'submitted':_0x9ec31e&&!_0x11660a,'backend':{'method':_0x197255['method'],'path':_0x197255[_0x266934(0x117)],'payload':_0x197255[_0x266934(0x10d)]},..._0x5a774b?{'verification':_0x5a774b}:{},'warnings':[]};return{'ok':!![],'data':_0x2654da,'message':_0x9ec31e?_0x11660a?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x21390e['code']:_0x266934(0x113)+_0x21390e[_0x266934(0x135)]:_0x266934(0x11f)+_0x21390e[_0x266934(0x135)]};}export const datasetBusinessGroupUpdate={'service':'dataset','command':a66_0x24e1a2(0x10e),'description':a66_0x24e1a2(0x145),'risk':a66_0x24e1a2(0x104),'flags':[CODE_FLAG,{'name':'business-group','type':a66_0x24e1a2(0x142),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it'},{'name':'expect-business-group','type':a66_0x24e1a2(0x142),'required':![],'description':a66_0x24e1a2(0x10b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54c115){validateInput(readBusinessGroupUpdateInput(_0x54c115));},async 'dryRun'(_0x191f76){const _0x5c0858=a66_0x24e1a2,_0x5dab9f=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x191f76[_0x5c0858(0x10c)],'input':readBusinessGroupUpdateInput(_0x191f76),'dryRun':!![]});return{'method':_0x5dab9f['data']['backend'][_0x5c0858(0x105)],'url':_0x5dab9f[_0x5c0858(0x139)]['backend']['path'],'body':_0x5dab9f[_0x5c0858(0x139)][_0x5c0858(0x10a)]['payload'],'description':_0x5dab9f['message'],..._0x5dab9f[_0x5c0858(0x139)]};},async 'execute'(_0x15c70a){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x15c70a['appCode'],'input':readBusinessGroupUpdateInput(_0x15c70a),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x4a32be){const _0x7d5fa7=a66_0x24e1a2,_0x23ac9d=_0x4a32be['str'](_0x7d5fa7(0x116));return{'code':trim(_0x4a32be[_0x7d5fa7(0x13b)](_0x7d5fa7(0x135))),'businessGroup':_0x4a32be['str'](_0x7d5fa7(0x109)),'expectBusinessGroup':_0x23ac9d===undefined||_0x23ac9d===''?undefined:_0x23ac9d};}function validateInput(_0x2f60d6){const _0x174815=a66_0x24e1a2;if(!trim(_0x2f60d6[_0x174815(0x135)]))throw CliErrors[_0x174815(0x134)]('--code\x20is\x20required');if(_0x2f60d6[_0x174815(0x144)]===undefined)throw CliErrors[_0x174815(0x134)](_0x174815(0x12d));if(!trim(_0x2f60d6[_0x174815(0x144)]))throw CliErrors[_0x174815(0x134)](_0x174815(0x124));}function assertBusinessGroupUpdateSupported(_0x9e3728,_0x54b245){const _0x331514=a66_0x24e1a2;if(_0x9e3728[_0x331514(0x11e)]===_0x331514(0x12f)&&!_0x54b245)throw CliErrors[_0x331514(0x134)](_0x331514(0x140));}function resolveBusinessGroupDataset(_0x2879f6,_0xfbe45){const _0x2ef589=a66_0x24e1a2,_0x42b80f=asPlainObject(_0x2879f6[_0x2ef589(0x127)]),_0x19d310=asPlainObject(_0x2879f6[_0x2ef589(0x103)]),_0x10555f=resolveSourceType(_0x2879f6,_0x42b80f,_0x19d310),_0x4b8f60=firstString(_0x2879f6[_0x2ef589(0x118)],_0x2879f6[_0x2ef589(0x135)],_0x42b80f[_0x2ef589(0x136)],_0xfbe45)||_0xfbe45;return{'id':firstNumber(_0x2879f6['modelId'],_0x2879f6['id'],_0x42b80f[_0x2ef589(0x131)])??firstString(_0x2879f6['modelId'],_0x2879f6['id'],_0x42b80f[_0x2ef589(0x131)])??null,'code':_0x4b8f60,'name':firstString(_0x2879f6[_0x2ef589(0x11d)],_0x42b80f['datasetName'],_0x42b80f[_0x2ef589(0x11d)])||null,'sourceType':_0x10555f,'dbTableSelector':_0x10555f===_0x2ef589(0x12f)?{'dbLinkId':firstNumber(_0x19d310['dbId']),'tableName':firstString(_0x19d310[_0x2ef589(0x13a)])||null}:null};}function resolveSourceType(_0xc8d88a,_0x51faa2,_0x30bca8){const _0x43c9b4=a66_0x24e1a2,_0xfeaafe=firstString(_0xc8d88a[_0x43c9b4(0x12e)],_0xc8d88a['sourceType'],_0x51faa2[_0x43c9b4(0x12e)],_0x51faa2['sourceType'])?.[_0x43c9b4(0x138)]()[_0x43c9b4(0x110)]();if(_0xfeaafe==='DB_TABLE'||_0xfeaafe===_0x43c9b4(0x128))return _0xfeaafe;if(Object['keys'](_0x30bca8)[_0x43c9b4(0x130)]>0x0)return _0x43c9b4(0x12f);throw CliErrors['validation'](_0x43c9b4(0x148));}function loadCurrentBusinessGroup(_0x346e61,_0x5041a5){const _0x2ac126=a66_0x24e1a2,_0x5e6c68=readBusinessGroupFromDatasetDetail(_0x346e61,_0x5041a5[_0x2ac126(0x11e)]);if(_0x5e6c68[_0x2ac126(0x13f)])return normalizeBusinessGroup(_0x5e6c68[_0x2ac126(0x11b)]);return'';}function readBusinessGroupFromDatasetDetail(_0x5d7433,_0x23b1ef){const _0x47cebd=a66_0x24e1a2,_0x411e9d=asPlainObject(_0x5d7433[_0x47cebd(0x127)]),_0x8c488d=firstPresent(_0x5d7433[_0x47cebd(0x144)]);if(_0x8c488d[_0x47cebd(0x13f)])return _0x8c488d;const _0x2d7e20=firstPresent(_0x411e9d['businessGroup']);if(_0x2d7e20[_0x47cebd(0x13f)])return _0x2d7e20;if(_0x23b1ef==='DB_TABLE')return{'found':![]};const _0x4dd3c7=readBusinessGroupFromExtend(_0x5d7433[_0x47cebd(0x132)]);if(_0x4dd3c7['found'])return _0x4dd3c7;return readBusinessGroupFromExtend(_0x411e9d[_0x47cebd(0x132)]);}function readBusinessGroupFromExtend(_0x2e72af){const _0x5c1b1b=a66_0x24e1a2;if(_0x2e72af===undefined||_0x2e72af===null||_0x2e72af==='')return{'found':![]};if(typeof _0x2e72af===_0x5c1b1b(0x142))try{const _0x5bd36b=JSON['parse'](_0x2e72af);return readBusinessGroupFromExtend(_0x5bd36b);}catch{return{'found':![]};}const _0x3a4bea=asPlainObject(_0x2e72af);if(Object['prototype'][_0x5c1b1b(0x149)][_0x5c1b1b(0x114)](_0x3a4bea,_0x5c1b1b(0x144)))return{'found':!![],'value':_0x3a4bea[_0x5c1b1b(0x144)]};return{'found':![]};}function firstPresent(..._0x5c33ea){for(const _0x258866 of _0x5c33ea){if(_0x258866!==undefined&&_0x258866!==null)return{'found':!![],'value':_0x258866};}return{'found':![]};}function assertExpectedBusinessGroup(_0x10c8b1,_0x223006){const _0x12bcc0=a66_0x24e1a2;if(_0x223006===undefined)return;const _0x2411bb=normalizeBusinessGroupArgument(_0x223006);if(_0x10c8b1!==_0x2411bb)throw CliErrors[_0x12bcc0(0x134)](_0x12bcc0(0x13e),_0x12bcc0(0x102)+JSON['stringify'](_0x2411bb)+_0x12bcc0(0x11a)+JSON[_0x12bcc0(0x112)](_0x10c8b1));}function a66_0x1cc5(){const _0x48b1e1=['dbtableConfig','write','method','2436400Jhcstr','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','9Feiuci','business-group','backend','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','appCode','payload','business-group-update','/smartapi/question/er-config/business-group/edit','toUpperCase','metadata','stringify','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','call','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','expect-business-group','path','modelCode','POST',',\x20actual\x20','value','ungrouped','name','sourceType','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','number','object','dbLinkId','expectBusinessGroup','--business-group\x20must\x20not\x20be\x20blank','32BUGXkM','1499185NbCyjt','dataset','METADATA','dbTableSelector','apiError','6oqDqVb','6872976tvFbxx','--business-group\x20is\x20required','source','DB_TABLE','length','datasetId','extend','87220MldPpV','validation','code','datasetCode','1189898qzwFLU','trim','data','tableName','str','/smartapi/dblink/updateTableBusinessGroup','636892AOwOSv','Expectation\x20mismatch\x20at\x20businessGroup','found','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','isFinite','string','db-table','businessGroup','Update\x20business\x20scenario\x20group','1305164yzaMdJ','1467OnQsSb','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','hasOwnProperty','matched','isArray','Expected\x20'];a66_0x1cc5=function(){return _0x48b1e1;};return a66_0x1cc5();}function buildBackendPlan(_0x1ae48b,_0x376b48,_0x3db769){const _0x6000d4=a66_0x24e1a2;if(_0x376b48[_0x6000d4(0x11e)]===_0x6000d4(0x12f)){if(!_0x376b48[_0x6000d4(0x129)]||_0x376b48[_0x6000d4(0x129)][_0x6000d4(0x122)]===null||!_0x376b48[_0x6000d4(0x129)][_0x6000d4(0x13a)])throw CliErrors[_0x6000d4(0x134)]('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x6000d4(0x115));return{'kind':_0x6000d4(0x143),'method':_0x6000d4(0x119),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x376b48[_0x6000d4(0x129)][_0x6000d4(0x122)],'tableName':_0x376b48[_0x6000d4(0x129)]['tableName'],'businessGroup':_0x3db769}};}return{'kind':_0x6000d4(0x111),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x1ae48b,'datasetCode':_0x376b48[_0x6000d4(0x135)],'businessGroup':_0x3db769}};}function normalizeBusinessGroup(_0x5ede07){const _0x5a4c77=a66_0x24e1a2;if(_0x5ede07===undefined||_0x5ede07===null)return'';return String(_0x5ede07)[_0x5a4c77(0x138)]();}function normalizeBusinessGroupArgument(_0x345629){const _0x468731=normalizeBusinessGroup(_0x345629);return _0x468731===UNGROUPED_BUSINESS_GROUP?'':_0x468731;}function displayBusinessGroup(_0x4be715){return _0x4be715||UNGROUPED_BUSINESS_GROUP;}function a66_0x20db(_0x2bb2fd,_0x476bda){_0x2bb2fd=_0x2bb2fd-0x102;const _0x1cc556=a66_0x1cc5();let _0x20dbf2=_0x1cc556[_0x2bb2fd];return _0x20dbf2;}function asPlainObject(_0x2cb67d){const _0x11f373=a66_0x24e1a2;if(!_0x2cb67d||typeof _0x2cb67d!==_0x11f373(0x121)||Array[_0x11f373(0x14b)](_0x2cb67d))return{};return _0x2cb67d;}function firstString(..._0x930255){const _0x2a6b94=a66_0x24e1a2;for(const _0x32fb84 of _0x930255){if(typeof _0x32fb84===_0x2a6b94(0x142)&&_0x32fb84[_0x2a6b94(0x138)]())return _0x32fb84[_0x2a6b94(0x138)]();if(typeof _0x32fb84===_0x2a6b94(0x120)&&Number[_0x2a6b94(0x141)](_0x32fb84))return String(_0x32fb84);}return undefined;}function firstNumber(..._0x4a8d9a){const _0x2adc71=a66_0x24e1a2;for(const _0x51ce68 of _0x4a8d9a){if(typeof _0x51ce68===_0x2adc71(0x120)&&Number['isFinite'](_0x51ce68))return _0x51ce68;if(typeof _0x51ce68===_0x2adc71(0x142)&&_0x51ce68[_0x2adc71(0x138)]()&&Number[_0x2adc71(0x141)](Number(_0x51ce68)))return Number(_0x51ce68);}return null;}function trim(_0x3080b9){const _0x32175b=a66_0x24e1a2;return String(_0x3080b9||'')[_0x32175b(0x138)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x59f7(_0x5369f7,_0x3ba4d4){_0x5369f7=_0x5369f7-0xd1;const _0x452106=a67_0x4521();let _0x59f7ba=_0x452106[_0x5369f7];return _0x59f7ba;}const a67_0x301b16=a67_0x59f7;function a67_0x4521(){const _0x427e08=['\x20business\x20group(s)\x20for\x20database\x20connection\x20','6889356GaALhb','dbid','read','25eAMECD','businessGroup','990536fbVxgv','Found\x20','751931vRcBGJ','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','242elpQlb','10318374DadDxm','map','ungrouped','number','length','5926hthZLq','570DVarAR','trim','994IUdfWs','DB_TABLE','num','999Zisotx','dataset','8pvDxTk','471290CJHLIv'];a67_0x4521=function(){return _0x427e08;};return a67_0x4521();}(function(_0x90a91c,_0x4a2efa){const _0xbeb2de=a67_0x59f7,_0x2af194=_0x90a91c();while(!![]){try{const _0x54518f=-parseInt(_0xbeb2de(0xe9))/0x1+-parseInt(_0xbeb2de(0xd7))/0x2*(-parseInt(_0xbeb2de(0xdd))/0x3)+-parseInt(_0xbeb2de(0xe7))/0x4*(parseInt(_0xbeb2de(0xe5))/0x5)+-parseInt(_0xbeb2de(0xd8))/0x6*(-parseInt(_0xbeb2de(0xda))/0x7)+-parseInt(_0xbeb2de(0xdf))/0x8*(-parseInt(_0xbeb2de(0xd2))/0x9)+parseInt(_0xbeb2de(0xe0))/0xa*(parseInt(_0xbeb2de(0xd1))/0xb)+-parseInt(_0xbeb2de(0xe2))/0xc;if(_0x54518f===_0x4a2efa)break;else _0x2af194['push'](_0x2af194['shift']());}catch(_0x3f2fcb){_0x2af194['push'](_0x2af194['shift']());}}}(a67_0x4521,0x9730f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x301b16(0xde),'command':'business-groups','description':a67_0x301b16(0xea),'risk':a67_0x301b16(0xe4),'flags':[{'name':'dbid','type':a67_0x301b16(0xd5),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x17ae61){const _0x163a70=a67_0x301b16,_0x329373=_0x17ae61[_0x163a70(0xdc)](_0x163a70(0xe3)),_0x584162=await getErBusinessGroupSummary(_0x17ae61['appCode'],_0x329373),_0x3152de=_0x584162['groups'][_0x163a70(0xd3)](_0x157f80=>({..._0x157f80,'businessGroup':_0x157f80[_0x163a70(0xe6)][_0x163a70(0xd9)]()||_0x163a70(0xd4)}));return{'ok':!![],'data':{..._0x584162,'groups':_0x3152de,'scope':_0x163a70(0xdb)},'message':_0x163a70(0xe8)+_0x3152de[_0x163a70(0xd6)]+_0x163a70(0xe1)+_0x329373};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x1c5841=a68_0x5d83;(function(_0x2ed47d,_0x276728){const _0xbcec66=a68_0x5d83,_0x5eb512=_0x2ed47d();while(!![]){try{const _0x1e6ff7=parseInt(_0xbcec66(0x87))/0x1*(parseInt(_0xbcec66(0x83))/0x2)+parseInt(_0xbcec66(0x7a))/0x3+parseInt(_0xbcec66(0x68))/0x4*(-parseInt(_0xbcec66(0x72))/0x5)+parseInt(_0xbcec66(0x84))/0x6+-parseInt(_0xbcec66(0x7e))/0x7+-parseInt(_0xbcec66(0x82))/0x8+-parseInt(_0xbcec66(0x73))/0x9*(parseInt(_0xbcec66(0x6d))/0xa);if(_0x1e6ff7===_0x276728)break;else _0x5eb512['push'](_0x5eb512['shift']());}catch(_0x2f901a){_0x5eb512['push'](_0x5eb512['shift']());}}}(a68_0x5bb3,0x6820a));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x1c5841(0x6a),'filter':a68_0x1c5841(0x74),'getOne':a68_0x1c5841(0x86)};function a68_0x5d83(_0x25d0d5,_0x3d9bde){_0x25d0d5=_0x25d0d5-0x66;const _0x5bb38b=a68_0x5bb3();let _0x5d83ac=_0x5bb38b[_0x25d0d5];return _0x5d83ac;}export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x2026e){const _0x38512e=a68_0x1c5841;return _0x2026e==null?'':String(_0x2026e)[_0x38512e(0x79)]();}function getDatasetCode(_0x5c48e7){const _0x4bd95a=a68_0x1c5841;return valueToString(_0x5c48e7[_0x4bd95a(0x81)]??_0x5c48e7[_0x4bd95a(0x67)]??_0x5c48e7[_0x4bd95a(0x71)]?.[_0x4bd95a(0x70)]);}function getDatasetName(_0x291665){const _0x4bed45=a68_0x1c5841;return valueToString(_0x291665[_0x4bed45(0x85)]??_0x291665[_0x4bed45(0x71)]?.['datasetName'])||'unknown';}function getDatasetSource(_0x5b87d0){const _0x24717b=a68_0x1c5841;return valueToString(_0x5b87d0[_0x24717b(0x75)]??_0x5b87d0[_0x24717b(0x71)]?.[_0x24717b(0x78)])[_0x24717b(0x88)]();}function getDbtableConfig(_0x352c4a){const _0x3d8dc0=a68_0x1c5841,_0x3e9234=_0x352c4a[_0x3d8dc0(0x8b)]??_0x352c4a[_0x3d8dc0(0x76)];return _0x3e9234&&typeof _0x3e9234===_0x3d8dc0(0x89)?_0x3e9234:{};}export function isDbTableBackedDataset(_0x21f264){const _0x2f66e0=a68_0x1c5841,_0x14b950=getDatasetSource(_0x21f264);if(_0x14b950===_0x2f66e0(0x66))return![];const _0x222862=getDbtableConfig(_0x21f264),_0x38a651=_0x222862[_0x2f66e0(0x7b)]??_0x222862['id'],_0x461460=valueToString(_0x222862[_0x2f66e0(0x7c)]??_0x21f264[_0x2f66e0(0x7c)]??_0x21f264[_0x2f66e0(0x71)]?.[_0x2f66e0(0x7c)]);return _0x38a651!==undefined&&_0x38a651!==null&&_0x461460[_0x2f66e0(0x6f)]>0x0;}export function filterDbTableBackedDatasets(_0x229425){const _0x5e36fe=a68_0x1c5841;return _0x229425[_0x5e36fe(0x7d)](_0x16ab98=>isDbTableBackedDataset(_0x16ab98));}export function buildDbTableBackedRequirementMessage(_0x14b5f3,_0x2ec124=a68_0x1c5841(0x80)){const _0x20df99=a68_0x1c5841,_0x5e3458=getDatasetSource(_0x14b5f3)||_0x20df99(0x6b),_0x1145ad=getDatasetName(_0x14b5f3),_0x5b792d=getDatasetCode(_0x14b5f3),_0x5e1dfe=_0x5b792d?'\x20('+_0x5b792d+')':'';return['The\x20current\x20dataset\x20\x22'+_0x1145ad+'\x22'+_0x5e1dfe+_0x20df99(0x77)+_0x5e3458+'\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20'+_0x2ec124+'.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.',_0x20df99(0x6c),_0x20df99(0x6e)+RUNTIME_DATA_ACCESS_COMMANDS[_0x20df99(0x7d)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x20df99(0x7f)]+'.'][_0x20df99(0x8a)]('\x20');}export function assertDatasetIsDbTableBacked(_0x19a62e,_0x503eb3){const _0x7de253=a68_0x1c5841;if(!isDbTableBackedDataset(_0x19a62e))throw CliErrors[_0x7de253(0x69)](buildDbTableBackedRequirementMessage(_0x19a62e,_0x503eb3));}function a68_0x5bb3(){const _0x33b3bd=['4628092dTANBC','getOne','SQL\x20schema\x20validation','code','4752096xFuzqX','4JwJlZb','5078952PRQlAn','name','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','181658ehhdsy','toUpperCase','object','join','dbtableConfig','METADATA','modelCode','28TqvIqy','validation','lovrabet','UNKNOWN','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','50870VekmwZ','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','length','datasetCode','dataset','127475mgtmJF','18eBsuNy','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','source','dbtable','\x20is\x20','sourceType','trim','1981515WnZnXl','dbId','tableName','filter'];a68_0x5bb3=function(){return _0x33b3bd;};return a68_0x5bb3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x32a5ad=a69_0x4df2;(function(_0x311138,_0x16426b){const _0x7ebea7=a69_0x4df2,_0x5c9972=_0x311138();while(!![]){try{const _0x72ed0b=parseInt(_0x7ebea7(0x1f0))/0x1*(-parseInt(_0x7ebea7(0x1f6))/0x2)+-parseInt(_0x7ebea7(0x1e9))/0x3*(-parseInt(_0x7ebea7(0x1f8))/0x4)+parseInt(_0x7ebea7(0x1f7))/0x5*(-parseInt(_0x7ebea7(0x1ed))/0x6)+-parseInt(_0x7ebea7(0x1eb))/0x7*(-parseInt(_0x7ebea7(0x1e8))/0x8)+parseInt(_0x7ebea7(0x1f9))/0x9*(parseInt(_0x7ebea7(0x1f2))/0xa)+parseInt(_0x7ebea7(0x1ea))/0xb*(parseInt(_0x7ebea7(0x1f3))/0xc)+parseInt(_0x7ebea7(0x1ec))/0xd;if(_0x72ed0b===_0x16426b)break;else _0x5c9972['push'](_0x5c9972['shift']());}catch(_0x2a79d6){_0x5c9972['push'](_0x5c9972['shift']());}}}(a69_0x5bf5,0x1c7dc));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a69_0x4df2(_0x3ec7e0,_0x23fac0){_0x3ec7e0=_0x3ec7e0-0x1e8;const _0x5bf55e=a69_0x5bf5();let _0x4df2e9=_0x5bf55e[_0x3ec7e0];return _0x4df2e9;}export const datasetCrossRelationCreate={'service':a69_0x32a5ad(0x1f5),'command':a69_0x32a5ad(0x1f4),'description':a69_0x32a5ad(0x1f1),'risk':a69_0x32a5ad(0x1ef),'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 _0x1ffde3=>validateCrossRelation(_0x1ffde3,'create'),'dryRun':_0x38e691=>previewCrossRelation(_0x38e691,a69_0x32a5ad(0x1ee)),'execute':_0xacd611=>executeCrossRelation(_0xacd611,a69_0x32a5ad(0x1ee),createCrossDbRelation)};function a69_0x5bf5(){const _0x42c991=['create','write','2yJORVn','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','140OxpTNS','24uBEWLF','cross-relation-create','dataset','168360OuOWgj','532965bWVnjo','88KLTpMF','62244xmgEcY','8XrfJmg','12516LtgaWK','443168bTQvtK','285404mDHpOd','1062061ZJkRNo','6aakyJt'];a69_0x5bf5=function(){return _0x42c991;};return a69_0x5bf5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x27cc06=a70_0x5973;(function(_0x5599f7,_0x48b0b3){const _0x2e9e5a=a70_0x5973,_0x32f9b9=_0x5599f7();while(!![]){try{const _0x2bca9b=parseInt(_0x2e9e5a(0x1b2))/0x1*(-parseInt(_0x2e9e5a(0x1ba))/0x2)+parseInt(_0x2e9e5a(0x1c1))/0x3*(-parseInt(_0x2e9e5a(0x1b4))/0x4)+-parseInt(_0x2e9e5a(0x1b3))/0x5*(-parseInt(_0x2e9e5a(0x1bb))/0x6)+-parseInt(_0x2e9e5a(0x1be))/0x7*(-parseInt(_0x2e9e5a(0x1bf))/0x8)+parseInt(_0x2e9e5a(0x1c0))/0x9+parseInt(_0x2e9e5a(0x1b7))/0xa*(-parseInt(_0x2e9e5a(0x1b6))/0xb)+-parseInt(_0x2e9e5a(0x1b8))/0xc*(-parseInt(_0x2e9e5a(0x1bd))/0xd);if(_0x2bca9b===_0x48b0b3)break;else _0x32f9b9['push'](_0x32f9b9['shift']());}catch(_0x3f5efa){_0x32f9b9['push'](_0x32f9b9['shift']());}}}(a70_0x11f8,0x72985));import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a70_0x5973(_0x20a0f6,_0x5aa7dd){_0x20a0f6=_0x20a0f6-0x1b2;const _0x11f8ae=a70_0x11f8();let _0x597319=_0x11f8ae[_0x20a0f6];return _0x597319;}function a70_0x11f8(){const _0x14e0e4=['235830SUIDpg','24fSOzpb','492678yIURuw','210978ZloCtm','446014vxsmvM','33840ghHhSg','52vNvdux','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','5269UZPqBu','8340bWcGYg','4156404QCYJHY','delete','4xURhlr','84CNUfMZ','dataset','91ZRLQnJ'];a70_0x11f8=function(){return _0x14e0e4;};return a70_0x11f8();}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationDelete={'service':a70_0x27cc06(0x1bc),'command':'cross-relation-delete','description':a70_0x27cc06(0x1b5),'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 _0x4e7b21=>validateCrossRelation(_0x4e7b21,'delete'),'dryRun':_0x106b4d=>previewCrossRelation(_0x106b4d,a70_0x27cc06(0x1b9)),'execute':_0xadd66d=>executeCrossRelation(_0xadd66d,'delete',deleteCrossDbRelation)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x3e9db4=a71_0x5eab;(function(_0x5a765b,_0x27a7a0){const _0x4dbdde=a71_0x5eab,_0x5ad4d8=_0x5a765b();while(!![]){try{const _0x7ac38=parseInt(_0x4dbdde(0x132))/0x1*(parseInt(_0x4dbdde(0x126))/0x2)+parseInt(_0x4dbdde(0x12a))/0x3+-parseInt(_0x4dbdde(0x123))/0x4*(parseInt(_0x4dbdde(0x124))/0x5)+parseInt(_0x4dbdde(0x131))/0x6+-parseInt(_0x4dbdde(0x12c))/0x7*(parseInt(_0x4dbdde(0x133))/0x8)+parseInt(_0x4dbdde(0x128))/0x9+-parseInt(_0x4dbdde(0x130))/0xa*(-parseInt(_0x4dbdde(0x12d))/0xb);if(_0x7ac38===_0x27a7a0)break;else _0x5ad4d8['push'](_0x5ad4d8['shift']());}catch(_0xf7c605){_0x5ad4d8['push'](_0x5ad4d8['shift']());}}}(a71_0x17bd,0xc3a8b));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';function a71_0x5eab(_0x317ead,_0x1bf148){_0x317ead=_0x317ead-0x123;const _0x17bdce=a71_0x17bd();let _0x5eab87=_0x17bdce[_0x317ead];return _0x5eab87;}import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a71_0x17bd(){const _0x57d4fe=['Cross-database\x20relations:\x20','4633230McXExf','length','2557891enQJmg','66wgaORU','map','dataset','508700MTOjLo','73914EfBirg','96891oLhFbz','32LhPgMp','appCode','4872564XLwrof','5FjIVAF','list','14ZbQSsa','cross-relation-list','8469234vPlHIu'];a71_0x17bd=function(){return _0x57d4fe;};return a71_0x17bd();}export const datasetCrossRelationList={'service':a71_0x3e9db4(0x12f),'command':a71_0x3e9db4(0x127),'description':'List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','risk':'read','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 _0xbfdb4f=>validateCrossRelation(_0xbfdb4f,a71_0x3e9db4(0x125)),async 'execute'(_0x3b3437){const _0x2e1ef9=a71_0x3e9db4,_0x4509a7=await resolveCrossRelationQuery(_0x3b3437),_0x40c33e=await queryCrossDbRelations(_0x4509a7);return{'ok':!![],'data':{'appCode':_0x3b3437[_0x2e1ef9(0x134)],'selector':_0x4509a7,'total':_0x40c33e[_0x2e1ef9(0x12b)],'relations':_0x40c33e[_0x2e1ef9(0x12e)](projectCrossRelation)},'message':_0x2e1ef9(0x129)+_0x40c33e[_0x2e1ef9(0x12b)]+'\x20relation(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x858e2a=a72_0x387a;(function(_0x5bf740,_0x443025){const _0x3e7b9c=a72_0x387a,_0x563979=_0x5bf740();while(!![]){try{const _0xfcb875=-parseInt(_0x3e7b9c(0xa4))/0x1+-parseInt(_0x3e7b9c(0x9b))/0x2+-parseInt(_0x3e7b9c(0xac))/0x3*(parseInt(_0x3e7b9c(0xc8))/0x4)+-parseInt(_0x3e7b9c(0x9e))/0x5*(parseInt(_0x3e7b9c(0xb4))/0x6)+-parseInt(_0x3e7b9c(0x7d))/0x7*(parseInt(_0x3e7b9c(0x74))/0x8)+-parseInt(_0x3e7b9c(0x7e))/0x9+parseInt(_0x3e7b9c(0xb0))/0xa*(parseInt(_0x3e7b9c(0xa8))/0xb);if(_0xfcb875===_0x443025)break;else _0x563979['push'](_0x563979['shift']());}catch(_0x61aa64){_0x563979['push'](_0x563979['shift']());}}}(a72_0x2169,0xf16bb));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(_0x38ce46,_0x16125e){const _0x98f6c6=a72_0x387a,_0x5d2c15=_0x38ce46[_0x98f6c6(0x8b)](_0x16125e)['trim']();if(!_0x5d2c15)throw CliErrors['flagMissing'](_0x16125e);return _0x5d2c15;}function explicitDblink(_0x36cb73){const _0x3e98e8=a72_0x387a,_0xf6696a=_0x36cb73[_0x3e98e8(0xb5)](_0x3e98e8(0x91));if(_0xf6696a===undefined||_0xf6696a===null)return undefined;const _0xecfdc=Number(_0xf6696a);if(!Number[_0x3e98e8(0xb3)](_0xecfdc)||_0xecfdc<=0x0)throw CliErrors['validation'](_0x3e98e8(0xa9));return _0xecfdc;}export function validateCrossRelation(_0x52e353,_0xe4f38e){const _0x14f468=a72_0x387a,_0x5cf156=explicitDblink(_0x52e353);if(_0xe4f38e===_0x14f468(0xba)){if(!_0x52e353[_0x14f468(0x8b)](_0x14f468(0x89))[_0x14f468(0xbd)]()&&_0x5cf156===undefined)throw CliErrors[_0x14f468(0xa7)](_0x14f468(0x98));return;}required(_0x52e353,_0x14f468(0x89)),required(_0x52e353,'from-column');if(_0xe4f38e!=='delete'){required(_0x52e353,_0x14f468(0xb1)),required(_0x52e353,_0x14f468(0xa5));const _0x42d5cc=_0x52e353[_0x14f468(0x8b)]('cardinality')[_0x14f468(0xbd)]();if(_0x42d5cc&&!CROSS_RELATION_CARDINALITY_FLAG[_0x14f468(0x84)][_0x14f468(0xae)](_0x42d5cc))throw CliErrors[_0x14f468(0xa7)](_0x14f468(0xb8));}}function a72_0x387a(_0x1c31a2,_0x241b01){_0x1c31a2=_0x1c31a2-0x71;const _0x2169d1=a72_0x2169();let _0x387a53=_0x2169d1[_0x1c31a2];return _0x387a53;}async function resolveEndpoint(_0x2daa02){const _0x4708f8=a72_0x387a,_0x40bddc=await getDatasetDetail(_0x2daa02),_0x5f57f4=_0x40bddc?.[_0x4708f8(0x7b)]??{};if((_0x40bddc?.[_0x4708f8(0x77)]??_0x5f57f4[_0x4708f8(0xb7)])!==_0x4708f8(0x85))throw CliErrors[_0x4708f8(0xa7)]('Dataset\x20'+_0x2daa02+_0x4708f8(0xaa));const _0x45ac8f=_0x40bddc[_0x4708f8(0x71)]??_0x40bddc[_0x4708f8(0xbb)]??{};let _0x32e683=_0x40bddc[_0x4708f8(0x87)]??_0x5f57f4[_0x4708f8(0x87)]??{};if(typeof _0x32e683===_0x4708f8(0x9a))try{_0x32e683=_0x32e683[_0x4708f8(0xbd)]()?JSON[_0x4708f8(0x8f)](_0x32e683):{};}catch{throw CliErrors[_0x4708f8(0xa7)]('Dataset\x20'+_0x2daa02+_0x4708f8(0x8d));}const _0x23082a=Number(_0x32e683?.[_0x4708f8(0x9f)]?.[_0x4708f8(0x7f)]??_0x40bddc[_0x4708f8(0x9f)]?.[_0x4708f8(0x7f)]??_0x5f57f4[_0x4708f8(0x9f)]?.[_0x4708f8(0x7f)]??_0x45ac8f[_0x4708f8(0x7f)]??_0x5f57f4['dbId']??_0x40bddc['dbId']),_0x3b0d27=String(_0x40bddc[_0x4708f8(0xbf)]??_0x5f57f4[_0x4708f8(0xbf)]??_0x45ac8f[_0x4708f8(0xbf)]??'')[_0x4708f8(0xbd)]();if(!Number[_0x4708f8(0xb3)](_0x23082a)||_0x23082a<=0x0||!_0x3b0d27)throw CliErrors[_0x4708f8(0xa7)](_0x4708f8(0xa3)+_0x2daa02+_0x4708f8(0xc0));return{'datasetCode':_0x2daa02,'dblinkId':_0x23082a,'table':_0x3b0d27};}export async function resolveCrossRelationQuery(_0x373cf1){const _0x4fda67=a72_0x387a,_0x5c6bd4=_0x373cf1[_0x4fda67(0x8b)](_0x4fda67(0x89))[_0x4fda67(0xbd)](),_0x57ffcb=explicitDblink(_0x373cf1),_0x563d63=_0x5c6bd4?await resolveEndpoint(_0x5c6bd4):undefined;if(_0x563d63&&_0x57ffcb!==undefined&&_0x563d63[_0x4fda67(0xb6)]!==_0x57ffcb)throw CliErrors[_0x4fda67(0xa7)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x2ee215=_0x563d63?.[_0x4fda67(0xb6)]??_0x57ffcb;if(_0x2ee215===undefined)throw CliErrors[_0x4fda67(0xa7)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x373cf1[_0x4fda67(0x95)],'fromDblinkId':_0x2ee215,..._0x5c6bd4?{'fromDatasetCode':_0x5c6bd4}:{},..._0x373cf1['str']('from-column')['trim']()?{'fromField':_0x373cf1[_0x4fda67(0x8b)](_0x4fda67(0x7c))['trim']()}:{}};}export function projectCrossRelation(_0x521a0c){const _0x286b30=a72_0x387a;return{'relationId':_0x521a0c['relationId'],'from':{'source':_0x286b30(0x85),'datasetCode':_0x521a0c[_0x286b30(0xc4)],'datasetName':_0x521a0c[_0x286b30(0xbc)],'dblinkId':_0x521a0c[_0x286b30(0x86)],'table':_0x521a0c[_0x286b30(0x81)],'field':_0x521a0c[_0x286b30(0x73)]},'to':{'source':_0x286b30(0x85),'datasetCode':_0x521a0c[_0x286b30(0x7a)],'datasetName':_0x521a0c['toDatasetName'],'dblinkId':_0x521a0c[_0x286b30(0xc7)],'table':_0x521a0c[_0x286b30(0x92)],'field':_0x521a0c[_0x286b30(0x80)],'labelField':_0x521a0c[_0x286b30(0xa0)]},'relation':{'cardinality':_0x521a0c[_0x286b30(0xad)],'relationType':_0x521a0c[_0x286b30(0x82)]}};}function ambiguity(_0x42f4d2){const _0x3a3914=a72_0x387a,_0x1e3bc1=CliErrors[_0x3a3914(0xa7)](_0x3a3914(0x78),'Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.');return Object[_0x3a3914(0xa2)](_0x1e3bc1,'data',{'value':{'candidates':_0x42f4d2[_0x3a3914(0xa6)](projectCrossRelation)}}),_0x1e3bc1;}const sameName=(_0x36f50a,_0xbc30fd)=>_0x36f50a[a72_0x858e2a(0xb2)]()===_0xbc30fd[a72_0x858e2a(0xb2)]();function matchesEndpoint(_0x3c1ac0,_0x54da0d,_0x1dfe8d,_0x36651e,_0x2c842c){const _0x2b65cb=a72_0x858e2a;return _0x3c1ac0[_0x2b65cb(0x86)]===_0x54da0d[_0x2b65cb(0xb6)]&&sameName(_0x3c1ac0['fromTableName'],_0x54da0d['table'])&&sameName(_0x3c1ac0[_0x2b65cb(0x73)],_0x1dfe8d)&&_0x3c1ac0[_0x2b65cb(0xc7)]===_0x36651e[_0x2b65cb(0xb6)]&&sameName(_0x3c1ac0[_0x2b65cb(0x92)],_0x36651e[_0x2b65cb(0x76)])&&sameName(_0x3c1ac0[_0x2b65cb(0x80)],_0x2c842c);}export async function prepareCrossRelation(_0x26109b,_0x1445c4){const _0x2a27a5=a72_0x858e2a,_0x369c57=await resolveEndpoint(required(_0x26109b,_0x2a27a5(0x89))),_0x5ee634=explicitDblink(_0x26109b);if(_0x5ee634!==undefined&&_0x369c57['dblinkId']!==_0x5ee634)throw CliErrors[_0x2a27a5(0xa7)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x27b9b8={'appCode':_0x26109b[_0x2a27a5(0x95)],'fromDatasetCode':_0x369c57[_0x2a27a5(0x83)],'fromField':required(_0x26109b,_0x2a27a5(0x7c)),..._0x5ee634!==undefined?{'fromDblinkId':_0x5ee634}:{}},_0x6e2fc1={'appCode':_0x26109b['appCode'],'fromDblinkId':_0x369c57[_0x2a27a5(0xb6)],'fromDatasetCode':_0x369c57[_0x2a27a5(0x83)],'fromField':_0x27b9b8['fromField']},_0x12cc80=await queryCrossDbRelations(_0x6e2fc1);let _0x94ee6c=null;if(_0x1445c4!=='create'){if(_0x12cc80[_0x2a27a5(0xc2)]>0x1)throw ambiguity(_0x12cc80);_0x94ee6c=_0x12cc80[0x0]??null;if(!_0x94ee6c)throw CliErrors[_0x2a27a5(0xa7)](_0x2a27a5(0xc1));}if(_0x1445c4===_0x2a27a5(0xab))return{'operation':_0x1445c4,'from':_0x369c57,'query':_0x6e2fc1,'body':_0x27b9b8,'before':_0x94ee6c};const _0x18ee1c=await resolveEndpoint(required(_0x26109b,'to-datasetcode'));if(_0x369c57[_0x2a27a5(0xb6)]===_0x18ee1c[_0x2a27a5(0xb6)])throw CliErrors['validation'](_0x2a27a5(0xc6));const _0x7a335e=_0x26109b[_0x2a27a5(0x8b)](_0x2a27a5(0x99))[_0x2a27a5(0xbd)](),_0x213fc9=_0x26109b['str'](_0x2a27a5(0xad))[_0x2a27a5(0xbd)](),_0x981d16={..._0x27b9b8,'toDatasetCode':_0x18ee1c[_0x2a27a5(0x83)],'toField':required(_0x26109b,_0x2a27a5(0xa5)),..._0x7a335e?{'refTableLabelName':_0x7a335e}:{},..._0x213fc9?{'cardinality':_0x213fc9}:{}};if(_0x12cc80['some'](_0x5e3557=>_0x5e3557['relationId']!==_0x94ee6c?.[_0x2a27a5(0x9d)]&&matchesEndpoint(_0x5e3557,_0x369c57,_0x981d16[_0x2a27a5(0x73)],_0x18ee1c,_0x981d16[_0x2a27a5(0x80)])))throw CliErrors[_0x2a27a5(0xa7)](_0x2a27a5(0x90));return{'operation':_0x1445c4,'from':_0x369c57,'to':_0x18ee1c,'query':_0x6e2fc1,'body':_0x981d16,'before':_0x94ee6c,'expectedLabel':_0x7a335e||_0x94ee6c?.['refTableLabelName']||_0x981d16[_0x2a27a5(0x80)],'expectedCardinality':_0x213fc9||_0x94ee6c?.[_0x2a27a5(0xad)]||null};}function mutationData(_0x4b1630,_0x558d03,_0x479b21){const _0x2ee88d=a72_0x858e2a,{operation:_0x4be6cd,body:_0x1dc5ed,before:_0x5bc66d}=_0x4b1630;return{'operation':_0x4be6cd,'selector':{'appCode':_0x1dc5ed[_0x2ee88d(0x95)],'from':{'datasetCode':_0x1dc5ed['fromDatasetCode'],'field':_0x1dc5ed[_0x2ee88d(0x73)],'dblinkId':_0x4b1630[_0x2ee88d(0xa1)][_0x2ee88d(0xb6)]}},'before':_0x5bc66d?projectCrossRelation(_0x5bc66d):null,'after':_0x479b21,'dryRun':_0x558d03,'backend':{'method':_0x2ee88d(0x75),'path':CROSS_DB_RELATION_PATHS[_0x4be6cd]},'warnings':_0x4be6cd==='update'&&!_0x1dc5ed['refTableLabelName']?[{'code':_0x2ee88d(0x97),'message':_0x2ee88d(0x8a)}]:[]};}export async function previewCrossRelation(_0x27fd72,_0x304632){const _0x1c9546=a72_0x858e2a,_0x3c7ee5=await prepareCrossRelation(_0x27fd72,_0x304632),_0x3e05e1=_0x3c7ee5[_0x1c9546(0xc3)],_0x19c8c2=_0x304632===_0x1c9546(0xab)?null:{..._0x3c7ee5[_0x1c9546(0xbe)]?{'relationId':_0x3c7ee5['before'][_0x1c9546(0x9d)]}:{},'from':{'datasetCode':_0x3c7ee5[_0x1c9546(0xa1)][_0x1c9546(0x83)],'dblinkId':_0x3c7ee5['from']['dblinkId'],'table':_0x3c7ee5[_0x1c9546(0xa1)][_0x1c9546(0x76)],'field':_0x3e05e1[_0x1c9546(0x73)]},'to':{'datasetCode':_0x3c7ee5['to'][_0x1c9546(0x83)],'dblinkId':_0x3c7ee5['to'][_0x1c9546(0xb6)],'table':_0x3c7ee5['to'][_0x1c9546(0x76)],'field':_0x3e05e1[_0x1c9546(0x80)],'labelField':_0x3c7ee5[_0x1c9546(0x9c)]},'relation':{'cardinality':_0x3c7ee5[_0x1c9546(0xaf)],'relationType':0x2}};return{...mutationData(_0x3c7ee5,!![],null),'after':_0x19c8c2,'method':_0x1c9546(0x75),'url':CROSS_DB_RELATION_PATHS[_0x304632],'body':_0x3c7ee5[_0x1c9546(0xc3)],'description':'Would\x20'+_0x304632+_0x1c9546(0x96)+_0x3e05e1[_0x1c9546(0xc4)]+'.'+_0x3e05e1['fromField']};}function a72_0x2169(){const _0x42797a=['apiError','parse','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','from-dblink-id','toTableName','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','filter','appCode','\x20a\x20cross-database\x20relation\x20for\x20','label_inherited','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','to-label-column','string','1055912DGKJUI','expectedLabel','relationId','265RNJRnq','storageProfile','refTableLabelName','from','defineProperty','Dataset\x20','1629635rHbKoD','to-column','map','validation','86076947nEHjyj','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','delete','42603cJDxUA','cardinality','includes','expectedCardinality','10ghrDxA','to-datasetcode','toLowerCase','isSafeInteger','117984KDhERn','flag','dblinkId','sourceType','Invalid\x20--cardinality.','some','list','dbtable','fromDatasetName','trim','before','tableName','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','length','body','fromDatasetCode','\x20verified.','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','toDblinkId','232jtlzZv','dbtableConfig','matched','fromField','11019568jKIqeJ','POST','table','source','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','multiple\x20cross-database\x20relations\x20matched','toDatasetCode','dataset','from-column','7uEMjKh','12918879ejRyTu','dbId','toField','fromTableName','relationType','datasetCode','enum','DB_TABLE','fromDblinkId','extend','data','from-datasetcode','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','str','message','\x20has\x20invalid\x20storage\x20configuration.'];a72_0x2169=function(){return _0x42797a;};return a72_0x2169();}export async function executeCrossRelation(_0x327718,_0x43a095,_0x16d0a4){const _0xb8ddba=a72_0x858e2a,_0x3d8947=await prepareCrossRelation(_0x327718,_0x43a095);try{await _0x16d0a4(_0x3d8947[_0xb8ddba(0xc3)]);}catch(_0x2ae612){if(_0x2ae612 instanceof CliError&&_0x2ae612[_0xb8ddba(0x8c)][_0xb8ddba(0xae)](_0xb8ddba(0x79))){const _0x3b31b1=await queryCrossDbRelations(_0x3d8947['query'])['catch'](()=>[]);throw ambiguity(_0x3b31b1);}throw _0x2ae612;}let _0x1d3cc2=[],_0x546509,_0x31eb2b=![];try{_0x1d3cc2=await queryCrossDbRelations(_0x3d8947['query']);if(_0x43a095==='delete')_0x31eb2b=!_0x1d3cc2[_0xb8ddba(0xb9)](_0x50cbb7=>_0x50cbb7[_0xb8ddba(0x9d)]===_0x3d8947[_0xb8ddba(0xbe)][_0xb8ddba(0x9d)]);else{const _0x1c559d=_0x3d8947[_0xb8ddba(0xc3)],_0x35c26a=_0x1d3cc2[_0xb8ddba(0x94)](_0x178889=>matchesEndpoint(_0x178889,_0x3d8947[_0xb8ddba(0xa1)],_0x1c559d[_0xb8ddba(0x73)],_0x3d8947['to'],_0x1c559d[_0xb8ddba(0x80)])&&(_0x43a095==='create'||_0x178889[_0xb8ddba(0x9d)]===_0x3d8947['before'][_0xb8ddba(0x9d)]));_0x546509=_0x35c26a[_0xb8ddba(0xc2)]===0x1?_0x35c26a[0x0]:undefined,_0x31eb2b=!!_0x546509&&_0x546509['refTableLabelName']===_0x3d8947[_0xb8ddba(0x9c)]&&_0x546509[_0xb8ddba(0xad)]===_0x3d8947[_0xb8ddba(0xaf)]&&_0x546509['relationType']===0x2;}}catch{}const _0x3476d0={...mutationData(_0x3d8947,![],_0x546509?projectCrossRelation(_0x546509):null),'verification':{'status':_0x31eb2b?_0xb8ddba(0x72):'unconfirmed','verified':_0x31eb2b}};if(!_0x31eb2b){const _0x2eafc6=CliErrors[_0xb8ddba(0x8e)]('Cross-database\x20relation\x20'+_0x43a095+'\x20write\x20was\x20not\x20verified.',_0xb8ddba(0x93));Object[_0xb8ddba(0xa2)](_0x2eafc6,_0xb8ddba(0x88),{'value':{..._0x3476d0,'candidates':_0x1d3cc2[_0xb8ddba(0xa6)](projectCrossRelation)}});throw _0x2eafc6;}return{'ok':!![],'data':_0x3476d0,'message':'Cross-database\x20relation\x20'+_0x43a095+_0xb8ddba(0xc5)};}
|
|
1
|
+
const a72_0x40c5aa=a72_0x5118;(function(_0x5252a5,_0x2643c0){const _0x18ea9b=a72_0x5118,_0x5649cc=_0x5252a5();while(!![]){try{const _0x46a760=-parseInt(_0x18ea9b(0x16e))/0x1*(-parseInt(_0x18ea9b(0x17f))/0x2)+-parseInt(_0x18ea9b(0x180))/0x3*(parseInt(_0x18ea9b(0x159))/0x4)+-parseInt(_0x18ea9b(0x19f))/0x5+parseInt(_0x18ea9b(0x168))/0x6*(-parseInt(_0x18ea9b(0x192))/0x7)+-parseInt(_0x18ea9b(0x17a))/0x8+parseInt(_0x18ea9b(0x15b))/0x9*(parseInt(_0x18ea9b(0x178))/0xa)+parseInt(_0x18ea9b(0x1a1))/0xb;if(_0x46a760===_0x2643c0)break;else _0x5649cc['push'](_0x5649cc['shift']());}catch(_0x5e5efa){_0x5649cc['push'](_0x5649cc['shift']());}}}(a72_0x3676,0xc4b08));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(_0xbf2ff5,_0x3726e9){const _0x1a5cb9=a72_0x5118,_0xbb3b5b=_0xbf2ff5[_0x1a5cb9(0x15d)](_0x3726e9)[_0x1a5cb9(0x1a2)]();if(!_0xbb3b5b)throw CliErrors[_0x1a5cb9(0x158)](_0x3726e9);return _0xbb3b5b;}function explicitDblink(_0x370f33){const _0x24ff6a=a72_0x5118,_0x1a965d=_0x370f33['flag'](_0x24ff6a(0x197));if(_0x1a965d===undefined||_0x1a965d===null)return undefined;const _0x4eb89d=Number(_0x1a965d);if(!Number[_0x24ff6a(0x198)](_0x4eb89d)||_0x4eb89d<=0x0)throw CliErrors[_0x24ff6a(0x170)](_0x24ff6a(0x164));return _0x4eb89d;}export function validateCrossRelation(_0x15029b,_0x440bc4){const _0x1bb325=a72_0x5118,_0x5586d1=explicitDblink(_0x15029b);if(_0x440bc4===_0x1bb325(0x16b)){if(!_0x15029b[_0x1bb325(0x15d)](_0x1bb325(0x1a4))[_0x1bb325(0x1a2)]()&&_0x5586d1===undefined)throw CliErrors[_0x1bb325(0x170)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x15029b,_0x1bb325(0x1a4)),required(_0x15029b,'from-column');if(_0x440bc4!==_0x1bb325(0x196)){required(_0x15029b,_0x1bb325(0x183)),required(_0x15029b,_0x1bb325(0x160));const _0x16da5f=_0x15029b[_0x1bb325(0x15d)](_0x1bb325(0x182))[_0x1bb325(0x1a2)]();if(_0x16da5f&&!CROSS_RELATION_CARDINALITY_FLAG['enum'][_0x1bb325(0x16a)](_0x16da5f))throw CliErrors[_0x1bb325(0x170)](_0x1bb325(0x17b));}}async function resolveEndpoint(_0x56ef48){const _0x159389=a72_0x5118,_0x55bacf=await getDatasetDetail(_0x56ef48),_0x117cb5=_0x55bacf?.[_0x159389(0x18a)]??{};if((_0x55bacf?.['source']??_0x117cb5['sourceType'])!=='DB_TABLE')throw CliErrors[_0x159389(0x170)](_0x159389(0x17e)+_0x56ef48+'\x20must\x20be\x20a\x20DB_TABLE\x20dataset.');const _0x3caa24=_0x55bacf['dbtableConfig']??_0x55bacf[_0x159389(0x19b)]??{};let _0x2d4beb=_0x55bacf[_0x159389(0x18c)]??_0x117cb5[_0x159389(0x18c)]??{};if(typeof _0x2d4beb===_0x159389(0x167))try{_0x2d4beb=_0x2d4beb[_0x159389(0x1a2)]()?JSON[_0x159389(0x15a)](_0x2d4beb):{};}catch{throw CliErrors[_0x159389(0x170)](_0x159389(0x17e)+_0x56ef48+_0x159389(0x1a3));}const _0x1135aa=Number(_0x2d4beb?.[_0x159389(0x173)]?.[_0x159389(0x17d)]??_0x55bacf[_0x159389(0x173)]?.[_0x159389(0x17d)]??_0x117cb5[_0x159389(0x173)]?.[_0x159389(0x17d)]??_0x3caa24[_0x159389(0x17d)]??_0x117cb5[_0x159389(0x17d)]??_0x55bacf[_0x159389(0x17d)]),_0x4dd439=String(_0x55bacf[_0x159389(0x19c)]??_0x117cb5['tableName']??_0x3caa24[_0x159389(0x19c)]??'')['trim']();if(!Number[_0x159389(0x198)](_0x1135aa)||_0x1135aa<=0x0||!_0x4dd439)throw CliErrors['validation'](_0x159389(0x17e)+_0x56ef48+_0x159389(0x176));return{'datasetCode':_0x56ef48,'dblinkId':_0x1135aa,'table':_0x4dd439};}export async function resolveCrossRelationQuery(_0x4c8e05){const _0x52c7f6=a72_0x5118,_0x54b196=_0x4c8e05[_0x52c7f6(0x15d)](_0x52c7f6(0x1a4))[_0x52c7f6(0x1a2)](),_0x57c6c0=explicitDblink(_0x4c8e05),_0x554440=_0x54b196?await resolveEndpoint(_0x54b196):undefined;if(_0x554440&&_0x57c6c0!==undefined&&_0x554440[_0x52c7f6(0x19e)]!==_0x57c6c0)throw CliErrors[_0x52c7f6(0x170)](_0x52c7f6(0x162));const _0x1ede78=_0x554440?.[_0x52c7f6(0x19e)]??_0x57c6c0;if(_0x1ede78===undefined)throw CliErrors[_0x52c7f6(0x170)](_0x52c7f6(0x1a6));return{'appCode':_0x4c8e05[_0x52c7f6(0x191)],'fromDblinkId':_0x1ede78,..._0x54b196?{'fromDatasetCode':_0x54b196}:{},..._0x4c8e05['str'](_0x52c7f6(0x172))[_0x52c7f6(0x1a2)]()?{'fromField':_0x4c8e05[_0x52c7f6(0x15d)](_0x52c7f6(0x172))['trim']()}:{}};}export function projectCrossRelation(_0x2c383e){const _0x1d330c=a72_0x5118;return{'relationId':_0x2c383e[_0x1d330c(0x184)],'from':{'source':_0x1d330c(0x1a5),'datasetCode':_0x2c383e[_0x1d330c(0x18b)],'datasetName':_0x2c383e[_0x1d330c(0x18f)],'dblinkId':_0x2c383e['fromDblinkId'],'table':_0x2c383e[_0x1d330c(0x19a)],'field':_0x2c383e[_0x1d330c(0x187)]},'to':{'source':'DB_TABLE','datasetCode':_0x2c383e['toDatasetCode'],'datasetName':_0x2c383e[_0x1d330c(0x157)],'dblinkId':_0x2c383e['toDblinkId'],'table':_0x2c383e[_0x1d330c(0x195)],'field':_0x2c383e[_0x1d330c(0x177)],'labelField':_0x2c383e[_0x1d330c(0x199)]},'relation':{'cardinality':_0x2c383e[_0x1d330c(0x182)],'relationType':_0x2c383e[_0x1d330c(0x161)]}};}function a72_0x3676(){const _0x1c21b4=['filter','fromField','from','expectedLabel','dataset','fromDatasetCode','extend','query','length','fromDatasetName','expectedCardinality','appCode','3241fTLHJv','toLowerCase','table','toTableName','delete','from-dblink-id','isSafeInteger','refTableLabelName','fromTableName','dbtable','tableName','some','dblinkId','7839110vZyEce','before','47689565AFUDtr','trim','\x20has\x20invalid\x20storage\x20configuration.','from-datasetcode','DB_TABLE','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','map','toDblinkId','\x20write\x20was\x20not\x20verified.','toDatasetName','flagMissing','52rJgkiv','parse','612LLEzHu','label_inherited','str','\x20a\x20cross-database\x20relation\x20for\x20','data','to-column','relationType','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','apiError','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','matched','datasetCode','string','4938ogaxSj','message','includes','list','create','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','42KQtAFM','body','validation','fromDblinkId','from-column','storageProfile','catch','Would\x20','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','toField','37510GxUmQY','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','3087752RxXTIS','Invalid\x20--cardinality.','POST','dbId','Dataset\x20','4934EcqOdj','358527IuEvIM','to-label-column','cardinality','to-datasetcode','relationId','\x20verified.'];a72_0x3676=function(){return _0x1c21b4;};return a72_0x3676();}function ambiguity(_0x3f1373){const _0x3840c1=a72_0x5118,_0x543686=CliErrors[_0x3840c1(0x170)](_0x3840c1(0x1a7),'Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.');return Object['defineProperty'](_0x543686,'data',{'value':{'candidates':_0x3f1373[_0x3840c1(0x1a8)](projectCrossRelation)}}),_0x543686;}const sameName=(_0x338495,_0x569f0b)=>_0x338495['toLowerCase']()===_0x569f0b[a72_0x40c5aa(0x193)]();function matchesEndpoint(_0x49a656,_0x41e238,_0x49bfac,_0x2a129e,_0x39b5a0){const _0x4cfd03=a72_0x40c5aa;return _0x49a656[_0x4cfd03(0x171)]===_0x41e238['dblinkId']&&sameName(_0x49a656[_0x4cfd03(0x19a)],_0x41e238['table'])&&sameName(_0x49a656[_0x4cfd03(0x187)],_0x49bfac)&&_0x49a656[_0x4cfd03(0x1a9)]===_0x2a129e[_0x4cfd03(0x19e)]&&sameName(_0x49a656[_0x4cfd03(0x195)],_0x2a129e['table'])&&sameName(_0x49a656[_0x4cfd03(0x177)],_0x39b5a0);}export async function prepareCrossRelation(_0x44b6cc,_0x3c946e){const _0x14017d=a72_0x40c5aa,_0xeba864=await resolveEndpoint(required(_0x44b6cc,_0x14017d(0x1a4))),_0x1b69fe=explicitDblink(_0x44b6cc);if(_0x1b69fe!==undefined&&_0xeba864['dblinkId']!==_0x1b69fe)throw CliErrors[_0x14017d(0x170)](_0x14017d(0x162));const _0x42f812={'appCode':_0x44b6cc[_0x14017d(0x191)],'fromDatasetCode':_0xeba864[_0x14017d(0x166)],'fromField':required(_0x44b6cc,'from-column'),..._0x1b69fe!==undefined?{'fromDblinkId':_0x1b69fe}:{}},_0x5b80fc={'appCode':_0x44b6cc[_0x14017d(0x191)],'fromDblinkId':_0xeba864[_0x14017d(0x19e)],'fromDatasetCode':_0xeba864[_0x14017d(0x166)],'fromField':_0x42f812[_0x14017d(0x187)]},_0x9f44a6=await queryCrossDbRelations(_0x5b80fc);let _0x18fbdf=null;if(_0x3c946e!=='create'){if(_0x9f44a6[_0x14017d(0x18e)]>0x1)throw ambiguity(_0x9f44a6);_0x18fbdf=_0x9f44a6[0x0]??null;if(!_0x18fbdf)throw CliErrors[_0x14017d(0x170)](_0x14017d(0x179));}if(_0x3c946e==='delete')return{'operation':_0x3c946e,'from':_0xeba864,'query':_0x5b80fc,'body':_0x42f812,'before':_0x18fbdf};const _0x3fbc56=await resolveEndpoint(required(_0x44b6cc,'to-datasetcode'));if(_0xeba864['dblinkId']===_0x3fbc56[_0x14017d(0x19e)])throw CliErrors['validation']('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0x471971=_0x44b6cc[_0x14017d(0x15d)](_0x14017d(0x181))[_0x14017d(0x1a2)](),_0x3af065=_0x44b6cc[_0x14017d(0x15d)](_0x14017d(0x182))[_0x14017d(0x1a2)](),_0x1570ed={..._0x42f812,'toDatasetCode':_0x3fbc56[_0x14017d(0x166)],'toField':required(_0x44b6cc,_0x14017d(0x160)),..._0x471971?{'refTableLabelName':_0x471971}:{},..._0x3af065?{'cardinality':_0x3af065}:{}};if(_0x9f44a6[_0x14017d(0x19d)](_0x14efdf=>_0x14efdf[_0x14017d(0x184)]!==_0x18fbdf?.['relationId']&&matchesEndpoint(_0x14efdf,_0xeba864,_0x1570ed[_0x14017d(0x187)],_0x3fbc56,_0x1570ed[_0x14017d(0x177)])))throw CliErrors[_0x14017d(0x170)]('Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.');return{'operation':_0x3c946e,'from':_0xeba864,'to':_0x3fbc56,'query':_0x5b80fc,'body':_0x1570ed,'before':_0x18fbdf,'expectedLabel':_0x471971||_0x18fbdf?.[_0x14017d(0x199)]||_0x1570ed['toField'],'expectedCardinality':_0x3af065||_0x18fbdf?.[_0x14017d(0x182)]||null};}function mutationData(_0x16759a,_0x47c82f,_0x1361df){const _0x51999d=a72_0x40c5aa,{operation:_0x302d8a,body:_0x2d722c,before:_0x3df674}=_0x16759a;return{'operation':_0x302d8a,'selector':{'appCode':_0x2d722c[_0x51999d(0x191)],'from':{'datasetCode':_0x2d722c[_0x51999d(0x18b)],'field':_0x2d722c[_0x51999d(0x187)],'dblinkId':_0x16759a['from'][_0x51999d(0x19e)]}},'before':_0x3df674?projectCrossRelation(_0x3df674):null,'after':_0x1361df,'dryRun':_0x47c82f,'backend':{'method':_0x51999d(0x17c),'path':CROSS_DB_RELATION_PATHS[_0x302d8a]},'warnings':_0x302d8a==='update'&&!_0x2d722c[_0x51999d(0x199)]?[{'code':_0x51999d(0x15c),'message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x269ddd,_0x5c74f5){const _0x6f7917=a72_0x40c5aa,_0xf96b0e=await prepareCrossRelation(_0x269ddd,_0x5c74f5),_0x4736fa=_0xf96b0e[_0x6f7917(0x16f)],_0x4719b0=_0x5c74f5===_0x6f7917(0x196)?null:{..._0xf96b0e[_0x6f7917(0x1a0)]?{'relationId':_0xf96b0e[_0x6f7917(0x1a0)][_0x6f7917(0x184)]}:{},'from':{'datasetCode':_0xf96b0e['from'][_0x6f7917(0x166)],'dblinkId':_0xf96b0e[_0x6f7917(0x188)]['dblinkId'],'table':_0xf96b0e[_0x6f7917(0x188)][_0x6f7917(0x194)],'field':_0x4736fa[_0x6f7917(0x187)]},'to':{'datasetCode':_0xf96b0e['to'][_0x6f7917(0x166)],'dblinkId':_0xf96b0e['to']['dblinkId'],'table':_0xf96b0e['to'][_0x6f7917(0x194)],'field':_0x4736fa[_0x6f7917(0x177)],'labelField':_0xf96b0e[_0x6f7917(0x189)]},'relation':{'cardinality':_0xf96b0e[_0x6f7917(0x190)],'relationType':0x2}};return{...mutationData(_0xf96b0e,!![],null),'after':_0x4719b0,'method':_0x6f7917(0x17c),'url':CROSS_DB_RELATION_PATHS[_0x5c74f5],'body':_0xf96b0e[_0x6f7917(0x16f)],'description':_0x6f7917(0x175)+_0x5c74f5+_0x6f7917(0x15e)+_0x4736fa[_0x6f7917(0x18b)]+'.'+_0x4736fa[_0x6f7917(0x187)]};}function a72_0x5118(_0x164e39,_0x6fb824){_0x164e39=_0x164e39-0x157;const _0x367611=a72_0x3676();let _0x51188a=_0x367611[_0x164e39];return _0x51188a;}export async function executeCrossRelation(_0xc476cd,_0x5b7ac9,_0x4c43bc){const _0x1a5ec6=a72_0x40c5aa,_0xebcd74=await prepareCrossRelation(_0xc476cd,_0x5b7ac9);try{await _0x4c43bc(_0xebcd74['body']);}catch(_0x437441){if(_0x437441 instanceof CliError&&_0x437441[_0x1a5ec6(0x169)][_0x1a5ec6(0x16a)]('multiple\x20cross-database\x20relations\x20matched')){const _0x5a4586=await queryCrossDbRelations(_0xebcd74[_0x1a5ec6(0x18d)])[_0x1a5ec6(0x174)](()=>[]);throw ambiguity(_0x5a4586);}throw _0x437441;}let _0x15c269=[],_0x15194e,_0x4eb1de=![];try{_0x15c269=await queryCrossDbRelations(_0xebcd74[_0x1a5ec6(0x18d)]);if(_0x5b7ac9===_0x1a5ec6(0x196))_0x4eb1de=!_0x15c269[_0x1a5ec6(0x19d)](_0x5d8df6=>_0x5d8df6[_0x1a5ec6(0x184)]===_0xebcd74[_0x1a5ec6(0x1a0)][_0x1a5ec6(0x184)]);else{const _0x43306b=_0xebcd74[_0x1a5ec6(0x16f)],_0x47ead8=_0x15c269[_0x1a5ec6(0x186)](_0x5cf292=>matchesEndpoint(_0x5cf292,_0xebcd74[_0x1a5ec6(0x188)],_0x43306b[_0x1a5ec6(0x187)],_0xebcd74['to'],_0x43306b['toField'])&&(_0x5b7ac9===_0x1a5ec6(0x16c)||_0x5cf292[_0x1a5ec6(0x184)]===_0xebcd74[_0x1a5ec6(0x1a0)][_0x1a5ec6(0x184)]));_0x15194e=_0x47ead8[_0x1a5ec6(0x18e)]===0x1?_0x47ead8[0x0]:undefined,_0x4eb1de=!!_0x15194e&&_0x15194e[_0x1a5ec6(0x199)]===_0xebcd74[_0x1a5ec6(0x189)]&&_0x15194e[_0x1a5ec6(0x182)]===_0xebcd74[_0x1a5ec6(0x190)]&&_0x15194e['relationType']===0x2;}}catch{}const _0x4637ff={...mutationData(_0xebcd74,![],_0x15194e?projectCrossRelation(_0x15194e):null),'verification':{'status':_0x4eb1de?_0x1a5ec6(0x165):'unconfirmed','verified':_0x4eb1de}};if(!_0x4eb1de){const _0x271d38=CliErrors[_0x1a5ec6(0x163)]('Cross-database\x20relation\x20'+_0x5b7ac9+_0x1a5ec6(0x1aa),_0x1a5ec6(0x16d));Object['defineProperty'](_0x271d38,_0x1a5ec6(0x15f),{'value':{..._0x4637ff,'candidates':_0x15c269[_0x1a5ec6(0x1a8)](projectCrossRelation)}});throw _0x271d38;}return{'ok':!![],'data':_0x4637ff,'message':'Cross-database\x20relation\x20'+_0x5b7ac9+_0x1a5ec6(0x185)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0xb0de(){const _0x572994=['1324099ONFare','1215092gYkhje','update','20LOYASs','39607ErHnLO','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','cross-relation-update','dataset','176538qSKZIu','1227460LyHTks','14DxXyDR','12lnvXZV','write','2036457VQWbfc','3671760RIAHDP'];a73_0xb0de=function(){return _0x572994;};return a73_0xb0de();}const a73_0x19d120=a73_0x2ba3;(function(_0x2e41de,_0x40bb00){const _0x2ca81f=a73_0x2ba3,_0x523921=_0x2e41de();while(!![]){try{const _0x416d13=-parseInt(_0x2ca81f(0xa5))/0x1*(parseInt(_0x2ca81f(0x9c))/0x2)+-parseInt(_0x2ca81f(0x9a))/0x3+parseInt(_0x2ca81f(0xa2))/0x4+-parseInt(_0x2ca81f(0x9b))/0x5+parseInt(_0x2ca81f(0x9d))/0x6*(-parseInt(_0x2ca81f(0xa1))/0x7)+parseInt(_0x2ca81f(0xa0))/0x8+parseInt(_0x2ca81f(0x9f))/0x9*(parseInt(_0x2ca81f(0xa4))/0xa);if(_0x416d13===_0x40bb00)break;else _0x523921['push'](_0x523921['shift']());}catch(_0x1ae935){_0x523921['push'](_0x523921['shift']());}}}(a73_0xb0de,0x3e59c));function a73_0x2ba3(_0x516517,_0x5a6005){_0x516517=_0x516517-0x97;const _0xb0de38=a73_0xb0de();let _0x2ba35c=_0xb0de38[_0x516517];return _0x2ba35c;}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';export const datasetCrossRelationUpdate={'service':a73_0x19d120(0x99),'command':a73_0x19d120(0x98),'description':a73_0x19d120(0x97),'risk':a73_0x19d120(0x9e),'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 _0x3e9877=>validateCrossRelation(_0x3e9877,'update'),'dryRun':_0x46e0b2=>previewCrossRelation(_0x46e0b2,a73_0x19d120(0xa3)),'execute':_0x220fda=>executeCrossRelation(_0x220fda,a73_0x19d120(0xa3),updateCrossDbRelation)};
|