@lovrabet/rabetbase-cli 2.4.2 → 2.4.3
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/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/get.js +1 -1
- package/lib/commands/config/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.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.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/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/init/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/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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.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/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/non-interactive.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/create.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/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/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/copy-directory.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/rules-cdn.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 +8 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/react-custom-page-workflow.md +9 -3
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a50_0x5c3a(){const _0x3e6f82=['4CLPeto','9342RMcdMQ','2832159PvJccU','app','8630lbaCBq','get','616bpfKYg','config','string','1343690fdnzDK','object','\x20config\x20get\x20--key\x20<key>','key','validation','Usage:\x20','2592996rJMkMR','2sHRXEV','read','39849pMSUEH','22KhyxpP','1374Mebzpz','Get\x20a\x20config\x20value\x20by\x20key','3177160rznKTy','str'];a50_0x5c3a=function(){return _0x3e6f82;};return a50_0x5c3a();}const a50_0x4a9617=a50_0x5bf4;(function(_0x4c7328,_0x152bf5){const _0x39756f=a50_0x5bf4,_0x1bf523=_0x4c7328();while(!![]){try{const _0x5149e4=parseInt(_0x39756f(0x119))/0x1*(parseInt(_0x39756f(0x117))/0x2)+parseInt(_0x39756f(0x121))/0x3*(parseInt(_0x39756f(0x11f))/0x4)+parseInt(_0x39756f(0x123))/0x5*(-parseInt(_0x39756f(0x11b))/0x6)+parseInt(_0x39756f(0x11d))/0x7+-parseInt(_0x39756f(0x125))/0x8*(parseInt(_0x39756f(0x120))/0x9)+parseInt(_0x39756f(0x128))/0xa*(-parseInt(_0x39756f(0x11a))/0xb)+-parseInt(_0x39756f(0x116))/0xc;if(_0x5149e4===_0x152bf5)break;else _0x1bf523['push'](_0x1bf523['shift']());}catch(_0x3eba9e){_0x1bf523['push'](_0x1bf523['shift']());}}}(a50_0x5c3a,0x74a55));function a50_0x5bf4(_0x5d2d01,_0x2a9a5d){_0x5d2d01=_0x5d2d01-0x116;const _0x5c3a62=a50_0x5c3a();let _0x5bf403=_0x5c3a62[_0x5d2d01];return _0x5bf403;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x51e5f9){const _0x286deb=a50_0x5bf4,_0x2d7513=_0x51e5f9[_0x286deb(0x11e)]('key');if(!_0x2d7513)throw CliErrors[_0x286deb(0x12c)]('Missing\x20key.',_0x286deb(0x12d)+CLI_BIN_NAME+_0x286deb(0x12a));const _0x8514f2=readConfig(),_0x36c7c4=_0x2d7513===_0x286deb(0x122)?'appcode':_0x2d7513,_0x342fb1=_0x8514f2[_0x36c7c4];if(_0x342fb1===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x2d7513);return{'ok':!![],'data':typeof _0x342fb1==='object'?_0x342fb1:{[_0x36c7c4]:_0x342fb1},'message':typeof _0x342fb1===_0x286deb(0x129)?undefined:String(_0x342fb1)};}export const configGetDefinition={'service':a50_0x4a9617(0x126),'command':a50_0x4a9617(0x124),'description':a50_0x4a9617(0x11c),'risk':a50_0x4a9617(0x118),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x4a9617(0x12b),'type':a50_0x4a9617(0x127),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d1085,_0x4a26cc){const _0x5a6346=a51_0x1853,_0x245d2d=_0x3d1085();while(!![]){try{const _0x57cdf1=parseInt(_0x5a6346(0x163))/0x1*(parseInt(_0x5a6346(0x164))/0x2)+parseInt(_0x5a6346(0x166))/0x3+-parseInt(_0x5a6346(0x165))/0x4+-parseInt(_0x5a6346(0x168))/0x5+parseInt(_0x5a6346(0x167))/0x6+-parseInt(_0x5a6346(0x162))/0x7+-parseInt(_0x5a6346(0x16a))/0x8*(-parseInt(_0x5a6346(0x169))/0x9);if(_0x57cdf1===_0x4a26cc)break;else _0x245d2d['push'](_0x245d2d['shift']());}catch(_0x157c8a){_0x245d2d['push'](_0x245d2d['shift']());}}}(a51_0x1705,0x7f683));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a51_0x1705(){const _0x45ef06=['1339026zHVPgh','2735124uxqbio','858795EuItng','45vldTMa','109232wvVvJg','1473031UWUbUH','3vGdGfm','221978IpcrLy','1597528VKnRIo'];a51_0x1705=function(){return _0x45ef06;};return a51_0x1705();}function a51_0x1853(_0x1b64b8,_0x5d9ac7){_0x1b64b8=_0x1b64b8-0x162;const _0x170577=a51_0x1705();let _0x185395=_0x170577[_0x1b64b8];return _0x185395;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a52_0x48a82a=a52_0x56a9;function a52_0x22ea(){const _0x1a8e4d=['List\x20all\x20config\x20values','global','1962612XXtqqM','read','127315erKLUD','243418abwzCR','319SHnQMZ','list','4676cwkYth','1575HoXLzM','bool','312hBgHio','60qwmIoB','391812tazJLt','3524896JAOysF','boolean','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','10ZQsvda','3163RlPVKX'];a52_0x22ea=function(){return _0x1a8e4d;};return a52_0x22ea();}(function(_0x1f9d78,_0x589bd5){const _0x493288=a52_0x56a9,_0x56a0e7=_0x1f9d78();while(!![]){try{const _0x10d888=parseInt(_0x493288(0xdd))/0x1*(parseInt(_0x493288(0xd6))/0x2)+parseInt(_0x493288(0xd4))/0x3*(parseInt(_0x493288(0xe6))/0x4)+parseInt(_0x493288(0xe2))/0x5+parseInt(_0x493288(0xd7))/0x6*(parseInt(_0x493288(0xe3))/0x7)+-parseInt(_0x493288(0xd9))/0x8+-parseInt(_0x493288(0xe0))/0x9*(-parseInt(_0x493288(0xdc))/0xa)+-parseInt(_0x493288(0xe4))/0xb*(parseInt(_0x493288(0xd8))/0xc);if(_0x10d888===_0x589bd5)break;else _0x56a0e7['push'](_0x56a0e7['shift']());}catch(_0x103de7){_0x56a0e7['push'](_0x56a0e7['shift']());}}}(a52_0x22ea,0x4be95));import{readScopedConfig}from'../../commands/config/shared.js';function a52_0x56a9(_0x1975f5,_0x21b21a){_0x1975f5=_0x1975f5-0xd4;const _0x22eae2=a52_0x22ea();let _0x56a9f3=_0x22eae2[_0x1975f5];return _0x56a9f3;}import{readConfig}from'../../utils/config.js';async function execute(_0x111f19){const _0x41052e=a52_0x56a9,_0x36ba3a=_0x111f19[_0x41052e(0xd5)]('global')?readScopedConfig(_0x41052e(0xdf)):readConfig();return{'ok':!![],'data':_0x36ba3a};}export const configListDefinition={'service':'config','command':a52_0x48a82a(0xe5),'description':a52_0x48a82a(0xde),'risk':a52_0x48a82a(0xe1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x48a82a(0xdf),'type':a52_0x48a82a(0xda),'description':a52_0x48a82a(0xdb),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x17f3d3=a53_0x36cd;(function(_0x4ac8cc,_0x122088){const _0x135786=a53_0x36cd,_0x44ebe9=_0x4ac8cc();while(!![]){try{const _0x23ff09=-parseInt(_0x135786(0x130))/0x1+-parseInt(_0x135786(0x103))/0x2*(-parseInt(_0x135786(0x126))/0x3)+-parseInt(_0x135786(0x125))/0x4+-parseInt(_0x135786(0x10f))/0x5*(parseInt(_0x135786(0x119))/0x6)+parseInt(_0x135786(0x108))/0x7*(-parseInt(_0x135786(0x133))/0x8)+parseInt(_0x135786(0x12c))/0x9+parseInt(_0x135786(0x110))/0xa;if(_0x23ff09===_0x122088)break;else _0x44ebe9['push'](_0x44ebe9['shift']());}catch(_0x24b9b1){_0x44ebe9['push'](_0x44ebe9['shift']());}}}(a53_0x311d,0xc81c5));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a53_0x36cd(_0x21f9de,_0x1553e3){_0x21f9de=_0x21f9de-0x102;const _0x311d5a=a53_0x311d();let _0x36cdb5=_0x311d5a[_0x21f9de];return _0x36cdb5;}function a53_0x311d(){const _0x1f70cf=['468765vUhQXR','str','riskLevel','set','221659CwDhJJ','Usage:\x20','key','8BYVcet','Set\x20a\x20config\x20value','663578tIVLne','\x22\x20is\x20not\x20settable.','Use\x20`','global','\x20appcode\x20set\x20to:\x20','6524301Qukhtn','Invalid\x20locale\x20value.','\x20workspace\x20add\x20<name>\x20--appcode\x20','value','env','Global','object','1385ptjqAI','18067650loxZMO','\x22.\x20Allowed:\x20','boolean','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20value\x20for\x20\x22','validation','bool','string','18660tupguL','length','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Project','Top-level\x20key\x20\x22','config','apps','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20set\x20to:\x20','Missing\x20value.','appcode','77568OWvgHe','9dVUMDn','keys','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','app','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>'];a53_0x311d=function(){return _0x1f70cf;};return a53_0x311d();}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';async function execute(_0x65d5fc){const _0x4cdb3e=a53_0x36cd,_0x22e650=_0x65d5fc[_0x4cdb3e(0x12d)](_0x4cdb3e(0x132)),_0x549ca7=_0x65d5fc['str']('value');if(!_0x22e650)throw CliErrors[_0x4cdb3e(0x116)]('Missing\x20key.',_0x4cdb3e(0x131)+CLI_BIN_NAME+_0x4cdb3e(0x12b));if(_0x549ca7===undefined||_0x549ca7==='')throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x123),'Usage:\x20'+CLI_BIN_NAME+_0x4cdb3e(0x12b));if(_0x549ca7[_0x4cdb3e(0x11a)]>0x1f4)throw CliErrors['validation'](_0x4cdb3e(0x114));if(!isTopLevelConfigKey(_0x22e650))throw CliErrors['validation'](_0x4cdb3e(0x11d)+_0x22e650+_0x4cdb3e(0x104),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x22e650===_0x4cdb3e(0x12e))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x121));if(CONFIG_ENUM_VALUES[_0x22e650]&&!CONFIG_ENUM_VALUES[_0x22e650]['includes'](_0x549ca7))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x115)+_0x22e650+_0x4cdb3e(0x111)+CONFIG_ENUM_VALUES[_0x22e650]['join'](',\x20'));if(_0x22e650==='locale'&&!normalizeLocale(_0x549ca7))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x109),_0x4cdb3e(0x113));const _0x3a7942={'global':_0x65d5fc[_0x4cdb3e(0x117)](_0x4cdb3e(0x106))},_0x4ed3a0=resolveWriteScope(_0x3a7942),_0x1991e8=readScopedConfig(_0x4ed3a0);let _0x474f8c=_0x22e650,_0x3e1e8c=_0x549ca7;_0x22e650===_0x4cdb3e(0x12a)&&(_0x474f8c='appcode',delete _0x1991e8[_0x4cdb3e(0x12a)]);_0x22e650==='locale'&&(_0x3e1e8c=normalizeLocale(_0x549ca7));if(_0x22e650===_0x4cdb3e(0x10c)){_0x3e1e8c=normalizeEnv(_0x549ca7);if(!isProduction(_0x3e1e8c)&&!isDaily(_0x3e1e8c))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x120),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x22e650===_0x4cdb3e(0x124)){const _0x32874b=_0x1991e8['apps']&&typeof _0x1991e8[_0x4cdb3e(0x11f)]===_0x4cdb3e(0x10e)?Object[_0x4cdb3e(0x127)](_0x1991e8[_0x4cdb3e(0x11f)]):[];if(_0x32874b[_0x4cdb3e(0x11a)]>0x0)throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x11b),_0x4cdb3e(0x105)+CLI_BIN_NAME+_0x4cdb3e(0x10a)+_0x3e1e8c+'`,\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x13a92c=buildCanonicalProjectConfig({..._0x1991e8},{'appCodes':[_0x3e1e8c],'env':typeof _0x1991e8[_0x4cdb3e(0x10c)]===_0x4cdb3e(0x118)?_0x1991e8[_0x4cdb3e(0x10c)]:undefined});writeScopedConfig(_0x13a92c,_0x4ed3a0);const _0x40ea40=_0x4ed3a0===_0x4cdb3e(0x106)?_0x4cdb3e(0x10d):_0x4cdb3e(0x11c);return{'ok':!![],'message':'✓\x20'+_0x40ea40+_0x4cdb3e(0x107)+_0x3e1e8c+_0x4cdb3e(0x128)};}_0x1991e8[_0x474f8c]=_0x3e1e8c,writeScopedConfig(_0x1991e8,_0x4ed3a0);const _0x4d3307=_0x4ed3a0===_0x4cdb3e(0x106)?'Global':_0x4cdb3e(0x11c);return{'ok':!![],'message':'✓\x20'+_0x4d3307+'\x20'+_0x474f8c+_0x4cdb3e(0x122)+_0x3e1e8c};}export const configSetDefinition={'service':a53_0x17f3d3(0x11e),'command':a53_0x17f3d3(0x12f),'description':a53_0x17f3d3(0x102),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x17f3d3(0x10b),'type':a53_0x17f3d3(0x118),'description':'Config\x20value','required':!![]},{'name':a53_0x17f3d3(0x106),'type':a53_0x17f3d3(0x112),'description':a53_0x17f3d3(0x129),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x168219,_0xe7feb8){var _0x524a05=a54_0x59c5,_0x41b6a6=_0x168219();while(!![]){try{var _0x119854=-parseInt(_0x524a05(0x176))/0x1*(-parseInt(_0x524a05(0x172))/0x2)+-parseInt(_0x524a05(0x177))/0x3+-parseInt(_0x524a05(0x171))/0x4*(-parseInt(_0x524a05(0x170))/0x5)+-parseInt(_0x524a05(0x179))/0x6+-parseInt(_0x524a05(0x16f))/0x7+parseInt(_0x524a05(0x174))/0x8*(-parseInt(_0x524a05(0x173))/0x9)+-parseInt(_0x524a05(0x17b))/0xa*(-parseInt(_0x524a05(0x175))/0xb);if(_0x119854===_0xe7feb8)break;else _0x41b6a6['push'](_0x41b6a6['shift']());}catch(_0x275e27){_0x41b6a6['push'](_0x41b6a6['shift']());}}}(a54_0x2b52,0xd92c3));import{CLI_BIN_NAME}from'../../constant/cli.js';function a54_0x2b52(){var _0x38220e=['1072250ImDmNI','validation','global','\x20init`\x20first.','11785970bybigJ','15KxmNJi','2214796phPYZZ','772FYWDeB','9mOaPhS','10086152KdDqNi','209supFQk','4024iWlUHB','16947SnmpKL','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','8471814OoYmLc','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'];a54_0x2b52=function(){return _0x38220e;};return a54_0x2b52();}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 a54_0x59c5(_0x19f920,_0x336e01){_0x19f920=_0x19f920-0x16d;var _0x2b5297=a54_0x2b52();var _0x59c5dd=_0x2b5297[_0x19f920];return _0x59c5dd;}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0xef0101){var _0x265ad3=a54_0x59c5;if(_0xef0101[_0x265ad3(0x16d)])return'global';if(!isInProject())throw CliErrors[_0x265ad3(0x17c)](_0x265ad3(0x178),_0x265ad3(0x17a)+CLI_BIN_NAME+_0x265ad3(0x16e));return'project';}export function readScopedConfig(_0x39a1ab){return readConfigFile(resolveWriteConfigPath(_0x39a1ab));}export function writeScopedConfig(_0x177e03,_0x4c7490){writeConfigFile(resolveWriteConfigPath(_0x4c7490),_0x177e03);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x8c313c=a55_0x54a1;function a55_0x54a1(_0x5607be,_0x30f102){_0x5607be=_0x5607be-0xf2;const _0x5f4963=a55_0x5f49();let _0x54a1b8=_0x5f4963[_0x5607be];return _0x54a1b8;}(function(_0x31193b,_0x1eede8){const _0x378b4b=a55_0x54a1,_0x5f2ecb=_0x31193b();while(!![]){try{const _0x4cd511=-parseInt(_0x378b4b(0xf2))/0x1*(-parseInt(_0x378b4b(0x104))/0x2)+parseInt(_0x378b4b(0xf8))/0x3+-parseInt(_0x378b4b(0x105))/0x4*(-parseInt(_0x378b4b(0xfb))/0x5)+parseInt(_0x378b4b(0xf7))/0x6+-parseInt(_0x378b4b(0xf6))/0x7+-parseInt(_0x378b4b(0xf9))/0x8*(-parseInt(_0x378b4b(0xff))/0x9)+-parseInt(_0x378b4b(0xfe))/0xa*(parseInt(_0x378b4b(0xfd))/0xb);if(_0x4cd511===_0x1eede8)break;else _0x5f2ecb['push'](_0x5f2ecb['shift']());}catch(_0x561b23){_0x5f2ecb['push'](_0x5f2ecb['shift']());}}}(a55_0x5f49,0xc0557));import{buildDataCommand}from'../../commands/data/shared.js';function a55_0x5f49(){const _0x308b18=['11SmpiCa','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','join','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','5448968WqqjkA','4107786mAWqAi','3541509HPHAuw','15896vPuIRm','Filter\x20dataset\x20records\x20with\x20query\x20conditions','35QJkSHB','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','534897mAylAM','650nfMLid','2520UcNjjI','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','filter','202954yLDgQd','679564fAlVEj'];a55_0x5f49=function(){return _0x308b18;};return a55_0x5f49();}export const dataFilter=buildDataCommand({'command':a55_0x8c313c(0x103),'operation':'filter','description':a55_0x8c313c(0xfa),'paramsRequired':![],'paramsHint':a55_0x8c313c(0x100),'helpExtra':[a55_0x8c313c(0x102),a55_0x8c313c(0xf5),a55_0x8c313c(0x101),a55_0x8c313c(0xfc),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a55_0x8c313c(0xf3)][a55_0x8c313c(0xf4)]('\x0a')});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a56_0x403d9a=a56_0x1000;(function(_0x17e651,_0x587b7b){const _0x3131e9=a56_0x1000,_0x27a95a=_0x17e651();while(!![]){try{const _0x23f7d4=parseInt(_0x3131e9(0x101))/0x1*(-parseInt(_0x3131e9(0x103))/0x2)+-parseInt(_0x3131e9(0x102))/0x3*(parseInt(_0x3131e9(0xfc))/0x4)+-parseInt(_0x3131e9(0x105))/0x5+-parseInt(_0x3131e9(0x104))/0x6+-parseInt(_0x3131e9(0x107))/0x7+parseInt(_0x3131e9(0x106))/0x8*(parseInt(_0x3131e9(0xfd))/0x9)+-parseInt(_0x3131e9(0xff))/0xa*(-parseInt(_0x3131e9(0xfe))/0xb);if(_0x23f7d4===_0x587b7b)break;else _0x27a95a['push'](_0x27a95a['shift']());}catch(_0x51c945){_0x27a95a['push'](_0x27a95a['shift']());}}}(a56_0x557c,0x25945));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x1000(_0x1d8051,_0x4767d9){_0x1d8051=_0x1d8051-0xfc;const _0x557cdf=a56_0x557c();let _0x1000f1=_0x557cdf[_0x1d8051];return _0x1000f1;}function a56_0x557c(){const _0x17d727=['140iVQQHx','getOne','71jfJyoK','3oslFYA','6298plVaNh','140496gfACXy','1186270xwklfI','4184RgLOmt','1604946gUKNUe','133192AdadnL','4644xqKpic','495693fTBjzT'];a56_0x557c=function(){return _0x17d727;};return a56_0x557c();}export const dataGetOne=buildDataCommand({'command':a56_0x403d9a(0x100),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a57_0x5660(_0x227191,_0x2b3908){_0x227191=_0x227191-0x12f;const _0xf7ba47=a57_0xf7ba();let _0x566094=_0xf7ba47[_0x227191];return _0x566094;}(function(_0x5b371f,_0x1e1107){const _0x11279f=a57_0x5660,_0x84500c=_0x5b371f();while(!![]){try{const _0x3964f5=parseInt(_0x11279f(0x139))/0x1+-parseInt(_0x11279f(0x130))/0x2*(parseInt(_0x11279f(0x137))/0x3)+parseInt(_0x11279f(0x138))/0x4+-parseInt(_0x11279f(0x131))/0x5*(-parseInt(_0x11279f(0x134))/0x6)+-parseInt(_0x11279f(0x133))/0x7*(parseInt(_0x11279f(0x12f))/0x8)+-parseInt(_0x11279f(0x132))/0x9*(parseInt(_0x11279f(0x136))/0xa)+parseInt(_0x11279f(0x135))/0xb;if(_0x3964f5===_0x1e1107)break;else _0x84500c['push'](_0x84500c['shift']());}catch(_0x247cfe){_0x84500c['push'](_0x84500c['shift']());}}}(a57_0xf7ba,0xc447f));import{dataFilter}from'../../commands/data/filter.js';function a57_0xf7ba(){const _0x3a7cd1=['38530TCRraC','3ttWYdc','4491328HvCNWy','1004505IjJxUM','392VVGGAJ','2211252HkVRac','30935DCqdou','2268rqFkGM','35630ByYkVE','798gzjvUF','1977261vOTexy'];a57_0xf7ba=function(){return _0x3a7cd1;};return a57_0xf7ba();}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x33ec60,_0x469bbd){const _0x4794ea=a58_0x2e6b,_0x430ba9=_0x33ec60();while(!![]){try{const _0x126711=parseInt(_0x4794ea(0x140))/0x1*(parseInt(_0x4794ea(0x14a))/0x2)+parseInt(_0x4794ea(0x13a))/0x3*(parseInt(_0x4794ea(0x144))/0x4)+-parseInt(_0x4794ea(0x13e))/0x5+parseInt(_0x4794ea(0x152))/0x6*(parseInt(_0x4794ea(0x147))/0x7)+-parseInt(_0x4794ea(0x14d))/0x8+-parseInt(_0x4794ea(0x13f))/0x9+parseInt(_0x4794ea(0x14b))/0xa;if(_0x126711===_0x469bbd)break;else _0x430ba9['push'](_0x430ba9['shift']());}catch(_0x2e9196){_0x430ba9['push'](_0x430ba9['shift']());}}}(a58_0x2212,0x5285f));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0x2e6b(_0x1f608d,_0x5040a3){_0x1f608d=_0x1f608d-0x135;const _0x22126f=a58_0x2212();let _0x2e6b6a=_0x22126f[_0x1f608d];return _0x2e6b6a;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x20677c){const _0x26bed4=a58_0x2e6b;if(!_0x20677c)throw CliErrors[_0x26bed4(0x139)](_0x26bed4(0x13d),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x12792f=_0x20677c['id'];if(_0x12792f===undefined||_0x12792f===null||_0x12792f==='')throw CliErrors[_0x26bed4(0x146)](_0x26bed4(0x145),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0xdf11b2){return parseJsonParams(_0xdf11b2)??{};}export function buildDataCommand(_0x138f2d){const _0x5ad99c=a58_0x2e6b,_0x23bd4e=_0x5ad99c(0x149);return{'service':_0x5ad99c(0x142),'command':_0x138f2d[_0x5ad99c(0x14e)],'description':_0x138f2d[_0x5ad99c(0x143)],'risk':_0x5ad99c(0x13c),'defaultOutputFormat':_0x5ad99c(0x14c),'helpExtra':_0x138f2d['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x5ad99c(0x137),'description':_0x23bd4e},{'name':'params','type':_0x5ad99c(0x137),'description':_0x138f2d['paramsHint']}],async 'validate'(_0x1fe30f){const _0x50b66e=_0x5ad99c,_0x319d62=_0x1fe30f[_0x50b66e(0x151)](_0x50b66e(0x13d));if(_0x138f2d[_0x50b66e(0x148)]&&!_0x319d62)throw CliErrors[_0x50b66e(0x139)](_0x50b66e(0x13d),_0x138f2d[_0x50b66e(0x136)]);const _0x3a0235=parseJsonParams(_0x319d62);_0x138f2d[_0x50b66e(0x138)]===_0x50b66e(0x14f)&&assertGetOneId(_0x3a0235);},async 'execute'(_0x4106e8){const _0xa62106=_0x5ad99c,_0x3bd659=parseCommandParams(_0x4106e8[_0xa62106(0x151)](_0xa62106(0x13d))),_0x173406=Date[_0xa62106(0x150)](),_0x260586=await executeDatasetDataOperation(_0x4106e8[_0xa62106(0x13b)],_0x4106e8['str'](_0xa62106(0x141)),_0x138f2d['operation'],_0x3bd659),_0x3b678e=Date[_0xa62106(0x150)]()-_0x173406;return{'ok':!![],'data':{'result':_0x260586,'elapsed':_0x3b678e},'message':_0xa62106(0x135)+_0x138f2d['command']+'\x20completed\x20in\x20'+_0x3b678e+'ms'};}};}function a58_0x2212(){const _0x52b8e7=['string','operation','flagMissing','1546719SnGaha','appCode','read','params','1525565rzKmdy','3041694RbKMGu','72220frwusu','code','data','description','4NWTjsy','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','validation','14XaUTZD','paramsRequired','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','8bpMLoD','3607810jEWuQj','compress','3436992cvpmEn','command','getOne','now','str','736452ppKXWJ','data\x20','paramsHint'];a58_0x2212=function(){return _0x52b8e7;};return a58_0x2212();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59_0x182055=a59_0x1bc6;(function(_0x3d4581,_0x5335bb){const _0x4cb5fb=a59_0x1bc6,_0x39ae98=_0x3d4581();while(!![]){try{const _0xcdd59b=-parseInt(_0x4cb5fb(0x221))/0x1*(parseInt(_0x4cb5fb(0x200))/0x2)+-parseInt(_0x4cb5fb(0x22c))/0x3*(-parseInt(_0x4cb5fb(0x1f8))/0x4)+-parseInt(_0x4cb5fb(0x207))/0x5+-parseInt(_0x4cb5fb(0x208))/0x6+-parseInt(_0x4cb5fb(0x229))/0x7*(parseInt(_0x4cb5fb(0x1fc))/0x8)+parseInt(_0x4cb5fb(0x1fd))/0x9*(-parseInt(_0x4cb5fb(0x211))/0xa)+parseInt(_0x4cb5fb(0x20d))/0xb*(parseInt(_0x4cb5fb(0x226))/0xc);if(_0xcdd59b===_0x5335bb)break;else _0x39ae98['push'](_0x39ae98['shift']());}catch(_0x477340){_0x39ae98['push'](_0x39ae98['shift']());}}}(a59_0x1797,0x59142));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a59_0x182055(0x1f2);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1de252,input:_0x133f9,dryRun:_0x4c81fb}){const _0xd8bd69=a59_0x182055;validateInput(_0x133f9);const _0x171314=normalizeBusinessGroup(_0x133f9[_0xd8bd69(0x209)]),_0x254c45=await getDatasetDetail(_0x133f9[_0xd8bd69(0x21b)]),_0x207bb7=resolveBusinessGroupDataset(_0x254c45,_0x133f9[_0xd8bd69(0x21b)]),_0x4976ff=loadCurrentBusinessGroup(_0x254c45,_0x207bb7);assertExpectedBusinessGroup(_0x4976ff,_0x133f9[_0xd8bd69(0x21e)]);const _0x5d2864=buildBackendPayload(_0x1de252,_0x207bb7,_0x171314),_0x4509a0=_0x4976ff!==_0x171314;let _0x300402;if(_0x4509a0&&!_0x4c81fb){await updateErBusinessGroup(_0x5d2864);const _0x182bc2=await getDatasetDetail(_0x207bb7[_0xd8bd69(0x21b)]),_0x1773e3=resolveBusinessGroupDataset(_0x182bc2,_0x207bb7['code']),_0x41f9cf=loadCurrentBusinessGroup(_0x182bc2,_0x1773e3);if(_0x41f9cf!==_0x171314)throw CliErrors['apiError']('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Expected\x20'+JSON[_0xd8bd69(0x219)](_0x171314)+_0xd8bd69(0x22a)+JSON[_0xd8bd69(0x219)](_0x41f9cf)+'.');_0x300402={'verified':!![],'status':_0xd8bd69(0x22d),'afterReadback':{'businessGroup':_0x41f9cf}};}else!_0x4509a0&&(_0x300402={'verified':!![],'status':_0xd8bd69(0x22e),'afterReadback':{'businessGroup':_0x4976ff}});const _0x4bd5be={'operation':_0xd8bd69(0x20e),'appCode':_0x1de252,'selector':{'code':_0x207bb7[_0xd8bd69(0x21b)]},'dataset':_0x207bb7,'before':{'businessGroup':_0x4976ff},'after':{'businessGroup':_0x171314},'changed':_0x4509a0,'dryRun':_0x4c81fb,'submitted':_0x4509a0&&!_0x4c81fb,'backend':{'method':_0xd8bd69(0x1fe),'path':BACKEND_PATH,'payload':_0x5d2864},..._0x300402?{'verification':_0x300402}:{},'warnings':[]};return{'ok':!![],'data':_0x4bd5be,'message':_0x4509a0?_0x4c81fb?_0xd8bd69(0x20a)+_0x207bb7['code']:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x207bb7[_0xd8bd69(0x21b)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x207bb7[_0xd8bd69(0x21b)]};}export const datasetBusinessGroupUpdate={'service':a59_0x182055(0x216),'command':a59_0x182055(0x231),'description':'Update\x20business\x20scenario\x20group','risk':a59_0x182055(0x227),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x182055(0x204),'required':!![],'description':a59_0x182055(0x217)},{'name':a59_0x182055(0x218),'type':a59_0x182055(0x204),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1dfa7e){validateInput(readBusinessGroupUpdateInput(_0x1dfa7e));},async 'dryRun'(_0x376dcb){const _0x54ed14=a59_0x182055,_0x37cda4=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x376dcb[_0x54ed14(0x21f)],'input':readBusinessGroupUpdateInput(_0x376dcb),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x37cda4[_0x54ed14(0x20b)]['backend'][_0x54ed14(0x206)],'description':_0x37cda4[_0x54ed14(0x223)],..._0x37cda4['data']};},async 'execute'(_0x10ce91){const _0x5e2bf1=a59_0x182055;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x10ce91[_0x5e2bf1(0x21f)],'input':readBusinessGroupUpdateInput(_0x10ce91),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x1f3c2a){const _0x5e4a76=a59_0x182055,_0x54275f=_0x1f3c2a['str'](_0x5e4a76(0x218));return{'code':trim(_0x1f3c2a[_0x5e4a76(0x215)]('code')),'businessGroup':_0x1f3c2a[_0x5e4a76(0x215)]('business-group'),'expectBusinessGroup':_0x54275f===undefined||_0x54275f===''?undefined:_0x54275f};}function a59_0x1bc6(_0xcdfa15,_0x3d0bb3){_0xcdfa15=_0xcdfa15-0x1f2;const _0x17973e=a59_0x1797();let _0x1bc635=_0x17973e[_0xcdfa15];return _0x1bc635;}function validateInput(_0x18130b){const _0x5b3910=a59_0x182055;if(!trim(_0x18130b[_0x5b3910(0x21b)]))throw CliErrors[_0x5b3910(0x21a)]('--code\x20is\x20required');if(_0x18130b['businessGroup']===undefined)throw CliErrors[_0x5b3910(0x21a)](_0x5b3910(0x210));}function resolveBusinessGroupDataset(_0x552549,_0x28ef0c){const _0x228c99=a59_0x182055,_0x38cd97=asPlainObject(_0x552549[_0x228c99(0x216)]),_0x5baf0f=asPlainObject(_0x552549[_0x228c99(0x203)]),_0xbf1a17=resolveSourceType(_0x552549,_0x38cd97,_0x5baf0f),_0x579f24=firstString(_0x552549[_0x228c99(0x1fa)],_0x552549['code'],_0x38cd97[_0x228c99(0x225)],_0x28ef0c)||_0x28ef0c;return{'id':firstNumber(_0x552549[_0x228c99(0x1f9)],_0x552549['id'],_0x38cd97[_0x228c99(0x230)])??firstString(_0x552549['modelId'],_0x552549['id'],_0x38cd97[_0x228c99(0x230)])??null,'code':_0x579f24,'name':firstString(_0x552549[_0x228c99(0x1f5)],_0x38cd97[_0x228c99(0x22f)],_0x38cd97[_0x228c99(0x1f5)])||null,'sourceType':_0xbf1a17};}function resolveSourceType(_0x111a84,_0x18071c,_0x329bd9){const _0x28f526=a59_0x182055,_0x16bcc6=firstString(_0x111a84[_0x28f526(0x1f4)],_0x111a84[_0x28f526(0x20f)],_0x18071c[_0x28f526(0x1f4)],_0x18071c[_0x28f526(0x20f)])?.[_0x28f526(0x1fb)]()[_0x28f526(0x212)]();if(_0x16bcc6==='DB_TABLE'||_0x16bcc6===_0x28f526(0x1f6))return _0x16bcc6;if(Object[_0x28f526(0x222)](_0x329bd9)[_0x28f526(0x224)]>0x0)return _0x28f526(0x214);throw CliErrors[_0x28f526(0x21a)](_0x28f526(0x22b));}function loadCurrentBusinessGroup(_0x212656,_0xbc9135){const _0x396b93=a59_0x182055,_0xee5b4a=readBusinessGroupFromDatasetDetail(_0x212656,_0xbc9135[_0x396b93(0x20f)]);if(_0xee5b4a[_0x396b93(0x220)])return normalizeBusinessGroup(_0xee5b4a[_0x396b93(0x228)]);if(_0xbc9135[_0x396b93(0x20f)]===_0x396b93(0x1f6))return'';throw CliErrors[_0x396b93(0x21a)](_0x396b93(0x1f7),_0x396b93(0x21d));}function readBusinessGroupFromDatasetDetail(_0x27a7a0,_0x589ae8){const _0x2e8da8=a59_0x182055,_0x58f63f=asPlainObject(_0x27a7a0['dataset']),_0x54fcc7=firstPresent(_0x27a7a0[_0x2e8da8(0x209)]);if(_0x54fcc7[_0x2e8da8(0x220)])return _0x54fcc7;const _0x59ec9c=firstPresent(_0x58f63f[_0x2e8da8(0x209)]);if(_0x59ec9c[_0x2e8da8(0x220)])return _0x59ec9c;if(_0x589ae8===_0x2e8da8(0x214))return{'found':![]};const _0x2cf196=readBusinessGroupFromExtend(_0x27a7a0['extend']);if(_0x2cf196[_0x2e8da8(0x220)])return _0x2cf196;return readBusinessGroupFromExtend(_0x58f63f[_0x2e8da8(0x1ff)]);}function readBusinessGroupFromExtend(_0x16224a){const _0xd15233=a59_0x182055;if(_0x16224a===undefined||_0x16224a===null||_0x16224a==='')return{'found':![]};if(typeof _0x16224a===_0xd15233(0x204))try{const _0x1e8356=JSON['parse'](_0x16224a);return readBusinessGroupFromExtend(_0x1e8356);}catch{return{'found':![]};}const _0x32f64e=asPlainObject(_0x16224a);if(Object[_0xd15233(0x202)][_0xd15233(0x201)][_0xd15233(0x205)](_0x32f64e,_0xd15233(0x209)))return{'found':!![],'value':_0x32f64e[_0xd15233(0x209)]};return{'found':![]};}function firstPresent(..._0x1b9a91){for(const _0x2a5ac5 of _0x1b9a91){if(_0x2a5ac5!==undefined&&_0x2a5ac5!==null)return{'found':!![],'value':_0x2a5ac5};}return{'found':![]};}function a59_0x1797(){const _0x16c27=['28mtrRqS','modelId','modelCode','trim','4058456xPiVpG','4077558xJrqkY','POST','extend','283468ftVfqQ','hasOwnProperty','prototype','dbtableConfig','string','call','payload','926865qqwxBM','3111564qVWTms','businessGroup','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','data','Expected\x20','1384251KMcCVV','update','sourceType','--business-group\x20is\x20required','10DwNtZE','toUpperCase','number','DB_TABLE','str','dataset','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it','expect-business-group','stringify','validation','code','Expectation\x20mismatch\x20at\x20businessGroup','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','expectBusinessGroup','appCode','found','1vzvLHU','keys','message','length','datasetCode','156tyEwvO','write','value','7CcGUYX',',\x20actual\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','229287bOGTnY','matched','unchanged','datasetName','datasetId','business-group-update','/smartapi/question/er-config/business-group/edit','isArray','source','name','METADATA','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.'];a59_0x1797=function(){return _0x16c27;};return a59_0x1797();}function assertExpectedBusinessGroup(_0x4574cd,_0x481386){const _0x2e8950=a59_0x182055;if(_0x481386===undefined)return;const _0x1b4da8=normalizeBusinessGroup(_0x481386);if(_0x4574cd!==_0x1b4da8)throw CliErrors['validation'](_0x2e8950(0x21c),_0x2e8950(0x20c)+JSON[_0x2e8950(0x219)](_0x1b4da8)+_0x2e8950(0x22a)+JSON[_0x2e8950(0x219)](_0x4574cd));}function buildBackendPayload(_0x2644ed,_0x3bcc34,_0x241cf3){const _0x257aa7=a59_0x182055;return{'appCode':_0x2644ed,'datasetCode':_0x3bcc34[_0x257aa7(0x21b)],'businessGroup':_0x241cf3};}function normalizeBusinessGroup(_0x49525f){if(_0x49525f===undefined||_0x49525f===null)return'';return String(_0x49525f)['trim']();}function asPlainObject(_0x40ff8b){const _0x313c85=a59_0x182055;if(!_0x40ff8b||typeof _0x40ff8b!=='object'||Array[_0x313c85(0x1f3)](_0x40ff8b))return{};return _0x40ff8b;}function firstString(..._0x394d04){const _0xc6f38c=a59_0x182055;for(const _0x3c0232 of _0x394d04){if(typeof _0x3c0232===_0xc6f38c(0x204)&&_0x3c0232[_0xc6f38c(0x1fb)]())return _0x3c0232[_0xc6f38c(0x1fb)]();if(typeof _0x3c0232===_0xc6f38c(0x213)&&Number['isFinite'](_0x3c0232))return String(_0x3c0232);}return undefined;}function firstNumber(..._0x5496e0){const _0x3c5c08=a59_0x182055;for(const _0x2999fa of _0x5496e0){if(typeof _0x2999fa===_0x3c5c08(0x213)&&Number['isFinite'](_0x2999fa))return _0x2999fa;if(typeof _0x2999fa===_0x3c5c08(0x204)&&_0x2999fa[_0x3c5c08(0x1fb)]()&&Number['isFinite'](Number(_0x2999fa)))return Number(_0x2999fa);}return null;}function trim(_0x428638){const _0x44c452=a59_0x182055;return String(_0x428638||'')[_0x44c452(0x1fb)]();}
|
|
1
|
+
const a59_0x27c893=a59_0x1a11;(function(_0x2a0fb2,_0x2f207d){const _0x4ddc4f=a59_0x1a11,_0x3be4df=_0x2a0fb2();while(!![]){try{const _0x479a94=parseInt(_0x4ddc4f(0x1f2))/0x1*(parseInt(_0x4ddc4f(0x1e6))/0x2)+-parseInt(_0x4ddc4f(0x20d))/0x3*(-parseInt(_0x4ddc4f(0x1f6))/0x4)+-parseInt(_0x4ddc4f(0x216))/0x5*(parseInt(_0x4ddc4f(0x218))/0x6)+-parseInt(_0x4ddc4f(0x214))/0x7+-parseInt(_0x4ddc4f(0x1f3))/0x8*(-parseInt(_0x4ddc4f(0x219))/0x9)+-parseInt(_0x4ddc4f(0x1e5))/0xa+-parseInt(_0x4ddc4f(0x1fd))/0xb*(-parseInt(_0x4ddc4f(0x1ff))/0xc);if(_0x479a94===_0x2f207d)break;else _0x3be4df['push'](_0x3be4df['shift']());}catch(_0x2cf5ff){_0x3be4df['push'](_0x3be4df['shift']());}}}(a59_0x17f3,0x62c4f));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a59_0x27c893(0x20c);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x344da2,input:_0x5ba050,dryRun:_0x266849}){const _0x3f6ca5=a59_0x27c893;validateInput(_0x5ba050);const _0x3fe1b9=normalizeBusinessGroup(_0x5ba050[_0x3f6ca5(0x208)]),_0x5e8d75=await getDatasetDetail(_0x5ba050['code']),_0x2ad9d3=resolveBusinessGroupDataset(_0x5e8d75,_0x5ba050[_0x3f6ca5(0x1f7)]),_0x391788=loadCurrentBusinessGroup(_0x5e8d75,_0x2ad9d3);assertExpectedBusinessGroup(_0x391788,_0x5ba050[_0x3f6ca5(0x202)]);const _0x1057a4=buildBackendPayload(_0x344da2,_0x2ad9d3,_0x3fe1b9),_0x4f075d=_0x391788!==_0x3fe1b9;let _0x3442dd;if(_0x4f075d&&!_0x266849){await updateErBusinessGroup(_0x1057a4);const _0x9f63f0=await getDatasetDetail(_0x2ad9d3[_0x3f6ca5(0x1f7)]),_0x3dec23=resolveBusinessGroupDataset(_0x9f63f0,_0x2ad9d3[_0x3f6ca5(0x1f7)]),_0x11b5f9=loadCurrentBusinessGroup(_0x9f63f0,_0x3dec23);if(_0x11b5f9!==_0x3fe1b9)throw CliErrors[_0x3f6ca5(0x215)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x3f6ca5(0x1e8)+JSON[_0x3f6ca5(0x1eb)](_0x3fe1b9)+_0x3f6ca5(0x1ec)+JSON[_0x3f6ca5(0x1eb)](_0x11b5f9)+'.');_0x3442dd={'verified':!![],'status':_0x3f6ca5(0x1fa),'afterReadback':{'businessGroup':_0x11b5f9}};}else!_0x4f075d&&(_0x3442dd={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':_0x391788}});const _0x5288fe={'operation':_0x3f6ca5(0x203),'appCode':_0x344da2,'selector':{'code':_0x2ad9d3[_0x3f6ca5(0x1f7)]},'dataset':_0x2ad9d3,'before':{'businessGroup':_0x391788},'after':{'businessGroup':_0x3fe1b9},'changed':_0x4f075d,'dryRun':_0x266849,'submitted':_0x4f075d&&!_0x266849,'backend':{'method':_0x3f6ca5(0x204),'path':BACKEND_PATH,'payload':_0x1057a4},..._0x3442dd?{'verification':_0x3442dd}:{},'warnings':[]};return{'ok':!![],'data':_0x5288fe,'message':_0x4f075d?_0x266849?_0x3f6ca5(0x201)+_0x2ad9d3[_0x3f6ca5(0x1f7)]:_0x3f6ca5(0x1de)+_0x2ad9d3[_0x3f6ca5(0x1f7)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x2ad9d3['code']};}export const datasetBusinessGroupUpdate={'service':a59_0x27c893(0x1f4),'command':'business-group-update','description':a59_0x27c893(0x1e1),'risk':a59_0x27c893(0x209),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x27c893(0x20b),'required':!![],'description':a59_0x27c893(0x20e)},{'name':a59_0x27c893(0x212),'type':'string','required':![],'description':a59_0x27c893(0x1fb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x190974){validateInput(readBusinessGroupUpdateInput(_0x190974));},async 'dryRun'(_0x471b88){const _0x20e176=a59_0x27c893,_0x581db2=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x471b88[_0x20e176(0x1f0)],'input':readBusinessGroupUpdateInput(_0x471b88),'dryRun':!![]});return{'method':_0x20e176(0x204),'url':BACKEND_PATH,'body':_0x581db2[_0x20e176(0x1ef)][_0x20e176(0x1da)][_0x20e176(0x1f8)],'description':_0x581db2[_0x20e176(0x1e4)],..._0x581db2['data']};},async 'execute'(_0xc37116){return buildDatasetBusinessGroupUpdateResult({'appCode':_0xc37116['appCode'],'input':readBusinessGroupUpdateInput(_0xc37116),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x2593f1){const _0x587e6b=a59_0x27c893,_0x2edac9=_0x2593f1['str'](_0x587e6b(0x212));return{'code':trim(_0x2593f1['str'](_0x587e6b(0x1f7))),'businessGroup':_0x2593f1[_0x587e6b(0x1e0)]('business-group'),'expectBusinessGroup':_0x2edac9===undefined||_0x2edac9===''?undefined:_0x2edac9};}function validateInput(_0x39134d){const _0x2855ee=a59_0x27c893;if(!trim(_0x39134d['code']))throw CliErrors[_0x2855ee(0x1db)]('--code\x20is\x20required');if(_0x39134d[_0x2855ee(0x208)]===undefined)throw CliErrors[_0x2855ee(0x1db)](_0x2855ee(0x1e7));}function resolveBusinessGroupDataset(_0x4ce05d,_0x406013){const _0x41e4b8=a59_0x27c893,_0x245eb7=asPlainObject(_0x4ce05d['dataset']),_0x396917=asPlainObject(_0x4ce05d[_0x41e4b8(0x213)]),_0x3e3f63=resolveSourceType(_0x4ce05d,_0x245eb7,_0x396917),_0x1ec9cd=firstString(_0x4ce05d['modelCode'],_0x4ce05d[_0x41e4b8(0x1f7)],_0x245eb7[_0x41e4b8(0x205)],_0x406013)||_0x406013;return{'id':firstNumber(_0x4ce05d[_0x41e4b8(0x1fc)],_0x4ce05d['id'],_0x245eb7[_0x41e4b8(0x206)])??firstString(_0x4ce05d[_0x41e4b8(0x1fc)],_0x4ce05d['id'],_0x245eb7[_0x41e4b8(0x206)])??null,'code':_0x1ec9cd,'name':firstString(_0x4ce05d[_0x41e4b8(0x1ee)],_0x245eb7[_0x41e4b8(0x1fe)],_0x245eb7['name'])||null,'sourceType':_0x3e3f63};}function resolveSourceType(_0x2015a6,_0x14d1e7,_0x5644b9){const _0x457e6e=a59_0x27c893,_0x661f89=firstString(_0x2015a6[_0x457e6e(0x1ea)],_0x2015a6[_0x457e6e(0x1dd)],_0x14d1e7[_0x457e6e(0x1ea)],_0x14d1e7['sourceType'])?.[_0x457e6e(0x200)]()[_0x457e6e(0x1df)]();if(_0x661f89===_0x457e6e(0x1f1)||_0x661f89===_0x457e6e(0x1dc))return _0x661f89;if(Object['keys'](_0x5644b9)[_0x457e6e(0x217)]>0x0)return _0x457e6e(0x1f1);throw CliErrors[_0x457e6e(0x1db)](_0x457e6e(0x1e9));}function loadCurrentBusinessGroup(_0x147062,_0x4cb9ed){const _0x295d1d=a59_0x27c893,_0x50f233=readBusinessGroupFromDatasetDetail(_0x147062,_0x4cb9ed[_0x295d1d(0x1dd)]);if(_0x50f233[_0x295d1d(0x1ed)])return normalizeBusinessGroup(_0x50f233['value']);if(_0x4cb9ed[_0x295d1d(0x1dd)]==='METADATA')return'';throw CliErrors[_0x295d1d(0x1db)](_0x295d1d(0x207),_0x295d1d(0x20f));}function readBusinessGroupFromDatasetDetail(_0x39e391,_0x4642ad){const _0x507926=a59_0x27c893,_0x249009=asPlainObject(_0x39e391['dataset']),_0x18c5a6=firstPresent(_0x39e391[_0x507926(0x208)]);if(_0x18c5a6['found'])return _0x18c5a6;const _0x58b11b=firstPresent(_0x249009[_0x507926(0x208)]);if(_0x58b11b[_0x507926(0x1ed)])return _0x58b11b;if(_0x4642ad===_0x507926(0x1f1))return{'found':![]};const _0x12833f=readBusinessGroupFromExtend(_0x39e391[_0x507926(0x21b)]);if(_0x12833f['found'])return _0x12833f;return readBusinessGroupFromExtend(_0x249009[_0x507926(0x21b)]);}function readBusinessGroupFromExtend(_0x5d3d65){const _0x2b0f11=a59_0x27c893;if(_0x5d3d65===undefined||_0x5d3d65===null||_0x5d3d65==='')return{'found':![]};if(typeof _0x5d3d65==='string')try{const _0xae1891=JSON[_0x2b0f11(0x21a)](_0x5d3d65);return readBusinessGroupFromExtend(_0xae1891);}catch{return{'found':![]};}const _0x553fa8=asPlainObject(_0x5d3d65);if(Object[_0x2b0f11(0x1f9)][_0x2b0f11(0x1f5)][_0x2b0f11(0x20a)](_0x553fa8,_0x2b0f11(0x208)))return{'found':!![],'value':_0x553fa8['businessGroup']};return{'found':![]};}function a59_0x17f3(){const _0x49f74b=['Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','isFinite','Expectation\x20mismatch\x20at\x20businessGroup','expect-business-group','dbtableConfig','3432261abFwqk','apiError','5UDfCmT','length','2460006rMnAHZ','9rBSWYz','parse','extend','backend','validation','METADATA','sourceType','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','toUpperCase','str','Update\x20business\x20scenario\x20group','number','object','message','4476200pHJGAN','90McXkxs','--business-group\x20is\x20required','Expected\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','source','stringify',',\x20actual\x20','found','name','data','appCode','DB_TABLE','10937nGAggD','3166808vxknsM','dataset','hasOwnProperty','528356vcsTYm','code','payload','prototype','matched','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','modelId','11Eqzkxo','datasetName','8788776WMVKDY','trim','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','expectBusinessGroup','update','POST','datasetCode','datasetId','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','businessGroup','write','call','string','/smartapi/question/er-config/business-group/edit','3GEkhfB','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it'];a59_0x17f3=function(){return _0x49f74b;};return a59_0x17f3();}function firstPresent(..._0x2a90d0){for(const _0x6c5e2d of _0x2a90d0){if(_0x6c5e2d!==undefined&&_0x6c5e2d!==null)return{'found':!![],'value':_0x6c5e2d};}return{'found':![]};}function assertExpectedBusinessGroup(_0xe44a7b,_0x4d1343){const _0x2d0939=a59_0x27c893;if(_0x4d1343===undefined)return;const _0x55858b=normalizeBusinessGroup(_0x4d1343);if(_0xe44a7b!==_0x55858b)throw CliErrors['validation'](_0x2d0939(0x211),_0x2d0939(0x1e8)+JSON[_0x2d0939(0x1eb)](_0x55858b)+_0x2d0939(0x1ec)+JSON['stringify'](_0xe44a7b));}function buildBackendPayload(_0x124746,_0x59738d,_0x2c1da4){const _0x396a2b=a59_0x27c893;return{'appCode':_0x124746,'datasetCode':_0x59738d[_0x396a2b(0x1f7)],'businessGroup':_0x2c1da4};}function normalizeBusinessGroup(_0x1a399e){const _0x2d6e24=a59_0x27c893;if(_0x1a399e===undefined||_0x1a399e===null)return'';return String(_0x1a399e)[_0x2d6e24(0x200)]();}function asPlainObject(_0x413d6a){const _0x21c57c=a59_0x27c893;if(!_0x413d6a||typeof _0x413d6a!==_0x21c57c(0x1e3)||Array['isArray'](_0x413d6a))return{};return _0x413d6a;}function firstString(..._0x43d4db){const _0x597dc8=a59_0x27c893;for(const _0x446aaa of _0x43d4db){if(typeof _0x446aaa===_0x597dc8(0x20b)&&_0x446aaa[_0x597dc8(0x200)]())return _0x446aaa[_0x597dc8(0x200)]();if(typeof _0x446aaa===_0x597dc8(0x1e2)&&Number[_0x597dc8(0x210)](_0x446aaa))return String(_0x446aaa);}return undefined;}function firstNumber(..._0x56b82b){const _0x1c7106=a59_0x27c893;for(const _0x301676 of _0x56b82b){if(typeof _0x301676===_0x1c7106(0x1e2)&&Number[_0x1c7106(0x210)](_0x301676))return _0x301676;if(typeof _0x301676===_0x1c7106(0x20b)&&_0x301676[_0x1c7106(0x200)]()&&Number[_0x1c7106(0x210)](Number(_0x301676)))return Number(_0x301676);}return null;}function a59_0x1a11(_0x30ccd4,_0x45a6c3){_0x30ccd4=_0x30ccd4-0x1da;const _0x17f301=a59_0x17f3();let _0x1a112e=_0x17f301[_0x30ccd4];return _0x1a112e;}function trim(_0x2fffe4){const _0x849497=a59_0x27c893;return String(_0x2fffe4||'')[_0x849497(0x200)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60_0x494322=a60_0x1a03;(function(_0x58841b,_0x1e44ca){const _0x179ccd=a60_0x1a03,_0x5151c0=_0x58841b();while(!![]){try{const _0x4c7fc2=-parseInt(_0x179ccd(0x18e))/0x1+parseInt(_0x179ccd(0x16c))/0x2*(parseInt(_0x179ccd(0x174))/0x3)+-parseInt(_0x179ccd(0x172))/0x4+-parseInt(_0x179ccd(0x16d))/0x5+parseInt(_0x179ccd(0x173))/0x6*(parseInt(_0x179ccd(0x16b))/0x7)+parseInt(_0x179ccd(0x168))/0x8*(-parseInt(_0x179ccd(0x176))/0x9)+parseInt(_0x179ccd(0x18a))/0xa;if(_0x4c7fc2===_0x1e44ca)break;else _0x5151c0['push'](_0x5151c0['shift']());}catch(_0x3e845f){_0x5151c0['push'](_0x5151c0['shift']());}}}(a60_0x1bbc,0x6e688));import{CliErrors}from'../../errors.js';function a60_0x1bbc(){const _0x71fe5f=['join','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20的\x20DB_TABLE\x20数据源上下文。','dbtable','unknown','name','toUpperCase','modelCode','SQL\x20schema\x20validation','14444500rJOjEd','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','length','113755ooIepA','source','2608JsnWFk','\x20是\x20','validation','14grMfic','2910jJhqAv','1695845mmMjzX','当前数据集\x20\x22','lovrabet','dbId','tableName','2211084VPbmpu','180582kESmMr','147hvTTzD','filter','3258uiUsJT','sourceType','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','code','trim','UNKNOWN','dataset','getOne','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','METADATA','object'];a60_0x1bbc=function(){return _0x71fe5f;};return a60_0x1bbc();}export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x494322(0x16f),'filter':a60_0x494322(0x182),'getOne':a60_0x494322(0x178)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x158ed4){const _0x39fa69=a60_0x494322;return _0x158ed4==null?'':String(_0x158ed4)[_0x39fa69(0x17a)]();}function getDatasetCode(_0x79e59e){const _0x6e3d3c=a60_0x494322;return valueToString(_0x79e59e[_0x6e3d3c(0x179)]??_0x79e59e[_0x6e3d3c(0x188)]??_0x79e59e[_0x6e3d3c(0x17c)]?.['datasetCode']);}function a60_0x1a03(_0x3bf521,_0x39a12e){_0x3bf521=_0x3bf521-0x167;const _0x1bbc9b=a60_0x1bbc();let _0x1a039e=_0x1bbc9b[_0x3bf521];return _0x1a039e;}function getDatasetName(_0x53c1ce){const _0x42c625=a60_0x494322;return valueToString(_0x53c1ce[_0x42c625(0x186)]??_0x53c1ce[_0x42c625(0x17c)]?.['datasetName'])||_0x42c625(0x185);}function getDatasetSource(_0xab7fba){const _0x26dfd4=a60_0x494322;return valueToString(_0xab7fba[_0x26dfd4(0x167)]??_0xab7fba[_0x26dfd4(0x17c)]?.[_0x26dfd4(0x177)])[_0x26dfd4(0x187)]();}function getDbtableConfig(_0x4c24f2){const _0x30df9a=a60_0x494322,_0x1a9bc9=_0x4c24f2['dbtableConfig']??_0x4c24f2[_0x30df9a(0x184)];return _0x1a9bc9&&typeof _0x1a9bc9===_0x30df9a(0x180)?_0x1a9bc9:{};}export function isDbTableBackedDataset(_0xb4ee7f){const _0x29f666=a60_0x494322,_0x512aa7=getDatasetSource(_0xb4ee7f);if(_0x512aa7===_0x29f666(0x17f))return![];const _0x5af1d1=getDbtableConfig(_0xb4ee7f),_0x285c0f=_0x5af1d1[_0x29f666(0x170)]??_0x5af1d1['id'],_0x283f39=valueToString(_0x5af1d1[_0x29f666(0x171)]??_0xb4ee7f['tableName']??_0xb4ee7f[_0x29f666(0x17c)]?.['tableName']);return _0x285c0f!==undefined&&_0x285c0f!==null&&_0x283f39[_0x29f666(0x18d)]>0x0;}export function filterDbTableBackedDatasets(_0x409157){const _0x16cd05=a60_0x494322;return _0x409157[_0x16cd05(0x175)](_0x897733=>isDbTableBackedDataset(_0x897733));}export function buildDbTableBackedRequirementMessage(_0x2a4d9d,_0x33be0e=a60_0x494322(0x189)){const _0x1a87e5=a60_0x494322,_0x47dd9b=getDatasetSource(_0x2a4d9d)||_0x1a87e5(0x17b),_0x6c2efa=getDatasetName(_0x2a4d9d),_0x2ef117=getDatasetCode(_0x2a4d9d),_0xe89fac=_0x2ef117?'\x20('+_0x2ef117+')':'';return[_0x1a87e5(0x16e)+_0x6c2efa+'\x22'+_0xe89fac+_0x1a87e5(0x169)+_0x47dd9b+'\x20类型,没有可用于\x20'+_0x33be0e+_0x1a87e5(0x183),_0x1a87e5(0x17e),_0x1a87e5(0x18c),_0x1a87e5(0x18b)+RUNTIME_DATA_ACCESS_COMMANDS[_0x1a87e5(0x175)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x1a87e5(0x17d)]+'。'][_0x1a87e5(0x181)]('\x20');}export function assertDatasetIsDbTableBacked(_0xb83235,_0x23d8d4){const _0x51edf3=a60_0x494322;if(!isDbTableBackedDataset(_0xb83235))throw CliErrors[_0x51edf3(0x16a)](buildDbTableBackedRequirementMessage(_0xb83235,_0x23d8d4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0xcc2e59=a61_0x5260;(function(_0x147378,_0x68866d){const _0x173aee=a61_0x5260,_0x3cb5fb=_0x147378();while(!![]){try{const _0x46ad03=-parseInt(_0x173aee(0x84))/0x1+parseInt(_0x173aee(0xa5))/0x2*(parseInt(_0x173aee(0x7e))/0x3)+-parseInt(_0x173aee(0x75))/0x4*(-parseInt(_0x173aee(0x91))/0x5)+parseInt(_0x173aee(0x7d))/0x6+parseInt(_0x173aee(0x7b))/0x7*(-parseInt(_0x173aee(0x88))/0x8)+parseInt(_0x173aee(0x86))/0x9+parseInt(_0x173aee(0x8d))/0xa;if(_0x46ad03===_0x68866d)break;else _0x3cb5fb['push'](_0x3cb5fb['shift']());}catch(_0x47ec45){_0x3cb5fb['push'](_0x3cb5fb['shift']());}}}(a61_0x4cb8,0xd1788));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';function a61_0x4cb8(){const _0x4c1d6b=['No\x20undeleted\x20dataset\x20found\x20for\x20','appCode','high-risk-write','\x20failed','dbid','name','filter','isArray','delete','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','code','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','num','push','POST','\x20dataset(s)','2foCcYF','dbName','dataset','confirm','message','40yAsWid','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','Dataset\x20id','dbId','7gbBPnL','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','8871216yvIYqg','3639126iCMYCu','number','length','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','relatedPageInfoList','Would\x20delete\x20','1432700IDvVtz','/smartapi/dataset/delete-dataset','7016238RQKrgO','str','10605912jBbtNx','expected-count','source','deleted','Matched\x20','766510pbbkqg','dbtableConfig','Deleted\x20','dbid=','34310QLZMwF','validation','tableName','Required\x20to\x20execute\x20dataset\x20deletion'];a61_0x4cb8=function(){return _0x4c1d6b;};return a61_0x4cb8();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0xcc2e59(0x7f),'description':a61_0xcc2e59(0x79)},DBID_FLAG={'name':a61_0xcc2e59(0x99),'type':a61_0xcc2e59(0x7f),'description':a61_0xcc2e59(0x9e)},CONFIRM_FLAG={'name':a61_0xcc2e59(0x73),'type':'boolean','description':a61_0xcc2e59(0x94)},EXPECTED_COUNT_FLAG={'name':a61_0xcc2e59(0x89),'type':a61_0xcc2e59(0x7f),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a61_0xcc2e59(0xa7),'command':a61_0xcc2e59(0x9d),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a61_0xcc2e59(0x97),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x576a61){const _0x520283=a61_0xcc2e59,_0x4f9787=_0x576a61[_0x520283(0xa1)]('id'),_0x1286d8=_0x576a61['str'](_0x520283(0x9f)),_0x42f4b6=_0x576a61[_0x520283(0xa1)](_0x520283(0x99)),_0x2859ae=[_0x4f9787>0x0,Boolean(_0x1286d8),_0x42f4b6>0x0][_0x520283(0x9b)](Boolean);if(_0x2859ae[_0x520283(0x80)]===0x0)throw CliErrors[_0x520283(0x92)](_0x520283(0x7c));if(_0x2859ae['length']>0x1)throw CliErrors['validation'](_0x520283(0x78));},async 'dryRun'(_0x40c3e6){const _0x322854=a61_0xcc2e59,_0x2dd4b9=await resolveTargets(_0x40c3e6);return{'method':_0x322854(0xa3),'url':_0x322854(0x85),'body':{'appCode':_0x40c3e6[_0x322854(0x96)],'count':_0x2dd4b9[_0x322854(0x80)],'datasets':_0x2dd4b9},'description':_0x322854(0x83)+_0x2dd4b9[_0x322854(0x80)]+_0x322854(0x76)};},async 'execute'(_0x497d2a){const _0x74e08d=a61_0xcc2e59;if(!_0x497d2a['bool'](_0x74e08d(0x73)))throw CliErrors[_0x74e08d(0x92)](_0x74e08d(0x81),_0x74e08d(0xa0));const _0x4a07ad=await resolveTargets(_0x497d2a),_0x3e26ce=[],_0xebab5f=[];for(const _0x2d35d7 of _0x4a07ad){try{await deleteDataset(_0x497d2a[_0x74e08d(0x96)],_0x2d35d7['id']),_0x3e26ce[_0x74e08d(0xa2)](_0x2d35d7);}catch(_0x103be6){_0xebab5f[_0x74e08d(0xa2)]({..._0x2d35d7,'error':_0x103be6 instanceof Error?_0x103be6[_0x74e08d(0x74)]:String(_0x103be6)});}}if(_0xebab5f[_0x74e08d(0x80)]>0x0)return{'ok':![],'data':{'requested':_0x4a07ad['length'],'deletedCount':_0x3e26ce[_0x74e08d(0x80)],'failedCount':_0xebab5f[_0x74e08d(0x80)],'deleted':_0x3e26ce,'failed':_0xebab5f},'message':_0x74e08d(0x8f)+_0x3e26ce[_0x74e08d(0x80)]+'/'+_0x4a07ad['length']+'\x20dataset(s);\x20'+_0xebab5f['length']+_0x74e08d(0x98)};return{'ok':!![],'data':{'requested':_0x4a07ad[_0x74e08d(0x80)],'deletedCount':_0x3e26ce[_0x74e08d(0x80)],'deleted':_0x3e26ce},'message':_0x74e08d(0x8f)+_0x3e26ce[_0x74e08d(0x80)]+_0x74e08d(0xa4)};}};function a61_0x5260(_0x295ccf,_0x18da0d){_0x295ccf=_0x295ccf-0x73;const _0x4cb8b9=a61_0x4cb8();let _0x526028=_0x4cb8b9[_0x295ccf];return _0x526028;}async function resolveTargets(_0x49ea11){const _0xc27d23=a61_0xcc2e59,_0x316693=_0x49ea11[_0xc27d23(0xa1)]('id'),_0x29b2f7=_0x49ea11[_0xc27d23(0x87)](_0xc27d23(0x9f)),_0x13531e=_0x49ea11[_0xc27d23(0xa1)](_0xc27d23(0x99));let _0x40c682;_0x29b2f7?(_0x40c682=await listDatasets(_0x49ea11['appCode'],{'code':_0x29b2f7}),_0x40c682=_0x40c682[_0xc27d23(0x9b)](_0x7b14a2=>_0x7b14a2[_0xc27d23(0x9f)]===_0x29b2f7)):(_0x40c682=await listDatasets(_0x49ea11[_0xc27d23(0x96)]),_0x316693>0x0&&(_0x40c682=_0x40c682['filter'](_0x52f5bd=>_0x52f5bd['id']===_0x316693)),_0x13531e>0x0&&(_0x40c682=_0x40c682['filter'](_0x5cc239=>_0x5cc239[_0xc27d23(0x8e)]?.[_0xc27d23(0x7a)]===_0x13531e)));const _0x2dbc8e=[];for(const _0x5c1646 of _0x40c682){const _0x23ed13=await getDatasetDetail(_0x5c1646[_0xc27d23(0x9f)]),_0x41523f=Array[_0xc27d23(0x9c)](_0x23ed13[_0xc27d23(0x82)])?_0x23ed13[_0xc27d23(0x82)][_0xc27d23(0x9b)](_0x49b8c5=>_0x49b8c5!=null&&typeof _0x49b8c5==='object'&&_0x49b8c5[_0xc27d23(0x8b)]!==!![]):[];_0x2dbc8e[_0xc27d23(0xa2)](normalizeTarget(_0x5c1646,_0x41523f[_0xc27d23(0x80)]));}if(_0x2dbc8e[_0xc27d23(0x80)]===0x0){const _0x81340f=_0x29b2f7||(_0x316693>0x0?'id='+_0x316693:_0xc27d23(0x90)+_0x13531e);throw CliErrors['validation'](_0xc27d23(0x95)+_0x81340f+'.');}const _0x3d44d8=_0x49ea11['num'](_0xc27d23(0x89));if(_0x3d44d8>0x0&&_0x2dbc8e[_0xc27d23(0x80)]!==_0x3d44d8)throw CliErrors[_0xc27d23(0x92)](_0xc27d23(0x8c)+_0x2dbc8e[_0xc27d23(0x80)]+_0xc27d23(0x77)+_0x3d44d8+'.');return _0x2dbc8e;}function normalizeTarget(_0x1d245a,_0x563a5e){const _0x146545=a61_0xcc2e59,_0x296ce9=_0x1d245a[_0x146545(0x8e)]??{};return{'id':_0x1d245a['id'],'code':_0x1d245a[_0x146545(0x9f)],'name':_0x1d245a[_0x146545(0x9a)],'description':_0x1d245a['description'],'source':_0x1d245a[_0x146545(0x8a)],'dbId':_0x296ce9['dbId'],'dbName':_0x296ce9[_0x146545(0xa6)],'tableName':_0x296ce9[_0x146545(0x93)],'relatedPageCount':_0x563a5e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x1d1319=a62_0x10d7;(function(_0x492dca,_0x5254de){const _0x24d7c1=a62_0x10d7,_0x1907d9=_0x492dca();while(!![]){try{const _0x253236=parseInt(_0x24d7c1(0x1b0))/0x1*(-parseInt(_0x24d7c1(0x1d2))/0x2)+-parseInt(_0x24d7c1(0x1c5))/0x3*(-parseInt(_0x24d7c1(0x1c0))/0x4)+-parseInt(_0x24d7c1(0x1e6))/0x5*(parseInt(_0x24d7c1(0x1ea))/0x6)+-parseInt(_0x24d7c1(0x1a2))/0x7+parseInt(_0x24d7c1(0x1bc))/0x8*(parseInt(_0x24d7c1(0x1d0))/0x9)+parseInt(_0x24d7c1(0x1d1))/0xa*(parseInt(_0x24d7c1(0x1ab))/0xb)+-parseInt(_0x24d7c1(0x1af))/0xc*(-parseInt(_0x24d7c1(0x1cc))/0xd);if(_0x253236===_0x5254de)break;else _0x1907d9['push'](_0x1907d9['shift']());}catch(_0x2c4582){_0x1907d9['push'](_0x1907d9['shift']());}}}(a62_0x2c14,0x64d86));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a62_0x2c14(){const _0x149946=['toTableName','creatorNameField','object','displayName','deprecated','toDatasetName','extend','doVersion','createTimeField','cardinality','5218171ctRNXQ','description','relatedPageInfoList','modifierNameField','alias','relations','code','dbtableConfig','entries','11xOuNks','fields','filter','properties','12QdAopa','1347EKnYea','pkField','map','afterScriptId','modifierIdField','labelField','name','validateRules','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','sourceType','requestBody','parse','1478720AGTfCV','tableName','fromField','trim','11924ifbwWF','length','detail','toDatasetCode','type','828bDVqgn','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','string','dataType','formatRules','isArray','split','6998303TtWyyZ','indexes','dbType','modelCode','18FQHIth','373390lLBnTs','180vaSZGZ','dataset','columnCodeListWithDeleted','main_sub','datasetKey','host','relationId','beforeScriptId','operations','requestFields','options','read','path','responseBody','required','doType','source','allFields','method','modelId','2441805YELEWG','dbId','responseFields','allFieldNames','6IEhIHK','dbName','dblinkInfoDTO'];a62_0x2c14=function(){return _0x149946;};return a62_0x2c14();}function normalizeField(_0x3fbeb0){const _0x11cf11=a62_0x10d7;if(_0x3fbeb0['deleted'])return null;const _0x1666bb=Boolean(_0x3fbeb0[_0x11cf11(0x19b)]!==undefined||_0x3fbeb0[_0x11cf11(0x1e1)]!==undefined);let _0x1dc957={};if(!_0x1666bb&&typeof _0x3fbeb0[_0x11cf11(0x19e)]===_0x11cf11(0x1c7))try{_0x1dc957=JSON[_0x11cf11(0x1bb)](_0x3fbeb0[_0x11cf11(0x19e)]);}catch{}const _0x4c0048=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1b6)]:_0x3fbeb0[_0x11cf11(0x1a8)],_0x1e012e=_0x1666bb?_0x3fbeb0[_0x11cf11(0x19b)]:_0x3fbeb0[_0x11cf11(0x1b6)],_0x46a5f5=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1e1)]:_0x3fbeb0[_0x11cf11(0x1c4)]||_0x3fbeb0[_0x11cf11(0x1c8)],_0x2bbe75=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1b1)]===!![]:_0x1dc957[_0x11cf11(0x1b1)]===!![],_0x1fae38=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1e0)]===!![]:_0x1dc957[_0x11cf11(0x1e0)]===!![],_0x10a93a=_0x1666bb?_0x3fbeb0['options']??null:_0x1dc957[_0x11cf11(0x1dc)]??null,_0x5d937a={'name':_0x4c0048,'displayName':_0x1e012e||_0x4c0048,'type':_0x46a5f5,'dbType':_0x3fbeb0[_0x11cf11(0x1ce)],'pk':_0x2bbe75,'required':_0x1fae38,'deprecated':_0x3fbeb0[_0x11cf11(0x19c)]===!![],'description':_0x3fbeb0[_0x11cf11(0x1a3)]||undefined};return Array['isArray'](_0x10a93a)&&_0x10a93a[_0x11cf11(0x1c1)]>0x0&&(_0x5d937a[_0x11cf11(0x1dc)]=_0x10a93a),_0x5d937a;}function parseJsonMaybe(_0x14c11b){const _0x458397=a62_0x10d7;if(typeof _0x14c11b!==_0x458397(0x1c7))return _0x14c11b;try{return JSON[_0x458397(0x1bb)](_0x14c11b);}catch{return _0x14c11b;}}function normalizeOperationEntry(_0x545e43,_0x500288){const _0x14ab74=a62_0x10d7;if(!_0x500288||typeof _0x500288!==_0x14ab74(0x1ef))return null;if(!_0x500288[_0x14ab74(0x1e4)]||!_0x500288['path'])return null;const _0x3c787d={'name':_0x545e43,'method':_0x500288['method'],'path':_0x500288[_0x14ab74(0x1de)]};if(_0x500288[_0x14ab74(0x1d7)])_0x3c787d[_0x14ab74(0x1d7)]=_0x500288['host'];if(_0x500288[_0x14ab74(0x1ba)]!=null){const _0x544040=parseJsonMaybe(_0x500288[_0x14ab74(0x1ba)]);_0x3c787d['requestBody']=_0x544040;}if(_0x500288['responseBody']!=null){const _0x4ca52b=parseJsonMaybe(_0x500288[_0x14ab74(0x1df)]);_0x3c787d[_0x14ab74(0x1df)]=_0x4ca52b;}if(_0x500288['beforeScriptId']!=null)_0x3c787d[_0x14ab74(0x1d9)]=_0x500288['beforeScriptId'];if(_0x500288[_0x14ab74(0x1b3)]!=null)_0x3c787d[_0x14ab74(0x1b3)]=_0x500288['afterScriptId'];if(Array[_0x14ab74(0x1ca)](_0x500288['requestFields']))_0x3c787d[_0x14ab74(0x1db)]=_0x500288[_0x14ab74(0x1db)];if(Array[_0x14ab74(0x1ca)](_0x500288[_0x14ab74(0x1e8)]))_0x3c787d[_0x14ab74(0x1e8)]=_0x500288[_0x14ab74(0x1e8)];return _0x3c787d;}function a62_0x10d7(_0x5afc6d,_0x34d3c5){_0x5afc6d=_0x5afc6d-0x19b;const _0x2c1449=a62_0x2c14();let _0x10d7dd=_0x2c1449[_0x5afc6d];return _0x10d7dd;}function summarizeDbtable(_0x433fe3){const _0x10deed=a62_0x10d7,_0x28a34b={},_0x3dbb79=[_0x10deed(0x1e7),_0x10deed(0x1eb),_0x10deed(0x1bd),_0x10deed(0x1d6),_0x10deed(0x1b1),_0x10deed(0x1e3),'logicField',_0x10deed(0x1a0),'updateTimeField','creatorIdField',_0x10deed(0x1ee),_0x10deed(0x1b4),_0x10deed(0x1a5),_0x10deed(0x1b5),_0x10deed(0x1ec)];for(const _0x822bb of _0x3dbb79){if(_0x433fe3[_0x822bb]!==undefined)_0x28a34b[_0x822bb]=_0x433fe3[_0x822bb];}return typeof _0x28a34b[_0x10deed(0x1e3)]===_0x10deed(0x1c7)&&_0x28a34b[_0x10deed(0x1e3)][_0x10deed(0x1c1)]>0x0&&(_0x28a34b[_0x10deed(0x1e9)]=_0x28a34b['allFields'][_0x10deed(0x1cb)](',')[_0x10deed(0x1b2)](_0x5b0cab=>_0x5b0cab[_0x10deed(0x1bf)]())[_0x10deed(0x1ad)](Boolean)),_0x28a34b;}function normalizeRelatedPages(_0x569165){const _0x4d7efa=a62_0x10d7;if(!Array[_0x4d7efa(0x1ca)](_0x569165))return[];return _0x569165['filter'](_0x29ed7b=>_0x29ed7b&&typeof _0x29ed7b===_0x4d7efa(0x1ef))[_0x4d7efa(0x1b2)](_0xd787f4=>({'id':_0xd787f4['id'],'type':_0xd787f4[_0x4d7efa(0x1c4)],'code':_0xd787f4[_0x4d7efa(0x1a8)],'title':_0xd787f4['title'],'deleted':_0xd787f4['deleted']===!![]}));}export const datasetDetail={'service':a62_0x1d1319(0x1d3),'command':a62_0x1d1319(0x1c2),'description':a62_0x1d1319(0x1b8),'risk':a62_0x1d1319(0x1dd),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x1d1319(0x1a6),'type':a62_0x1d1319(0x1c7),'description':a62_0x1d1319(0x1c6)}],async 'execute'(_0x114813){const _0x4b218b=a62_0x1d1319,_0x914d5e=await getDatasetDetail(_0x114813['str'](_0x4b218b(0x1a8))),_0x1f1678=Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1ac)])?_0x914d5e[_0x4b218b(0x1ac)]:Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1ae)])?_0x914d5e['properties']:[],_0x3f480d=_0x1f1678[_0x4b218b(0x1b2)](_0x5024f5=>normalizeField(_0x5024f5))[_0x4b218b(0x1ad)](_0x228514=>_0x228514!==null),_0x6e6b91=_0x914d5e[_0x4b218b(0x1da)]??{},_0x5a9129=[];for(const [_0x5877df,_0x235e4f]of Object[_0x4b218b(0x1aa)](_0x6e6b91)){const _0x172ac7=normalizeOperationEntry(_0x5877df,_0x235e4f);if(_0x172ac7)_0x5a9129['push'](_0x172ac7);}const _0x351f7c=_0x914d5e[_0x4b218b(0x1a9)]??{},_0x1f5497=_0x914d5e[_0x4b218b(0x1d3)]??{},_0x305a82=_0x351f7c[_0x4b218b(0x1e7)]!=null?{'id':_0x351f7c[_0x4b218b(0x1e7)],'name':_0x351f7c[_0x4b218b(0x1eb)]??null}:undefined;let _0x4fdcaf;return typeof _0x914d5e[_0x4b218b(0x19e)]===_0x4b218b(0x1c7)&&(_0x4fdcaf=parseJsonMaybe(_0x914d5e[_0x4b218b(0x19e)])),{'ok':!![],'data':{'id':_0x914d5e[_0x4b218b(0x1e5)]??_0x914d5e['id'],'name':_0x914d5e['name'],'code':_0x914d5e[_0x4b218b(0x1cf)]||_0x914d5e[_0x4b218b(0x1a8)],'doVersion':_0x914d5e[_0x4b218b(0x19f)],'description':_0x914d5e['description']||_0x1f5497['tableComment']||undefined,'source':_0x914d5e[_0x4b218b(0x1e2)]||_0x1f5497[_0x4b218b(0x1b9)],'table':_0x351f7c[_0x4b218b(0x1bd)]||_0x1f5497['tableName'],'datasetKey':_0x351f7c[_0x4b218b(0x1d6)],'pk':_0x351f7c[_0x4b218b(0x1b1)],'db':_0x305a82,'dbtable':summarizeDbtable(_0x351f7c),'fields':_0x3f480d,'operations':_0x5a9129,'indexes':Array[_0x4b218b(0x1ca)](_0x1f5497[_0x4b218b(0x1cd)])?_0x1f5497[_0x4b218b(0x1cd)]:[],'relations':Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1a7)])?_0x914d5e['relations'][_0x4b218b(0x1b2)](_0x4705bc=>({..._0x4705bc['relationId']!=null?{'relationId':_0x4705bc[_0x4b218b(0x1d8)]}:{},'fromDataset':_0x914d5e[_0x4b218b(0x1b6)],'fromCode':_0x914d5e['modelCode']||_0x914d5e[_0x4b218b(0x1a8)],'fromTable':_0x351f7c[_0x4b218b(0x1bd)]||_0x1f5497[_0x4b218b(0x1bd)],'fromField':_0x4705bc[_0x4b218b(0x1be)],'toDataset':_0x4705bc[_0x4b218b(0x19d)],'toCode':_0x4705bc[_0x4b218b(0x1c3)],'toTable':_0x4705bc[_0x4b218b(0x1ed)],'toField':_0x4705bc['toField'],'labelField':_0x4705bc['toFieldLabel']||undefined,'cardinality':_0x4705bc[_0x4b218b(0x1a1)]||undefined,'bizRelationType':_0x4705bc['bizRelationType']===_0x4b218b(0x1d5)?_0x4b218b(0x1d5):null})):[],'relatedPages':normalizeRelatedPages(_0x914d5e[_0x4b218b(0x1a4)]),...Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1d4)])?{'columnCodeListWithDeleted':_0x914d5e[_0x4b218b(0x1d4)]}:{},'formatRules':Array['isArray'](_0x914d5e[_0x4b218b(0x1c9)])?_0x914d5e[_0x4b218b(0x1c9)]:[],'validateRules':Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1b7)])?_0x914d5e['validateRules']:[],..._0x4fdcaf!==undefined?{'extend':_0x4fdcaf}:{},'stats':{'fieldCount':_0x3f480d['length'],'operationCount':_0x5a9129['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a63_0x283d70=a63_0x3a46;(function(_0x24ab01,_0x33e312){const _0x4ad740=a63_0x3a46,_0x579d7f=_0x24ab01();while(!![]){try{const _0x1a1572=-parseInt(_0x4ad740(0x1d0))/0x1*(parseInt(_0x4ad740(0x1f3))/0x2)+parseInt(_0x4ad740(0x1d7))/0x3*(parseInt(_0x4ad740(0x1fe))/0x4)+parseInt(_0x4ad740(0x1cf))/0x5+-parseInt(_0x4ad740(0x1f0))/0x6*(-parseInt(_0x4ad740(0x1fd))/0x7)+-parseInt(_0x4ad740(0x1e3))/0x8+-parseInt(_0x4ad740(0x1c5))/0x9+parseInt(_0x4ad740(0x1f2))/0xa;if(_0x1a1572===_0x33e312)break;else _0x579d7f['push'](_0x579d7f['shift']());}catch(_0x29e98e){_0x579d7f['push'](_0x579d7f['shift']());}}}(a63_0x382e,0x384db));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':a63_0x283d70(0x1ed),'hint':a63_0x283d70(0x1f7)}]]);export function parseJsonObjectFlag(_0x54f969,_0x12fe27){const _0x2960ce=a63_0x283d70;if(!_0x54f969)return undefined;let _0x5148b2;try{_0x5148b2=JSON[_0x2960ce(0x1c6)](_0x54f969);}catch(_0x595f8b){const _0x36f1d4=_0x595f8b instanceof Error?_0x595f8b['message']:String(_0x595f8b);throw CliErrors[_0x2960ce(0x1c4)](_0x12fe27+_0x2960ce(0x1ca)+_0x36f1d4);}if(!isPlainObject(_0x5148b2)||Array[_0x2960ce(0x1e9)](_0x5148b2))throw CliErrors[_0x2960ce(0x1c4)](_0x12fe27+_0x2960ce(0x1c7));return _0x5148b2;}export function validateExtendPatchKeys(_0x291286){const _0x5ecdac=a63_0x283d70,_0x33c5d5=Object[_0x5ecdac(0x1c3)](_0x291286);if(_0x33c5d5[_0x5ecdac(0x1fa)]===0x0)throw CliErrors[_0x5ecdac(0x1c4)](_0x5ecdac(0x1f9));for(const _0x2b30e9 of _0x33c5d5){const _0x725cd7=EXTEND_PATCH_REDIRECTS[_0x5ecdac(0x1e7)](_0x2b30e9);if(_0x725cd7)throw CliErrors[_0x5ecdac(0x1c4)](_0x725cd7[_0x5ecdac(0x1d3)],_0x725cd7[_0x5ecdac(0x1e0)]);if(!MUTABLE_EXTEND_KEYS[_0x5ecdac(0x1c9)](_0x2b30e9))throw CliErrors[_0x5ecdac(0x1c4)]('Unsupported\x20patch\x20key:\x20'+_0x2b30e9,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x4924ff=a63_0x283d70,_0x13866e=Array[_0x4924ff(0x1eb)](MUTABLE_EXTEND_KEYS)[_0x4924ff(0x1e6)]();return _0x13866e['length']>0x0?_0x4924ff(0x1f1)+_0x13866e[_0x4924ff(0x1fb)](',\x20'):_0x4924ff(0x1e1);}export function applyExtendPatch(_0x590189,_0x29277d){const _0x1d1da1=a63_0x283d70;validateExtendPatchKeys(_0x29277d);const _0x11e62b=deepClone(_0x590189),_0x5d8598=[];for(const [_0x30cead,_0x580588]of Object[_0x1d1da1(0x1fc)](_0x29277d)){const _0x116faa=_0x11e62b[_0x30cead],_0x43eca2=deepClone(_0x580588);!deepEqual(_0x116faa,_0x43eca2)&&(_0x11e62b[_0x30cead]=_0x43eca2,_0x5d8598['push'](_0x1d1da1(0x1d8)+_0x30cead));}return _0x5d8598[_0x1d1da1(0x1e6)](),{'after':_0x11e62b,'changedPaths':_0x5d8598,'changed':_0x5d8598[_0x1d1da1(0x1fa)]>0x0};}export function assertExpectation(_0x55f9a7,_0x185de9){const _0xb8ceb8=a63_0x283d70;if(!_0x185de9)return;for(const [_0x301d06,_0x1c0305]of Object['entries'](_0x185de9)){const _0x1c3313=_0x55f9a7[_0x301d06];if(!deepEqual(_0x1c3313,_0x1c0305))throw CliErrors[_0xb8ceb8(0x1c4)](_0xb8ceb8(0x1d9)+_0x301d06,_0xb8ceb8(0x1cd)+JSON[_0xb8ceb8(0x1f8)](_0x1c0305)+_0xb8ceb8(0x1d2)+JSON['stringify'](_0x1c3313));}}function a63_0x3a46(_0x1cd7be,_0x44104d){_0x1cd7be=_0x1cd7be-0x1bf;const _0x382ecc=a63_0x382e();let _0x3a46f3=_0x382ecc[_0x1cd7be];return _0x3a46f3;}function a63_0x382e(){const _0x467e89=['name','dataset','modelCode','246597wtLPVa','extend.','Expectation\x20mismatch\x20at\x20extend.','appCode','patch-json','string','code','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','dbName','hint','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','datasetCode','215544KamTxD','str','datasetName','sort','get','value','isArray','trim','from','expect-json','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','POST','modelId','18VlsnLA','Allowed\x20keys:\x20','1491810kONKXk','477530yXQpxY','--expect-json','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','shape','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','stringify','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','length','join','entries','744569GyhsaR','4IDVlVc','datasetId','--code\x20is\x20required','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','tableName','keys','validation','3485763IVsrKM','parse','\x20must\x20be\x20a\x20JSON\x20object','No\x20changes\x20for\x20dataset\x20extend','has','\x20must\x20be\x20valid\x20JSON\x20object:\x20','data','Patch\x20dataset\x20top-level\x20extend\x20safely','Expected\x20','extend','1665765QvfhgU','1aHDUmP','write',',\x20actual\x20','message'];a63_0x382e=function(){return _0x467e89;};return a63_0x382e();}export async function buildDatasetExtendUpdateResult({appCode:_0x121ec3,input:_0x55ce50,dryRun:_0x1bbd53}){const _0x563300=a63_0x283d70;validateInput(_0x55ce50);const _0x4509aa=await getDatasetDetail(_0x55ce50[_0x563300(0x1dd)]),_0xc24088=parseDatasetExtend(_0x4509aa[_0x563300(0x1ce)]),_0x246fe2=deepClone(_0xc24088[_0x563300(0x1e8)]);assertExpectation(_0x246fe2,_0x55ce50['expect']);const {after:_0x59409a,changedPaths:_0x4ebc26,changed:_0x1e6dca}=applyExtendPatch(_0x246fe2,_0x55ce50['patch']),_0x38cd48=summarizeDataset(_0x4509aa,_0x55ce50['code']);return _0x1e6dca&&!_0x1bbd53&&(_0x4509aa[_0x563300(0x1ce)]=serializeDatasetExtend(_0x59409a,_0xc24088[_0x563300(0x1f6)]),await updateDrivenData(_0x4509aa)),{'ok':!![],'data':{'appCode':_0x121ec3,'selector':{'code':_0x55ce50['code']},'dataset':_0x38cd48,'dryRun':_0x1bbd53,'changed':_0x1e6dca,'changedPaths':_0x4ebc26,'before':{'extend':_0x246fe2},'after':{'extend':_0x59409a},'submitted':_0x1e6dca&&!_0x1bbd53},'message':_0x1e6dca?_0x1bbd53?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x4ebc26[_0x563300(0x1fb)](',\x20')+')':'Updated\x20dataset\x20extend\x20('+_0x4ebc26['join'](',\x20')+')':_0x563300(0x1c8)};}export const datasetExtendUpdate={'service':a63_0x283d70(0x1d5),'command':'extend-update','description':a63_0x283d70(0x1cc),'risk':a63_0x283d70(0x1d1),'flags':[CODE_FLAG,{'name':a63_0x283d70(0x1db),'type':a63_0x283d70(0x1dc),'required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a63_0x283d70(0x1ec),'type':'string','required':![],'description':a63_0x283d70(0x1c1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x239be8){validateInput(readExtendUpdateInput(_0x239be8));},async 'dryRun'(_0x47cfc8){const _0x550d3d=a63_0x283d70,_0x18e80f=await buildDatasetExtendUpdateResult({'appCode':_0x47cfc8['appCode'],'input':readExtendUpdateInput(_0x47cfc8),'dryRun':!![]});return{'method':_0x550d3d(0x1ee),'url':'/smartapi/dataset/update-driven-data','body':_0x18e80f[_0x550d3d(0x1cb)],'description':_0x18e80f[_0x550d3d(0x1d3)]};},async 'execute'(_0x4c934c){const _0x5d3d94=a63_0x283d70;return buildDatasetExtendUpdateResult({'appCode':_0x4c934c[_0x5d3d94(0x1da)],'input':readExtendUpdateInput(_0x4c934c),'dryRun':![]});}};function readExtendUpdateInput(_0x4fcceb){const _0xa1419f=a63_0x283d70,_0x3dbaa1=trim(_0x4fcceb['str'](_0xa1419f(0x1dd))),_0x15c6f5=parseJsonObjectFlag(_0x4fcceb[_0xa1419f(0x1e4)](_0xa1419f(0x1db)),'--patch-json'),_0x1fb0ef=parseJsonObjectFlag(_0x4fcceb['str']('expect-json'),_0xa1419f(0x1f4));return{'code':_0x3dbaa1,'patch':_0x15c6f5||{},'expect':_0x1fb0ef};}function validateInput(_0x45b9d4){const _0x53b47c=a63_0x283d70;if(!_0x45b9d4[_0x53b47c(0x1dd)])throw CliErrors[_0x53b47c(0x1c4)](_0x53b47c(0x1c0));validateExtendPatchKeys(_0x45b9d4['patch']);}function parseDatasetExtend(_0xd476ad){const _0x2671cf=a63_0x283d70;if(typeof _0xd476ad===_0x2671cf(0x1dc)){const _0x78eb53=_0xd476ad['trim']();if(!_0x78eb53)return{'value':{},'shape':_0x2671cf(0x1dc)};let _0x15a72a;try{_0x15a72a=JSON[_0x2671cf(0x1c6)](_0x78eb53);}catch(_0x89b9df){const _0x146369=_0x89b9df instanceof Error?_0x89b9df['message']:String(_0x89b9df);throw CliErrors[_0x2671cf(0x1c4)](_0x2671cf(0x1f5)+_0x146369);}if(!isPlainObject(_0x15a72a)||Array[_0x2671cf(0x1e9)](_0x15a72a))throw CliErrors['validation'](_0x2671cf(0x1de));return{'value':_0x15a72a,'shape':_0x2671cf(0x1dc)};}if(_0xd476ad===undefined||_0xd476ad===null)return{'value':{},'shape':_0x2671cf(0x1dc)};if(!isPlainObject(_0xd476ad)||Array['isArray'](_0xd476ad))throw CliErrors[_0x2671cf(0x1c4)](_0x2671cf(0x1de));return{'value':_0xd476ad,'shape':'object'};}function serializeDatasetExtend(_0x1ebe0c,_0x58ba3d){const _0x3bde99=a63_0x283d70;return _0x58ba3d===_0x3bde99(0x1dc)?JSON['stringify'](_0x1ebe0c):_0x1ebe0c;}function summarizeDataset(_0x38e65c,_0x58dfe5){const _0x2ff2d3=a63_0x283d70,_0x5b0a40=isPlainObject(_0x38e65c[_0x2ff2d3(0x1d5)])?_0x38e65c['dataset']:{},_0x4a71f0=isPlainObject(_0x38e65c['dbtableConfig'])?_0x38e65c['dbtableConfig']:{};return{'id':_0x38e65c[_0x2ff2d3(0x1ef)]??_0x38e65c['id']??_0x5b0a40[_0x2ff2d3(0x1bf)]??null,'code':_0x38e65c[_0x2ff2d3(0x1d6)]??_0x38e65c['code']??_0x5b0a40[_0x2ff2d3(0x1e2)]??_0x58dfe5,'name':_0x38e65c[_0x2ff2d3(0x1d4)]??_0x5b0a40[_0x2ff2d3(0x1e5)]??null,'table':_0x4a71f0[_0x2ff2d3(0x1c2)]??_0x5b0a40[_0x2ff2d3(0x1c2)]??null,'db':_0x4a71f0[_0x2ff2d3(0x1df)]??_0x4a71f0['dbId']??null};}function deepClone(_0x5af705){const _0x3bc2d4=a63_0x283d70;if(_0x5af705===undefined)return _0x5af705;return JSON[_0x3bc2d4(0x1c6)](JSON['stringify'](_0x5af705));}function deepEqual(_0x2456ba,_0x352a30){const _0x29afce=a63_0x283d70;return JSON[_0x29afce(0x1f8)](_0x2456ba)===JSON[_0x29afce(0x1f8)](_0x352a30);}function isPlainObject(_0xa41b9e){const _0x2be768=a63_0x283d70;return Boolean(_0xa41b9e)&&typeof _0xa41b9e==='object'&&!Array[_0x2be768(0x1e9)](_0xa41b9e);}function trim(_0x453389){const _0x232b00=a63_0x283d70,_0xc36c0f=String(_0x453389||'')[_0x232b00(0x1ea)]();return _0xc36c0f;}
|