@lovrabet/rabetbase-cli 2.3.2-beta.1 → 2.3.3-beta.1
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/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.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-selector.js +1 -1
- package/lib/commands/common/flags.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 -0
- 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/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/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/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/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/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/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/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/workspace/index.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-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/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
|
-
|
|
1
|
+
(function(_0x431e5d,_0x389ff0){const _0x41bb56=a49_0x2acf,_0x2daf9b=_0x431e5d();while(!![]){try{const _0x3e8f51=-parseInt(_0x41bb56(0x72))/0x1+parseInt(_0x41bb56(0x6c))/0x2*(-parseInt(_0x41bb56(0x6b))/0x3)+parseInt(_0x41bb56(0x6f))/0x4+parseInt(_0x41bb56(0x6d))/0x5+parseInt(_0x41bb56(0x6e))/0x6*(parseInt(_0x41bb56(0x71))/0x7)+-parseInt(_0x41bb56(0x74))/0x8+-parseInt(_0x41bb56(0x70))/0x9*(-parseInt(_0x41bb56(0x73))/0xa);if(_0x3e8f51===_0x389ff0)break;else _0x2daf9b['push'](_0x2daf9b['shift']());}catch(_0x4b4fa5){_0x2daf9b['push'](_0x2daf9b['shift']());}}}(a49_0x5e75,0x1b21c));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a49_0x5e75(){const _0x2cffee=['87576AamDLR','3193983nHzkFh','7210zTavDs','144081zsBxsq','10LCvoJU','1123040iqqZLG','458967TQyPKQ','2ijeqcz','122555jsEpbf','858PvdAEC'];a49_0x5e75=function(){return _0x2cffee;};return a49_0x5e75();}function a49_0x2acf(_0x41a90a,_0x11995d){_0x41a90a=_0x41a90a-0x6b;const _0x5e7554=a49_0x5e75();let _0x2acf90=_0x5e7554[_0x41a90a];return _0x2acf90;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50_0x18052=a50_0x37cc;(function(_0x3265d9,_0x4f93aa){const _0x2bf551=a50_0x37cc,_0xb7e4b6=_0x3265d9();while(!![]){try{const _0x5e65fe=-parseInt(_0x2bf551(0xa7))/0x1*(-parseInt(_0x2bf551(0x9e))/0x2)+-parseInt(_0x2bf551(0xa4))/0x3*(parseInt(_0x2bf551(0xab))/0x4)+-parseInt(_0x2bf551(0xac))/0x5+-parseInt(_0x2bf551(0xa9))/0x6+-parseInt(_0x2bf551(0xa2))/0x7+parseInt(_0x2bf551(0xa6))/0x8*(-parseInt(_0x2bf551(0x9f))/0x9)+parseInt(_0x2bf551(0xa1))/0xa;if(_0x5e65fe===_0x4f93aa)break;else _0xb7e4b6['push'](_0xb7e4b6['shift']());}catch(_0x5979da){_0xb7e4b6['push'](_0xb7e4b6['shift']());}}}(a50_0xb19a,0x299d7));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x417323){const _0x19c459=a50_0x37cc,_0x5d7b15=_0x417323[_0x19c459(0xa8)](_0x19c459(0xa0))?readScopedConfig(_0x19c459(0xa0)):readConfig();return{'ok':!![],'data':_0x5d7b15};}function a50_0x37cc(_0x50c212,_0xccca68){_0x50c212=_0x50c212-0x9e;const _0xb19ae2=a50_0xb19a();let _0x37ccd3=_0xb19ae2[_0x50c212];return _0x37ccd3;}export const configListDefinition={'service':a50_0x18052(0xa5),'command':a50_0x18052(0xaa),'description':a50_0x18052(0xa3),'risk':a50_0x18052(0xad),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x18052(0xa0),'type':'boolean','description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a50_0xb19a(){const _0x4a78f1=['2625384NlgQzl','287917mZIeFw','bool','126942HXNKZv','list','1852PQjwNI','19570XbPuYy','read','2rtGhso','9jnLfXD','global','6561920LBiBQp','2207163PwQNlP','List\x20all\x20config\x20values','681sQwWKR','config'];a50_0xb19a=function(){return _0x4a78f1;};return a50_0xb19a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a51_0x5dab(_0x4b7a5a,_0x23d9ba){_0x4b7a5a=_0x4b7a5a-0x142;const _0x39cb74=a51_0x39cb();let _0x5dab2e=_0x39cb74[_0x4b7a5a];return _0x5dab2e;}function a51_0x39cb(){const _0x1487b6=['Missing\x20value.','app','Top-level\x20key\x20\x22','value','global','appcode','env','bool','write','`,\x20`','length','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','3859178czPkYb','8932743sChwZA','boolean','\x22.\x20Allowed:\x20','join','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','set','Invalid\x20value\x20for\x20\x22','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','27219467fAMlrq','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','config','Global','18NZrBmR','28OEWXuh','includes','150990akkDlS','validation','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','keys','apps','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','object','Invalid\x20locale\x20value.','key','riskLevel','3679680lmSuVE','Missing\x20key.','locale','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','string','17469tbOePH','Usage:\x20','str','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Settable\x20top-level\x20keys:\x20','592pcBzKi','10RJflsb','Project','1179654BIQYeh','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.'];a51_0x39cb=function(){return _0x1487b6;};return a51_0x39cb();}const a51_0x3bb970=a51_0x5dab;(function(_0x464e59,_0x4ce746){const _0x9538ec=a51_0x5dab,_0x36b35a=_0x464e59();while(!![]){try{const _0x24e89a=-parseInt(_0x9538ec(0x161))/0x1+-parseInt(_0x9538ec(0x16f))/0x2+parseInt(_0x9538ec(0x159))/0x3*(parseInt(_0x9538ec(0x15e))/0x4)+parseInt(_0x9538ec(0x14a))/0x5*(-parseInt(_0x9538ec(0x147))/0x6)+-parseInt(_0x9538ec(0x148))/0x7*(-parseInt(_0x9538ec(0x154))/0x8)+parseInt(_0x9538ec(0x170))/0x9*(-parseInt(_0x9538ec(0x15f))/0xa)+parseInt(_0x9538ec(0x143))/0xb;if(_0x24e89a===_0x4ce746)break;else _0x36b35a['push'](_0x36b35a['shift']());}catch(_0x287eb6){_0x36b35a['push'](_0x36b35a['shift']());}}}(a51_0x39cb,0xf02e1));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x5bf14d){const _0x546627=a51_0x5dab,_0x20cb77=_0x5bf14d[_0x546627(0x15b)](_0x546627(0x152)),_0x1e4ae2=_0x5bf14d[_0x546627(0x15b)]('value');if(!_0x20cb77)throw CliErrors[_0x546627(0x14b)](_0x546627(0x155),_0x546627(0x15a)+CLI_BIN_NAME+_0x546627(0x142));if(_0x1e4ae2===undefined||_0x1e4ae2==='')throw CliErrors[_0x546627(0x14b)](_0x546627(0x163),'Usage:\x20'+CLI_BIN_NAME+_0x546627(0x142));if(_0x1e4ae2[_0x546627(0x16d)]>0x1f4)throw CliErrors['validation'](_0x546627(0x15c));if(!isTopLevelConfigKey(_0x20cb77))throw CliErrors[_0x546627(0x14b)](_0x546627(0x165)+_0x20cb77+'\x22\x20is\x20not\x20settable.',_0x546627(0x15d)+getTopLevelConfigKeySummary());if(_0x20cb77===_0x546627(0x153))throw CliErrors[_0x546627(0x14b)](_0x546627(0x16e));if(CONFIG_ENUM_VALUES[_0x20cb77]&&!CONFIG_ENUM_VALUES[_0x20cb77][_0x546627(0x149)](_0x1e4ae2))throw CliErrors['validation'](_0x546627(0x176)+_0x20cb77+_0x546627(0x172)+CONFIG_ENUM_VALUES[_0x20cb77][_0x546627(0x173)](',\x20'));if(_0x20cb77===_0x546627(0x156)&&!normalizeLocale(_0x1e4ae2))throw CliErrors[_0x546627(0x14b)](_0x546627(0x151),_0x546627(0x14c));const _0x124f4a={'global':_0x5bf14d[_0x546627(0x16a)](_0x546627(0x167))},_0x37ed79=resolveWriteScope(_0x124f4a),_0x2e6993=readScopedConfig(_0x37ed79);let _0x11448e=_0x20cb77,_0x188268=_0x1e4ae2;_0x20cb77===_0x546627(0x164)&&(_0x11448e=_0x546627(0x168),delete _0x2e6993[_0x546627(0x164)]);_0x20cb77==='locale'&&(_0x188268=normalizeLocale(_0x1e4ae2));if(_0x20cb77===_0x546627(0x169)){_0x188268=normalizeEnv(_0x1e4ae2);if(!isProduction(_0x188268)&&!isDaily(_0x188268))throw CliErrors[_0x546627(0x14b)](_0x546627(0x174),_0x546627(0x144));}if(_0x20cb77===_0x546627(0x168)){const _0x1145fb=_0x2e6993[_0x546627(0x14e)]&&typeof _0x2e6993['apps']===_0x546627(0x150)?Object[_0x546627(0x14d)](_0x2e6993[_0x546627(0x14e)]):[];if(_0x1145fb[_0x546627(0x16d)]>0x0)throw CliErrors['validation'](_0x546627(0x162),'Use\x20`'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x188268+_0x546627(0x16c)+CLI_BIN_NAME+_0x546627(0x157));const _0x5a1ff8=buildCanonicalProjectConfig({..._0x2e6993},{'appCodes':[_0x188268],'env':typeof _0x2e6993[_0x546627(0x169)]===_0x546627(0x158)?_0x2e6993[_0x546627(0x169)]:undefined});writeScopedConfig(_0x5a1ff8,_0x37ed79);const _0x24fc1d=_0x37ed79===_0x546627(0x167)?_0x546627(0x146):_0x546627(0x160);return{'ok':!![],'message':'✓\x20'+_0x24fc1d+'\x20appcode\x20set\x20to:\x20'+_0x188268+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x2e6993[_0x11448e]=_0x188268,writeScopedConfig(_0x2e6993,_0x37ed79);const _0x17284d=_0x37ed79===_0x546627(0x167)?_0x546627(0x146):_0x546627(0x160);return{'ok':!![],'message':'✓\x20'+_0x17284d+'\x20'+_0x11448e+'\x20set\x20to:\x20'+_0x188268};}export const configSetDefinition={'service':a51_0x3bb970(0x145),'command':a51_0x3bb970(0x175),'description':'Set\x20a\x20config\x20value','risk':a51_0x3bb970(0x16b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a51_0x3bb970(0x152),'type':a51_0x3bb970(0x158),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a51_0x3bb970(0x166),'type':'string','description':'Config\x20value','required':!![]},{'name':a51_0x3bb970(0x167),'type':a51_0x3bb970(0x171),'description':a51_0x3bb970(0x14f),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f5530,_0x3ae1ef){var _0x4c0de9=a52_0x257b,_0x1a4dee=_0x3f5530();while(!![]){try{var _0x335467=-parseInt(_0x4c0de9(0x95))/0x1+-parseInt(_0x4c0de9(0x92))/0x2+parseInt(_0x4c0de9(0x91))/0x3*(-parseInt(_0x4c0de9(0x98))/0x4)+parseInt(_0x4c0de9(0x90))/0x5*(-parseInt(_0x4c0de9(0x94))/0x6)+parseInt(_0x4c0de9(0x97))/0x7*(-parseInt(_0x4c0de9(0x96))/0x8)+parseInt(_0x4c0de9(0x9a))/0x9+parseInt(_0x4c0de9(0x9d))/0xa*(parseInt(_0x4c0de9(0x99))/0xb);if(_0x335467===_0x3ae1ef)break;else _0x1a4dee['push'](_0x1a4dee['shift']());}catch(_0x1f4289){_0x1a4dee['push'](_0x1a4dee['shift']());}}}(a52_0x140b,0xee35c));function a52_0x257b(_0x42061e,_0x3ff8c2){_0x42061e=_0x42061e-0x90;var _0x140bf3=a52_0x140b();var _0x257b90=_0x140bf3[_0x42061e];return _0x257b90;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';function a52_0x140b(){var _0x4df5a0=['6oCPKDS','15415gScZwJ','161904qCEZzw','84uLCLZE','348rThsLw','2431Fopgta','2160774QvCgPt','global','project','212750XjfDBg','4217025oaWCeG','39387KkUQXR','3444508AytGrZ','\x20init`\x20first.'];a52_0x140b=function(){return _0x4df5a0;};return a52_0x140b();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x319eb8){var _0x5edf0c=a52_0x257b;if(_0x319eb8[_0x5edf0c(0x9b)])return _0x5edf0c(0x9b);if(!isInProject())throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5edf0c(0x93));return _0x5edf0c(0x9c);}export function readScopedConfig(_0x19607e){return readConfigFile(resolveWriteConfigPath(_0x19607e));}export function writeScopedConfig(_0x52b9ea,_0x2a93f8){writeConfigFile(resolveWriteConfigPath(_0x2a93f8),_0x52b9ea);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a53_0x4088(){const _0x4fbaf8=['9704fADRzI','3610110lySWpV','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','join','12XgeEsX','1367982zycrMt','147162dfPWRh','472124qVJIiC','10UiWsgc','3321wtOyyP','147309zwSsvn','651471jLjemm','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','filter','\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}]'];a53_0x4088=function(){return _0x4fbaf8;};return a53_0x4088();}const a53_0x2f5946=a53_0x1ee0;(function(_0x24a3bb,_0x37398f){const _0x368b9d=a53_0x1ee0,_0x1dd36e=_0x24a3bb();while(!![]){try{const _0x409d9d=parseInt(_0x368b9d(0xbc))/0x1+-parseInt(_0x368b9d(0xb8))/0x2+-parseInt(_0x368b9d(0xbb))/0x3*(-parseInt(_0x368b9d(0xb5))/0x4)+parseInt(_0x368b9d(0xb9))/0x5*(parseInt(_0x368b9d(0xb7))/0x6)+-parseInt(_0x368b9d(0xb6))/0x7+-parseInt(_0x368b9d(0xb1))/0x8*(parseInt(_0x368b9d(0xba))/0x9)+parseInt(_0x368b9d(0xb2))/0xa;if(_0x409d9d===_0x37398f)break;else _0x1dd36e['push'](_0x1dd36e['shift']());}catch(_0x541eb6){_0x1dd36e['push'](_0x1dd36e['shift']());}}}(a53_0x4088,0x50820));import{buildDataCommand}from'../../commands/data/shared.js';function a53_0x1ee0(_0x5c4ea1,_0x48d397){_0x5c4ea1=_0x5c4ea1-0xb0;const _0x408816=a53_0x4088();let _0x1ee0c3=_0x408816[_0x5c4ea1];return _0x1ee0c3;}export const dataFilter=buildDataCommand({'command':a53_0x2f5946(0xbe),'operation':a53_0x2f5946(0xbe),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':'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','helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a53_0x2f5946(0xbd),'\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]',a53_0x2f5946(0xb0),a53_0x2f5946(0xb3),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a53_0x2f5946(0xb4)]('\x0a')});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x2c6dbe=a54_0x29e1;(function(_0x1cbde7,_0x1881c0){const _0x461539=a54_0x29e1,_0x33f5e7=_0x1cbde7();while(!![]){try{const _0x224a2c=parseInt(_0x461539(0x108))/0x1*(-parseInt(_0x461539(0x10c))/0x2)+-parseInt(_0x461539(0x116))/0x3+parseInt(_0x461539(0x115))/0x4*(parseInt(_0x461539(0x10f))/0x5)+-parseInt(_0x461539(0x10d))/0x6*(parseInt(_0x461539(0x109))/0x7)+-parseInt(_0x461539(0x10a))/0x8*(-parseInt(_0x461539(0x112))/0x9)+-parseInt(_0x461539(0x111))/0xa+parseInt(_0x461539(0x113))/0xb*(parseInt(_0x461539(0x110))/0xc);if(_0x224a2c===_0x1881c0)break;else _0x33f5e7['push'](_0x33f5e7['shift']());}catch(_0x28892c){_0x33f5e7['push'](_0x33f5e7['shift']());}}}(a54_0xb352,0x4d59e));function a54_0x29e1(_0x1dda47,_0x5c56d1){_0x1dda47=_0x1dda47-0x108;const _0xb352fc=a54_0xb352();let _0x29e15f=_0xb352fc[_0x1dda47];return _0x29e15f;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a54_0x2c6dbe(0x10b),'operation':'getOne','description':a54_0x2c6dbe(0x10e),'paramsRequired':!![],'paramsHint':a54_0x2c6dbe(0x114)});function a54_0xb352(){const _0x324adc=['5056172JqCTtc','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','303708GxuUaO','1245627JaRRuS','2822ZCPQFl','7HEmxJq','51400OgIpwT','getOne','382dlsAKC','1870122wJMFss','Get\x20a\x20single\x20record\x20by\x20ID','35jeTFew','36jwgHzh','5525920nDdNuC','315wVtXou'];a54_0xb352=function(){return _0x324adc;};return a54_0xb352();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55_0x4628(_0x445448,_0x57ab61){_0x445448=_0x445448-0x1e9;const _0xb8cac7=a55_0xb8ca();let _0x4628f6=_0xb8cac7[_0x445448];return _0x4628f6;}(function(_0x2b8ed9,_0x3a4432){const _0x4782a5=a55_0x4628,_0x19f5ca=_0x2b8ed9();while(!![]){try{const _0xf1d1d9=parseInt(_0x4782a5(0x1f3))/0x1*(-parseInt(_0x4782a5(0x1f6))/0x2)+-parseInt(_0x4782a5(0x1f2))/0x3*(-parseInt(_0x4782a5(0x1ea))/0x4)+parseInt(_0x4782a5(0x1f5))/0x5*(parseInt(_0x4782a5(0x1eb))/0x6)+-parseInt(_0x4782a5(0x1ed))/0x7*(-parseInt(_0x4782a5(0x1e9))/0x8)+parseInt(_0x4782a5(0x1f4))/0x9*(-parseInt(_0x4782a5(0x1f0))/0xa)+-parseInt(_0x4782a5(0x1f1))/0xb*(-parseInt(_0x4782a5(0x1ec))/0xc)+parseInt(_0x4782a5(0x1ee))/0xd*(-parseInt(_0x4782a5(0x1ef))/0xe);if(_0xf1d1d9===_0x3a4432)break;else _0x19f5ca['push'](_0x19f5ca['shift']());}catch(_0x154b34){_0x19f5ca['push'](_0x19f5ca['shift']());}}}(a55_0xb8ca,0x3c6a9));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a55_0xb8ca(){const _0x25b41a=['29IOFhGV','353421WvVCEW','75OsKxPL','14742XTLNvf','56ktPVZd','60BxlMZm','87918eXoyZW','17580ggTRkb','419706DrtgaD','1378Tipaqc','38402GNPPcm','110DGafvT','627ZemhQF','92187jDXXCc'];a55_0xb8ca=function(){return _0x25b41a;};return a55_0xb8ca();}export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x569b81,_0x136121){const _0x173381=a56_0x31c6,_0x43fcf8=_0x569b81();while(!![]){try{const _0x1dc337=-parseInt(_0x173381(0x195))/0x1*(-parseInt(_0x173381(0x18d))/0x2)+-parseInt(_0x173381(0x194))/0x3+-parseInt(_0x173381(0x190))/0x4+-parseInt(_0x173381(0x19d))/0x5*(parseInt(_0x173381(0x19e))/0x6)+parseInt(_0x173381(0x1a1))/0x7*(parseInt(_0x173381(0x189))/0x8)+-parseInt(_0x173381(0x19c))/0x9*(-parseInt(_0x173381(0x196))/0xa)+-parseInt(_0x173381(0x19f))/0xb;if(_0x1dc337===_0x136121)break;else _0x43fcf8['push'](_0x43fcf8['shift']());}catch(_0x3df813){_0x43fcf8['push'](_0x43fcf8['shift']());}}}(a56_0x57f2,0x82395));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x47c67a){const _0x321812=a56_0x31c6;if(!_0x47c67a)throw CliErrors[_0x321812(0x18b)]('params',_0x321812(0x184));const _0x2abc43=_0x47c67a['id'];if(_0x2abc43===undefined||_0x2abc43===null||_0x2abc43==='')throw CliErrors[_0x321812(0x192)](_0x321812(0x193),_0x321812(0x182));}function parseCommandParams(_0x4cd296){return parseJsonParams(_0x4cd296)??{};}function a56_0x31c6(_0x558746,_0x270519){_0x558746=_0x558746-0x182;const _0x57f290=a56_0x57f2();let _0x31c6a1=_0x57f290[_0x558746];return _0x31c6a1;}export function buildDataCommand(_0x1e38e5){const _0x54923d=a56_0x31c6,_0x3e60e4=_0x54923d(0x197);return{'service':_0x54923d(0x1a0),'command':_0x1e38e5[_0x54923d(0x191)],'description':_0x1e38e5[_0x54923d(0x198)],'risk':_0x54923d(0x199),'defaultOutputFormat':_0x54923d(0x19b),'helpExtra':_0x1e38e5['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':_0x3e60e4},{'name':_0x54923d(0x18a),'type':_0x54923d(0x183),'description':_0x1e38e5['paramsHint']}],async 'validate'(_0x4261b5){const _0x114b49=_0x54923d,_0x5ca776=_0x4261b5[_0x114b49(0x19a)](_0x114b49(0x18a));if(_0x1e38e5[_0x114b49(0x185)]&&!_0x5ca776)throw CliErrors['flagMissing'](_0x114b49(0x18a),_0x1e38e5[_0x114b49(0x18c)]);const _0x337643=parseJsonParams(_0x5ca776);_0x1e38e5[_0x114b49(0x187)]===_0x114b49(0x18f)&&assertGetOneId(_0x337643);},async 'execute'(_0x44777e){const _0x4514c5=_0x54923d,_0x106dd7=parseCommandParams(_0x44777e[_0x4514c5(0x19a)](_0x4514c5(0x18a))),_0x159ebf=Date[_0x4514c5(0x18e)](),_0x52b521=await executeDatasetDataOperation(_0x44777e['appCode'],_0x44777e['str']('code'),_0x1e38e5[_0x4514c5(0x187)],_0x106dd7),_0x3f36ef=Date[_0x4514c5(0x18e)]()-_0x159ebf;return{'ok':!![],'data':{'result':_0x52b521,'elapsed':_0x3f36ef},'message':_0x4514c5(0x188)+_0x1e38e5[_0x4514c5(0x191)]+_0x4514c5(0x186)+_0x3f36ef+'ms'};}};}function a56_0x57f2(){const _0x192d9e=['compress','921888dliMuI','5uPMZTs','2318424WAOjRB','295218KZDtRN','data','6281443nbUSQx','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','string','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','paramsRequired','\x20completed\x20in\x20','operation','data\x20','8wBKmyx','params','flagMissing','paramsHint','100mNvVui','now','getOne','1253356RNAFyk','command','validation','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','2552589vBYBYw','11978ddBtgs','60tlZAhm','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','description','read','str'];a56_0x57f2=function(){return _0x192d9e;};return a56_0x57f2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x410cb1=a57_0xb74b;(function(_0x2943ac,_0x2a6647){const _0x43b1bd=a57_0xb74b,_0x3b5917=_0x2943ac();while(!![]){try{const _0x383a17=parseInt(_0x43b1bd(0x20d))/0x1+-parseInt(_0x43b1bd(0x217))/0x2+-parseInt(_0x43b1bd(0x218))/0x3*(parseInt(_0x43b1bd(0x231))/0x4)+-parseInt(_0x43b1bd(0x21b))/0x5*(-parseInt(_0x43b1bd(0x232))/0x6)+-parseInt(_0x43b1bd(0x1f7))/0x7*(parseInt(_0x43b1bd(0x206))/0x8)+parseInt(_0x43b1bd(0x203))/0x9+-parseInt(_0x43b1bd(0x204))/0xa*(parseInt(_0x43b1bd(0x1f3))/0xb);if(_0x383a17===_0x2a6647)break;else _0x3b5917['push'](_0x3b5917['shift']());}catch(_0x420a80){_0x3b5917['push'](_0x3b5917['shift']());}}}(a57_0x340d,0xc7a86));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a57_0x340d(){const _0x39b221=['20FidCvR','businessGroup','5624GoAcSu','isArray','sourceType','--business-group\x20is\x20required','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','toUpperCase','Expectation\x20mismatch\x20at\x20businessGroup','1464671LlbnoP','Business\x20model\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','value','Updated\x20business\x20model\x20group\x20for\x20dataset\x20','datasetName','dataset','METADATA','prototype','dbtableConfig','Update\x20business\x20model\x20group','505218hVoMHJ','1766241ZJfHbi','str','keys','6265495IMObgJ','extend','expectBusinessGroup','isFinite','New\x20business\x20model\x20group\x20value;\x20empty\x20string\x20clears\x20it','expect-business-group','business-group-update','Expected\x20','trim','datasetCode','POST','code','backend','update','object','appCode','message','found',',\x20actual\x20','data','modelCode','name','4AImjUX','6lUBviN','matched','source','5978819jFlPxn','datasetId','validation','number','4949nJwrni','Business\x20model\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','DB_TABLE','Expected\x20current\x20business\x20model\x20group;\x20mismatch\x20aborts\x20without\x20writing','length','apiError','string','--code\x20is\x20required','write','stringify','business-group','No\x20changes\x20for\x20business\x20model\x20group\x20on\x20dataset\x20','4729167cseuAo'];a57_0x340d=function(){return _0x39b221;};return a57_0x340d();}const BACKEND_PATH='/smartapi/question/er-config/business-group/edit';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x300d31,input:_0x458377,dryRun:_0x4993e7}){const _0x485564=a57_0xb74b;validateInput(_0x458377);const _0x198d02=normalizeBusinessGroup(_0x458377[_0x485564(0x205)]),_0x3833dc=await getDatasetDetail(_0x458377[_0x485564(0x226)]),_0x394b60=resolveBusinessGroupDataset(_0x3833dc,_0x458377[_0x485564(0x226)]),_0x5f03a0=loadCurrentBusinessGroup(_0x3833dc,_0x394b60);assertExpectedBusinessGroup(_0x5f03a0,_0x458377[_0x485564(0x21d)]);const _0x2b2cea=buildBackendPayload(_0x300d31,_0x394b60,_0x198d02),_0x26a45e=_0x5f03a0!==_0x198d02;let _0x3e7737;if(_0x26a45e&&!_0x4993e7){await updateErBusinessGroup(_0x2b2cea);const _0x291ecd=await getDatasetDetail(_0x394b60[_0x485564(0x226)]),_0x2c9f9b=resolveBusinessGroupDataset(_0x291ecd,_0x394b60[_0x485564(0x226)]),_0xd13c60=loadCurrentBusinessGroup(_0x291ecd,_0x2c9f9b);if(_0xd13c60!==_0x198d02)throw CliErrors[_0x485564(0x1fc)](_0x485564(0x1f8),_0x485564(0x222)+JSON[_0x485564(0x200)](_0x198d02)+_0x485564(0x22d)+JSON[_0x485564(0x200)](_0xd13c60)+'.');_0x3e7737={'verified':!![],'status':_0x485564(0x233),'afterReadback':{'businessGroup':_0xd13c60}};}else!_0x26a45e&&(_0x3e7737={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':_0x5f03a0}});const _0x45a139={'operation':_0x485564(0x228),'appCode':_0x300d31,'selector':{'code':_0x394b60[_0x485564(0x226)]},'dataset':_0x394b60,'before':{'businessGroup':_0x5f03a0},'after':{'businessGroup':_0x198d02},'changed':_0x26a45e,'dryRun':_0x4993e7,'submitted':_0x26a45e&&!_0x4993e7,'backend':{'method':_0x485564(0x225),'path':BACKEND_PATH,'payload':_0x2b2cea},..._0x3e7737?{'verification':_0x3e7737}:{},'warnings':[]};return{'ok':!![],'data':_0x45a139,'message':_0x26a45e?_0x4993e7?'Dry-run:\x20business\x20model\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x394b60[_0x485564(0x226)]:_0x485564(0x210)+_0x394b60[_0x485564(0x226)]:_0x485564(0x202)+_0x394b60[_0x485564(0x226)]};}export const datasetBusinessGroupUpdate={'service':a57_0x410cb1(0x212),'command':a57_0x410cb1(0x221),'description':a57_0x410cb1(0x216),'risk':a57_0x410cb1(0x1ff),'flags':[CODE_FLAG,{'name':a57_0x410cb1(0x201),'type':a57_0x410cb1(0x1fd),'required':!![],'description':a57_0x410cb1(0x21f)},{'name':a57_0x410cb1(0x220),'type':a57_0x410cb1(0x1fd),'required':![],'description':a57_0x410cb1(0x1fa)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x52f454){validateInput(readBusinessGroupUpdateInput(_0x52f454));},async 'dryRun'(_0x482587){const _0x1ab28c=a57_0x410cb1,_0x637c5c=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x482587['appCode'],'input':readBusinessGroupUpdateInput(_0x482587),'dryRun':!![]});return{'method':_0x1ab28c(0x225),'url':BACKEND_PATH,'body':_0x637c5c['data'][_0x1ab28c(0x227)]['payload'],'description':_0x637c5c[_0x1ab28c(0x22b)],..._0x637c5c[_0x1ab28c(0x22e)]};},async 'execute'(_0x1f2776){const _0x24b25c=a57_0x410cb1;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1f2776[_0x24b25c(0x22a)],'input':readBusinessGroupUpdateInput(_0x1f2776),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x28ee6d){const _0x575e8d=a57_0x410cb1,_0x2350d9=_0x28ee6d[_0x575e8d(0x219)]('expect-business-group');return{'code':trim(_0x28ee6d[_0x575e8d(0x219)](_0x575e8d(0x226))),'businessGroup':_0x28ee6d[_0x575e8d(0x219)]('business-group'),'expectBusinessGroup':_0x2350d9===undefined||_0x2350d9===''?undefined:_0x2350d9};}function validateInput(_0x4e61ce){const _0xe8e941=a57_0x410cb1;if(!trim(_0x4e61ce[_0xe8e941(0x226)]))throw CliErrors[_0xe8e941(0x1f5)](_0xe8e941(0x1fe));if(_0x4e61ce['businessGroup']===undefined)throw CliErrors[_0xe8e941(0x1f5)](_0xe8e941(0x209));}function resolveBusinessGroupDataset(_0x53a7a5,_0x2604c8){const _0xa4f9e7=a57_0x410cb1,_0x8c1b8=asPlainObject(_0x53a7a5['dataset']),_0x332909=asPlainObject(_0x53a7a5[_0xa4f9e7(0x215)]),_0x30fa44=resolveSourceType(_0x53a7a5,_0x8c1b8,_0x332909),_0x2649bf=firstString(_0x53a7a5[_0xa4f9e7(0x22f)],_0x53a7a5[_0xa4f9e7(0x226)],_0x8c1b8[_0xa4f9e7(0x224)],_0x2604c8)||_0x2604c8;return{'id':firstNumber(_0x53a7a5['modelId'],_0x53a7a5['id'],_0x8c1b8['datasetId'])??firstString(_0x53a7a5['modelId'],_0x53a7a5['id'],_0x8c1b8[_0xa4f9e7(0x1f4)])??null,'code':_0x2649bf,'name':firstString(_0x53a7a5[_0xa4f9e7(0x230)],_0x8c1b8[_0xa4f9e7(0x211)],_0x8c1b8[_0xa4f9e7(0x230)])||null,'sourceType':_0x30fa44};}function resolveSourceType(_0x27fe4c,_0x4423cf,_0x28873d){const _0x114675=a57_0x410cb1,_0x4d8e64=firstString(_0x27fe4c[_0x114675(0x234)],_0x27fe4c[_0x114675(0x208)],_0x4423cf[_0x114675(0x234)],_0x4423cf['sourceType'])?.[_0x114675(0x223)]()[_0x114675(0x20b)]();if(_0x4d8e64===_0x114675(0x1f9)||_0x4d8e64===_0x114675(0x213))return _0x4d8e64;if(Object[_0x114675(0x21a)](_0x28873d)[_0x114675(0x1fb)]>0x0)return _0x114675(0x1f9);throw CliErrors[_0x114675(0x1f5)]('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x5ee6ea,_0x379927){const _0x32066e=a57_0x410cb1,_0x245bd8=readBusinessGroupFromDatasetDetail(_0x5ee6ea,_0x379927[_0x32066e(0x208)]);if(_0x245bd8[_0x32066e(0x22c)])return normalizeBusinessGroup(_0x245bd8[_0x32066e(0x20f)]);if(_0x379927['sourceType']===_0x32066e(0x213))return'';throw CliErrors[_0x32066e(0x1f5)](_0x32066e(0x20a),_0x32066e(0x20e));}function readBusinessGroupFromDatasetDetail(_0x5b528e,_0x27a892){const _0x1aca22=a57_0x410cb1,_0x36e9ba=asPlainObject(_0x5b528e[_0x1aca22(0x212)]),_0x3b88db=firstPresent(_0x5b528e[_0x1aca22(0x205)]);if(_0x3b88db['found'])return _0x3b88db;const _0x5c7dc5=firstPresent(_0x36e9ba[_0x1aca22(0x205)]);if(_0x5c7dc5[_0x1aca22(0x22c)])return _0x5c7dc5;if(_0x27a892===_0x1aca22(0x1f9))return{'found':![]};const _0x48626e=readBusinessGroupFromExtend(_0x5b528e[_0x1aca22(0x21c)]);if(_0x48626e['found'])return _0x48626e;return readBusinessGroupFromExtend(_0x36e9ba[_0x1aca22(0x21c)]);}function readBusinessGroupFromExtend(_0x431810){const _0x70afdb=a57_0x410cb1;if(_0x431810===undefined||_0x431810===null||_0x431810==='')return{'found':![]};if(typeof _0x431810===_0x70afdb(0x1fd))try{const _0x3fbeee=JSON['parse'](_0x431810);return readBusinessGroupFromExtend(_0x3fbeee);}catch{return{'found':![]};}const _0x477684=asPlainObject(_0x431810);if(Object[_0x70afdb(0x214)]['hasOwnProperty']['call'](_0x477684,_0x70afdb(0x205)))return{'found':!![],'value':_0x477684[_0x70afdb(0x205)]};return{'found':![]};}function firstPresent(..._0x138095){for(const _0x487101 of _0x138095){if(_0x487101!==undefined&&_0x487101!==null)return{'found':!![],'value':_0x487101};}return{'found':![]};}function assertExpectedBusinessGroup(_0x5e26dc,_0x263b55){const _0x4549cb=a57_0x410cb1;if(_0x263b55===undefined)return;const _0x3abb7f=normalizeBusinessGroup(_0x263b55);if(_0x5e26dc!==_0x3abb7f)throw CliErrors['validation'](_0x4549cb(0x20c),_0x4549cb(0x222)+JSON[_0x4549cb(0x200)](_0x3abb7f)+',\x20actual\x20'+JSON[_0x4549cb(0x200)](_0x5e26dc));}function buildBackendPayload(_0x63fbad,_0x225039,_0x21d440){const _0x58c5ff=a57_0x410cb1;return{'appCode':_0x63fbad,'datasetCode':_0x225039[_0x58c5ff(0x226)],'businessGroup':_0x21d440};}function normalizeBusinessGroup(_0xec93b5){const _0x47b3a4=a57_0x410cb1;if(_0xec93b5===undefined||_0xec93b5===null)return'';return String(_0xec93b5)[_0x47b3a4(0x223)]();}function asPlainObject(_0x2227e4){const _0x148f72=a57_0x410cb1;if(!_0x2227e4||typeof _0x2227e4!==_0x148f72(0x229)||Array[_0x148f72(0x207)](_0x2227e4))return{};return _0x2227e4;}function firstString(..._0x3b7d5b){const _0x11d370=a57_0x410cb1;for(const _0x5e6140 of _0x3b7d5b){if(typeof _0x5e6140===_0x11d370(0x1fd)&&_0x5e6140['trim']())return _0x5e6140[_0x11d370(0x223)]();if(typeof _0x5e6140===_0x11d370(0x1f6)&&Number[_0x11d370(0x21e)](_0x5e6140))return String(_0x5e6140);}return undefined;}function a57_0xb74b(_0x36fce2,_0x27407a){_0x36fce2=_0x36fce2-0x1f3;const _0x340d36=a57_0x340d();let _0xb74b20=_0x340d36[_0x36fce2];return _0xb74b20;}function firstNumber(..._0x311862){const _0x5348cc=a57_0x410cb1;for(const _0x829266 of _0x311862){if(typeof _0x829266===_0x5348cc(0x1f6)&&Number[_0x5348cc(0x21e)](_0x829266))return _0x829266;if(typeof _0x829266==='string'&&_0x829266['trim']()&&Number['isFinite'](Number(_0x829266)))return Number(_0x829266);}return null;}function trim(_0x42cb54){const _0x4ee92c=a57_0x410cb1;return String(_0x42cb54||'')[_0x4ee92c(0x223)]();}
|
|
1
|
+
const a57_0x246456=a57_0x5718;(function(_0x23df45,_0x17dcf2){const _0x14f1cc=a57_0x5718,_0x19dc7e=_0x23df45();while(!![]){try{const _0x2ae4b2=-parseInt(_0x14f1cc(0x1ff))/0x1*(-parseInt(_0x14f1cc(0x1c8))/0x2)+-parseInt(_0x14f1cc(0x1e0))/0x3*(-parseInt(_0x14f1cc(0x1ee))/0x4)+parseInt(_0x14f1cc(0x1f0))/0x5*(parseInt(_0x14f1cc(0x1dc))/0x6)+parseInt(_0x14f1cc(0x1ce))/0x7+-parseInt(_0x14f1cc(0x1fb))/0x8*(-parseInt(_0x14f1cc(0x1ed))/0x9)+-parseInt(_0x14f1cc(0x1d4))/0xa+parseInt(_0x14f1cc(0x1f3))/0xb*(parseInt(_0x14f1cc(0x1f8))/0xc);if(_0x2ae4b2===_0x17dcf2)break;else _0x19dc7e['push'](_0x19dc7e['shift']());}catch(_0x50a0a8){_0x19dc7e['push'](_0x19dc7e['shift']());}}}(a57_0x2a8d,0xe9225));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='/smartapi/question/er-config/business-group/edit';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x4c9d79,input:_0xc80d9b,dryRun:_0xefbb20}){const _0x1fdb37=a57_0x5718;validateInput(_0xc80d9b);const _0x65cc9b=normalizeBusinessGroup(_0xc80d9b[_0x1fdb37(0x1f7)]),_0x298779=await getDatasetDetail(_0xc80d9b[_0x1fdb37(0x1ef)]),_0x1e75f4=resolveBusinessGroupDataset(_0x298779,_0xc80d9b[_0x1fdb37(0x1ef)]),_0xfe265f=loadCurrentBusinessGroup(_0x298779,_0x1e75f4);assertExpectedBusinessGroup(_0xfe265f,_0xc80d9b[_0x1fdb37(0x1fe)]);const _0x138651=buildBackendPayload(_0x4c9d79,_0x1e75f4,_0x65cc9b),_0x141db6=_0xfe265f!==_0x65cc9b;let _0x470fde;if(_0x141db6&&!_0xefbb20){await updateErBusinessGroup(_0x138651);const _0x1e21e0=await getDatasetDetail(_0x1e75f4[_0x1fdb37(0x1ef)]),_0x3a8e19=resolveBusinessGroupDataset(_0x1e21e0,_0x1e75f4[_0x1fdb37(0x1ef)]),_0x4d1c69=loadCurrentBusinessGroup(_0x1e21e0,_0x3a8e19);if(_0x4d1c69!==_0x65cc9b)throw CliErrors['apiError'](_0x1fdb37(0x1e3),'Expected\x20'+JSON[_0x1fdb37(0x1e4)](_0x65cc9b)+_0x1fdb37(0x1ec)+JSON[_0x1fdb37(0x1e4)](_0x4d1c69)+'.');_0x470fde={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x4d1c69}};}else!_0x141db6&&(_0x470fde={'verified':!![],'status':_0x1fdb37(0x1f9),'afterReadback':{'businessGroup':_0xfe265f}});const _0x29bd35={'operation':_0x1fdb37(0x1da),'appCode':_0x4c9d79,'selector':{'code':_0x1e75f4[_0x1fdb37(0x1ef)]},'dataset':_0x1e75f4,'before':{'businessGroup':_0xfe265f},'after':{'businessGroup':_0x65cc9b},'changed':_0x141db6,'dryRun':_0xefbb20,'submitted':_0x141db6&&!_0xefbb20,'backend':{'method':_0x1fdb37(0x200),'path':BACKEND_PATH,'payload':_0x138651},..._0x470fde?{'verification':_0x470fde}:{},'warnings':[]};return{'ok':!![],'data':_0x29bd35,'message':_0x141db6?_0xefbb20?_0x1fdb37(0x1f4)+_0x1e75f4['code']:'Updated\x20business\x20model\x20group\x20for\x20dataset\x20'+_0x1e75f4[_0x1fdb37(0x1ef)]:'No\x20changes\x20for\x20business\x20model\x20group\x20on\x20dataset\x20'+_0x1e75f4['code']};}export const datasetBusinessGroupUpdate={'service':a57_0x246456(0x1cb),'command':a57_0x246456(0x1cc),'description':a57_0x246456(0x1d7),'risk':'write','flags':[CODE_FLAG,{'name':'business-group','type':a57_0x246456(0x1f2),'required':!![],'description':a57_0x246456(0x1d2)},{'name':'expect-business-group','type':'string','required':![],'description':a57_0x246456(0x1e2)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58559e){validateInput(readBusinessGroupUpdateInput(_0x58559e));},async 'dryRun'(_0x296676){const _0x39406c=a57_0x246456,_0x2ea5e1=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x296676[_0x39406c(0x202)],'input':readBusinessGroupUpdateInput(_0x296676),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x2ea5e1[_0x39406c(0x1d6)][_0x39406c(0x1d3)][_0x39406c(0x1e1)],'description':_0x2ea5e1[_0x39406c(0x1eb)],..._0x2ea5e1['data']};},async 'execute'(_0x34aebc){const _0x529983=a57_0x246456;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x34aebc[_0x529983(0x202)],'input':readBusinessGroupUpdateInput(_0x34aebc),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x3eff6f){const _0x5576e4=a57_0x246456,_0x1f2809=_0x3eff6f[_0x5576e4(0x1e8)]('expect-business-group');return{'code':trim(_0x3eff6f[_0x5576e4(0x1e8)]('code')),'businessGroup':_0x3eff6f[_0x5576e4(0x1e8)]('business-group'),'expectBusinessGroup':_0x1f2809===undefined||_0x1f2809===''?undefined:_0x1f2809};}function validateInput(_0x51c013){const _0x34b5b7=a57_0x246456;if(!trim(_0x51c013[_0x34b5b7(0x1ef)]))throw CliErrors[_0x34b5b7(0x1d0)](_0x34b5b7(0x1e5));if(_0x51c013[_0x34b5b7(0x1f7)]===undefined)throw CliErrors['validation']('--business-group\x20is\x20required');}function resolveBusinessGroupDataset(_0x118876,_0x1dfb08){const _0x1fde21=a57_0x246456,_0x150ad0=asPlainObject(_0x118876[_0x1fde21(0x1cb)]),_0x292dfa=asPlainObject(_0x118876['dbtableConfig']),_0x516b5e=resolveSourceType(_0x118876,_0x150ad0,_0x292dfa),_0x3791ed=firstString(_0x118876[_0x1fde21(0x1e6)],_0x118876[_0x1fde21(0x1ef)],_0x150ad0[_0x1fde21(0x1c9)],_0x1dfb08)||_0x1dfb08;return{'id':firstNumber(_0x118876[_0x1fde21(0x1e9)],_0x118876['id'],_0x150ad0[_0x1fde21(0x1d8)])??firstString(_0x118876[_0x1fde21(0x1e9)],_0x118876['id'],_0x150ad0[_0x1fde21(0x1d8)])??null,'code':_0x3791ed,'name':firstString(_0x118876[_0x1fde21(0x201)],_0x150ad0[_0x1fde21(0x1c7)],_0x150ad0[_0x1fde21(0x201)])||null,'sourceType':_0x516b5e};}function resolveSourceType(_0x4526ad,_0x4b60c3,_0x4c4fdf){const _0x31d2bd=a57_0x246456,_0x96529c=firstString(_0x4526ad[_0x31d2bd(0x1f5)],_0x4526ad[_0x31d2bd(0x1dd)],_0x4b60c3[_0x31d2bd(0x1f5)],_0x4b60c3['sourceType'])?.[_0x31d2bd(0x1f1)]()[_0x31d2bd(0x1d1)]();if(_0x96529c===_0x31d2bd(0x1df)||_0x96529c==='METADATA')return _0x96529c;if(Object['keys'](_0x4c4fdf)[_0x31d2bd(0x1fa)]>0x0)return'DB_TABLE';throw CliErrors[_0x31d2bd(0x1d0)](_0x31d2bd(0x1fc));}function loadCurrentBusinessGroup(_0x28bdc1,_0x24690d){const _0x45a16d=a57_0x246456,_0x29d202=readBusinessGroupFromDatasetDetail(_0x28bdc1,_0x24690d['sourceType']);if(_0x29d202[_0x45a16d(0x1cd)])return normalizeBusinessGroup(_0x29d202[_0x45a16d(0x1db)]);if(_0x24690d[_0x45a16d(0x1dd)]===_0x45a16d(0x1c5))return'';throw CliErrors[_0x45a16d(0x1d0)](_0x45a16d(0x1ca),_0x45a16d(0x1f6));}function readBusinessGroupFromDatasetDetail(_0xabd8f4,_0x926e4f){const _0x153545=a57_0x246456,_0x2795c9=asPlainObject(_0xabd8f4[_0x153545(0x1cb)]),_0x278f39=firstPresent(_0xabd8f4[_0x153545(0x1f7)]);if(_0x278f39[_0x153545(0x1cd)])return _0x278f39;const _0x1d7755=firstPresent(_0x2795c9[_0x153545(0x1f7)]);if(_0x1d7755['found'])return _0x1d7755;if(_0x926e4f===_0x153545(0x1df))return{'found':![]};const _0x52fdce=readBusinessGroupFromExtend(_0xabd8f4['extend']);if(_0x52fdce[_0x153545(0x1cd)])return _0x52fdce;return readBusinessGroupFromExtend(_0x2795c9[_0x153545(0x1e7)]);}function readBusinessGroupFromExtend(_0x9df1dd){const _0x290b87=a57_0x246456;if(_0x9df1dd===undefined||_0x9df1dd===null||_0x9df1dd==='')return{'found':![]};if(typeof _0x9df1dd===_0x290b87(0x1f2))try{const _0x39ca06=JSON[_0x290b87(0x1cf)](_0x9df1dd);return readBusinessGroupFromExtend(_0x39ca06);}catch{return{'found':![]};}const _0x4a1405=asPlainObject(_0x9df1dd);if(Object[_0x290b87(0x1d5)]['hasOwnProperty'][_0x290b87(0x1fd)](_0x4a1405,_0x290b87(0x1f7)))return{'found':!![],'value':_0x4a1405['businessGroup']};return{'found':![]};}function firstPresent(..._0x190941){for(const _0x29f9a3 of _0x190941){if(_0x29f9a3!==undefined&&_0x29f9a3!==null)return{'found':!![],'value':_0x29f9a3};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2a4b7a,_0x3080a9){const _0x125b50=a57_0x246456;if(_0x3080a9===undefined)return;const _0x4a8e19=normalizeBusinessGroup(_0x3080a9);if(_0x2a4b7a!==_0x4a8e19)throw CliErrors[_0x125b50(0x1d0)](_0x125b50(0x1de),_0x125b50(0x203)+JSON[_0x125b50(0x1e4)](_0x4a8e19)+_0x125b50(0x1ec)+JSON[_0x125b50(0x1e4)](_0x2a4b7a));}function buildBackendPayload(_0x571164,_0x2cf571,_0x1c92a9){const _0x41180a=a57_0x246456;return{'appCode':_0x571164,'datasetCode':_0x2cf571[_0x41180a(0x1ef)],'businessGroup':_0x1c92a9};}function normalizeBusinessGroup(_0x514fd8){if(_0x514fd8===undefined||_0x514fd8===null)return'';return String(_0x514fd8)['trim']();}function asPlainObject(_0x181382){const _0x6ed37e=a57_0x246456;if(!_0x181382||typeof _0x181382!=='object'||Array[_0x6ed37e(0x1d9)](_0x181382))return{};return _0x181382;}function a57_0x5718(_0x3b00db,_0xd1831a){_0x3b00db=_0x3b00db-0x1c5;const _0x2a8d41=a57_0x2a8d();let _0x57188a=_0x2a8d41[_0x3b00db];return _0x57188a;}function firstString(..._0x97bb84){const _0x2bbf17=a57_0x246456;for(const _0x59bb92 of _0x97bb84){if(typeof _0x59bb92==='string'&&_0x59bb92[_0x2bbf17(0x1f1)]())return _0x59bb92[_0x2bbf17(0x1f1)]();if(typeof _0x59bb92===_0x2bbf17(0x1c6)&&Number[_0x2bbf17(0x1ea)](_0x59bb92))return String(_0x59bb92);}return undefined;}function a57_0x2a8d(){const _0x3529ad=['DB_TABLE','858aOkwfJ','payload','Expected\x20current\x20business\x20model\x20group;\x20mismatch\x20aborts\x20without\x20writing','Business\x20model\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','stringify','--code\x20is\x20required','modelCode','extend','str','modelId','isFinite','message',',\x20actual\x20','74187zJtxxE','16584ygOIjI','code','485515hrmtWQ','trim','string','5825094bzwCEI','Dry-run:\x20business\x20model\x20group\x20would\x20change\x20for\x20dataset\x20','source','Business\x20model\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','businessGroup','12wchKZP','unchanged','length','360kGfhyE','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','call','expectBusinessGroup','4839kmcGxO','POST','name','appCode','Expected\x20','METADATA','number','datasetName','66Otphvk','datasetCode','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','dataset','business-group-update','found','1518398ZohyjZ','parse','validation','toUpperCase','New\x20business\x20model\x20group\x20value;\x20empty\x20string\x20clears\x20it','backend','17021350EMbgCx','prototype','data','Update\x20business\x20model\x20group','datasetId','isArray','update','value','12iWvxnk','sourceType','Expectation\x20mismatch\x20at\x20businessGroup'];a57_0x2a8d=function(){return _0x3529ad;};return a57_0x2a8d();}function firstNumber(..._0x58fd51){const _0x57171a=a57_0x246456;for(const _0x40b63f of _0x58fd51){if(typeof _0x40b63f===_0x57171a(0x1c6)&&Number[_0x57171a(0x1ea)](_0x40b63f))return _0x40b63f;if(typeof _0x40b63f===_0x57171a(0x1f2)&&_0x40b63f[_0x57171a(0x1f1)]()&&Number[_0x57171a(0x1ea)](Number(_0x40b63f)))return Number(_0x40b63f);}return null;}function trim(_0x1b589a){const _0x26fd53=a57_0x246456;return String(_0x1b589a||'')[_0x26fd53(0x1f1)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0xbad613=a58_0x4d01;(function(_0x5bee97,_0x3f4f7e){const _0x54124e=a58_0x4d01,_0xa71ffe=_0x5bee97();while(!![]){try{const _0x4813cc=-parseInt(_0x54124e(0x1fe))/0x1*(-parseInt(_0x54124e(0x1f7))/0x2)+parseInt(_0x54124e(0x204))/0x3*(parseInt(_0x54124e(0x1f8))/0x4)+-parseInt(_0x54124e(0x1fb))/0x5+parseInt(_0x54124e(0x209))/0x6*(parseInt(_0x54124e(0x1ed))/0x7)+-parseInt(_0x54124e(0x1f1))/0x8+parseInt(_0x54124e(0x1e9))/0x9+parseInt(_0x54124e(0x1ea))/0xa*(-parseInt(_0x54124e(0x1e8))/0xb);if(_0x4813cc===_0x3f4f7e)break;else _0xa71ffe['push'](_0xa71ffe['shift']());}catch(_0x2cc937){_0xa71ffe['push'](_0xa71ffe['shift']());}}}(a58_0x76f0,0xe993a));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a58_0xbad613(0x208),'filter':a58_0xbad613(0x1f9),'getOne':a58_0xbad613(0x203)};export const RUNTIME_DATA_ACCESS_SUMMARY=a58_0xbad613(0x1e6);function valueToString(_0xe263fe){const _0x4eb003=a58_0xbad613;return _0xe263fe==null?'':String(_0xe263fe)[_0x4eb003(0x205)]();}function a58_0x4d01(_0x223594,_0x34ead0){_0x223594=_0x223594-0x1e5;const _0x76f01f=a58_0x76f0();let _0x4d01ec=_0x76f01f[_0x223594];return _0x4d01ec;}function a58_0x76f0(){const _0x36b288=['lovrabet','1160226jSIwRc','dbId','toUpperCase','join','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','modelCode','8840887pDOQJf','8392824vzwXsg','30nisYdr','\x20是\x20','getOne','14wBVTxf','dbtableConfig','sourceType','object','2272024eBVDUN','METADATA','SQL\x20schema\x20validation','dataset','当前数据集\x20\x22','code','1446720nBmVLH','4xFpvUw','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','tableName','2106525jyydQd','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','UNKNOWN','2Pvvabe','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','unknown','source','\x20的\x20DB_TABLE\x20数据源上下文。','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','3921573TdOBcF','trim','filter','dbtable'];a58_0x76f0=function(){return _0x36b288;};return a58_0x76f0();}function getDatasetCode(_0x3124dc){const _0x543223=a58_0xbad613;return valueToString(_0x3124dc[_0x543223(0x1f6)]??_0x3124dc[_0x543223(0x1e7)]??_0x3124dc['dataset']?.['datasetCode']);}function getDatasetName(_0x40a3c){const _0x21ae98=a58_0xbad613;return valueToString(_0x40a3c['name']??_0x40a3c[_0x21ae98(0x1f4)]?.['datasetName'])||_0x21ae98(0x200);}function getDatasetSource(_0x4a48b5){const _0x534d2d=a58_0xbad613;return valueToString(_0x4a48b5[_0x534d2d(0x201)]??_0x4a48b5[_0x534d2d(0x1f4)]?.[_0x534d2d(0x1ef)])[_0x534d2d(0x20b)]();}function getDbtableConfig(_0x13608a){const _0x6623eb=a58_0xbad613,_0x14e10a=_0x13608a[_0x6623eb(0x1ee)]??_0x13608a[_0x6623eb(0x207)];return _0x14e10a&&typeof _0x14e10a===_0x6623eb(0x1f0)?_0x14e10a:{};}export function isDbTableBackedDataset(_0x1d326a){const _0x4cd638=a58_0xbad613,_0x5c01cf=getDatasetSource(_0x1d326a);if(_0x5c01cf===_0x4cd638(0x1f2))return![];const _0x2db27f=getDbtableConfig(_0x1d326a),_0x545094=_0x2db27f[_0x4cd638(0x20a)]??_0x2db27f['id'],_0x18bec0=valueToString(_0x2db27f[_0x4cd638(0x1fa)]??_0x1d326a[_0x4cd638(0x1fa)]??_0x1d326a['dataset']?.['tableName']);return _0x545094!==undefined&&_0x545094!==null&&_0x18bec0['length']>0x0;}export function filterDbTableBackedDatasets(_0xcdd58b){const _0xa9b59d=a58_0xbad613;return _0xcdd58b[_0xa9b59d(0x206)](_0x4c8317=>isDbTableBackedDataset(_0x4c8317));}export function buildDbTableBackedRequirementMessage(_0x45dc43,_0x48e960=a58_0xbad613(0x1f3)){const _0xac673e=a58_0xbad613,_0x4147cf=getDatasetSource(_0x45dc43)||_0xac673e(0x1fd),_0x21fe86=getDatasetName(_0x45dc43),_0x4dfc7e=getDatasetCode(_0x45dc43),_0x997bf8=_0x4dfc7e?'\x20('+_0x4dfc7e+')':'';return[_0xac673e(0x1f5)+_0x21fe86+'\x22'+_0x997bf8+_0xac673e(0x1eb)+_0x4147cf+'\x20类型,没有可用于\x20'+_0x48e960+_0xac673e(0x202),_0xac673e(0x1ff),'请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0xac673e(0x1fc)+RUNTIME_DATA_ACCESS_COMMANDS[_0xac673e(0x206)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0xac673e(0x1ec)]+'。'][_0xac673e(0x1e5)]('\x20');}export function assertDatasetIsDbTableBacked(_0x2aaa77,_0x4b491d){if(!isDbTableBackedDataset(_0x2aaa77))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x2aaa77,_0x4b491d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a59_0x1446a1=a59_0x56a7;function a59_0x1c81(){const _0x2f29e3=['length','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Deleted\x20','code','dbid=','POST','\x20failed','validation','num','Would\x20delete\x20','tableName','88GWQFIq','422772xqnamu','expected-count','id=','No\x20undeleted\x20dataset\x20found\x20for\x20','dbid','7127740DjGvgn','57USmYFe','201060suQtUn','35KqxlzS','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','confirm','dbtableConfig','source','34964iWYjPF','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','str','dbName','number','bool','relationPages','27644DADLCY','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','message','filter','dataset','/smartapi/dataset/delete-dataset','appCode','delete','1218wyYHxN','boolean','dbId','Matched\x20','Dataset\x20id','description','4300230CjTtWt','2625KrJEAq','map','Required\x20to\x20execute\x20dataset\x20deletion','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','\x20dataset(s)','push','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','759xODriW'];a59_0x1c81=function(){return _0x2f29e3;};return a59_0x1c81();}(function(_0x1af1fd,_0x2acffc){const _0x3b66d9=a59_0x56a7,_0x1b3aab=_0x1af1fd();while(!![]){try{const _0x20e0ff=parseInt(_0x3b66d9(0xf0))/0x1*(-parseInt(_0x3b66d9(0xf5))/0x2)+parseInt(_0x3b66d9(0xee))/0x3*(-parseInt(_0x3b66d9(0xfc))/0x4)+-parseInt(_0x3b66d9(0xd3))/0x5+parseInt(_0x3b66d9(0x104))/0x6*(parseInt(_0x3b66d9(0xd4))/0x7)+parseInt(_0x3b66d9(0xe7))/0x8*(parseInt(_0x3b66d9(0xef))/0x9)+-parseInt(_0x3b66d9(0xed))/0xa+-parseInt(_0x3b66d9(0xdb))/0xb*(-parseInt(_0x3b66d9(0xe8))/0xc);if(_0x20e0ff===_0x2acffc)break;else _0x1b3aab['push'](_0x1b3aab['shift']());}catch(_0x4ba452){_0x1b3aab['push'](_0x1b3aab['shift']());}}}(a59_0x1c81,0x6aa45));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a59_0x56a7(_0x56ba27,_0x539f68){_0x56ba27=_0x56ba27-0xce;const _0x1c8141=a59_0x1c81();let _0x56a7f5=_0x1c8141[_0x56ba27];return _0x56a7f5;}const DATASET_ID_FLAG={'name':'id','type':a59_0x1446a1(0xf9),'description':a59_0x1446a1(0xd1)},DBID_FLAG={'name':a59_0x1446a1(0xec),'type':a59_0x1446a1(0xf9),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':a59_0x1446a1(0xf2),'type':a59_0x1446a1(0xce),'description':a59_0x1446a1(0xd6)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':'number','description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a59_0x1446a1(0x100),'command':a59_0x1446a1(0x103),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x30512b){const _0x1e875a=a59_0x1446a1,_0x254e2d=_0x30512b[_0x1e875a(0xe4)]('id'),_0x4f21d8=_0x30512b[_0x1e875a(0xf7)]('code'),_0x406823=_0x30512b[_0x1e875a(0xe4)](_0x1e875a(0xec)),_0x1deead=[_0x254e2d>0x0,Boolean(_0x4f21d8),_0x406823>0x0][_0x1e875a(0xff)](Boolean);if(_0x1deead['length']===0x0)throw CliErrors[_0x1e875a(0xe3)](_0x1e875a(0xd7));if(_0x1deead[_0x1e875a(0xdc)]>0x1)throw CliErrors['validation'](_0x1e875a(0xfd));},async 'dryRun'(_0x22ea03){const _0x44f82b=a59_0x1446a1,_0x5b7ae0=await resolveTargets(_0x22ea03);return{'method':_0x44f82b(0xe1),'url':_0x44f82b(0x101),'body':{'appCode':_0x22ea03[_0x44f82b(0x102)],'count':_0x5b7ae0[_0x44f82b(0xdc)],'datasets':_0x5b7ae0},'description':_0x44f82b(0xe5)+_0x5b7ae0[_0x44f82b(0xdc)]+_0x44f82b(0xf6)};},async 'execute'(_0x5e90f9){const _0x340b2d=a59_0x1446a1;if(!_0x5e90f9[_0x340b2d(0xfa)](_0x340b2d(0xf2)))throw CliErrors['validation'](_0x340b2d(0xf1),_0x340b2d(0xda));const _0xa0331c=await resolveTargets(_0x5e90f9),_0x3241dd=[],_0x2c86dc=[];for(const _0x22a598 of _0xa0331c){try{await deleteDataset(_0x5e90f9['appCode'],_0x22a598['id']),_0x3241dd[_0x340b2d(0xd9)](_0x22a598);}catch(_0x540883){_0x2c86dc[_0x340b2d(0xd9)]({..._0x22a598,'error':_0x540883 instanceof Error?_0x540883[_0x340b2d(0xfe)]:String(_0x540883)});}}if(_0x2c86dc[_0x340b2d(0xdc)]>0x0)return{'ok':![],'data':{'requested':_0xa0331c[_0x340b2d(0xdc)],'deletedCount':_0x3241dd[_0x340b2d(0xdc)],'failedCount':_0x2c86dc[_0x340b2d(0xdc)],'deleted':_0x3241dd,'failed':_0x2c86dc},'message':'Deleted\x20'+_0x3241dd['length']+'/'+_0xa0331c[_0x340b2d(0xdc)]+'\x20dataset(s);\x20'+_0x2c86dc['length']+_0x340b2d(0xe2)};return{'ok':!![],'data':{'requested':_0xa0331c[_0x340b2d(0xdc)],'deletedCount':_0x3241dd[_0x340b2d(0xdc)],'deleted':_0x3241dd},'message':_0x340b2d(0xde)+_0x3241dd[_0x340b2d(0xdc)]+_0x340b2d(0xd8)};}};async function resolveTargets(_0x485483){const _0x3b14c3=a59_0x1446a1,_0x526a26=_0x485483[_0x3b14c3(0xe4)]('id'),_0x574abe=_0x485483[_0x3b14c3(0xf7)](_0x3b14c3(0xdf)),_0x32d9c6=_0x485483[_0x3b14c3(0xe4)](_0x3b14c3(0xec));let _0x4bf3e4;_0x574abe?(_0x4bf3e4=await listDatasets(_0x485483[_0x3b14c3(0x102)],{'code':_0x574abe}),_0x4bf3e4=_0x4bf3e4[_0x3b14c3(0xff)](_0x55e886=>_0x55e886['code']===_0x574abe)):(_0x4bf3e4=await listDatasets(_0x485483[_0x3b14c3(0x102)]),_0x526a26>0x0&&(_0x4bf3e4=_0x4bf3e4[_0x3b14c3(0xff)](_0x47890b=>_0x47890b['id']===_0x526a26)),_0x32d9c6>0x0&&(_0x4bf3e4=_0x4bf3e4[_0x3b14c3(0xff)](_0x39593c=>_0x39593c[_0x3b14c3(0xf3)]?.[_0x3b14c3(0xcf)]===_0x32d9c6)));const _0x2a7382=_0x4bf3e4[_0x3b14c3(0xd5)](normalizeTarget);if(_0x2a7382['length']===0x0){const _0x3896b7=_0x574abe||(_0x526a26>0x0?_0x3b14c3(0xea)+_0x526a26:_0x3b14c3(0xe0)+_0x32d9c6);throw CliErrors[_0x3b14c3(0xe3)](_0x3b14c3(0xeb)+_0x3896b7+'.');}const _0x4cddbf=_0x485483['num'](_0x3b14c3(0xe9));if(_0x4cddbf>0x0&&_0x2a7382[_0x3b14c3(0xdc)]!==_0x4cddbf)throw CliErrors['validation'](_0x3b14c3(0xd0)+_0x2a7382[_0x3b14c3(0xdc)]+_0x3b14c3(0xdd)+_0x4cddbf+'.');return _0x2a7382;}function normalizeTarget(_0x5a81b4){const _0x1115b2=a59_0x1446a1,_0x282011=_0x5a81b4[_0x1115b2(0xf3)]??{};return{'id':_0x5a81b4['id'],'code':_0x5a81b4[_0x1115b2(0xdf)],'name':_0x5a81b4['name'],'description':_0x5a81b4[_0x1115b2(0xd2)],'source':_0x5a81b4[_0x1115b2(0xf4)],'dbId':_0x282011[_0x1115b2(0xcf)],'dbName':_0x282011[_0x1115b2(0xf8)],'tableName':_0x282011[_0x1115b2(0xe6)],'relatedPageCount':Array['isArray'](_0x5a81b4[_0x1115b2(0xfb)])?_0x5a81b4[_0x1115b2(0xfb)][_0x1115b2(0xdc)]:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a60_0x4aac(){const _0x457878=['fromField','method','title','relations','56lWAWDV','2462188yrgYNq','updateTimeField','source','1507068zwJavP','columnCodeListWithDeleted','required','dataType','trim','sourceType','250YUxNgC','validateRules','toDatasetCode','tableName','createTimeField','read','map','string','filter','properties','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','options','datasetKey','3533508GfCrHq','deleted','operations','doVersion','entries','dataset','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','fields','object','name','labelField','description','modelId','1421176gYtDpi','toFieldLabel','1598eIWVBo','dbType','str','creatorIdField','responseBody','dblinkInfoDTO','requestFields','requestBody','modifierIdField','type','parse','displayName','relatedPageInfoList','host','push','modelCode','allFields','length','dbName','toTableName','toDatasetName','afterScriptId','responseFields','allFieldNames','dbId','extend','alias','beforeScriptId','doType','pkField','4380cNuBPs','indexes','1358192RQrXmJ','logicField','code','48725PMtsPA','isArray'];a60_0x4aac=function(){return _0x457878;};return a60_0x4aac();}function a60_0x39a0(_0x2735f6,_0xacecfc){_0x2735f6=_0x2735f6-0x1da;const _0x4aac03=a60_0x4aac();let _0x39a0a3=_0x4aac03[_0x2735f6];return _0x39a0a3;}const a60_0x467501=a60_0x39a0;(function(_0x49e86a,_0x1a66c9){const _0x5330e5=a60_0x39a0,_0x5f8eea=_0x49e86a();while(!![]){try{const _0x56aa51=parseInt(_0x5330e5(0x219))/0x1+parseInt(_0x5330e5(0x1f9))/0x2*(parseInt(_0x5330e5(0x217))/0x3)+parseInt(_0x5330e5(0x223))/0x4+parseInt(_0x5330e5(0x21c))/0x5+parseInt(_0x5330e5(0x1ea))/0x6+-parseInt(_0x5330e5(0x222))/0x7*(-parseInt(_0x5330e5(0x1f7))/0x8)+parseInt(_0x5330e5(0x226))/0x9*(-parseInt(_0x5330e5(0x1dd))/0xa);if(_0x56aa51===_0x1a66c9)break;else _0x5f8eea['push'](_0x5f8eea['shift']());}catch(_0x1046db){_0x5f8eea['push'](_0x5f8eea['shift']());}}}(a60_0x4aac,0xedbfa));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x27eea2){const _0x444f3c=a60_0x39a0;if(_0x27eea2[_0x444f3c(0x1eb)])return null;const _0x414466=Boolean(_0x27eea2['displayName']!==undefined||_0x27eea2[_0x444f3c(0x215)]!==undefined);let _0x3390d0={};if(!_0x414466&&typeof _0x27eea2[_0x444f3c(0x212)]===_0x444f3c(0x1e4))try{_0x3390d0=JSON[_0x444f3c(0x203)](_0x27eea2[_0x444f3c(0x212)]);}catch{}const _0x43d521=_0x414466?_0x27eea2['name']:_0x27eea2[_0x444f3c(0x21b)],_0x31c596=_0x414466?_0x27eea2[_0x444f3c(0x204)]:_0x27eea2[_0x444f3c(0x1f3)],_0x3ec573=_0x414466?_0x27eea2['doType']:_0x27eea2[_0x444f3c(0x202)]||_0x27eea2[_0x444f3c(0x1da)],_0x37a2e2=_0x414466?_0x27eea2[_0x444f3c(0x216)]===!![]:_0x3390d0[_0x444f3c(0x216)]===!![],_0x1d7ac4=_0x414466?_0x27eea2['required']===!![]:_0x3390d0[_0x444f3c(0x228)]===!![],_0x524d88=_0x414466?_0x27eea2['options']??null:_0x3390d0[_0x444f3c(0x1e8)]??null,_0x413056={'name':_0x43d521,'displayName':_0x31c596||_0x43d521,'type':_0x3ec573,'dbType':_0x27eea2[_0x444f3c(0x1fa)],'pk':_0x37a2e2,'required':_0x1d7ac4,'description':_0x27eea2[_0x444f3c(0x1f5)]||undefined};return Array['isArray'](_0x524d88)&&_0x524d88['length']>0x0&&(_0x413056[_0x444f3c(0x1e8)]=_0x524d88),_0x413056;}function parseJsonMaybe(_0x399ae3){const _0x50e8a0=a60_0x39a0;if(typeof _0x399ae3!==_0x50e8a0(0x1e4))return _0x399ae3;try{return JSON[_0x50e8a0(0x203)](_0x399ae3);}catch{return _0x399ae3;}}function normalizeOperationEntry(_0x395d56,_0xc1e2bf){const _0x15e4b9=a60_0x39a0;if(!_0xc1e2bf||typeof _0xc1e2bf!==_0x15e4b9(0x1f2))return null;if(!_0xc1e2bf['method']||!_0xc1e2bf['path'])return null;const _0x49548b={'name':_0x395d56,'method':_0xc1e2bf[_0x15e4b9(0x21f)],'path':_0xc1e2bf['path']};if(_0xc1e2bf[_0x15e4b9(0x206)])_0x49548b['host']=_0xc1e2bf[_0x15e4b9(0x206)];if(_0xc1e2bf[_0x15e4b9(0x200)]!=null){const _0x537d88=parseJsonMaybe(_0xc1e2bf[_0x15e4b9(0x200)]);_0x49548b['requestBody']=_0x537d88;}if(_0xc1e2bf[_0x15e4b9(0x1fd)]!=null){const _0x477a82=parseJsonMaybe(_0xc1e2bf[_0x15e4b9(0x1fd)]);_0x49548b['responseBody']=_0x477a82;}if(_0xc1e2bf[_0x15e4b9(0x214)]!=null)_0x49548b['beforeScriptId']=_0xc1e2bf[_0x15e4b9(0x214)];if(_0xc1e2bf[_0x15e4b9(0x20e)]!=null)_0x49548b[_0x15e4b9(0x20e)]=_0xc1e2bf[_0x15e4b9(0x20e)];if(Array[_0x15e4b9(0x21d)](_0xc1e2bf['requestFields']))_0x49548b[_0x15e4b9(0x1ff)]=_0xc1e2bf[_0x15e4b9(0x1ff)];if(Array[_0x15e4b9(0x21d)](_0xc1e2bf['responseFields']))_0x49548b[_0x15e4b9(0x20f)]=_0xc1e2bf[_0x15e4b9(0x20f)];return _0x49548b;}function summarizeDbtable(_0x4dfcb5){const _0x2f2f02=a60_0x39a0,_0x1037bf={},_0x591d35=[_0x2f2f02(0x211),_0x2f2f02(0x20b),_0x2f2f02(0x1e0),_0x2f2f02(0x1e9),_0x2f2f02(0x216),_0x2f2f02(0x209),_0x2f2f02(0x21a),_0x2f2f02(0x1e1),_0x2f2f02(0x224),_0x2f2f02(0x1fc),'creatorNameField',_0x2f2f02(0x201),'modifierNameField',_0x2f2f02(0x1f4),_0x2f2f02(0x1fe)];for(const _0x223b96 of _0x591d35){if(_0x4dfcb5[_0x223b96]!==undefined)_0x1037bf[_0x223b96]=_0x4dfcb5[_0x223b96];}return typeof _0x1037bf[_0x2f2f02(0x209)]===_0x2f2f02(0x1e4)&&_0x1037bf[_0x2f2f02(0x209)][_0x2f2f02(0x20a)]>0x0&&(_0x1037bf[_0x2f2f02(0x210)]=_0x1037bf['allFields']['split'](',')['map'](_0x336e27=>_0x336e27[_0x2f2f02(0x1db)]())[_0x2f2f02(0x1e5)](Boolean)),_0x1037bf;}function normalizeRelatedPages(_0xf3680f){const _0x51533b=a60_0x39a0;if(!Array['isArray'](_0xf3680f))return[];return _0xf3680f[_0x51533b(0x1e5)](_0x48ec52=>_0x48ec52&&typeof _0x48ec52===_0x51533b(0x1f2))[_0x51533b(0x1e3)](_0x5447d7=>({'id':_0x5447d7['id'],'type':_0x5447d7[_0x51533b(0x202)],'code':_0x5447d7[_0x51533b(0x21b)],'title':_0x5447d7[_0x51533b(0x220)],'deleted':_0x5447d7[_0x51533b(0x1eb)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a60_0x467501(0x1e7),'risk':a60_0x467501(0x1e2),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a60_0x467501(0x213),'type':a60_0x467501(0x1e4),'description':a60_0x467501(0x1f0)}],async 'execute'(_0x556a01){const _0x2a0e84=a60_0x467501,_0x5231c9=await getDatasetDetail(_0x556a01[_0x2a0e84(0x1fb)]('code')),_0x2d3548=Array[_0x2a0e84(0x21d)](_0x5231c9[_0x2a0e84(0x1f1)])?_0x5231c9['fields']:Array[_0x2a0e84(0x21d)](_0x5231c9['properties'])?_0x5231c9[_0x2a0e84(0x1e6)]:[],_0x4fa9e3=_0x2d3548[_0x2a0e84(0x1e3)](_0x1480b2=>normalizeField(_0x1480b2))[_0x2a0e84(0x1e5)](_0x26a11f=>_0x26a11f!==null),_0x59e54b=_0x5231c9[_0x2a0e84(0x1ec)]??{},_0x37b2e6=[];for(const [_0x16b56f,_0x56b20e]of Object[_0x2a0e84(0x1ee)](_0x59e54b)){const _0xee3282=normalizeOperationEntry(_0x16b56f,_0x56b20e);if(_0xee3282)_0x37b2e6[_0x2a0e84(0x207)](_0xee3282);}const _0x2bca7e=_0x5231c9['dbtableConfig']??{},_0x1a2d4c=_0x5231c9[_0x2a0e84(0x1ef)]??{},_0x1474ab=_0x2bca7e[_0x2a0e84(0x211)]!=null?{'id':_0x2bca7e[_0x2a0e84(0x211)],'name':_0x2bca7e[_0x2a0e84(0x20b)]??null}:undefined;let _0x2c39ec;return typeof _0x5231c9[_0x2a0e84(0x212)]==='string'&&(_0x2c39ec=parseJsonMaybe(_0x5231c9[_0x2a0e84(0x212)])),{'ok':!![],'data':{'id':_0x5231c9[_0x2a0e84(0x1f6)]??_0x5231c9['id'],'name':_0x5231c9[_0x2a0e84(0x1f3)],'code':_0x5231c9[_0x2a0e84(0x208)]||_0x5231c9[_0x2a0e84(0x21b)],'doVersion':_0x5231c9[_0x2a0e84(0x1ed)],'description':_0x5231c9[_0x2a0e84(0x1f5)]||_0x1a2d4c['tableComment']||undefined,'source':_0x5231c9[_0x2a0e84(0x225)]||_0x1a2d4c[_0x2a0e84(0x1dc)],'table':_0x2bca7e['tableName']||_0x1a2d4c[_0x2a0e84(0x1e0)],'datasetKey':_0x2bca7e[_0x2a0e84(0x1e9)],'pk':_0x2bca7e[_0x2a0e84(0x216)],'db':_0x1474ab,'dbtable':summarizeDbtable(_0x2bca7e),'fields':_0x4fa9e3,'operations':_0x37b2e6,'indexes':Array[_0x2a0e84(0x21d)](_0x1a2d4c[_0x2a0e84(0x218)])?_0x1a2d4c[_0x2a0e84(0x218)]:[],'relations':Array[_0x2a0e84(0x21d)](_0x5231c9[_0x2a0e84(0x221)])?_0x5231c9[_0x2a0e84(0x221)][_0x2a0e84(0x1e3)](_0x418fab=>({'fromField':_0x418fab[_0x2a0e84(0x21e)],'toDataset':_0x418fab[_0x2a0e84(0x20d)],'toCode':_0x418fab[_0x2a0e84(0x1df)],'toTable':_0x418fab[_0x2a0e84(0x20c)],'toField':_0x418fab['toField'],'labelField':_0x418fab[_0x2a0e84(0x1f8)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x5231c9[_0x2a0e84(0x205)]),...Array[_0x2a0e84(0x21d)](_0x5231c9[_0x2a0e84(0x227)])?{'columnCodeListWithDeleted':_0x5231c9[_0x2a0e84(0x227)]}:{},'formatRules':Array[_0x2a0e84(0x21d)](_0x5231c9['formatRules'])?_0x5231c9['formatRules']:[],'validateRules':Array[_0x2a0e84(0x21d)](_0x5231c9[_0x2a0e84(0x1de)])?_0x5231c9[_0x2a0e84(0x1de)]:[],..._0x2c39ec!==undefined?{'extend':_0x2c39ec}:{},'stats':{'fieldCount':_0x4fa9e3[_0x2a0e84(0x20a)],'operationCount':_0x37b2e6['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x1291ba=a61_0x453b;(function(_0x1bd81a,_0x2445df){const _0x50cb0b=a61_0x453b,_0x24847e=_0x1bd81a();while(!![]){try{const _0x104acf=parseInt(_0x50cb0b(0xb8))/0x1+parseInt(_0x50cb0b(0x8e))/0x2+parseInt(_0x50cb0b(0xa5))/0x3*(parseInt(_0x50cb0b(0xc9))/0x4)+-parseInt(_0x50cb0b(0xaf))/0x5+-parseInt(_0x50cb0b(0xc1))/0x6+parseInt(_0x50cb0b(0x94))/0x7*(-parseInt(_0x50cb0b(0x93))/0x8)+-parseInt(_0x50cb0b(0xb0))/0x9*(-parseInt(_0x50cb0b(0xbd))/0xa);if(_0x104acf===_0x2445df)break;else _0x24847e['push'](_0x24847e['shift']());}catch(_0x3951fd){_0x24847e['push'](_0x24847e['shift']());}}}(a61_0x120e,0xf09fb));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([['businessGroup',{'message':a61_0x1291ba(0x90),'hint':a61_0x1291ba(0xa3)}]]);function a61_0x453b(_0x2a25d1,_0x2157cd){_0x2a25d1=_0x2a25d1-0x8e;const _0x120e01=a61_0x120e();let _0x453b22=_0x120e01[_0x2a25d1];return _0x453b22;}export function parseJsonObjectFlag(_0x1b7b8b,_0x5942aa){const _0x14096a=a61_0x1291ba;if(!_0x1b7b8b)return undefined;let _0x455bc5;try{_0x455bc5=JSON[_0x14096a(0x8f)](_0x1b7b8b);}catch(_0x3f3ec9){const _0x448350=_0x3f3ec9 instanceof Error?_0x3f3ec9[_0x14096a(0x98)]:String(_0x3f3ec9);throw CliErrors[_0x14096a(0xaa)](_0x5942aa+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x448350);}if(!isPlainObject(_0x455bc5)||Array[_0x14096a(0x9e)](_0x455bc5))throw CliErrors['validation'](_0x5942aa+_0x14096a(0xbe));return _0x455bc5;}export function validateExtendPatchKeys(_0x3bb775){const _0x3e0ea4=a61_0x1291ba,_0x3c2632=Object[_0x3e0ea4(0x92)](_0x3bb775);if(_0x3c2632[_0x3e0ea4(0xcf)]===0x0)throw CliErrors[_0x3e0ea4(0xaa)](_0x3e0ea4(0xbb));for(const _0x40a5a7 of _0x3c2632){const _0x3a967d=EXTEND_PATCH_REDIRECTS[_0x3e0ea4(0x97)](_0x40a5a7);if(_0x3a967d)throw CliErrors['validation'](_0x3a967d[_0x3e0ea4(0x98)],_0x3a967d[_0x3e0ea4(0xa7)]);if(!MUTABLE_EXTEND_KEYS['has'](_0x40a5a7))throw CliErrors[_0x3e0ea4(0xaa)](_0x3e0ea4(0x96)+_0x40a5a7,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x5c55b6=a61_0x1291ba,_0xa7835f=Array[_0x5c55b6(0xcd)](MUTABLE_EXTEND_KEYS)[_0x5c55b6(0xc6)]();return _0xa7835f[_0x5c55b6(0xcf)]>0x0?'Allowed\x20keys:\x20'+_0xa7835f[_0x5c55b6(0xc7)](',\x20'):_0x5c55b6(0xc2);}export function applyExtendPatch(_0x4805dd,_0xd42167){const _0x6dcdcb=a61_0x1291ba;validateExtendPatchKeys(_0xd42167);const _0x34e242=deepClone(_0x4805dd),_0x29dfd6=[];for(const [_0x459ca7,_0x26e497]of Object['entries'](_0xd42167)){const _0x3fa985=_0x34e242[_0x459ca7],_0x614076=deepClone(_0x26e497);!deepEqual(_0x3fa985,_0x614076)&&(_0x34e242[_0x459ca7]=_0x614076,_0x29dfd6[_0x6dcdcb(0xb2)]('extend.'+_0x459ca7));}return _0x29dfd6[_0x6dcdcb(0xc6)](),{'after':_0x34e242,'changedPaths':_0x29dfd6,'changed':_0x29dfd6[_0x6dcdcb(0xcf)]>0x0};}export function assertExpectation(_0x19d3ba,_0x1ca7b3){const _0x179397=a61_0x1291ba;if(!_0x1ca7b3)return;for(const [_0x4cdda5,_0x58fc6a]of Object[_0x179397(0xb5)](_0x1ca7b3)){const _0x5aa412=_0x19d3ba[_0x4cdda5];if(!deepEqual(_0x5aa412,_0x58fc6a))throw CliErrors[_0x179397(0xaa)](_0x179397(0xae)+_0x4cdda5,_0x179397(0xb7)+JSON['stringify'](_0x58fc6a)+_0x179397(0xa6)+JSON[_0x179397(0xab)](_0x5aa412));}}export async function buildDatasetExtendUpdateResult({appCode:_0x44d973,input:_0x2a3315,dryRun:_0x9035f5}){const _0x4eb588=a61_0x1291ba;validateInput(_0x2a3315);const _0xa75abf=await getDatasetDetail(_0x2a3315[_0x4eb588(0xc4)]),_0x267064=parseDatasetExtend(_0xa75abf[_0x4eb588(0x9a)]),_0x1b3692=deepClone(_0x267064[_0x4eb588(0x9b)]);assertExpectation(_0x1b3692,_0x2a3315[_0x4eb588(0xcb)]);const {after:_0x1107bd,changedPaths:_0xf7978d,changed:_0xe85f2}=applyExtendPatch(_0x1b3692,_0x2a3315[_0x4eb588(0xb4)]),_0x974177=summarizeDataset(_0xa75abf,_0x2a3315[_0x4eb588(0xc4)]);return _0xe85f2&&!_0x9035f5&&(_0xa75abf[_0x4eb588(0x9a)]=serializeDatasetExtend(_0x1107bd,_0x267064[_0x4eb588(0xce)]),await updateDrivenData(_0xa75abf)),{'ok':!![],'data':{'appCode':_0x44d973,'selector':{'code':_0x2a3315[_0x4eb588(0xc4)]},'dataset':_0x974177,'dryRun':_0x9035f5,'changed':_0xe85f2,'changedPaths':_0xf7978d,'before':{'extend':_0x1b3692},'after':{'extend':_0x1107bd},'submitted':_0xe85f2&&!_0x9035f5},'message':_0xe85f2?_0x9035f5?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0xf7978d[_0x4eb588(0xc7)](',\x20')+')':_0x4eb588(0xa0)+_0xf7978d['join'](',\x20')+')':_0x4eb588(0xad)};}function a61_0x120e(){const _0x3d098d=['6570984UxeZWq','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','data','code','dbName','sort','join','name','214956kJPrNO','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','expect','/smartapi/dataset/update-driven-data','from','shape','length','374580MbvCwi','parse','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','POST','keys','384wjLEhE','52717TaBNNX','dataset','Unsupported\x20patch\x20key:\x20','get','message','datasetName','extend','value','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','--patch-json','isArray','trim','Updated\x20dataset\x20extend\x20(','expect-json','datasetId','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','patch-json','84eXVKcn',',\x20actual\x20','hint','modelCode','dbtableConfig','validation','stringify','tableName','No\x20changes\x20for\x20dataset\x20extend','Expectation\x20mismatch\x20at\x20extend.','7550255TYEiAz','9tUuyfG','str','push','Patch\x20dataset\x20top-level\x20extend\x20safely','patch','entries','object','Expected\x20','527085wQdeqs','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','modelId','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','string','17332310rnDMox','\x20must\x20be\x20a\x20JSON\x20object','extend-update','datasetCode'];a61_0x120e=function(){return _0x3d098d;};return a61_0x120e();}export const datasetExtendUpdate={'service':a61_0x1291ba(0x95),'command':a61_0x1291ba(0xbf),'description':a61_0x1291ba(0xb3),'risk':'write','flags':[CODE_FLAG,{'name':a61_0x1291ba(0xa4),'type':a61_0x1291ba(0xbc),'required':!![],'description':a61_0x1291ba(0xb9)},{'name':a61_0x1291ba(0xa1),'type':a61_0x1291ba(0xbc),'required':![],'description':a61_0x1291ba(0xca)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4e1831){validateInput(readExtendUpdateInput(_0x4e1831));},async 'dryRun'(_0x71839d){const _0x2c01e3=a61_0x1291ba,_0x47d6bc=await buildDatasetExtendUpdateResult({'appCode':_0x71839d['appCode'],'input':readExtendUpdateInput(_0x71839d),'dryRun':!![]});return{'method':_0x2c01e3(0x91),'url':_0x2c01e3(0xcc),'body':_0x47d6bc[_0x2c01e3(0xc3)],'description':_0x47d6bc[_0x2c01e3(0x98)]};},async 'execute'(_0x46ef61){return buildDatasetExtendUpdateResult({'appCode':_0x46ef61['appCode'],'input':readExtendUpdateInput(_0x46ef61),'dryRun':![]});}};function readExtendUpdateInput(_0x20ea9f){const _0x4d3edd=a61_0x1291ba,_0x54e1c3=trim(_0x20ea9f[_0x4d3edd(0xb1)](_0x4d3edd(0xc4))),_0x264086=parseJsonObjectFlag(_0x20ea9f['str']('patch-json'),_0x4d3edd(0x9d)),_0x3b5e3a=parseJsonObjectFlag(_0x20ea9f[_0x4d3edd(0xb1)](_0x4d3edd(0xa1)),'--expect-json');return{'code':_0x54e1c3,'patch':_0x264086||{},'expect':_0x3b5e3a};}function validateInput(_0x162a56){const _0x2267d6=a61_0x1291ba;if(!_0x162a56['code'])throw CliErrors[_0x2267d6(0xaa)]('--code\x20is\x20required');validateExtendPatchKeys(_0x162a56[_0x2267d6(0xb4)]);}function parseDatasetExtend(_0x4ecd0d){const _0x2c65b5=a61_0x1291ba;if(typeof _0x4ecd0d===_0x2c65b5(0xbc)){const _0x2de770=_0x4ecd0d[_0x2c65b5(0x9f)]();if(!_0x2de770)return{'value':{},'shape':'string'};let _0x1d1f0f;try{_0x1d1f0f=JSON[_0x2c65b5(0x8f)](_0x2de770);}catch(_0x5e578c){const _0x307149=_0x5e578c instanceof Error?_0x5e578c[_0x2c65b5(0x98)]:String(_0x5e578c);throw CliErrors[_0x2c65b5(0xaa)]('Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x307149);}if(!isPlainObject(_0x1d1f0f)||Array[_0x2c65b5(0x9e)](_0x1d1f0f))throw CliErrors[_0x2c65b5(0xaa)](_0x2c65b5(0x9c));return{'value':_0x1d1f0f,'shape':_0x2c65b5(0xbc)};}if(_0x4ecd0d===undefined||_0x4ecd0d===null)return{'value':{},'shape':_0x2c65b5(0xbc)};if(!isPlainObject(_0x4ecd0d)||Array[_0x2c65b5(0x9e)](_0x4ecd0d))throw CliErrors['validation'](_0x2c65b5(0x9c));return{'value':_0x4ecd0d,'shape':'object'};}function serializeDatasetExtend(_0x120d1b,_0x445e2c){const _0x4dc64f=a61_0x1291ba;return _0x445e2c===_0x4dc64f(0xbc)?JSON['stringify'](_0x120d1b):_0x120d1b;}function summarizeDataset(_0x32604f,_0x3be285){const _0x2f95d9=a61_0x1291ba,_0x58d7ba=isPlainObject(_0x32604f[_0x2f95d9(0x95)])?_0x32604f[_0x2f95d9(0x95)]:{},_0x50ea46=isPlainObject(_0x32604f[_0x2f95d9(0xa9)])?_0x32604f[_0x2f95d9(0xa9)]:{};return{'id':_0x32604f[_0x2f95d9(0xba)]??_0x32604f['id']??_0x58d7ba[_0x2f95d9(0xa2)]??null,'code':_0x32604f[_0x2f95d9(0xa8)]??_0x32604f['code']??_0x58d7ba[_0x2f95d9(0xc0)]??_0x3be285,'name':_0x32604f[_0x2f95d9(0xc8)]??_0x58d7ba[_0x2f95d9(0x99)]??null,'table':_0x50ea46[_0x2f95d9(0xac)]??_0x58d7ba[_0x2f95d9(0xac)]??null,'db':_0x50ea46[_0x2f95d9(0xc5)]??_0x50ea46['dbId']??null};}function deepClone(_0x3b966b){const _0x1fdfb9=a61_0x1291ba;if(_0x3b966b===undefined)return _0x3b966b;return JSON[_0x1fdfb9(0x8f)](JSON[_0x1fdfb9(0xab)](_0x3b966b));}function deepEqual(_0x3d5a81,_0xe9dc6a){const _0x567718=a61_0x1291ba;return JSON[_0x567718(0xab)](_0x3d5a81)===JSON['stringify'](_0xe9dc6a);}function isPlainObject(_0x321f20){const _0x1d568f=a61_0x1291ba;return Boolean(_0x321f20)&&typeof _0x321f20===_0x1d568f(0xb6)&&!Array[_0x1d568f(0x9e)](_0x321f20);}function trim(_0xef0d41){const _0x504493=a61_0x1291ba,_0x2c281a=String(_0xef0d41||'')[_0x504493(0x9f)]();return _0x2c281a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62_0x246ddb=a62_0x35c1;(function(_0x1115f5,_0x1336bb){const _0x2589e0=a62_0x35c1,_0x7dfeb6=_0x1115f5();while(!![]){try{const _0x3b478d=-parseInt(_0x2589e0(0x1bc))/0x1+parseInt(_0x2589e0(0x17e))/0x2+-parseInt(_0x2589e0(0x191))/0x3+-parseInt(_0x2589e0(0x1b0))/0x4+parseInt(_0x2589e0(0x1a1))/0x5+parseInt(_0x2589e0(0x19a))/0x6+parseInt(_0x2589e0(0x1a7))/0x7;if(_0x3b478d===_0x1336bb)break;else _0x7dfeb6['push'](_0x7dfeb6['shift']());}catch(_0x185ec8){_0x7dfeb6['push'](_0x7dfeb6['shift']());}}}(a62_0x4ff8,0x8bd2a));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',a62_0x246ddb(0x198),a62_0x246ddb(0x19d),a62_0x246ddb(0x1ad),a62_0x246ddb(0x177),a62_0x246ddb(0x1b3),a62_0x246ddb(0x1bd),a62_0x246ddb(0x193),'deprecated']),FORBIDDEN_FIELD_KEYS=new Set(['id','name',a62_0x246ddb(0x184),a62_0x246ddb(0x18c),a62_0x246ddb(0x1b6),a62_0x246ddb(0x19e),'dbFieldName',a62_0x246ddb(0x183),'deleted','pkField',a62_0x246ddb(0x1b2),a62_0x246ddb(0x1a9)]);export function parseJsonObjectFlag(_0x89c5f0,_0x3f54b1){const _0x1aa482=a62_0x246ddb;if(!_0x89c5f0)return undefined;let _0xfdce89;try{_0xfdce89=JSON[_0x1aa482(0x185)](_0x89c5f0);}catch(_0x170fec){const _0x4f1f53=_0x170fec instanceof Error?_0x170fec[_0x1aa482(0x1bf)]:String(_0x170fec);throw CliErrors[_0x1aa482(0x1a0)](_0x3f54b1+_0x1aa482(0x1aa)+_0x4f1f53);}if(!isPlainObject(_0xfdce89)||Array[_0x1aa482(0x187)](_0xfdce89))throw CliErrors[_0x1aa482(0x1a0)](_0x3f54b1+'\x20must\x20be\x20a\x20JSON\x20object');return _0xfdce89;}export function validatePatchKeys(_0x9a54ea){const _0x1d955f=a62_0x246ddb,_0x4dfe7e=Object['keys'](_0x9a54ea);if(_0x4dfe7e[_0x1d955f(0x1be)]===0x0)throw CliErrors['validation'](_0x1d955f(0x17c));for(const _0x76749d of _0x4dfe7e){if(FORBIDDEN_FIELD_KEYS[_0x1d955f(0x189)](_0x76749d))throw CliErrors[_0x1d955f(0x1a0)]('Forbidden\x20patch\x20key:\x20'+_0x76749d);if(!MUTABLE_FIELD_KEYS['has'](_0x76749d))throw CliErrors[_0x1d955f(0x1a0)]('Unsupported\x20patch\x20key:\x20'+_0x76749d,_0x1d955f(0x197)+Array[_0x1d955f(0x1a2)](MUTABLE_FIELD_KEYS)[_0x1d955f(0x180)](',\x20'));}}export function applyFieldPatch(_0x37b435,_0x23eb87){const _0x15ad21=a62_0x246ddb;validatePatchKeys(_0x23eb87);const _0x59e636=deepClone(_0x37b435),_0x4af5f1=new Set();for(const [_0x129706,_0x382aec]of Object['entries'](_0x23eb87)){const _0x4a9e8a=_0x59e636[_0x129706],_0x22b287=mergePatchValue(_0x4a9e8a,_0x382aec);!deepEqual(_0x4a9e8a,_0x22b287)&&(_0x59e636[_0x129706]=_0x22b287,_0x4af5f1['add'](_0x129706),collectChangedPaths(_0x129706,_0x4a9e8a,_0x22b287,_0x4af5f1));}return{'after':_0x59e636,'changedPaths':Array['from'](_0x4af5f1)[_0x15ad21(0x1b5)](),'changed':_0x4af5f1[_0x15ad21(0x186)]>0x0};}export function assertExpectation(_0x5b8780,_0x2da124){const _0x109b22=a62_0x246ddb;if(!_0x2da124)return;for(const [_0x1a4087,_0x1d126b]of Object[_0x109b22(0x17a)](_0x2da124)){const _0x3e4486=_0x5b8780[_0x1a4087];if(!deepEqual(_0x3e4486,_0x1d126b))throw CliErrors[_0x109b22(0x1a0)]('Expectation\x20mismatch\x20at\x20'+_0x1a4087,_0x109b22(0x18e)+JSON['stringify'](_0x1d126b)+_0x109b22(0x1ab)+JSON[_0x109b22(0x195)](_0x3e4486));}}function a62_0x4ff8(){const _0x3721e3=['autoIncrement','datetimeFormat','data','sort','dbTypeLen','properties','/smartapi/dataset/update-driven-data','keys','appCode','write','250593oMCvdL','defaultAggregation','length','message','patch-json','expect-json','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','required','\x20would\x20change\x20(','add','entries','str','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','trim','1526124GOjWXY','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','join','Dry-run:\x20dataset\x20field\x20','modelCode','tableName','code','parse','size','isArray','string','has','expect','modelId','dbType','Updated\x20dataset\x20field\x20','Expected\x20','object','--field\x20is\x20required','1461858NLtlfZ','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','chartRole','datasetCode','stringify','field','Allowed\x20keys:\x20','displayName','POST','3031596lXSxwM','fields','patch','description','dbTypeScale','Field\x20not\x20found:\x20','validation','1726340XFVoBL','from','dataset','--patch-json','No\x20changes\x20for\x20dataset\x20field\x20','datasetName','930608WGJvfR','--expect-json','systemRetain','\x20must\x20be\x20valid\x20JSON\x20object:\x20',',\x20actual\x20','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','options','findIndex','datasetId','1743788cGrlCB','dbtableConfig'];a62_0x4ff8=function(){return _0x3721e3;};return a62_0x4ff8();}export async function buildDatasetFieldUpdateResult({appCode:_0x4fca4c,input:_0x3aaa17,dryRun:_0x1d3d17}){const _0xe9f7e7=a62_0x246ddb;validateInput(_0x3aaa17);const _0x199c58=await getDatasetDetail(_0x3aaa17[_0xe9f7e7(0x184)]),_0x2ea530=readFieldArray(_0x199c58),_0x40818b=_0x2ea530[_0xe9f7e7(0x1ae)](_0x2f52b3=>_0x2f52b3?.['name']===_0x3aaa17[_0xe9f7e7(0x196)]);if(_0x40818b<0x0)throw CliErrors[_0xe9f7e7(0x1a0)](_0xe9f7e7(0x19f)+_0x3aaa17[_0xe9f7e7(0x196)]);const _0x45ac95=deepClone(_0x2ea530[_0x40818b]);assertExpectation(_0x45ac95,_0x3aaa17[_0xe9f7e7(0x18a)]);const {after:_0x45a955,changedPaths:_0x5ec355,changed:_0x104f49}=applyFieldPatch(_0x45ac95,_0x3aaa17[_0xe9f7e7(0x19c)]),_0x1055b6=summarizeDataset(_0x199c58,_0x3aaa17[_0xe9f7e7(0x184)]);return _0x104f49&&!_0x1d3d17&&(_0x2ea530[_0x40818b]=_0x45a955,await updateDrivenData(_0x199c58)),{'ok':!![],'data':{'appCode':_0x4fca4c,'selector':{'code':_0x3aaa17['code']},'dataset':_0x1055b6,'field':{'id':_0x45ac95['id']??null,'name':_0x45ac95['name']},'dryRun':_0x1d3d17,'changed':_0x104f49,'changedPaths':_0x5ec355,'before':_0x45ac95,'after':_0x45a955,'submitted':_0x104f49&&!_0x1d3d17},'message':_0x104f49?_0x1d3d17?_0xe9f7e7(0x181)+_0x3aaa17[_0xe9f7e7(0x196)]+_0xe9f7e7(0x178)+_0x5ec355[_0xe9f7e7(0x180)](',\x20')+')':_0xe9f7e7(0x18d)+_0x3aaa17['field']+'\x20('+_0x5ec355[_0xe9f7e7(0x180)](',\x20')+')':_0xe9f7e7(0x1a5)+_0x3aaa17[_0xe9f7e7(0x196)]};}export const datasetFieldUpdate={'service':a62_0x246ddb(0x1a3),'command':'field-update','description':a62_0x246ddb(0x192),'risk':a62_0x246ddb(0x1bb),'flags':[CODE_FLAG,{'name':a62_0x246ddb(0x196),'type':a62_0x246ddb(0x188),'required':!![],'description':'Exact\x20raw\x20fields[].name\x20to\x20patch'},{'name':a62_0x246ddb(0x1c0),'type':a62_0x246ddb(0x188),'required':!![],'description':a62_0x246ddb(0x17f)},{'name':a62_0x246ddb(0x1c1),'type':'string','required':![],'description':a62_0x246ddb(0x1ac)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49a612){validateInput(readFieldUpdateInput(_0x49a612));},async 'dryRun'(_0x33e986){const _0x8158ed=a62_0x246ddb,_0x1f9a2=await buildDatasetFieldUpdateResult({'appCode':_0x33e986[_0x8158ed(0x1ba)],'input':readFieldUpdateInput(_0x33e986),'dryRun':!![]});return{'method':_0x8158ed(0x199),'url':_0x8158ed(0x1b8),'body':_0x1f9a2[_0x8158ed(0x1b4)],'description':_0x1f9a2[_0x8158ed(0x1bf)]};},async 'execute'(_0x309928){const _0x555437=a62_0x246ddb;return buildDatasetFieldUpdateResult({'appCode':_0x309928[_0x555437(0x1ba)],'input':readFieldUpdateInput(_0x309928),'dryRun':![]});}};function readFieldUpdateInput(_0x59a1c1){const _0x1874e6=a62_0x246ddb,_0xb989ea=trim(_0x59a1c1[_0x1874e6(0x17b)](_0x1874e6(0x184))),_0x127d4b=emptyToUndefined(_0x59a1c1[_0x1874e6(0x17b)]('field')),_0x4c4ae3=parseJsonObjectFlag(_0x59a1c1[_0x1874e6(0x17b)](_0x1874e6(0x1c0)),_0x1874e6(0x1a4)),_0x43e23f=parseJsonObjectFlag(_0x59a1c1[_0x1874e6(0x17b)]('expect-json'),_0x1874e6(0x1a8));return{'code':_0xb989ea,'field':_0x127d4b||'','patch':_0x4c4ae3||{},'expect':_0x43e23f};}function validateInput(_0x5ebab1){const _0x48fedd=a62_0x246ddb;if(!_0x5ebab1[_0x48fedd(0x184)])throw CliErrors[_0x48fedd(0x1a0)]('--code\x20is\x20required');if(!_0x5ebab1[_0x48fedd(0x196)])throw CliErrors[_0x48fedd(0x1a0)](_0x48fedd(0x190));validatePatchKeys(_0x5ebab1[_0x48fedd(0x19c)]);}function readFieldArray(_0x215285){const _0x403353=a62_0x246ddb;if(Array[_0x403353(0x187)](_0x215285[_0x403353(0x19b)]))return _0x215285[_0x403353(0x19b)];if(Array[_0x403353(0x187)](_0x215285[_0x403353(0x1b7)]))return _0x215285['properties'];throw CliErrors[_0x403353(0x1a0)](_0x403353(0x176));}function summarizeDataset(_0x29b801,_0x2df752){const _0x1d6d49=a62_0x246ddb,_0x537023=isPlainObject(_0x29b801[_0x1d6d49(0x1a3)])?_0x29b801[_0x1d6d49(0x1a3)]:{},_0x274294=isPlainObject(_0x29b801['dbtableConfig'])?_0x29b801[_0x1d6d49(0x1b1)]:{};return{'id':_0x29b801[_0x1d6d49(0x18b)]??_0x29b801['id']??_0x537023[_0x1d6d49(0x1af)]??null,'code':_0x29b801[_0x1d6d49(0x182)]??_0x29b801['code']??_0x537023[_0x1d6d49(0x194)]??_0x2df752,'name':_0x29b801['name']??_0x537023[_0x1d6d49(0x1a6)]??null,'table':_0x274294[_0x1d6d49(0x183)]??_0x537023[_0x1d6d49(0x183)]??null,'db':_0x274294['dbName']??_0x274294['dbId']??null};}function mergePatchValue(_0x457e52,_0x1d8373){if(isPlainObject(_0x457e52)&&isPlainObject(_0x1d8373))return deepMerge(_0x457e52,_0x1d8373);return deepClone(_0x1d8373);}function deepMerge(_0x3f0734,_0x2cbf17){const _0x4cf2bd=a62_0x246ddb,_0x58d94f=deepClone(_0x3f0734);for(const [_0x4786bd,_0x26bc96]of Object[_0x4cf2bd(0x17a)](_0x2cbf17)){_0x58d94f[_0x4786bd]=isPlainObject(_0x58d94f[_0x4786bd])&&isPlainObject(_0x26bc96)?deepMerge(_0x58d94f[_0x4786bd],_0x26bc96):deepClone(_0x26bc96);}return _0x58d94f;}function collectChangedPaths(_0x2bc0e2,_0x356cde,_0x1b6911,_0x14bef9){const _0x38a0ab=a62_0x246ddb;if(!isPlainObject(_0x356cde)||!isPlainObject(_0x1b6911))return;const _0x645752=new Set([...Object[_0x38a0ab(0x1b9)](_0x356cde),...Object[_0x38a0ab(0x1b9)](_0x1b6911)]);for(const _0x4c4cec of _0x645752){const _0xbb1f0e=_0x356cde[_0x4c4cec],_0x3c0cde=_0x1b6911[_0x4c4cec];!deepEqual(_0xbb1f0e,_0x3c0cde)&&_0x14bef9[_0x38a0ab(0x179)](_0x2bc0e2+'.'+_0x4c4cec);}}function deepClone(_0x190b04){if(_0x190b04===undefined)return _0x190b04;return JSON['parse'](JSON['stringify'](_0x190b04));}function deepEqual(_0x1d176e,_0x42c661){const _0x463241=a62_0x246ddb;return JSON[_0x463241(0x195)](_0x1d176e)===JSON['stringify'](_0x42c661);}function isPlainObject(_0x8f7286){const _0x56dd63=a62_0x246ddb;return Boolean(_0x8f7286)&&typeof _0x8f7286===_0x56dd63(0x18f)&&!Array[_0x56dd63(0x187)](_0x8f7286);}function a62_0x35c1(_0x131d9b,_0x5c7080){_0x131d9b=_0x131d9b-0x176;const _0x4ff820=a62_0x4ff8();let _0x35c10c=_0x4ff820[_0x131d9b];return _0x35c10c;}function emptyToUndefined(_0x262ff7){const _0x412ddb=a62_0x246ddb,_0x1c2bdb=String(_0x262ff7||'')[_0x412ddb(0x17d)]();return _0x1c2bdb||undefined;}function trim(_0x1c0233){const _0x29a211=a62_0x246ddb;return String(_0x1c0233||'')[_0x29a211(0x17d)]();}
|
|
1
|
+
const a62_0x569b75=a62_0x2ca1;(function(_0x565dc8,_0x125db9){const _0x4d41fb=a62_0x2ca1,_0x6a34c0=_0x565dc8();while(!![]){try{const _0x15f283=-parseInt(_0x4d41fb(0x1ac))/0x1*(-parseInt(_0x4d41fb(0x181))/0x2)+parseInt(_0x4d41fb(0x1b6))/0x3+-parseInt(_0x4d41fb(0x174))/0x4+-parseInt(_0x4d41fb(0x18e))/0x5*(-parseInt(_0x4d41fb(0x188))/0x6)+-parseInt(_0x4d41fb(0x1a0))/0x7*(parseInt(_0x4d41fb(0x1b4))/0x8)+parseInt(_0x4d41fb(0x1a6))/0x9*(-parseInt(_0x4d41fb(0x175))/0xa)+parseInt(_0x4d41fb(0x17d))/0xb*(-parseInt(_0x4d41fb(0x199))/0xc);if(_0x15f283===_0x125db9)break;else _0x6a34c0['push'](_0x6a34c0['shift']());}catch(_0x232f1d){_0x6a34c0['push'](_0x6a34c0['shift']());}}}(a62_0x5f0e,0xd282e));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([a62_0x569b75(0x19b),'displayName',a62_0x569b75(0x197),'options',a62_0x569b75(0x1ba),'datetimeFormat',a62_0x569b75(0x186),a62_0x569b75(0x180),'deprecated']),FORBIDDEN_FIELD_KEYS=new Set(['id','name',a62_0x569b75(0x17f),'dbType','dbTypeLen',a62_0x569b75(0x19f),a62_0x569b75(0x17c),a62_0x569b75(0x182),'deleted',a62_0x569b75(0x1b3),a62_0x569b75(0x19a),a62_0x569b75(0x195)]);function a62_0x5f0e(){const _0x1f6d0a=['Allowed\x20keys:\x20','message','/smartapi/dataset/update-driven-data','object','field-update','pkField','204968sOjtel','stringify','2447163OOmkKD','dbId','str','modelId','required','has','\x20must\x20be\x20a\x20JSON\x20object','from','Expectation\x20mismatch\x20at\x20','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','Unsupported\x20patch\x20key:\x20','write','1591724NSldtF','10490FstmxL','entries','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','datasetName','--field\x20is\x20required','isArray','Expected\x20','dbFieldName','6116CODLXb','Updated\x20dataset\x20field\x20','code','chartRole','38LYMaKd','tableName','add','Exact\x20raw\x20fields[].name\x20to\x20patch','dataset','defaultAggregation','\x20must\x20be\x20valid\x20JSON\x20object:\x20','85506ehyoxI','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','keys','parse','dbName','495ZjKVCb','--expect-json','join','fields','sort','expect-json','length','systemRetain','appCode','description','data','216HfIMnr','autoIncrement','doType','validation','patch','findIndex','dbTypeScale','133knNxer','trim','field','name','--patch-json','modelCode','8577lrrILa','No\x20changes\x20for\x20dataset\x20field\x20','patch-json','datasetId','size','dbtableConfig','27901zsIuVp','properties'];a62_0x5f0e=function(){return _0x1f6d0a;};return a62_0x5f0e();}export function parseJsonObjectFlag(_0x2a339a,_0x4f3eb3){const _0x189644=a62_0x569b75;if(!_0x2a339a)return undefined;let _0x3f3f84;try{_0x3f3f84=JSON[_0x189644(0x18c)](_0x2a339a);}catch(_0x4a7c82){const _0x9860ec=_0x4a7c82 instanceof Error?_0x4a7c82[_0x189644(0x1af)]:String(_0x4a7c82);throw CliErrors[_0x189644(0x19c)](_0x4f3eb3+_0x189644(0x187)+_0x9860ec);}if(!isPlainObject(_0x3f3f84)||Array['isArray'](_0x3f3f84))throw CliErrors['validation'](_0x4f3eb3+_0x189644(0x1bc));return _0x3f3f84;}export function validatePatchKeys(_0x1ac8a8){const _0x2b4443=a62_0x569b75,_0x1e2c30=Object[_0x2b4443(0x18b)](_0x1ac8a8);if(_0x1e2c30[_0x2b4443(0x194)]===0x0)throw CliErrors[_0x2b4443(0x19c)](_0x2b4443(0x177));for(const _0x254bfb of _0x1e2c30){if(FORBIDDEN_FIELD_KEYS[_0x2b4443(0x1bb)](_0x254bfb))throw CliErrors[_0x2b4443(0x19c)]('Forbidden\x20patch\x20key:\x20'+_0x254bfb);if(!MUTABLE_FIELD_KEYS['has'](_0x254bfb))throw CliErrors[_0x2b4443(0x19c)](_0x2b4443(0x172)+_0x254bfb,_0x2b4443(0x1ae)+Array[_0x2b4443(0x1bd)](MUTABLE_FIELD_KEYS)['join'](',\x20'));}}export function applyFieldPatch(_0x3821f2,_0x1f80e8){const _0x11faba=a62_0x569b75;validatePatchKeys(_0x1f80e8);const _0x5bd659=deepClone(_0x3821f2),_0x31652e=new Set();for(const [_0x2bed7c,_0x13e0ed]of Object[_0x11faba(0x176)](_0x1f80e8)){const _0xc118d1=_0x5bd659[_0x2bed7c],_0x499ce2=mergePatchValue(_0xc118d1,_0x13e0ed);!deepEqual(_0xc118d1,_0x499ce2)&&(_0x5bd659[_0x2bed7c]=_0x499ce2,_0x31652e['add'](_0x2bed7c),collectChangedPaths(_0x2bed7c,_0xc118d1,_0x499ce2,_0x31652e));}return{'after':_0x5bd659,'changedPaths':Array[_0x11faba(0x1bd)](_0x31652e)[_0x11faba(0x192)](),'changed':_0x31652e[_0x11faba(0x1aa)]>0x0};}export function assertExpectation(_0x1aa09e,_0x5add8b){const _0x38218c=a62_0x569b75;if(!_0x5add8b)return;for(const [_0x52f7d7,_0x4bfd6e]of Object[_0x38218c(0x176)](_0x5add8b)){const _0x59c1be=_0x1aa09e[_0x52f7d7];if(!deepEqual(_0x59c1be,_0x4bfd6e))throw CliErrors[_0x38218c(0x19c)](_0x38218c(0x1be)+_0x52f7d7,_0x38218c(0x17b)+JSON['stringify'](_0x4bfd6e)+',\x20actual\x20'+JSON[_0x38218c(0x1b5)](_0x59c1be));}}export async function buildDatasetFieldUpdateResult({appCode:_0x40b804,input:_0x408919,dryRun:_0x5ae20d}){const _0x155070=a62_0x569b75;validateInput(_0x408919);const _0x27ec86=await getDatasetDetail(_0x408919[_0x155070(0x17f)]),_0x5f1b10=readFieldArray(_0x27ec86),_0xeeb4d7=_0x5f1b10[_0x155070(0x19e)](_0x1f5b7b=>_0x1f5b7b?.[_0x155070(0x1a3)]===_0x408919['field']);if(_0xeeb4d7<0x0)throw CliErrors['validation']('Field\x20not\x20found:\x20'+_0x408919[_0x155070(0x1a2)]);const _0x255cba=deepClone(_0x5f1b10[_0xeeb4d7]);assertExpectation(_0x255cba,_0x408919['expect']);const {after:_0x369bd1,changedPaths:_0x176374,changed:_0x32ae94}=applyFieldPatch(_0x255cba,_0x408919[_0x155070(0x19d)]),_0x12ee4d=summarizeDataset(_0x27ec86,_0x408919[_0x155070(0x17f)]);return _0x32ae94&&!_0x5ae20d&&(_0x5f1b10[_0xeeb4d7]=_0x369bd1,await updateDrivenData(_0x27ec86)),{'ok':!![],'data':{'appCode':_0x40b804,'selector':{'code':_0x408919[_0x155070(0x17f)]},'dataset':_0x12ee4d,'field':{'id':_0x255cba['id']??null,'name':_0x255cba['name']},'dryRun':_0x5ae20d,'changed':_0x32ae94,'changedPaths':_0x176374,'before':_0x255cba,'after':_0x369bd1,'submitted':_0x32ae94&&!_0x5ae20d},'message':_0x32ae94?_0x5ae20d?'Dry-run:\x20dataset\x20field\x20'+_0x408919['field']+'\x20would\x20change\x20('+_0x176374[_0x155070(0x190)](',\x20')+')':_0x155070(0x17e)+_0x408919[_0x155070(0x1a2)]+'\x20('+_0x176374[_0x155070(0x190)](',\x20')+')':_0x155070(0x1a7)+_0x408919['field']};}export const datasetFieldUpdate={'service':a62_0x569b75(0x185),'command':a62_0x569b75(0x1b2),'description':a62_0x569b75(0x18a),'risk':a62_0x569b75(0x173),'flags':[CODE_FLAG,{'name':a62_0x569b75(0x1a2),'type':'string','required':!![],'description':a62_0x569b75(0x184)},{'name':a62_0x569b75(0x1a8),'type':'string','required':!![],'description':a62_0x569b75(0x189)},{'name':a62_0x569b75(0x193),'type':'string','required':![],'description':a62_0x569b75(0x171)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xa9069){validateInput(readFieldUpdateInput(_0xa9069));},async 'dryRun'(_0x32603c){const _0x38eca9=a62_0x569b75,_0x513315=await buildDatasetFieldUpdateResult({'appCode':_0x32603c[_0x38eca9(0x196)],'input':readFieldUpdateInput(_0x32603c),'dryRun':!![]});return{'method':'POST','url':_0x38eca9(0x1b0),'body':_0x513315[_0x38eca9(0x198)],'description':_0x513315[_0x38eca9(0x1af)]};},async 'execute'(_0xd74e80){return buildDatasetFieldUpdateResult({'appCode':_0xd74e80['appCode'],'input':readFieldUpdateInput(_0xd74e80),'dryRun':![]});}};function readFieldUpdateInput(_0x502e79){const _0x349dae=a62_0x569b75,_0x32dfe3=trim(_0x502e79[_0x349dae(0x1b8)](_0x349dae(0x17f))),_0x262b48=emptyToUndefined(_0x502e79['str'](_0x349dae(0x1a2))),_0x39fc4c=parseJsonObjectFlag(_0x502e79[_0x349dae(0x1b8)](_0x349dae(0x1a8)),_0x349dae(0x1a4)),_0x9ef2ec=parseJsonObjectFlag(_0x502e79[_0x349dae(0x1b8)](_0x349dae(0x193)),_0x349dae(0x18f));return{'code':_0x32dfe3,'field':_0x262b48||'','patch':_0x39fc4c||{},'expect':_0x9ef2ec};}function validateInput(_0x5caa55){const _0x4f3d8f=a62_0x569b75;if(!_0x5caa55[_0x4f3d8f(0x17f)])throw CliErrors[_0x4f3d8f(0x19c)]('--code\x20is\x20required');if(!_0x5caa55['field'])throw CliErrors['validation'](_0x4f3d8f(0x179));validatePatchKeys(_0x5caa55['patch']);}function readFieldArray(_0x90de88){const _0x565c3b=a62_0x569b75;if(Array[_0x565c3b(0x17a)](_0x90de88[_0x565c3b(0x191)]))return _0x90de88['fields'];if(Array[_0x565c3b(0x17a)](_0x90de88[_0x565c3b(0x1ad)]))return _0x90de88[_0x565c3b(0x1ad)];throw CliErrors[_0x565c3b(0x19c)]('Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]');}function summarizeDataset(_0x59b240,_0x130ff9){const _0x59f60f=a62_0x569b75,_0x10074=isPlainObject(_0x59b240[_0x59f60f(0x185)])?_0x59b240['dataset']:{},_0x33ea2f=isPlainObject(_0x59b240[_0x59f60f(0x1ab)])?_0x59b240[_0x59f60f(0x1ab)]:{};return{'id':_0x59b240[_0x59f60f(0x1b9)]??_0x59b240['id']??_0x10074[_0x59f60f(0x1a9)]??null,'code':_0x59b240[_0x59f60f(0x1a5)]??_0x59b240['code']??_0x10074['datasetCode']??_0x130ff9,'name':_0x59b240[_0x59f60f(0x1a3)]??_0x10074[_0x59f60f(0x178)]??null,'table':_0x33ea2f[_0x59f60f(0x182)]??_0x10074[_0x59f60f(0x182)]??null,'db':_0x33ea2f[_0x59f60f(0x18d)]??_0x33ea2f[_0x59f60f(0x1b7)]??null};}function mergePatchValue(_0x224ff7,_0x383d0b){if(isPlainObject(_0x224ff7)&&isPlainObject(_0x383d0b))return deepMerge(_0x224ff7,_0x383d0b);return deepClone(_0x383d0b);}function deepMerge(_0x1f2975,_0x4068a2){const _0x2270b9=a62_0x569b75,_0x4c1c8f=deepClone(_0x1f2975);for(const [_0x3b332a,_0x1818bf]of Object[_0x2270b9(0x176)](_0x4068a2)){_0x4c1c8f[_0x3b332a]=isPlainObject(_0x4c1c8f[_0x3b332a])&&isPlainObject(_0x1818bf)?deepMerge(_0x4c1c8f[_0x3b332a],_0x1818bf):deepClone(_0x1818bf);}return _0x4c1c8f;}function collectChangedPaths(_0xafabdc,_0xd0bd5a,_0x5ca8e6,_0x31be32){const _0x58a44a=a62_0x569b75;if(!isPlainObject(_0xd0bd5a)||!isPlainObject(_0x5ca8e6))return;const _0x238b21=new Set([...Object[_0x58a44a(0x18b)](_0xd0bd5a),...Object['keys'](_0x5ca8e6)]);for(const _0x12f32f of _0x238b21){const _0x396394=_0xd0bd5a[_0x12f32f],_0x500a9d=_0x5ca8e6[_0x12f32f];!deepEqual(_0x396394,_0x500a9d)&&_0x31be32[_0x58a44a(0x183)](_0xafabdc+'.'+_0x12f32f);}}function deepClone(_0x5151e3){const _0x43b9df=a62_0x569b75;if(_0x5151e3===undefined)return _0x5151e3;return JSON[_0x43b9df(0x18c)](JSON[_0x43b9df(0x1b5)](_0x5151e3));}function deepEqual(_0x54e961,_0x312541){const _0x2a361b=a62_0x569b75;return JSON[_0x2a361b(0x1b5)](_0x54e961)===JSON[_0x2a361b(0x1b5)](_0x312541);}function a62_0x2ca1(_0x441f6c,_0x27d0f1){_0x441f6c=_0x441f6c-0x171;const _0x5f0e78=a62_0x5f0e();let _0x2ca1f8=_0x5f0e78[_0x441f6c];return _0x2ca1f8;}function isPlainObject(_0x1c041d){const _0x327000=a62_0x569b75;return Boolean(_0x1c041d)&&typeof _0x1c041d===_0x327000(0x1b1)&&!Array['isArray'](_0x1c041d);}function emptyToUndefined(_0x2a851a){const _0x5597a3=a62_0x569b75,_0x3f95c4=String(_0x2a851a||'')[_0x5597a3(0x1a1)]();return _0x3f95c4||undefined;}function trim(_0x4acab3){return String(_0x4acab3||'')['trim']();}
|