@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9
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/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.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 -0
- 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/logs/index.js +1 -1
- package/lib/commands/menu/delete.js +1 -0
- package/lib/commands/menu/group-create.js +1 -0
- package/lib/commands/menu/group-update.js +1 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -0
- package/lib/commands/menu/shared/facts.js +1 -0
- 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 -0
- 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/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/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/relation-audit.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/init.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/save.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 -0
- package/lib/commands/task/status.js +1 -0
- 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 -0
- 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 -0
- package/lib/framework/explicit-yes.js +1 -0
- 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.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a53_0xc9133b=a53_0x7221;function a53_0x7221(_0x58d08b,_0x43cb67){_0x58d08b=_0x58d08b-0x113;const _0x32d1b9=a53_0x32d1();let _0x72217e=_0x32d1b9[_0x58d08b];return _0x72217e;}(function(_0x55d7fa,_0x3fdd3c){const _0x51e19d=a53_0x7221,_0xf6561c=_0x55d7fa();while(!![]){try{const _0x52d855=parseInt(_0x51e19d(0x11d))/0x1*(parseInt(_0x51e19d(0x11c))/0x2)+-parseInt(_0x51e19d(0x120))/0x3*(parseInt(_0x51e19d(0x11f))/0x4)+-parseInt(_0x51e19d(0x11a))/0x5+-parseInt(_0x51e19d(0x117))/0x6+-parseInt(_0x51e19d(0x113))/0x7+-parseInt(_0x51e19d(0x119))/0x8+parseInt(_0x51e19d(0x118))/0x9;if(_0x52d855===_0x3fdd3c)break;else _0xf6561c['push'](_0xf6561c['shift']());}catch(_0x772915){_0xf6561c['push'](_0xf6561c['shift']());}}}(a53_0x32d1,0xe2bd5));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0xfb5ef){const _0x1b26e0=a53_0x7221,_0x38b56a=_0xfb5ef[_0x1b26e0(0x122)](_0x1b26e0(0x121))?readScopedConfig(_0x1b26e0(0x121)):readConfig();return{'ok':!![],'data':_0x38b56a};}function a53_0x32d1(){const _0x126002=['list','4558662iUOHgn','54352080mfsPin','2322584mUkTAu','6293590dcFCrM','boolean','1918tciNwu','19IOhQFg','config','742780KisnGf','27FtMPig','global','bool','8039801BrtGAf','read','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)'];a53_0x32d1=function(){return _0x126002;};return a53_0x32d1();}export const configListDefinition={'service':a53_0xc9133b(0x11e),'command':a53_0xc9133b(0x116),'description':'List\x20all\x20config\x20values','risk':a53_0xc9133b(0x114),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a53_0xc9133b(0x11b),'description':a53_0xc9133b(0x115),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x296c4f=a54_0x24e4;(function(_0x4d25e2,_0x488fcc){const _0x1734a0=a54_0x24e4,_0xc5c69e=_0x4d25e2();while(!![]){try{const _0xb2c3d4=-parseInt(_0x1734a0(0xd8))/0x1+parseInt(_0x1734a0(0xd1))/0x2*(parseInt(_0x1734a0(0xce))/0x3)+-parseInt(_0x1734a0(0xc0))/0x4*(-parseInt(_0x1734a0(0xbe))/0x5)+-parseInt(_0x1734a0(0xbb))/0x6+-parseInt(_0x1734a0(0xd2))/0x7*(-parseInt(_0x1734a0(0xc3))/0x8)+parseInt(_0x1734a0(0xab))/0x9+parseInt(_0x1734a0(0xb7))/0xa*(-parseInt(_0x1734a0(0xcc))/0xb);if(_0xb2c3d4===_0x488fcc)break;else _0xc5c69e['push'](_0xc5c69e['shift']());}catch(_0x5002e4){_0xc5c69e['push'](_0xc5c69e['shift']());}}}(a54_0x5dd7,0x5a63b));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a54_0x5dd7(){const _0x467a4e=['\x22\x20is\x20not\x20settable.','Top-level\x20key\x20\x22','keys','locale','Missing\x20key.','value','string','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','3639295vxgMcq','validation','21YSXcpR','appcode','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','17134vcwXqQ','1983737aOamgn','Settable\x20top-level\x20keys:\x20','Use\x20`','Missing\x20value.','set','Usage:\x20','278285lIQdDt','apps','`,\x20`','Project','key','5427225ybfweE','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','app','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','object','global','Config\x20value','Set\x20a\x20config\x20value','\x22.\x20Allowed:\x20','boolean','\x20app\x20add\x20<name>\x20--appcode\x20','10keYaIC','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','join','Global','2506842JzrZjx','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Invalid\x20value\x20for\x20\x22','5RYhuhh','length','1803148higluc','includes','env','8RCCfAr'];a54_0x5dd7=function(){return _0x467a4e;};return a54_0x5dd7();}function a54_0x24e4(_0x5246b2,_0x40ea8a){_0x5246b2=_0x5246b2-0xa7;const _0x5dd79c=a54_0x5dd7();let _0x24e47d=_0x5dd79c[_0x5246b2];return _0x24e47d;}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(_0x3cb5ef){const _0x28304d=a54_0x24e4,_0x3f6f4f=_0x3cb5ef['str'](_0x28304d(0xaa)),_0x4062eb=_0x3cb5ef['str'](_0x28304d(0xc9));if(!_0x3f6f4f)throw CliErrors[_0x28304d(0xcd)](_0x28304d(0xc8),'Usage:\x20'+CLI_BIN_NAME+_0x28304d(0xbc));if(_0x4062eb===undefined||_0x4062eb==='')throw CliErrors['validation'](_0x28304d(0xd5),_0x28304d(0xd7)+CLI_BIN_NAME+_0x28304d(0xbc));if(_0x4062eb['length']>0x1f4)throw CliErrors[_0x28304d(0xcd)](_0x28304d(0xac));if(!isTopLevelConfigKey(_0x3f6f4f))throw CliErrors[_0x28304d(0xcd)](_0x28304d(0xc5)+_0x3f6f4f+_0x28304d(0xc4),_0x28304d(0xd3)+getTopLevelConfigKeySummary());if(_0x3f6f4f==='riskLevel')throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x3f6f4f]&&!CONFIG_ENUM_VALUES[_0x3f6f4f][_0x28304d(0xc1)](_0x4062eb))throw CliErrors['validation'](_0x28304d(0xbd)+_0x3f6f4f+_0x28304d(0xb4)+CONFIG_ENUM_VALUES[_0x3f6f4f][_0x28304d(0xb9)](',\x20'));if(_0x3f6f4f==='locale'&&!normalizeLocale(_0x4062eb))throw CliErrors['validation']('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x4cccbb={'global':_0x3cb5ef['bool'](_0x28304d(0xb1))},_0x12587e=resolveWriteScope(_0x4cccbb),_0x9e10fd=readScopedConfig(_0x12587e);let _0x1bf8a8=_0x3f6f4f,_0x58e2f2=_0x4062eb;_0x3f6f4f==='app'&&(_0x1bf8a8='appcode',delete _0x9e10fd[_0x28304d(0xad)]);_0x3f6f4f===_0x28304d(0xc7)&&(_0x58e2f2=normalizeLocale(_0x4062eb));if(_0x3f6f4f===_0x28304d(0xc2)){_0x58e2f2=normalizeEnv(_0x4062eb);if(!isProduction(_0x58e2f2)&&!isDaily(_0x58e2f2))throw CliErrors[_0x28304d(0xcd)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x28304d(0xb8));}if(_0x3f6f4f===_0x28304d(0xcf)){const _0x385749=_0x9e10fd[_0x28304d(0xa7)]&&typeof _0x9e10fd['apps']===_0x28304d(0xb0)?Object[_0x28304d(0xc6)](_0x9e10fd[_0x28304d(0xa7)]):[];if(_0x385749[_0x28304d(0xbf)]>0x0)throw CliErrors[_0x28304d(0xcd)](_0x28304d(0xae),_0x28304d(0xd4)+CLI_BIN_NAME+_0x28304d(0xb6)+_0x58e2f2+_0x28304d(0xa8)+CLI_BIN_NAME+_0x28304d(0xaf));const _0x4dc047=buildCanonicalProjectConfig({..._0x9e10fd},{'appCodes':[_0x58e2f2],'env':typeof _0x9e10fd[_0x28304d(0xc2)]===_0x28304d(0xca)?_0x9e10fd[_0x28304d(0xc2)]:undefined});writeScopedConfig(_0x4dc047,_0x12587e);const _0x5c60df=_0x12587e===_0x28304d(0xb1)?_0x28304d(0xba):_0x28304d(0xa9);return{'ok':!![],'message':'✓\x20'+_0x5c60df+'\x20appcode\x20set\x20to:\x20'+_0x58e2f2+_0x28304d(0xcb)};}_0x9e10fd[_0x1bf8a8]=_0x58e2f2,writeScopedConfig(_0x9e10fd,_0x12587e);const _0x3c512f=_0x12587e===_0x28304d(0xb1)?_0x28304d(0xba):_0x28304d(0xa9);return{'ok':!![],'message':'✓\x20'+_0x3c512f+'\x20'+_0x1bf8a8+'\x20set\x20to:\x20'+_0x58e2f2};}export const configSetDefinition={'service':'config','command':a54_0x296c4f(0xd6),'description':a54_0x296c4f(0xb3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a54_0x296c4f(0xca),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x296c4f(0xc9),'type':a54_0x296c4f(0xca),'description':a54_0x296c4f(0xb2),'required':!![]},{'name':'global','type':a54_0x296c4f(0xb5),'description':a54_0x296c4f(0xd0),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2549a3,_0x4f4000){var _0x9ee70=a55_0x4064,_0x56d2aa=_0x2549a3();while(!![]){try{var _0x1164d5=-parseInt(_0x9ee70(0x1a2))/0x1*(parseInt(_0x9ee70(0x1a5))/0x2)+parseInt(_0x9ee70(0x198))/0x3*(-parseInt(_0x9ee70(0x19f))/0x4)+-parseInt(_0x9ee70(0x199))/0x5*(parseInt(_0x9ee70(0x1a1))/0x6)+-parseInt(_0x9ee70(0x19c))/0x7+-parseInt(_0x9ee70(0x1a9))/0x8*(parseInt(_0x9ee70(0x1a3))/0x9)+parseInt(_0x9ee70(0x1a6))/0xa*(parseInt(_0x9ee70(0x19a))/0xb)+-parseInt(_0x9ee70(0x1a0))/0xc*(-parseInt(_0x9ee70(0x1a4))/0xd);if(_0x1164d5===_0x4f4000)break;else _0x56d2aa['push'](_0x56d2aa['shift']());}catch(_0x2c8702){_0x56d2aa['push'](_0x56d2aa['shift']());}}}(a55_0x3210,0xcdc31));function a55_0x4064(_0x448981,_0x3460b9){_0x448981=_0x448981-0x198;var _0x321051=a55_0x3210();var _0x4064aa=_0x321051[_0x448981];return _0x4064aa;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x42a88a){var _0x29a8ec=a55_0x4064;if(_0x42a88a['global'])return _0x29a8ec(0x19e);if(!isInProject())throw CliErrors[_0x29a8ec(0x1a7)](_0x29a8ec(0x19d),_0x29a8ec(0x1a8)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x29a8ec(0x19b);}function a55_0x3210(){var _0x39350b=['4kAWpot','140376iGyVfB','9210KDYTNI','1PssMRi','3399093NYbvZt','7111NGIqwZ','1593698ysvxta','10rsfPnG','validation','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','32rPktHW','3018651rJJYNN','4685iNVDNf','7189523RCcMYp','project','10202703IKJBOl','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global'];a55_0x3210=function(){return _0x39350b;};return a55_0x3210();}export function readScopedConfig(_0x345a6e){return readConfigFile(resolveWriteConfigPath(_0x345a6e));}export function writeScopedConfig(_0x36bedc,_0x3c735d){writeConfigFile(resolveWriteConfigPath(_0x3c735d),_0x36bedc);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x5910da=a56_0x7588;(function(_0x1c1ac9,_0x42223a){const _0x3358ab=a56_0x7588,_0x19f79f=_0x1c1ac9();while(!![]){try{const _0x4fce10=-parseInt(_0x3358ab(0x8c))/0x1+parseInt(_0x3358ab(0x91))/0x2*(parseInt(_0x3358ab(0x9a))/0x3)+parseInt(_0x3358ab(0x96))/0x4+parseInt(_0x3358ab(0x92))/0x5+parseInt(_0x3358ab(0x8e))/0x6+-parseInt(_0x3358ab(0x99))/0x7+-parseInt(_0x3358ab(0x98))/0x8;if(_0x4fce10===_0x42223a)break;else _0x19f79f['push'](_0x19f79f['shift']());}catch(_0x4a2d38){_0x19f79f['push'](_0x19f79f['shift']());}}}(a56_0x3b1e,0x6ec96));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':a56_0x5910da(0x97),'description':a56_0x5910da(0x8d),'paramsRequired':![],'paramsHint':a56_0x5910da(0x94),'helpExtra':[a56_0x5910da(0x93),a56_0x5910da(0x95),a56_0x5910da(0x90),'\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}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a56_0x5910da(0x8f)]['join']('\x0a')});function a56_0x7588(_0x18ec04,_0x58180d){_0x18ec04=_0x18ec04-0x8c;const _0x3b1e49=a56_0x3b1e();let _0x7588e6=_0x3b1e49[_0x18ec04];return _0x7588e6;}function a56_0x3b1e(){const _0x191ffb=['1857771crEGKE','92865QKjPQa','Filter\x20dataset\x20records\x20with\x20query\x20conditions','2562816ACykgO','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','\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]','2DJsUrr','2266315QFrzgN','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','3432892RXfPDP','filter','8810112OFrcmF','4969776btKBLc'];a56_0x3b1e=function(){return _0x191ffb;};return a56_0x3b1e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a57_0x4c57(_0x59bc11,_0x5472f3){_0x59bc11=_0x59bc11-0x147;const _0x4b70aa=a57_0x4b70();let _0x4c57e1=_0x4b70aa[_0x59bc11];return _0x4c57e1;}const a57_0x434b2c=a57_0x4c57;function a57_0x4b70(){const _0x366622=['3553587cGwzNT','360888vYfqzk','154yhqLDZ','548466DvJdhr','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','10TGhbcg','35tnfntB','2580116WXuyxF','475818VFVOLN','473nVVriX','431095kUYPIS','getOne','178160ComIYg','6BwroXi'];a57_0x4b70=function(){return _0x366622;};return a57_0x4b70();}(function(_0x4d3466,_0x42f020){const _0x4b7ea5=a57_0x4c57,_0x189b19=_0x4d3466();while(!![]){try{const _0x469b86=-parseInt(_0x4b7ea5(0x14b))/0x1+parseInt(_0x4b7ea5(0x149))/0x2*(parseInt(_0x4b7ea5(0x14e))/0x3)+-parseInt(_0x4b7ea5(0x148))/0x4+parseInt(_0x4b7ea5(0x147))/0x5*(parseInt(_0x4b7ea5(0x152))/0x6)+-parseInt(_0x4b7ea5(0x151))/0x7*(parseInt(_0x4b7ea5(0x14d))/0x8)+-parseInt(_0x4b7ea5(0x14f))/0x9*(parseInt(_0x4b7ea5(0x154))/0xa)+-parseInt(_0x4b7ea5(0x14a))/0xb*(-parseInt(_0x4b7ea5(0x150))/0xc);if(_0x469b86===_0x42f020)break;else _0x189b19['push'](_0x189b19['shift']());}catch(_0x1a0b2d){_0x189b19['push'](_0x189b19['shift']());}}}(a57_0x4b70,0x6d5e2));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a57_0x434b2c(0x14c),'operation':a57_0x434b2c(0x14c),'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a57_0x434b2c(0x153)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ff391,_0x5474e0){const _0x3bd43d=a58_0x3275,_0x22d14e=_0x3ff391();while(!![]){try{const _0x5662ba=parseInt(_0x3bd43d(0x12b))/0x1+-parseInt(_0x3bd43d(0x12d))/0x2+parseInt(_0x3bd43d(0x127))/0x3*(-parseInt(_0x3bd43d(0x129))/0x4)+parseInt(_0x3bd43d(0x128))/0x5+-parseInt(_0x3bd43d(0x12c))/0x6+parseInt(_0x3bd43d(0x126))/0x7*(-parseInt(_0x3bd43d(0x12a))/0x8)+-parseInt(_0x3bd43d(0x12f))/0x9*(-parseInt(_0x3bd43d(0x12e))/0xa);if(_0x5662ba===_0x5474e0)break;else _0x22d14e['push'](_0x22d14e['shift']());}catch(_0x32af37){_0x22d14e['push'](_0x22d14e['shift']());}}}(a58_0x5def,0x279aa));function a58_0x5def(){const _0x3770cd=['247179eVoyGu','716772oscWFw','449562ScVqCE','1660QXdbVW','44586OUSyJW','167615qHoIFm','10326okDAAX','272705MRvtgg','356DzYNIA','104bQKEoq'];a58_0x5def=function(){return _0x3770cd;};return a58_0x5def();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a58_0x3275(_0x1ca86a,_0xff7208){_0x1ca86a=_0x1ca86a-0x126;const _0x5def73=a58_0x5def();let _0x3275a2=_0x5def73[_0x1ca86a];return _0x3275a2;}export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a59_0x1a84(_0x3f1476,_0x4d3017){_0x3f1476=_0x3f1476-0x74;const _0x1fba85=a59_0x1fba();let _0x1a8488=_0x1fba85[_0x3f1476];return _0x1a8488;}(function(_0x368833,_0x41f1ce){const _0x131008=a59_0x1a84,_0x2cb6f7=_0x368833();while(!![]){try{const _0x425693=parseInt(_0x131008(0x7e))/0x1+-parseInt(_0x131008(0x89))/0x2+-parseInt(_0x131008(0x77))/0x3+-parseInt(_0x131008(0x7d))/0x4+-parseInt(_0x131008(0x82))/0x5+-parseInt(_0x131008(0x84))/0x6+parseInt(_0x131008(0x85))/0x7;if(_0x425693===_0x41f1ce)break;else _0x2cb6f7['push'](_0x2cb6f7['shift']());}catch(_0x3298a7){_0x2cb6f7['push'](_0x2cb6f7['shift']());}}}(a59_0x1fba,0xbec59));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a59_0x1fba(){const _0x49ea48=['Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','2798190pZYmHi','string','compress','operation','data\x20','str','1363048uOutpQ','629435UEikpc','code','description','command','331170qEKTLw','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3939894YvbXqs','24144869soIbQn','read','params','\x20completed\x20in\x20','2601852aZDYxV','now','data','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','flagMissing','paramsHint','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'];a59_0x1fba=function(){return _0x49ea48;};return a59_0x1fba();}import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x391fb3){const _0x3a1b09=a59_0x1a84;if(!_0x391fb3)throw CliErrors['flagMissing'](_0x3a1b09(0x87),_0x3a1b09(0x76));const _0x23218d=_0x391fb3['id'];if(_0x23218d===undefined||_0x23218d===null||_0x23218d==='')throw CliErrors['validation'](_0x3a1b09(0x8c),_0x3a1b09(0x83));}function parseCommandParams(_0x4dc41b){return parseJsonParams(_0x4dc41b)??{};}export function buildDataCommand(_0x527259){const _0x4eecf0=a59_0x1a84,_0x1a1129=_0x4eecf0(0x75);return{'service':_0x4eecf0(0x8b),'command':_0x527259[_0x4eecf0(0x81)],'description':_0x527259[_0x4eecf0(0x80)],'risk':_0x4eecf0(0x86),'defaultOutputFormat':_0x4eecf0(0x79),'helpExtra':_0x527259['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':_0x1a1129},{'name':_0x4eecf0(0x87),'type':_0x4eecf0(0x78),'description':_0x527259[_0x4eecf0(0x74)]}],async 'validate'(_0x390a6f){const _0x1c5515=_0x4eecf0,_0x3ec5b4=_0x390a6f['str'](_0x1c5515(0x87));if(_0x527259['paramsRequired']&&!_0x3ec5b4)throw CliErrors[_0x1c5515(0x8d)](_0x1c5515(0x87),_0x527259['paramsHint']);const _0x1d3ca1=parseJsonParams(_0x3ec5b4);_0x527259[_0x1c5515(0x7a)]==='getOne'&&assertGetOneId(_0x1d3ca1);},async 'execute'(_0x255e10){const _0x3807bb=_0x4eecf0,_0x260104=parseCommandParams(_0x255e10[_0x3807bb(0x7c)](_0x3807bb(0x87))),_0x3e2ad4=Date[_0x3807bb(0x8a)](),_0x45379d=await executeDatasetDataOperation(_0x255e10['appCode'],_0x255e10[_0x3807bb(0x7c)](_0x3807bb(0x7f)),_0x527259[_0x3807bb(0x7a)],_0x260104),_0x3f9adc=Date[_0x3807bb(0x8a)]()-_0x3e2ad4;return{'ok':!![],'data':{'result':_0x45379d,'elapsed':_0x3f9adc},'message':_0x3807bb(0x7b)+_0x527259[_0x3807bb(0x81)]+_0x3807bb(0x88)+_0x3f9adc+'ms'};}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59_0x541e58=a59_0x1bbf;(function(_0x5ad9c0,_0x232a10){const _0x258de7=a59_0x1bbf,_0xa27b87=_0x5ad9c0();while(!![]){try{const _0x11d1d0=-parseInt(_0x258de7(0x1ed))/0x1*(-parseInt(_0x258de7(0x1d9))/0x2)+parseInt(_0x258de7(0x1e4))/0x3*(-parseInt(_0x258de7(0x1f8))/0x4)+parseInt(_0x258de7(0x1cd))/0x5*(parseInt(_0x258de7(0x1e3))/0x6)+parseInt(_0x258de7(0x1f4))/0x7+-parseInt(_0x258de7(0x1d4))/0x8*(-parseInt(_0x258de7(0x1db))/0x9)+-parseInt(_0x258de7(0x1ce))/0xa+-parseInt(_0x258de7(0x1e5))/0xb;if(_0x11d1d0===_0x232a10)break;else _0xa27b87['push'](_0xa27b87['shift']());}catch(_0x50fa98){_0xa27b87['push'](_0xa27b87['shift']());}}}(a59_0xeaa4,0x45556));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_0x541e58(0x1c2);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x256f77,input:_0x5dba29,dryRun:_0x628e32}){const _0x10824b=a59_0x541e58;validateInput(_0x5dba29);const _0x255e03=normalizeBusinessGroup(_0x5dba29[_0x10824b(0x1c3)]),_0x4337ed=await getDatasetDetail(_0x5dba29[_0x10824b(0x1cf)]),_0x1da7bc=resolveBusinessGroupDataset(_0x4337ed,_0x5dba29['code']),_0x182d5c=loadCurrentBusinessGroup(_0x4337ed,_0x1da7bc);assertExpectedBusinessGroup(_0x182d5c,_0x5dba29[_0x10824b(0x1c4)]);const _0x3cfe3f=buildBackendPayload(_0x256f77,_0x1da7bc,_0x255e03),_0xb11ce0=_0x182d5c!==_0x255e03;let _0x175777;if(_0xb11ce0&&!_0x628e32){await updateErBusinessGroup(_0x3cfe3f);const _0x5bc85e=await getDatasetDetail(_0x1da7bc[_0x10824b(0x1cf)]),_0x462e4b=resolveBusinessGroupDataset(_0x5bc85e,_0x1da7bc[_0x10824b(0x1cf)]),_0x5cafe2=loadCurrentBusinessGroup(_0x5bc85e,_0x462e4b);if(_0x5cafe2!==_0x255e03)throw CliErrors[_0x10824b(0x1c7)](_0x10824b(0x1f2),_0x10824b(0x1c5)+JSON[_0x10824b(0x1e2)](_0x255e03)+',\x20actual\x20'+JSON[_0x10824b(0x1e2)](_0x5cafe2)+'.');_0x175777={'verified':!![],'status':_0x10824b(0x1c1),'afterReadback':{'businessGroup':_0x5cafe2}};}else!_0xb11ce0&&(_0x175777={'verified':!![],'status':_0x10824b(0x1e1),'afterReadback':{'businessGroup':_0x182d5c}});const _0xcd5e95={'operation':_0x10824b(0x1ea),'appCode':_0x256f77,'selector':{'code':_0x1da7bc[_0x10824b(0x1cf)]},'dataset':_0x1da7bc,'before':{'businessGroup':_0x182d5c},'after':{'businessGroup':_0x255e03},'changed':_0xb11ce0,'dryRun':_0x628e32,'submitted':_0xb11ce0&&!_0x628e32,'backend':{'method':_0x10824b(0x1be),'path':BACKEND_PATH,'payload':_0x3cfe3f},..._0x175777?{'verification':_0x175777}:{},'warnings':[]};return{'ok':!![],'data':_0xcd5e95,'message':_0xb11ce0?_0x628e32?_0x10824b(0x1d0)+_0x1da7bc[_0x10824b(0x1cf)]:'Updated\x20business\x20model\x20group\x20for\x20dataset\x20'+_0x1da7bc[_0x10824b(0x1cf)]:_0x10824b(0x1c6)+_0x1da7bc[_0x10824b(0x1cf)]};}export const datasetBusinessGroupUpdate={'service':a59_0x541e58(0x1f1),'command':a59_0x541e58(0x1d2),'description':'Update\x20business\x20model\x20group','risk':a59_0x541e58(0x1bc),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x541e58(0x1e6),'required':!![],'description':'New\x20business\x20model\x20group\x20value;\x20empty\x20string\x20clears\x20it'},{'name':'expect-business-group','type':a59_0x541e58(0x1e6),'required':![],'description':a59_0x541e58(0x1ca)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3f8161){validateInput(readBusinessGroupUpdateInput(_0x3f8161));},async 'dryRun'(_0x4b4e52){const _0x2a05dd=a59_0x541e58,_0x4e7c8a=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x4b4e52['appCode'],'input':readBusinessGroupUpdateInput(_0x4b4e52),'dryRun':!![]});return{'method':_0x2a05dd(0x1be),'url':BACKEND_PATH,'body':_0x4e7c8a['data']['backend'][_0x2a05dd(0x1da)],'description':_0x4e7c8a[_0x2a05dd(0x1c9)],..._0x4e7c8a[_0x2a05dd(0x1e9)]};},async 'execute'(_0x4fda73){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4fda73['appCode'],'input':readBusinessGroupUpdateInput(_0x4fda73),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x23e9fd){const _0x484b4d=a59_0x541e58,_0x1dead3=_0x23e9fd[_0x484b4d(0x1bf)](_0x484b4d(0x1d5));return{'code':trim(_0x23e9fd[_0x484b4d(0x1bf)]('code')),'businessGroup':_0x23e9fd[_0x484b4d(0x1bf)](_0x484b4d(0x1f3)),'expectBusinessGroup':_0x1dead3===undefined||_0x1dead3===''?undefined:_0x1dead3};}function validateInput(_0x1fcd7f){const _0x1ccb03=a59_0x541e58;if(!trim(_0x1fcd7f['code']))throw CliErrors[_0x1ccb03(0x1e8)](_0x1ccb03(0x1ec));if(_0x1fcd7f[_0x1ccb03(0x1c3)]===undefined)throw CliErrors[_0x1ccb03(0x1e8)](_0x1ccb03(0x1cb));}function resolveBusinessGroupDataset(_0x37d51e,_0xcc5a23){const _0x51b0d0=a59_0x541e58,_0x221176=asPlainObject(_0x37d51e[_0x51b0d0(0x1f1)]),_0x22de1a=asPlainObject(_0x37d51e['dbtableConfig']),_0x4148d0=resolveSourceType(_0x37d51e,_0x221176,_0x22de1a),_0x182f2f=firstString(_0x37d51e[_0x51b0d0(0x1eb)],_0x37d51e['code'],_0x221176[_0x51b0d0(0x1d3)],_0xcc5a23)||_0xcc5a23;return{'id':firstNumber(_0x37d51e[_0x51b0d0(0x1ba)],_0x37d51e['id'],_0x221176[_0x51b0d0(0x1dc)])??firstString(_0x37d51e[_0x51b0d0(0x1ba)],_0x37d51e['id'],_0x221176['datasetId'])??null,'code':_0x182f2f,'name':firstString(_0x37d51e['name'],_0x221176[_0x51b0d0(0x1c0)],_0x221176[_0x51b0d0(0x1e7)])||null,'sourceType':_0x4148d0};}function resolveSourceType(_0x431d1e,_0x1d86eb,_0x306c84){const _0x41b5d4=a59_0x541e58,_0x3256ab=firstString(_0x431d1e[_0x41b5d4(0x1f7)],_0x431d1e[_0x41b5d4(0x1d7)],_0x1d86eb['source'],_0x1d86eb[_0x41b5d4(0x1d7)])?.[_0x41b5d4(0x1d1)]()[_0x41b5d4(0x1d8)]();if(_0x3256ab==='DB_TABLE'||_0x3256ab==='METADATA')return _0x3256ab;if(Object['keys'](_0x306c84)[_0x41b5d4(0x1f9)]>0x0)return _0x41b5d4(0x1df);throw CliErrors[_0x41b5d4(0x1e8)](_0x41b5d4(0x1ee));}function loadCurrentBusinessGroup(_0x52023b,_0x532a15){const _0x163a54=a59_0x541e58,_0x45dc44=readBusinessGroupFromDatasetDetail(_0x52023b,_0x532a15[_0x163a54(0x1d7)]);if(_0x45dc44['found'])return normalizeBusinessGroup(_0x45dc44['value']);if(_0x532a15['sourceType']==='METADATA')return'';throw CliErrors[_0x163a54(0x1e8)](_0x163a54(0x1d6),'Business\x20model\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.');}function readBusinessGroupFromDatasetDetail(_0x377f0d,_0x21ec94){const _0x2fe2ef=a59_0x541e58,_0x4c7fa5=asPlainObject(_0x377f0d[_0x2fe2ef(0x1f1)]),_0x5e048e=firstPresent(_0x377f0d[_0x2fe2ef(0x1c3)]);if(_0x5e048e[_0x2fe2ef(0x1cc)])return _0x5e048e;const _0x313901=firstPresent(_0x4c7fa5[_0x2fe2ef(0x1c3)]);if(_0x313901[_0x2fe2ef(0x1cc)])return _0x313901;if(_0x21ec94===_0x2fe2ef(0x1df))return{'found':![]};const _0x11db47=readBusinessGroupFromExtend(_0x377f0d[_0x2fe2ef(0x1c8)]);if(_0x11db47[_0x2fe2ef(0x1cc)])return _0x11db47;return readBusinessGroupFromExtend(_0x4c7fa5[_0x2fe2ef(0x1c8)]);}function readBusinessGroupFromExtend(_0x432165){const _0x5864d6=a59_0x541e58;if(_0x432165===undefined||_0x432165===null||_0x432165==='')return{'found':![]};if(typeof _0x432165===_0x5864d6(0x1e6))try{const _0x48de14=JSON[_0x5864d6(0x1bb)](_0x432165);return readBusinessGroupFromExtend(_0x48de14);}catch{return{'found':![]};}const _0x201b17=asPlainObject(_0x432165);if(Object[_0x5864d6(0x1f5)][_0x5864d6(0x1f6)]['call'](_0x201b17,_0x5864d6(0x1c3)))return{'found':!![],'value':_0x201b17['businessGroup']};return{'found':![]};}function a59_0xeaa4(){const _0xcf439f=['update','modelCode','--code\x20is\x20required','1HuMJZq','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','isFinite','object','dataset','Business\x20model\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','business-group','3968391ppdkms','prototype','hasOwnProperty','source','4wvmCwW','length','modelId','parse','write','isArray','POST','str','datasetName','matched','/smartapi/question/er-config/business-group/edit','businessGroup','expectBusinessGroup','Expected\x20','No\x20changes\x20for\x20business\x20model\x20group\x20on\x20dataset\x20','apiError','extend','message','Expected\x20current\x20business\x20model\x20group;\x20mismatch\x20aborts\x20without\x20writing','--business-group\x20is\x20required','found','5NpTaAg','3683260ZIsGxL','code','Dry-run:\x20business\x20model\x20group\x20would\x20change\x20for\x20dataset\x20','trim','business-group-update','datasetCode','24wQEMeH','expect-business-group','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','sourceType','toUpperCase','643362rejbHT','payload','1345833sOujgZ','datasetId','number',',\x20actual\x20','DB_TABLE','Expectation\x20mismatch\x20at\x20businessGroup','unchanged','stringify','2264964LWtUEN','110613lIRfeo','11280632TQVueS','string','name','validation','data'];a59_0xeaa4=function(){return _0xcf439f;};return a59_0xeaa4();}function a59_0x1bbf(_0x3a6d9b,_0x382cb5){_0x3a6d9b=_0x3a6d9b-0x1ba;const _0xeaa4cb=a59_0xeaa4();let _0x1bbf10=_0xeaa4cb[_0x3a6d9b];return _0x1bbf10;}function firstPresent(..._0x56f524){for(const _0x228c11 of _0x56f524){if(_0x228c11!==undefined&&_0x228c11!==null)return{'found':!![],'value':_0x228c11};}return{'found':![]};}function assertExpectedBusinessGroup(_0x1dde3f,_0x226816){const _0x45fc31=a59_0x541e58;if(_0x226816===undefined)return;const _0x4f5d93=normalizeBusinessGroup(_0x226816);if(_0x1dde3f!==_0x4f5d93)throw CliErrors[_0x45fc31(0x1e8)](_0x45fc31(0x1e0),'Expected\x20'+JSON['stringify'](_0x4f5d93)+_0x45fc31(0x1de)+JSON['stringify'](_0x1dde3f));}function buildBackendPayload(_0x30dfbd,_0x50a54e,_0x2b6564){const _0x43c52e=a59_0x541e58;return{'appCode':_0x30dfbd,'datasetCode':_0x50a54e[_0x43c52e(0x1cf)],'businessGroup':_0x2b6564};}function normalizeBusinessGroup(_0x1fb5db){const _0x32b924=a59_0x541e58;if(_0x1fb5db===undefined||_0x1fb5db===null)return'';return String(_0x1fb5db)[_0x32b924(0x1d1)]();}function asPlainObject(_0x4a1e0a){const _0x4a8031=a59_0x541e58;if(!_0x4a1e0a||typeof _0x4a1e0a!==_0x4a8031(0x1f0)||Array[_0x4a8031(0x1bd)](_0x4a1e0a))return{};return _0x4a1e0a;}function firstString(..._0x2ab6ef){const _0x23a792=a59_0x541e58;for(const _0x19a6f6 of _0x2ab6ef){if(typeof _0x19a6f6===_0x23a792(0x1e6)&&_0x19a6f6[_0x23a792(0x1d1)]())return _0x19a6f6[_0x23a792(0x1d1)]();if(typeof _0x19a6f6===_0x23a792(0x1dd)&&Number[_0x23a792(0x1ef)](_0x19a6f6))return String(_0x19a6f6);}return undefined;}function firstNumber(..._0x2b4c20){const _0x3450a6=a59_0x541e58;for(const _0x239959 of _0x2b4c20){if(typeof _0x239959===_0x3450a6(0x1dd)&&Number[_0x3450a6(0x1ef)](_0x239959))return _0x239959;if(typeof _0x239959===_0x3450a6(0x1e6)&&_0x239959[_0x3450a6(0x1d1)]()&&Number['isFinite'](Number(_0x239959)))return Number(_0x239959);}return null;}function trim(_0x587ccf){const _0x3110ed=a59_0x541e58;return String(_0x587ccf||'')[_0x3110ed(0x1d1)]();}
|
|
1
|
+
function a60_0x40cc(_0x4ce4a5,_0x58f91c){_0x4ce4a5=_0x4ce4a5-0x148;const _0x387771=a60_0x3877();let _0x40cce7=_0x387771[_0x4ce4a5];return _0x40cce7;}const a60_0x2de791=a60_0x40cc;(function(_0x5aa865,_0x295470){const _0x4c1f46=a60_0x40cc,_0x560cbe=_0x5aa865();while(!![]){try{const _0x292344=parseInt(_0x4c1f46(0x14b))/0x1+parseInt(_0x4c1f46(0x161))/0x2+parseInt(_0x4c1f46(0x158))/0x3+-parseInt(_0x4c1f46(0x15b))/0x4+-parseInt(_0x4c1f46(0x17f))/0x5+-parseInt(_0x4c1f46(0x168))/0x6*(parseInt(_0x4c1f46(0x16d))/0x7)+-parseInt(_0x4c1f46(0x17a))/0x8*(-parseInt(_0x4c1f46(0x160))/0x9);if(_0x292344===_0x295470)break;else _0x560cbe['push'](_0x560cbe['shift']());}catch(_0x1461f8){_0x560cbe['push'](_0x560cbe['shift']());}}}(a60_0x3877,0x7ab1f));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=a60_0x2de791(0x184);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x208d9e,input:_0x5e56c1,dryRun:_0x46de58}){const _0x355448=a60_0x2de791;validateInput(_0x5e56c1);const _0x3bb990=normalizeBusinessGroup(_0x5e56c1['businessGroup']),_0x3eb90d=await getDatasetDetail(_0x5e56c1[_0x355448(0x14a)]),_0x457c2f=resolveBusinessGroupDataset(_0x3eb90d,_0x5e56c1[_0x355448(0x14a)]),_0x2987a6=loadCurrentBusinessGroup(_0x3eb90d,_0x457c2f);assertExpectedBusinessGroup(_0x2987a6,_0x5e56c1[_0x355448(0x14f)]);const _0xf24a93=buildBackendPayload(_0x208d9e,_0x457c2f,_0x3bb990),_0x10d021=_0x2987a6!==_0x3bb990;let _0x2a4ef7;if(_0x10d021&&!_0x46de58){await updateErBusinessGroup(_0xf24a93);const _0x48ec56=await getDatasetDetail(_0x457c2f['code']),_0x4bc50e=resolveBusinessGroupDataset(_0x48ec56,_0x457c2f[_0x355448(0x14a)]),_0x4552b2=loadCurrentBusinessGroup(_0x48ec56,_0x4bc50e);if(_0x4552b2!==_0x3bb990)throw CliErrors[_0x355448(0x15c)]('Business\x20model\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x355448(0x17e)+JSON[_0x355448(0x182)](_0x3bb990)+_0x355448(0x15f)+JSON[_0x355448(0x182)](_0x4552b2)+'.');_0x2a4ef7={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x4552b2}};}else!_0x10d021&&(_0x2a4ef7={'verified':!![],'status':_0x355448(0x170),'afterReadback':{'businessGroup':_0x2987a6}});const _0x4528f9={'operation':_0x355448(0x157),'appCode':_0x208d9e,'selector':{'code':_0x457c2f[_0x355448(0x14a)]},'dataset':_0x457c2f,'before':{'businessGroup':_0x2987a6},'after':{'businessGroup':_0x3bb990},'changed':_0x10d021,'dryRun':_0x46de58,'submitted':_0x10d021&&!_0x46de58,'backend':{'method':_0x355448(0x163),'path':BACKEND_PATH,'payload':_0xf24a93},..._0x2a4ef7?{'verification':_0x2a4ef7}:{},'warnings':[]};return{'ok':!![],'data':_0x4528f9,'message':_0x10d021?_0x46de58?_0x355448(0x150)+_0x457c2f[_0x355448(0x14a)]:_0x355448(0x18a)+_0x457c2f[_0x355448(0x14a)]:_0x355448(0x15d)+_0x457c2f[_0x355448(0x14a)]};}export const datasetBusinessGroupUpdate={'service':a60_0x2de791(0x178),'command':a60_0x2de791(0x155),'description':a60_0x2de791(0x17c),'risk':a60_0x2de791(0x148),'flags':[CODE_FLAG,{'name':a60_0x2de791(0x166),'type':a60_0x2de791(0x153),'required':!![],'description':a60_0x2de791(0x14c)},{'name':a60_0x2de791(0x188),'type':a60_0x2de791(0x153),'required':![],'description':'Expected\x20current\x20business\x20model\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4b56c6){validateInput(readBusinessGroupUpdateInput(_0x4b56c6));},async 'dryRun'(_0x59e498){const _0x4c02b1=a60_0x2de791,_0x424a88=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x59e498[_0x4c02b1(0x149)],'input':readBusinessGroupUpdateInput(_0x59e498),'dryRun':!![]});return{'method':_0x4c02b1(0x163),'url':BACKEND_PATH,'body':_0x424a88['data'][_0x4c02b1(0x176)][_0x4c02b1(0x165)],'description':_0x424a88[_0x4c02b1(0x15a)],..._0x424a88[_0x4c02b1(0x159)]};},async 'execute'(_0x19c6e5){const _0x9e7e69=a60_0x2de791;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x19c6e5[_0x9e7e69(0x149)],'input':readBusinessGroupUpdateInput(_0x19c6e5),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x534484){const _0x21cdd4=a60_0x2de791,_0x8753e7=_0x534484[_0x21cdd4(0x175)](_0x21cdd4(0x188));return{'code':trim(_0x534484[_0x21cdd4(0x175)]('code')),'businessGroup':_0x534484[_0x21cdd4(0x175)](_0x21cdd4(0x166)),'expectBusinessGroup':_0x8753e7===undefined||_0x8753e7===''?undefined:_0x8753e7};}function validateInput(_0x51b88d){const _0x37efad=a60_0x2de791;if(!trim(_0x51b88d[_0x37efad(0x14a)]))throw CliErrors[_0x37efad(0x16c)]('--code\x20is\x20required');if(_0x51b88d[_0x37efad(0x177)]===undefined)throw CliErrors[_0x37efad(0x16c)](_0x37efad(0x14d));}function resolveBusinessGroupDataset(_0x5219c5,_0x1a9715){const _0x35be16=a60_0x2de791,_0x5f0d42=asPlainObject(_0x5219c5['dataset']),_0x70222=asPlainObject(_0x5219c5[_0x35be16(0x169)]),_0x4c3b45=resolveSourceType(_0x5219c5,_0x5f0d42,_0x70222),_0x1a1ced=firstString(_0x5219c5[_0x35be16(0x17b)],_0x5219c5[_0x35be16(0x14a)],_0x5f0d42['datasetCode'],_0x1a9715)||_0x1a9715;return{'id':firstNumber(_0x5219c5[_0x35be16(0x162)],_0x5219c5['id'],_0x5f0d42[_0x35be16(0x181)])??firstString(_0x5219c5[_0x35be16(0x162)],_0x5219c5['id'],_0x5f0d42[_0x35be16(0x181)])??null,'code':_0x1a1ced,'name':firstString(_0x5219c5[_0x35be16(0x14e)],_0x5f0d42[_0x35be16(0x172)],_0x5f0d42['name'])||null,'sourceType':_0x4c3b45};}function resolveSourceType(_0x40a484,_0x23f5ce,_0x5e1bbe){const _0x4ba196=a60_0x2de791,_0x4c39e2=firstString(_0x40a484['source'],_0x40a484[_0x4ba196(0x16e)],_0x23f5ce[_0x4ba196(0x189)],_0x23f5ce[_0x4ba196(0x16e)])?.['trim']()[_0x4ba196(0x16b)]();if(_0x4c39e2===_0x4ba196(0x173)||_0x4c39e2===_0x4ba196(0x186))return _0x4c39e2;if(Object[_0x4ba196(0x185)](_0x5e1bbe)[_0x4ba196(0x187)]>0x0)return _0x4ba196(0x173);throw CliErrors[_0x4ba196(0x16c)]('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x4bb9c9,_0x31922a){const _0x468931=a60_0x2de791,_0x123294=readBusinessGroupFromDatasetDetail(_0x4bb9c9,_0x31922a[_0x468931(0x16e)]);if(_0x123294[_0x468931(0x167)])return normalizeBusinessGroup(_0x123294[_0x468931(0x151)]);if(_0x31922a[_0x468931(0x16e)]==='METADATA')return'';throw CliErrors[_0x468931(0x16c)](_0x468931(0x152),_0x468931(0x156));}function a60_0x3877(){const _0x2b6f55=['/smartapi/question/er-config/business-group/edit','keys','METADATA','length','expect-business-group','source','Updated\x20business\x20model\x20group\x20for\x20dataset\x20','write','appCode','code','646371lUFWmD','New\x20business\x20model\x20group\x20value;\x20empty\x20string\x20clears\x20it','--business-group\x20is\x20required','name','expectBusinessGroup','Dry-run:\x20business\x20model\x20group\x20would\x20change\x20for\x20dataset\x20','value','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','string','isArray','business-group-update','Business\x20model\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','update','1178187JWmexS','data','message','2013332vLnENz','apiError','No\x20changes\x20for\x20business\x20model\x20group\x20on\x20dataset\x20','extend',',\x20actual\x20','4550814rJZaVP','359940uNcZBE','modelId','POST','trim','payload','business-group','found','2123178RhuNGU','dbtableConfig','hasOwnProperty','toUpperCase','validation','7JIZAXj','sourceType','call','unchanged','parse','datasetName','DB_TABLE','prototype','str','backend','businessGroup','dataset','number','8kvtOkH','modelCode','Update\x20business\x20model\x20group','isFinite','Expected\x20','1824805XbxEdy','object','datasetId','stringify','Expectation\x20mismatch\x20at\x20businessGroup'];a60_0x3877=function(){return _0x2b6f55;};return a60_0x3877();}function readBusinessGroupFromDatasetDetail(_0x3925ef,_0x301f7d){const _0x2737e3=a60_0x2de791,_0x488bc9=asPlainObject(_0x3925ef['dataset']),_0x4db7f2=firstPresent(_0x3925ef[_0x2737e3(0x177)]);if(_0x4db7f2[_0x2737e3(0x167)])return _0x4db7f2;const _0x14f336=firstPresent(_0x488bc9['businessGroup']);if(_0x14f336[_0x2737e3(0x167)])return _0x14f336;if(_0x301f7d===_0x2737e3(0x173))return{'found':![]};const _0x50c51f=readBusinessGroupFromExtend(_0x3925ef[_0x2737e3(0x15e)]);if(_0x50c51f[_0x2737e3(0x167)])return _0x50c51f;return readBusinessGroupFromExtend(_0x488bc9[_0x2737e3(0x15e)]);}function readBusinessGroupFromExtend(_0x531987){const _0x58c785=a60_0x2de791;if(_0x531987===undefined||_0x531987===null||_0x531987==='')return{'found':![]};if(typeof _0x531987===_0x58c785(0x153))try{const _0x47e403=JSON[_0x58c785(0x171)](_0x531987);return readBusinessGroupFromExtend(_0x47e403);}catch{return{'found':![]};}const _0x4b5f58=asPlainObject(_0x531987);if(Object[_0x58c785(0x174)][_0x58c785(0x16a)][_0x58c785(0x16f)](_0x4b5f58,_0x58c785(0x177)))return{'found':!![],'value':_0x4b5f58[_0x58c785(0x177)]};return{'found':![]};}function firstPresent(..._0x2be924){for(const _0xe1568 of _0x2be924){if(_0xe1568!==undefined&&_0xe1568!==null)return{'found':!![],'value':_0xe1568};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4cb764,_0x5cb9da){const _0xfedcd9=a60_0x2de791;if(_0x5cb9da===undefined)return;const _0x33e964=normalizeBusinessGroup(_0x5cb9da);if(_0x4cb764!==_0x33e964)throw CliErrors[_0xfedcd9(0x16c)](_0xfedcd9(0x183),_0xfedcd9(0x17e)+JSON['stringify'](_0x33e964)+_0xfedcd9(0x15f)+JSON[_0xfedcd9(0x182)](_0x4cb764));}function buildBackendPayload(_0x1c4444,_0x13cc98,_0x3f04c1){const _0x4ee4a4=a60_0x2de791;return{'appCode':_0x1c4444,'datasetCode':_0x13cc98[_0x4ee4a4(0x14a)],'businessGroup':_0x3f04c1};}function normalizeBusinessGroup(_0x57a5d5){if(_0x57a5d5===undefined||_0x57a5d5===null)return'';return String(_0x57a5d5)['trim']();}function asPlainObject(_0x5ea0eb){const _0xe3f23e=a60_0x2de791;if(!_0x5ea0eb||typeof _0x5ea0eb!==_0xe3f23e(0x180)||Array[_0xe3f23e(0x154)](_0x5ea0eb))return{};return _0x5ea0eb;}function firstString(..._0x328483){const _0x2b0718=a60_0x2de791;for(const _0x36ca13 of _0x328483){if(typeof _0x36ca13==='string'&&_0x36ca13['trim']())return _0x36ca13[_0x2b0718(0x164)]();if(typeof _0x36ca13===_0x2b0718(0x179)&&Number['isFinite'](_0x36ca13))return String(_0x36ca13);}return undefined;}function firstNumber(..._0x128c41){const _0x4164f9=a60_0x2de791;for(const _0x57b785 of _0x128c41){if(typeof _0x57b785===_0x4164f9(0x179)&&Number[_0x4164f9(0x17d)](_0x57b785))return _0x57b785;if(typeof _0x57b785==='string'&&_0x57b785[_0x4164f9(0x164)]()&&Number['isFinite'](Number(_0x57b785)))return Number(_0x57b785);}return null;}function trim(_0x92004f){return String(_0x92004f||'')['trim']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x523dda=a61_0x394b;(function(_0x19ddfe,_0xf328d3){const _0x1d7616=a61_0x394b,_0x46ef52=_0x19ddfe();while(!![]){try{const _0x3e3e64=parseInt(_0x1d7616(0xf4))/0x1*(-parseInt(_0x1d7616(0xf5))/0x2)+parseInt(_0x1d7616(0xee))/0x3*(-parseInt(_0x1d7616(0x108))/0x4)+parseInt(_0x1d7616(0x107))/0x5*(-parseInt(_0x1d7616(0xec))/0x6)+parseInt(_0x1d7616(0xf8))/0x7*(parseInt(_0x1d7616(0x110))/0x8)+parseInt(_0x1d7616(0xf3))/0x9*(-parseInt(_0x1d7616(0x10e))/0xa)+-parseInt(_0x1d7616(0xed))/0xb+-parseInt(_0x1d7616(0x10a))/0xc*(-parseInt(_0x1d7616(0xff))/0xd);if(_0x3e3e64===_0xf328d3)break;else _0x46ef52['push'](_0x46ef52['shift']());}catch(_0x5e785f){_0x46ef52['push'](_0x46ef52['shift']());}}}(a61_0x1710,0x750c8));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a61_0x523dda(0x10f),'getOne':a61_0x523dda(0xfb)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x59b197){const _0x298ea4=a61_0x523dda;return _0x59b197==null?'':String(_0x59b197)[_0x298ea4(0xf2)]();}function a61_0x394b(_0x4cd1e8,_0x20e3b8){_0x4cd1e8=_0x4cd1e8-0xec;const _0x17106f=a61_0x1710();let _0x394b72=_0x17106f[_0x4cd1e8];return _0x394b72;}function getDatasetCode(_0x3c30ea){const _0x576723=a61_0x523dda;return valueToString(_0x3c30ea[_0x576723(0x105)]??_0x3c30ea[_0x576723(0x102)]??_0x3c30ea['dataset']?.[_0x576723(0x101)]);}function a61_0x1710(){const _0x11e34=['如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','\x20是\x20','2989400jUnBaY','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','2320rNhwRD','object','\x20类型,没有可用于\x20','126012kAfNeJ','1490324BLiPym','17178IUAAlG','dataset','datasetName','METADATA','trim','27BjVgcq','1473sSPIMA','204guLqrT','name','tableName','16002kZiFlx','source','SQL\x20schema\x20validation','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','sourceType','join','filter','26VLaCoT','toUpperCase','datasetCode','modelCode','unknown','dbId','code','length','90txxvHF','64iHINSc','UNKNOWN','8812164wyEqdn','\x20的\x20DB_TABLE\x20数据源上下文。'];a61_0x1710=function(){return _0x11e34;};return a61_0x1710();}function getDatasetName(_0x2fabd2){const _0x2f614e=a61_0x523dda;return valueToString(_0x2fabd2[_0x2f614e(0xf6)]??_0x2fabd2[_0x2f614e(0xef)]?.[_0x2f614e(0xf0)])||_0x2f614e(0x103);}function getDatasetSource(_0x4d8ad5){const _0x97b3b3=a61_0x523dda;return valueToString(_0x4d8ad5[_0x97b3b3(0xf9)]??_0x4d8ad5['dataset']?.[_0x97b3b3(0xfc)])[_0x97b3b3(0x100)]();}function getDbtableConfig(_0x8d9e95){const _0x214d03=a61_0x523dda,_0x58b7d8=_0x8d9e95['dbtableConfig']??_0x8d9e95['dbtable'];return _0x58b7d8&&typeof _0x58b7d8===_0x214d03(0x111)?_0x58b7d8:{};}export function isDbTableBackedDataset(_0x14fcab){const _0x531647=a61_0x523dda,_0x3bc543=getDatasetSource(_0x14fcab);if(_0x3bc543===_0x531647(0xf1))return![];const _0x54fa34=getDbtableConfig(_0x14fcab),_0x56e48f=_0x54fa34[_0x531647(0x104)]??_0x54fa34['id'],_0x212034=valueToString(_0x54fa34[_0x531647(0xf7)]??_0x14fcab[_0x531647(0xf7)]??_0x14fcab[_0x531647(0xef)]?.[_0x531647(0xf7)]);return _0x56e48f!==undefined&&_0x56e48f!==null&&_0x212034[_0x531647(0x106)]>0x0;}export function filterDbTableBackedDatasets(_0x3e1aab){return _0x3e1aab['filter'](_0x310915=>isDbTableBackedDataset(_0x310915));}export function buildDbTableBackedRequirementMessage(_0x1f1a09,_0x57c694=a61_0x523dda(0xfa)){const _0x106cc3=a61_0x523dda,_0x43045b=getDatasetSource(_0x1f1a09)||_0x106cc3(0x109),_0x2b318a=getDatasetName(_0x1f1a09),_0x57820c=getDatasetCode(_0x1f1a09),_0x29921a=_0x57820c?'\x20('+_0x57820c+')':'';return['当前数据集\x20\x22'+_0x2b318a+'\x22'+_0x29921a+_0x106cc3(0x10d)+_0x43045b+_0x106cc3(0x112)+_0x57c694+_0x106cc3(0x10b),'原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0x106cc3(0x10c)+RUNTIME_DATA_ACCESS_COMMANDS[_0x106cc3(0xfe)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x106cc3(0xfd)]('\x20');}export function assertDatasetIsDbTableBacked(_0x25021e,_0x1737df){if(!isDbTableBackedDataset(_0x25021e))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x25021e,_0x1737df));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x54a990=a62_0x4589;(function(_0x2c62b0,_0x2a47e9){const _0x4b3a3a=a62_0x4589,_0x464d7e=_0x2c62b0();while(!![]){try{const _0x487e4c=-parseInt(_0x4b3a3a(0x16d))/0x1+-parseInt(_0x4b3a3a(0x158))/0x2*(parseInt(_0x4b3a3a(0x16b))/0x3)+parseInt(_0x4b3a3a(0x16c))/0x4*(parseInt(_0x4b3a3a(0x15c))/0x5)+parseInt(_0x4b3a3a(0x14b))/0x6*(parseInt(_0x4b3a3a(0x145))/0x7)+-parseInt(_0x4b3a3a(0x165))/0x8+-parseInt(_0x4b3a3a(0x162))/0x9+parseInt(_0x4b3a3a(0x14e))/0xa;if(_0x487e4c===_0x2a47e9)break;else _0x464d7e['push'](_0x464d7e['shift']());}catch(_0xd302d5){_0x464d7e['push'](_0x464d7e['shift']());}}}(a62_0x58c1,0x2fec2));import{deleteDataset,listDatasets}from'../../core/api-client.js';function a62_0x58c1(){const _0x3444ad=['dataset','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','description','relationPages','6mMMBrW','isArray','POST','4700170fLYoEt','\x20failed','Would\x20delete\x20','\x20dataset(s)','code','name','length','bool','Dataset\x20id','dbid=','2kckbeR','Required\x20to\x20execute\x20dataset\x20deletion','message','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','88205biYYxd','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','Deleted\x20','high-risk-write','dbId','confirm','515817jOVxQk','\x20dataset(s);\x20','map','2896008atloOd','tableName','num','/smartapi/dataset/delete-dataset','No\x20undeleted\x20dataset\x20found\x20for\x20','id=','55317vuVGKO','8RPAfxM','35549wZoVJP','validation','number','boolean','dbtableConfig','appCode','source','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbid','str','push','Matched\x20','filter','delete','1150051Ulxprn','dbName'];a62_0x58c1=function(){return _0x3444ad;};return a62_0x58c1();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a62_0x54a990(0x16f),'description':a62_0x54a990(0x156)},DBID_FLAG={'name':'dbid','type':'number','description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':a62_0x54a990(0x161),'type':a62_0x54a990(0x170),'description':a62_0x54a990(0x159)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a62_0x54a990(0x16f),'description':a62_0x54a990(0x174)};function a62_0x4589(_0x570c41,_0x496a1c){_0x570c41=_0x570c41-0x143;const _0x58c135=a62_0x58c1();let _0x4589aa=_0x58c135[_0x570c41];return _0x4589aa;}export const datasetDelete={'service':a62_0x54a990(0x147),'command':a62_0x54a990(0x144),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a62_0x54a990(0x15f),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x521595){const _0x2765d6=a62_0x54a990,_0x476b17=_0x521595['num']('id'),_0x4eeeb9=_0x521595[_0x2765d6(0x176)](_0x2765d6(0x152)),_0x58c0b7=_0x521595[_0x2765d6(0x167)]('dbid'),_0x28990a=[_0x476b17>0x0,Boolean(_0x4eeeb9),_0x58c0b7>0x0][_0x2765d6(0x143)](Boolean);if(_0x28990a[_0x2765d6(0x154)]===0x0)throw CliErrors[_0x2765d6(0x16e)](_0x2765d6(0x15b));if(_0x28990a[_0x2765d6(0x154)]>0x1)throw CliErrors[_0x2765d6(0x16e)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x4075be){const _0x17dbb8=a62_0x54a990,_0x2f5e1d=await resolveTargets(_0x4075be);return{'method':_0x17dbb8(0x14d),'url':_0x17dbb8(0x168),'body':{'appCode':_0x4075be[_0x17dbb8(0x172)],'count':_0x2f5e1d[_0x17dbb8(0x154)],'datasets':_0x2f5e1d},'description':_0x17dbb8(0x150)+_0x2f5e1d[_0x17dbb8(0x154)]+_0x17dbb8(0x15d)};},async 'execute'(_0x89c175){const _0x239e33=a62_0x54a990;if(!_0x89c175[_0x239e33(0x155)]('confirm'))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x740225=await resolveTargets(_0x89c175),_0x2687a0=[],_0x1538a6=[];for(const _0x5ed932 of _0x740225){try{await deleteDataset(_0x89c175[_0x239e33(0x172)],_0x5ed932['id']),_0x2687a0[_0x239e33(0x177)](_0x5ed932);}catch(_0x28898a){_0x1538a6[_0x239e33(0x177)]({..._0x5ed932,'error':_0x28898a instanceof Error?_0x28898a[_0x239e33(0x15a)]:String(_0x28898a)});}}if(_0x1538a6['length']>0x0)return{'ok':![],'data':{'requested':_0x740225[_0x239e33(0x154)],'deletedCount':_0x2687a0[_0x239e33(0x154)],'failedCount':_0x1538a6[_0x239e33(0x154)],'deleted':_0x2687a0,'failed':_0x1538a6},'message':_0x239e33(0x15e)+_0x2687a0[_0x239e33(0x154)]+'/'+_0x740225[_0x239e33(0x154)]+_0x239e33(0x163)+_0x1538a6[_0x239e33(0x154)]+_0x239e33(0x14f)};return{'ok':!![],'data':{'requested':_0x740225[_0x239e33(0x154)],'deletedCount':_0x2687a0[_0x239e33(0x154)],'deleted':_0x2687a0},'message':_0x239e33(0x15e)+_0x2687a0[_0x239e33(0x154)]+_0x239e33(0x151)};}};async function resolveTargets(_0x2b4bcf){const _0x45b2ba=a62_0x54a990,_0x2e00d6=_0x2b4bcf['num']('id'),_0x45d9a3=_0x2b4bcf['str'](_0x45b2ba(0x152)),_0x41ed35=_0x2b4bcf['num'](_0x45b2ba(0x175));let _0x3cb038;_0x45d9a3?(_0x3cb038=await listDatasets(_0x2b4bcf[_0x45b2ba(0x172)],{'code':_0x45d9a3}),_0x3cb038=_0x3cb038[_0x45b2ba(0x143)](_0x4922ac=>_0x4922ac[_0x45b2ba(0x152)]===_0x45d9a3)):(_0x3cb038=await listDatasets(_0x2b4bcf[_0x45b2ba(0x172)]),_0x2e00d6>0x0&&(_0x3cb038=_0x3cb038[_0x45b2ba(0x143)](_0x22388c=>_0x22388c['id']===_0x2e00d6)),_0x41ed35>0x0&&(_0x3cb038=_0x3cb038[_0x45b2ba(0x143)](_0x1d2f47=>_0x1d2f47[_0x45b2ba(0x171)]?.[_0x45b2ba(0x160)]===_0x41ed35)));const _0x2becb2=_0x3cb038[_0x45b2ba(0x164)](normalizeTarget);if(_0x2becb2[_0x45b2ba(0x154)]===0x0){const _0x5a028d=_0x45d9a3||(_0x2e00d6>0x0?_0x45b2ba(0x16a)+_0x2e00d6:_0x45b2ba(0x157)+_0x41ed35);throw CliErrors[_0x45b2ba(0x16e)](_0x45b2ba(0x169)+_0x5a028d+'.');}const _0x1e1612=_0x2b4bcf[_0x45b2ba(0x167)]('expected-count');if(_0x1e1612>0x0&&_0x2becb2[_0x45b2ba(0x154)]!==_0x1e1612)throw CliErrors[_0x45b2ba(0x16e)](_0x45b2ba(0x178)+_0x2becb2['length']+_0x45b2ba(0x148)+_0x1e1612+'.');return _0x2becb2;}function normalizeTarget(_0x300358){const _0x31ccdd=a62_0x54a990,_0x105204=_0x300358[_0x31ccdd(0x171)]??{};return{'id':_0x300358['id'],'code':_0x300358['code'],'name':_0x300358[_0x31ccdd(0x153)],'description':_0x300358[_0x31ccdd(0x149)],'source':_0x300358[_0x31ccdd(0x173)],'dbId':_0x105204['dbId'],'dbName':_0x105204[_0x31ccdd(0x146)],'tableName':_0x105204[_0x31ccdd(0x166)],'relatedPageCount':Array[_0x31ccdd(0x14c)](_0x300358[_0x31ccdd(0x14a)])?_0x300358['relationPages'][_0x31ccdd(0x154)]:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x30218d=a63_0x4442;(function(_0x1d3871,_0x5b6596){const _0x281e3f=a63_0x4442,_0x438921=_0x1d3871();while(!![]){try{const _0x5da063=-parseInt(_0x281e3f(0x187))/0x1*(parseInt(_0x281e3f(0x156))/0x2)+parseInt(_0x281e3f(0x18b))/0x3*(parseInt(_0x281e3f(0x170))/0x4)+-parseInt(_0x281e3f(0x19b))/0x5+parseInt(_0x281e3f(0x191))/0x6+-parseInt(_0x281e3f(0x175))/0x7+-parseInt(_0x281e3f(0x161))/0x8*(-parseInt(_0x281e3f(0x196))/0x9)+-parseInt(_0x281e3f(0x164))/0xa*(-parseInt(_0x281e3f(0x166))/0xb);if(_0x5da063===_0x5b6596)break;else _0x438921['push'](_0x438921['shift']());}catch(_0x57cfb5){_0x438921['push'](_0x438921['shift']());}}}(a63_0x11c9,0xbd512));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x5e25be){const _0x33932b=a63_0x4442;if(_0x5e25be['deleted'])return null;const _0x1d5072=Boolean(_0x5e25be['displayName']!==undefined||_0x5e25be[_0x33932b(0x17b)]!==undefined);let _0xe448e={};if(!_0x1d5072&&typeof _0x5e25be[_0x33932b(0x180)]==='string')try{_0xe448e=JSON['parse'](_0x5e25be[_0x33932b(0x180)]);}catch{}const _0x1a0f75=_0x1d5072?_0x5e25be[_0x33932b(0x176)]:_0x5e25be['code'],_0x4abc53=_0x1d5072?_0x5e25be[_0x33932b(0x190)]:_0x5e25be['name'],_0x1e4c0c=_0x1d5072?_0x5e25be[_0x33932b(0x17b)]:_0x5e25be[_0x33932b(0x165)]||_0x5e25be[_0x33932b(0x172)],_0x5117bb=_0x1d5072?_0x5e25be[_0x33932b(0x186)]===!![]:_0xe448e[_0x33932b(0x186)]===!![],_0x4a56e9=_0x1d5072?_0x5e25be['required']===!![]:_0xe448e[_0x33932b(0x16c)]===!![],_0x561cb3=_0x1d5072?_0x5e25be['options']??null:_0xe448e[_0x33932b(0x179)]??null,_0x229dee={'name':_0x1a0f75,'displayName':_0x4abc53||_0x1a0f75,'type':_0x1e4c0c,'dbType':_0x5e25be['dbType'],'pk':_0x5117bb,'required':_0x4a56e9,'deprecated':_0x5e25be[_0x33932b(0x17a)]===!![],'description':_0x5e25be[_0x33932b(0x150)]||undefined};return Array[_0x33932b(0x185)](_0x561cb3)&&_0x561cb3[_0x33932b(0x167)]>0x0&&(_0x229dee[_0x33932b(0x179)]=_0x561cb3),_0x229dee;}function a63_0x11c9(){const _0x5caf80=['columnCodeListWithDeleted','string','logicField','toTableName','8DXhLuM','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','validateRules','toDatasetName','filter','modifierIdField','responseFields','requestFields','creatorIdField','labelField','map','152Iuhygq','main_sub','cardinality','20wSJWqj','type','25828mMQpQV','length','tableName','allFields','updateTimeField','str','required','source','deleted','responseBody','32Ohymvd','toField','dataType','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','indexes','10489234uKrmNX','name','beforeScriptId','title','options','deprecated','doType','dbId','entries','method','relationId','extend','properties','split','modelId','host','isArray','pkField','83579xTnOqZ','allFieldNames','relations','modelCode','523098ODvbbB','createTimeField','parse','datasetKey','requestBody','displayName','6572808RnOMGg','formatRules','alias','code','fields','81063VKXJcL','afterScriptId','path','dataset','doVersion','290025YQJZgd','read','relatedPageInfoList','description','dbName'];a63_0x11c9=function(){return _0x5caf80;};return a63_0x11c9();}function a63_0x4442(_0x48fc00,_0xd55b6b){_0x48fc00=_0x48fc00-0x150;const _0x11c931=a63_0x11c9();let _0x44420e=_0x11c931[_0x48fc00];return _0x44420e;}function parseJsonMaybe(_0x9c78e5){const _0x3ca012=a63_0x4442;if(typeof _0x9c78e5!=='string')return _0x9c78e5;try{return JSON[_0x3ca012(0x18d)](_0x9c78e5);}catch{return _0x9c78e5;}}function normalizeOperationEntry(_0x101074,_0x30f64b){const _0x52432a=a63_0x4442;if(!_0x30f64b||typeof _0x30f64b!=='object')return null;if(!_0x30f64b[_0x52432a(0x17e)]||!_0x30f64b[_0x52432a(0x198)])return null;const _0xccdbe={'name':_0x101074,'method':_0x30f64b['method'],'path':_0x30f64b[_0x52432a(0x198)]};if(_0x30f64b[_0x52432a(0x184)])_0xccdbe[_0x52432a(0x184)]=_0x30f64b[_0x52432a(0x184)];if(_0x30f64b[_0x52432a(0x18f)]!=null){const _0x3d04d4=parseJsonMaybe(_0x30f64b[_0x52432a(0x18f)]);_0xccdbe['requestBody']=_0x3d04d4;}if(_0x30f64b[_0x52432a(0x16f)]!=null){const _0x43790f=parseJsonMaybe(_0x30f64b['responseBody']);_0xccdbe[_0x52432a(0x16f)]=_0x43790f;}if(_0x30f64b[_0x52432a(0x177)]!=null)_0xccdbe['beforeScriptId']=_0x30f64b['beforeScriptId'];if(_0x30f64b[_0x52432a(0x197)]!=null)_0xccdbe[_0x52432a(0x197)]=_0x30f64b[_0x52432a(0x197)];if(Array[_0x52432a(0x185)](_0x30f64b[_0x52432a(0x15d)]))_0xccdbe['requestFields']=_0x30f64b[_0x52432a(0x15d)];if(Array[_0x52432a(0x185)](_0x30f64b[_0x52432a(0x15c)]))_0xccdbe[_0x52432a(0x15c)]=_0x30f64b['responseFields'];return _0xccdbe;}function summarizeDbtable(_0x1d122d){const _0x597c01=a63_0x4442,_0x47cd3c={},_0x428aea=[_0x597c01(0x17c),_0x597c01(0x151),_0x597c01(0x168),_0x597c01(0x18e),_0x597c01(0x186),_0x597c01(0x169),_0x597c01(0x154),_0x597c01(0x18c),_0x597c01(0x16a),_0x597c01(0x15e),'creatorNameField',_0x597c01(0x15b),'modifierNameField',_0x597c01(0x15f),'dblinkInfoDTO'];for(const _0x42092c of _0x428aea){if(_0x1d122d[_0x42092c]!==undefined)_0x47cd3c[_0x42092c]=_0x1d122d[_0x42092c];}return typeof _0x47cd3c[_0x597c01(0x169)]===_0x597c01(0x153)&&_0x47cd3c[_0x597c01(0x169)]['length']>0x0&&(_0x47cd3c[_0x597c01(0x188)]=_0x47cd3c['allFields'][_0x597c01(0x182)](',')[_0x597c01(0x160)](_0x54fece=>_0x54fece['trim']())[_0x597c01(0x15a)](Boolean)),_0x47cd3c;}function normalizeRelatedPages(_0x232abb){const _0x1d7dcf=a63_0x4442;if(!Array[_0x1d7dcf(0x185)](_0x232abb))return[];return _0x232abb['filter'](_0x1a11b6=>_0x1a11b6&&typeof _0x1a11b6==='object')[_0x1d7dcf(0x160)](_0x3ee30f=>({'id':_0x3ee30f['id'],'type':_0x3ee30f[_0x1d7dcf(0x165)],'code':_0x3ee30f[_0x1d7dcf(0x194)],'title':_0x3ee30f[_0x1d7dcf(0x178)],'deleted':_0x3ee30f[_0x1d7dcf(0x16e)]===!![]}));}export const datasetDetail={'service':a63_0x30218d(0x199),'command':'detail','description':a63_0x30218d(0x157),'risk':a63_0x30218d(0x19c),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x30218d(0x193),'type':'string','description':a63_0x30218d(0x173)}],async 'execute'(_0x56fd94){const _0x12af2a=a63_0x30218d,_0x3b152b=await getDatasetDetail(_0x56fd94[_0x12af2a(0x16b)](_0x12af2a(0x194))),_0xba69a0=Array[_0x12af2a(0x185)](_0x3b152b[_0x12af2a(0x195)])?_0x3b152b[_0x12af2a(0x195)]:Array[_0x12af2a(0x185)](_0x3b152b['properties'])?_0x3b152b[_0x12af2a(0x181)]:[],_0x129af1=_0xba69a0[_0x12af2a(0x160)](_0x1f6439=>normalizeField(_0x1f6439))[_0x12af2a(0x15a)](_0x504966=>_0x504966!==null),_0x53a493=_0x3b152b['operations']??{},_0x1a2a38=[];for(const [_0x2d7cf7,_0x224d7f]of Object[_0x12af2a(0x17d)](_0x53a493)){const _0x5e35fb=normalizeOperationEntry(_0x2d7cf7,_0x224d7f);if(_0x5e35fb)_0x1a2a38['push'](_0x5e35fb);}const _0x4a3c02=_0x3b152b['dbtableConfig']??{},_0x544bf7=_0x3b152b[_0x12af2a(0x199)]??{},_0x21981c=_0x4a3c02[_0x12af2a(0x17c)]!=null?{'id':_0x4a3c02['dbId'],'name':_0x4a3c02[_0x12af2a(0x151)]??null}:undefined;let _0x287507;return typeof _0x3b152b['extend']==='string'&&(_0x287507=parseJsonMaybe(_0x3b152b[_0x12af2a(0x180)])),{'ok':!![],'data':{'id':_0x3b152b[_0x12af2a(0x183)]??_0x3b152b['id'],'name':_0x3b152b[_0x12af2a(0x176)],'code':_0x3b152b[_0x12af2a(0x18a)]||_0x3b152b['code'],'doVersion':_0x3b152b[_0x12af2a(0x19a)],'description':_0x3b152b[_0x12af2a(0x150)]||_0x544bf7['tableComment']||undefined,'source':_0x3b152b[_0x12af2a(0x16d)]||_0x544bf7['sourceType'],'table':_0x4a3c02[_0x12af2a(0x168)]||_0x544bf7[_0x12af2a(0x168)],'datasetKey':_0x4a3c02[_0x12af2a(0x18e)],'pk':_0x4a3c02[_0x12af2a(0x186)],'db':_0x21981c,'dbtable':summarizeDbtable(_0x4a3c02),'fields':_0x129af1,'operations':_0x1a2a38,'indexes':Array[_0x12af2a(0x185)](_0x544bf7[_0x12af2a(0x174)])?_0x544bf7[_0x12af2a(0x174)]:[],'relations':Array[_0x12af2a(0x185)](_0x3b152b[_0x12af2a(0x189)])?_0x3b152b['relations'][_0x12af2a(0x160)](_0x3c9e6d=>({..._0x3c9e6d[_0x12af2a(0x17f)]!=null?{'relationId':_0x3c9e6d['relationId']}:{},'fromDataset':_0x3b152b[_0x12af2a(0x176)],'fromCode':_0x3b152b[_0x12af2a(0x18a)]||_0x3b152b[_0x12af2a(0x194)],'fromTable':_0x4a3c02[_0x12af2a(0x168)]||_0x544bf7[_0x12af2a(0x168)],'fromField':_0x3c9e6d['fromField'],'toDataset':_0x3c9e6d[_0x12af2a(0x159)],'toCode':_0x3c9e6d['toDatasetCode'],'toTable':_0x3c9e6d[_0x12af2a(0x155)],'toField':_0x3c9e6d[_0x12af2a(0x171)],'labelField':_0x3c9e6d['toFieldLabel']||undefined,'cardinality':_0x3c9e6d[_0x12af2a(0x163)]||undefined,'bizRelationType':_0x3c9e6d['bizRelationType']===_0x12af2a(0x162)?'main_sub':null})):[],'relatedPages':normalizeRelatedPages(_0x3b152b[_0x12af2a(0x19d)]),...Array[_0x12af2a(0x185)](_0x3b152b[_0x12af2a(0x152)])?{'columnCodeListWithDeleted':_0x3b152b[_0x12af2a(0x152)]}:{},'formatRules':Array[_0x12af2a(0x185)](_0x3b152b[_0x12af2a(0x192)])?_0x3b152b[_0x12af2a(0x192)]:[],'validateRules':Array[_0x12af2a(0x185)](_0x3b152b['validateRules'])?_0x3b152b[_0x12af2a(0x158)]:[],..._0x287507!==undefined?{'extend':_0x287507}:{},'stats':{'fieldCount':_0x129af1[_0x12af2a(0x167)],'operationCount':_0x1a2a38[_0x12af2a(0x167)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64_0x340242=a64_0x48b5;(function(_0x1cbb05,_0x3507c2){const _0x27e909=a64_0x48b5,_0x2403ce=_0x1cbb05();while(!![]){try{const _0x481061=parseInt(_0x27e909(0xf2))/0x1*(parseInt(_0x27e909(0xf4))/0x2)+parseInt(_0x27e909(0x11a))/0x3+parseInt(_0x27e909(0xf3))/0x4+parseInt(_0x27e909(0x102))/0x5*(parseInt(_0x27e909(0x11c))/0x6)+parseInt(_0x27e909(0x10b))/0x7+-parseInt(_0x27e909(0xf6))/0x8*(parseInt(_0x27e909(0xe8))/0x9)+-parseInt(_0x27e909(0x10c))/0xa*(parseInt(_0x27e909(0xe1))/0xb);if(_0x481061===_0x3507c2)break;else _0x2403ce['push'](_0x2403ce['shift']());}catch(_0x232ca8){_0x2403ce['push'](_0x2403ce['shift']());}}}(a64_0x11d8,0x5cc4b));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';function a64_0x48b5(_0x37237d,_0x4c440b){_0x37237d=_0x37237d-0xdc;const _0x11d8d1=a64_0x11d8();let _0x48b5bc=_0x11d8d1[_0x37237d];return _0x48b5bc;}import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a64_0x340242(0x100),{'message':a64_0x340242(0xe5),'hint':'Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.'}]]);export function parseJsonObjectFlag(_0x918abe,_0x217f6f){const _0x3cce81=a64_0x340242;if(!_0x918abe)return undefined;let _0xb66b85;try{_0xb66b85=JSON[_0x3cce81(0xfd)](_0x918abe);}catch(_0x4e49e4){const _0x4858d4=_0x4e49e4 instanceof Error?_0x4e49e4['message']:String(_0x4e49e4);throw CliErrors[_0x3cce81(0xe7)](_0x217f6f+_0x3cce81(0xeb)+_0x4858d4);}if(!isPlainObject(_0xb66b85)||Array[_0x3cce81(0xea)](_0xb66b85))throw CliErrors[_0x3cce81(0xe7)](_0x217f6f+'\x20must\x20be\x20a\x20JSON\x20object');return _0xb66b85;}export function validateExtendPatchKeys(_0x438456){const _0x4cbc91=a64_0x340242,_0x4848ec=Object[_0x4cbc91(0x113)](_0x438456);if(_0x4848ec['length']===0x0)throw CliErrors['validation'](_0x4cbc91(0x105));for(const _0x42461a of _0x4848ec){const _0x2f2da=EXTEND_PATCH_REDIRECTS[_0x4cbc91(0xf9)](_0x42461a);if(_0x2f2da)throw CliErrors[_0x4cbc91(0xe7)](_0x2f2da[_0x4cbc91(0xf1)],_0x2f2da[_0x4cbc91(0xf0)]);if(!MUTABLE_EXTEND_KEYS[_0x4cbc91(0xf8)](_0x42461a))throw CliErrors[_0x4cbc91(0xe7)](_0x4cbc91(0xfe)+_0x42461a,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x9f37f5=a64_0x340242,_0x45ff36=Array[_0x9f37f5(0x112)](MUTABLE_EXTEND_KEYS)[_0x9f37f5(0xe9)]();return _0x45ff36[_0x9f37f5(0x106)]>0x0?_0x9f37f5(0x101)+_0x45ff36[_0x9f37f5(0xe6)](',\x20'):'No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.';}export function applyExtendPatch(_0x2439e5,_0x77ff5f){const _0x4d5d01=a64_0x340242;validateExtendPatchKeys(_0x77ff5f);const _0x21a03a=deepClone(_0x2439e5),_0x109ae0=[];for(const [_0x4ec427,_0x10c64a]of Object[_0x4d5d01(0xdc)](_0x77ff5f)){const _0x13fb54=_0x21a03a[_0x4ec427],_0x51bc1a=deepClone(_0x10c64a);!deepEqual(_0x13fb54,_0x51bc1a)&&(_0x21a03a[_0x4ec427]=_0x51bc1a,_0x109ae0['push'](_0x4d5d01(0x119)+_0x4ec427));}return _0x109ae0[_0x4d5d01(0xe9)](),{'after':_0x21a03a,'changedPaths':_0x109ae0,'changed':_0x109ae0['length']>0x0};}export function assertExpectation(_0x278c04,_0x7ddfdc){const _0x5d7470=a64_0x340242;if(!_0x7ddfdc)return;for(const [_0x117190,_0x5cd972]of Object[_0x5d7470(0xdc)](_0x7ddfdc)){const _0x55a262=_0x278c04[_0x117190];if(!deepEqual(_0x55a262,_0x5cd972))throw CliErrors[_0x5d7470(0xe7)]('Expectation\x20mismatch\x20at\x20extend.'+_0x117190,'Expected\x20'+JSON['stringify'](_0x5cd972)+',\x20actual\x20'+JSON[_0x5d7470(0xef)](_0x55a262));}}export async function buildDatasetExtendUpdateResult({appCode:_0x1b86a4,input:_0x377dfa,dryRun:_0x1b8008}){const _0xbc9d77=a64_0x340242;validateInput(_0x377dfa);const _0x245607=await getDatasetDetail(_0x377dfa[_0xbc9d77(0x116)]),_0x14bb95=parseDatasetExtend(_0x245607[_0xbc9d77(0xdd)]),_0x31b566=deepClone(_0x14bb95[_0xbc9d77(0x11b)]);assertExpectation(_0x31b566,_0x377dfa[_0xbc9d77(0x103)]);const {after:_0x3e6e47,changedPaths:_0x4a024e,changed:_0x91ec08}=applyExtendPatch(_0x31b566,_0x377dfa[_0xbc9d77(0xe0)]),_0x1f15bc=summarizeDataset(_0x245607,_0x377dfa[_0xbc9d77(0x116)]);return _0x91ec08&&!_0x1b8008&&(_0x245607[_0xbc9d77(0xdd)]=serializeDatasetExtend(_0x3e6e47,_0x14bb95[_0xbc9d77(0x111)]),await updateDrivenData(_0x245607)),{'ok':!![],'data':{'appCode':_0x1b86a4,'selector':{'code':_0x377dfa[_0xbc9d77(0x116)]},'dataset':_0x1f15bc,'dryRun':_0x1b8008,'changed':_0x91ec08,'changedPaths':_0x4a024e,'before':{'extend':_0x31b566},'after':{'extend':_0x3e6e47},'submitted':_0x91ec08&&!_0x1b8008},'message':_0x91ec08?_0x1b8008?_0xbc9d77(0xf5)+_0x4a024e[_0xbc9d77(0xe6)](',\x20')+')':_0xbc9d77(0xfb)+_0x4a024e['join'](',\x20')+')':_0xbc9d77(0x117)};}export const datasetExtendUpdate={'service':a64_0x340242(0xff),'command':a64_0x340242(0xfc),'description':a64_0x340242(0x10d),'risk':a64_0x340242(0xec),'flags':[CODE_FLAG,{'name':a64_0x340242(0xf7),'type':a64_0x340242(0x104),'required':!![],'description':a64_0x340242(0x115)},{'name':a64_0x340242(0xe3),'type':a64_0x340242(0x104),'required':![],'description':'JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x40ba6c){validateInput(readExtendUpdateInput(_0x40ba6c));},async 'dryRun'(_0x4c2167){const _0x5cc29e=a64_0x340242,_0x17a345=await buildDatasetExtendUpdateResult({'appCode':_0x4c2167[_0x5cc29e(0xdf)],'input':readExtendUpdateInput(_0x4c2167),'dryRun':!![]});return{'method':'POST','url':_0x5cc29e(0xe2),'body':_0x17a345[_0x5cc29e(0x107)],'description':_0x17a345[_0x5cc29e(0xf1)]};},async 'execute'(_0x390184){const _0x2fcabb=a64_0x340242;return buildDatasetExtendUpdateResult({'appCode':_0x390184[_0x2fcabb(0xdf)],'input':readExtendUpdateInput(_0x390184),'dryRun':![]});}};function readExtendUpdateInput(_0x471791){const _0x4f8ba4=a64_0x340242,_0x42c5ae=trim(_0x471791[_0x4f8ba4(0x11d)](_0x4f8ba4(0x116))),_0x119c08=parseJsonObjectFlag(_0x471791[_0x4f8ba4(0x11d)]('patch-json'),'--patch-json'),_0x105976=parseJsonObjectFlag(_0x471791[_0x4f8ba4(0x11d)](_0x4f8ba4(0xe3)),_0x4f8ba4(0x110));return{'code':_0x42c5ae,'patch':_0x119c08||{},'expect':_0x105976};}function a64_0x11d8(){const _0x3f6435=['patch-json','has','get','trim','Updated\x20dataset\x20extend\x20(','extend-update','parse','Unsupported\x20patch\x20key:\x20','dataset','businessGroup','Allowed\x20keys:\x20','468680XsumgD','expect','string','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','length','data','object','tableName','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','4242469vqNANZ','210KsxTrS','Patch\x20dataset\x20top-level\x20extend\x20safely','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','name','--expect-json','shape','from','keys','datasetName','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','code','No\x20changes\x20for\x20dataset\x20extend','datasetId','extend.','2126721GdTCxe','value','6oMnhQF','str','entries','extend','dbName','appCode','patch','1178122mXnKee','/smartapi/dataset/update-driven-data','expect-json','dbtableConfig','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','join','validation','764613iZNjxZ','sort','isArray','\x20must\x20be\x20valid\x20JSON\x20object:\x20','write','--code\x20is\x20required','dbId','stringify','hint','message','82993xayCnO','2897668IubpOU','14ltwnkf','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','8QGUGuC'];a64_0x11d8=function(){return _0x3f6435;};return a64_0x11d8();}function validateInput(_0x5418a4){const _0x59bf6d=a64_0x340242;if(!_0x5418a4[_0x59bf6d(0x116)])throw CliErrors[_0x59bf6d(0xe7)](_0x59bf6d(0xed));validateExtendPatchKeys(_0x5418a4[_0x59bf6d(0xe0)]);}function parseDatasetExtend(_0x147ea7){const _0x4e927f=a64_0x340242;if(typeof _0x147ea7===_0x4e927f(0x104)){const _0x2476c7=_0x147ea7[_0x4e927f(0xfa)]();if(!_0x2476c7)return{'value':{},'shape':_0x4e927f(0x104)};let _0x3d6ea8;try{_0x3d6ea8=JSON['parse'](_0x2476c7);}catch(_0x2ec3f7){const _0x232f5b=_0x2ec3f7 instanceof Error?_0x2ec3f7[_0x4e927f(0xf1)]:String(_0x2ec3f7);throw CliErrors[_0x4e927f(0xe7)](_0x4e927f(0x10e)+_0x232f5b);}if(!isPlainObject(_0x3d6ea8)||Array[_0x4e927f(0xea)](_0x3d6ea8))throw CliErrors[_0x4e927f(0xe7)](_0x4e927f(0x10a));return{'value':_0x3d6ea8,'shape':_0x4e927f(0x104)};}if(_0x147ea7===undefined||_0x147ea7===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x147ea7)||Array[_0x4e927f(0xea)](_0x147ea7))throw CliErrors[_0x4e927f(0xe7)](_0x4e927f(0x10a));return{'value':_0x147ea7,'shape':'object'};}function serializeDatasetExtend(_0x465ce4,_0x1f12eb){const _0x55e0a2=a64_0x340242;return _0x1f12eb===_0x55e0a2(0x104)?JSON['stringify'](_0x465ce4):_0x465ce4;}function summarizeDataset(_0x87602e,_0x1a6772){const _0x13d9a6=a64_0x340242,_0x3437fc=isPlainObject(_0x87602e['dataset'])?_0x87602e[_0x13d9a6(0xff)]:{},_0x4d3730=isPlainObject(_0x87602e['dbtableConfig'])?_0x87602e[_0x13d9a6(0xe4)]:{};return{'id':_0x87602e['modelId']??_0x87602e['id']??_0x3437fc[_0x13d9a6(0x118)]??null,'code':_0x87602e['modelCode']??_0x87602e[_0x13d9a6(0x116)]??_0x3437fc['datasetCode']??_0x1a6772,'name':_0x87602e[_0x13d9a6(0x10f)]??_0x3437fc[_0x13d9a6(0x114)]??null,'table':_0x4d3730[_0x13d9a6(0x109)]??_0x3437fc[_0x13d9a6(0x109)]??null,'db':_0x4d3730[_0x13d9a6(0xde)]??_0x4d3730[_0x13d9a6(0xee)]??null};}function deepClone(_0x23d966){const _0x35815e=a64_0x340242;if(_0x23d966===undefined)return _0x23d966;return JSON[_0x35815e(0xfd)](JSON[_0x35815e(0xef)](_0x23d966));}function deepEqual(_0x16fad1,_0x5d4e1f){const _0x335d9d=a64_0x340242;return JSON[_0x335d9d(0xef)](_0x16fad1)===JSON[_0x335d9d(0xef)](_0x5d4e1f);}function isPlainObject(_0x1ded6e){const _0x455e3f=a64_0x340242;return Boolean(_0x1ded6e)&&typeof _0x1ded6e===_0x455e3f(0x108)&&!Array[_0x455e3f(0xea)](_0x1ded6e);}function trim(_0x165d2c){const _0x593c1c=a64_0x340242,_0x2e74ec=String(_0x165d2c||'')[_0x593c1c(0xfa)]();return _0x2e74ec;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a64_0x2ac64e=a64_0x3de8;(function(_0x16bc9b,_0x94ff83){const _0x4900d5=a64_0x3de8,_0x4ffcee=_0x16bc9b();while(!![]){try{const _0x33ab78=parseInt(_0x4900d5(0x9d))/0x1*(parseInt(_0x4900d5(0xc3))/0x2)+-parseInt(_0x4900d5(0xa3))/0x3*(-parseInt(_0x4900d5(0x97))/0x4)+parseInt(_0x4900d5(0xa1))/0x5+parseInt(_0x4900d5(0x7c))/0x6*(parseInt(_0x4900d5(0xb3))/0x7)+-parseInt(_0x4900d5(0x89))/0x8+-parseInt(_0x4900d5(0x80))/0x9+-parseInt(_0x4900d5(0xb5))/0xa*(parseInt(_0x4900d5(0x9e))/0xb);if(_0x33ab78===_0x94ff83)break;else _0x4ffcee['push'](_0x4ffcee['shift']());}catch(_0xd5f2b3){_0x4ffcee['push'](_0x4ffcee['shift']());}}}(a64_0x316b,0xd7fd6));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const MUTABLE_FIELD_KEYS=new Set(['doType',a64_0x2ac64e(0x7e),a64_0x2ac64e(0x93),a64_0x2ac64e(0xc0),a64_0x2ac64e(0x8e),a64_0x2ac64e(0xc1),a64_0x2ac64e(0x96),a64_0x2ac64e(0x94),a64_0x2ac64e(0x83)]),FORBIDDEN_FIELD_KEYS=new Set(['id',a64_0x2ac64e(0xa0),a64_0x2ac64e(0xc4),a64_0x2ac64e(0xba),a64_0x2ac64e(0x85),a64_0x2ac64e(0x7b),a64_0x2ac64e(0xb4),a64_0x2ac64e(0xbe),a64_0x2ac64e(0x81),'pkField',a64_0x2ac64e(0x9a),'systemRetain']);export function parseJsonObjectFlag(_0x414d6f,_0x3635fe){const _0x2a85a7=a64_0x2ac64e;if(!_0x414d6f)return undefined;let _0x5925ef;try{_0x5925ef=JSON[_0x2a85a7(0x99)](_0x414d6f);}catch(_0x5e32f4){const _0x449648=_0x5e32f4 instanceof Error?_0x5e32f4['message']:String(_0x5e32f4);throw CliErrors[_0x2a85a7(0x7d)](_0x3635fe+_0x2a85a7(0x82)+_0x449648);}if(!isPlainObject(_0x5925ef)||Array['isArray'](_0x5925ef))throw CliErrors['validation'](_0x3635fe+'\x20must\x20be\x20a\x20JSON\x20object');return _0x5925ef;}export function validatePatchKeys(_0x55dbc4){const _0x21d13d=a64_0x2ac64e,_0x5eadd6=Object[_0x21d13d(0x87)](_0x55dbc4);if(_0x5eadd6[_0x21d13d(0xbb)]===0x0)throw CliErrors['validation'](_0x21d13d(0xaf));for(const _0x325e99 of _0x5eadd6){if(FORBIDDEN_FIELD_KEYS[_0x21d13d(0xa6)](_0x325e99))throw CliErrors['validation'](_0x21d13d(0xb6)+_0x325e99);if(!MUTABLE_FIELD_KEYS[_0x21d13d(0xa6)](_0x325e99))throw CliErrors[_0x21d13d(0x7d)](_0x21d13d(0x95)+_0x325e99,'Allowed\x20keys:\x20'+Array[_0x21d13d(0xb2)](MUTABLE_FIELD_KEYS)['join'](',\x20'));}}export function applyFieldPatch(_0x100b2f,_0x5a3d30){const _0x513890=a64_0x2ac64e;validatePatchKeys(_0x5a3d30);const _0x67e647=deepClone(_0x100b2f),_0x4daa0b=new Set();for(const [_0x1734b6,_0x205695]of Object[_0x513890(0xab)](_0x5a3d30)){const _0x58d739=_0x67e647[_0x1734b6],_0x5a9f31=mergePatchValue(_0x58d739,_0x205695);!deepEqual(_0x58d739,_0x5a9f31)&&(_0x67e647[_0x1734b6]=_0x5a9f31,_0x4daa0b[_0x513890(0x8d)](_0x1734b6),collectChangedPaths(_0x1734b6,_0x58d739,_0x5a9f31,_0x4daa0b));}return{'after':_0x67e647,'changedPaths':Array['from'](_0x4daa0b)[_0x513890(0xa4)](),'changed':_0x4daa0b['size']>0x0};}export function assertExpectation(_0x4adf8a,_0x5d0caf){const _0x78c309=a64_0x2ac64e;if(!_0x5d0caf)return;for(const [_0x1f9ef,_0x874c62]of Object[_0x78c309(0xab)](_0x5d0caf)){const _0x15271c=_0x4adf8a[_0x1f9ef];if(!deepEqual(_0x15271c,_0x874c62))throw CliErrors['validation'](_0x78c309(0xb0)+_0x1f9ef,_0x78c309(0x8f)+JSON[_0x78c309(0xc5)](_0x874c62)+_0x78c309(0x9b)+JSON[_0x78c309(0xc5)](_0x15271c));}}export async function buildDatasetFieldUpdateResult({appCode:_0x1bfcd2,input:_0x11a0f5,dryRun:_0x3f7b5a}){const _0x1ebd37=a64_0x2ac64e;validateInput(_0x11a0f5);const _0x253901=await getDatasetDetail(_0x11a0f5[_0x1ebd37(0xc4)]),_0x3b4620=readFieldArray(_0x253901),_0x455b35=_0x3b4620[_0x1ebd37(0xb8)](_0x45c9af=>_0x45c9af?.[_0x1ebd37(0xa0)]===_0x11a0f5[_0x1ebd37(0x84)]);if(_0x455b35<0x0)throw CliErrors[_0x1ebd37(0x7d)]('Field\x20not\x20found:\x20'+_0x11a0f5[_0x1ebd37(0x84)]);const _0x5f5782=deepClone(_0x3b4620[_0x455b35]);assertExpectation(_0x5f5782,_0x11a0f5[_0x1ebd37(0x8b)]);const {after:_0x14df37,changedPaths:_0x4d0a21,changed:_0xd5398e}=applyFieldPatch(_0x5f5782,_0x11a0f5['patch']),_0x6e6e12=summarizeDataset(_0x253901,_0x11a0f5[_0x1ebd37(0xc4)]);return _0xd5398e&&!_0x3f7b5a&&(_0x3b4620[_0x455b35]=_0x14df37,await updateDrivenData(_0x253901)),{'ok':!![],'data':{'appCode':_0x1bfcd2,'selector':{'code':_0x11a0f5[_0x1ebd37(0xc4)]},'dataset':_0x6e6e12,'field':{'id':_0x5f5782['id']??null,'name':_0x5f5782[_0x1ebd37(0xa0)]},'dryRun':_0x3f7b5a,'changed':_0xd5398e,'changedPaths':_0x4d0a21,'before':_0x5f5782,'after':_0x14df37,'submitted':_0xd5398e&&!_0x3f7b5a},'message':_0xd5398e?_0x3f7b5a?_0x1ebd37(0x92)+_0x11a0f5[_0x1ebd37(0x84)]+'\x20would\x20change\x20('+_0x4d0a21[_0x1ebd37(0x7f)](',\x20')+')':_0x1ebd37(0xae)+_0x11a0f5[_0x1ebd37(0x84)]+'\x20('+_0x4d0a21[_0x1ebd37(0x7f)](',\x20')+')':_0x1ebd37(0xbc)+_0x11a0f5['field']};}export const datasetFieldUpdate={'service':'dataset','command':a64_0x2ac64e(0x90),'description':a64_0x2ac64e(0xaa),'risk':'write','flags':[CODE_FLAG,{'name':a64_0x2ac64e(0x84),'type':a64_0x2ac64e(0x7a),'required':!![],'description':a64_0x2ac64e(0xa8)},{'name':a64_0x2ac64e(0xa7),'type':'string','required':!![],'description':a64_0x2ac64e(0xa2)},{'name':a64_0x2ac64e(0xb9),'type':a64_0x2ac64e(0x7a),'required':![],'description':a64_0x2ac64e(0x9f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x826ac1){validateInput(readFieldUpdateInput(_0x826ac1));},async 'dryRun'(_0x232746){const _0x3e68dd=a64_0x2ac64e,_0x462aee=await buildDatasetFieldUpdateResult({'appCode':_0x232746[_0x3e68dd(0x86)],'input':readFieldUpdateInput(_0x232746),'dryRun':!![]});return{'method':_0x3e68dd(0xbf),'url':_0x3e68dd(0xb7),'body':_0x462aee[_0x3e68dd(0xa9)],'description':_0x462aee['message']};},async 'execute'(_0x56f1bc){const _0x5a6643=a64_0x2ac64e;return buildDatasetFieldUpdateResult({'appCode':_0x56f1bc[_0x5a6643(0x86)],'input':readFieldUpdateInput(_0x56f1bc),'dryRun':![]});}};function readFieldUpdateInput(_0x2b7e70){const _0x3eb638=a64_0x2ac64e,_0x54c83d=trim(_0x2b7e70[_0x3eb638(0xad)]('code')),_0x11cdbc=emptyToUndefined(_0x2b7e70['str'](_0x3eb638(0x84))),_0x2e1192=parseJsonObjectFlag(_0x2b7e70['str']('patch-json'),'--patch-json'),_0x1e773f=parseJsonObjectFlag(_0x2b7e70[_0x3eb638(0xad)](_0x3eb638(0xb9)),'--expect-json');return{'code':_0x54c83d,'field':_0x11cdbc||'','patch':_0x2e1192||{},'expect':_0x1e773f};}function validateInput(_0x442463){const _0x433035=a64_0x2ac64e;if(!_0x442463[_0x433035(0xc4)])throw CliErrors['validation']('--code\x20is\x20required');if(!_0x442463[_0x433035(0x84)])throw CliErrors['validation'](_0x433035(0x98));validatePatchKeys(_0x442463[_0x433035(0x9c)]);}function a64_0x316b(){const _0x13113b=['2VFexoE','code','stringify','string','dbTypeScale','113994TGjFmG','validation','displayName','join','12164499EfWjxE','deleted','\x20must\x20be\x20valid\x20JSON\x20object:\x20','deprecated','field','dbTypeLen','appCode','keys','datasetId','6322200HSzdrv','datasetCode','expect','dataset','add','required','Expected\x20','field-update','dbId','Dry-run:\x20dataset\x20field\x20','description','chartRole','Unsupported\x20patch\x20key:\x20','defaultAggregation','3656172yiHdYo','--field\x20is\x20required','parse','autoIncrement',',\x20actual\x20','patch','1319705dLRJzh','16456fuVBYH','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','name','7938375pgkUEL','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','3qfWeXD','sort','object','has','patch-json','Exact\x20raw\x20fields[].name\x20to\x20patch','data','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','entries','properties','str','Updated\x20dataset\x20field\x20','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','Expectation\x20mismatch\x20at\x20','isArray','from','637LrMayb','dbFieldName','16870EVzRWz','Forbidden\x20patch\x20key:\x20','/smartapi/dataset/update-driven-data','findIndex','expect-json','dbType','length','No\x20changes\x20for\x20dataset\x20field\x20','dbtableConfig','tableName','POST','options','datetimeFormat','fields'];a64_0x316b=function(){return _0x13113b;};return a64_0x316b();}function readFieldArray(_0x46bf6e){const _0x4deb5e=a64_0x2ac64e;if(Array[_0x4deb5e(0xb1)](_0x46bf6e[_0x4deb5e(0xc2)]))return _0x46bf6e[_0x4deb5e(0xc2)];if(Array['isArray'](_0x46bf6e[_0x4deb5e(0xac)]))return _0x46bf6e[_0x4deb5e(0xac)];throw CliErrors[_0x4deb5e(0x7d)]('Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]');}function a64_0x3de8(_0x1c8c79,_0x3c6ade){_0x1c8c79=_0x1c8c79-0x7a;const _0x316b10=a64_0x316b();let _0x3de824=_0x316b10[_0x1c8c79];return _0x3de824;}function summarizeDataset(_0x23e477,_0x62eb61){const _0x397288=a64_0x2ac64e,_0x23dfb1=isPlainObject(_0x23e477[_0x397288(0x8c)])?_0x23e477[_0x397288(0x8c)]:{},_0x584740=isPlainObject(_0x23e477[_0x397288(0xbd)])?_0x23e477[_0x397288(0xbd)]:{};return{'id':_0x23e477['modelId']??_0x23e477['id']??_0x23dfb1[_0x397288(0x88)]??null,'code':_0x23e477['modelCode']??_0x23e477[_0x397288(0xc4)]??_0x23dfb1[_0x397288(0x8a)]??_0x62eb61,'name':_0x23e477[_0x397288(0xa0)]??_0x23dfb1['datasetName']??null,'table':_0x584740[_0x397288(0xbe)]??_0x23dfb1[_0x397288(0xbe)]??null,'db':_0x584740['dbName']??_0x584740[_0x397288(0x91)]??null};}function mergePatchValue(_0x52989f,_0x3631f1){if(isPlainObject(_0x52989f)&&isPlainObject(_0x3631f1))return deepMerge(_0x52989f,_0x3631f1);return deepClone(_0x3631f1);}function deepMerge(_0x39c3c7,_0x2dccd3){const _0x3686a1=a64_0x2ac64e,_0x574d19=deepClone(_0x39c3c7);for(const [_0x58dc43,_0x5b0607]of Object[_0x3686a1(0xab)](_0x2dccd3)){_0x574d19[_0x58dc43]=isPlainObject(_0x574d19[_0x58dc43])&&isPlainObject(_0x5b0607)?deepMerge(_0x574d19[_0x58dc43],_0x5b0607):deepClone(_0x5b0607);}return _0x574d19;}function collectChangedPaths(_0x3ee433,_0x5a259f,_0x25651d,_0x1f5fa5){const _0x12524c=a64_0x2ac64e;if(!isPlainObject(_0x5a259f)||!isPlainObject(_0x25651d))return;const _0x5aade5=new Set([...Object[_0x12524c(0x87)](_0x5a259f),...Object[_0x12524c(0x87)](_0x25651d)]);for(const _0x4fadd0 of _0x5aade5){const _0x4d162f=_0x5a259f[_0x4fadd0],_0x177889=_0x25651d[_0x4fadd0];!deepEqual(_0x4d162f,_0x177889)&&_0x1f5fa5['add'](_0x3ee433+'.'+_0x4fadd0);}}function deepClone(_0x239d2a){if(_0x239d2a===undefined)return _0x239d2a;return JSON['parse'](JSON['stringify'](_0x239d2a));}function deepEqual(_0xb48cdb,_0x193194){const _0x340714=a64_0x2ac64e;return JSON[_0x340714(0xc5)](_0xb48cdb)===JSON[_0x340714(0xc5)](_0x193194);}function isPlainObject(_0x63a40a){const _0x4060a5=a64_0x2ac64e;return Boolean(_0x63a40a)&&typeof _0x63a40a===_0x4060a5(0xa5)&&!Array[_0x4060a5(0xb1)](_0x63a40a);}function emptyToUndefined(_0xfeeaaf){const _0x1a2874=String(_0xfeeaaf||'')['trim']();return _0x1a2874||undefined;}function trim(_0xd12614){return String(_0xd12614||'')['trim']();}
|
|
1
|
+
const a65_0x3b583c=a65_0xa2dc;(function(_0x26d4e1,_0x5b3613){const _0x436a24=a65_0xa2dc,_0x595a4a=_0x26d4e1();while(!![]){try{const _0x403f11=-parseInt(_0x436a24(0xd7))/0x1+parseInt(_0x436a24(0xc1))/0x2*(parseInt(_0x436a24(0xe2))/0x3)+parseInt(_0x436a24(0xd6))/0x4+parseInt(_0x436a24(0xbb))/0x5*(parseInt(_0x436a24(0xf4))/0x6)+-parseInt(_0x436a24(0xc5))/0x7+-parseInt(_0x436a24(0xc3))/0x8*(-parseInt(_0x436a24(0xca))/0x9)+-parseInt(_0x436a24(0xf7))/0xa*(parseInt(_0x436a24(0xce))/0xb);if(_0x403f11===_0x5b3613)break;else _0x595a4a['push'](_0x595a4a['shift']());}catch(_0x3ee6d7){_0x595a4a['push'](_0x595a4a['shift']());}}}(a65_0x5613,0x9c653));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const MUTABLE_FIELD_KEYS=new Set([a65_0x3b583c(0xd0),'displayName',a65_0x3b583c(0xe6),'options',a65_0x3b583c(0xdb),'datetimeFormat','defaultAggregation',a65_0x3b583c(0xb3),a65_0x3b583c(0xc0)]),FORBIDDEN_FIELD_KEYS=new Set(['id','name',a65_0x3b583c(0xe5),a65_0x3b583c(0xe4),a65_0x3b583c(0xbd),'dbTypeScale',a65_0x3b583c(0xdf),'tableName','deleted',a65_0x3b583c(0xcb),'autoIncrement','systemRetain']);export function parseJsonObjectFlag(_0x5ec6f4,_0x5262cf){const _0x274667=a65_0x3b583c;if(!_0x5ec6f4)return undefined;let _0x4247b2;try{_0x4247b2=JSON['parse'](_0x5ec6f4);}catch(_0xd8fa4e){const _0x2d26c3=_0xd8fa4e instanceof Error?_0xd8fa4e[_0x274667(0xf8)]:String(_0xd8fa4e);throw CliErrors[_0x274667(0xf9)](_0x5262cf+_0x274667(0xde)+_0x2d26c3);}if(!isPlainObject(_0x4247b2)||Array[_0x274667(0xc4)](_0x4247b2))throw CliErrors[_0x274667(0xf9)](_0x5262cf+_0x274667(0xf5));return _0x4247b2;}export function validatePatchKeys(_0x55b868){const _0x1e4f23=a65_0x3b583c,_0x4e6411=Object['keys'](_0x55b868);if(_0x4e6411[_0x1e4f23(0xeb)]===0x0)throw CliErrors[_0x1e4f23(0xf9)](_0x1e4f23(0xc8));for(const _0x572f39 of _0x4e6411){if(FORBIDDEN_FIELD_KEYS[_0x1e4f23(0xf6)](_0x572f39))throw CliErrors[_0x1e4f23(0xf9)](_0x1e4f23(0xfa)+_0x572f39);if(!MUTABLE_FIELD_KEYS['has'](_0x572f39))throw CliErrors[_0x1e4f23(0xf9)]('Unsupported\x20patch\x20key:\x20'+_0x572f39,_0x1e4f23(0xb1)+Array[_0x1e4f23(0xcd)](MUTABLE_FIELD_KEYS)['join'](',\x20'));}}export function applyFieldPatch(_0x509ae1,_0x12258d){const _0x4bbe69=a65_0x3b583c;validatePatchKeys(_0x12258d);const _0x3aa827=deepClone(_0x509ae1),_0x19b188=new Set();for(const [_0x22cd16,_0x2ed827]of Object[_0x4bbe69(0xb4)](_0x12258d)){const _0x570051=_0x3aa827[_0x22cd16],_0x8f6400=mergePatchValue(_0x570051,_0x2ed827);!deepEqual(_0x570051,_0x8f6400)&&(_0x3aa827[_0x22cd16]=_0x8f6400,_0x19b188[_0x4bbe69(0xc6)](_0x22cd16),collectChangedPaths(_0x22cd16,_0x570051,_0x8f6400,_0x19b188));}return{'after':_0x3aa827,'changedPaths':Array[_0x4bbe69(0xcd)](_0x19b188)[_0x4bbe69(0xe8)](),'changed':_0x19b188[_0x4bbe69(0xec)]>0x0};}export function assertExpectation(_0x4321ef,_0x3cca8b){const _0x207aa5=a65_0x3b583c;if(!_0x3cca8b)return;for(const [_0x9f95f2,_0x1401c1]of Object['entries'](_0x3cca8b)){const _0x532443=_0x4321ef[_0x9f95f2];if(!deepEqual(_0x532443,_0x1401c1))throw CliErrors[_0x207aa5(0xf9)](_0x207aa5(0xd3)+_0x9f95f2,_0x207aa5(0xf1)+JSON['stringify'](_0x1401c1)+_0x207aa5(0xf2)+JSON['stringify'](_0x532443));}}export async function buildDatasetFieldUpdateResult({appCode:_0x5afd9e,input:_0x6d0a65,dryRun:_0x59a645}){const _0xd95763=a65_0x3b583c;validateInput(_0x6d0a65);const _0x4ead54=await getDatasetDetail(_0x6d0a65[_0xd95763(0xe5)]),_0x2a5a3c=readFieldArray(_0x4ead54),_0x46fa89=_0x2a5a3c['findIndex'](_0x426f08=>_0x426f08?.[_0xd95763(0xe0)]===_0x6d0a65['field']);if(_0x46fa89<0x0)throw CliErrors[_0xd95763(0xf9)](_0xd95763(0xd1)+_0x6d0a65[_0xd95763(0xea)]);const _0x180aba=deepClone(_0x2a5a3c[_0x46fa89]);assertExpectation(_0x180aba,_0x6d0a65[_0xd95763(0xda)]);const {after:_0x2356eb,changedPaths:_0x51f89a,changed:_0x515dc8}=applyFieldPatch(_0x180aba,_0x6d0a65[_0xd95763(0xe7)]),_0x5aaae9=summarizeDataset(_0x4ead54,_0x6d0a65[_0xd95763(0xe5)]);return _0x515dc8&&!_0x59a645&&(_0x2a5a3c[_0x46fa89]=_0x2356eb,await updateDrivenData(_0x4ead54)),{'ok':!![],'data':{'appCode':_0x5afd9e,'selector':{'code':_0x6d0a65['code']},'dataset':_0x5aaae9,'field':{'id':_0x180aba['id']??null,'name':_0x180aba['name']},'dryRun':_0x59a645,'changed':_0x515dc8,'changedPaths':_0x51f89a,'before':_0x180aba,'after':_0x2356eb,'submitted':_0x515dc8&&!_0x59a645},'message':_0x515dc8?_0x59a645?_0xd95763(0xc9)+_0x6d0a65['field']+_0xd95763(0xd9)+_0x51f89a[_0xd95763(0xef)](',\x20')+')':'Updated\x20dataset\x20field\x20'+_0x6d0a65['field']+'\x20('+_0x51f89a['join'](',\x20')+')':_0xd95763(0xcc)+_0x6d0a65[_0xd95763(0xea)]};}export const datasetFieldUpdate={'service':a65_0x3b583c(0xe1),'command':a65_0x3b583c(0xb9),'description':a65_0x3b583c(0xc7),'risk':'write','flags':[CODE_FLAG,{'name':'field','type':a65_0x3b583c(0xb8),'required':!![],'description':a65_0x3b583c(0xed)},{'name':a65_0x3b583c(0xf0),'type':a65_0x3b583c(0xb8),'required':!![],'description':a65_0x3b583c(0xf3)},{'name':a65_0x3b583c(0xbc),'type':'string','required':![],'description':'JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4e6c48){validateInput(readFieldUpdateInput(_0x4e6c48));},async 'dryRun'(_0x42836c){const _0x457a5b=a65_0x3b583c,_0x58e556=await buildDatasetFieldUpdateResult({'appCode':_0x42836c[_0x457a5b(0xd8)],'input':readFieldUpdateInput(_0x42836c),'dryRun':!![]});return{'method':'POST','url':'/smartapi/dataset/update-driven-data','body':_0x58e556[_0x457a5b(0xbe)],'description':_0x58e556['message']};},async 'execute'(_0x19dbcd){const _0x2ae8d7=a65_0x3b583c;return buildDatasetFieldUpdateResult({'appCode':_0x19dbcd[_0x2ae8d7(0xd8)],'input':readFieldUpdateInput(_0x19dbcd),'dryRun':![]});}};function readFieldUpdateInput(_0x122b2c){const _0x29f5f7=a65_0x3b583c,_0x3ff380=trim(_0x122b2c[_0x29f5f7(0xfb)](_0x29f5f7(0xe5))),_0x385b59=emptyToUndefined(_0x122b2c['str'](_0x29f5f7(0xea))),_0x17ec6e=parseJsonObjectFlag(_0x122b2c[_0x29f5f7(0xfb)](_0x29f5f7(0xf0)),'--patch-json'),_0x19e170=parseJsonObjectFlag(_0x122b2c[_0x29f5f7(0xfb)]('expect-json'),'--expect-json');return{'code':_0x3ff380,'field':_0x385b59||'','patch':_0x17ec6e||{},'expect':_0x19e170};}function validateInput(_0x31feea){const _0x9ee3cb=a65_0x3b583c;if(!_0x31feea[_0x9ee3cb(0xe5)])throw CliErrors[_0x9ee3cb(0xf9)](_0x9ee3cb(0xd2));if(!_0x31feea['field'])throw CliErrors[_0x9ee3cb(0xf9)](_0x9ee3cb(0xdc));validatePatchKeys(_0x31feea[_0x9ee3cb(0xe7)]);}function readFieldArray(_0x364ce9){const _0x27e4c8=a65_0x3b583c;if(Array[_0x27e4c8(0xc4)](_0x364ce9[_0x27e4c8(0xd5)]))return _0x364ce9['fields'];if(Array[_0x27e4c8(0xc4)](_0x364ce9[_0x27e4c8(0xbf)]))return _0x364ce9[_0x27e4c8(0xbf)];throw CliErrors[_0x27e4c8(0xf9)](_0x27e4c8(0xe9));}function summarizeDataset(_0x407a09,_0x32d7ec){const _0x2093b5=a65_0x3b583c,_0x188de8=isPlainObject(_0x407a09[_0x2093b5(0xe1)])?_0x407a09[_0x2093b5(0xe1)]:{},_0x63946f=isPlainObject(_0x407a09[_0x2093b5(0xcf)])?_0x407a09[_0x2093b5(0xcf)]:{};return{'id':_0x407a09[_0x2093b5(0xdd)]??_0x407a09['id']??_0x188de8[_0x2093b5(0xb7)]??null,'code':_0x407a09['modelCode']??_0x407a09['code']??_0x188de8[_0x2093b5(0xd4)]??_0x32d7ec,'name':_0x407a09[_0x2093b5(0xe0)]??_0x188de8[_0x2093b5(0xb2)]??null,'table':_0x63946f[_0x2093b5(0xb5)]??_0x188de8[_0x2093b5(0xb5)]??null,'db':_0x63946f[_0x2093b5(0xee)]??_0x63946f['dbId']??null};}function mergePatchValue(_0x1528ca,_0x3dbca7){if(isPlainObject(_0x1528ca)&&isPlainObject(_0x3dbca7))return deepMerge(_0x1528ca,_0x3dbca7);return deepClone(_0x3dbca7);}function deepMerge(_0x310a98,_0x19973e){const _0x326350=deepClone(_0x310a98);for(const [_0x12b34b,_0x4b8043]of Object['entries'](_0x19973e)){_0x326350[_0x12b34b]=isPlainObject(_0x326350[_0x12b34b])&&isPlainObject(_0x4b8043)?deepMerge(_0x326350[_0x12b34b],_0x4b8043):deepClone(_0x4b8043);}return _0x326350;}function collectChangedPaths(_0x1d7f35,_0x47677e,_0x4a456e,_0x4f6770){const _0x98331c=a65_0x3b583c;if(!isPlainObject(_0x47677e)||!isPlainObject(_0x4a456e))return;const _0x2115c3=new Set([...Object[_0x98331c(0xc2)](_0x47677e),...Object[_0x98331c(0xc2)](_0x4a456e)]);for(const _0x4a5ca6 of _0x2115c3){const _0x49110d=_0x47677e[_0x4a5ca6],_0x2d8026=_0x4a456e[_0x4a5ca6];!deepEqual(_0x49110d,_0x2d8026)&&_0x4f6770[_0x98331c(0xc6)](_0x1d7f35+'.'+_0x4a5ca6);}}function deepClone(_0x225e8b){const _0x4315b6=a65_0x3b583c;if(_0x225e8b===undefined)return _0x225e8b;return JSON[_0x4315b6(0xba)](JSON[_0x4315b6(0xb6)](_0x225e8b));}function deepEqual(_0x5447a6,_0xa5682c){const _0x5c4313=a65_0x3b583c;return JSON[_0x5c4313(0xb6)](_0x5447a6)===JSON[_0x5c4313(0xb6)](_0xa5682c);}function isPlainObject(_0x331765){const _0x1673bf=a65_0x3b583c;return Boolean(_0x331765)&&typeof _0x331765==='object'&&!Array[_0x1673bf(0xc4)](_0x331765);}function a65_0x5613(){const _0x55d03d=['\x20would\x20change\x20(','expect','required','--field\x20is\x20required','modelId','\x20must\x20be\x20valid\x20JSON\x20object:\x20','dbFieldName','name','dataset','2757HgjbLy','trim','dbType','code','description','patch','sort','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','field','length','size','Exact\x20raw\x20fields[].name\x20to\x20patch','dbName','join','patch-json','Expected\x20',',\x20actual\x20','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','6844902WMOPWE','\x20must\x20be\x20a\x20JSON\x20object','has','14930710VUgILU','message','validation','Forbidden\x20patch\x20key:\x20','str','Allowed\x20keys:\x20','datasetName','chartRole','entries','tableName','stringify','datasetId','string','field-update','parse','5maxSaC','expect-json','dbTypeLen','data','properties','deprecated','2742qbqXUd','keys','16hQCKtG','isArray','1830934HJkISY','add','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','Dry-run:\x20dataset\x20field\x20','2584566SsEYpU','pkField','No\x20changes\x20for\x20dataset\x20field\x20','from','11ACOyNR','dbtableConfig','doType','Field\x20not\x20found:\x20','--code\x20is\x20required','Expectation\x20mismatch\x20at\x20','datasetCode','fields','1874880OKTZKz','1048606mTvzXu','appCode'];a65_0x5613=function(){return _0x55d03d;};return a65_0x5613();}function emptyToUndefined(_0x2e7060){const _0x467761=a65_0x3b583c,_0x4cb318=String(_0x2e7060||'')[_0x467761(0xe3)]();return _0x4cb318||undefined;}function a65_0xa2dc(_0x502429,_0x445fe0){_0x502429=_0x502429-0xb1;const _0x561349=a65_0x5613();let _0xa2dcfe=_0x561349[_0x502429];return _0xa2dcfe;}function trim(_0x5bd9cc){const _0x1b6851=a65_0x3b583c;return String(_0x5bd9cc||'')[_0x1b6851(0xe3)]();}
|