@lovrabet/rabetbase-cli 2.5.0-beta.5 → 2.5.0
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/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/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/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/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/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/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-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/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/doctor.js +1 -1
- package/lib/commands/file/index.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/service.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/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/template.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/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/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/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/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/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/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/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.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/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/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.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 +2 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x615c44,_0x490b0a){const _0x429c08=a50_0x2703,_0x25e66e=_0x615c44();while(!![]){try{const _0x42323a=parseInt(_0x429c08(0x1f6))/0x1+parseInt(_0x429c08(0x1f1))/0x2+parseInt(_0x429c08(0x1f9))/0x3+parseInt(_0x429c08(0x1f4))/0x4*(parseInt(_0x429c08(0x1ed))/0x5)+-parseInt(_0x429c08(0x1fa))/0x6*(-parseInt(_0x429c08(0x1ea))/0x7)+-parseInt(_0x429c08(0x1ee))/0x8*(-parseInt(_0x429c08(0x1ef))/0x9)+parseInt(_0x429c08(0x1f3))/0xa*(-parseInt(_0x429c08(0x1ec))/0xb);if(_0x42323a===_0x490b0a)break;else _0x25e66e['push'](_0x25e66e['shift']());}catch(_0x185029){_0x25e66e['push'](_0x25e66e['shift']());}}}(a50_0x558b,0xedb22));function a50_0x2703(_0x20a0fb,_0x3ffaee){_0x20a0fb=_0x20a0fb-0x1ea;const _0x558b31=a50_0x558b();let _0x270348=_0x558b31[_0x20a0fb];return _0x270348;}export function validateAppcode(_0x5073f3){const _0x1bbde1=a50_0x2703,_0x1e98cb=_0x5073f3[_0x1bbde1(0x1f8)]();if(!_0x1e98cb)return{'valid':![],'message':_0x1bbde1(0x1f5)};if(_0x1e98cb[_0x1bbde1(0x1f2)]>0x64)return{'valid':![],'message':_0x1bbde1(0x1f7)};if(!/^[A-Za-z0-9_-]+$/[_0x1bbde1(0x1f0)](_0x1e98cb))return{'valid':![],'message':_0x1bbde1(0x1eb)};return{'valid':!![]};}function a50_0x558b(){const _0x22f7e5=['35784460VXmoEl','862056JDyOBb','App\x20Code\x20cannot\x20be\x20empty','266781iGuMfV','App\x20Code\x20cannot\x20exceed\x20100\x20characters','trim','4508730oZnXiW','830154ybuDFI','14IFrIUG','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','11BBSmDF','25KPPiSS','678544tXJKeY','117owycKe','test','650870vffJhr','length'];a50_0x558b=function(){return _0x22f7e5;};return a50_0x558b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x2de27a=a51_0x1e70;function a51_0x1aad(){const _0x48cfba=['defaultApp','delete','Global','3185452DvjvRC','3NuehJI','hasOwnProperty','config','key','prototype','394189HvGdlP','Missing\x20key\x20argument.','global','Top-level\x20key\x20\x22','has','riskLevel','bool','8660351HGIogy','6GuiTPH','297WFRwSj','224730bqwrft','trim','\x20config\x20delete\x20<key>\x20[--global]','boolean','4632185QNSBqx','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','\x22\x20is\x20not\x20deletable.','\x20already\x20absent','validation','249656KGmvTE','9931950XIQiyg'];a51_0x1aad=function(){return _0x48cfba;};return a51_0x1aad();}function a51_0x1e70(_0x4039f9,_0x4981f1){_0x4039f9=_0x4039f9-0x19a;const _0x1aad25=a51_0x1aad();let _0x1e70ed=_0x1aad25[_0x4039f9];return _0x1e70ed;}(function(_0x20559b,_0x24f582){const _0x57f3de=a51_0x1e70,_0x298990=_0x20559b();while(!![]){try{const _0x2d45fa=parseInt(_0x57f3de(0x1b2))/0x1+-parseInt(_0x57f3de(0x19e))/0x2+-parseInt(_0x57f3de(0x1ad))/0x3*(-parseInt(_0x57f3de(0x1ac))/0x4)+-parseInt(_0x57f3de(0x1a2))/0x5+parseInt(_0x57f3de(0x19c))/0x6*(-parseInt(_0x57f3de(0x19b))/0x7)+parseInt(_0x57f3de(0x1a7))/0x8*(parseInt(_0x57f3de(0x19d))/0x9)+parseInt(_0x57f3de(0x1a8))/0xa;if(_0x2d45fa===_0x24f582)break;else _0x298990['push'](_0x298990['shift']());}catch(_0x192ef8){_0x298990['push'](_0x298990['shift']());}}}(a51_0x1aad,0xe4e6f));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set(['inherit']),EXTRA_DELETABLE_KEYS=new Set([a51_0x2de27a(0x1a9)]);async function execute(_0x288260){const _0x31f1e0=a51_0x2de27a,_0x36e7bf=_0x288260['args'][0x0]?.[_0x31f1e0(0x19f)]();if(!_0x36e7bf)throw CliErrors['validation'](_0x31f1e0(0x1b3),'Usage:\x20'+CLI_BIN_NAME+_0x31f1e0(0x1a0));if(_0x36e7bf===_0x31f1e0(0x1b7))throw CliErrors[_0x31f1e0(0x1a6)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x36e7bf)&&!EXTRA_DELETABLE_KEYS['has'](_0x36e7bf)&&!LEGACY_DELETABLE_KEYS[_0x31f1e0(0x1b6)](_0x36e7bf))throw CliErrors[_0x31f1e0(0x1a6)](_0x31f1e0(0x1b5)+_0x36e7bf+_0x31f1e0(0x1a4),'Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.');const _0x19b128=resolveWriteScope({'global':_0x288260[_0x31f1e0(0x19a)](_0x31f1e0(0x1b4))}),_0x4c46b2=readScopedConfig(_0x19b128),_0x185028=Object[_0x31f1e0(0x1b1)][_0x31f1e0(0x1ae)]['call'](_0x4c46b2,_0x36e7bf);_0x185028&&(delete _0x4c46b2[_0x36e7bf],writeScopedConfig(_0x4c46b2,_0x19b128));const _0x238888=_0x19b128===_0x31f1e0(0x1b4)?_0x31f1e0(0x1ab):'Project';return{'ok':!![],'message':_0x185028?'✓\x20'+_0x238888+'\x20'+_0x36e7bf+'\x20deleted':'✓\x20'+_0x238888+'\x20'+_0x36e7bf+_0x31f1e0(0x1a5),'data':{'key':_0x36e7bf,'scope':_0x19b128,'changed':_0x185028}};}export const configDeleteDefinition={'service':a51_0x2de27a(0x1af),'command':a51_0x2de27a(0x1aa),'description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x2de27a(0x1b0),'description':'Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','required':!![]}],'flags':[{'name':a51_0x2de27a(0x1b4),'type':a51_0x2de27a(0x1a1),'description':a51_0x2de27a(0x1a3),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x33a07c=a52_0x1f85;(function(_0x33c3b8,_0x49c400){const _0x4615ce=a52_0x1f85,_0x1aa707=_0x33c3b8();while(!![]){try{const _0x19293c=parseInt(_0x4615ce(0x1f6))/0x1+parseInt(_0x4615ce(0x1f4))/0x2*(parseInt(_0x4615ce(0x1fe))/0x3)+parseInt(_0x4615ce(0x1fb))/0x4+-parseInt(_0x4615ce(0x1ef))/0x5*(-parseInt(_0x4615ce(0x1eb))/0x6)+-parseInt(_0x4615ce(0x1f5))/0x7+parseInt(_0x4615ce(0x1fc))/0x8+-parseInt(_0x4615ce(0x1f0))/0x9;if(_0x19293c===_0x49c400)break;else _0x1aa707['push'](_0x1aa707['shift']());}catch(_0x3903b8){_0x1aa707['push'](_0x1aa707['shift']());}}}(a52_0x2726,0x29861));function a52_0x2726(){const _0x1517c3=['2119166xlvPfU','243498VHlLJw','key','validation','Missing\x20key.','appcode','310532ZMCORG','1526744bmgQIg','\x20config\x20get\x20--key\x20<key>','6UtEmOo','Get\x20a\x20config\x20value\x20by\x20key','12JoNUsB','Key\x20not\x20found:\x20','get','object','63320PGEXjQ','1679733IwMECq','Usage:\x20','string','read','122154TEtqMZ'];a52_0x2726=function(){return _0x1517c3;};return a52_0x2726();}import{CliErrors}from'../../errors.js';function a52_0x1f85(_0x2bdb84,_0x1751e1){_0x2bdb84=_0x2bdb84-0x1eb;const _0x27269b=a52_0x2726();let _0x1f85d7=_0x27269b[_0x2bdb84];return _0x1f85d7;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1afb2a){const _0x3b256b=a52_0x1f85,_0x1d6680=_0x1afb2a['str'](_0x3b256b(0x1f7));if(!_0x1d6680)throw CliErrors['validation'](_0x3b256b(0x1f9),_0x3b256b(0x1f1)+CLI_BIN_NAME+_0x3b256b(0x1fd));const _0x5a6817=readConfig(),_0xa64e3c=_0x1d6680==='app'?_0x3b256b(0x1fa):_0x1d6680,_0x4cbb5e=_0x5a6817[_0xa64e3c];if(_0x4cbb5e===undefined)throw CliErrors[_0x3b256b(0x1f8)](_0x3b256b(0x1ec)+_0x1d6680);return{'ok':!![],'data':typeof _0x4cbb5e===_0x3b256b(0x1ee)?_0x4cbb5e:{[_0xa64e3c]:_0x4cbb5e},'message':typeof _0x4cbb5e==='object'?undefined:String(_0x4cbb5e)};}export const configGetDefinition={'service':'config','command':a52_0x33a07c(0x1ed),'description':a52_0x33a07c(0x1ff),'risk':a52_0x33a07c(0x1f3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x33a07c(0x1f7),'type':a52_0x33a07c(0x1f2),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a2aff,_0x21f126){const _0x4fb4b4=a53_0x2241,_0x3b24d0=_0x3a2aff();while(!![]){try{const _0x29742e=parseInt(_0x4fb4b4(0xb3))/0x1+-parseInt(_0x4fb4b4(0xb0))/0x2+-parseInt(_0x4fb4b4(0xb2))/0x3+-parseInt(_0x4fb4b4(0xb5))/0x4*(-parseInt(_0x4fb4b4(0xb6))/0x5)+parseInt(_0x4fb4b4(0xb1))/0x6*(parseInt(_0x4fb4b4(0xb4))/0x7)+parseInt(_0x4fb4b4(0xaf))/0x8+-parseInt(_0x4fb4b4(0xb7))/0x9;if(_0x29742e===_0x21f126)break;else _0x3b24d0['push'](_0x3b24d0['shift']());}catch(_0x36957c){_0x3b24d0['push'](_0x3b24d0['shift']());}}}(a53_0x3771,0xa1330));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a53_0x2241(_0x5a8153,_0x2c505e){_0x5a8153=_0x5a8153-0xaf;const _0x37710e=a53_0x3771();let _0x22412f=_0x37710e[_0x5a8153];return _0x22412f;}import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a53_0x3771(){const _0x391a23=['2949795pXkrBh','1063018JyaBKN','1489313AEzUDb','1916hPSWHT','12955aQZfWb','10608093vHFxWR','7448912FJrasU','1677050yIZcQR','12FcJfrb'];a53_0x3771=function(){return _0x391a23;};return a53_0x3771();}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a54_0x2464(_0xe861e5,_0x561fb2){_0xe861e5=_0xe861e5-0x1e0;const _0x1f939f=a54_0x1f93();let _0x246468=_0x1f939f[_0xe861e5];return _0x246468;}const a54_0x409f24=a54_0x2464;(function(_0x488a82,_0x477268){const _0x18cecc=a54_0x2464,_0x11cf6d=_0x488a82();while(!![]){try{const _0x4f108e=parseInt(_0x18cecc(0x1f0))/0x1*(-parseInt(_0x18cecc(0x1fc))/0x2)+-parseInt(_0x18cecc(0x1f7))/0x3+-parseInt(_0x18cecc(0x1fa))/0x4*(-parseInt(_0x18cecc(0x208))/0x5)+parseInt(_0x18cecc(0x1ed))/0x6+-parseInt(_0x18cecc(0x1f6))/0x7*(-parseInt(_0x18cecc(0x1e1))/0x8)+-parseInt(_0x18cecc(0x20a))/0x9+parseInt(_0x18cecc(0x201))/0xa;if(_0x4f108e===_0x477268)break;else _0x11cf6d['push'](_0x11cf6d['shift']());}catch(_0x14b9c3){_0x11cf6d['push'](_0x11cf6d['shift']());}}}(a54_0x1f93,0xd7690));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,resolveDomainFlags}from'../../config/domain-config.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';export const configInitFlags=[{'name':a54_0x409f24(0x1ef),'type':a54_0x409f24(0x1e0),'description':a54_0x409f24(0x200),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a54_0x409f24(0x1ea),'type':a54_0x409f24(0x1e0),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a54_0x409f24(0x1e4),'type':'string','description':a54_0x409f24(0x1fd)},{'name':a54_0x409f24(0x204),'type':a54_0x409f24(0x1e0),'description':a54_0x409f24(0x1fb)},{'name':a54_0x409f24(0x1f3),'type':'string','description':a54_0x409f24(0x203)},{'name':a54_0x409f24(0x1e3),'type':a54_0x409f24(0x1e0),'description':a54_0x409f24(0x1e5)},{'name':a54_0x409f24(0x1f2),'type':a54_0x409f24(0x1e0),'description':'Custom\x20knowledge-base\x20HTTPS\x20origin'},{'name':a54_0x409f24(0x1f5),'type':a54_0x409f24(0x1e0),'description':a54_0x409f24(0x1e2)}];async function resolveRegion(_0x3785c8){const _0x567b32=a54_0x409f24,_0x2015a5=_0x3785c8['str'](_0x567b32(0x1ef));if(_0x2015a5){if(!isEnabledLovrabetRegion(_0x2015a5))throw CliErrors[_0x567b32(0x1fe)](_0x567b32(0x202)+_0x2015a5+_0x567b32(0x209),_0x567b32(0x1e8)+ENABLED_LOVRABET_REGION_VALUES[_0x567b32(0x1f8)](',\x20'));return _0x2015a5;}if(_0x3785c8['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x567b32(0x1e7),'default':DEFAULT_LOVRABET_REGION,'choices':[{'name':'Mainland\x20China\x20(cn)','value':'cn'},{'name':_0x567b32(0x1eb),'value':'id'}]});}catch(_0x1c4c62){if(_0x1c4c62?.[_0x567b32(0x207)]===_0x567b32(0x1f9))throw CliErrors[_0x567b32(0x1ff)]();throw _0x1c4c62;}}export async function executeConfigInit(_0x3947ea){const _0x1222fc=a54_0x409f24,_0x63f1f5=resolveDomainFlags(_0x3947ea),_0x45e07c=Object['keys'](_0x63f1f5)['length']>0x0;if(_0x45e07c&&_0x3947ea['str'](_0x1222fc(0x1ef)))throw CliErrors[_0x1222fc(0x1fe)](_0x1222fc(0x206));const _0x418373=readScopedConfig(_0x1222fc(0x1f4));for(const _0xd60667 of DOMAIN_CONFIG_FIELDS)delete _0x418373[_0xd60667];for(const _0x147c22 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x418373[_0x147c22];let _0x3d9b23=null;if(_0x45e07c)delete _0x418373[_0x1222fc(0x1ef)],Object['assign'](_0x418373,_0x63f1f5);else{_0x3d9b23=await resolveRegion(_0x3947ea);if(_0x3d9b23===DEFAULT_LOVRABET_REGION)delete _0x418373['region'];else _0x418373[_0x1222fc(0x1ef)]=_0x3d9b23;}return writeScopedConfig(_0x418373,_0x1222fc(0x1f4)),{'ok':!![],'message':_0x45e07c?_0x1222fc(0x205)+Object['keys'](_0x63f1f5)[_0x1222fc(0x1f8)](',\x20')+'.':_0x1222fc(0x1ec)+_0x3d9b23+'.','data':{'mode':_0x45e07c?_0x1222fc(0x1e9):_0x1222fc(0x1e6),'region':_0x3d9b23,'domains':_0x63f1f5}};}function a54_0x1f93(){const _0x49149a=['Region\x20\x22','Custom\x20Runtime\x20HTTPS\x20origin','api-domain','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','name','75lkBIFE','\x22\x20is\x20not\x20currently\x20available.','1514520RxypSP','string','8439672rhXZhB','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','skill-domain','user-domain','Custom\x20SkillHub\x20HTTPS\x20origin','official','Select\x20Lovrabet\x20region','Available\x20regions:\x20','independent','domain-config','Indonesia\x20(id)','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','702942KUmHJQ','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','region','1etgPMu','init','kb-domain','runtime-domain','global','app-domain','7kJPBSi','737850xyrDah','join','ExitPromptError','253236AOooGo','Custom\x20platform\x20API\x20HTTPS\x20origin','2400886oYMfeL','Custom\x20User\x20HTTPS\x20origin','validation','cancelled','Official\x20Lovrabet\x20region:\x20cn\x20or\x20id','3752420QSNxiV'];a54_0x1f93=function(){return _0x49149a;};return a54_0x1f93();}export const configInitDefinition={'service':'config','command':a54_0x409f24(0x1f1),'description':a54_0x409f24(0x1ee),'risk':'write','confirmationDescription':'Updates\x20the\x20global\x20Rabetbase\x20region\x20or\x20independent-deployment\x20domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x1470d9=a55_0x9b6d;(function(_0x54a7cd,_0x451238){const _0x412423=a55_0x9b6d,_0x211f57=_0x54a7cd();while(!![]){try{const _0x34d79e=parseInt(_0x412423(0x124))/0x1*(-parseInt(_0x412423(0x129))/0x2)+parseInt(_0x412423(0x11d))/0x3*(parseInt(_0x412423(0x127))/0x4)+parseInt(_0x412423(0x11e))/0x5*(parseInt(_0x412423(0x125))/0x6)+-parseInt(_0x412423(0x11f))/0x7+-parseInt(_0x412423(0x11b))/0x8+-parseInt(_0x412423(0x123))/0x9+parseInt(_0x412423(0x121))/0xa;if(_0x34d79e===_0x451238)break;else _0x211f57['push'](_0x211f57['shift']());}catch(_0x4b0c4a){_0x211f57['push'](_0x211f57['shift']());}}}(a55_0x5b09,0x20730));import{readScopedConfig}from'../../commands/config/shared.js';function a55_0x9b6d(_0x467154,_0x460b1a){_0x467154=_0x467154-0x11a;const _0x5b0983=a55_0x5b09();let _0x9b6d94=_0x5b0983[_0x467154];return _0x9b6d94;}import{readConfig}from'../../utils/config.js';async function execute(_0x1d68b0){const _0x5ad2d8=a55_0x9b6d,_0x59efd9=_0x1d68b0['bool'](_0x5ad2d8(0x128))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x59efd9};}function a55_0x5b09(){const _0x455a11=['1094uiMSrg','List\x20all\x20config\x20values','boolean','44920KTSLYn','config','30DxFVPe','26515iJUBjY','187565qhoQEh','list','2341410AZEWPD','read','1621917euIHAF','85aTYTGf','78HrpcOc','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','35580CUzGlW','global'];a55_0x5b09=function(){return _0x455a11;};return a55_0x5b09();}export const configListDefinition={'service':a55_0x1470d9(0x11c),'command':a55_0x1470d9(0x120),'description':a55_0x1470d9(0x12a),'risk':a55_0x1470d9(0x122),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a55_0x1470d9(0x128),'type':a55_0x1470d9(0x11a),'description':a55_0x1470d9(0x126),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x19f3ec=a56_0x6925;(function(_0x56f85c,_0x19090c){const _0x384386=a56_0x6925,_0xa20c98=_0x56f85c();while(!![]){try{const _0x491b3e=-parseInt(_0x384386(0x16e))/0x1*(-parseInt(_0x384386(0x187))/0x2)+parseInt(_0x384386(0x196))/0x3*(parseInt(_0x384386(0x18f))/0x4)+parseInt(_0x384386(0x18b))/0x5+-parseInt(_0x384386(0x170))/0x6+parseInt(_0x384386(0x172))/0x7+-parseInt(_0x384386(0x190))/0x8*(-parseInt(_0x384386(0x16b))/0x9)+parseInt(_0x384386(0x18e))/0xa*(-parseInt(_0x384386(0x177))/0xb);if(_0x491b3e===_0x19090c)break;else _0xa20c98['push'](_0xa20c98['shift']());}catch(_0x56c43c){_0xa20c98['push'](_0xa20c98['shift']());}}}(a56_0xd56e,0x4e444));import{CliErrors}from'../../errors.js';function a56_0x6925(_0x582937,_0x2d9f0d){_0x582937=_0x582937-0x169;const _0xd56e42=a56_0xd56e();let _0x692531=_0xd56e42[_0x582937];return _0x692531;}import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';function a56_0xd56e(){const _0x33c239=['join','write','Project','Settable\x20top-level\x20keys:\x20','bool','Config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20workspace\x20add\x20<name>\x20--appcode\x20','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','config','4kEmPgs','string','keys','appcode','1866220aCCEdb','Usage:\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','90AeNKTc','47204rGlJVJ','40iGUJKq','validation','key','Use\x20`','locale','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','93UuqGht','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','object','Missing\x20key.','Set\x20a\x20config\x20value','Global','global','116541pFPMjd','env','value','291887BHrHrR','includes','110418wVjOmM','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','4403238okxOCz','set','Invalid\x20locale\x20value.','str','apps','2050455zILXnH','Missing\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','riskLevel','length'];a56_0xd56e=function(){return _0x33c239;};return a56_0xd56e();}async function execute(_0x20211f){const _0x51e58d=a56_0x6925,_0x4fd1aa=_0x20211f[_0x51e58d(0x175)](_0x51e58d(0x192)),_0x5a3b75=_0x20211f[_0x51e58d(0x175)](_0x51e58d(0x16d));if(!_0x4fd1aa)throw CliErrors[_0x51e58d(0x191)](_0x51e58d(0x19b),_0x51e58d(0x18c)+CLI_BIN_NAME+_0x51e58d(0x184));if(_0x5a3b75===undefined||_0x5a3b75==='')throw CliErrors[_0x51e58d(0x191)](_0x51e58d(0x178),'Usage:\x20'+CLI_BIN_NAME+_0x51e58d(0x184));let _0x3545ce=_0x4fd1aa,_0x4a46e3=_0x5a3b75;if(_0x5a3b75['length']>0x1f4)throw CliErrors[_0x51e58d(0x191)](_0x51e58d(0x195));if(_0x4fd1aa===_0x51e58d(0x17a))throw CliErrors['validation'](_0x51e58d(0x182));if(!isTopLevelConfigKey(_0x4fd1aa))throw CliErrors[_0x51e58d(0x191)]('Top-level\x20key\x20\x22'+_0x4fd1aa+'\x22\x20is\x20not\x20settable.',_0x51e58d(0x17f)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x4fd1aa]&&!CONFIG_ENUM_VALUES[_0x4fd1aa][_0x51e58d(0x16f)](_0x5a3b75))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x4fd1aa+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x4fd1aa][_0x51e58d(0x17c)](',\x20'));if(_0x4fd1aa===_0x51e58d(0x194)&&!normalizeLocale(_0x5a3b75))throw CliErrors[_0x51e58d(0x191)](_0x51e58d(0x174),_0x51e58d(0x179));DOMAIN_CONFIG_FIELDS[_0x51e58d(0x16f)](_0x4fd1aa)&&(_0x4a46e3=normalizeDomainOrigin(_0x4fd1aa,_0x5a3b75));const _0x1950d4={'global':_0x20211f[_0x51e58d(0x180)](_0x51e58d(0x16a))},_0x399ab3=resolveWriteScope(_0x1950d4),_0x39e7d6=readScopedConfig(_0x399ab3);_0x4fd1aa==='app'&&(_0x3545ce='appcode',delete _0x39e7d6['app']);_0x4fd1aa===_0x51e58d(0x194)&&(_0x4a46e3=normalizeLocale(_0x5a3b75));if(_0x4fd1aa==='env'){_0x4a46e3=normalizeEnv(_0x5a3b75);if(!isProduction(_0x4a46e3)&&!isDaily(_0x4a46e3))throw CliErrors[_0x51e58d(0x191)](_0x51e58d(0x171),_0x51e58d(0x199));}if(_0x4fd1aa===_0x51e58d(0x18a)){const _0x367368=_0x39e7d6[_0x51e58d(0x176)]&&typeof _0x39e7d6[_0x51e58d(0x176)]===_0x51e58d(0x19a)?Object[_0x51e58d(0x189)](_0x39e7d6['apps']):[];if(_0x367368[_0x51e58d(0x17b)]>0x0)throw CliErrors[_0x51e58d(0x191)](_0x51e58d(0x18d),_0x51e58d(0x193)+CLI_BIN_NAME+_0x51e58d(0x183)+_0x4a46e3+'`,\x20`'+CLI_BIN_NAME+_0x51e58d(0x185));const _0x4731fe=buildCanonicalProjectConfig({..._0x39e7d6},{'appCodes':[_0x4a46e3],'env':typeof _0x39e7d6[_0x51e58d(0x16c)]===_0x51e58d(0x188)?_0x39e7d6[_0x51e58d(0x16c)]:undefined});writeScopedConfig(_0x4731fe,_0x399ab3);const _0x153138=_0x399ab3==='global'?_0x51e58d(0x169):'Project';return{'ok':!![],'message':'✓\x20'+_0x153138+'\x20appcode\x20set\x20to:\x20'+_0x4a46e3+_0x51e58d(0x198)};}_0x39e7d6[_0x3545ce]=_0x4a46e3,writeScopedConfig(_0x39e7d6,_0x399ab3);const _0x350a25=_0x399ab3===_0x51e58d(0x16a)?_0x51e58d(0x169):_0x51e58d(0x17e);return{'ok':!![],'message':'✓\x20'+_0x350a25+'\x20'+_0x3545ce+'\x20set\x20to:\x20'+_0x4a46e3};}export const configSetDefinition={'service':a56_0x19f3ec(0x186),'command':a56_0x19f3ec(0x173),'description':a56_0x19f3ec(0x19c),'risk':a56_0x19f3ec(0x17d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a56_0x19f3ec(0x188),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a56_0x19f3ec(0x16d),'type':a56_0x19f3ec(0x188),'description':a56_0x19f3ec(0x181),'required':!![]},{'name':a56_0x19f3ec(0x16a),'type':'boolean','description':a56_0x19f3ec(0x197),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a0da3,_0xb5cf3e){var _0x4642c9=a57_0x2810,_0x18961e=_0x4a0da3();while(!![]){try{var _0x2d8ded=-parseInt(_0x4642c9(0x88))/0x1*(-parseInt(_0x4642c9(0x85))/0x2)+-parseInt(_0x4642c9(0x83))/0x3+-parseInt(_0x4642c9(0x8b))/0x4*(-parseInt(_0x4642c9(0x8d))/0x5)+parseInt(_0x4642c9(0x86))/0x6+-parseInt(_0x4642c9(0x82))/0x7*(-parseInt(_0x4642c9(0x81))/0x8)+-parseInt(_0x4642c9(0x8e))/0x9*(parseInt(_0x4642c9(0x87))/0xa)+-parseInt(_0x4642c9(0x8c))/0xb;if(_0x2d8ded===_0xb5cf3e)break;else _0x18961e['push'](_0x18961e['shift']());}catch(_0x9cf5df){_0x18961e['push'](_0x18961e['shift']());}}}(a57_0x136a,0x33aec));import{CLI_BIN_NAME}from'../../constant/cli.js';function a57_0x2810(_0x4f1b47,_0x1a5b09){_0x4f1b47=_0x4f1b47-0x81;var _0x136a39=a57_0x136a();var _0x2810bc=_0x136a39[_0x4f1b47];return _0x2810bc;}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 a57_0x136a(){var _0x53c7e7=['5iGhjtd','110043FPtefL','48LsdZOy','309274mgHSWP','767178SYiEhB','project','4xiNfqk','2222130YeDxlE','70ceiQFR','161493XtlFzs','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','global','594604ZdBDap','6094847smGIBG'];a57_0x136a=function(){return _0x53c7e7;};return a57_0x136a();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x31a626){var _0x193bbb=a57_0x2810;if(_0x31a626[_0x193bbb(0x8a)])return _0x193bbb(0x8a);if(!isInProject())throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x193bbb(0x89));return _0x193bbb(0x84);}export function readScopedConfig(_0x33360b){return readConfigFile(resolveWriteConfigPath(_0x33360b));}export function writeScopedConfig(_0x52fe16,_0x4fde6f){writeConfigFile(resolveWriteConfigPath(_0x4fde6f),_0x52fe16);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a58_0x3f0364=a58_0x3e8a;(function(_0x4ad3b6,_0x1a7b9c){const _0x4e0045=a58_0x3e8a,_0x3a60b6=_0x4ad3b6();while(!![]){try{const _0x36cdb3=parseInt(_0x4e0045(0x1bc))/0x1+parseInt(_0x4e0045(0x1d6))/0x2*(parseInt(_0x4e0045(0x1d5))/0x3)+parseInt(_0x4e0045(0x1e2))/0x4+parseInt(_0x4e0045(0x1a7))/0x5+-parseInt(_0x4e0045(0x1dd))/0x6*(parseInt(_0x4e0045(0x1d0))/0x7)+-parseInt(_0x4e0045(0x1ca))/0x8+-parseInt(_0x4e0045(0x1cb))/0x9;if(_0x36cdb3===_0x1a7b9c)break;else _0x3a60b6['push'](_0x3a60b6['shift']());}catch(_0x37c21b){_0x3a60b6['push'](_0x3a60b6['shift']());}}}(a58_0x36a4,0xbf737));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';function a58_0x36a4(){const _0x1431ab=['No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','ungrouped','code','validation','10083vEpUwm','604JGxWCa','appCode','datasetId','Expected\x20','hasOwnProperty','isFinite','data','26214EcndRN','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','POST','write','matched','6229668EOULyW','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed,\x20or\x20the\x20reserved\x20value\x20ungrouped\x20to\x20clear\x20it','parse','--business-group\x20is\x20required','2703640szzfIg','DB_TABLE','extend','expect-business-group','found','str','/smartapi/question/er-config/business-group/edit','--code\x20is\x20required','business-group','backend','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','dataset','call','value','payload','Expectation\x20mismatch\x20at\x20businessGroup','trim','source','length','dbtableConfig','apiError','338012oYaZoN','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','string','message','businessGroup','stringify','modelCode','sourceType','datasetCode','number','datasetName','Update\x20business\x20scenario\x20group','name','9907224DVYdBo','9868941QVrsVN',',\x20actual\x20','METADATA','unchanged','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','532AfFcwb'];a58_0x36a4=function(){return _0x1431ab;};return a58_0x36a4();}import{CliErrors}from'../../errors.js';const BACKEND_PATH=a58_0x3f0364(0x1ad),UNGROUPED_BUSINESS_GROUP=a58_0x3f0364(0x1d2);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x36475b,input:_0x368204,dryRun:_0x15d4eb}){const _0x22d656=a58_0x3f0364;validateInput(_0x368204);const _0x4e111f=normalizeBusinessGroupArgument(_0x368204['businessGroup']),_0x4f52d2=await getDatasetDetail(_0x368204[_0x22d656(0x1d3)]),_0x5c790b=resolveBusinessGroupDataset(_0x4f52d2,_0x368204[_0x22d656(0x1d3)]),_0x27dc15=loadCurrentBusinessGroup(_0x4f52d2,_0x5c790b);assertExpectedBusinessGroup(_0x27dc15,_0x368204['expectBusinessGroup']);const _0x115a1b=buildBackendPayload(_0x36475b,_0x5c790b,_0x4e111f),_0x291997=_0x27dc15!==_0x4e111f;let _0x32bb4f;if(_0x291997&&!_0x15d4eb){await updateErBusinessGroup(_0x115a1b);const _0x12b209=await getDatasetDetail(_0x5c790b['code']),_0x4ab811=resolveBusinessGroupDataset(_0x12b209,_0x5c790b[_0x22d656(0x1d3)]),_0x3d572a=loadCurrentBusinessGroup(_0x12b209,_0x4ab811);if(_0x3d572a!==_0x4e111f)throw CliErrors[_0x22d656(0x1bb)](_0x22d656(0x1cf),_0x22d656(0x1d9)+JSON[_0x22d656(0x1c2)](_0x4e111f)+_0x22d656(0x1cc)+JSON[_0x22d656(0x1c2)](_0x3d572a)+'.');_0x32bb4f={'verified':!![],'status':_0x22d656(0x1e1),'afterReadback':{'businessGroup':_0x3d572a}};}else!_0x291997&&(_0x32bb4f={'verified':!![],'status':_0x22d656(0x1ce),'afterReadback':{'businessGroup':_0x27dc15}});const _0xafa9b6={'operation':'update','appCode':_0x36475b,'selector':{'code':_0x5c790b[_0x22d656(0x1d3)]},'dataset':_0x5c790b,'before':{'businessGroup':_0x27dc15},'after':{'businessGroup':_0x4e111f},'changed':_0x291997,'dryRun':_0x15d4eb,'submitted':_0x291997&&!_0x15d4eb,'backend':{'method':_0x22d656(0x1df),'path':BACKEND_PATH,'payload':_0x115a1b},..._0x32bb4f?{'verification':_0x32bb4f}:{},'warnings':[]};return{'ok':!![],'data':_0xafa9b6,'message':_0x291997?_0x15d4eb?_0x22d656(0x1bd)+_0x5c790b[_0x22d656(0x1d3)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x5c790b[_0x22d656(0x1d3)]:_0x22d656(0x1d1)+_0x5c790b[_0x22d656(0x1d3)]};}export const datasetBusinessGroupUpdate={'service':a58_0x3f0364(0x1b2),'command':'business-group-update','description':a58_0x3f0364(0x1c8),'risk':a58_0x3f0364(0x1e0),'flags':[CODE_FLAG,{'name':a58_0x3f0364(0x1af),'type':'string','required':!![],'description':a58_0x3f0364(0x1e3)},{'name':a58_0x3f0364(0x1aa),'type':a58_0x3f0364(0x1bf),'required':![],'description':a58_0x3f0364(0x1b1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3b9797){validateInput(readBusinessGroupUpdateInput(_0x3b9797));},async 'dryRun'(_0x109d6b){const _0x586b38=a58_0x3f0364,_0x2e295a=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x109d6b[_0x586b38(0x1d7)],'input':readBusinessGroupUpdateInput(_0x109d6b),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x2e295a[_0x586b38(0x1dc)][_0x586b38(0x1b0)][_0x586b38(0x1b5)],'description':_0x2e295a[_0x586b38(0x1c0)],..._0x2e295a[_0x586b38(0x1dc)]};},async 'execute'(_0x58f305){const _0x4184d3=a58_0x3f0364;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x58f305[_0x4184d3(0x1d7)],'input':readBusinessGroupUpdateInput(_0x58f305),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x24b493){const _0x15cddd=a58_0x3f0364,_0x2ddbc7=_0x24b493[_0x15cddd(0x1ac)](_0x15cddd(0x1aa));return{'code':trim(_0x24b493['str'](_0x15cddd(0x1d3))),'businessGroup':_0x24b493[_0x15cddd(0x1ac)](_0x15cddd(0x1af)),'expectBusinessGroup':_0x2ddbc7===undefined||_0x2ddbc7===''?undefined:_0x2ddbc7};}function validateInput(_0x4c0a84){const _0x4ae2eb=a58_0x3f0364;if(!trim(_0x4c0a84[_0x4ae2eb(0x1d3)]))throw CliErrors[_0x4ae2eb(0x1d4)](_0x4ae2eb(0x1ae));if(_0x4c0a84['businessGroup']===undefined)throw CliErrors['validation'](_0x4ae2eb(0x1a6));}function resolveBusinessGroupDataset(_0x5cc217,_0xec4440){const _0x43e5b9=a58_0x3f0364,_0x577e3c=asPlainObject(_0x5cc217[_0x43e5b9(0x1b2)]),_0x4bf064=asPlainObject(_0x5cc217[_0x43e5b9(0x1ba)]),_0x232f4a=resolveSourceType(_0x5cc217,_0x577e3c,_0x4bf064),_0x1431bf=firstString(_0x5cc217[_0x43e5b9(0x1c3)],_0x5cc217[_0x43e5b9(0x1d3)],_0x577e3c[_0x43e5b9(0x1c5)],_0xec4440)||_0xec4440;return{'id':firstNumber(_0x5cc217['modelId'],_0x5cc217['id'],_0x577e3c['datasetId'])??firstString(_0x5cc217['modelId'],_0x5cc217['id'],_0x577e3c[_0x43e5b9(0x1d8)])??null,'code':_0x1431bf,'name':firstString(_0x5cc217[_0x43e5b9(0x1c9)],_0x577e3c[_0x43e5b9(0x1c7)],_0x577e3c[_0x43e5b9(0x1c9)])||null,'sourceType':_0x232f4a};}function resolveSourceType(_0x40a7d6,_0x5d0369,_0x57dd6a){const _0x4f12f3=a58_0x3f0364,_0x4fb66d=firstString(_0x40a7d6[_0x4f12f3(0x1b8)],_0x40a7d6[_0x4f12f3(0x1c4)],_0x5d0369[_0x4f12f3(0x1b8)],_0x5d0369[_0x4f12f3(0x1c4)])?.[_0x4f12f3(0x1b7)]()['toUpperCase']();if(_0x4fb66d===_0x4f12f3(0x1a8)||_0x4fb66d===_0x4f12f3(0x1cd))return _0x4fb66d;if(Object['keys'](_0x57dd6a)[_0x4f12f3(0x1b9)]>0x0)return _0x4f12f3(0x1a8);throw CliErrors[_0x4f12f3(0x1d4)](_0x4f12f3(0x1be));}function loadCurrentBusinessGroup(_0x2830bd,_0x22eb1f){const _0x1b474d=a58_0x3f0364,_0x54ba82=readBusinessGroupFromDatasetDetail(_0x2830bd,_0x22eb1f['sourceType']);if(_0x54ba82[_0x1b474d(0x1ab)])return normalizeBusinessGroup(_0x54ba82[_0x1b474d(0x1b4)]);if(_0x22eb1f[_0x1b474d(0x1c4)]===_0x1b474d(0x1cd))return'';throw CliErrors[_0x1b474d(0x1d4)]('Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.',_0x1b474d(0x1de));}function readBusinessGroupFromDatasetDetail(_0x3f0011,_0x41004f){const _0x59f08b=a58_0x3f0364,_0x3799b4=asPlainObject(_0x3f0011[_0x59f08b(0x1b2)]),_0x367da7=firstPresent(_0x3f0011[_0x59f08b(0x1c1)]);if(_0x367da7['found'])return _0x367da7;const _0x148280=firstPresent(_0x3799b4[_0x59f08b(0x1c1)]);if(_0x148280[_0x59f08b(0x1ab)])return _0x148280;if(_0x41004f===_0x59f08b(0x1a8))return{'found':![]};const _0x41311b=readBusinessGroupFromExtend(_0x3f0011[_0x59f08b(0x1a9)]);if(_0x41311b['found'])return _0x41311b;return readBusinessGroupFromExtend(_0x3799b4[_0x59f08b(0x1a9)]);}function readBusinessGroupFromExtend(_0x4909ad){const _0x31e5bd=a58_0x3f0364;if(_0x4909ad===undefined||_0x4909ad===null||_0x4909ad==='')return{'found':![]};if(typeof _0x4909ad===_0x31e5bd(0x1bf))try{const _0x514aba=JSON[_0x31e5bd(0x1e4)](_0x4909ad);return readBusinessGroupFromExtend(_0x514aba);}catch{return{'found':![]};}const _0x1f549e=asPlainObject(_0x4909ad);if(Object['prototype'][_0x31e5bd(0x1da)][_0x31e5bd(0x1b3)](_0x1f549e,_0x31e5bd(0x1c1)))return{'found':!![],'value':_0x1f549e[_0x31e5bd(0x1c1)]};return{'found':![]};}function firstPresent(..._0x5db198){for(const _0x240ad0 of _0x5db198){if(_0x240ad0!==undefined&&_0x240ad0!==null)return{'found':!![],'value':_0x240ad0};}return{'found':![]};}function a58_0x3e8a(_0x649732,_0xaf468c){_0x649732=_0x649732-0x1a6;const _0x36a4b9=a58_0x36a4();let _0x3e8ac8=_0x36a4b9[_0x649732];return _0x3e8ac8;}function assertExpectedBusinessGroup(_0x256648,_0x2bb2d7){const _0x5ace63=a58_0x3f0364;if(_0x2bb2d7===undefined)return;const _0x4a1599=normalizeBusinessGroupArgument(_0x2bb2d7);if(_0x256648!==_0x4a1599)throw CliErrors[_0x5ace63(0x1d4)](_0x5ace63(0x1b6),_0x5ace63(0x1d9)+JSON[_0x5ace63(0x1c2)](_0x4a1599)+_0x5ace63(0x1cc)+JSON[_0x5ace63(0x1c2)](_0x256648));}function buildBackendPayload(_0x3f3245,_0x18e166,_0x349851){const _0xc036fb=a58_0x3f0364;return{'appCode':_0x3f3245,'datasetCode':_0x18e166[_0xc036fb(0x1d3)],'businessGroup':_0x349851};}function normalizeBusinessGroup(_0x197f60){const _0x5b2326=a58_0x3f0364;if(_0x197f60===undefined||_0x197f60===null)return'';return String(_0x197f60)[_0x5b2326(0x1b7)]();}function normalizeBusinessGroupArgument(_0x112dfe){const _0x4ad919=normalizeBusinessGroup(_0x112dfe);return _0x4ad919===UNGROUPED_BUSINESS_GROUP?'':_0x4ad919;}function asPlainObject(_0x4f16e5){if(!_0x4f16e5||typeof _0x4f16e5!=='object'||Array['isArray'](_0x4f16e5))return{};return _0x4f16e5;}function firstString(..._0x91e6ff){const _0x41a288=a58_0x3f0364;for(const _0x453afc of _0x91e6ff){if(typeof _0x453afc===_0x41a288(0x1bf)&&_0x453afc[_0x41a288(0x1b7)]())return _0x453afc[_0x41a288(0x1b7)]();if(typeof _0x453afc===_0x41a288(0x1c6)&&Number[_0x41a288(0x1db)](_0x453afc))return String(_0x453afc);}return undefined;}function firstNumber(..._0x10a53f){const _0x54e438=a58_0x3f0364;for(const _0x52f46b of _0x10a53f){if(typeof _0x52f46b===_0x54e438(0x1c6)&&Number[_0x54e438(0x1db)](_0x52f46b))return _0x52f46b;if(typeof _0x52f46b===_0x54e438(0x1bf)&&_0x52f46b['trim']()&&Number[_0x54e438(0x1db)](Number(_0x52f46b)))return Number(_0x52f46b);}return null;}function trim(_0x236b64){const _0x57adff=a58_0x3f0364;return String(_0x236b64||'')[_0x57adff(0x1b7)]();}
|
|
1
|
+
const a58_0xa12b04=a58_0x3f45;(function(_0x244438,_0x440361){const _0x4af63c=a58_0x3f45,_0x36ae19=_0x244438();while(!![]){try{const _0x2f6e32=parseInt(_0x4af63c(0x1a8))/0x1+parseInt(_0x4af63c(0x1b0))/0x2+parseInt(_0x4af63c(0x1bd))/0x3*(parseInt(_0x4af63c(0x1af))/0x4)+parseInt(_0x4af63c(0x1d8))/0x5+parseInt(_0x4af63c(0x1cb))/0x6*(-parseInt(_0x4af63c(0x1b6))/0x7)+parseInt(_0x4af63c(0x1ae))/0x8+-parseInt(_0x4af63c(0x1d5))/0x9;if(_0x2f6e32===_0x440361)break;else _0x36ae19['push'](_0x36ae19['shift']());}catch(_0x27804e){_0x36ae19['push'](_0x36ae19['shift']());}}}(a58_0x414b,0xa4e9d));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';function a58_0x3f45(_0x42bdd7,_0x5a67b6){_0x42bdd7=_0x42bdd7-0x19a;const _0x414b49=a58_0x414b();let _0x3f45da=_0x414b49[_0x42bdd7];return _0x3f45da;}import{CliErrors}from'../../errors.js';const BACKEND_PATH=a58_0xa12b04(0x1a7),UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x20ca62,input:_0x17c8ba,dryRun:_0xa2172d}){const _0x43a582=a58_0xa12b04;validateInput(_0x17c8ba);const _0x4d583b=normalizeBusinessGroupArgument(_0x17c8ba[_0x43a582(0x1d0)]),_0x503fe4=await getDatasetDetail(_0x17c8ba[_0x43a582(0x1ab)]),_0xc45cba=resolveBusinessGroupDataset(_0x503fe4,_0x17c8ba[_0x43a582(0x1ab)]),_0x5f59ab=loadCurrentBusinessGroup(_0x503fe4,_0xc45cba);assertExpectedBusinessGroup(_0x5f59ab,_0x17c8ba[_0x43a582(0x1c5)]);const _0x1d7a02=buildBackendPayload(_0x20ca62,_0xc45cba,_0x4d583b),_0x41aef0=_0x5f59ab!==_0x4d583b;let _0x353efe;if(_0x41aef0&&!_0xa2172d){await updateErBusinessGroup(_0x1d7a02);const _0x31f46d=await getDatasetDetail(_0xc45cba[_0x43a582(0x1ab)]),_0x1674be=resolveBusinessGroupDataset(_0x31f46d,_0xc45cba[_0x43a582(0x1ab)]),_0x5d57b2=loadCurrentBusinessGroup(_0x31f46d,_0x1674be);if(_0x5d57b2!==_0x4d583b)throw CliErrors[_0x43a582(0x1c6)](_0x43a582(0x1d3),_0x43a582(0x1cd)+JSON['stringify'](_0x4d583b)+_0x43a582(0x1b1)+JSON[_0x43a582(0x1b8)](_0x5d57b2)+'.');_0x353efe={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x5d57b2}};}else!_0x41aef0&&(_0x353efe={'verified':!![],'status':_0x43a582(0x19e),'afterReadback':{'businessGroup':_0x5f59ab}});const _0x148951={'operation':_0x43a582(0x1c4),'appCode':_0x20ca62,'selector':{'code':_0xc45cba[_0x43a582(0x1ab)]},'dataset':_0xc45cba,'before':{'businessGroup':_0x5f59ab},'after':{'businessGroup':_0x4d583b},'changed':_0x41aef0,'dryRun':_0xa2172d,'submitted':_0x41aef0&&!_0xa2172d,'backend':{'method':_0x43a582(0x1a6),'path':BACKEND_PATH,'payload':_0x1d7a02},..._0x353efe?{'verification':_0x353efe}:{},'warnings':[]};return{'ok':!![],'data':_0x148951,'message':_0x41aef0?_0xa2172d?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0xc45cba[_0x43a582(0x1ab)]:_0x43a582(0x1c8)+_0xc45cba[_0x43a582(0x1ab)]:_0x43a582(0x1bf)+_0xc45cba[_0x43a582(0x1ab)]};}export const datasetBusinessGroupUpdate={'service':'dataset','command':a58_0xa12b04(0x1ac),'description':a58_0xa12b04(0x1b3),'risk':a58_0xa12b04(0x1a4),'flags':[CODE_FLAG,{'name':'business-group','type':'string','required':!![],'description':a58_0xa12b04(0x19f)},{'name':'expect-business-group','type':a58_0xa12b04(0x19d),'required':![],'description':a58_0xa12b04(0x1a3)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x539a38){validateInput(readBusinessGroupUpdateInput(_0x539a38));},async 'dryRun'(_0x1fe315){const _0x2f5a17=a58_0xa12b04,_0x5251d1=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x1fe315[_0x2f5a17(0x1d4)],'input':readBusinessGroupUpdateInput(_0x1fe315),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x5251d1['data']['backend'][_0x2f5a17(0x1d2)],'description':_0x5251d1[_0x2f5a17(0x1aa)],..._0x5251d1['data']};},async 'execute'(_0x7d26f7){const _0x390451=a58_0xa12b04;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x7d26f7[_0x390451(0x1d4)],'input':readBusinessGroupUpdateInput(_0x7d26f7),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x54c2d0){const _0x471919=a58_0xa12b04,_0x167ec5=_0x54c2d0[_0x471919(0x1b7)](_0x471919(0x1b9));return{'code':trim(_0x54c2d0[_0x471919(0x1b7)](_0x471919(0x1ab))),'businessGroup':_0x54c2d0[_0x471919(0x1b7)]('business-group'),'expectBusinessGroup':_0x167ec5===undefined||_0x167ec5===''?undefined:_0x167ec5};}function validateInput(_0x39d589){const _0x41b6ce=a58_0xa12b04;if(!trim(_0x39d589[_0x41b6ce(0x1ab)]))throw CliErrors[_0x41b6ce(0x1b2)](_0x41b6ce(0x1a0));if(_0x39d589[_0x41b6ce(0x1d0)]===undefined)throw CliErrors[_0x41b6ce(0x1b2)]('--business-group\x20is\x20required');}function resolveBusinessGroupDataset(_0x32401a,_0x4e46f9){const _0x4ab2fa=a58_0xa12b04,_0x21aa53=asPlainObject(_0x32401a['dataset']),_0x54984f=asPlainObject(_0x32401a[_0x4ab2fa(0x1d1)]),_0x2906b0=resolveSourceType(_0x32401a,_0x21aa53,_0x54984f),_0x1c4e66=firstString(_0x32401a[_0x4ab2fa(0x1cc)],_0x32401a[_0x4ab2fa(0x1ab)],_0x21aa53[_0x4ab2fa(0x1ba)],_0x4e46f9)||_0x4e46f9;return{'id':firstNumber(_0x32401a[_0x4ab2fa(0x1a2)],_0x32401a['id'],_0x21aa53[_0x4ab2fa(0x1c2)])??firstString(_0x32401a['modelId'],_0x32401a['id'],_0x21aa53[_0x4ab2fa(0x1c2)])??null,'code':_0x1c4e66,'name':firstString(_0x32401a[_0x4ab2fa(0x19a)],_0x21aa53[_0x4ab2fa(0x1a1)],_0x21aa53[_0x4ab2fa(0x19a)])||null,'sourceType':_0x2906b0};}function resolveSourceType(_0x52dd29,_0x265a51,_0x89a173){const _0x5597f1=a58_0xa12b04,_0x3bcd2b=firstString(_0x52dd29[_0x5597f1(0x1c3)],_0x52dd29[_0x5597f1(0x1d7)],_0x265a51[_0x5597f1(0x1c3)],_0x265a51['sourceType'])?.[_0x5597f1(0x1ca)]()['toUpperCase']();if(_0x3bcd2b==='DB_TABLE'||_0x3bcd2b===_0x5597f1(0x1be))return _0x3bcd2b;if(Object[_0x5597f1(0x1ad)](_0x89a173)[_0x5597f1(0x1c0)]>0x0)return _0x5597f1(0x1b5);throw CliErrors[_0x5597f1(0x1b2)]('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x8a2321,_0xb6745b){const _0x36daa1=a58_0xa12b04,_0x550232=readBusinessGroupFromDatasetDetail(_0x8a2321,_0xb6745b['sourceType']);if(_0x550232[_0x36daa1(0x1b4)])return normalizeBusinessGroup(_0x550232[_0x36daa1(0x1bb)]);if(_0xb6745b[_0x36daa1(0x1d7)]===_0x36daa1(0x1be))return'';throw CliErrors[_0x36daa1(0x1b2)](_0x36daa1(0x19c),_0x36daa1(0x1c1));}function readBusinessGroupFromDatasetDetail(_0x48873b,_0x5582bb){const _0x5b92ef=a58_0xa12b04,_0x604b2=asPlainObject(_0x48873b[_0x5b92ef(0x1a5)]),_0x51e08c=firstPresent(_0x48873b[_0x5b92ef(0x1d0)]);if(_0x51e08c[_0x5b92ef(0x1b4)])return _0x51e08c;const _0x4df39c=firstPresent(_0x604b2[_0x5b92ef(0x1d0)]);if(_0x4df39c[_0x5b92ef(0x1b4)])return _0x4df39c;if(_0x5582bb===_0x5b92ef(0x1b5))return{'found':![]};const _0x199fa5=readBusinessGroupFromExtend(_0x48873b[_0x5b92ef(0x1cf)]);if(_0x199fa5['found'])return _0x199fa5;return readBusinessGroupFromExtend(_0x604b2[_0x5b92ef(0x1cf)]);}function readBusinessGroupFromExtend(_0x33bc9b){const _0x32caec=a58_0xa12b04;if(_0x33bc9b===undefined||_0x33bc9b===null||_0x33bc9b==='')return{'found':![]};if(typeof _0x33bc9b==='string')try{const _0x3e35fe=JSON['parse'](_0x33bc9b);return readBusinessGroupFromExtend(_0x3e35fe);}catch{return{'found':![]};}const _0x175d41=asPlainObject(_0x33bc9b);if(Object[_0x32caec(0x1c9)][_0x32caec(0x1d6)][_0x32caec(0x1c7)](_0x175d41,'businessGroup'))return{'found':!![],'value':_0x175d41['businessGroup']};return{'found':![]};}function a58_0x414b(){const _0x2b7929=['found','DB_TABLE','32921ZANZqp','str','stringify','expect-business-group','datasetCode','value','object','3091386kXTZst','METADATA','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','length','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','datasetId','source','update','expectBusinessGroup','apiError','call','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','prototype','trim','426znHmlY','modelCode','Expected\x20','number','extend','businessGroup','dbtableConfig','payload','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','appCode','27643185aboXHc','hasOwnProperty','sourceType','6247100ScHUyD','name','isFinite','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','string','unchanged','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed,\x20or\x20the\x20reserved\x20value\x20ungrouped\x20to\x20clear\x20it','--code\x20is\x20required','datasetName','modelId','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','write','dataset','POST','/smartapi/question/er-config/business-group/edit','226487wVvdGd','Expectation\x20mismatch\x20at\x20businessGroup','message','code','business-group-update','keys','3486568FuZpTQ','4bZXtst','2277346YJVjTY',',\x20actual\x20','validation','Update\x20business\x20scenario\x20group'];a58_0x414b=function(){return _0x2b7929;};return a58_0x414b();}function firstPresent(..._0x399f77){for(const _0x2ca01f of _0x399f77){if(_0x2ca01f!==undefined&&_0x2ca01f!==null)return{'found':!![],'value':_0x2ca01f};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2dd639,_0x27c805){const _0x1fe9be=a58_0xa12b04;if(_0x27c805===undefined)return;const _0x5de5da=normalizeBusinessGroupArgument(_0x27c805);if(_0x2dd639!==_0x5de5da)throw CliErrors[_0x1fe9be(0x1b2)](_0x1fe9be(0x1a9),_0x1fe9be(0x1cd)+JSON[_0x1fe9be(0x1b8)](_0x5de5da)+',\x20actual\x20'+JSON['stringify'](_0x2dd639));}function buildBackendPayload(_0x531336,_0x239a04,_0x4d594f){const _0x19d00b=a58_0xa12b04;return{'appCode':_0x531336,'datasetCode':_0x239a04[_0x19d00b(0x1ab)],'businessGroup':_0x4d594f};}function normalizeBusinessGroup(_0x58c475){const _0x46b1b7=a58_0xa12b04;if(_0x58c475===undefined||_0x58c475===null)return'';return String(_0x58c475)[_0x46b1b7(0x1ca)]();}function normalizeBusinessGroupArgument(_0x37a1d1){const _0xc28440=normalizeBusinessGroup(_0x37a1d1);return _0xc28440===UNGROUPED_BUSINESS_GROUP?'':_0xc28440;}function asPlainObject(_0x5c982d){const _0x4f7438=a58_0xa12b04;if(!_0x5c982d||typeof _0x5c982d!==_0x4f7438(0x1bc)||Array['isArray'](_0x5c982d))return{};return _0x5c982d;}function firstString(..._0x27262a){const _0x4ce5fe=a58_0xa12b04;for(const _0xf30ce9 of _0x27262a){if(typeof _0xf30ce9===_0x4ce5fe(0x19d)&&_0xf30ce9[_0x4ce5fe(0x1ca)]())return _0xf30ce9[_0x4ce5fe(0x1ca)]();if(typeof _0xf30ce9===_0x4ce5fe(0x1ce)&&Number[_0x4ce5fe(0x19b)](_0xf30ce9))return String(_0xf30ce9);}return undefined;}function firstNumber(..._0x315c71){const _0x10036e=a58_0xa12b04;for(const _0x5ccc7f of _0x315c71){if(typeof _0x5ccc7f===_0x10036e(0x1ce)&&Number['isFinite'](_0x5ccc7f))return _0x5ccc7f;if(typeof _0x5ccc7f===_0x10036e(0x19d)&&_0x5ccc7f[_0x10036e(0x1ca)]()&&Number[_0x10036e(0x19b)](Number(_0x5ccc7f)))return Number(_0x5ccc7f);}return null;}function trim(_0x4ab333){const _0x1b7e3e=a58_0xa12b04;return String(_0x4ab333||'')[_0x1b7e3e(0x1ca)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a59_0x2264(){const _0x2d598c=['number','3260168AFcjBr','12MIPvIZ','9nEvWXA','95xFjHPJ','32772NKMOBU','business-groups','42298568jAJsRe','469236DGszee','6754ctJglJ','num','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','DB_TABLE','groups','length','dataset','\x20business\x20group(s)\x20for\x20database\x20connection\x20','15600110CvYXjK','dbid','appCode','21uInPGi','8YDmUWc','1545159TxhnIm','68871RGWMDT','read','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'];a59_0x2264=function(){return _0x2d598c;};return a59_0x2264();}const a59_0x4f0133=a59_0x423b;(function(_0x5434e5,_0x39e4ff){const _0x3ae188=a59_0x423b,_0x58f780=_0x5434e5();while(!![]){try{const _0x2ddd4a=parseInt(_0x3ae188(0xdb))/0x1*(-parseInt(_0x3ae188(0xd9))/0x2)+parseInt(_0x3ae188(0xda))/0x3*(parseInt(_0x3ae188(0xe0))/0x4)+parseInt(_0x3ae188(0xc8))/0x5*(parseInt(_0x3ae188(0xcc))/0x6)+-parseInt(_0x3ae188(0xd8))/0x7*(-parseInt(_0x3ae188(0xdf))/0x8)+-parseInt(_0x3ae188(0xc7))/0x9*(parseInt(_0x3ae188(0xd5))/0xa)+parseInt(_0x3ae188(0xcd))/0xb*(parseInt(_0x3ae188(0xc9))/0xc)+-parseInt(_0x3ae188(0xcb))/0xd;if(_0x2ddd4a===_0x39e4ff)break;else _0x58f780['push'](_0x58f780['shift']());}catch(_0x198e58){_0x58f780['push'](_0x58f780['shift']());}}}(a59_0x2264,0xcd617));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';function a59_0x423b(_0x533649,_0x1ea105){_0x533649=_0x533649-0xc7;const _0x226430=a59_0x2264();let _0x423bbc=_0x226430[_0x533649];return _0x423bbc;}export const datasetBusinessGroups={'service':a59_0x4f0133(0xd3),'command':a59_0x4f0133(0xca),'description':a59_0x4f0133(0xcf),'risk':a59_0x4f0133(0xdc),'flags':[{'name':a59_0x4f0133(0xd6),'type':a59_0x4f0133(0xde),'required':!![],'description':a59_0x4f0133(0xdd)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x21dea3){const _0x1d37fa=a59_0x4f0133,_0x44e8d3=_0x21dea3[_0x1d37fa(0xce)](_0x1d37fa(0xd6)),_0x21c715=await getErBusinessGroupSummary(_0x21dea3[_0x1d37fa(0xd7)],_0x44e8d3);return{'ok':!![],'data':{..._0x21c715,'scope':_0x1d37fa(0xd0)},'message':'Found\x20'+_0x21c715[_0x1d37fa(0xd1)][_0x1d37fa(0xd2)]+_0x1d37fa(0xd4)+_0x44e8d3};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60_0xe5e3cb=a60_0x14e3;(function(_0x1f3085,_0x42bd3c){const _0xd870b9=a60_0x14e3,_0x4e546b=_0x1f3085();while(!![]){try{const _0x5af1cb=-parseInt(_0xd870b9(0xe9))/0x1*(parseInt(_0xd870b9(0xd7))/0x2)+-parseInt(_0xd870b9(0xd5))/0x3+-parseInt(_0xd870b9(0xe0))/0x4+-parseInt(_0xd870b9(0xf3))/0x5*(-parseInt(_0xd870b9(0xf4))/0x6)+parseInt(_0xd870b9(0xd4))/0x7*(-parseInt(_0xd870b9(0xda))/0x8)+-parseInt(_0xd870b9(0xed))/0x9+parseInt(_0xd870b9(0xea))/0xa;if(_0x5af1cb===_0x42bd3c)break;else _0x4e546b['push'](_0x4e546b['shift']());}catch(_0xea1421){_0x4e546b['push'](_0x4e546b['shift']());}}}(a60_0x6747,0xe864c));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0xe5e3cb(0xf6),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0xe5e3cb(0xe8);function valueToString(_0x512692){const _0x3eadae=a60_0xe5e3cb;return _0x512692==null?'':String(_0x512692)[_0x3eadae(0xe5)]();}function getDatasetCode(_0x4031d8){const _0xa54522=a60_0xe5e3cb;return valueToString(_0x4031d8[_0xa54522(0xe6)]??_0x4031d8[_0xa54522(0xd9)]??_0x4031d8[_0xa54522(0xd1)]?.[_0xa54522(0xe1)]);}function a60_0x14e3(_0x45bf14,_0x167911){_0x45bf14=_0x45bf14-0xd1;const _0x674747=a60_0x6747();let _0x14e35d=_0x674747[_0x45bf14];return _0x14e35d;}function getDatasetName(_0x1ac4b9){const _0x2617e7=a60_0xe5e3cb;return valueToString(_0x1ac4b9['name']??_0x1ac4b9[_0x2617e7(0xd1)]?.[_0x2617e7(0xdc)])||_0x2617e7(0xeb);}function getDatasetSource(_0x37f090){const _0x46b123=a60_0xe5e3cb;return valueToString(_0x37f090['source']??_0x37f090[_0x46b123(0xd1)]?.[_0x46b123(0xef)])[_0x46b123(0xee)]();}function a60_0x6747(){const _0x4d40b4=['937877RQTqfU','49627300LgLEEf','unknown','UNKNOWN','13668165vEcYhp','toUpperCase','sourceType','SQL\x20schema\x20validation','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','7374155qqhXIf','6KDIjIp','dbId','lovrabet','dataset','\x20is\x20','filter','14FTYYRo','1851939jZWuAo','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','4GwJkzf','validation','modelCode','5103624CYCMrv','tableName','datasetName','getOne','length','dbtableConfig','792076oUJTin','datasetCode','object','dbtable','join','trim','code','METADATA','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.'];a60_0x6747=function(){return _0x4d40b4;};return a60_0x6747();}function getDbtableConfig(_0x34ab9a){const _0x572213=a60_0xe5e3cb,_0x1dcd6b=_0x34ab9a[_0x572213(0xdf)]??_0x34ab9a[_0x572213(0xe3)];return _0x1dcd6b&&typeof _0x1dcd6b===_0x572213(0xe2)?_0x1dcd6b:{};}export function isDbTableBackedDataset(_0x5e4835){const _0x475c19=a60_0xe5e3cb,_0x1876cd=getDatasetSource(_0x5e4835);if(_0x1876cd===_0x475c19(0xe7))return![];const _0xe5a13e=getDbtableConfig(_0x5e4835),_0x48516b=_0xe5a13e[_0x475c19(0xf5)]??_0xe5a13e['id'],_0x3ac0d6=valueToString(_0xe5a13e[_0x475c19(0xdb)]??_0x5e4835['tableName']??_0x5e4835[_0x475c19(0xd1)]?.[_0x475c19(0xdb)]);return _0x48516b!==undefined&&_0x48516b!==null&&_0x3ac0d6[_0x475c19(0xde)]>0x0;}export function filterDbTableBackedDatasets(_0x42faab){const _0x1fb04f=a60_0xe5e3cb;return _0x42faab[_0x1fb04f(0xd3)](_0x48beee=>isDbTableBackedDataset(_0x48beee));}export function buildDbTableBackedRequirementMessage(_0xe34485,_0x4a11d9=a60_0xe5e3cb(0xf0)){const _0x1d38b8=a60_0xe5e3cb,_0x7154f8=getDatasetSource(_0xe34485)||_0x1d38b8(0xec),_0x582f0e=getDatasetName(_0xe34485),_0x533a41=getDatasetCode(_0xe34485),_0x427f81=_0x533a41?'\x20('+_0x533a41+')':'';return['The\x20current\x20dataset\x20\x22'+_0x582f0e+'\x22'+_0x427f81+_0x1d38b8(0xd2)+_0x7154f8+_0x1d38b8(0xf2)+_0x4a11d9+'.',_0x1d38b8(0xd6),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x1d38b8(0xf1)+RUNTIME_DATA_ACCESS_COMMANDS[_0x1d38b8(0xd3)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x1d38b8(0xdd)]+'.'][_0x1d38b8(0xe4)]('\x20');}export function assertDatasetIsDbTableBacked(_0x458a63,_0x1e1ad3){const _0x3b7914=a60_0xe5e3cb;if(!isDbTableBackedDataset(_0x458a63))throw CliErrors[_0x3b7914(0xd8)](buildDbTableBackedRequirementMessage(_0x458a63,_0x1e1ad3));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a61_0x3521(){const _0x22a9c5=['\x20dataset(s)','number','map','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','push','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','Dataset\x20id','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','title','\x20dataset(s)\x20and\x20their\x20listed\x20related\x20pages/menus.\x20Restore\x20each\x20Dataset\x20first,\x20then\x20restore\x20pages\x20explicitly\x20when\x20needed.','Deleted\x20','bool','Matched\x20','str','num','dataset','expected-count','length','3922047HRMCvW','appCode','244276fNcKks','Would\x20safely\x20delete\x20','deleted','dbId','9YMwkoG','Also\x20delete\x20related\x20pages\x20and\x20menus;\x20requires\x20explicit\x20--confirm','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','add','\x20--appcode\x20','896175xyFNVK','delete','Required\x20to\x20execute\x20dataset\x20deletion','1704185MkOKyt','filter','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbtableConfig','id=','Would\x20delete\x20','source','dbid','relatedPages','1pkHhnt','code','object','tableName','2307372RvvpVg','dbName','No\x20undeleted\x20dataset\x20found\x20for\x20','message','validation','confirm','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','true','relatedPageInfoList','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','name','\x20dataset(s);\x20','497480pMwMZa','/smartapi/dataset/delete?cascade=','boolean','2318728gXIWaw','description','cascade','isArray','POST','\x20failed','false'];a61_0x3521=function(){return _0x22a9c5;};return a61_0x3521();}const a61_0x122a22=a61_0x1d7d;(function(_0x486046,_0x53f93b){const _0x1828a4=a61_0x1d7d,_0x4f6621=_0x486046();while(!![]){try{const _0x218a1c=parseInt(_0x1828a4(0xbb))/0x1*(parseInt(_0x1828a4(0xe9))/0x2)+parseInt(_0x1828a4(0xed))/0x3*(parseInt(_0x1828a4(0xcb))/0x4)+parseInt(_0x1828a4(0xf2))/0x5+-parseInt(_0x1828a4(0xbf))/0x6+-parseInt(_0x1828a4(0xb2))/0x7+-parseInt(_0x1828a4(0xce))/0x8+parseInt(_0x1828a4(0xe7))/0x9;if(_0x218a1c===_0x53f93b)break;else _0x4f6621['push'](_0x4f6621['shift']());}catch(_0x4095ba){_0x4f6621['push'](_0x4f6621['shift']());}}}(a61_0x3521,0x2ef98));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a61_0x1d7d(_0x4b5280,_0x1809e0){_0x4b5280=_0x4b5280-0xb0;const _0x352169=a61_0x3521();let _0x1d7d82=_0x352169[_0x4b5280];return _0x1d7d82;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':'number','description':a61_0x122a22(0xdb)},DBID_FLAG={'name':a61_0x122a22(0xb9),'type':a61_0x122a22(0xd6),'description':a61_0x122a22(0xda)},CONFIRM_FLAG={'name':a61_0x122a22(0xc4),'type':a61_0x122a22(0xcd),'description':a61_0x122a22(0xb1)},CASCADE_FLAG={'name':a61_0x122a22(0xd0),'type':a61_0x122a22(0xcd),'description':a61_0x122a22(0xee)},EXPECTED_COUNT_FLAG={'name':a61_0x122a22(0xe5),'type':'number','description':a61_0x122a22(0xb4)};export const datasetDelete={'service':a61_0x122a22(0xe4),'command':a61_0x122a22(0xb0),'description':a61_0x122a22(0xd8),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CASCADE_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15662e){const _0x488b3a=a61_0x122a22,_0x248d96=_0x15662e[_0x488b3a(0xe3)]('id'),_0x176e14=_0x15662e[_0x488b3a(0xe2)](_0x488b3a(0xbc)),_0x30275d=_0x15662e[_0x488b3a(0xe3)]('dbid'),_0x31cd54=[_0x248d96>0x0,Boolean(_0x176e14),_0x30275d>0x0][_0x488b3a(0xb3)](Boolean);if(_0x31cd54[_0x488b3a(0xe6)]===0x0)throw CliErrors[_0x488b3a(0xc3)](_0x488b3a(0xc8));if(_0x31cd54[_0x488b3a(0xe6)]>0x1)throw CliErrors[_0x488b3a(0xc3)](_0x488b3a(0xdc));},async 'dryRun'(_0x466830){const _0xc17484=a61_0x122a22,_0x5f4d8a=await resolveTargets(_0x466830),_0x1c06a9=_0x466830['bool'](_0xc17484(0xd0));return{'method':_0xc17484(0xd2),'url':_0xc17484(0xcc)+(_0x1c06a9?_0xc17484(0xc6):_0xc17484(0xd4)),'body':{'count':_0x5f4d8a[_0xc17484(0xe6)],'cascade':_0x1c06a9,'datasets':_0x5f4d8a},'description':_0x1c06a9?_0xc17484(0xb7)+_0x5f4d8a[_0xc17484(0xe6)]+_0xc17484(0xde):_0xc17484(0xea)+_0x5f4d8a[_0xc17484(0xe6)]+'\x20dataset(s)\x20without\x20cascading\x20to\x20pages.\x20The\x20server\x20blocks\x20a\x20Dataset\x20that\x20still\x20has\x20related\x20pages.'};},async 'execute'(_0x2e9f8b){const _0x62cc4c=a61_0x122a22;if(!_0x2e9f8b[_0x62cc4c(0xe0)](_0x62cc4c(0xc4)))throw CliErrors[_0x62cc4c(0xc3)](_0x62cc4c(0xef),_0x62cc4c(0xc5));const _0x37b66c=await resolveTargets(_0x2e9f8b),_0x5a034c=_0x2e9f8b[_0x62cc4c(0xe0)](_0x62cc4c(0xd0)),_0x562839=[],_0x5538ba=[];for(const _0x3b2f8a of _0x37b66c){try{await deleteDataset(_0x3b2f8a['id'],_0x5a034c),_0x562839[_0x62cc4c(0xd9)](_0x3b2f8a);}catch(_0x439ce7){_0x5538ba['push']({..._0x3b2f8a,'error':_0x439ce7 instanceof Error?_0x439ce7[_0x62cc4c(0xc2)]:String(_0x439ce7)});}}if(_0x5538ba['length']>0x0){const _0x115774=buildPageRestoreCommands(_0x2e9f8b['appCode'],_0x5a034c?_0x562839:[]);return{'ok':![],'data':{'requested':_0x37b66c[_0x62cc4c(0xe6)],'cascade':_0x5a034c,'deletedCount':_0x562839['length'],'failedCount':_0x5538ba[_0x62cc4c(0xe6)],'deleted':_0x562839,'failed':_0x5538ba,'pageRestoreCommands':_0x115774},'message':_0x62cc4c(0xdf)+_0x562839[_0x62cc4c(0xe6)]+'/'+_0x37b66c[_0x62cc4c(0xe6)]+_0x62cc4c(0xca)+_0x5538ba[_0x62cc4c(0xe6)]+_0x62cc4c(0xd3)};}return{'ok':!![],'data':{'requested':_0x37b66c[_0x62cc4c(0xe6)],'cascade':_0x5a034c,'deletedCount':_0x562839[_0x62cc4c(0xe6)],'deleted':_0x562839,'pageRestoreCommands':buildPageRestoreCommands(_0x2e9f8b[_0x62cc4c(0xe8)],_0x5a034c?_0x562839:[])},'message':'Deleted\x20'+_0x562839[_0x62cc4c(0xe6)]+_0x62cc4c(0xd5)};}};async function resolveTargets(_0x51eaa0){const _0x1df0b3=a61_0x122a22,_0x48f957=_0x51eaa0[_0x1df0b3(0xe3)]('id'),_0x4e15dc=_0x51eaa0[_0x1df0b3(0xe2)](_0x1df0b3(0xbc)),_0x31ab40=_0x51eaa0[_0x1df0b3(0xe3)](_0x1df0b3(0xb9));let _0x59b652;_0x4e15dc?(_0x59b652=await listDatasets(_0x51eaa0[_0x1df0b3(0xe8)],{'code':_0x4e15dc}),_0x59b652=_0x59b652[_0x1df0b3(0xb3)](_0x570a76=>_0x570a76[_0x1df0b3(0xbc)]===_0x4e15dc)):(_0x59b652=await listDatasets(_0x51eaa0['appCode']),_0x48f957>0x0&&(_0x59b652=_0x59b652[_0x1df0b3(0xb3)](_0x84885c=>_0x84885c['id']===_0x48f957)),_0x31ab40>0x0&&(_0x59b652=_0x59b652[_0x1df0b3(0xb3)](_0x37feda=>_0x37feda[_0x1df0b3(0xb5)]?.[_0x1df0b3(0xec)]===_0x31ab40)));const _0x1cfa09=[];for(const _0x56f54a of _0x59b652){const _0x168cb4=await getDatasetDetail(_0x56f54a[_0x1df0b3(0xbc)]),_0x4ffbd8=Array[_0x1df0b3(0xd1)](_0x168cb4[_0x1df0b3(0xc7)])?_0x168cb4['relatedPageInfoList'][_0x1df0b3(0xb3)](_0xc30596=>_0xc30596!=null&&typeof _0xc30596===_0x1df0b3(0xbd)&&_0xc30596[_0x1df0b3(0xeb)]!==!![]):[];_0x1cfa09[_0x1df0b3(0xd9)](normalizeTarget(_0x56f54a,_0x4ffbd8));}if(_0x1cfa09['length']===0x0){const _0x42e2db=_0x4e15dc||(_0x48f957>0x0?_0x1df0b3(0xb6)+_0x48f957:'dbid='+_0x31ab40);throw CliErrors[_0x1df0b3(0xc3)](_0x1df0b3(0xc1)+_0x42e2db+'.');}const _0x36d0b8=_0x51eaa0[_0x1df0b3(0xe3)](_0x1df0b3(0xe5));if(_0x36d0b8>0x0&&_0x1cfa09[_0x1df0b3(0xe6)]!==_0x36d0b8)throw CliErrors[_0x1df0b3(0xc3)](_0x1df0b3(0xe1)+_0x1cfa09[_0x1df0b3(0xe6)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x36d0b8+'.');return _0x1cfa09;}function normalizeTarget(_0xe9fd6,_0x3c1985){const _0x170916=a61_0x122a22,_0x37e340=_0xe9fd6[_0x170916(0xb5)]??{},_0x344711=_0x3c1985['map'](_0x54aeda=>{const _0x36a6d5=_0x170916;if(_0x54aeda==null||typeof _0x54aeda!=='object')return null;const _0x535f82=_0x54aeda,_0x32df16=Number(_0x535f82['id']);if(!Number['isInteger'](_0x32df16)||_0x32df16<=0x0)return null;const _0x53a477=_0x535f82[_0x36a6d5(0xdd)]??_0x535f82['name'];return{'id':_0x32df16,..._0x53a477?{'name':String(_0x53a477)}:{},..._0x535f82['type']?{'type':String(_0x535f82['type'])}:{}};})[_0x170916(0xb3)](_0x146463=>_0x146463!==null);return{'id':_0xe9fd6['id'],'code':_0xe9fd6[_0x170916(0xbc)],'name':_0xe9fd6[_0x170916(0xc9)],'description':_0xe9fd6[_0x170916(0xcf)],'source':_0xe9fd6[_0x170916(0xb8)],'dbId':_0x37e340[_0x170916(0xec)],'dbName':_0x37e340[_0x170916(0xc0)],'tableName':_0x37e340[_0x170916(0xbe)],'relatedPageCount':_0x344711[_0x170916(0xe6)],'relatedPages':_0x344711};}function buildPageRestoreCommands(_0x3db8d4,_0x2415d6){const _0x190973=a61_0x122a22,_0x5c630b=new Set();for(const _0x4863a6 of _0x2415d6){for(const _0x3adbbb of _0x4863a6[_0x190973(0xba)])_0x5c630b[_0x190973(0xf0)](_0x3adbbb['id']);}return[..._0x5c630b][_0x190973(0xd7)](_0x38ea38=>'rabetbase\x20page\x20restore\x20--id\x20'+_0x38ea38+_0x190973(0xf1)+_0x3db8d4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x20a575=a62_0x50c3;(function(_0x509464,_0x1893ac){const _0x79d0a7=a62_0x50c3,_0x3dd8bb=_0x509464();while(!![]){try{const _0x2d77ee=parseInt(_0x79d0a7(0x9d))/0x1+parseInt(_0x79d0a7(0xa8))/0x2*(parseInt(_0x79d0a7(0xb5))/0x3)+parseInt(_0x79d0a7(0x8b))/0x4+-parseInt(_0x79d0a7(0x90))/0x5+parseInt(_0x79d0a7(0x86))/0x6+-parseInt(_0x79d0a7(0xa1))/0x7+parseInt(_0x79d0a7(0xa2))/0x8;if(_0x2d77ee===_0x1893ac)break;else _0x3dd8bb['push'](_0x3dd8bb['shift']());}catch(_0x4ba5b6){_0x3dd8bb['push'](_0x3dd8bb['shift']());}}}(a62_0x5eb8,0xd5f36));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x224c57){const _0x58cd76=a62_0x50c3;if(_0x224c57[_0x58cd76(0x65)])return null;const _0x51c672=Boolean(_0x224c57[_0x58cd76(0x6c)]!==undefined||_0x224c57[_0x58cd76(0x79)]!==undefined);let _0x3e398={};if(!_0x51c672&&typeof _0x224c57[_0x58cd76(0x7a)]===_0x58cd76(0x8f))try{_0x3e398=JSON[_0x58cd76(0x9a)](_0x224c57[_0x58cd76(0x7a)]);}catch{}const _0x587592=_0x51c672?_0x224c57[_0x58cd76(0xb0)]:_0x224c57['code'],_0x171303=_0x51c672?_0x224c57[_0x58cd76(0x6c)]:_0x224c57['name'],_0x1c2888=_0x51c672?_0x224c57[_0x58cd76(0x79)]:_0x224c57[_0x58cd76(0x83)]||_0x224c57[_0x58cd76(0x6b)],_0x30de9f=_0x51c672?_0x224c57[_0x58cd76(0xb4)]===!![]:_0x3e398[_0x58cd76(0xb4)]===!![],_0x5a9789=_0x51c672?_0x224c57[_0x58cd76(0x91)]===!![]:_0x3e398[_0x58cd76(0x91)]===!![],_0x920b6c=_0x51c672?_0x224c57['options']??null:_0x3e398['options']??null,_0x46f93b={'name':_0x587592,'displayName':_0x171303||_0x587592,'type':_0x1c2888,'dbType':_0x224c57[_0x58cd76(0x7e)],'pk':_0x30de9f,'required':_0x5a9789,'deprecated':_0x224c57[_0x58cd76(0x92)]===!![],'description':_0x224c57[_0x58cd76(0x76)]||undefined};return Array[_0x58cd76(0x68)](_0x920b6c)&&_0x920b6c['length']>0x0&&(_0x46f93b['options']=_0x920b6c),_0x46f93b;}function parseJsonMaybe(_0x267945){const _0x3afa36=a62_0x50c3;if(typeof _0x267945!==_0x3afa36(0x8f))return _0x267945;try{return JSON['parse'](_0x267945);}catch{return _0x267945;}}function a62_0x5eb8(){const _0x347b43=['6280449KgqWCo','2408800uuYuDE','modelCode','creatorIdField','path','main_sub','validateRules','12ECfXev','logicField','updateTimeField','doVersion','createTimeField','dblinkInfoDTO','str','afterScriptId','name','tableName','detail','modifierIdField','pkField','153471YoyxNF','deleted','code','requestBody','isArray','toTableName','toFieldLabel','dataType','displayName','datasetKey','relationId','source','beforeScriptId','properties','dbId','trim','filter','formatRules','description','allFieldNames','columnCodeListWithDeleted','doType','extend','dbtableConfig','object','method','dbType','operations','allFields','title','host','type','creatorNameField','indexes','9621618baande','sourceType','toDatasetCode','responseFields','labelField','3271676JYYVcl','relations','relatedPageInfoList','tableComment','string','6367450tzKrkw','required','deprecated','dataset','map','toField','modifierNameField','fields','length','split','parse','cardinality','requestFields','17475GQSYXE','entries','responseBody','fromField'];a62_0x5eb8=function(){return _0x347b43;};return a62_0x5eb8();}function normalizeOperationEntry(_0x7543b3,_0x1418f1){const _0x1f06f8=a62_0x50c3;if(!_0x1418f1||typeof _0x1418f1!=='object')return null;if(!_0x1418f1[_0x1f06f8(0x7d)]||!_0x1418f1[_0x1f06f8(0xa5)])return null;const _0x5e2899={'name':_0x7543b3,'method':_0x1418f1[_0x1f06f8(0x7d)],'path':_0x1418f1[_0x1f06f8(0xa5)]};if(_0x1418f1['host'])_0x5e2899[_0x1f06f8(0x82)]=_0x1418f1['host'];if(_0x1418f1[_0x1f06f8(0x67)]!=null){const _0x57770c=parseJsonMaybe(_0x1418f1[_0x1f06f8(0x67)]);_0x5e2899[_0x1f06f8(0x67)]=_0x57770c;}if(_0x1418f1[_0x1f06f8(0x9f)]!=null){const _0x4efe6b=parseJsonMaybe(_0x1418f1['responseBody']);_0x5e2899[_0x1f06f8(0x9f)]=_0x4efe6b;}if(_0x1418f1[_0x1f06f8(0x70)]!=null)_0x5e2899[_0x1f06f8(0x70)]=_0x1418f1['beforeScriptId'];if(_0x1418f1[_0x1f06f8(0xaf)]!=null)_0x5e2899['afterScriptId']=_0x1418f1[_0x1f06f8(0xaf)];if(Array[_0x1f06f8(0x68)](_0x1418f1['requestFields']))_0x5e2899[_0x1f06f8(0x9c)]=_0x1418f1[_0x1f06f8(0x9c)];if(Array[_0x1f06f8(0x68)](_0x1418f1[_0x1f06f8(0x89)]))_0x5e2899[_0x1f06f8(0x89)]=_0x1418f1[_0x1f06f8(0x89)];return _0x5e2899;}function summarizeDbtable(_0x1f3ce5){const _0x23ccb7=a62_0x50c3,_0x240b5b={},_0x110e5f=[_0x23ccb7(0x72),'dbName',_0x23ccb7(0xb1),'datasetKey',_0x23ccb7(0xb4),'allFields',_0x23ccb7(0xa9),_0x23ccb7(0xac),_0x23ccb7(0xaa),_0x23ccb7(0xa4),_0x23ccb7(0x84),_0x23ccb7(0xb3),_0x23ccb7(0x96),_0x23ccb7(0x8a),_0x23ccb7(0xad)];for(const _0x5f2802 of _0x110e5f){if(_0x1f3ce5[_0x5f2802]!==undefined)_0x240b5b[_0x5f2802]=_0x1f3ce5[_0x5f2802];}return typeof _0x240b5b[_0x23ccb7(0x80)]==='string'&&_0x240b5b[_0x23ccb7(0x80)][_0x23ccb7(0x98)]>0x0&&(_0x240b5b[_0x23ccb7(0x77)]=_0x240b5b[_0x23ccb7(0x80)][_0x23ccb7(0x99)](',')[_0x23ccb7(0x94)](_0x433a9a=>_0x433a9a[_0x23ccb7(0x73)]())[_0x23ccb7(0x74)](Boolean)),_0x240b5b;}function a62_0x50c3(_0x31c254,_0x1ab782){_0x31c254=_0x31c254-0x65;const _0x5eb81d=a62_0x5eb8();let _0x50c3fe=_0x5eb81d[_0x31c254];return _0x50c3fe;}function normalizeRelatedPages(_0x39ebab){const _0x289225=a62_0x50c3;if(!Array[_0x289225(0x68)](_0x39ebab))return[];return _0x39ebab[_0x289225(0x74)](_0xd0c22a=>_0xd0c22a&&typeof _0xd0c22a===_0x289225(0x7c))[_0x289225(0x94)](_0x8409d=>({'id':_0x8409d['id'],'type':_0x8409d[_0x289225(0x83)],'code':_0x8409d[_0x289225(0x66)],'title':_0x8409d[_0x289225(0x81)],'deleted':_0x8409d[_0x289225(0x65)]===!![]}));}export const datasetDetail={'service':'dataset','command':a62_0x20a575(0xb2),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x26b0ae){const _0x32e724=a62_0x20a575,_0x2ecc14=await getDatasetDetail(_0x26b0ae[_0x32e724(0xae)](_0x32e724(0x66))),_0x1b05d7=Array['isArray'](_0x2ecc14['fields'])?_0x2ecc14[_0x32e724(0x97)]:Array['isArray'](_0x2ecc14[_0x32e724(0x71)])?_0x2ecc14[_0x32e724(0x71)]:[],_0x307857=_0x1b05d7['map'](_0x28befd=>normalizeField(_0x28befd))[_0x32e724(0x74)](_0x1144f7=>_0x1144f7!==null),_0x4a3a6d=_0x2ecc14[_0x32e724(0x7f)]??{},_0xd237bf=[];for(const [_0x2f3c77,_0x5d9f45]of Object[_0x32e724(0x9e)](_0x4a3a6d)){const _0x42f230=normalizeOperationEntry(_0x2f3c77,_0x5d9f45);if(_0x42f230)_0xd237bf['push'](_0x42f230);}const _0x251a94=_0x2ecc14[_0x32e724(0x7b)]??{},_0x28ff93=_0x2ecc14[_0x32e724(0x93)]??{},_0x5e87a4=_0x251a94['dbId']!=null?{'id':_0x251a94[_0x32e724(0x72)],'name':_0x251a94['dbName']??null}:undefined;let _0x536af6;return typeof _0x2ecc14[_0x32e724(0x7a)]===_0x32e724(0x8f)&&(_0x536af6=parseJsonMaybe(_0x2ecc14[_0x32e724(0x7a)])),{'ok':!![],'data':{'id':_0x2ecc14['modelId']??_0x2ecc14['id'],'name':_0x2ecc14[_0x32e724(0xb0)],'code':_0x2ecc14[_0x32e724(0xa3)]||_0x2ecc14[_0x32e724(0x66)],'doVersion':_0x2ecc14[_0x32e724(0xab)],'description':_0x2ecc14[_0x32e724(0x76)]||_0x28ff93[_0x32e724(0x8e)]||undefined,'source':_0x2ecc14[_0x32e724(0x6f)]||_0x28ff93[_0x32e724(0x87)],'table':_0x251a94[_0x32e724(0xb1)]||_0x28ff93[_0x32e724(0xb1)],'datasetKey':_0x251a94[_0x32e724(0x6d)],'pk':_0x251a94[_0x32e724(0xb4)],'db':_0x5e87a4,'dbtable':summarizeDbtable(_0x251a94),'fields':_0x307857,'operations':_0xd237bf,'indexes':Array['isArray'](_0x28ff93[_0x32e724(0x85)])?_0x28ff93[_0x32e724(0x85)]:[],'relations':Array[_0x32e724(0x68)](_0x2ecc14[_0x32e724(0x8c)])?_0x2ecc14[_0x32e724(0x8c)]['map'](_0x6bdcb3=>({..._0x6bdcb3['relationId']!=null?{'relationId':_0x6bdcb3[_0x32e724(0x6e)]}:{},'fromDataset':_0x2ecc14[_0x32e724(0xb0)],'fromCode':_0x2ecc14[_0x32e724(0xa3)]||_0x2ecc14[_0x32e724(0x66)],'fromTable':_0x251a94[_0x32e724(0xb1)]||_0x28ff93['tableName'],'fromField':_0x6bdcb3[_0x32e724(0xa0)],'toDataset':_0x6bdcb3['toDatasetName'],'toCode':_0x6bdcb3[_0x32e724(0x88)],'toTable':_0x6bdcb3[_0x32e724(0x69)],'toField':_0x6bdcb3[_0x32e724(0x95)],'labelField':_0x6bdcb3[_0x32e724(0x6a)]||undefined,'cardinality':_0x6bdcb3[_0x32e724(0x9b)]||undefined,'bizRelationType':_0x6bdcb3['bizRelationType']===_0x32e724(0xa6)?_0x32e724(0xa6):null})):[],'relatedPages':normalizeRelatedPages(_0x2ecc14[_0x32e724(0x8d)]),...Array[_0x32e724(0x68)](_0x2ecc14[_0x32e724(0x78)])?{'columnCodeListWithDeleted':_0x2ecc14[_0x32e724(0x78)]}:{},'formatRules':Array[_0x32e724(0x68)](_0x2ecc14[_0x32e724(0x75)])?_0x2ecc14['formatRules']:[],'validateRules':Array[_0x32e724(0x68)](_0x2ecc14[_0x32e724(0xa7)])?_0x2ecc14[_0x32e724(0xa7)]:[],..._0x536af6!==undefined?{'extend':_0x536af6}:{},'stats':{'fieldCount':_0x307857['length'],'operationCount':_0xd237bf[_0x32e724(0x98)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a63_0x2f6dec=a63_0x5a6f;(function(_0x4d16ef,_0x2ea491){const _0xec5756=a63_0x5a6f,_0x4d87fb=_0x4d16ef();while(!![]){try{const _0x4fe440=-parseInt(_0xec5756(0x1af))/0x1+parseInt(_0xec5756(0x1c6))/0x2*(parseInt(_0xec5756(0x1be))/0x3)+parseInt(_0xec5756(0x1cf))/0x4+parseInt(_0xec5756(0x1d8))/0x5+parseInt(_0xec5756(0x1bc))/0x6*(-parseInt(_0xec5756(0x1d7))/0x7)+parseInt(_0xec5756(0x1b1))/0x8*(parseInt(_0xec5756(0x1d1))/0x9)+parseInt(_0xec5756(0x1e4))/0xa*(-parseInt(_0xec5756(0x1ee))/0xb);if(_0x4fe440===_0x2ea491)break;else _0x4d87fb['push'](_0x4d87fb['shift']());}catch(_0x13899d){_0x4d87fb['push'](_0x4d87fb['shift']());}}}(a63_0x2504,0xcef8a));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a63_0x2f6dec(0x1c0),{'message':a63_0x2f6dec(0x1c4),'hint':a63_0x2f6dec(0x1b5)}]]);export function parseJsonObjectFlag(_0x1788b8,_0x23dff5){const _0x465be0=a63_0x2f6dec;if(!_0x1788b8)return undefined;let _0xa7b8f7;try{_0xa7b8f7=JSON[_0x465be0(0x1e6)](_0x1788b8);}catch(_0x137858){const _0x1bdc20=_0x137858 instanceof Error?_0x137858[_0x465be0(0x1c5)]:String(_0x137858);throw CliErrors['validation'](_0x23dff5+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x1bdc20);}if(!isPlainObject(_0xa7b8f7)||Array[_0x465be0(0x1d5)](_0xa7b8f7))throw CliErrors['validation'](_0x23dff5+_0x465be0(0x1b7));return _0xa7b8f7;}export function validateExtendPatchKeys(_0x53ea98){const _0x441a76=a63_0x2f6dec,_0x2eadad=Object[_0x441a76(0x1e2)](_0x53ea98);if(_0x2eadad[_0x441a76(0x1ec)]===0x0)throw CliErrors[_0x441a76(0x1ed)](_0x441a76(0x1b8));for(const _0x258e6a of _0x2eadad){const _0x1baf1c=EXTEND_PATCH_REDIRECTS[_0x441a76(0x1d3)](_0x258e6a);if(_0x1baf1c)throw CliErrors[_0x441a76(0x1ed)](_0x1baf1c[_0x441a76(0x1c5)],_0x1baf1c[_0x441a76(0x1d4)]);if(!MUTABLE_EXTEND_KEYS[_0x441a76(0x1db)](_0x258e6a))throw CliErrors[_0x441a76(0x1ed)](_0x441a76(0x1bf)+_0x258e6a,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0xce9033=a63_0x2f6dec,_0x3e022a=Array[_0xce9033(0x1e7)](MUTABLE_EXTEND_KEYS)[_0xce9033(0x1e3)]();return _0x3e022a['length']>0x0?_0xce9033(0x1cd)+_0x3e022a[_0xce9033(0x1b4)](',\x20'):_0xce9033(0x1d2);}export function applyExtendPatch(_0x4e1353,_0x62598f){const _0x513424=a63_0x2f6dec;validateExtendPatchKeys(_0x62598f);const _0x1666ff=deepClone(_0x4e1353),_0x21f119=[];for(const [_0x2a0fcb,_0x30b736]of Object[_0x513424(0x1e1)](_0x62598f)){const _0xfae3c4=_0x1666ff[_0x2a0fcb],_0x176a5e=deepClone(_0x30b736);!deepEqual(_0xfae3c4,_0x176a5e)&&(_0x1666ff[_0x2a0fcb]=_0x176a5e,_0x21f119[_0x513424(0x1d6)]('extend.'+_0x2a0fcb));}return _0x21f119['sort'](),{'after':_0x1666ff,'changedPaths':_0x21f119,'changed':_0x21f119['length']>0x0};}export function assertExpectation(_0x4fbe50,_0x4a12f7){const _0x1d7e9b=a63_0x2f6dec;if(!_0x4a12f7)return;for(const [_0x4f2580,_0x2624d9]of Object[_0x1d7e9b(0x1e1)](_0x4a12f7)){const _0x47f87c=_0x4fbe50[_0x4f2580];if(!deepEqual(_0x47f87c,_0x2624d9))throw CliErrors[_0x1d7e9b(0x1ed)](_0x1d7e9b(0x1b3)+_0x4f2580,_0x1d7e9b(0x1de)+JSON['stringify'](_0x2624d9)+_0x1d7e9b(0x1d9)+JSON[_0x1d7e9b(0x1d0)](_0x47f87c));}}export async function buildDatasetExtendUpdateResult({appCode:_0x125a0f,input:_0xb9540e,dryRun:_0x190152}){const _0x2c8ded=a63_0x2f6dec;validateInput(_0xb9540e);const _0x2fe6cb=await getDatasetDetail(_0xb9540e[_0x2c8ded(0x1ea)]),_0x190319=parseDatasetExtend(_0x2fe6cb[_0x2c8ded(0x1eb)]),_0x3dd282=deepClone(_0x190319[_0x2c8ded(0x1c8)]);assertExpectation(_0x3dd282,_0xb9540e['expect']);const {after:_0x531cc8,changedPaths:_0x258c54,changed:_0x3c3950}=applyExtendPatch(_0x3dd282,_0xb9540e[_0x2c8ded(0x1df)]),_0x46b5ba=summarizeDataset(_0x2fe6cb,_0xb9540e[_0x2c8ded(0x1ea)]);return _0x3c3950&&!_0x190152&&(_0x2fe6cb[_0x2c8ded(0x1eb)]=serializeDatasetExtend(_0x531cc8,_0x190319['shape']),await updateDrivenData(_0x2fe6cb)),{'ok':!![],'data':{'appCode':_0x125a0f,'selector':{'code':_0xb9540e[_0x2c8ded(0x1ea)]},'dataset':_0x46b5ba,'dryRun':_0x190152,'changed':_0x3c3950,'changedPaths':_0x258c54,'before':{'extend':_0x3dd282},'after':{'extend':_0x531cc8},'submitted':_0x3c3950&&!_0x190152},'message':_0x3c3950?_0x190152?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x258c54[_0x2c8ded(0x1b4)](',\x20')+')':_0x2c8ded(0x1e8)+_0x258c54['join'](',\x20')+')':_0x2c8ded(0x1ca)};}export const datasetExtendUpdate={'service':a63_0x2f6dec(0x1c9),'command':a63_0x2f6dec(0x1ef),'description':a63_0x2f6dec(0x1dc),'risk':'write','flags':[CODE_FLAG,{'name':a63_0x2f6dec(0x1e9),'type':a63_0x2f6dec(0x1c7),'required':!![],'description':a63_0x2f6dec(0x1b6)},{'name':a63_0x2f6dec(0x1b9),'type':'string','required':![],'description':a63_0x2f6dec(0x1f1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x8407a2){validateInput(readExtendUpdateInput(_0x8407a2));},async 'dryRun'(_0x46360d){const _0x9d28d5=a63_0x2f6dec,_0x55f432=await buildDatasetExtendUpdateResult({'appCode':_0x46360d[_0x9d28d5(0x1c1)],'input':readExtendUpdateInput(_0x46360d),'dryRun':!![]});return{'method':'POST','url':_0x9d28d5(0x1cc),'body':_0x55f432[_0x9d28d5(0x1e5)],'description':_0x55f432[_0x9d28d5(0x1c5)]};},async 'execute'(_0x5e7dea){const _0x23ebda=a63_0x2f6dec;return buildDatasetExtendUpdateResult({'appCode':_0x5e7dea[_0x23ebda(0x1c1)],'input':readExtendUpdateInput(_0x5e7dea),'dryRun':![]});}};function readExtendUpdateInput(_0x3b7a1f){const _0x555920=a63_0x2f6dec,_0x4ca7a3=trim(_0x3b7a1f[_0x555920(0x1ba)](_0x555920(0x1ea))),_0x34a7e5=parseJsonObjectFlag(_0x3b7a1f[_0x555920(0x1ba)]('patch-json'),_0x555920(0x1c2)),_0x5cdd86=parseJsonObjectFlag(_0x3b7a1f[_0x555920(0x1ba)](_0x555920(0x1b9)),'--expect-json');return{'code':_0x4ca7a3,'patch':_0x34a7e5||{},'expect':_0x5cdd86};}function a63_0x5a6f(_0x125e4e,_0x2a2e30){_0x125e4e=_0x125e4e-0x1af;const _0x2504ff=a63_0x2504();let _0x5a6fbd=_0x2504ff[_0x125e4e];return _0x5a6fbd;}function validateInput(_0x2752a5){const _0x51ee14=a63_0x2f6dec;if(!_0x2752a5[_0x51ee14(0x1ea)])throw CliErrors['validation'](_0x51ee14(0x1f0));validateExtendPatchKeys(_0x2752a5[_0x51ee14(0x1df)]);}function parseDatasetExtend(_0x2dbe32){const _0x2bcc0e=a63_0x2f6dec;if(typeof _0x2dbe32==='string'){const _0x5eb2bb=_0x2dbe32[_0x2bcc0e(0x1e0)]();if(!_0x5eb2bb)return{'value':{},'shape':'string'};let _0x18cfe5;try{_0x18cfe5=JSON[_0x2bcc0e(0x1e6)](_0x5eb2bb);}catch(_0x340356){const _0x24519c=_0x340356 instanceof Error?_0x340356[_0x2bcc0e(0x1c5)]:String(_0x340356);throw CliErrors[_0x2bcc0e(0x1ed)]('Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x24519c);}if(!isPlainObject(_0x18cfe5)||Array[_0x2bcc0e(0x1d5)](_0x18cfe5))throw CliErrors[_0x2bcc0e(0x1ed)](_0x2bcc0e(0x1da));return{'value':_0x18cfe5,'shape':_0x2bcc0e(0x1c7)};}if(_0x2dbe32===undefined||_0x2dbe32===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x2dbe32)||Array[_0x2bcc0e(0x1d5)](_0x2dbe32))throw CliErrors[_0x2bcc0e(0x1ed)](_0x2bcc0e(0x1da));return{'value':_0x2dbe32,'shape':_0x2bcc0e(0x1cb)};}function a63_0x2504(){const _0x4be9f9=['\x20must\x20be\x20a\x20JSON\x20object','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','expect-json','str','dbtableConfig','246wmQiAX','dbName','701724lGLEGr','Unsupported\x20patch\x20key:\x20','businessGroup','appCode','--patch-json','datasetCode','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','message','4LkCQIM','string','value','dataset','No\x20changes\x20for\x20dataset\x20extend','object','/smartapi/dataset/update-driven-data','Allowed\x20keys:\x20','datasetId','865460IQwPjo','stringify','108lbcrtB','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','get','hint','isArray','push','60081jVLfRq','7525475itvNwQ',',\x20actual\x20','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','has','Patch\x20dataset\x20top-level\x20extend\x20safely','dbId','Expected\x20','patch','trim','entries','keys','sort','10VJxnyK','data','parse','from','Updated\x20dataset\x20extend\x20(','patch-json','code','extend','length','validation','13859296Vmiykd','extend-update','--code\x20is\x20required','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','1144315HruAKg','name','943088wTDdZk','tableName','Expectation\x20mismatch\x20at\x20extend.','join','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'];a63_0x2504=function(){return _0x4be9f9;};return a63_0x2504();}function serializeDatasetExtend(_0x4a8403,_0xc23325){const _0x1b3591=a63_0x2f6dec;return _0xc23325==='string'?JSON[_0x1b3591(0x1d0)](_0x4a8403):_0x4a8403;}function summarizeDataset(_0x18946f,_0x572fa4){const _0xdbd137=a63_0x2f6dec,_0x3107d0=isPlainObject(_0x18946f['dataset'])?_0x18946f['dataset']:{},_0x2db7dc=isPlainObject(_0x18946f[_0xdbd137(0x1bb)])?_0x18946f[_0xdbd137(0x1bb)]:{};return{'id':_0x18946f['modelId']??_0x18946f['id']??_0x3107d0[_0xdbd137(0x1ce)]??null,'code':_0x18946f['modelCode']??_0x18946f[_0xdbd137(0x1ea)]??_0x3107d0[_0xdbd137(0x1c3)]??_0x572fa4,'name':_0x18946f[_0xdbd137(0x1b0)]??_0x3107d0['datasetName']??null,'table':_0x2db7dc[_0xdbd137(0x1b2)]??_0x3107d0[_0xdbd137(0x1b2)]??null,'db':_0x2db7dc[_0xdbd137(0x1bd)]??_0x2db7dc[_0xdbd137(0x1dd)]??null};}function deepClone(_0x560f52){const _0xbe490e=a63_0x2f6dec;if(_0x560f52===undefined)return _0x560f52;return JSON[_0xbe490e(0x1e6)](JSON[_0xbe490e(0x1d0)](_0x560f52));}function deepEqual(_0x297aa5,_0x72f7b9){const _0xe5a987=a63_0x2f6dec;return JSON[_0xe5a987(0x1d0)](_0x297aa5)===JSON[_0xe5a987(0x1d0)](_0x72f7b9);}function isPlainObject(_0x4da748){const _0x452ae1=a63_0x2f6dec;return Boolean(_0x4da748)&&typeof _0x4da748===_0x452ae1(0x1cb)&&!Array[_0x452ae1(0x1d5)](_0x4da748);}function trim(_0x52ca1a){const _0x328906=a63_0x2f6dec,_0x16b438=String(_0x52ca1a||'')[_0x328906(0x1e0)]();return _0x16b438;}
|
|
1
|
+
const a63_0x4154a6=a63_0x24cf;(function(_0x3f7735,_0x2effcc){const _0x3d01a5=a63_0x24cf,_0x324ffb=_0x3f7735();while(!![]){try{const _0x1f93a0=-parseInt(_0x3d01a5(0xb2))/0x1+parseInt(_0x3d01a5(0xbd))/0x2*(-parseInt(_0x3d01a5(0xc1))/0x3)+-parseInt(_0x3d01a5(0x9c))/0x4*(parseInt(_0x3d01a5(0xbf))/0x5)+-parseInt(_0x3d01a5(0x86))/0x6*(-parseInt(_0x3d01a5(0x8d))/0x7)+parseInt(_0x3d01a5(0xae))/0x8+-parseInt(_0x3d01a5(0xa1))/0x9+parseInt(_0x3d01a5(0x8a))/0xa;if(_0x1f93a0===_0x2effcc)break;else _0x324ffb['push'](_0x324ffb['shift']());}catch(_0x29321d){_0x324ffb['push'](_0x324ffb['shift']());}}}(a63_0x16d9,0x5fd4d));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([['businessGroup',{'message':'dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','hint':'Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.'}]]);export function parseJsonObjectFlag(_0x284718,_0x4c098d){const _0x5646b0=a63_0x24cf;if(!_0x284718)return undefined;let _0x19f489;try{_0x19f489=JSON['parse'](_0x284718);}catch(_0x13014a){const _0x91a967=_0x13014a instanceof Error?_0x13014a['message']:String(_0x13014a);throw CliErrors[_0x5646b0(0xa5)](_0x4c098d+_0x5646b0(0xc2)+_0x91a967);}if(!isPlainObject(_0x19f489)||Array[_0x5646b0(0x98)](_0x19f489))throw CliErrors[_0x5646b0(0xa5)](_0x4c098d+_0x5646b0(0x83));return _0x19f489;}export function validateExtendPatchKeys(_0x3cf888){const _0x1f45f9=a63_0x24cf,_0x304e99=Object[_0x1f45f9(0xbb)](_0x3cf888);if(_0x304e99[_0x1f45f9(0x8c)]===0x0)throw CliErrors[_0x1f45f9(0xa5)](_0x1f45f9(0xa2));for(const _0x3be7a1 of _0x304e99){const _0x37fbaf=EXTEND_PATCH_REDIRECTS[_0x1f45f9(0xb4)](_0x3be7a1);if(_0x37fbaf)throw CliErrors[_0x1f45f9(0xa5)](_0x37fbaf[_0x1f45f9(0x91)],_0x37fbaf['hint']);if(!MUTABLE_EXTEND_KEYS['has'](_0x3be7a1))throw CliErrors['validation'](_0x1f45f9(0x8f)+_0x3be7a1,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x3cf503=a63_0x24cf,_0x1e415a=Array[_0x3cf503(0x9b)](MUTABLE_EXTEND_KEYS)['sort']();return _0x1e415a[_0x3cf503(0x8c)]>0x0?_0x3cf503(0x90)+_0x1e415a['join'](',\x20'):_0x3cf503(0xb1);}export function applyExtendPatch(_0x17e83a,_0x25d651){const _0x4bf8df=a63_0x24cf;validateExtendPatchKeys(_0x25d651);const _0x17c2df=deepClone(_0x17e83a),_0x5daa71=[];for(const [_0x4b2f75,_0x8559cd]of Object['entries'](_0x25d651)){const _0x1592ee=_0x17c2df[_0x4b2f75],_0x5681a1=deepClone(_0x8559cd);!deepEqual(_0x1592ee,_0x5681a1)&&(_0x17c2df[_0x4b2f75]=_0x5681a1,_0x5daa71['push'](_0x4bf8df(0x8e)+_0x4b2f75));}return _0x5daa71[_0x4bf8df(0xb9)](),{'after':_0x17c2df,'changedPaths':_0x5daa71,'changed':_0x5daa71[_0x4bf8df(0x8c)]>0x0};}function a63_0x16d9(){const _0x5f47e9=['Expectation\x20mismatch\x20at\x20extend.','get','appCode','string','dbtableConfig','str','sort','object','keys','tableName','4GIFWBr','POST','53870WOqZrc','dataset','366960jCJFjT','\x20must\x20be\x20valid\x20JSON\x20object:\x20','modelId','\x20must\x20be\x20a\x20JSON\x20object','--patch-json','entries','6nNzpuT','code','patch-json','expect','13733360wAwEis','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','length','3262931rJiiHh','extend.','Unsupported\x20patch\x20key:\x20','Allowed\x20keys:\x20','message','dbId','trim','extend','patch','shape','expect-json','isArray','Patch\x20dataset\x20top-level\x20extend\x20safely','value','from','96tzpTwx','modelCode','parse','name','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','5861781YQxrgK','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','Expected\x20','join','validation','--expect-json','/smartapi/dataset/update-driven-data',',\x20actual\x20','--code\x20is\x20required','Updated\x20dataset\x20extend\x20(','datasetCode','stringify','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','3555008ZbJUXu','extend-update','dbName','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','736795ItgWzO'];a63_0x16d9=function(){return _0x5f47e9;};return a63_0x16d9();}export function assertExpectation(_0x5e09f2,_0x3a8b1){const _0x4e117d=a63_0x24cf;if(!_0x3a8b1)return;for(const [_0x3d4cfb,_0x8b2e82]of Object[_0x4e117d(0x85)](_0x3a8b1)){const _0x25173f=_0x5e09f2[_0x3d4cfb];if(!deepEqual(_0x25173f,_0x8b2e82))throw CliErrors[_0x4e117d(0xa5)](_0x4e117d(0xb3)+_0x3d4cfb,_0x4e117d(0xa3)+JSON['stringify'](_0x8b2e82)+_0x4e117d(0xa8)+JSON[_0x4e117d(0xac)](_0x25173f));}}export async function buildDatasetExtendUpdateResult({appCode:_0x40343e,input:_0x45e352,dryRun:_0x3f32aa}){const _0xcee138=a63_0x24cf;validateInput(_0x45e352);const _0x45f7c5=await getDatasetDetail(_0x45e352[_0xcee138(0x87)]),_0x217d4b=parseDatasetExtend(_0x45f7c5['extend']),_0x262daf=deepClone(_0x217d4b[_0xcee138(0x9a)]);assertExpectation(_0x262daf,_0x45e352[_0xcee138(0x89)]);const {after:_0x13ac97,changedPaths:_0x3d3981,changed:_0x418874}=applyExtendPatch(_0x262daf,_0x45e352[_0xcee138(0x95)]),_0x59a92d=summarizeDataset(_0x45f7c5,_0x45e352[_0xcee138(0x87)]);return _0x418874&&!_0x3f32aa&&(_0x45f7c5[_0xcee138(0x94)]=serializeDatasetExtend(_0x13ac97,_0x217d4b[_0xcee138(0x96)]),await updateDrivenData(_0x45f7c5)),{'ok':!![],'data':{'appCode':_0x40343e,'selector':{'code':_0x45e352[_0xcee138(0x87)]},'dataset':_0x59a92d,'dryRun':_0x3f32aa,'changed':_0x418874,'changedPaths':_0x3d3981,'before':{'extend':_0x262daf},'after':{'extend':_0x13ac97},'submitted':_0x418874&&!_0x3f32aa},'message':_0x418874?_0x3f32aa?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x3d3981[_0xcee138(0xa4)](',\x20')+')':_0xcee138(0xaa)+_0x3d3981['join'](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}export const datasetExtendUpdate={'service':a63_0x4154a6(0xc0),'command':a63_0x4154a6(0xaf),'description':a63_0x4154a6(0x99),'risk':'write','flags':[CODE_FLAG,{'name':a63_0x4154a6(0x88),'type':'string','required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':'expect-json','type':a63_0x4154a6(0xb6),'required':![],'description':a63_0x4154a6(0xa0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1dbfeb){validateInput(readExtendUpdateInput(_0x1dbfeb));},async 'dryRun'(_0x2e44bc){const _0x17e36c=a63_0x4154a6,_0x5e2ce6=await buildDatasetExtendUpdateResult({'appCode':_0x2e44bc[_0x17e36c(0xb5)],'input':readExtendUpdateInput(_0x2e44bc),'dryRun':!![]});return{'method':_0x17e36c(0xbe),'url':_0x17e36c(0xa7),'body':_0x5e2ce6['data'],'description':_0x5e2ce6[_0x17e36c(0x91)]};},async 'execute'(_0x38bbd4){const _0x4861f2=a63_0x4154a6;return buildDatasetExtendUpdateResult({'appCode':_0x38bbd4[_0x4861f2(0xb5)],'input':readExtendUpdateInput(_0x38bbd4),'dryRun':![]});}};function readExtendUpdateInput(_0x3d5188){const _0x18a390=a63_0x4154a6,_0x1747f1=trim(_0x3d5188[_0x18a390(0xb8)](_0x18a390(0x87))),_0x1a0d38=parseJsonObjectFlag(_0x3d5188[_0x18a390(0xb8)]('patch-json'),_0x18a390(0x84)),_0x182e47=parseJsonObjectFlag(_0x3d5188[_0x18a390(0xb8)](_0x18a390(0x97)),_0x18a390(0xa6));return{'code':_0x1747f1,'patch':_0x1a0d38||{},'expect':_0x182e47};}function validateInput(_0x4dad85){const _0x5e68a1=a63_0x4154a6;if(!_0x4dad85[_0x5e68a1(0x87)])throw CliErrors[_0x5e68a1(0xa5)](_0x5e68a1(0xa9));validateExtendPatchKeys(_0x4dad85[_0x5e68a1(0x95)]);}function parseDatasetExtend(_0x4b3422){const _0x539cf1=a63_0x4154a6;if(typeof _0x4b3422===_0x539cf1(0xb6)){const _0x1d7320=_0x4b3422[_0x539cf1(0x93)]();if(!_0x1d7320)return{'value':{},'shape':_0x539cf1(0xb6)};let _0x40b81d;try{_0x40b81d=JSON[_0x539cf1(0x9e)](_0x1d7320);}catch(_0x1bd4eb){const _0x5cabd4=_0x1bd4eb instanceof Error?_0x1bd4eb['message']:String(_0x1bd4eb);throw CliErrors[_0x539cf1(0xa5)](_0x539cf1(0xad)+_0x5cabd4);}if(!isPlainObject(_0x40b81d)||Array[_0x539cf1(0x98)](_0x40b81d))throw CliErrors[_0x539cf1(0xa5)]('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x40b81d,'shape':_0x539cf1(0xb6)};}if(_0x4b3422===undefined||_0x4b3422===null)return{'value':{},'shape':_0x539cf1(0xb6)};if(!isPlainObject(_0x4b3422)||Array[_0x539cf1(0x98)](_0x4b3422))throw CliErrors[_0x539cf1(0xa5)](_0x539cf1(0x8b));return{'value':_0x4b3422,'shape':_0x539cf1(0xba)};}function serializeDatasetExtend(_0x45ee06,_0x1f7181){const _0x4b3038=a63_0x4154a6;return _0x1f7181===_0x4b3038(0xb6)?JSON['stringify'](_0x45ee06):_0x45ee06;}function summarizeDataset(_0x318fd2,_0x3cbd6c){const _0x2400b1=a63_0x4154a6,_0x11ff1c=isPlainObject(_0x318fd2[_0x2400b1(0xc0)])?_0x318fd2[_0x2400b1(0xc0)]:{},_0x361a72=isPlainObject(_0x318fd2[_0x2400b1(0xb7)])?_0x318fd2['dbtableConfig']:{};return{'id':_0x318fd2[_0x2400b1(0xc3)]??_0x318fd2['id']??_0x11ff1c['datasetId']??null,'code':_0x318fd2[_0x2400b1(0x9d)]??_0x318fd2[_0x2400b1(0x87)]??_0x11ff1c[_0x2400b1(0xab)]??_0x3cbd6c,'name':_0x318fd2[_0x2400b1(0x9f)]??_0x11ff1c['datasetName']??null,'table':_0x361a72[_0x2400b1(0xbc)]??_0x11ff1c[_0x2400b1(0xbc)]??null,'db':_0x361a72[_0x2400b1(0xb0)]??_0x361a72[_0x2400b1(0x92)]??null};}function a63_0x24cf(_0x29fe5d,_0x43b6f8){_0x29fe5d=_0x29fe5d-0x83;const _0x16d9af=a63_0x16d9();let _0x24cf0f=_0x16d9af[_0x29fe5d];return _0x24cf0f;}function deepClone(_0x50255d){const _0xb5fecc=a63_0x4154a6;if(_0x50255d===undefined)return _0x50255d;return JSON[_0xb5fecc(0x9e)](JSON[_0xb5fecc(0xac)](_0x50255d));}function deepEqual(_0x8b168b,_0x363a62){const _0x4a33c5=a63_0x4154a6;return JSON[_0x4a33c5(0xac)](_0x8b168b)===JSON[_0x4a33c5(0xac)](_0x363a62);}function isPlainObject(_0x413342){const _0xe79def=a63_0x4154a6;return Boolean(_0x413342)&&typeof _0x413342===_0xe79def(0xba)&&!Array[_0xe79def(0x98)](_0x413342);}function trim(_0x349e89){const _0x38a3ff=a63_0x4154a6,_0x23aa00=String(_0x349e89||'')[_0x38a3ff(0x93)]();return _0x23aa00;}
|