@lovrabet/rabetbase-cli 2.3.3-beta.4 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/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 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/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
|
-
(function(
|
|
1
|
+
(function(_0x465d43,_0x496d7b){const _0x7e848a=a49_0x24ca,_0x5644dc=_0x465d43();while(!![]){try{const _0x466431=parseInt(_0x7e848a(0x1e6))/0x1+parseInt(_0x7e848a(0x1e7))/0x2*(-parseInt(_0x7e848a(0x1e9))/0x3)+parseInt(_0x7e848a(0x1ed))/0x4*(-parseInt(_0x7e848a(0x1f0))/0x5)+parseInt(_0x7e848a(0x1ea))/0x6+-parseInt(_0x7e848a(0x1ec))/0x7*(parseInt(_0x7e848a(0x1e5))/0x8)+-parseInt(_0x7e848a(0x1ee))/0x9*(-parseInt(_0x7e848a(0x1ef))/0xa)+parseInt(_0x7e848a(0x1e8))/0xb*(parseInt(_0x7e848a(0x1eb))/0xc);if(_0x466431===_0x496d7b)break;else _0x5644dc['push'](_0x5644dc['shift']());}catch(_0x4d283b){_0x5644dc['push'](_0x5644dc['shift']());}}}(a49_0x32bc,0x2e09d));function a49_0x24ca(_0x5e054,_0x42051e){_0x5e054=_0x5e054-0x1e5;const _0x32bc32=a49_0x32bc();let _0x24ca42=_0x32bc32[_0x5e054];return _0x24ca42;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a49_0x32bc(){const _0x1e63b6=['1103874phDtMu','1360740DqfMjy','308Ukdfkl','16424LBJxJE','207ymnTdR','61150eFJgFu','225dBoBcf','14856frWbfn','119344kJNXwT','25578KLyNNU','11UTRcHX','24BxEfgL'];a49_0x32bc=function(){return _0x1e63b6;};return a49_0x32bc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a50_0x6ea4(_0x3cf5d,_0x120e20){_0x3cf5d=_0x3cf5d-0x1d4;const _0x820b8e=a50_0x820b();let _0x6ea49a=_0x820b8e[_0x3cf5d];return _0x6ea49a;}const a50_0x14e9f6=a50_0x6ea4;(function(_0x134194,_0x5aa007){const _0x3a2052=a50_0x6ea4,_0x5e538e=_0x134194();while(!![]){try{const _0x28c383=parseInt(_0x3a2052(0x1d6))/0x1*(-parseInt(_0x3a2052(0x1e0))/0x2)+-parseInt(_0x3a2052(0x1e1))/0x3+parseInt(_0x3a2052(0x1df))/0x4*(-parseInt(_0x3a2052(0x1de))/0x5)+-parseInt(_0x3a2052(0x1e3))/0x6+-parseInt(_0x3a2052(0x1dd))/0x7*(-parseInt(_0x3a2052(0x1d8))/0x8)+parseInt(_0x3a2052(0x1d5))/0x9+-parseInt(_0x3a2052(0x1e2))/0xa*(-parseInt(_0x3a2052(0x1dc))/0xb);if(_0x28c383===_0x5aa007)break;else _0x5e538e['push'](_0x5e538e['shift']());}catch(_0x3d18c8){_0x5e538e['push'](_0x5e538e['shift']());}}}(a50_0x820b,0x889a0));import{readScopedConfig}from'../../commands/config/shared.js';function a50_0x820b(){const _0x122a3a=['110989iQnYZT','global','20464XxuvbI','bool','List\x20all\x20config\x20values','read','11zogDnR','553EvEQKn','910wRZYrj','22156YGRfzl','18upZoGH','1787151GcCJrQ','30456590ngfJgF','676194qpnjmQ','list','244746OFEynh'];a50_0x820b=function(){return _0x122a3a;};return a50_0x820b();}import{readConfig}from'../../utils/config.js';async function execute(_0x3ca65a){const _0x29f4e0=a50_0x6ea4,_0xcaa08=_0x3ca65a[_0x29f4e0(0x1d9)](_0x29f4e0(0x1d7))?readScopedConfig(_0x29f4e0(0x1d7)):readConfig();return{'ok':!![],'data':_0xcaa08};}export const configListDefinition={'service':'config','command':a50_0x14e9f6(0x1d4),'description':a50_0x14e9f6(0x1da),'risk':a50_0x14e9f6(0x1db),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x5b1100=a51_0x4047;(function(_0x37955d,_0x185f0a){const _0x28e604=a51_0x4047,_0xff86f1=_0x37955d();while(!![]){try{const _0xe76715=-parseInt(_0x28e604(0x7d))/0x1*(parseInt(_0x28e604(0x8f))/0x2)+-parseInt(_0x28e604(0x7a))/0x3+-parseInt(_0x28e604(0x91))/0x4+parseInt(_0x28e604(0x6e))/0x5+parseInt(_0x28e604(0x96))/0x6+-parseInt(_0x28e604(0x73))/0x7*(-parseInt(_0x28e604(0x67))/0x8)+parseInt(_0x28e604(0x87))/0x9;if(_0xe76715===_0x185f0a)break;else _0xff86f1['push'](_0xff86f1['shift']());}catch(_0x3624ed){_0xff86f1['push'](_0xff86f1['shift']());}}}(a51_0x1455,0xbd067));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a51_0x4047(_0x3728f3,_0x553407){_0x3728f3=_0x3728f3-0x67;const _0x145500=a51_0x1455();let _0x4047a0=_0x145500[_0x3728f3];return _0x4047a0;}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a51_0x1455(){const _0x4d33e1=['boolean','Invalid\x20locale\x20value.','Project','228eKnkLw','key','6127884OtKEXj','str','validation','Settable\x20top-level\x20keys:\x20','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','1430574PtZezO','2402280TRgsgw','object','riskLevel','Invalid\x20value\x20for\x20\x22','length','join','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','2372555Ajbdxr','Config\x20value','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Usage:\x20','env','21trkTbU','apps','Top-level\x20key\x20\x22','Use\x20`','string','\x20app\x20add\x20<name>\x20--appcode\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','899355XoxLSO','includes','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','77rMOqzf','locale','bool','set','value','Global','Missing\x20key.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Set\x20a\x20config\x20value','keys','9008874qfTpfb','\x22\x20is\x20not\x20settable.','global','appcode','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US'];a51_0x1455=function(){return _0x4d33e1;};return a51_0x1455();}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0xe2a7dd){const _0x245efa=a51_0x4047,_0x339e66=_0xe2a7dd[_0x245efa(0x92)](_0x245efa(0x90)),_0x2cf158=_0xe2a7dd[_0x245efa(0x92)](_0x245efa(0x81));if(!_0x339e66)throw CliErrors['validation'](_0x245efa(0x83),_0x245efa(0x71)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x2cf158===undefined||_0x2cf158==='')throw CliErrors[_0x245efa(0x93)]('Missing\x20value.',_0x245efa(0x71)+CLI_BIN_NAME+_0x245efa(0x6d));if(_0x2cf158[_0x245efa(0x6b)]>0x1f4)throw CliErrors[_0x245efa(0x93)](_0x245efa(0x70));if(!isTopLevelConfigKey(_0x339e66))throw CliErrors[_0x245efa(0x93)](_0x245efa(0x75)+_0x339e66+_0x245efa(0x88),_0x245efa(0x94)+getTopLevelConfigKeySummary());if(_0x339e66===_0x245efa(0x69))throw CliErrors[_0x245efa(0x93)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x339e66]&&!CONFIG_ENUM_VALUES[_0x339e66][_0x245efa(0x7b)](_0x2cf158))throw CliErrors[_0x245efa(0x93)](_0x245efa(0x6a)+_0x339e66+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x339e66][_0x245efa(0x6c)](',\x20'));if(_0x339e66==='locale'&&!normalizeLocale(_0x2cf158))throw CliErrors['validation'](_0x245efa(0x8d),_0x245efa(0x8b));const _0x30ba42={'global':_0xe2a7dd[_0x245efa(0x7f)](_0x245efa(0x89))},_0x415b47=resolveWriteScope(_0x30ba42),_0x1035c7=readScopedConfig(_0x415b47);let _0x5668ca=_0x339e66,_0x563e1e=_0x2cf158;_0x339e66==='app'&&(_0x5668ca='appcode',delete _0x1035c7['app']);_0x339e66===_0x245efa(0x7e)&&(_0x563e1e=normalizeLocale(_0x2cf158));if(_0x339e66==='env'){_0x563e1e=normalizeEnv(_0x2cf158);if(!isProduction(_0x563e1e)&&!isDaily(_0x563e1e))throw CliErrors[_0x245efa(0x93)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x245efa(0x95));}if(_0x339e66===_0x245efa(0x8a)){const _0x2e8742=_0x1035c7[_0x245efa(0x74)]&&typeof _0x1035c7['apps']===_0x245efa(0x68)?Object[_0x245efa(0x86)](_0x1035c7['apps']):[];if(_0x2e8742[_0x245efa(0x6b)]>0x0)throw CliErrors[_0x245efa(0x93)](_0x245efa(0x79),_0x245efa(0x76)+CLI_BIN_NAME+_0x245efa(0x78)+_0x563e1e+'`,\x20`'+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x7deb7=buildCanonicalProjectConfig({..._0x1035c7},{'appCodes':[_0x563e1e],'env':typeof _0x1035c7[_0x245efa(0x72)]===_0x245efa(0x77)?_0x1035c7[_0x245efa(0x72)]:undefined});writeScopedConfig(_0x7deb7,_0x415b47);const _0x59cff9=_0x415b47===_0x245efa(0x89)?'Global':_0x245efa(0x8e);return{'ok':!![],'message':'✓\x20'+_0x59cff9+'\x20appcode\x20set\x20to:\x20'+_0x563e1e+_0x245efa(0x7c)};}_0x1035c7[_0x5668ca]=_0x563e1e,writeScopedConfig(_0x1035c7,_0x415b47);const _0x1fa626=_0x415b47==='global'?_0x245efa(0x82):_0x245efa(0x8e);return{'ok':!![],'message':'✓\x20'+_0x1fa626+'\x20'+_0x5668ca+'\x20set\x20to:\x20'+_0x563e1e};}export const configSetDefinition={'service':'config','command':a51_0x5b1100(0x80),'description':a51_0x5b1100(0x85),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a51_0x5b1100(0x90),'type':a51_0x5b1100(0x77),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a51_0x5b1100(0x81),'type':a51_0x5b1100(0x77),'description':a51_0x5b1100(0x6f),'required':!![]},{'name':'global','type':a51_0x5b1100(0x8c),'description':a51_0x5b1100(0x84),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a52_0x4949(){var _0x366e2f=['1491473TnOdeX','project','10472424zgeuqE','global','13277230XQDpIG','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','87380smceyu','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','150yGvYrA','2XMQvPh','14vHFhTd','79194OvtcLU','46094378ydEJoV','762546iuTyLP','validation','9CxwXcu'];a52_0x4949=function(){return _0x366e2f;};return a52_0x4949();}(function(_0x1a0db6,_0x1b341c){var _0x54d39a=a52_0x5f57,_0x1e874a=_0x1a0db6();while(!![]){try{var _0x1795bf=-parseInt(_0x54d39a(0x1d2))/0x1+-parseInt(_0x54d39a(0x1cb))/0x2*(parseInt(_0x54d39a(0x1cd))/0x3)+-parseInt(_0x54d39a(0x1d8))/0x4*(-parseInt(_0x54d39a(0x1ca))/0x5)+-parseInt(_0x54d39a(0x1cf))/0x6*(-parseInt(_0x54d39a(0x1cc))/0x7)+-parseInt(_0x54d39a(0x1d4))/0x8+parseInt(_0x54d39a(0x1d1))/0x9*(-parseInt(_0x54d39a(0x1d6))/0xa)+parseInt(_0x54d39a(0x1ce))/0xb;if(_0x1795bf===_0x1b341c)break;else _0x1e874a['push'](_0x1e874a['shift']());}catch(_0x30bdb3){_0x1e874a['push'](_0x1e874a['shift']());}}}(a52_0x4949,0xe6c83));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x397610){var _0xe04a7=a52_0x5f57;if(_0x397610[_0xe04a7(0x1d5)])return'global';if(!isInProject())throw CliErrors[_0xe04a7(0x1d0)](_0xe04a7(0x1d7),_0xe04a7(0x1d9)+CLI_BIN_NAME+'\x20init`\x20first.');return _0xe04a7(0x1d3);}export function readScopedConfig(_0x34f699){return readConfigFile(resolveWriteConfigPath(_0x34f699));}function a52_0x5f57(_0x107c9e,_0x4df427){_0x107c9e=_0x107c9e-0x1ca;var _0x494926=a52_0x4949();var _0x5f57bf=_0x494926[_0x107c9e];return _0x5f57bf;}export function writeScopedConfig(_0x23c61c,_0x26c1fe){writeConfigFile(resolveWriteConfigPath(_0x26c1fe),_0x23c61c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x576aeb=a53_0x1358;(function(_0x1c5c5c,_0x625aa3){const _0xb62511=a53_0x1358,_0x136fe6=_0x1c5c5c();while(!![]){try{const _0x425ed2=parseInt(_0xb62511(0x92))/0x1+parseInt(_0xb62511(0x8e))/0x2*(parseInt(_0xb62511(0x96))/0x3)+parseInt(_0xb62511(0x9a))/0x4+parseInt(_0xb62511(0x9c))/0x5+-parseInt(_0xb62511(0x95))/0x6*(parseInt(_0xb62511(0x99))/0x7)+parseInt(_0xb62511(0x8d))/0x8+parseInt(_0xb62511(0x9b))/0x9*(-parseInt(_0xb62511(0x98))/0xa);if(_0x425ed2===_0x625aa3)break;else _0x136fe6['push'](_0x136fe6['shift']());}catch(_0x5467a7){_0x136fe6['push'](_0x136fe6['shift']());}}}(a53_0x64b6,0xabc34));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a53_0x576aeb(0x97),'operation':a53_0x576aeb(0x97),'description':a53_0x576aeb(0x8b),'paramsRequired':![],'paramsHint':a53_0x576aeb(0x8a),'helpExtra':[a53_0x576aeb(0x93),a53_0x576aeb(0x8f),a53_0x576aeb(0x90),a53_0x576aeb(0x94),a53_0x576aeb(0x91),a53_0x576aeb(0x89)][a53_0x576aeb(0x8c)]('\x0a')});function a53_0x1358(_0x28590e,_0xb0c217){_0x28590e=_0x28590e-0x89;const _0x64b69d=a53_0x64b6();let _0x135876=_0x64b69d[_0x28590e];return _0x135876;}function a53_0x64b6(){const _0x468c88=['21uiierc','filter','7845640CxzyeM','385RkvVFa','1421172uBUTQB','27ydfUuM','6646695oVABjA','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','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','Filter\x20dataset\x20records\x20with\x20query\x20conditions','join','8876296zoBTfW','66890ktjmJN','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','747138PKWnKE','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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}]','78348IPxZAl'];a53_0x64b6=function(){return _0x468c88;};return a53_0x64b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a54_0x5c93(){const _0x34a930=['7UFxfEe','8078620VxveKO','27288WxeAEZ','Get\x20a\x20single\x20record\x20by\x20ID','686802aMhmSi','29445pRqelP','1552310zhvJBm','837sZlPpS','171626FqQqDF','225052ooqVAs','6NFQOuW','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'];a54_0x5c93=function(){return _0x34a930;};return a54_0x5c93();}const a54_0x480da7=a54_0x531b;(function(_0x330d08,_0x4b9db7){const _0x22e7b8=a54_0x531b,_0x3e03bb=_0x330d08();while(!![]){try{const _0x1cd730=parseInt(_0x22e7b8(0x10e))/0x1+parseInt(_0x22e7b8(0x111))/0x2+-parseInt(_0x22e7b8(0x113))/0x3*(-parseInt(_0x22e7b8(0x112))/0x4)+parseInt(_0x22e7b8(0x10f))/0x5+-parseInt(_0x22e7b8(0x10d))/0x6*(-parseInt(_0x22e7b8(0x109))/0x7)+-parseInt(_0x22e7b8(0x10b))/0x8*(-parseInt(_0x22e7b8(0x110))/0x9)+-parseInt(_0x22e7b8(0x10a))/0xa;if(_0x1cd730===_0x4b9db7)break;else _0x3e03bb['push'](_0x3e03bb['shift']());}catch(_0x68f6cc){_0x3e03bb['push'](_0x3e03bb['shift']());}}}(a54_0x5c93,0x2791a));import{buildDataCommand}from'../../commands/data/shared.js';function a54_0x531b(_0x4bd264,_0x38d202){_0x4bd264=_0x4bd264-0x108;const _0x5c93da=a54_0x5c93();let _0x531ba9=_0x5c93da[_0x4bd264];return _0x531ba9;}export const dataGetOne=buildDataCommand({'command':'getOne','operation':'getOne','description':a54_0x480da7(0x10c),'paramsRequired':!![],'paramsHint':a54_0x480da7(0x108)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e3f62,_0x223256){const _0x3b7404=a55_0x2f0b,_0x2b1935=_0x5e3f62();while(!![]){try{const _0x38c453=-parseInt(_0x3b7404(0x106))/0x1+-parseInt(_0x3b7404(0x10b))/0x2+parseInt(_0x3b7404(0x10d))/0x3*(parseInt(_0x3b7404(0x10e))/0x4)+parseInt(_0x3b7404(0x10a))/0x5+-parseInt(_0x3b7404(0x107))/0x6*(-parseInt(_0x3b7404(0x108))/0x7)+-parseInt(_0x3b7404(0x105))/0x8*(-parseInt(_0x3b7404(0x109))/0x9)+-parseInt(_0x3b7404(0x10c))/0xa;if(_0x38c453===_0x223256)break;else _0x2b1935['push'](_0x2b1935['shift']());}catch(_0x25a750){_0x2b1935['push'](_0x2b1935['shift']());}}}(a55_0x31ce,0xd4c80));import{dataFilter}from'../../commands/data/filter.js';function a55_0x2f0b(_0x472720,_0x332855){_0x472720=_0x472720-0x105;const _0x31ce05=a55_0x31ce();let _0x2f0b80=_0x31ce05[_0x472720];return _0x2f0b80;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a55_0x31ce(){const _0x4f8c80=['4884030poEiGi','60NFtSPt','30788gwpZRF','1688NQtJpX','1599163PmEEHz','435162HxahNw','161xILNUC','56421SAzakw','1968125JZWiJk','1158654IeKRRa'];a55_0x31ce=function(){return _0x4f8c80;};return a55_0x31ce();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a56_0x47a5(_0x2bc646,_0x39861c){_0x2bc646=_0x2bc646-0xf4;const _0x3e71e2=a56_0x3e71();let _0x47a549=_0x3e71e2[_0x2bc646];return _0x47a549;}(function(_0x348d17,_0x12e475){const _0x5bf1c3=a56_0x47a5,_0xebf33d=_0x348d17();while(!![]){try{const _0x1f76ab=parseInt(_0x5bf1c3(0x109))/0x1*(parseInt(_0x5bf1c3(0xf8))/0x2)+parseInt(_0x5bf1c3(0x110))/0x3+-parseInt(_0x5bf1c3(0x106))/0x4+parseInt(_0x5bf1c3(0x100))/0x5+parseInt(_0x5bf1c3(0x104))/0x6*(parseInt(_0x5bf1c3(0x10a))/0x7)+-parseInt(_0x5bf1c3(0x108))/0x8*(parseInt(_0x5bf1c3(0xfe))/0x9)+-parseInt(_0x5bf1c3(0xff))/0xa;if(_0x1f76ab===_0x12e475)break;else _0xebf33d['push'](_0xebf33d['shift']());}catch(_0x346022){_0xebf33d['push'](_0xebf33d['shift']());}}}(a56_0x3e71,0xd59b3));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(_0x450adf){const _0x4f3265=a56_0x47a5;if(!_0x450adf)throw CliErrors[_0x4f3265(0xfc)](_0x4f3265(0x10f),_0x4f3265(0x10e));const _0x5f02df=_0x450adf['id'];if(_0x5f02df===undefined||_0x5f02df===null||_0x5f02df==='')throw CliErrors[_0x4f3265(0xf9)]('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x4f3265(0x102));}function parseCommandParams(_0x28e1d9){return parseJsonParams(_0x28e1d9)??{};}function a56_0x3e71(){const _0x431434=['Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','161524DruYzJ','appCode','104XLdegF','1343PpIynR','161GFIRzP','code','alias','\x20completed\x20in\x20','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','params','2498541ZgyRqQ','paramsRequired','paramsHint','operation','str','1644pMHGjG','validation','description','helpExtra','flagMissing','compress','195849ksYmMN','28841750wTnMUJ','7844655aWuDAj','data\x20','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','string','150432soCqMs'];a56_0x3e71=function(){return _0x431434;};return a56_0x3e71();}export function buildDataCommand(_0x62de56){const _0x3ff865=a56_0x47a5,_0x3af48a=_0x3ff865(0x105);return{'service':'data','command':_0x62de56['command'],'description':_0x62de56[_0x3ff865(0xfa)],'risk':'read','defaultOutputFormat':_0x3ff865(0xfd),'helpExtra':_0x62de56[_0x3ff865(0xfb)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x3ff865(0x10c),'type':'string','description':_0x3af48a},{'name':_0x3ff865(0x10f),'type':_0x3ff865(0x103),'description':_0x62de56['paramsHint']}],async 'validate'(_0x345de3){const _0x3cc67e=_0x3ff865,_0x14fa91=_0x345de3[_0x3cc67e(0xf7)]('params');if(_0x62de56[_0x3cc67e(0xf4)]&&!_0x14fa91)throw CliErrors[_0x3cc67e(0xfc)](_0x3cc67e(0x10f),_0x62de56[_0x3cc67e(0xf5)]);const _0x477932=parseJsonParams(_0x14fa91);_0x62de56[_0x3cc67e(0xf6)]==='getOne'&&assertGetOneId(_0x477932);},async 'execute'(_0x202e56){const _0x62f20d=_0x3ff865,_0x4b22fc=parseCommandParams(_0x202e56[_0x62f20d(0xf7)](_0x62f20d(0x10f))),_0x145694=Date['now'](),_0x4196e2=await executeDatasetDataOperation(_0x202e56[_0x62f20d(0x107)],_0x202e56[_0x62f20d(0xf7)](_0x62f20d(0x10b)),_0x62de56[_0x62f20d(0xf6)],_0x4b22fc),_0x538a03=Date['now']()-_0x145694;return{'ok':!![],'data':{'result':_0x4196e2,'elapsed':_0x538a03},'message':_0x62f20d(0x101)+_0x62de56['command']+_0x62f20d(0x10d)+_0x538a03+'ms'};}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x2e58f7=a57_0x405f;(function(_0x3bf5b0,_0x4befde){const _0x3fa5e8=a57_0x405f,_0x276bab=_0x3bf5b0();while(!![]){try{const _0x21d10d=parseInt(_0x3fa5e8(0xbd))/0x1*(parseInt(_0x3fa5e8(0xdd))/0x2)+parseInt(_0x3fa5e8(0xc5))/0x3+parseInt(_0x3fa5e8(0xef))/0x4*(-parseInt(_0x3fa5e8(0xba))/0x5)+parseInt(_0x3fa5e8(0xb5))/0x6+-parseInt(_0x3fa5e8(0xc7))/0x7+-parseInt(_0x3fa5e8(0xb8))/0x8*(parseInt(_0x3fa5e8(0xd2))/0x9)+-parseInt(_0x3fa5e8(0xe4))/0xa*(-parseInt(_0x3fa5e8(0xd7))/0xb);if(_0x21d10d===_0x4befde)break;else _0x276bab['push'](_0x276bab['shift']());}catch(_0x2a799f){_0x276bab['push'](_0x276bab['shift']());}}}(a57_0x19ed,0x73e8d));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=a57_0x2e58f7(0xed);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x628841,input:_0x585aa5,dryRun:_0xa0c7ba}){const _0x6e1700=a57_0x2e58f7;validateInput(_0x585aa5);const _0x234fe6=normalizeBusinessGroup(_0x585aa5['businessGroup']),_0x253629=await getDatasetDetail(_0x585aa5[_0x6e1700(0xde)]),_0x1e0e85=resolveBusinessGroupDataset(_0x253629,_0x585aa5[_0x6e1700(0xde)]),_0x3005c4=loadCurrentBusinessGroup(_0x253629,_0x1e0e85);assertExpectedBusinessGroup(_0x3005c4,_0x585aa5[_0x6e1700(0xb4)]);const _0x2d1c9d=buildBackendPayload(_0x628841,_0x1e0e85,_0x234fe6),_0x2a24eb=_0x3005c4!==_0x234fe6;let _0x466c17;if(_0x2a24eb&&!_0xa0c7ba){await updateErBusinessGroup(_0x2d1c9d);const _0x5505e0=await getDatasetDetail(_0x1e0e85[_0x6e1700(0xde)]),_0x5db2f4=resolveBusinessGroupDataset(_0x5505e0,_0x1e0e85[_0x6e1700(0xde)]),_0x41f0c3=loadCurrentBusinessGroup(_0x5505e0,_0x5db2f4);if(_0x41f0c3!==_0x234fe6)throw CliErrors[_0x6e1700(0xe9)](_0x6e1700(0xd9),_0x6e1700(0xb3)+JSON['stringify'](_0x234fe6)+_0x6e1700(0xbc)+JSON[_0x6e1700(0xbf)](_0x41f0c3)+'.');_0x466c17={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x41f0c3}};}else!_0x2a24eb&&(_0x466c17={'verified':!![],'status':_0x6e1700(0xc9),'afterReadback':{'businessGroup':_0x3005c4}});const _0x30678e={'operation':_0x6e1700(0xda),'appCode':_0x628841,'selector':{'code':_0x1e0e85['code']},'dataset':_0x1e0e85,'before':{'businessGroup':_0x3005c4},'after':{'businessGroup':_0x234fe6},'changed':_0x2a24eb,'dryRun':_0xa0c7ba,'submitted':_0x2a24eb&&!_0xa0c7ba,'backend':{'method':_0x6e1700(0xd0),'path':BACKEND_PATH,'payload':_0x2d1c9d},..._0x466c17?{'verification':_0x466c17}:{},'warnings':[]};return{'ok':!![],'data':_0x30678e,'message':_0x2a24eb?_0xa0c7ba?_0x6e1700(0xb6)+_0x1e0e85[_0x6e1700(0xde)]:_0x6e1700(0xe5)+_0x1e0e85[_0x6e1700(0xde)]:_0x6e1700(0xb1)+_0x1e0e85[_0x6e1700(0xde)]};}export const datasetBusinessGroupUpdate={'service':'dataset','command':a57_0x2e58f7(0xcf),'description':a57_0x2e58f7(0xd1),'risk':a57_0x2e58f7(0xb9),'flags':[CODE_FLAG,{'name':'business-group','type':'string','required':!![],'description':a57_0x2e58f7(0xc2)},{'name':a57_0x2e58f7(0xf0),'type':a57_0x2e58f7(0xce),'required':![],'description':a57_0x2e58f7(0xd6)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x187cf4){validateInput(readBusinessGroupUpdateInput(_0x187cf4));},async 'dryRun'(_0x9b7f88){const _0x29f8c0=a57_0x2e58f7,_0x2f6cfb=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x9b7f88[_0x29f8c0(0xcd)],'input':readBusinessGroupUpdateInput(_0x9b7f88),'dryRun':!![]});return{'method':_0x29f8c0(0xd0),'url':BACKEND_PATH,'body':_0x2f6cfb[_0x29f8c0(0xe6)][_0x29f8c0(0xc1)]['payload'],'description':_0x2f6cfb[_0x29f8c0(0xd4)],..._0x2f6cfb[_0x29f8c0(0xe6)]};},async 'execute'(_0x3159a9){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x3159a9['appCode'],'input':readBusinessGroupUpdateInput(_0x3159a9),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x48e286){const _0x5e8495=a57_0x2e58f7,_0x1a23f9=_0x48e286['str']('expect-business-group');return{'code':trim(_0x48e286[_0x5e8495(0xd5)]('code')),'businessGroup':_0x48e286[_0x5e8495(0xd5)](_0x5e8495(0xcb)),'expectBusinessGroup':_0x1a23f9===undefined||_0x1a23f9===''?undefined:_0x1a23f9};}function validateInput(_0x2202ff){const _0x195b40=a57_0x2e58f7;if(!trim(_0x2202ff['code']))throw CliErrors['validation'](_0x195b40(0xdb));if(_0x2202ff[_0x195b40(0xc0)]===undefined)throw CliErrors['validation'](_0x195b40(0xb2));}function resolveBusinessGroupDataset(_0x225327,_0x59c144){const _0x2f4846=a57_0x2e58f7,_0x4cae5b=asPlainObject(_0x225327[_0x2f4846(0xea)]),_0x4fdb1f=asPlainObject(_0x225327[_0x2f4846(0xc3)]),_0xf35eb6=resolveSourceType(_0x225327,_0x4cae5b,_0x4fdb1f),_0x574cbe=firstString(_0x225327[_0x2f4846(0xbb)],_0x225327[_0x2f4846(0xde)],_0x4cae5b[_0x2f4846(0xc6)],_0x59c144)||_0x59c144;return{'id':firstNumber(_0x225327[_0x2f4846(0xe2)],_0x225327['id'],_0x4cae5b[_0x2f4846(0xb0)])??firstString(_0x225327[_0x2f4846(0xe2)],_0x225327['id'],_0x4cae5b[_0x2f4846(0xb0)])??null,'code':_0x574cbe,'name':firstString(_0x225327[_0x2f4846(0xe3)],_0x4cae5b['datasetName'],_0x4cae5b[_0x2f4846(0xe3)])||null,'sourceType':_0xf35eb6};}function resolveSourceType(_0x5c6ab5,_0x29f8ce,_0x4daa34){const _0x4b3b68=a57_0x2e58f7,_0x5ce296=firstString(_0x5c6ab5[_0x4b3b68(0xdf)],_0x5c6ab5['sourceType'],_0x29f8ce[_0x4b3b68(0xdf)],_0x29f8ce[_0x4b3b68(0xc8)])?.[_0x4b3b68(0xe7)]()['toUpperCase']();if(_0x5ce296===_0x4b3b68(0xe0)||_0x5ce296==='METADATA')return _0x5ce296;if(Object['keys'](_0x4daa34)['length']>0x0)return _0x4b3b68(0xe0);throw CliErrors['validation'](_0x4b3b68(0xd8));}function loadCurrentBusinessGroup(_0x4a2508,_0x3f8898){const _0xaaf44c=a57_0x2e58f7,_0x35955c=readBusinessGroupFromDatasetDetail(_0x4a2508,_0x3f8898[_0xaaf44c(0xc8)]);if(_0x35955c[_0xaaf44c(0xbe)])return normalizeBusinessGroup(_0x35955c[_0xaaf44c(0xeb)]);if(_0x3f8898['sourceType']===_0xaaf44c(0xc4))return'';throw CliErrors[_0xaaf44c(0xca)]('Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.',_0xaaf44c(0xd3));}function a57_0x19ed(){const _0x3d3250=['business-group-update','POST','Update\x20business\x20model\x20group','18CqhbTB','Business\x20model\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','message','str','Expected\x20current\x20business\x20model\x20group;\x20mismatch\x20aborts\x20without\x20writing','3276493zDHbMB','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','Business\x20model\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','update','--code\x20is\x20required','object','2prRuxr','code','source','DB_TABLE','extend','modelId','name','20AGSQXx','Updated\x20business\x20model\x20group\x20for\x20dataset\x20','data','trim','number','apiError','dataset','value','parse','/smartapi/question/er-config/business-group/edit','isFinite','723452ffSTRf','expect-business-group','datasetId','No\x20changes\x20for\x20business\x20model\x20group\x20on\x20dataset\x20','--business-group\x20is\x20required','Expected\x20','expectBusinessGroup','2245758IKbktN','Dry-run:\x20business\x20model\x20group\x20would\x20change\x20for\x20dataset\x20','call','3335704xktHbn','write','15sPlPQU','modelCode',',\x20actual\x20','851251lrQcRN','found','stringify','businessGroup','backend','New\x20business\x20model\x20group\x20value;\x20empty\x20string\x20clears\x20it','dbtableConfig','METADATA','1930647acuBFl','datasetCode','4294773EIxeFb','sourceType','unchanged','validation','business-group','isArray','appCode','string'];a57_0x19ed=function(){return _0x3d3250;};return a57_0x19ed();}function readBusinessGroupFromDatasetDetail(_0x33d65b,_0x186589){const _0x3b8fb9=a57_0x2e58f7,_0x1e1ba0=asPlainObject(_0x33d65b[_0x3b8fb9(0xea)]),_0x86f288=firstPresent(_0x33d65b[_0x3b8fb9(0xc0)]);if(_0x86f288[_0x3b8fb9(0xbe)])return _0x86f288;const _0x41cd0e=firstPresent(_0x1e1ba0[_0x3b8fb9(0xc0)]);if(_0x41cd0e[_0x3b8fb9(0xbe)])return _0x41cd0e;if(_0x186589===_0x3b8fb9(0xe0))return{'found':![]};const _0x1c4578=readBusinessGroupFromExtend(_0x33d65b[_0x3b8fb9(0xe1)]);if(_0x1c4578[_0x3b8fb9(0xbe)])return _0x1c4578;return readBusinessGroupFromExtend(_0x1e1ba0[_0x3b8fb9(0xe1)]);}function readBusinessGroupFromExtend(_0x53ec36){const _0x1d1c86=a57_0x2e58f7;if(_0x53ec36===undefined||_0x53ec36===null||_0x53ec36==='')return{'found':![]};if(typeof _0x53ec36===_0x1d1c86(0xce))try{const _0x3460fd=JSON[_0x1d1c86(0xec)](_0x53ec36);return readBusinessGroupFromExtend(_0x3460fd);}catch{return{'found':![]};}const _0x1cde51=asPlainObject(_0x53ec36);if(Object['prototype']['hasOwnProperty'][_0x1d1c86(0xb7)](_0x1cde51,_0x1d1c86(0xc0)))return{'found':!![],'value':_0x1cde51[_0x1d1c86(0xc0)]};return{'found':![]};}function firstPresent(..._0x195632){for(const _0x84384a of _0x195632){if(_0x84384a!==undefined&&_0x84384a!==null)return{'found':!![],'value':_0x84384a};}return{'found':![]};}function assertExpectedBusinessGroup(_0x46df88,_0x2f16a8){const _0x227cfb=a57_0x2e58f7;if(_0x2f16a8===undefined)return;const _0x2053eb=normalizeBusinessGroup(_0x2f16a8);if(_0x46df88!==_0x2053eb)throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20businessGroup',_0x227cfb(0xb3)+JSON['stringify'](_0x2053eb)+_0x227cfb(0xbc)+JSON['stringify'](_0x46df88));}function buildBackendPayload(_0x442b6e,_0x4c3e15,_0x3fc7a1){const _0x1afb23=a57_0x2e58f7;return{'appCode':_0x442b6e,'datasetCode':_0x4c3e15[_0x1afb23(0xde)],'businessGroup':_0x3fc7a1};}function normalizeBusinessGroup(_0x5ccc12){const _0x18fde0=a57_0x2e58f7;if(_0x5ccc12===undefined||_0x5ccc12===null)return'';return String(_0x5ccc12)[_0x18fde0(0xe7)]();}function asPlainObject(_0x267545){const _0x2a7ed3=a57_0x2e58f7;if(!_0x267545||typeof _0x267545!==_0x2a7ed3(0xdc)||Array[_0x2a7ed3(0xcc)](_0x267545))return{};return _0x267545;}function a57_0x405f(_0x2d01b4,_0x53726c){_0x2d01b4=_0x2d01b4-0xb0;const _0x19ed17=a57_0x19ed();let _0x405f01=_0x19ed17[_0x2d01b4];return _0x405f01;}function firstString(..._0x5ba747){const _0xf154c2=a57_0x2e58f7;for(const _0x5f5213 of _0x5ba747){if(typeof _0x5f5213===_0xf154c2(0xce)&&_0x5f5213[_0xf154c2(0xe7)]())return _0x5f5213[_0xf154c2(0xe7)]();if(typeof _0x5f5213===_0xf154c2(0xe8)&&Number[_0xf154c2(0xee)](_0x5f5213))return String(_0x5f5213);}return undefined;}function firstNumber(..._0x3dfc78){const _0x4ffbe8=a57_0x2e58f7;for(const _0x4a49d9 of _0x3dfc78){if(typeof _0x4a49d9===_0x4ffbe8(0xe8)&&Number[_0x4ffbe8(0xee)](_0x4a49d9))return _0x4a49d9;if(typeof _0x4a49d9==='string'&&_0x4a49d9[_0x4ffbe8(0xe7)]()&&Number[_0x4ffbe8(0xee)](Number(_0x4a49d9)))return Number(_0x4a49d9);}return null;}function trim(_0x5e6f2a){const _0x3ba5c7=a57_0x2e58f7;return String(_0x5e6f2a||'')[_0x3ba5c7(0xe7)]();}
|
|
1
|
+
const a57_0x391ec3=a57_0x1b46;function a57_0x1b46(_0x2fc4f4,_0x37deb9){_0x2fc4f4=_0x2fc4f4-0xfa;const _0x507da0=a57_0x507d();let _0x1b46d8=_0x507da0[_0x2fc4f4];return _0x1b46d8;}(function(_0x5cde23,_0x248d20){const _0x596483=a57_0x1b46,_0x1e555c=_0x5cde23();while(!![]){try{const _0x150f0e=parseInt(_0x596483(0x107))/0x1+-parseInt(_0x596483(0x128))/0x2*(-parseInt(_0x596483(0x110))/0x3)+parseInt(_0x596483(0x112))/0x4*(parseInt(_0x596483(0x123))/0x5)+-parseInt(_0x596483(0x134))/0x6+-parseInt(_0x596483(0x11d))/0x7*(-parseInt(_0x596483(0x10b))/0x8)+parseInt(_0x596483(0x124))/0x9+-parseInt(_0x596483(0xfb))/0xa;if(_0x150f0e===_0x248d20)break;else _0x1e555c['push'](_0x1e555c['shift']());}catch(_0x44f6ac){_0x1e555c['push'](_0x1e555c['shift']());}}}(a57_0x507d,0xcf592));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';function a57_0x507d(){const _0x6d8dfc=['found','2UjUrgA','string','Update\x20business\x20model\x20group','apiError','prototype','modelId','name','str','keys','DB_TABLE','hasOwnProperty','expectBusinessGroup','6925260fylwQE','Expectation\x20mismatch\x20at\x20businessGroup','business-group-update','backend','25902480jYGOei','datasetId','POST','dataset','object','toUpperCase','business-group','source','write','number','/smartapi/question/er-config/business-group/edit','data','1536424rvzWrt','extend','isFinite','METADATA','583448lmvQVR','trim','code',',\x20actual\x20','datasetName','1281309vOYYAS','No\x20changes\x20for\x20business\x20model\x20group\x20on\x20dataset\x20','3269744gszHyO','call','isArray','payload','dbtableConfig','New\x20business\x20model\x20group\x20value;\x20empty\x20string\x20clears\x20it','--business-group\x20is\x20required','Business\x20model\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','expect-business-group','businessGroup','validation','126WwFytH','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','appCode','message','stringify','sourceType','5sxNrCI','4500315aEoLZH','Dry-run:\x20business\x20model\x20group\x20would\x20change\x20for\x20dataset\x20','Expected\x20current\x20business\x20model\x20group;\x20mismatch\x20aborts\x20without\x20writing'];a57_0x507d=function(){return _0x6d8dfc;};return a57_0x507d();}import{CliErrors}from'../../errors.js';const BACKEND_PATH=a57_0x391ec3(0x105);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x36ca8a,input:_0x63aae1,dryRun:_0x5d42ce}){const _0x404cee=a57_0x391ec3;validateInput(_0x63aae1);const _0x1ce74e=normalizeBusinessGroup(_0x63aae1['businessGroup']),_0x573f4c=await getDatasetDetail(_0x63aae1[_0x404cee(0x10d)]),_0x4eaa94=resolveBusinessGroupDataset(_0x573f4c,_0x63aae1['code']),_0x547041=loadCurrentBusinessGroup(_0x573f4c,_0x4eaa94);assertExpectedBusinessGroup(_0x547041,_0x63aae1[_0x404cee(0x133)]);const _0x220f76=buildBackendPayload(_0x36ca8a,_0x4eaa94,_0x1ce74e),_0x457631=_0x547041!==_0x1ce74e;let _0x483297;if(_0x457631&&!_0x5d42ce){await updateErBusinessGroup(_0x220f76);const _0x5e9db9=await getDatasetDetail(_0x4eaa94[_0x404cee(0x10d)]),_0x4dd630=resolveBusinessGroupDataset(_0x5e9db9,_0x4eaa94[_0x404cee(0x10d)]),_0x347a50=loadCurrentBusinessGroup(_0x5e9db9,_0x4dd630);if(_0x347a50!==_0x1ce74e)throw CliErrors[_0x404cee(0x12b)]('Business\x20model\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Expected\x20'+JSON[_0x404cee(0x121)](_0x1ce74e)+_0x404cee(0x10e)+JSON['stringify'](_0x347a50)+'.');_0x483297={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x347a50}};}else!_0x457631&&(_0x483297={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':_0x547041}});const _0x5f4666={'operation':'update','appCode':_0x36ca8a,'selector':{'code':_0x4eaa94['code']},'dataset':_0x4eaa94,'before':{'businessGroup':_0x547041},'after':{'businessGroup':_0x1ce74e},'changed':_0x457631,'dryRun':_0x5d42ce,'submitted':_0x457631&&!_0x5d42ce,'backend':{'method':_0x404cee(0xfd),'path':BACKEND_PATH,'payload':_0x220f76},..._0x483297?{'verification':_0x483297}:{},'warnings':[]};return{'ok':!![],'data':_0x5f4666,'message':_0x457631?_0x5d42ce?_0x404cee(0x125)+_0x4eaa94[_0x404cee(0x10d)]:'Updated\x20business\x20model\x20group\x20for\x20dataset\x20'+_0x4eaa94[_0x404cee(0x10d)]:_0x404cee(0x111)+_0x4eaa94[_0x404cee(0x10d)]};}export const datasetBusinessGroupUpdate={'service':a57_0x391ec3(0xfe),'command':a57_0x391ec3(0x136),'description':a57_0x391ec3(0x12a),'risk':a57_0x391ec3(0x103),'flags':[CODE_FLAG,{'name':a57_0x391ec3(0x101),'type':a57_0x391ec3(0x129),'required':!![],'description':a57_0x391ec3(0x117)},{'name':a57_0x391ec3(0x11a),'type':a57_0x391ec3(0x129),'required':![],'description':a57_0x391ec3(0x126)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xbf7a01){validateInput(readBusinessGroupUpdateInput(_0xbf7a01));},async 'dryRun'(_0x375d29){const _0x2fac3c=a57_0x391ec3,_0x27e722=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x375d29[_0x2fac3c(0x11f)],'input':readBusinessGroupUpdateInput(_0x375d29),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x27e722[_0x2fac3c(0x106)][_0x2fac3c(0xfa)][_0x2fac3c(0x115)],'description':_0x27e722[_0x2fac3c(0x120)],..._0x27e722[_0x2fac3c(0x106)]};},async 'execute'(_0x12b4f7){const _0x4b2525=a57_0x391ec3;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x12b4f7[_0x4b2525(0x11f)],'input':readBusinessGroupUpdateInput(_0x12b4f7),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x382264){const _0x3cae33=a57_0x391ec3,_0x141737=_0x382264[_0x3cae33(0x12f)](_0x3cae33(0x11a));return{'code':trim(_0x382264[_0x3cae33(0x12f)](_0x3cae33(0x10d))),'businessGroup':_0x382264[_0x3cae33(0x12f)]('business-group'),'expectBusinessGroup':_0x141737===undefined||_0x141737===''?undefined:_0x141737};}function validateInput(_0x37f867){const _0x2a09ef=a57_0x391ec3;if(!trim(_0x37f867[_0x2a09ef(0x10d)]))throw CliErrors[_0x2a09ef(0x11c)]('--code\x20is\x20required');if(_0x37f867[_0x2a09ef(0x11b)]===undefined)throw CliErrors[_0x2a09ef(0x11c)](_0x2a09ef(0x118));}function resolveBusinessGroupDataset(_0x3dfae7,_0x131d14){const _0x39f5bc=a57_0x391ec3,_0x2b3ef5=asPlainObject(_0x3dfae7[_0x39f5bc(0xfe)]),_0x36f1bf=asPlainObject(_0x3dfae7[_0x39f5bc(0x116)]),_0xb07ba7=resolveSourceType(_0x3dfae7,_0x2b3ef5,_0x36f1bf),_0x3efd5b=firstString(_0x3dfae7['modelCode'],_0x3dfae7[_0x39f5bc(0x10d)],_0x2b3ef5['datasetCode'],_0x131d14)||_0x131d14;return{'id':firstNumber(_0x3dfae7[_0x39f5bc(0x12d)],_0x3dfae7['id'],_0x2b3ef5[_0x39f5bc(0xfc)])??firstString(_0x3dfae7['modelId'],_0x3dfae7['id'],_0x2b3ef5[_0x39f5bc(0xfc)])??null,'code':_0x3efd5b,'name':firstString(_0x3dfae7[_0x39f5bc(0x12e)],_0x2b3ef5[_0x39f5bc(0x10f)],_0x2b3ef5[_0x39f5bc(0x12e)])||null,'sourceType':_0xb07ba7};}function resolveSourceType(_0x171cb4,_0x2e3ea2,_0x563b52){const _0x11c1c7=a57_0x391ec3,_0x28a36e=firstString(_0x171cb4[_0x11c1c7(0x102)],_0x171cb4[_0x11c1c7(0x122)],_0x2e3ea2[_0x11c1c7(0x102)],_0x2e3ea2[_0x11c1c7(0x122)])?.[_0x11c1c7(0x10c)]()[_0x11c1c7(0x100)]();if(_0x28a36e===_0x11c1c7(0x131)||_0x28a36e===_0x11c1c7(0x10a))return _0x28a36e;if(Object[_0x11c1c7(0x130)](_0x563b52)['length']>0x0)return _0x11c1c7(0x131);throw CliErrors[_0x11c1c7(0x11c)]('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x47cb41,_0x31cb68){const _0x581a7f=a57_0x391ec3,_0x25519f=readBusinessGroupFromDatasetDetail(_0x47cb41,_0x31cb68[_0x581a7f(0x122)]);if(_0x25519f[_0x581a7f(0x127)])return normalizeBusinessGroup(_0x25519f['value']);if(_0x31cb68[_0x581a7f(0x122)]===_0x581a7f(0x10a))return'';throw CliErrors[_0x581a7f(0x11c)](_0x581a7f(0x11e),_0x581a7f(0x119));}function readBusinessGroupFromDatasetDetail(_0x51b102,_0x2996d9){const _0x5e7126=a57_0x391ec3,_0x56ee78=asPlainObject(_0x51b102[_0x5e7126(0xfe)]),_0x4151d1=firstPresent(_0x51b102[_0x5e7126(0x11b)]);if(_0x4151d1['found'])return _0x4151d1;const _0x2072e1=firstPresent(_0x56ee78[_0x5e7126(0x11b)]);if(_0x2072e1['found'])return _0x2072e1;if(_0x2996d9===_0x5e7126(0x131))return{'found':![]};const _0x139566=readBusinessGroupFromExtend(_0x51b102[_0x5e7126(0x108)]);if(_0x139566[_0x5e7126(0x127)])return _0x139566;return readBusinessGroupFromExtend(_0x56ee78[_0x5e7126(0x108)]);}function readBusinessGroupFromExtend(_0x23cd56){const _0x5b6fb8=a57_0x391ec3;if(_0x23cd56===undefined||_0x23cd56===null||_0x23cd56==='')return{'found':![]};if(typeof _0x23cd56===_0x5b6fb8(0x129))try{const _0x402549=JSON['parse'](_0x23cd56);return readBusinessGroupFromExtend(_0x402549);}catch{return{'found':![]};}const _0x28602b=asPlainObject(_0x23cd56);if(Object[_0x5b6fb8(0x12c)][_0x5b6fb8(0x132)][_0x5b6fb8(0x113)](_0x28602b,_0x5b6fb8(0x11b)))return{'found':!![],'value':_0x28602b[_0x5b6fb8(0x11b)]};return{'found':![]};}function firstPresent(..._0x2528e4){for(const _0x57da0c of _0x2528e4){if(_0x57da0c!==undefined&&_0x57da0c!==null)return{'found':!![],'value':_0x57da0c};}return{'found':![]};}function assertExpectedBusinessGroup(_0x40ea68,_0x56c665){const _0x3c6481=a57_0x391ec3;if(_0x56c665===undefined)return;const _0x1711ee=normalizeBusinessGroup(_0x56c665);if(_0x40ea68!==_0x1711ee)throw CliErrors['validation'](_0x3c6481(0x135),'Expected\x20'+JSON[_0x3c6481(0x121)](_0x1711ee)+_0x3c6481(0x10e)+JSON[_0x3c6481(0x121)](_0x40ea68));}function buildBackendPayload(_0x164dc0,_0x27e98f,_0x4d6e69){const _0x469f88=a57_0x391ec3;return{'appCode':_0x164dc0,'datasetCode':_0x27e98f[_0x469f88(0x10d)],'businessGroup':_0x4d6e69};}function normalizeBusinessGroup(_0x23098f){const _0x1850b8=a57_0x391ec3;if(_0x23098f===undefined||_0x23098f===null)return'';return String(_0x23098f)[_0x1850b8(0x10c)]();}function asPlainObject(_0x3ef8c6){const _0x353f02=a57_0x391ec3;if(!_0x3ef8c6||typeof _0x3ef8c6!==_0x353f02(0xff)||Array[_0x353f02(0x114)](_0x3ef8c6))return{};return _0x3ef8c6;}function firstString(..._0x93feb2){const _0x3cd7bd=a57_0x391ec3;for(const _0x2d4470 of _0x93feb2){if(typeof _0x2d4470===_0x3cd7bd(0x129)&&_0x2d4470['trim']())return _0x2d4470['trim']();if(typeof _0x2d4470==='number'&&Number[_0x3cd7bd(0x109)](_0x2d4470))return String(_0x2d4470);}return undefined;}function firstNumber(..._0x4ad34b){const _0x3504fb=a57_0x391ec3;for(const _0x2441c2 of _0x4ad34b){if(typeof _0x2441c2===_0x3504fb(0x104)&&Number[_0x3504fb(0x109)](_0x2441c2))return _0x2441c2;if(typeof _0x2441c2==='string'&&_0x2441c2['trim']()&&Number[_0x3504fb(0x109)](Number(_0x2441c2)))return Number(_0x2441c2);}return null;}function trim(_0x468e66){const _0x43298d=a57_0x391ec3;return String(_0x468e66||'')[_0x43298d(0x10c)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x2c0e56=a58_0x2ede;(function(_0x102f78,_0x4bc8f5){const _0x4c57cc=a58_0x2ede,_0x33b7ca=_0x102f78();while(!![]){try{const _0x2242f3=-parseInt(_0x4c57cc(0x10e))/0x1*(parseInt(_0x4c57cc(0x128))/0x2)+parseInt(_0x4c57cc(0x11c))/0x3+parseInt(_0x4c57cc(0x121))/0x4*(parseInt(_0x4c57cc(0x124))/0x5)+parseInt(_0x4c57cc(0x118))/0x6+parseInt(_0x4c57cc(0x106))/0x7*(parseInt(_0x4c57cc(0x107))/0x8)+-parseInt(_0x4c57cc(0x10a))/0x9*(parseInt(_0x4c57cc(0x11a))/0xa)+parseInt(_0x4c57cc(0x11f))/0xb;if(_0x2242f3===_0x4bc8f5)break;else _0x33b7ca['push'](_0x33b7ca['shift']());}catch(_0x27e251){_0x33b7ca['push'](_0x33b7ca['shift']());}}}(a58_0x5614,0xafdf9));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a58_0x2c0e56(0x127),'filter':a58_0x2c0e56(0x11d),'getOne':a58_0x2c0e56(0x129)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x2ecdab){const _0x2cf608=a58_0x2c0e56;return _0x2ecdab==null?'':String(_0x2ecdab)[_0x2cf608(0x10b)]();}function getDatasetCode(_0x4319ac){const _0xae75f5=a58_0x2c0e56;return valueToString(_0x4319ac[_0xae75f5(0x11e)]??_0x4319ac[_0xae75f5(0x113)]??_0x4319ac[_0xae75f5(0x116)]?.['datasetCode']);}function getDatasetName(_0x51d95c){const _0x4c1134=a58_0x2c0e56;return valueToString(_0x51d95c[_0x4c1134(0x10d)]??_0x51d95c[_0x4c1134(0x116)]?.[_0x4c1134(0x105)])||_0x4c1134(0x125);}function a58_0x5614(){const _0x31e57d=['code','4416731YkYYHG','tableName','20eEhvAg','object','toUpperCase','1085870ArMsZl','unknown','UNKNOWN','lovrabet','28RorSWe','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','length','datasetName','154rGzDuz','104080FUGvHs','METADATA','dbtable','117meMOov','trim','getOne','name','92041wmRvLK','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','dbtableConfig','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','filter','modelCode','dbId','validation','dataset','\x20的\x20DB_TABLE\x20数据源上下文。','874200JKNeIe','当前数据集\x20\x22','507940hdjUIb','sourceType','2249886JzbVjW','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress'];a58_0x5614=function(){return _0x31e57d;};return a58_0x5614();}function getDatasetSource(_0x59fe2d){const _0x19a0b7=a58_0x2c0e56;return valueToString(_0x59fe2d['source']??_0x59fe2d[_0x19a0b7(0x116)]?.[_0x19a0b7(0x11b)])[_0x19a0b7(0x123)]();}function getDbtableConfig(_0xd8a98b){const _0x19233d=a58_0x2c0e56,_0x3c699b=_0xd8a98b[_0x19233d(0x110)]??_0xd8a98b[_0x19233d(0x109)];return _0x3c699b&&typeof _0x3c699b===_0x19233d(0x122)?_0x3c699b:{};}function a58_0x2ede(_0x582bf0,_0x521298){_0x582bf0=_0x582bf0-0x105;const _0x56144a=a58_0x5614();let _0x2eded0=_0x56144a[_0x582bf0];return _0x2eded0;}export function isDbTableBackedDataset(_0x5c66f0){const _0x1a768e=a58_0x2c0e56,_0xfd4b25=getDatasetSource(_0x5c66f0);if(_0xfd4b25===_0x1a768e(0x108))return![];const _0x2083d8=getDbtableConfig(_0x5c66f0),_0x114fa4=_0x2083d8[_0x1a768e(0x114)]??_0x2083d8['id'],_0x514a33=valueToString(_0x2083d8[_0x1a768e(0x120)]??_0x5c66f0['tableName']??_0x5c66f0['dataset']?.[_0x1a768e(0x120)]);return _0x114fa4!==undefined&&_0x114fa4!==null&&_0x514a33[_0x1a768e(0x12a)]>0x0;}export function filterDbTableBackedDatasets(_0xe2cd51){return _0xe2cd51['filter'](_0x5bd7ae=>isDbTableBackedDataset(_0x5bd7ae));}export function buildDbTableBackedRequirementMessage(_0x48e8c4,_0x30b796='SQL\x20schema\x20validation'){const _0x225b66=a58_0x2c0e56,_0xe97f84=getDatasetSource(_0x48e8c4)||_0x225b66(0x126),_0x4f9b2c=getDatasetName(_0x48e8c4),_0x1bc5f6=getDatasetCode(_0x48e8c4),_0x4eec77=_0x1bc5f6?'\x20('+_0x1bc5f6+')':'';return[_0x225b66(0x119)+_0x4f9b2c+'\x22'+_0x4eec77+'\x20是\x20'+_0xe97f84+'\x20类型,没有可用于\x20'+_0x30b796+_0x225b66(0x117),_0x225b66(0x111),'请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0x225b66(0x10f)+RUNTIME_DATA_ACCESS_COMMANDS[_0x225b66(0x112)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x225b66(0x10c)]+'。']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x30ddc5,_0x35e16c){const _0x40d8bb=a58_0x2c0e56;if(!isDbTableBackedDataset(_0x30ddc5))throw CliErrors[_0x40d8bb(0x115)](buildDbTableBackedRequirementMessage(_0x30ddc5,_0x35e16c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x1a197d=a59_0x5074;(function(_0x2865ed,_0x2d0a3d){const _0x326b1d=a59_0x5074,_0x30fa2d=_0x2865ed();while(!![]){try{const _0x29ed86=-parseInt(_0x326b1d(0x17a))/0x1+-parseInt(_0x326b1d(0x15c))/0x2*(-parseInt(_0x326b1d(0x152))/0x3)+parseInt(_0x326b1d(0x170))/0x4+-parseInt(_0x326b1d(0x153))/0x5*(-parseInt(_0x326b1d(0x151))/0x6)+parseInt(_0x326b1d(0x178))/0x7*(parseInt(_0x326b1d(0x176))/0x8)+-parseInt(_0x326b1d(0x179))/0x9*(parseInt(_0x326b1d(0x16b))/0xa)+-parseInt(_0x326b1d(0x165))/0xb*(parseInt(_0x326b1d(0x148))/0xc);if(_0x29ed86===_0x2d0a3d)break;else _0x30fa2d['push'](_0x30fa2d['shift']());}catch(_0x349f93){_0x30fa2d['push'](_0x30fa2d['shift']());}}}(a59_0x22ad,0x5f79c));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_0x22ad(){const _0x586f79=['9044jOMHGZ','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','dbtableConfig','filter','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','1184104CVfwjh','\x20failed','35oWvqBM','104778UAJHBM','465578HdTVvn','dbid=','dbid','str','24BGNLgb','POST','length','relationPages','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','validation','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','dbId','136656FIiqUw','3XMgxjy','20AXALtC','Dataset\x20id','Matched\x20','appCode','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','tableName','id=','high-risk-write','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','1324912gbmYrO','message','description','bool','No\x20undeleted\x20dataset\x20found\x20for\x20','confirm','delete','boolean','expected-count','1530859vpVaUp','isArray','\x20dataset(s)','number','code','num','310spEAfq','Deleted\x20','/smartapi/dataset/delete-dataset','source','\x20dataset(s);\x20'];a59_0x22ad=function(){return _0x586f79;};return a59_0x22ad();}const DATASET_ID_FLAG={'name':'id','type':'number','description':a59_0x1a197d(0x154)},DBID_FLAG={'name':a59_0x1a197d(0x17c),'type':a59_0x1a197d(0x168),'description':a59_0x1a197d(0x171)},CONFIRM_FLAG={'name':a59_0x1a197d(0x161),'type':a59_0x1a197d(0x163),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a59_0x1a197d(0x164),'type':'number','description':a59_0x1a197d(0x157)};export const datasetDelete={'service':'dataset','command':a59_0x1a197d(0x162),'description':a59_0x1a197d(0x14d),'risk':a59_0x1a197d(0x15a),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x276288){const _0x27a0e7=a59_0x1a197d,_0x5dce53=_0x276288['num']('id'),_0x11655f=_0x276288[_0x27a0e7(0x147)](_0x27a0e7(0x169)),_0xcfecc8=_0x276288[_0x27a0e7(0x16a)](_0x27a0e7(0x17c)),_0x2bab9f=[_0x5dce53>0x0,Boolean(_0x11655f),_0xcfecc8>0x0][_0x27a0e7(0x173)](Boolean);if(_0x2bab9f[_0x27a0e7(0x14a)]===0x0)throw CliErrors[_0x27a0e7(0x14e)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x2bab9f[_0x27a0e7(0x14a)]>0x1)throw CliErrors[_0x27a0e7(0x14e)](_0x27a0e7(0x15b));},async 'dryRun'(_0x261b93){const _0x9fe967=a59_0x1a197d,_0x5ec6d3=await resolveTargets(_0x261b93);return{'method':_0x9fe967(0x149),'url':_0x9fe967(0x16d),'body':{'appCode':_0x261b93['appCode'],'count':_0x5ec6d3[_0x9fe967(0x14a)],'datasets':_0x5ec6d3},'description':'Would\x20delete\x20'+_0x5ec6d3[_0x9fe967(0x14a)]+_0x9fe967(0x174)};},async 'execute'(_0x17dc66){const _0xdfc97c=a59_0x1a197d;if(!_0x17dc66[_0xdfc97c(0x15f)]('confirm'))throw CliErrors[_0xdfc97c(0x14e)](_0xdfc97c(0x14f),_0xdfc97c(0x14c));const _0x5c3ee8=await resolveTargets(_0x17dc66),_0x204f43=[],_0xf4c5d0=[];for(const _0x2fd5a of _0x5c3ee8){try{await deleteDataset(_0x17dc66[_0xdfc97c(0x156)],_0x2fd5a['id']),_0x204f43['push'](_0x2fd5a);}catch(_0xf4bd5f){_0xf4c5d0['push']({..._0x2fd5a,'error':_0xf4bd5f instanceof Error?_0xf4bd5f[_0xdfc97c(0x15d)]:String(_0xf4bd5f)});}}if(_0xf4c5d0[_0xdfc97c(0x14a)]>0x0)return{'ok':![],'data':{'requested':_0x5c3ee8[_0xdfc97c(0x14a)],'deletedCount':_0x204f43[_0xdfc97c(0x14a)],'failedCount':_0xf4c5d0[_0xdfc97c(0x14a)],'deleted':_0x204f43,'failed':_0xf4c5d0},'message':_0xdfc97c(0x16c)+_0x204f43[_0xdfc97c(0x14a)]+'/'+_0x5c3ee8[_0xdfc97c(0x14a)]+_0xdfc97c(0x16f)+_0xf4c5d0['length']+_0xdfc97c(0x177)};return{'ok':!![],'data':{'requested':_0x5c3ee8[_0xdfc97c(0x14a)],'deletedCount':_0x204f43[_0xdfc97c(0x14a)],'deleted':_0x204f43},'message':_0xdfc97c(0x16c)+_0x204f43[_0xdfc97c(0x14a)]+_0xdfc97c(0x167)};}};async function resolveTargets(_0x29dec6){const _0x2b5ec1=a59_0x1a197d,_0x1fc277=_0x29dec6[_0x2b5ec1(0x16a)]('id'),_0x452e6f=_0x29dec6[_0x2b5ec1(0x147)](_0x2b5ec1(0x169)),_0x1bbfae=_0x29dec6[_0x2b5ec1(0x16a)](_0x2b5ec1(0x17c));let _0x313802;_0x452e6f?(_0x313802=await listDatasets(_0x29dec6[_0x2b5ec1(0x156)],{'code':_0x452e6f}),_0x313802=_0x313802[_0x2b5ec1(0x173)](_0x31a68b=>_0x31a68b[_0x2b5ec1(0x169)]===_0x452e6f)):(_0x313802=await listDatasets(_0x29dec6[_0x2b5ec1(0x156)]),_0x1fc277>0x0&&(_0x313802=_0x313802['filter'](_0x21f6da=>_0x21f6da['id']===_0x1fc277)),_0x1bbfae>0x0&&(_0x313802=_0x313802[_0x2b5ec1(0x173)](_0x516e39=>_0x516e39[_0x2b5ec1(0x172)]?.[_0x2b5ec1(0x150)]===_0x1bbfae)));const _0x37622b=_0x313802['map'](normalizeTarget);if(_0x37622b[_0x2b5ec1(0x14a)]===0x0){const _0x149448=_0x452e6f||(_0x1fc277>0x0?_0x2b5ec1(0x159)+_0x1fc277:_0x2b5ec1(0x17b)+_0x1bbfae);throw CliErrors[_0x2b5ec1(0x14e)](_0x2b5ec1(0x160)+_0x149448+'.');}const _0x2efc64=_0x29dec6['num'](_0x2b5ec1(0x164));if(_0x2efc64>0x0&&_0x37622b[_0x2b5ec1(0x14a)]!==_0x2efc64)throw CliErrors[_0x2b5ec1(0x14e)](_0x2b5ec1(0x155)+_0x37622b[_0x2b5ec1(0x14a)]+_0x2b5ec1(0x175)+_0x2efc64+'.');return _0x37622b;}function a59_0x5074(_0x2bfb01,_0x2cade5){_0x2bfb01=_0x2bfb01-0x147;const _0x22ad45=a59_0x22ad();let _0x50748d=_0x22ad45[_0x2bfb01];return _0x50748d;}function normalizeTarget(_0x3df168){const _0x44c509=a59_0x1a197d,_0xb85836=_0x3df168['dbtableConfig']??{};return{'id':_0x3df168['id'],'code':_0x3df168['code'],'name':_0x3df168['name'],'description':_0x3df168[_0x44c509(0x15e)],'source':_0x3df168[_0x44c509(0x16e)],'dbId':_0xb85836['dbId'],'dbName':_0xb85836['dbName'],'tableName':_0xb85836[_0x44c509(0x158)],'relatedPageCount':Array[_0x44c509(0x166)](_0x3df168['relationPages'])?_0x3df168[_0x44c509(0x14b)][_0x44c509(0x14a)]:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60_0xbab67c=a60_0x577f;(function(_0x1a2598,_0x52b5d3){const _0x53e8c7=a60_0x577f,_0x589e96=_0x1a2598();while(!![]){try{const _0x37d20a=parseInt(_0x53e8c7(0x1e1))/0x1*(parseInt(_0x53e8c7(0x208))/0x2)+-parseInt(_0x53e8c7(0x1ea))/0x3+parseInt(_0x53e8c7(0x1da))/0x4+-parseInt(_0x53e8c7(0x1dc))/0x5+-parseInt(_0x53e8c7(0x1e6))/0x6*(parseInt(_0x53e8c7(0x212))/0x7)+-parseInt(_0x53e8c7(0x1c8))/0x8*(-parseInt(_0x53e8c7(0x1fc))/0x9)+-parseInt(_0x53e8c7(0x206))/0xa*(-parseInt(_0x53e8c7(0x1ec))/0xb);if(_0x37d20a===_0x52b5d3)break;else _0x589e96['push'](_0x589e96['shift']());}catch(_0x4c0971){_0x589e96['push'](_0x589e96['shift']());}}}(a60_0x34c5,0x60b74));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x1cf11f){const _0x1c1f9c=a60_0x577f;if(_0x1cf11f[_0x1c1f9c(0x1e3)])return null;const _0x4db490=Boolean(_0x1cf11f[_0x1c1f9c(0x1ed)]!==undefined||_0x1cf11f['doType']!==undefined);let _0x4a5ad1={};if(!_0x4db490&&typeof _0x1cf11f[_0x1c1f9c(0x1f7)]===_0x1c1f9c(0x1cc))try{_0x4a5ad1=JSON[_0x1c1f9c(0x20c)](_0x1cf11f[_0x1c1f9c(0x1f7)]);}catch{}const _0x175b93=_0x4db490?_0x1cf11f[_0x1c1f9c(0x1ee)]:_0x1cf11f[_0x1c1f9c(0x204)],_0x5dc75e=_0x4db490?_0x1cf11f['displayName']:_0x1cf11f[_0x1c1f9c(0x1ee)],_0x4b73f2=_0x4db490?_0x1cf11f[_0x1c1f9c(0x1cd)]:_0x1cf11f['type']||_0x1cf11f[_0x1c1f9c(0x1dd)],_0x498921=_0x4db490?_0x1cf11f[_0x1c1f9c(0x1e0)]===!![]:_0x4a5ad1[_0x1c1f9c(0x1e0)]===!![],_0x3921ca=_0x4db490?_0x1cf11f[_0x1c1f9c(0x1f2)]===!![]:_0x4a5ad1[_0x1c1f9c(0x1f2)]===!![],_0x3030d3=_0x4db490?_0x1cf11f['options']??null:_0x4a5ad1[_0x1c1f9c(0x1d1)]??null,_0x2b6bd7={'name':_0x175b93,'displayName':_0x5dc75e||_0x175b93,'type':_0x4b73f2,'dbType':_0x1cf11f[_0x1c1f9c(0x1d9)],'pk':_0x498921,'required':_0x3921ca,'description':_0x1cf11f[_0x1c1f9c(0x1fe)]||undefined};return Array[_0x1c1f9c(0x1f5)](_0x3030d3)&&_0x3030d3[_0x1c1f9c(0x1fd)]>0x0&&(_0x2b6bd7[_0x1c1f9c(0x1d1)]=_0x3030d3),_0x2b6bd7;}function parseJsonMaybe(_0x4a9dc7){const _0xa58f0=a60_0x577f;if(typeof _0x4a9dc7!==_0xa58f0(0x1cc))return _0x4a9dc7;try{return JSON[_0xa58f0(0x20c)](_0x4a9dc7);}catch{return _0x4a9dc7;}}function normalizeOperationEntry(_0x1c2665,_0x469dbf){const _0x4ea181=a60_0x577f;if(!_0x469dbf||typeof _0x469dbf!=='object')return null;if(!_0x469dbf[_0x4ea181(0x207)]||!_0x469dbf[_0x4ea181(0x210)])return null;const _0x230fd7={'name':_0x1c2665,'method':_0x469dbf[_0x4ea181(0x207)],'path':_0x469dbf['path']};if(_0x469dbf[_0x4ea181(0x1ff)])_0x230fd7[_0x4ea181(0x1ff)]=_0x469dbf['host'];if(_0x469dbf[_0x4ea181(0x1eb)]!=null){const _0x4b4942=parseJsonMaybe(_0x469dbf[_0x4ea181(0x1eb)]);_0x230fd7[_0x4ea181(0x1eb)]=_0x4b4942;}if(_0x469dbf['responseBody']!=null){const _0x4e5c6d=parseJsonMaybe(_0x469dbf[_0x4ea181(0x1c9)]);_0x230fd7[_0x4ea181(0x1c9)]=_0x4e5c6d;}if(_0x469dbf[_0x4ea181(0x21a)]!=null)_0x230fd7[_0x4ea181(0x21a)]=_0x469dbf[_0x4ea181(0x21a)];if(_0x469dbf[_0x4ea181(0x1e4)]!=null)_0x230fd7[_0x4ea181(0x1e4)]=_0x469dbf[_0x4ea181(0x1e4)];if(Array['isArray'](_0x469dbf['requestFields']))_0x230fd7[_0x4ea181(0x209)]=_0x469dbf[_0x4ea181(0x209)];if(Array[_0x4ea181(0x1f5)](_0x469dbf[_0x4ea181(0x1db)]))_0x230fd7['responseFields']=_0x469dbf[_0x4ea181(0x1db)];return _0x230fd7;}function a60_0x577f(_0x409780,_0x226db0){_0x409780=_0x409780-0x1c8;const _0x34c5e9=a60_0x34c5();let _0x577fb3=_0x34c5e9[_0x409780];return _0x577fb3;}function a60_0x34c5(){const _0xab175f=['doType','createTimeField','modelCode','read','options','trim','type','relatedPageInfoList','datasetKey','operations','allFieldNames','tableName','dbType','2867288dqgMRT','responseFields','942615pvbqhC','dataType','toField','split','pkField','3xKZzNh','toFieldLabel','deleted','afterScriptId','relations','577956yrDsnK','modifierNameField','updateTimeField','formatRules','2151465jpctxu','requestBody','22gOpNwZ','displayName','name','fields','properties','logicField','required','alias','creatorNameField','isArray','columnCodeListWithDeleted','extend','fromField','labelField','indexes','toDatasetName','63rBHSMp','length','description','host','dbId','dblinkInfoDTO','detail','creatorIdField','code','modifierIdField','2579050SQTvmW','method','333792zLgZYd','requestFields','str','allFields','parse','object','push','modelId','path','dataset','49CaiIXh','validateRules','sourceType','map','filter','source','doVersion','dbtableConfig','beforeScriptId','277472JbTeBk','responseBody','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','dbName','string'];a60_0x34c5=function(){return _0xab175f;};return a60_0x34c5();}function summarizeDbtable(_0x67a22e){const _0x3b4be7=a60_0x577f,_0x407ca3={},_0x246f4d=[_0x3b4be7(0x200),_0x3b4be7(0x1cb),'tableName',_0x3b4be7(0x1d5),'pkField',_0x3b4be7(0x20b),_0x3b4be7(0x1f1),_0x3b4be7(0x1ce),_0x3b4be7(0x1e8),_0x3b4be7(0x203),_0x3b4be7(0x1f4),_0x3b4be7(0x205),_0x3b4be7(0x1e7),_0x3b4be7(0x1f9),_0x3b4be7(0x201)];for(const _0x13937e of _0x246f4d){if(_0x67a22e[_0x13937e]!==undefined)_0x407ca3[_0x13937e]=_0x67a22e[_0x13937e];}return typeof _0x407ca3[_0x3b4be7(0x20b)]===_0x3b4be7(0x1cc)&&_0x407ca3[_0x3b4be7(0x20b)][_0x3b4be7(0x1fd)]>0x0&&(_0x407ca3[_0x3b4be7(0x1d7)]=_0x407ca3[_0x3b4be7(0x20b)][_0x3b4be7(0x1df)](',')[_0x3b4be7(0x215)](_0x21c1be=>_0x21c1be[_0x3b4be7(0x1d2)]())[_0x3b4be7(0x216)](Boolean)),_0x407ca3;}function normalizeRelatedPages(_0x3488c9){const _0x2fabc7=a60_0x577f;if(!Array[_0x2fabc7(0x1f5)](_0x3488c9))return[];return _0x3488c9[_0x2fabc7(0x216)](_0x515d32=>_0x515d32&&typeof _0x515d32===_0x2fabc7(0x20d))[_0x2fabc7(0x215)](_0x3c975c=>({'id':_0x3c975c['id'],'type':_0x3c975c[_0x2fabc7(0x1d3)],'code':_0x3c975c['code'],'title':_0x3c975c['title'],'deleted':_0x3c975c[_0x2fabc7(0x1e3)]===!![]}));}export const datasetDetail={'service':a60_0xbab67c(0x211),'command':a60_0xbab67c(0x202),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a60_0xbab67c(0x1d0),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a60_0xbab67c(0x1f3),'type':a60_0xbab67c(0x1cc),'description':a60_0xbab67c(0x1ca)}],async 'execute'(_0x5ed4b7){const _0x444d00=a60_0xbab67c,_0x220efa=await getDatasetDetail(_0x5ed4b7[_0x444d00(0x20a)]('code')),_0x5117d9=Array['isArray'](_0x220efa['fields'])?_0x220efa[_0x444d00(0x1ef)]:Array['isArray'](_0x220efa['properties'])?_0x220efa[_0x444d00(0x1f0)]:[],_0x1086a0=_0x5117d9['map'](_0x24aa67=>normalizeField(_0x24aa67))[_0x444d00(0x216)](_0x154017=>_0x154017!==null),_0x4d446c=_0x220efa[_0x444d00(0x1d6)]??{},_0x2c843f=[];for(const [_0x14da91,_0x10da42]of Object['entries'](_0x4d446c)){const _0x5708b0=normalizeOperationEntry(_0x14da91,_0x10da42);if(_0x5708b0)_0x2c843f[_0x444d00(0x20e)](_0x5708b0);}const _0x555687=_0x220efa[_0x444d00(0x219)]??{},_0x3120fe=_0x220efa[_0x444d00(0x211)]??{},_0x340627=_0x555687['dbId']!=null?{'id':_0x555687[_0x444d00(0x200)],'name':_0x555687[_0x444d00(0x1cb)]??null}:undefined;let _0x1f1875;return typeof _0x220efa[_0x444d00(0x1f7)]===_0x444d00(0x1cc)&&(_0x1f1875=parseJsonMaybe(_0x220efa['extend'])),{'ok':!![],'data':{'id':_0x220efa[_0x444d00(0x20f)]??_0x220efa['id'],'name':_0x220efa[_0x444d00(0x1ee)],'code':_0x220efa[_0x444d00(0x1cf)]||_0x220efa[_0x444d00(0x204)],'doVersion':_0x220efa[_0x444d00(0x218)],'description':_0x220efa[_0x444d00(0x1fe)]||_0x3120fe['tableComment']||undefined,'source':_0x220efa[_0x444d00(0x217)]||_0x3120fe[_0x444d00(0x214)],'table':_0x555687[_0x444d00(0x1d8)]||_0x3120fe['tableName'],'datasetKey':_0x555687[_0x444d00(0x1d5)],'pk':_0x555687[_0x444d00(0x1e0)],'db':_0x340627,'dbtable':summarizeDbtable(_0x555687),'fields':_0x1086a0,'operations':_0x2c843f,'indexes':Array[_0x444d00(0x1f5)](_0x3120fe[_0x444d00(0x1fa)])?_0x3120fe[_0x444d00(0x1fa)]:[],'relations':Array[_0x444d00(0x1f5)](_0x220efa[_0x444d00(0x1e5)])?_0x220efa[_0x444d00(0x1e5)][_0x444d00(0x215)](_0x453849=>({'fromField':_0x453849[_0x444d00(0x1f8)],'toDataset':_0x453849[_0x444d00(0x1fb)],'toCode':_0x453849['toDatasetCode'],'toTable':_0x453849['toTableName'],'toField':_0x453849[_0x444d00(0x1de)],'labelField':_0x453849[_0x444d00(0x1e2)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x220efa[_0x444d00(0x1d4)]),...Array[_0x444d00(0x1f5)](_0x220efa[_0x444d00(0x1f6)])?{'columnCodeListWithDeleted':_0x220efa[_0x444d00(0x1f6)]}:{},'formatRules':Array[_0x444d00(0x1f5)](_0x220efa[_0x444d00(0x1e9)])?_0x220efa[_0x444d00(0x1e9)]:[],'validateRules':Array[_0x444d00(0x1f5)](_0x220efa[_0x444d00(0x213)])?_0x220efa['validateRules']:[],..._0x1f1875!==undefined?{'extend':_0x1f1875}:{},'stats':{'fieldCount':_0x1086a0['length'],'operationCount':_0x2c843f[_0x444d00(0x1fd)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x3a0ef3=a61_0x19d6;(function(_0x20a123,_0x23a0d9){const _0x3cb77a=a61_0x19d6,_0x54fcda=_0x20a123();while(!![]){try{const _0x449040=-parseInt(_0x3cb77a(0x11c))/0x1+-parseInt(_0x3cb77a(0x12b))/0x2+-parseInt(_0x3cb77a(0x115))/0x3+-parseInt(_0x3cb77a(0xf9))/0x4+-parseInt(_0x3cb77a(0x103))/0x5+-parseInt(_0x3cb77a(0x10d))/0x6+parseInt(_0x3cb77a(0x109))/0x7;if(_0x449040===_0x23a0d9)break;else _0x54fcda['push'](_0x54fcda['shift']());}catch(_0x2856ab){_0x54fcda['push'](_0x54fcda['shift']());}}}(a61_0x3883,0xcf736));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_0x3a0ef3(0x12d),'hint':a61_0x3a0ef3(0x12a)}]]);export function parseJsonObjectFlag(_0x202c12,_0x551f19){const _0x5ec920=a61_0x3a0ef3;if(!_0x202c12)return undefined;let _0x38452c;try{_0x38452c=JSON[_0x5ec920(0x121)](_0x202c12);}catch(_0x1075c2){const _0xf2d6f4=_0x1075c2 instanceof Error?_0x1075c2[_0x5ec920(0x11a)]:String(_0x1075c2);throw CliErrors[_0x5ec920(0x112)](_0x551f19+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0xf2d6f4);}if(!isPlainObject(_0x38452c)||Array[_0x5ec920(0x10e)](_0x38452c))throw CliErrors['validation'](_0x551f19+'\x20must\x20be\x20a\x20JSON\x20object');return _0x38452c;}export function validateExtendPatchKeys(_0xcc9455){const _0x11a1f0=a61_0x3a0ef3,_0x1263b0=Object[_0x11a1f0(0x10b)](_0xcc9455);if(_0x1263b0['length']===0x0)throw CliErrors[_0x11a1f0(0x112)](_0x11a1f0(0x123));for(const _0x5279cb of _0x1263b0){const _0x110b57=EXTEND_PATCH_REDIRECTS[_0x11a1f0(0x11e)](_0x5279cb);if(_0x110b57)throw CliErrors[_0x11a1f0(0x112)](_0x110b57[_0x11a1f0(0x11a)],_0x110b57['hint']);if(!MUTABLE_EXTEND_KEYS[_0x11a1f0(0x10f)](_0x5279cb))throw CliErrors[_0x11a1f0(0x112)](_0x11a1f0(0xfd)+_0x5279cb,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x51422f=a61_0x3a0ef3,_0x2b7e0b=Array['from'](MUTABLE_EXTEND_KEYS)[_0x51422f(0xfa)]();return _0x2b7e0b['length']>0x0?_0x51422f(0xff)+_0x2b7e0b[_0x51422f(0x12f)](',\x20'):_0x51422f(0x133);}export function applyExtendPatch(_0x1335cd,_0x33c66c){const _0x4f0371=a61_0x3a0ef3;validateExtendPatchKeys(_0x33c66c);const _0x33ae4e=deepClone(_0x1335cd),_0x18275c=[];for(const [_0x51c7d6,_0x4072e3]of Object[_0x4f0371(0x12e)](_0x33c66c)){const _0x32a1f2=_0x33ae4e[_0x51c7d6],_0x18dabf=deepClone(_0x4072e3);!deepEqual(_0x32a1f2,_0x18dabf)&&(_0x33ae4e[_0x51c7d6]=_0x18dabf,_0x18275c[_0x4f0371(0x108)]('extend.'+_0x51c7d6));}return _0x18275c[_0x4f0371(0xfa)](),{'after':_0x33ae4e,'changedPaths':_0x18275c,'changed':_0x18275c[_0x4f0371(0x102)]>0x0};}export function assertExpectation(_0x48b490,_0x207195){const _0x2661d0=a61_0x3a0ef3;if(!_0x207195)return;for(const [_0x80018b,_0x1b44be]of Object[_0x2661d0(0x12e)](_0x207195)){const _0x1250f4=_0x48b490[_0x80018b];if(!deepEqual(_0x1250f4,_0x1b44be))throw CliErrors[_0x2661d0(0x112)]('Expectation\x20mismatch\x20at\x20extend.'+_0x80018b,_0x2661d0(0x110)+JSON['stringify'](_0x1b44be)+_0x2661d0(0x120)+JSON[_0x2661d0(0xfb)](_0x1250f4));}}export async function buildDatasetExtendUpdateResult({appCode:_0x160f13,input:_0x238c1f,dryRun:_0x4bd0c8}){const _0x5620aa=a61_0x3a0ef3;validateInput(_0x238c1f);const _0x5df265=await getDatasetDetail(_0x238c1f[_0x5620aa(0x130)]),_0x5d87f4=parseDatasetExtend(_0x5df265['extend']),_0x2beb77=deepClone(_0x5d87f4[_0x5620aa(0x129)]);assertExpectation(_0x2beb77,_0x238c1f[_0x5620aa(0x117)]);const {after:_0x5530ab,changedPaths:_0xb47f31,changed:_0xe00dd5}=applyExtendPatch(_0x2beb77,_0x238c1f[_0x5620aa(0x11d)]),_0x253268=summarizeDataset(_0x5df265,_0x238c1f['code']);return _0xe00dd5&&!_0x4bd0c8&&(_0x5df265[_0x5620aa(0x128)]=serializeDatasetExtend(_0x5530ab,_0x5d87f4[_0x5620aa(0x114)]),await updateDrivenData(_0x5df265)),{'ok':!![],'data':{'appCode':_0x160f13,'selector':{'code':_0x238c1f[_0x5620aa(0x130)]},'dataset':_0x253268,'dryRun':_0x4bd0c8,'changed':_0xe00dd5,'changedPaths':_0xb47f31,'before':{'extend':_0x2beb77},'after':{'extend':_0x5530ab},'submitted':_0xe00dd5&&!_0x4bd0c8},'message':_0xe00dd5?_0x4bd0c8?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0xb47f31['join'](',\x20')+')':'Updated\x20dataset\x20extend\x20('+_0xb47f31[_0x5620aa(0x12f)](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}export const datasetExtendUpdate={'service':'dataset','command':'extend-update','description':'Patch\x20dataset\x20top-level\x20extend\x20safely','risk':a61_0x3a0ef3(0x113),'flags':[CODE_FLAG,{'name':a61_0x3a0ef3(0xfe),'type':'string','required':!![],'description':a61_0x3a0ef3(0x10a)},{'name':a61_0x3a0ef3(0x127),'type':a61_0x3a0ef3(0xfc),'required':![],'description':a61_0x3a0ef3(0x100)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2b336c){validateInput(readExtendUpdateInput(_0x2b336c));},async 'dryRun'(_0x399689){const _0x45cac4=a61_0x3a0ef3,_0x39b7e8=await buildDatasetExtendUpdateResult({'appCode':_0x399689[_0x45cac4(0x105)],'input':readExtendUpdateInput(_0x399689),'dryRun':!![]});return{'method':_0x45cac4(0x106),'url':'/smartapi/dataset/update-driven-data','body':_0x39b7e8[_0x45cac4(0x101)],'description':_0x39b7e8[_0x45cac4(0x11a)]};},async 'execute'(_0x3f3673){const _0x41d41d=a61_0x3a0ef3;return buildDatasetExtendUpdateResult({'appCode':_0x3f3673[_0x41d41d(0x105)],'input':readExtendUpdateInput(_0x3f3673),'dryRun':![]});}};function a61_0x19d6(_0x5ebd60,_0x5541a3){_0x5ebd60=_0x5ebd60-0xf9;const _0x388368=a61_0x3883();let _0x19d65a=_0x388368[_0x5ebd60];return _0x19d65a;}function readExtendUpdateInput(_0x4c32c8){const _0x21b4ee=a61_0x3a0ef3,_0x264906=trim(_0x4c32c8[_0x21b4ee(0x125)]('code')),_0x552611=parseJsonObjectFlag(_0x4c32c8['str'](_0x21b4ee(0xfe)),_0x21b4ee(0x126)),_0xef12c=parseJsonObjectFlag(_0x4c32c8[_0x21b4ee(0x125)](_0x21b4ee(0x127)),'--expect-json');return{'code':_0x264906,'patch':_0x552611||{},'expect':_0xef12c};}function validateInput(_0x5a11ac){const _0x296a6a=a61_0x3a0ef3;if(!_0x5a11ac['code'])throw CliErrors[_0x296a6a(0x112)](_0x296a6a(0x134));validateExtendPatchKeys(_0x5a11ac['patch']);}function parseDatasetExtend(_0x3aae4a){const _0x599c89=a61_0x3a0ef3;if(typeof _0x3aae4a===_0x599c89(0xfc)){const _0x5dc2ff=_0x3aae4a[_0x599c89(0x124)]();if(!_0x5dc2ff)return{'value':{},'shape':'string'};let _0x3f01b4;try{_0x3f01b4=JSON[_0x599c89(0x121)](_0x5dc2ff);}catch(_0x14ba5e){const _0x33ac94=_0x14ba5e instanceof Error?_0x14ba5e[_0x599c89(0x11a)]:String(_0x14ba5e);throw CliErrors[_0x599c89(0x112)](_0x599c89(0x12c)+_0x33ac94);}if(!isPlainObject(_0x3f01b4)||Array[_0x599c89(0x10e)](_0x3f01b4))throw CliErrors['validation']('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x3f01b4,'shape':'string'};}if(_0x3aae4a===undefined||_0x3aae4a===null)return{'value':{},'shape':_0x599c89(0xfc)};if(!isPlainObject(_0x3aae4a)||Array['isArray'](_0x3aae4a))throw CliErrors[_0x599c89(0x112)](_0x599c89(0x122));return{'value':_0x3aae4a,'shape':'object'};}function a61_0x3883(){const _0x11dfa4=['stringify','string','Unsupported\x20patch\x20key:\x20','patch-json','Allowed\x20keys:\x20','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','data','length','3428765RsGtgf','object','appCode','POST','datasetId','push','42483483HGyHsE','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','keys','dataset','2262066QRmQtl','isArray','has','Expected\x20','datasetName','validation','write','shape','2961117dndVuh','modelCode','expect','dbName','dbtableConfig','message','dbId','1549759AKvkUh','patch','get','datasetCode',',\x20actual\x20','parse','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','trim','str','--patch-json','expect-json','extend','value','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','2094158iHYLda','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','entries','join','code','name','tableName','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','--code\x20is\x20required','2290840hiLoUS','sort'];a61_0x3883=function(){return _0x11dfa4;};return a61_0x3883();}function serializeDatasetExtend(_0x5e8610,_0x5ab734){const _0x3895ca=a61_0x3a0ef3;return _0x5ab734===_0x3895ca(0xfc)?JSON[_0x3895ca(0xfb)](_0x5e8610):_0x5e8610;}function summarizeDataset(_0x1228fc,_0x2f8aea){const _0x16cbfc=a61_0x3a0ef3,_0x2c1929=isPlainObject(_0x1228fc[_0x16cbfc(0x10c)])?_0x1228fc[_0x16cbfc(0x10c)]:{},_0x1eb447=isPlainObject(_0x1228fc[_0x16cbfc(0x119)])?_0x1228fc[_0x16cbfc(0x119)]:{};return{'id':_0x1228fc['modelId']??_0x1228fc['id']??_0x2c1929[_0x16cbfc(0x107)]??null,'code':_0x1228fc[_0x16cbfc(0x116)]??_0x1228fc['code']??_0x2c1929[_0x16cbfc(0x11f)]??_0x2f8aea,'name':_0x1228fc[_0x16cbfc(0x131)]??_0x2c1929[_0x16cbfc(0x111)]??null,'table':_0x1eb447[_0x16cbfc(0x132)]??_0x2c1929[_0x16cbfc(0x132)]??null,'db':_0x1eb447[_0x16cbfc(0x118)]??_0x1eb447[_0x16cbfc(0x11b)]??null};}function deepClone(_0xeaf3f1){const _0x5bfdfb=a61_0x3a0ef3;if(_0xeaf3f1===undefined)return _0xeaf3f1;return JSON[_0x5bfdfb(0x121)](JSON[_0x5bfdfb(0xfb)](_0xeaf3f1));}function deepEqual(_0x4a3386,_0x46fa11){const _0xaccac7=a61_0x3a0ef3;return JSON[_0xaccac7(0xfb)](_0x4a3386)===JSON[_0xaccac7(0xfb)](_0x46fa11);}function isPlainObject(_0x2592f6){const _0x213dcf=a61_0x3a0ef3;return Boolean(_0x2592f6)&&typeof _0x2592f6===_0x213dcf(0x104)&&!Array[_0x213dcf(0x10e)](_0x2592f6);}function trim(_0x3f0eda){const _0x42e4c1=a61_0x3a0ef3,_0x4c916b=String(_0x3f0eda||'')[_0x42e4c1(0x124)]();return _0x4c916b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62_0x1a3d92=a62_0x5c39;(function(_0x442b3f,_0x8adca8){const _0x2e8663=a62_0x5c39,_0x39c95d=_0x442b3f();while(!![]){try{const _0x4b1677=parseInt(_0x2e8663(0x18b))/0x1*(-parseInt(_0x2e8663(0x18e))/0x2)+-parseInt(_0x2e8663(0x16b))/0x3+-parseInt(_0x2e8663(0x194))/0x4+-parseInt(_0x2e8663(0x15d))/0x5*(parseInt(_0x2e8663(0x185))/0x6)+-parseInt(_0x2e8663(0x160))/0x7*(-parseInt(_0x2e8663(0x181))/0x8)+parseInt(_0x2e8663(0x19d))/0x9+parseInt(_0x2e8663(0x169))/0xa*(parseInt(_0x2e8663(0x17d))/0xb);if(_0x4b1677===_0x8adca8)break;else _0x39c95d['push'](_0x39c95d['shift']());}catch(_0x1df15c){_0x39c95d['push'](_0x39c95d['shift']());}}}(a62_0x189e,0x1bf72));function a62_0x189e(){const _0x250bca=['--code\x20is\x20required','4765YOmCVB','dbId','autoIncrement','725277UBeVIW',',\x20actual\x20','keys','/smartapi/dataset/update-driven-data','field','size','expect-json','isArray','stringify','10dNqSpw','options','373848npEDRM','required','chartRole','dbName','\x20must\x20be\x20valid\x20JSON\x20object:\x20','modelCode','Expectation\x20mismatch\x20at\x20','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','appCode','Unsupported\x20patch\x20key:\x20','datasetCode','description','has','dbTypeLen','deprecated','add','Forbidden\x20patch\x20key:\x20','2581106noMMNu','trim','dbTypeScale','dbType','16oJAlGi','pkField','--patch-json','patch-json','204hprIlo','dbFieldName','--field\x20is\x20required','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','str','systemRetain','1eIUeDx','name','Expected\x20','309588fLJxrr','validation','dataset','patch','\x20must\x20be\x20a\x20JSON\x20object','--expect-json','143432VKEtqM','entries','object','string','Allowed\x20keys:\x20','deleted','Dry-run:\x20dataset\x20field\x20','properties','datasetId','183132YyDzeV','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','join','modelId','from','code','parse','Updated\x20dataset\x20field\x20','dbtableConfig','tableName','datetimeFormat','message','fields','sort'];a62_0x189e=function(){return _0x250bca;};return a62_0x189e();}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','displayName',a62_0x1a3d92(0x177),a62_0x1a3d92(0x16a),a62_0x1a3d92(0x16c),a62_0x1a3d92(0x158),'defaultAggregation',a62_0x1a3d92(0x16d),a62_0x1a3d92(0x17a)]),FORBIDDEN_FIELD_KEYS=new Set(['id',a62_0x1a3d92(0x18c),'code',a62_0x1a3d92(0x180),a62_0x1a3d92(0x179),a62_0x1a3d92(0x17f),a62_0x1a3d92(0x186),a62_0x1a3d92(0x157),a62_0x1a3d92(0x199),a62_0x1a3d92(0x182),a62_0x1a3d92(0x15f),a62_0x1a3d92(0x18a)]);function a62_0x5c39(_0x253e36,_0x461395){_0x253e36=_0x253e36-0x157;const _0x189e9c=a62_0x189e();let _0x5c39c3=_0x189e9c[_0x253e36];return _0x5c39c3;}export function parseJsonObjectFlag(_0x843b9e,_0x42f3af){const _0x1b2575=a62_0x1a3d92;if(!_0x843b9e)return undefined;let _0x22ea1c;try{_0x22ea1c=JSON['parse'](_0x843b9e);}catch(_0x3ac6b3){const _0x42d18e=_0x3ac6b3 instanceof Error?_0x3ac6b3[_0x1b2575(0x159)]:String(_0x3ac6b3);throw CliErrors[_0x1b2575(0x18f)](_0x42f3af+_0x1b2575(0x16f)+_0x42d18e);}if(!isPlainObject(_0x22ea1c)||Array[_0x1b2575(0x167)](_0x22ea1c))throw CliErrors[_0x1b2575(0x18f)](_0x42f3af+_0x1b2575(0x192));return _0x22ea1c;}export function validatePatchKeys(_0x5ac2c2){const _0x255297=a62_0x1a3d92,_0x4c4f7f=Object['keys'](_0x5ac2c2);if(_0x4c4f7f['length']===0x0)throw CliErrors[_0x255297(0x18f)](_0x255297(0x19e));for(const _0x132f3c of _0x4c4f7f){if(FORBIDDEN_FIELD_KEYS[_0x255297(0x178)](_0x132f3c))throw CliErrors[_0x255297(0x18f)](_0x255297(0x17c)+_0x132f3c);if(!MUTABLE_FIELD_KEYS[_0x255297(0x178)](_0x132f3c))throw CliErrors[_0x255297(0x18f)](_0x255297(0x175)+_0x132f3c,_0x255297(0x198)+Array[_0x255297(0x1a1)](MUTABLE_FIELD_KEYS)[_0x255297(0x19f)](',\x20'));}}export function applyFieldPatch(_0x40d4f8,_0x279fd8){const _0x2953d1=a62_0x1a3d92;validatePatchKeys(_0x279fd8);const _0x405903=deepClone(_0x40d4f8),_0x1a71a8=new Set();for(const [_0x3bcc56,_0x199f09]of Object[_0x2953d1(0x195)](_0x279fd8)){const _0x52bfea=_0x405903[_0x3bcc56],_0x50c448=mergePatchValue(_0x52bfea,_0x199f09);!deepEqual(_0x52bfea,_0x50c448)&&(_0x405903[_0x3bcc56]=_0x50c448,_0x1a71a8['add'](_0x3bcc56),collectChangedPaths(_0x3bcc56,_0x52bfea,_0x50c448,_0x1a71a8));}return{'after':_0x405903,'changedPaths':Array[_0x2953d1(0x1a1)](_0x1a71a8)[_0x2953d1(0x15b)](),'changed':_0x1a71a8[_0x2953d1(0x165)]>0x0};}export function assertExpectation(_0x15c7e2,_0x1c8400){const _0x4cc1cb=a62_0x1a3d92;if(!_0x1c8400)return;for(const [_0xebfaa7,_0x14b931]of Object[_0x4cc1cb(0x195)](_0x1c8400)){const _0x56df36=_0x15c7e2[_0xebfaa7];if(!deepEqual(_0x56df36,_0x14b931))throw CliErrors['validation'](_0x4cc1cb(0x171)+_0xebfaa7,_0x4cc1cb(0x18d)+JSON['stringify'](_0x14b931)+_0x4cc1cb(0x161)+JSON[_0x4cc1cb(0x168)](_0x56df36));}}export async function buildDatasetFieldUpdateResult({appCode:_0x374c24,input:_0x225708,dryRun:_0x2a5469}){const _0x38e1d7=a62_0x1a3d92;validateInput(_0x225708);const _0x26ada4=await getDatasetDetail(_0x225708[_0x38e1d7(0x1a2)]),_0x57774b=readFieldArray(_0x26ada4),_0x2fdf94=_0x57774b['findIndex'](_0x3797b7=>_0x3797b7?.[_0x38e1d7(0x18c)]===_0x225708[_0x38e1d7(0x164)]);if(_0x2fdf94<0x0)throw CliErrors[_0x38e1d7(0x18f)]('Field\x20not\x20found:\x20'+_0x225708[_0x38e1d7(0x164)]);const _0x389183=deepClone(_0x57774b[_0x2fdf94]);assertExpectation(_0x389183,_0x225708['expect']);const {after:_0x4398a3,changedPaths:_0x156706,changed:_0xe5b03a}=applyFieldPatch(_0x389183,_0x225708['patch']),_0x5529d7=summarizeDataset(_0x26ada4,_0x225708[_0x38e1d7(0x1a2)]);return _0xe5b03a&&!_0x2a5469&&(_0x57774b[_0x2fdf94]=_0x4398a3,await updateDrivenData(_0x26ada4)),{'ok':!![],'data':{'appCode':_0x374c24,'selector':{'code':_0x225708[_0x38e1d7(0x1a2)]},'dataset':_0x5529d7,'field':{'id':_0x389183['id']??null,'name':_0x389183[_0x38e1d7(0x18c)]},'dryRun':_0x2a5469,'changed':_0xe5b03a,'changedPaths':_0x156706,'before':_0x389183,'after':_0x4398a3,'submitted':_0xe5b03a&&!_0x2a5469},'message':_0xe5b03a?_0x2a5469?_0x38e1d7(0x19a)+_0x225708[_0x38e1d7(0x164)]+'\x20would\x20change\x20('+_0x156706['join'](',\x20')+')':_0x38e1d7(0x1a4)+_0x225708[_0x38e1d7(0x164)]+'\x20('+_0x156706['join'](',\x20')+')':'No\x20changes\x20for\x20dataset\x20field\x20'+_0x225708[_0x38e1d7(0x164)]};}export const datasetFieldUpdate={'service':a62_0x1a3d92(0x190),'command':'field-update','description':a62_0x1a3d92(0x172),'risk':'write','flags':[CODE_FLAG,{'name':a62_0x1a3d92(0x164),'type':a62_0x1a3d92(0x197),'required':!![],'description':'Exact\x20raw\x20fields[].name\x20to\x20patch'},{'name':'patch-json','type':a62_0x1a3d92(0x197),'required':!![],'description':a62_0x1a3d92(0x188)},{'name':a62_0x1a3d92(0x166),'type':'string','required':![],'description':a62_0x1a3d92(0x173)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x55cedd){validateInput(readFieldUpdateInput(_0x55cedd));},async 'dryRun'(_0x29e935){const _0x5bc495=a62_0x1a3d92,_0x389cc1=await buildDatasetFieldUpdateResult({'appCode':_0x29e935[_0x5bc495(0x174)],'input':readFieldUpdateInput(_0x29e935),'dryRun':!![]});return{'method':'POST','url':_0x5bc495(0x163),'body':_0x389cc1['data'],'description':_0x389cc1[_0x5bc495(0x159)]};},async 'execute'(_0x243151){return buildDatasetFieldUpdateResult({'appCode':_0x243151['appCode'],'input':readFieldUpdateInput(_0x243151),'dryRun':![]});}};function readFieldUpdateInput(_0x20e7fd){const _0x20b55d=a62_0x1a3d92,_0xfafc15=trim(_0x20e7fd[_0x20b55d(0x189)](_0x20b55d(0x1a2))),_0xce044e=emptyToUndefined(_0x20e7fd[_0x20b55d(0x189)](_0x20b55d(0x164))),_0xfe8db7=parseJsonObjectFlag(_0x20e7fd[_0x20b55d(0x189)](_0x20b55d(0x184)),_0x20b55d(0x183)),_0x813d52=parseJsonObjectFlag(_0x20e7fd[_0x20b55d(0x189)](_0x20b55d(0x166)),_0x20b55d(0x193));return{'code':_0xfafc15,'field':_0xce044e||'','patch':_0xfe8db7||{},'expect':_0x813d52};}function validateInput(_0x16b3f6){const _0xe1ef12=a62_0x1a3d92;if(!_0x16b3f6[_0xe1ef12(0x1a2)])throw CliErrors[_0xe1ef12(0x18f)](_0xe1ef12(0x15c));if(!_0x16b3f6['field'])throw CliErrors[_0xe1ef12(0x18f)](_0xe1ef12(0x187));validatePatchKeys(_0x16b3f6[_0xe1ef12(0x191)]);}function readFieldArray(_0x110f37){const _0x24f0bd=a62_0x1a3d92;if(Array[_0x24f0bd(0x167)](_0x110f37[_0x24f0bd(0x15a)]))return _0x110f37[_0x24f0bd(0x15a)];if(Array[_0x24f0bd(0x167)](_0x110f37[_0x24f0bd(0x19b)]))return _0x110f37[_0x24f0bd(0x19b)];throw CliErrors[_0x24f0bd(0x18f)]('Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]');}function summarizeDataset(_0x4d2527,_0x38116b){const _0x5561e8=a62_0x1a3d92,_0x34ab2d=isPlainObject(_0x4d2527[_0x5561e8(0x190)])?_0x4d2527['dataset']:{},_0x1d3a7e=isPlainObject(_0x4d2527['dbtableConfig'])?_0x4d2527[_0x5561e8(0x1a5)]:{};return{'id':_0x4d2527[_0x5561e8(0x1a0)]??_0x4d2527['id']??_0x34ab2d[_0x5561e8(0x19c)]??null,'code':_0x4d2527[_0x5561e8(0x170)]??_0x4d2527[_0x5561e8(0x1a2)]??_0x34ab2d[_0x5561e8(0x176)]??_0x38116b,'name':_0x4d2527[_0x5561e8(0x18c)]??_0x34ab2d['datasetName']??null,'table':_0x1d3a7e[_0x5561e8(0x157)]??_0x34ab2d[_0x5561e8(0x157)]??null,'db':_0x1d3a7e[_0x5561e8(0x16e)]??_0x1d3a7e[_0x5561e8(0x15e)]??null};}function mergePatchValue(_0xe9fe5c,_0x15c8bf){if(isPlainObject(_0xe9fe5c)&&isPlainObject(_0x15c8bf))return deepMerge(_0xe9fe5c,_0x15c8bf);return deepClone(_0x15c8bf);}function deepMerge(_0x348db6,_0x68d84a){const _0x99fab6=a62_0x1a3d92,_0x235401=deepClone(_0x348db6);for(const [_0x11efaf,_0x5524dc]of Object[_0x99fab6(0x195)](_0x68d84a)){_0x235401[_0x11efaf]=isPlainObject(_0x235401[_0x11efaf])&&isPlainObject(_0x5524dc)?deepMerge(_0x235401[_0x11efaf],_0x5524dc):deepClone(_0x5524dc);}return _0x235401;}function collectChangedPaths(_0x37adda,_0x1e2f1b,_0x497ef9,_0x25bb38){const _0x5b2f3e=a62_0x1a3d92;if(!isPlainObject(_0x1e2f1b)||!isPlainObject(_0x497ef9))return;const _0x1fb9ce=new Set([...Object[_0x5b2f3e(0x162)](_0x1e2f1b),...Object[_0x5b2f3e(0x162)](_0x497ef9)]);for(const _0x2fca2a of _0x1fb9ce){const _0x36098a=_0x1e2f1b[_0x2fca2a],_0x310445=_0x497ef9[_0x2fca2a];!deepEqual(_0x36098a,_0x310445)&&_0x25bb38[_0x5b2f3e(0x17b)](_0x37adda+'.'+_0x2fca2a);}}function deepClone(_0x1d2c04){const _0x4c8cb3=a62_0x1a3d92;if(_0x1d2c04===undefined)return _0x1d2c04;return JSON[_0x4c8cb3(0x1a3)](JSON[_0x4c8cb3(0x168)](_0x1d2c04));}function deepEqual(_0x165e7a,_0x48ea55){const _0x26f34b=a62_0x1a3d92;return JSON[_0x26f34b(0x168)](_0x165e7a)===JSON['stringify'](_0x48ea55);}function isPlainObject(_0x207e13){const _0x412cc2=a62_0x1a3d92;return Boolean(_0x207e13)&&typeof _0x207e13===_0x412cc2(0x196)&&!Array[_0x412cc2(0x167)](_0x207e13);}function emptyToUndefined(_0x4fc1ad){const _0x5a4f21=a62_0x1a3d92,_0x415c3f=String(_0x4fc1ad||'')[_0x5a4f21(0x17e)]();return _0x415c3f||undefined;}function trim(_0x3a058c){const _0x371c2d=a62_0x1a3d92;return String(_0x3a058c||'')[_0x371c2d(0x17e)]();}
|
|
1
|
+
const a62_0xcf12c8=a62_0x3570;(function(_0x4a6a29,_0x7722a3){const _0x31d2a3=a62_0x3570,_0x3b2fd2=_0x4a6a29();while(!![]){try{const _0x2d4da1=-parseInt(_0x31d2a3(0x108))/0x1*(-parseInt(_0x31d2a3(0x115))/0x2)+parseInt(_0x31d2a3(0x134))/0x3+-parseInt(_0x31d2a3(0x130))/0x4*(parseInt(_0x31d2a3(0x149))/0x5)+parseInt(_0x31d2a3(0x12d))/0x6+parseInt(_0x31d2a3(0xff))/0x7*(-parseInt(_0x31d2a3(0x10f))/0x8)+parseInt(_0x31d2a3(0x135))/0x9+-parseInt(_0x31d2a3(0x13c))/0xa*(-parseInt(_0x31d2a3(0x146))/0xb);if(_0x2d4da1===_0x7722a3)break;else _0x3b2fd2['push'](_0x3b2fd2['shift']());}catch(_0x5b166c){_0x3b2fd2['push'](_0x3b2fd2['shift']());}}}(a62_0x557a,0x91f2c));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_0xcf12c8(0x101),a62_0xcf12c8(0x103),a62_0xcf12c8(0x148),a62_0xcf12c8(0x11b),a62_0xcf12c8(0x128),a62_0xcf12c8(0x112),a62_0xcf12c8(0x129),a62_0xcf12c8(0x143)]),FORBIDDEN_FIELD_KEYS=new Set(['id',a62_0xcf12c8(0x144),a62_0xcf12c8(0x138),a62_0xcf12c8(0xfa),a62_0xcf12c8(0x10a),'dbTypeScale',a62_0xcf12c8(0x125),a62_0xcf12c8(0x119),a62_0xcf12c8(0x11d),a62_0xcf12c8(0x110),a62_0xcf12c8(0x122),a62_0xcf12c8(0x106)]);export function parseJsonObjectFlag(_0x262a12,_0x43d5bc){const _0x346842=a62_0xcf12c8;if(!_0x262a12)return undefined;let _0x353538;try{_0x353538=JSON['parse'](_0x262a12);}catch(_0x342b84){const _0x49e6dc=_0x342b84 instanceof Error?_0x342b84[_0x346842(0x12b)]:String(_0x342b84);throw CliErrors[_0x346842(0x14a)](_0x43d5bc+_0x346842(0x120)+_0x49e6dc);}if(!isPlainObject(_0x353538)||Array['isArray'](_0x353538))throw CliErrors[_0x346842(0x14a)](_0x43d5bc+_0x346842(0x111));return _0x353538;}export function validatePatchKeys(_0x1710e7){const _0x1e086c=a62_0xcf12c8,_0x4c466a=Object[_0x1e086c(0x116)](_0x1710e7);if(_0x4c466a[_0x1e086c(0x13a)]===0x0)throw CliErrors[_0x1e086c(0x14a)](_0x1e086c(0x13e));for(const _0x2c4135 of _0x4c466a){if(FORBIDDEN_FIELD_KEYS[_0x1e086c(0x11e)](_0x2c4135))throw CliErrors['validation'](_0x1e086c(0xfc)+_0x2c4135);if(!MUTABLE_FIELD_KEYS[_0x1e086c(0x11e)](_0x2c4135))throw CliErrors[_0x1e086c(0x14a)](_0x1e086c(0x126)+_0x2c4135,'Allowed\x20keys:\x20'+Array[_0x1e086c(0xfd)](MUTABLE_FIELD_KEYS)[_0x1e086c(0x133)](',\x20'));}}function a62_0x3570(_0x1e19d9,_0x37b37b){_0x1e19d9=_0x1e19d9-0xf9;const _0x557aed=a62_0x557a();let _0x357001=_0x557aed[_0x1e19d9];return _0x357001;}export function applyFieldPatch(_0x3dcae2,_0x2b9b57){const _0x48f396=a62_0xcf12c8;validatePatchKeys(_0x2b9b57);const _0x505654=deepClone(_0x3dcae2),_0x21e764=new Set();for(const [_0x2f9b84,_0x2e9d1e]of Object[_0x48f396(0x139)](_0x2b9b57)){const _0x1f3db2=_0x505654[_0x2f9b84],_0x36ec6a=mergePatchValue(_0x1f3db2,_0x2e9d1e);!deepEqual(_0x1f3db2,_0x36ec6a)&&(_0x505654[_0x2f9b84]=_0x36ec6a,_0x21e764['add'](_0x2f9b84),collectChangedPaths(_0x2f9b84,_0x1f3db2,_0x36ec6a,_0x21e764));}return{'after':_0x505654,'changedPaths':Array['from'](_0x21e764)[_0x48f396(0x12a)](),'changed':_0x21e764[_0x48f396(0xfe)]>0x0};}export function assertExpectation(_0xb898d5,_0x53b8be){const _0x4c302d=a62_0xcf12c8;if(!_0x53b8be)return;for(const [_0x4965cc,_0x4a8d19]of Object['entries'](_0x53b8be)){const _0x44abd0=_0xb898d5[_0x4965cc];if(!deepEqual(_0x44abd0,_0x4a8d19))throw CliErrors[_0x4c302d(0x14a)](_0x4c302d(0x10b)+_0x4965cc,_0x4c302d(0x136)+JSON['stringify'](_0x4a8d19)+_0x4c302d(0x147)+JSON[_0x4c302d(0x12e)](_0x44abd0));}}export async function buildDatasetFieldUpdateResult({appCode:_0x5ab75e,input:_0x4c4cb1,dryRun:_0x5cdc77}){const _0x36753c=a62_0xcf12c8;validateInput(_0x4c4cb1);const _0x564920=await getDatasetDetail(_0x4c4cb1[_0x36753c(0x138)]),_0x56bfaa=readFieldArray(_0x564920),_0x4905f1=_0x56bfaa[_0x36753c(0x105)](_0x5aaec5=>_0x5aaec5?.[_0x36753c(0x144)]===_0x4c4cb1['field']);if(_0x4905f1<0x0)throw CliErrors['validation'](_0x36753c(0x12f)+_0x4c4cb1[_0x36753c(0x100)]);const _0x205c83=deepClone(_0x56bfaa[_0x4905f1]);assertExpectation(_0x205c83,_0x4c4cb1[_0x36753c(0x137)]);const {after:_0x5f2438,changedPaths:_0x81fe4d,changed:_0x3360fa}=applyFieldPatch(_0x205c83,_0x4c4cb1[_0x36753c(0x10c)]),_0x17f96a=summarizeDataset(_0x564920,_0x4c4cb1[_0x36753c(0x138)]);return _0x3360fa&&!_0x5cdc77&&(_0x56bfaa[_0x4905f1]=_0x5f2438,await updateDrivenData(_0x564920)),{'ok':!![],'data':{'appCode':_0x5ab75e,'selector':{'code':_0x4c4cb1[_0x36753c(0x138)]},'dataset':_0x17f96a,'field':{'id':_0x205c83['id']??null,'name':_0x205c83[_0x36753c(0x144)]},'dryRun':_0x5cdc77,'changed':_0x3360fa,'changedPaths':_0x81fe4d,'before':_0x205c83,'after':_0x5f2438,'submitted':_0x3360fa&&!_0x5cdc77},'message':_0x3360fa?_0x5cdc77?'Dry-run:\x20dataset\x20field\x20'+_0x4c4cb1[_0x36753c(0x100)]+'\x20would\x20change\x20('+_0x81fe4d[_0x36753c(0x133)](',\x20')+')':_0x36753c(0x10e)+_0x4c4cb1['field']+'\x20('+_0x81fe4d['join'](',\x20')+')':_0x36753c(0x124)+_0x4c4cb1[_0x36753c(0x100)]};}export const datasetFieldUpdate={'service':a62_0xcf12c8(0x117),'command':a62_0xcf12c8(0x121),'description':a62_0xcf12c8(0xf9),'risk':'write','flags':[CODE_FLAG,{'name':'field','type':a62_0xcf12c8(0x102),'required':!![],'description':'Exact\x20raw\x20fields[].name\x20to\x20patch'},{'name':'patch-json','type':a62_0xcf12c8(0x102),'required':!![],'description':a62_0xcf12c8(0x140)},{'name':'expect-json','type':a62_0xcf12c8(0x102),'required':![],'description':a62_0xcf12c8(0x142)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1c4aec){validateInput(readFieldUpdateInput(_0x1c4aec));},async 'dryRun'(_0x4d6970){const _0x1c8d9f=a62_0xcf12c8,_0xd9d864=await buildDatasetFieldUpdateResult({'appCode':_0x4d6970[_0x1c8d9f(0x109)],'input':readFieldUpdateInput(_0x4d6970),'dryRun':!![]});return{'method':_0x1c8d9f(0xfb),'url':_0x1c8d9f(0x141),'body':_0xd9d864[_0x1c8d9f(0x13f)],'description':_0xd9d864[_0x1c8d9f(0x12b)]};},async 'execute'(_0x6b7039){return buildDatasetFieldUpdateResult({'appCode':_0x6b7039['appCode'],'input':readFieldUpdateInput(_0x6b7039),'dryRun':![]});}};function readFieldUpdateInput(_0x32ab61){const _0x3a64ee=a62_0xcf12c8,_0x5a658f=trim(_0x32ab61['str'](_0x3a64ee(0x138))),_0x54ea5c=emptyToUndefined(_0x32ab61['str'](_0x3a64ee(0x100))),_0x57406c=parseJsonObjectFlag(_0x32ab61[_0x3a64ee(0x107)](_0x3a64ee(0x104)),'--patch-json'),_0x20c0e8=parseJsonObjectFlag(_0x32ab61[_0x3a64ee(0x107)](_0x3a64ee(0x113)),'--expect-json');return{'code':_0x5a658f,'field':_0x54ea5c||'','patch':_0x57406c||{},'expect':_0x20c0e8};}function validateInput(_0xd10a31){const _0x21333e=a62_0xcf12c8;if(!_0xd10a31[_0x21333e(0x138)])throw CliErrors[_0x21333e(0x14a)]('--code\x20is\x20required');if(!_0xd10a31['field'])throw CliErrors[_0x21333e(0x14a)](_0x21333e(0x13d));validatePatchKeys(_0xd10a31[_0x21333e(0x10c)]);}function readFieldArray(_0x28f6a3){const _0x117de5=a62_0xcf12c8;if(Array['isArray'](_0x28f6a3[_0x117de5(0x12c)]))return _0x28f6a3[_0x117de5(0x12c)];if(Array['isArray'](_0x28f6a3[_0x117de5(0x118)]))return _0x28f6a3['properties'];throw CliErrors[_0x117de5(0x14a)]('Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]');}function summarizeDataset(_0x2c9c2c,_0x3e3cb2){const _0x113a2f=a62_0xcf12c8,_0x1cc6b6=isPlainObject(_0x2c9c2c['dataset'])?_0x2c9c2c[_0x113a2f(0x117)]:{},_0x311ab2=isPlainObject(_0x2c9c2c[_0x113a2f(0x132)])?_0x2c9c2c[_0x113a2f(0x132)]:{};return{'id':_0x2c9c2c['modelId']??_0x2c9c2c['id']??_0x1cc6b6[_0x113a2f(0x11f)]??null,'code':_0x2c9c2c[_0x113a2f(0x127)]??_0x2c9c2c[_0x113a2f(0x138)]??_0x1cc6b6[_0x113a2f(0x11c)]??_0x3e3cb2,'name':_0x2c9c2c[_0x113a2f(0x144)]??_0x1cc6b6[_0x113a2f(0x13b)]??null,'table':_0x311ab2[_0x113a2f(0x119)]??_0x1cc6b6[_0x113a2f(0x119)]??null,'db':_0x311ab2[_0x113a2f(0x123)]??_0x311ab2[_0x113a2f(0x114)]??null};}function mergePatchValue(_0x26b198,_0xce283f){if(isPlainObject(_0x26b198)&&isPlainObject(_0xce283f))return deepMerge(_0x26b198,_0xce283f);return deepClone(_0xce283f);}function deepMerge(_0x17ed35,_0x45906c){const _0x5b0007=a62_0xcf12c8,_0x5f2e47=deepClone(_0x17ed35);for(const [_0x4cc0a4,_0x4f76fe]of Object[_0x5b0007(0x139)](_0x45906c)){_0x5f2e47[_0x4cc0a4]=isPlainObject(_0x5f2e47[_0x4cc0a4])&&isPlainObject(_0x4f76fe)?deepMerge(_0x5f2e47[_0x4cc0a4],_0x4f76fe):deepClone(_0x4f76fe);}return _0x5f2e47;}function collectChangedPaths(_0x528495,_0x203ca,_0x1f4718,_0x13822f){const _0x45c142=a62_0xcf12c8;if(!isPlainObject(_0x203ca)||!isPlainObject(_0x1f4718))return;const _0xb6e30b=new Set([...Object[_0x45c142(0x116)](_0x203ca),...Object[_0x45c142(0x116)](_0x1f4718)]);for(const _0x1fcf16 of _0xb6e30b){const _0x3719b7=_0x203ca[_0x1fcf16],_0x58f534=_0x1f4718[_0x1fcf16];!deepEqual(_0x3719b7,_0x58f534)&&_0x13822f[_0x45c142(0x131)](_0x528495+'.'+_0x1fcf16);}}function deepClone(_0x35a9d0){const _0xc49649=a62_0xcf12c8;if(_0x35a9d0===undefined)return _0x35a9d0;return JSON[_0xc49649(0x10d)](JSON[_0xc49649(0x12e)](_0x35a9d0));}function deepEqual(_0x1abe9d,_0x51c72e){const _0x3416a7=a62_0xcf12c8;return JSON[_0x3416a7(0x12e)](_0x1abe9d)===JSON['stringify'](_0x51c72e);}function isPlainObject(_0x60c47a){const _0x1bec59=a62_0xcf12c8;return Boolean(_0x60c47a)&&typeof _0x60c47a===_0x1bec59(0x11a)&&!Array['isArray'](_0x60c47a);}function emptyToUndefined(_0x839d52){const _0x2b0988=a62_0xcf12c8,_0x4ffc18=String(_0x839d52||'')[_0x2b0988(0x145)]();return _0x4ffc18||undefined;}function a62_0x557a(){const _0x2c0918=['length','datasetName','6420MzCkwm','--field\x20is\x20required','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','data','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','/smartapi/dataset/update-driven-data','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','deprecated','name','trim','1705OZYqfA',',\x20actual\x20','options','107035shGNfg','validation','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','dbType','POST','Forbidden\x20patch\x20key:\x20','from','size','28Vzqpca','field','displayName','string','description','patch-json','findIndex','systemRetain','str','695701HIgqjj','appCode','dbTypeLen','Expectation\x20mismatch\x20at\x20','patch','parse','Updated\x20dataset\x20field\x20','951128VhHovx','pkField','\x20must\x20be\x20a\x20JSON\x20object','defaultAggregation','expect-json','dbId','2EqsnvY','keys','dataset','properties','tableName','object','required','datasetCode','deleted','has','datasetId','\x20must\x20be\x20valid\x20JSON\x20object:\x20','field-update','autoIncrement','dbName','No\x20changes\x20for\x20dataset\x20field\x20','dbFieldName','Unsupported\x20patch\x20key:\x20','modelCode','datetimeFormat','chartRole','sort','message','fields','1357068SXHDKY','stringify','Field\x20not\x20found:\x20','208BSAVRP','add','dbtableConfig','join','1987224mrvIKV','4524615LFRaoH','Expected\x20','expect','code','entries'];a62_0x557a=function(){return _0x2c0918;};return a62_0x557a();}function trim(_0x194d27){const _0x906910=a62_0xcf12c8;return String(_0x194d27||'')[_0x906910(0x145)]();}
|