@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.16-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -0
- package/lib/commands/kb/delete.js +1 -0
- package/lib/commands/kb/detail.js +1 -0
- package/lib/commands/kb/index.js +1 -0
- package/lib/commands/kb/list.js +1 -0
- package/lib/commands/kb/shared.js +1 -0
- package/lib/commands/kb/update.js +1 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.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/skills/skill-presence.js +1 -0
- 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
|
-
const
|
|
1
|
+
const a51_0x369f18=a51_0x378a;function a51_0x378a(_0x50f551,_0x15d57b){_0x50f551=_0x50f551-0xa5;const _0x1c5098=a51_0x1c50();let _0x378af9=_0x1c5098[_0x50f551];return _0x378af9;}(function(_0x55960f,_0x1686d9){const _0x4b1e86=a51_0x378a,_0x33f1b2=_0x55960f();while(!![]){try{const _0x3086f4=-parseInt(_0x4b1e86(0xb3))/0x1+parseInt(_0x4b1e86(0xb5))/0x2*(parseInt(_0x4b1e86(0xb2))/0x3)+-parseInt(_0x4b1e86(0xbb))/0x4*(-parseInt(_0x4b1e86(0xb8))/0x5)+parseInt(_0x4b1e86(0xba))/0x6+-parseInt(_0x4b1e86(0xb4))/0x7*(-parseInt(_0x4b1e86(0xb9))/0x8)+-parseInt(_0x4b1e86(0xa5))/0x9*(-parseInt(_0x4b1e86(0xa7))/0xa)+-parseInt(_0x4b1e86(0xaa))/0xb*(parseInt(_0x4b1e86(0xad))/0xc);if(_0x3086f4===_0x1686d9)break;else _0x33f1b2['push'](_0x33f1b2['shift']());}catch(_0x46748c){_0x33f1b2['push'](_0x33f1b2['shift']());}}}(a51_0x1c50,0xaad58));import{CliErrors}from'../../errors.js';function a51_0x1c50(){const _0x4a1741=['string','key','6OapSRA','1227140HKMDtH','5215IamrXp','1088898dYkNBI','Missing\x20key.','Get\x20a\x20config\x20value\x20by\x20key','93230BAzRyF','11504cqXHMo','269904MQsWit','8vuFvsx','\x20config\x20get\x20--key\x20<key>','2709fbpDdG','Usage:\x20','12550qDNBuK','str','object','231121kQBWgQ','Key\x20not\x20found:\x20','app','396JsKfoY','get','appcode'];a51_0x1c50=function(){return _0x4a1741;};return a51_0x1c50();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x3c9a5e){const _0x4ae367=a51_0x378a,_0x3d19b3=_0x3c9a5e[_0x4ae367(0xa8)](_0x4ae367(0xb1));if(!_0x3d19b3)throw CliErrors['validation'](_0x4ae367(0xb6),_0x4ae367(0xa6)+CLI_BIN_NAME+_0x4ae367(0xbc));const _0x5b4764=readConfig(),_0x19e98e=_0x3d19b3===_0x4ae367(0xac)?_0x4ae367(0xaf):_0x3d19b3,_0x1270c2=_0x5b4764[_0x19e98e];if(_0x1270c2===undefined)throw CliErrors['validation'](_0x4ae367(0xab)+_0x3d19b3);return{'ok':!![],'data':typeof _0x1270c2===_0x4ae367(0xa9)?_0x1270c2:{[_0x19e98e]:_0x1270c2},'message':typeof _0x1270c2===_0x4ae367(0xa9)?undefined:String(_0x1270c2)};}export const configGetDefinition={'service':'config','command':a51_0x369f18(0xae),'description':a51_0x369f18(0xb7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a51_0x369f18(0xb1),'type':a51_0x369f18(0xb0),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7f57b3,_0x1acdac){const _0x25c1d4=a52_0xc885,_0xc772fc=_0x7f57b3();while(!![]){try{const _0x167eaf=-parseInt(_0x25c1d4(0x188))/0x1+parseInt(_0x25c1d4(0x18a))/0x2+parseInt(_0x25c1d4(0x187))/0x3*(-parseInt(_0x25c1d4(0x18b))/0x4)+parseInt(_0x25c1d4(0x18e))/0x5*(-parseInt(_0x25c1d4(0x186))/0x6)+parseInt(_0x25c1d4(0x18d))/0x7+parseInt(_0x25c1d4(0x189))/0x8+parseInt(_0x25c1d4(0x18c))/0x9;if(_0x167eaf===_0x1acdac)break;else _0xc772fc['push'](_0xc772fc['shift']());}catch(_0x31a1e7){_0xc772fc['push'](_0xc772fc['shift']());}}}(a52_0xcd14,0x8ddff));function a52_0xc885(_0x184617,_0x4a10a8){_0x184617=_0x184617-0x186;const _0xcd14f8=a52_0xcd14();let _0xc885f2=_0xcd14f8[_0x184617];return _0xc885f2;}import{configListDefinition}from'../../commands/config/list.js';function a52_0xcd14(){const _0x5b439d=['7187736NdmXze','1350098dmspqj','20816cRWsSU','5334165FOUjLH','4471180qfhTXY','5CgOhRc','6541818jCEAHV','321xxCYPk','576691EVdXRz'];a52_0xcd14=function(){return _0x5b439d;};return a52_0xcd14();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53_0x37874d=a53_0x4bd3;(function(_0x299ef7,_0x4bd009){const _0x198f9d=a53_0x4bd3,_0x6fd0e=_0x299ef7();while(!![]){try{const _0x31c50b=-parseInt(_0x198f9d(0x8f))/0x1+parseInt(_0x198f9d(0x91))/0x2*(-parseInt(_0x198f9d(0x92))/0x3)+-parseInt(_0x198f9d(0x9e))/0x4+parseInt(_0x198f9d(0x95))/0x5*(parseInt(_0x198f9d(0x98))/0x6)+parseInt(_0x198f9d(0xa0))/0x7*(-parseInt(_0x198f9d(0x97))/0x8)+-parseInt(_0x198f9d(0x9a))/0x9+parseInt(_0x198f9d(0x9f))/0xa;if(_0x31c50b===_0x4bd009)break;else _0x6fd0e['push'](_0x6fd0e['shift']());}catch(_0x4179b6){_0x6fd0e['push'](_0x6fd0e['shift']());}}}(a53_0x20a8,0x91d3a));function a53_0x20a8(){const _0x4643e0=['bool','205iIJFTw','config','104PYUpFJ','5298WBUKDp','global','4901697gBsJQI','boolean','read','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2742980qJmYWa','38009260zAiIPp','204505xaLbxK','837132cNhCKK','list','1585036MmBPcj','3coqNgu','List\x20all\x20config\x20values'];a53_0x20a8=function(){return _0x4643e0;};return a53_0x20a8();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x28bb9e){const _0x255748=a53_0x4bd3,_0x25ed64=_0x28bb9e[_0x255748(0x94)](_0x255748(0x99))?readScopedConfig(_0x255748(0x99)):readConfig();return{'ok':!![],'data':_0x25ed64};}function a53_0x4bd3(_0x11ce86,_0x245257){_0x11ce86=_0x11ce86-0x8f;const _0x20a8b9=a53_0x20a8();let _0x4bd3b1=_0x20a8b9[_0x11ce86];return _0x4bd3b1;}export const configListDefinition={'service':a53_0x37874d(0x96),'command':a53_0x37874d(0x90),'description':a53_0x37874d(0x93),'risk':a53_0x37874d(0x9c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x37874d(0x99),'type':a53_0x37874d(0x9b),'description':a53_0x37874d(0x9d),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x2bb464=a54_0x3cbb;(function(_0x4fa191,_0x2040fd){const _0x4edfea=a54_0x3cbb,_0x5741fc=_0x4fa191();while(!![]){try{const _0x44cead=-parseInt(_0x4edfea(0x89))/0x1*(-parseInt(_0x4edfea(0x79))/0x2)+parseInt(_0x4edfea(0x7d))/0x3+-parseInt(_0x4edfea(0x77))/0x4*(parseInt(_0x4edfea(0x85))/0x5)+parseInt(_0x4edfea(0x99))/0x6+-parseInt(_0x4edfea(0x9e))/0x7*(parseInt(_0x4edfea(0x78))/0x8)+parseInt(_0x4edfea(0x87))/0x9+-parseInt(_0x4edfea(0x8c))/0xa;if(_0x44cead===_0x2040fd)break;else _0x5741fc['push'](_0x5741fc['shift']());}catch(_0x35b485){_0x5741fc['push'](_0x5741fc['shift']());}}}(a54_0x3b3c,0xcb94d));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a54_0x3b3c(){const _0x8d9167=['app','Missing\x20value.','1192938wyPxMl','value','length','key','Missing\x20key.','7600803srsZuR','locale','Set\x20a\x20config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','write','str','\x20set\x20to:\x20','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','appcode','Top-level\x20key\x20\x22','39752WVSjBj','8dTITsI','2138658VcFNQL','global','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','1786047jviaXm','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','validation','\x22\x20is\x20not\x20settable.','config','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Invalid\x20value\x20for\x20\x22','\x22.\x20Allowed:\x20','75hzLrei','join','4905963foghlr','Project','1MhKDdJ','env','apps','3398400KSupYt','Usage:\x20','Config\x20value','Invalid\x20locale\x20value.','includes','string','object','set','\x20app\x20add\x20<name>\x20--appcode\x20','boolean','keys'];a54_0x3b3c=function(){return _0x8d9167;};return a54_0x3b3c();}function a54_0x3cbb(_0x52c849,_0x2ae340){_0x52c849=_0x52c849-0x75;const _0x3b3ca0=a54_0x3b3c();let _0x3cbbad=_0x3b3ca0[_0x52c849];return _0x3cbbad;}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x34ed21){const _0x275f17=a54_0x3cbb,_0x4c58c7=_0x34ed21[_0x275f17(0xa4)]('key'),_0x207699=_0x34ed21[_0x275f17(0xa4)](_0x275f17(0x9a));if(!_0x4c58c7)throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x9d),_0x275f17(0x8d)+CLI_BIN_NAME+_0x275f17(0x7e));if(_0x207699===undefined||_0x207699==='')throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x98),_0x275f17(0x8d)+CLI_BIN_NAME+_0x275f17(0x7e));if(_0x207699[_0x275f17(0x9b)]>0x1f4)throw CliErrors['validation'](_0x275f17(0x7c));if(!isTopLevelConfigKey(_0x4c58c7))throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x76)+_0x4c58c7+_0x275f17(0x80),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x4c58c7==='riskLevel')throw CliErrors[_0x275f17(0x7f)](_0x275f17(0xa1));if(CONFIG_ENUM_VALUES[_0x4c58c7]&&!CONFIG_ENUM_VALUES[_0x4c58c7][_0x275f17(0x90)](_0x207699))throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x83)+_0x4c58c7+_0x275f17(0x84)+CONFIG_ENUM_VALUES[_0x4c58c7][_0x275f17(0x86)](',\x20'));if(_0x4c58c7===_0x275f17(0x9f)&&!normalizeLocale(_0x207699))throw CliErrors['validation'](_0x275f17(0x8f),_0x275f17(0x7b));const _0xf5e289={'global':_0x34ed21['bool'](_0x275f17(0x7a))},_0x5d2b10=resolveWriteScope(_0xf5e289),_0x1f732e=readScopedConfig(_0x5d2b10);let _0x3f4e4f=_0x4c58c7,_0x3206ea=_0x207699;_0x4c58c7===_0x275f17(0x97)&&(_0x3f4e4f=_0x275f17(0x75),delete _0x1f732e[_0x275f17(0x97)]);_0x4c58c7===_0x275f17(0x9f)&&(_0x3206ea=normalizeLocale(_0x207699));if(_0x4c58c7===_0x275f17(0x8a)){_0x3206ea=normalizeEnv(_0x207699);if(!isProduction(_0x3206ea)&&!isDaily(_0x3206ea))throw CliErrors[_0x275f17(0x7f)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x4c58c7===_0x275f17(0x75)){const _0x4d2083=_0x1f732e[_0x275f17(0x8b)]&&typeof _0x1f732e[_0x275f17(0x8b)]===_0x275f17(0x92)?Object[_0x275f17(0x96)](_0x1f732e[_0x275f17(0x8b)]):[];if(_0x4d2083[_0x275f17(0x9b)]>0x0)throw CliErrors[_0x275f17(0x7f)](_0x275f17(0xa2),'Use\x20`'+CLI_BIN_NAME+_0x275f17(0x94)+_0x3206ea+'`,\x20`'+CLI_BIN_NAME+_0x275f17(0xa6));const _0xa61ad7=buildCanonicalProjectConfig({..._0x1f732e},{'appCodes':[_0x3206ea],'env':typeof _0x1f732e[_0x275f17(0x8a)]===_0x275f17(0x91)?_0x1f732e[_0x275f17(0x8a)]:undefined});writeScopedConfig(_0xa61ad7,_0x5d2b10);const _0x22f6d5=_0x5d2b10===_0x275f17(0x7a)?'Global':_0x275f17(0x88);return{'ok':!![],'message':'✓\x20'+_0x22f6d5+'\x20appcode\x20set\x20to:\x20'+_0x3206ea+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x1f732e[_0x3f4e4f]=_0x3206ea,writeScopedConfig(_0x1f732e,_0x5d2b10);const _0x54edba=_0x5d2b10===_0x275f17(0x7a)?'Global':_0x275f17(0x88);return{'ok':!![],'message':'✓\x20'+_0x54edba+'\x20'+_0x3f4e4f+_0x275f17(0xa5)+_0x3206ea};}export const configSetDefinition={'service':a54_0x2bb464(0x81),'command':a54_0x2bb464(0x93),'description':a54_0x2bb464(0xa0),'risk':a54_0x2bb464(0xa3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a54_0x2bb464(0x9c),'type':a54_0x2bb464(0x91),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x2bb464(0x9a),'type':a54_0x2bb464(0x91),'description':a54_0x2bb464(0x8e),'required':!![]},{'name':a54_0x2bb464(0x7a),'type':a54_0x2bb464(0x95),'description':a54_0x2bb464(0x82),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bdd4d,_0x1580c1){var _0x4e40e3=a55_0x1544,_0x3f124d=_0x5bdd4d();while(!![]){try{var _0x35aff5=-parseInt(_0x4e40e3(0xcb))/0x1+parseInt(_0x4e40e3(0xd7))/0x2*(-parseInt(_0x4e40e3(0xd3))/0x3)+parseInt(_0x4e40e3(0xcf))/0x4+-parseInt(_0x4e40e3(0xce))/0x5*(parseInt(_0x4e40e3(0xd0))/0x6)+-parseInt(_0x4e40e3(0xd2))/0x7+-parseInt(_0x4e40e3(0xd1))/0x8+parseInt(_0x4e40e3(0xcd))/0x9*(parseInt(_0x4e40e3(0xd4))/0xa);if(_0x35aff5===_0x1580c1)break;else _0x3f124d['push'](_0x3f124d['shift']());}catch(_0x4c8e45){_0x3f124d['push'](_0x3f124d['shift']());}}}(a55_0x53e0,0x3233d));import{CLI_BIN_NAME}from'../../constant/cli.js';function a55_0x1544(_0x24feba,_0x549285){_0x24feba=_0x24feba-0xc8;var _0x53e008=a55_0x53e0();var _0x15440e=_0x53e008[_0x24feba];return _0x15440e;}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(_0x25c878){var _0x4373fb=a55_0x1544;if(_0x25c878[_0x4373fb(0xc8)])return _0x4373fb(0xc8);if(!isInProject())throw CliErrors[_0x4373fb(0xc9)](_0x4373fb(0xd5),_0x4373fb(0xcc)+CLI_BIN_NAME+_0x4373fb(0xca));return _0x4373fb(0xd6);}export function readScopedConfig(_0x503874){return readConfigFile(resolveWriteConfigPath(_0x503874));}export function writeScopedConfig(_0x425488,_0x34f823){writeConfigFile(resolveWriteConfigPath(_0x34f823),_0x425488);}function a55_0x53e0(){var _0x3fdbbb=['4398CPCbPj','1817312yOmHGg','1104194jeYNFf','149157ulMfpE','1459270YoByYH','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','project','6Bcxrly','global','validation','\x20init`\x20first.','340900owkLqg','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','63ryMJVl','1445eMHiuY','1083760OdeHbM'];a55_0x53e0=function(){return _0x3fdbbb;};return a55_0x53e0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x22c216=a56_0xa30b;(function(_0x563ca9,_0x4f9d0a){const _0x446806=a56_0xa30b,_0x3e05f9=_0x563ca9();while(!![]){try{const _0x1b6cd6=parseInt(_0x446806(0x7d))/0x1+parseInt(_0x446806(0x77))/0x2*(parseInt(_0x446806(0x72))/0x3)+-parseInt(_0x446806(0x6d))/0x4+parseInt(_0x446806(0x6b))/0x5+parseInt(_0x446806(0x79))/0x6*(parseInt(_0x446806(0x7a))/0x7)+-parseInt(_0x446806(0x7c))/0x8*(-parseInt(_0x446806(0x7b))/0x9)+-parseInt(_0x446806(0x75))/0xa*(parseInt(_0x446806(0x71))/0xb);if(_0x1b6cd6===_0x4f9d0a)break;else _0x3e05f9['push'](_0x3e05f9['shift']());}catch(_0xa97bc2){_0x3e05f9['push'](_0x3e05f9['shift']());}}}(a56_0x4842,0xa886a));function a56_0x4842(){const _0x2e554a=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','24XYfzFM','1713082sBhdtc','7479864MRqCjp','8MyRHrV','931307YOoJwd','\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}]','2808675klLBxD','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','1903532PHIIUJ','\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)','join','41888uzTJYG','3kmzLIB','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','Filter\x20dataset\x20records\x20with\x20query\x20conditions','8480uYucli','filter','2184614FedQAi'];a56_0x4842=function(){return _0x2e554a;};return a56_0x4842();}function a56_0xa30b(_0x166d2c,_0x8654a2){_0x166d2c=_0x166d2c-0x6a;const _0x48420b=a56_0x4842();let _0xa30b48=_0x48420b[_0x166d2c];return _0xa30b48;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a56_0x22c216(0x76),'operation':'filter','description':a56_0x22c216(0x74),'paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a56_0x22c216(0x78),a56_0x22c216(0x6c),a56_0x22c216(0x6e),a56_0x22c216(0x6a),a56_0x22c216(0x6f),a56_0x22c216(0x73)][a56_0x22c216(0x70)]('\x0a')});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0x1d1c94=a57_0x565c;(function(_0x1a64c2,_0x3eee75){const _0x4c27de=a57_0x565c,_0x13fdb2=_0x1a64c2();while(!![]){try{const _0x2d78aa=parseInt(_0x4c27de(0xde))/0x1+-parseInt(_0x4c27de(0xd3))/0x2*(-parseInt(_0x4c27de(0xda))/0x3)+parseInt(_0x4c27de(0xdc))/0x4*(parseInt(_0x4c27de(0xdd))/0x5)+-parseInt(_0x4c27de(0xd4))/0x6*(-parseInt(_0x4c27de(0xd5))/0x7)+-parseInt(_0x4c27de(0xdb))/0x8+parseInt(_0x4c27de(0xd6))/0x9+-parseInt(_0x4c27de(0xd8))/0xa;if(_0x2d78aa===_0x3eee75)break;else _0x13fdb2['push'](_0x13fdb2['shift']());}catch(_0x3a93c5){_0x13fdb2['push'](_0x13fdb2['shift']());}}}(a57_0x2517,0x932d9));function a57_0x2517(){const _0x15bc82=['91KfVnAX','1761669azDbtX','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','15996040CAwtby','Get\x20a\x20single\x20record\x20by\x20ID','1080120iKmOsM','4254680VqqVaP','647772dWkpEX','25alLWus','900597xXgpAR','4oRRTtH','49914fhyuhm'];a57_0x2517=function(){return _0x15bc82;};return a57_0x2517();}import{buildDataCommand}from'../../commands/data/shared.js';function a57_0x565c(_0x424b98,_0x2309b8){_0x424b98=_0x424b98-0xd3;const _0x251766=a57_0x2517();let _0x565cb3=_0x251766[_0x424b98];return _0x565cb3;}export const dataGetOne=buildDataCommand({'command':'getOne','operation':'getOne','description':a57_0x1d1c94(0xd9),'paramsRequired':!![],'paramsHint':a57_0x1d1c94(0xd7)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf29f0e,_0x383e8c){const _0x1917e3=a58_0x1f26,_0x4686ee=_0xf29f0e();while(!![]){try{const _0x18ab0d=parseInt(_0x1917e3(0x1e0))/0x1*(parseInt(_0x1917e3(0x1df))/0x2)+-parseInt(_0x1917e3(0x1e6))/0x3+-parseInt(_0x1917e3(0x1e1))/0x4+-parseInt(_0x1917e3(0x1e5))/0x5*(parseInt(_0x1917e3(0x1e3))/0x6)+-parseInt(_0x1917e3(0x1e7))/0x7+-parseInt(_0x1917e3(0x1e4))/0x8+parseInt(_0x1917e3(0x1e2))/0x9;if(_0x18ab0d===_0x383e8c)break;else _0x4686ee['push'](_0x4686ee['shift']());}catch(_0xa4e9b6){_0x4686ee['push'](_0x4686ee['shift']());}}}(a58_0x1f03,0xabeb3));function a58_0x1f03(){const _0x1e40a8=['31782240YEXWpk','48vLlAfR','5781768qQwhxc','111985HSnius','3902205xNewnF','8631567VrcxUZ','2tRmXBa','1194759ffXyfq','2344908AsVwEh'];a58_0x1f03=function(){return _0x1e40a8;};return a58_0x1f03();}import{dataFilter}from'../../commands/data/filter.js';function a58_0x1f26(_0x18b2e8,_0x3f8d5a){_0x18b2e8=_0x18b2e8-0x1df;const _0x1f0374=a58_0x1f03();let _0x1f26ac=_0x1f0374[_0x18b2e8];return _0x1f26ac;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2774da,_0x448b2c){const _0x2b705b=a59_0x5d17,_0x5a0fd8=_0x2774da();while(!![]){try{const _0x2b3eb0=-parseInt(_0x2b705b(0xe5))/0x1*(-parseInt(_0x2b705b(0xe2))/0x2)+-parseInt(_0x2b705b(0xde))/0x3+-parseInt(_0x2b705b(0xee))/0x4+-parseInt(_0x2b705b(0xf0))/0x5*(-parseInt(_0x2b705b(0xf1))/0x6)+parseInt(_0x2b705b(0xe9))/0x7+parseInt(_0x2b705b(0xf6))/0x8*(-parseInt(_0x2b705b(0xe0))/0x9)+parseInt(_0x2b705b(0xef))/0xa;if(_0x2b3eb0===_0x448b2c)break;else _0x5a0fd8['push'](_0x5a0fd8['shift']());}catch(_0xa4a0b3){_0x5a0fd8['push'](_0x5a0fd8['shift']());}}}(a59_0x30ae,0x8fa27));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 a59_0x30ae(){const _0x184517=['5211xFetHm','helpExtra','57620ZzxChY','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','validation','15AxnwZf','code','str','appCode','4055786SPtpGg','compress','flagMissing','now','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','1010572aEoGKk','6662410CQkvzw','6595ogokST','5232fCtHRW','params','paramsHint','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','command','13712rMmIeC','string','operation','paramsRequired','2983743UZBhdd','data'];a59_0x30ae=function(){return _0x184517;};return a59_0x30ae();}function a59_0x5d17(_0x55936a,_0x18dd3d){_0x55936a=_0x55936a-0xdb;const _0x30aef3=a59_0x30ae();let _0x5d1795=_0x30aef3[_0x55936a];return _0x5d1795;}function assertGetOneId(_0x579adf){const _0x888369=a59_0x5d17;if(!_0x579adf)throw CliErrors[_0x888369(0xeb)](_0x888369(0xf2),_0x888369(0xe3));const _0x2c14e6=_0x579adf['id'];if(_0x2c14e6===undefined||_0x2c14e6===null||_0x2c14e6==='')throw CliErrors[_0x888369(0xe4)](_0x888369(0xed),_0x888369(0xf4));}function parseCommandParams(_0x3b1bcc){return parseJsonParams(_0x3b1bcc)??{};}export function buildDataCommand(_0x4ef26f){const _0x4a1473=a59_0x5d17,_0x484616='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x4a1473(0xdf),'command':_0x4ef26f[_0x4a1473(0xf5)],'description':_0x4ef26f['description'],'risk':'read','defaultOutputFormat':_0x4a1473(0xea),'helpExtra':_0x4ef26f[_0x4a1473(0xe1)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x4a1473(0xdb),'description':_0x484616},{'name':'params','type':'string','description':_0x4ef26f[_0x4a1473(0xf3)]}],async 'validate'(_0x36be29){const _0x2eef0e=_0x4a1473,_0x28a722=_0x36be29[_0x2eef0e(0xe7)]('params');if(_0x4ef26f[_0x2eef0e(0xdd)]&&!_0x28a722)throw CliErrors[_0x2eef0e(0xeb)](_0x2eef0e(0xf2),_0x4ef26f[_0x2eef0e(0xf3)]);const _0x20e9af=parseJsonParams(_0x28a722);_0x4ef26f[_0x2eef0e(0xdc)]==='getOne'&&assertGetOneId(_0x20e9af);},async 'execute'(_0x5cdbe8){const _0x32fa53=_0x4a1473,_0x225940=parseCommandParams(_0x5cdbe8[_0x32fa53(0xe7)](_0x32fa53(0xf2))),_0x1e7aa3=Date[_0x32fa53(0xec)](),_0x2644ad=await executeDatasetDataOperation(_0x5cdbe8[_0x32fa53(0xe8)],_0x5cdbe8[_0x32fa53(0xe7)](_0x32fa53(0xe6)),_0x4ef26f[_0x32fa53(0xdc)],_0x225940),_0x1c8177=Date['now']()-_0x1e7aa3;return{'ok':!![],'data':{'result':_0x2644ad,'elapsed':_0x1c8177},'message':'data\x20'+_0x4ef26f[_0x32fa53(0xf5)]+'\x20completed\x20in\x20'+_0x1c8177+'ms'};}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a60_0x254d99=a60_0x4d43;(function(_0x415295,_0x100985){const _0x5e1a62=a60_0x4d43,_0x15f009=_0x415295();while(!![]){try{const _0x29b636=-parseInt(_0x5e1a62(0xe1))/0x1*(parseInt(_0x5e1a62(0xda))/0x2)+-parseInt(_0x5e1a62(0xca))/0x3+-parseInt(_0x5e1a62(0xd1))/0x4*(-parseInt(_0x5e1a62(0xf0))/0x5)+-parseInt(_0x5e1a62(0xe9))/0x6+-parseInt(_0x5e1a62(0xc3))/0x7*(-parseInt(_0x5e1a62(0xcc))/0x8)+parseInt(_0x5e1a62(0xc5))/0x9*(parseInt(_0x5e1a62(0xdc))/0xa)+parseInt(_0x5e1a62(0xdb))/0xb;if(_0x29b636===_0x100985)break;else _0x15f009['push'](_0x15f009['shift']());}catch(_0x170911){_0x15f009['push'](_0x15f009['shift']());}}}(a60_0x2d88,0x6b1e8));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a60_0x254d99(0xf4);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x46020f,input:_0x495158,dryRun:_0x447378}){const _0x4d620d=a60_0x254d99;validateInput(_0x495158);const _0xadf4d=normalizeBusinessGroup(_0x495158[_0x4d620d(0xd6)]),_0x1edae8=await getDatasetDetail(_0x495158[_0x4d620d(0xd5)]),_0xfd1657=resolveBusinessGroupDataset(_0x1edae8,_0x495158[_0x4d620d(0xd5)]),_0x17533c=loadCurrentBusinessGroup(_0x1edae8,_0xfd1657);assertExpectedBusinessGroup(_0x17533c,_0x495158['expectBusinessGroup']);const _0x24a8ca=buildBackendPayload(_0x46020f,_0xfd1657,_0xadf4d),_0x684526=_0x17533c!==_0xadf4d;let _0x51ba6d;if(_0x684526&&!_0x447378){await updateErBusinessGroup(_0x24a8ca);const _0x9d53c1=await getDatasetDetail(_0xfd1657['code']),_0x2244c0=resolveBusinessGroupDataset(_0x9d53c1,_0xfd1657[_0x4d620d(0xd5)]),_0xce83f4=loadCurrentBusinessGroup(_0x9d53c1,_0x2244c0);if(_0xce83f4!==_0xadf4d)throw CliErrors['apiError'](_0x4d620d(0xbc),_0x4d620d(0xc0)+JSON[_0x4d620d(0xef)](_0xadf4d)+',\x20actual\x20'+JSON[_0x4d620d(0xef)](_0xce83f4)+'.');_0x51ba6d={'verified':!![],'status':_0x4d620d(0xd9),'afterReadback':{'businessGroup':_0xce83f4}};}else!_0x684526&&(_0x51ba6d={'verified':!![],'status':_0x4d620d(0xe8),'afterReadback':{'businessGroup':_0x17533c}});const _0x375906={'operation':'update','appCode':_0x46020f,'selector':{'code':_0xfd1657[_0x4d620d(0xd5)]},'dataset':_0xfd1657,'before':{'businessGroup':_0x17533c},'after':{'businessGroup':_0xadf4d},'changed':_0x684526,'dryRun':_0x447378,'submitted':_0x684526&&!_0x447378,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x24a8ca},..._0x51ba6d?{'verification':_0x51ba6d}:{},'warnings':[]};return{'ok':!![],'data':_0x375906,'message':_0x684526?_0x447378?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0xfd1657[_0x4d620d(0xd5)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0xfd1657[_0x4d620d(0xd5)]:_0x4d620d(0xd2)+_0xfd1657[_0x4d620d(0xd5)]};}export const datasetBusinessGroupUpdate={'service':a60_0x254d99(0xc6),'command':a60_0x254d99(0xc9),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':a60_0x254d99(0xbd),'type':a60_0x254d99(0xe6),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it'},{'name':a60_0x254d99(0xe7),'type':'string','required':![],'description':a60_0x254d99(0xb8)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x505084){validateInput(readBusinessGroupUpdateInput(_0x505084));},async 'dryRun'(_0x2255e8){const _0x520cb0=a60_0x254d99,_0x309df1=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2255e8[_0x520cb0(0xeb)],'input':readBusinessGroupUpdateInput(_0x2255e8),'dryRun':!![]});return{'method':_0x520cb0(0xcf),'url':BACKEND_PATH,'body':_0x309df1['data'][_0x520cb0(0xf1)][_0x520cb0(0xe3)],'description':_0x309df1['message'],..._0x309df1[_0x520cb0(0xd3)]};},async 'execute'(_0x36df7c){const _0x2c0d52=a60_0x254d99;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x36df7c[_0x2c0d52(0xeb)],'input':readBusinessGroupUpdateInput(_0x36df7c),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x157987){const _0x4975d1=a60_0x254d99,_0x381036=_0x157987['str']('expect-business-group');return{'code':trim(_0x157987[_0x4975d1(0xdf)](_0x4975d1(0xd5))),'businessGroup':_0x157987[_0x4975d1(0xdf)](_0x4975d1(0xbd)),'expectBusinessGroup':_0x381036===undefined||_0x381036===''?undefined:_0x381036};}function validateInput(_0x27324c){const _0x9f20a8=a60_0x254d99;if(!trim(_0x27324c[_0x9f20a8(0xd5)]))throw CliErrors[_0x9f20a8(0xc4)](_0x9f20a8(0xea));if(_0x27324c[_0x9f20a8(0xd6)]===undefined)throw CliErrors[_0x9f20a8(0xc4)](_0x9f20a8(0xe2));}function resolveBusinessGroupDataset(_0x1e9bf8,_0x105985){const _0x3dad3b=a60_0x254d99,_0x10a608=asPlainObject(_0x1e9bf8[_0x3dad3b(0xc6)]),_0x52948a=asPlainObject(_0x1e9bf8[_0x3dad3b(0xbf)]),_0xb6286b=resolveSourceType(_0x1e9bf8,_0x10a608,_0x52948a),_0x4425b8=firstString(_0x1e9bf8[_0x3dad3b(0xf3)],_0x1e9bf8[_0x3dad3b(0xd5)],_0x10a608['datasetCode'],_0x105985)||_0x105985;return{'id':firstNumber(_0x1e9bf8[_0x3dad3b(0xd4)],_0x1e9bf8['id'],_0x10a608[_0x3dad3b(0xbb)])??firstString(_0x1e9bf8[_0x3dad3b(0xd4)],_0x1e9bf8['id'],_0x10a608[_0x3dad3b(0xbb)])??null,'code':_0x4425b8,'name':firstString(_0x1e9bf8[_0x3dad3b(0xc7)],_0x10a608[_0x3dad3b(0xed)],_0x10a608['name'])||null,'sourceType':_0xb6286b};}function resolveSourceType(_0x4104a2,_0x5c15a6,_0x3d9c74){const _0x259ba8=a60_0x254d99,_0x25bd43=firstString(_0x4104a2['source'],_0x4104a2[_0x259ba8(0xc8)],_0x5c15a6[_0x259ba8(0xde)],_0x5c15a6['sourceType'])?.[_0x259ba8(0xba)]()[_0x259ba8(0xc2)]();if(_0x25bd43==='DB_TABLE'||_0x25bd43===_0x259ba8(0xdd))return _0x25bd43;if(Object['keys'](_0x3d9c74)[_0x259ba8(0xcb)]>0x0)return _0x259ba8(0xd8);throw CliErrors[_0x259ba8(0xc4)](_0x259ba8(0xf2));}function a60_0x4d43(_0x3c5cbe,_0xa1f364){_0x3c5cbe=_0x3c5cbe-0xb8;const _0x2d8872=a60_0x2d88();let _0x4d4355=_0x2d8872[_0x3c5cbe];return _0x4d4355;}function loadCurrentBusinessGroup(_0x29b2cd,_0x364474){const _0x1924fa=a60_0x254d99,_0x5ba7ed=readBusinessGroupFromDatasetDetail(_0x29b2cd,_0x364474['sourceType']);if(_0x5ba7ed[_0x1924fa(0xee)])return normalizeBusinessGroup(_0x5ba7ed[_0x1924fa(0xc1)]);if(_0x364474[_0x1924fa(0xc8)]===_0x1924fa(0xdd))return'';throw CliErrors['validation'](_0x1924fa(0xe4),_0x1924fa(0xe0));}function a60_0x2d88(){const _0xb06dc=['payload','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','number','string','expect-business-group','unchanged','628932FeIMab','--code\x20is\x20required','appCode','hasOwnProperty','datasetName','found','stringify','11555eZyaoI','backend','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','modelCode','/smartapi/question/er-config/business-group/edit','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','object','trim','datasetId','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','business-group','extend','dbtableConfig','Expected\x20','value','toUpperCase','582869WBJIsT','validation','126hLpzAp','dataset','name','sourceType','business-group-update','2260860vZZvxm','length','8FiVOsB','parse','isArray','POST','isFinite','928muUVrZ','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','data','modelId','code','businessGroup','call','DB_TABLE','matched','6uiEJIV','1616450YNchie','579470eyXHdb','METADATA','source','str','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','93475QikFNU','--business-group\x20is\x20required'];a60_0x2d88=function(){return _0xb06dc;};return a60_0x2d88();}function readBusinessGroupFromDatasetDetail(_0x10701f,_0x1c4bbd){const _0x3f797c=a60_0x254d99,_0x4c6f0c=asPlainObject(_0x10701f[_0x3f797c(0xc6)]),_0x52c915=firstPresent(_0x10701f[_0x3f797c(0xd6)]);if(_0x52c915[_0x3f797c(0xee)])return _0x52c915;const _0x1c00a9=firstPresent(_0x4c6f0c[_0x3f797c(0xd6)]);if(_0x1c00a9[_0x3f797c(0xee)])return _0x1c00a9;if(_0x1c4bbd===_0x3f797c(0xd8))return{'found':![]};const _0xf74242=readBusinessGroupFromExtend(_0x10701f[_0x3f797c(0xbe)]);if(_0xf74242[_0x3f797c(0xee)])return _0xf74242;return readBusinessGroupFromExtend(_0x4c6f0c[_0x3f797c(0xbe)]);}function readBusinessGroupFromExtend(_0x881f2b){const _0x40a450=a60_0x254d99;if(_0x881f2b===undefined||_0x881f2b===null||_0x881f2b==='')return{'found':![]};if(typeof _0x881f2b===_0x40a450(0xe6))try{const _0x52e6b9=JSON[_0x40a450(0xcd)](_0x881f2b);return readBusinessGroupFromExtend(_0x52e6b9);}catch{return{'found':![]};}const _0x44af83=asPlainObject(_0x881f2b);if(Object['prototype'][_0x40a450(0xec)][_0x40a450(0xd7)](_0x44af83,_0x40a450(0xd6)))return{'found':!![],'value':_0x44af83['businessGroup']};return{'found':![]};}function firstPresent(..._0x259a66){for(const _0x15beef of _0x259a66){if(_0x15beef!==undefined&&_0x15beef!==null)return{'found':!![],'value':_0x15beef};}return{'found':![]};}function assertExpectedBusinessGroup(_0xa90a94,_0x8ca7fc){const _0x2a814d=a60_0x254d99;if(_0x8ca7fc===undefined)return;const _0x48e6e5=normalizeBusinessGroup(_0x8ca7fc);if(_0xa90a94!==_0x48e6e5)throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20businessGroup',_0x2a814d(0xc0)+JSON[_0x2a814d(0xef)](_0x48e6e5)+',\x20actual\x20'+JSON[_0x2a814d(0xef)](_0xa90a94));}function buildBackendPayload(_0x52c036,_0x3dcb5a,_0x4e6a52){const _0x86491a=a60_0x254d99;return{'appCode':_0x52c036,'datasetCode':_0x3dcb5a[_0x86491a(0xd5)],'businessGroup':_0x4e6a52};}function normalizeBusinessGroup(_0x52c52d){const _0x211bcb=a60_0x254d99;if(_0x52c52d===undefined||_0x52c52d===null)return'';return String(_0x52c52d)[_0x211bcb(0xba)]();}function asPlainObject(_0x3c61d3){const _0xca137b=a60_0x254d99;if(!_0x3c61d3||typeof _0x3c61d3!==_0xca137b(0xb9)||Array[_0xca137b(0xce)](_0x3c61d3))return{};return _0x3c61d3;}function firstString(..._0x5c9c4c){const _0x38d97f=a60_0x254d99;for(const _0x4f0504 of _0x5c9c4c){if(typeof _0x4f0504===_0x38d97f(0xe6)&&_0x4f0504[_0x38d97f(0xba)]())return _0x4f0504[_0x38d97f(0xba)]();if(typeof _0x4f0504===_0x38d97f(0xe5)&&Number[_0x38d97f(0xd0)](_0x4f0504))return String(_0x4f0504);}return undefined;}function firstNumber(..._0x31f4e1){const _0x40c39f=a60_0x254d99;for(const _0x5ec63b of _0x31f4e1){if(typeof _0x5ec63b===_0x40c39f(0xe5)&&Number['isFinite'](_0x5ec63b))return _0x5ec63b;if(typeof _0x5ec63b===_0x40c39f(0xe6)&&_0x5ec63b[_0x40c39f(0xba)]()&&Number[_0x40c39f(0xd0)](Number(_0x5ec63b)))return Number(_0x5ec63b);}return null;}function trim(_0x31e896){const _0x43b103=a60_0x254d99;return String(_0x31e896||'')[_0x43b103(0xba)]();}
|
|
1
|
+
const a60_0x2e7b1d=a60_0x12ec;(function(_0x1ac9f6,_0x33d7cd){const _0x5de4cc=a60_0x12ec,_0x80c1f9=_0x1ac9f6();while(!![]){try{const _0x36acc4=parseInt(_0x5de4cc(0x160))/0x1*(-parseInt(_0x5de4cc(0x139))/0x2)+-parseInt(_0x5de4cc(0x150))/0x3*(-parseInt(_0x5de4cc(0x16b))/0x4)+parseInt(_0x5de4cc(0x156))/0x5*(parseInt(_0x5de4cc(0x168))/0x6)+-parseInt(_0x5de4cc(0x12c))/0x7+parseInt(_0x5de4cc(0x134))/0x8*(-parseInt(_0x5de4cc(0x142))/0x9)+parseInt(_0x5de4cc(0x13d))/0xa+parseInt(_0x5de4cc(0x141))/0xb;if(_0x36acc4===_0x33d7cd)break;else _0x80c1f9['push'](_0x80c1f9['shift']());}catch(_0xd65f26){_0x80c1f9['push'](_0x80c1f9['shift']());}}}(a60_0x16ad,0x65dbb));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a60_0x2e7b1d(0x13b);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x269f6b,input:_0x1e41fa,dryRun:_0x4c0dbd}){const _0x4484c2=a60_0x2e7b1d;validateInput(_0x1e41fa);const _0x1dfb5b=normalizeBusinessGroup(_0x1e41fa['businessGroup']),_0x19e6b8=await getDatasetDetail(_0x1e41fa[_0x4484c2(0x15b)]),_0x1b28b5=resolveBusinessGroupDataset(_0x19e6b8,_0x1e41fa['code']),_0x48fa23=loadCurrentBusinessGroup(_0x19e6b8,_0x1b28b5);assertExpectedBusinessGroup(_0x48fa23,_0x1e41fa['expectBusinessGroup']);const _0x47fca6=buildBackendPayload(_0x269f6b,_0x1b28b5,_0x1dfb5b),_0x3f1e32=_0x48fa23!==_0x1dfb5b;let _0x369b9a;if(_0x3f1e32&&!_0x4c0dbd){await updateErBusinessGroup(_0x47fca6);const _0x2f97a1=await getDatasetDetail(_0x1b28b5[_0x4484c2(0x15b)]),_0x209c18=resolveBusinessGroupDataset(_0x2f97a1,_0x1b28b5[_0x4484c2(0x15b)]),_0x11cc17=loadCurrentBusinessGroup(_0x2f97a1,_0x209c18);if(_0x11cc17!==_0x1dfb5b)throw CliErrors[_0x4484c2(0x165)](_0x4484c2(0x14c),_0x4484c2(0x14f)+JSON[_0x4484c2(0x157)](_0x1dfb5b)+_0x4484c2(0x146)+JSON[_0x4484c2(0x157)](_0x11cc17)+'.');_0x369b9a={'verified':!![],'status':_0x4484c2(0x147),'afterReadback':{'businessGroup':_0x11cc17}};}else!_0x3f1e32&&(_0x369b9a={'verified':!![],'status':_0x4484c2(0x12d),'afterReadback':{'businessGroup':_0x48fa23}});const _0x4a53ad={'operation':_0x4484c2(0x15f),'appCode':_0x269f6b,'selector':{'code':_0x1b28b5['code']},'dataset':_0x1b28b5,'before':{'businessGroup':_0x48fa23},'after':{'businessGroup':_0x1dfb5b},'changed':_0x3f1e32,'dryRun':_0x4c0dbd,'submitted':_0x3f1e32&&!_0x4c0dbd,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x47fca6},..._0x369b9a?{'verification':_0x369b9a}:{},'warnings':[]};return{'ok':!![],'data':_0x4a53ad,'message':_0x3f1e32?_0x4c0dbd?_0x4484c2(0x159)+_0x1b28b5['code']:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x1b28b5[_0x4484c2(0x15b)]:_0x4484c2(0x14b)+_0x1b28b5[_0x4484c2(0x15b)]};}export const datasetBusinessGroupUpdate={'service':a60_0x2e7b1d(0x144),'command':a60_0x2e7b1d(0x14e),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':a60_0x2e7b1d(0x163),'type':'string','required':!![],'description':a60_0x2e7b1d(0x138)},{'name':a60_0x2e7b1d(0x151),'type':a60_0x2e7b1d(0x154),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xd03a54){validateInput(readBusinessGroupUpdateInput(_0xd03a54));},async 'dryRun'(_0x50b465){const _0x53d6b1=a60_0x2e7b1d,_0x3d0a1e=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x50b465[_0x53d6b1(0x137)],'input':readBusinessGroupUpdateInput(_0x50b465),'dryRun':!![]});return{'method':_0x53d6b1(0x145),'url':BACKEND_PATH,'body':_0x3d0a1e['data'][_0x53d6b1(0x133)][_0x53d6b1(0x16d)],'description':_0x3d0a1e[_0x53d6b1(0x14d)],..._0x3d0a1e[_0x53d6b1(0x169)]};},async 'execute'(_0x1221e7){const _0x2492fc=a60_0x2e7b1d;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1221e7[_0x2492fc(0x137)],'input':readBusinessGroupUpdateInput(_0x1221e7),'dryRun':![]});}};function a60_0x12ec(_0x224efd,_0x32be25){_0x224efd=_0x224efd-0x12b;const _0x16ad16=a60_0x16ad();let _0x12ec42=_0x16ad16[_0x224efd];return _0x12ec42;}function readBusinessGroupUpdateInput(_0x15c5ab){const _0x4ba82a=a60_0x2e7b1d,_0x16395d=_0x15c5ab['str'](_0x4ba82a(0x151));return{'code':trim(_0x15c5ab[_0x4ba82a(0x135)](_0x4ba82a(0x15b))),'businessGroup':_0x15c5ab[_0x4ba82a(0x135)]('business-group'),'expectBusinessGroup':_0x16395d===undefined||_0x16395d===''?undefined:_0x16395d};}function validateInput(_0x390969){const _0xee8b8f=a60_0x2e7b1d;if(!trim(_0x390969[_0xee8b8f(0x15b)]))throw CliErrors[_0xee8b8f(0x13a)](_0xee8b8f(0x158));if(_0x390969[_0xee8b8f(0x152)]===undefined)throw CliErrors[_0xee8b8f(0x13a)](_0xee8b8f(0x14a));}function resolveBusinessGroupDataset(_0x4fdce9,_0x1a43c4){const _0x32316b=a60_0x2e7b1d,_0xbcb2a7=asPlainObject(_0x4fdce9['dataset']),_0xcf66fe=asPlainObject(_0x4fdce9[_0x32316b(0x12e)]),_0x375f5a=resolveSourceType(_0x4fdce9,_0xbcb2a7,_0xcf66fe),_0x7cf6e5=firstString(_0x4fdce9[_0x32316b(0x12b)],_0x4fdce9[_0x32316b(0x15b)],_0xbcb2a7['datasetCode'],_0x1a43c4)||_0x1a43c4;return{'id':firstNumber(_0x4fdce9[_0x32316b(0x136)],_0x4fdce9['id'],_0xbcb2a7[_0x32316b(0x162)])??firstString(_0x4fdce9[_0x32316b(0x136)],_0x4fdce9['id'],_0xbcb2a7[_0x32316b(0x162)])??null,'code':_0x7cf6e5,'name':firstString(_0x4fdce9[_0x32316b(0x140)],_0xbcb2a7[_0x32316b(0x164)],_0xbcb2a7[_0x32316b(0x140)])||null,'sourceType':_0x375f5a};}function resolveSourceType(_0x1189a7,_0x4f2eee,_0x247ce3){const _0x38a462=a60_0x2e7b1d,_0x1220eb=firstString(_0x1189a7['source'],_0x1189a7[_0x38a462(0x15e)],_0x4f2eee[_0x38a462(0x143)],_0x4f2eee[_0x38a462(0x15e)])?.['trim']()[_0x38a462(0x132)]();if(_0x1220eb===_0x38a462(0x13e)||_0x1220eb==='METADATA')return _0x1220eb;if(Object[_0x38a462(0x161)](_0x247ce3)['length']>0x0)return _0x38a462(0x13e);throw CliErrors[_0x38a462(0x13a)](_0x38a462(0x12f));}function loadCurrentBusinessGroup(_0x7b61e4,_0x30d2da){const _0x3d55e5=a60_0x2e7b1d,_0x40f6bb=readBusinessGroupFromDatasetDetail(_0x7b61e4,_0x30d2da[_0x3d55e5(0x15e)]);if(_0x40f6bb['found'])return normalizeBusinessGroup(_0x40f6bb[_0x3d55e5(0x16c)]);if(_0x30d2da[_0x3d55e5(0x15e)]===_0x3d55e5(0x167))return'';throw CliErrors[_0x3d55e5(0x13a)](_0x3d55e5(0x149),_0x3d55e5(0x153));}function readBusinessGroupFromDatasetDetail(_0x26059c,_0x278d6b){const _0x5d4da2=a60_0x2e7b1d,_0x2af8bd=asPlainObject(_0x26059c[_0x5d4da2(0x144)]),_0x4df007=firstPresent(_0x26059c[_0x5d4da2(0x152)]);if(_0x4df007[_0x5d4da2(0x16a)])return _0x4df007;const _0x3947c7=firstPresent(_0x2af8bd['businessGroup']);if(_0x3947c7[_0x5d4da2(0x16a)])return _0x3947c7;if(_0x278d6b===_0x5d4da2(0x13e))return{'found':![]};const _0x2ec158=readBusinessGroupFromExtend(_0x26059c[_0x5d4da2(0x166)]);if(_0x2ec158[_0x5d4da2(0x16a)])return _0x2ec158;return readBusinessGroupFromExtend(_0x2af8bd['extend']);}function readBusinessGroupFromExtend(_0x30cfbe){const _0x54d9fa=a60_0x2e7b1d;if(_0x30cfbe===undefined||_0x30cfbe===null||_0x30cfbe==='')return{'found':![]};if(typeof _0x30cfbe==='string')try{const _0x52b07b=JSON[_0x54d9fa(0x148)](_0x30cfbe);return readBusinessGroupFromExtend(_0x52b07b);}catch{return{'found':![]};}const _0x46c814=asPlainObject(_0x30cfbe);if(Object[_0x54d9fa(0x155)][_0x54d9fa(0x13f)]['call'](_0x46c814,_0x54d9fa(0x152)))return{'found':!![],'value':_0x46c814[_0x54d9fa(0x152)]};return{'found':![]};}function firstPresent(..._0x52f15b){for(const _0x23c4e3 of _0x52f15b){if(_0x23c4e3!==undefined&&_0x23c4e3!==null)return{'found':!![],'value':_0x23c4e3};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2b19e8,_0x10c631){const _0x4bdc55=a60_0x2e7b1d;if(_0x10c631===undefined)return;const _0x31f7e5=normalizeBusinessGroup(_0x10c631);if(_0x2b19e8!==_0x31f7e5)throw CliErrors[_0x4bdc55(0x13a)](_0x4bdc55(0x131),_0x4bdc55(0x14f)+JSON[_0x4bdc55(0x157)](_0x31f7e5)+_0x4bdc55(0x146)+JSON[_0x4bdc55(0x157)](_0x2b19e8));}function buildBackendPayload(_0xec6408,_0x507694,_0x3ade54){const _0x152d22=a60_0x2e7b1d;return{'appCode':_0xec6408,'datasetCode':_0x507694[_0x152d22(0x15b)],'businessGroup':_0x3ade54};}function normalizeBusinessGroup(_0x521e08){const _0x570240=a60_0x2e7b1d;if(_0x521e08===undefined||_0x521e08===null)return'';return String(_0x521e08)[_0x570240(0x15a)]();}function a60_0x16ad(){const _0x528c70=['code','object','isArray','sourceType','update','95961SXSdKW','keys','datasetId','business-group','datasetName','apiError','extend','METADATA','12fXvBLw','data','found','142008pezjzw','value','payload','modelCode','3624558KGdKEU','unchanged','dbtableConfig','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','isFinite','Expectation\x20mismatch\x20at\x20businessGroup','toUpperCase','backend','490040KFEGPt','str','modelId','appCode','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it','8lumdiI','validation','/smartapi/question/er-config/business-group/edit','number','4718860dWJXey','DB_TABLE','hasOwnProperty','name','1114531sskVBC','108QHaVNv','source','dataset','POST',',\x20actual\x20','matched','parse','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','--business-group\x20is\x20required','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','message','business-group-update','Expected\x20','63LCxMrq','expect-business-group','businessGroup','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','string','prototype','1837900qBzzDD','stringify','--code\x20is\x20required','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','trim'];a60_0x16ad=function(){return _0x528c70;};return a60_0x16ad();}function asPlainObject(_0x41a52e){const _0x4b216a=a60_0x2e7b1d;if(!_0x41a52e||typeof _0x41a52e!==_0x4b216a(0x15c)||Array[_0x4b216a(0x15d)](_0x41a52e))return{};return _0x41a52e;}function firstString(..._0x1e945d){const _0x2adc6e=a60_0x2e7b1d;for(const _0x41a0e4 of _0x1e945d){if(typeof _0x41a0e4===_0x2adc6e(0x154)&&_0x41a0e4[_0x2adc6e(0x15a)]())return _0x41a0e4[_0x2adc6e(0x15a)]();if(typeof _0x41a0e4===_0x2adc6e(0x13c)&&Number['isFinite'](_0x41a0e4))return String(_0x41a0e4);}return undefined;}function firstNumber(..._0x3e21b3){const _0x419e46=a60_0x2e7b1d;for(const _0x4f09f7 of _0x3e21b3){if(typeof _0x4f09f7==='number'&&Number[_0x419e46(0x130)](_0x4f09f7))return _0x4f09f7;if(typeof _0x4f09f7===_0x419e46(0x154)&&_0x4f09f7[_0x419e46(0x15a)]()&&Number[_0x419e46(0x130)](Number(_0x4f09f7)))return Number(_0x4f09f7);}return null;}function trim(_0x106f9a){const _0x56e399=a60_0x2e7b1d;return String(_0x106f9a||'')[_0x56e399(0x15a)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x26b587=a61_0x4328;(function(_0x252eaf,_0x103d85){const _0x1c3b41=a61_0x4328,_0x321b27=_0x252eaf();while(!![]){try{const _0x491b4f=parseInt(_0x1c3b41(0x13a))/0x1*(-parseInt(_0x1c3b41(0x127))/0x2)+-parseInt(_0x1c3b41(0x124))/0x3+-parseInt(_0x1c3b41(0x13f))/0x4*(parseInt(_0x1c3b41(0x131))/0x5)+-parseInt(_0x1c3b41(0x135))/0x6*(parseInt(_0x1c3b41(0x13e))/0x7)+-parseInt(_0x1c3b41(0x12c))/0x8*(parseInt(_0x1c3b41(0x140))/0x9)+-parseInt(_0x1c3b41(0x12f))/0xa+parseInt(_0x1c3b41(0x128))/0xb*(parseInt(_0x1c3b41(0x121))/0xc);if(_0x491b4f===_0x103d85)break;else _0x321b27['push'](_0x321b27['shift']());}catch(_0x1b0260){_0x321b27['push'](_0x321b27['shift']());}}}(a61_0x238a,0x48b94));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x26b587(0x13d),'filter':a61_0x26b587(0x136),'getOne':a61_0x26b587(0x133)};export const RUNTIME_DATA_ACCESS_SUMMARY=a61_0x26b587(0x13b);function valueToString(_0x596fee){return _0x596fee==null?'':String(_0x596fee)['trim']();}function a61_0x4328(_0x5b0b45,_0x532c36){_0x5b0b45=_0x5b0b45-0x121;const _0x238a0a=a61_0x238a();let _0x4328e0=_0x238a0a[_0x5b0b45];return _0x4328e0;}function getDatasetCode(_0x1a49a8){const _0x1614a1=a61_0x26b587;return valueToString(_0x1a49a8['code']??_0x1a49a8[_0x1614a1(0x139)]??_0x1a49a8[_0x1614a1(0x12a)]?.['datasetCode']);}function getDatasetName(_0x115578){const _0x57164f=a61_0x26b587;return valueToString(_0x115578[_0x57164f(0x126)]??_0x115578[_0x57164f(0x12a)]?.['datasetName'])||_0x57164f(0x141);}function a61_0x238a(){const _0xcacea8=['当前数据集\x20\x22','2802490rHroaU','tableName','5ybnuxz','METADATA','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','filter','21936OvSlYi','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','dbtable','UNKNOWN','modelCode','386coGVVc','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','lovrabet','567QrBONc','152824PsQSNK','5046849ajDDkU','unknown','sourceType','length','72924dCtDEt','\x20类型,没有可用于\x20','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','1558923DODPEU','getOne','name','1230vXVQQG','4037uYOtgc','object','dataset','source','8nxqmFf','\x20的\x20DB_TABLE\x20数据源上下文。'];a61_0x238a=function(){return _0xcacea8;};return a61_0x238a();}function getDatasetSource(_0x142291){const _0x234f42=a61_0x26b587;return valueToString(_0x142291[_0x234f42(0x12b)]??_0x142291['dataset']?.[_0x234f42(0x142)])['toUpperCase']();}function getDbtableConfig(_0x5aaf22){const _0x270b21=a61_0x26b587,_0x33d68d=_0x5aaf22['dbtableConfig']??_0x5aaf22[_0x270b21(0x137)];return _0x33d68d&&typeof _0x33d68d===_0x270b21(0x129)?_0x33d68d:{};}export function isDbTableBackedDataset(_0x50ea50){const _0x3b74d1=a61_0x26b587,_0x422d4e=getDatasetSource(_0x50ea50);if(_0x422d4e===_0x3b74d1(0x132))return![];const _0x162f4a=getDbtableConfig(_0x50ea50),_0x292634=_0x162f4a['dbId']??_0x162f4a['id'],_0x5e0f75=valueToString(_0x162f4a[_0x3b74d1(0x130)]??_0x50ea50[_0x3b74d1(0x130)]??_0x50ea50[_0x3b74d1(0x12a)]?.['tableName']);return _0x292634!==undefined&&_0x292634!==null&&_0x5e0f75[_0x3b74d1(0x143)]>0x0;}export function filterDbTableBackedDatasets(_0x51f988){const _0x5c9b5a=a61_0x26b587;return _0x51f988[_0x5c9b5a(0x134)](_0x38967d=>isDbTableBackedDataset(_0x38967d));}export function buildDbTableBackedRequirementMessage(_0xc4cb13,_0x7460cb='SQL\x20schema\x20validation'){const _0x276dc9=a61_0x26b587,_0x2877a0=getDatasetSource(_0xc4cb13)||_0x276dc9(0x138),_0xe62c1e=getDatasetName(_0xc4cb13),_0x3573a0=getDatasetCode(_0xc4cb13),_0x5ab381=_0x3573a0?'\x20('+_0x3573a0+')':'';return[_0x276dc9(0x12e)+_0xe62c1e+'\x22'+_0x5ab381+'\x20是\x20'+_0x2877a0+_0x276dc9(0x122)+_0x7460cb+_0x276dc9(0x12d),'原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。',_0x276dc9(0x123),_0x276dc9(0x13c)+RUNTIME_DATA_ACCESS_COMMANDS[_0x276dc9(0x134)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x276dc9(0x125)]+'。']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x39f6e5,_0x20108a){if(!isDbTableBackedDataset(_0x39f6e5))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x39f6e5,_0x20108a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x5351e6=a62_0x10c9;(function(_0x158e35,_0xf73861){const _0x2c67f7=a62_0x10c9,_0x3e1e0d=_0x158e35();while(!![]){try{const _0x2b81e2=-parseInt(_0x2c67f7(0x10b))/0x1*(parseInt(_0x2c67f7(0x10f))/0x2)+parseInt(_0x2c67f7(0xff))/0x3*(parseInt(_0x2c67f7(0xec))/0x4)+parseInt(_0x2c67f7(0x107))/0x5*(-parseInt(_0x2c67f7(0xf5))/0x6)+-parseInt(_0x2c67f7(0x10c))/0x7+parseInt(_0x2c67f7(0xe3))/0x8+parseInt(_0x2c67f7(0xd9))/0x9*(parseInt(_0x2c67f7(0xf6))/0xa)+-parseInt(_0x2c67f7(0xf7))/0xb*(-parseInt(_0x2c67f7(0x10e))/0xc);if(_0x2b81e2===_0xf73861)break;else _0x3e1e0d['push'](_0x3e1e0d['shift']());}catch(_0x376dcd){_0x3e1e0d['push'](_0x3e1e0d['shift']());}}}(a62_0x31c3,0xd8e3e));function a62_0x31c3(){const _0x3438b7=['bool','Dataset\x20id','dbid','length','\x20failed','32kkPFqt','message','dbtableConfig','dbName','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','validation','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','8388222IwMUKF','10ozVbNz','53174NMmLQN','delete','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','POST','\x20dataset(s)','dataset','object','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','271923xljWfP','isArray','high-risk-write','source','id=','push','str','dbId','5LJAOMt','appCode','boolean','No\x20undeleted\x20dataset\x20found\x20for\x20','65xpEiei','2807728LvkUDD','relatedPageInfoList','1884Kdgprd','20912BlxSRt','Deleted\x20','\x20dataset(s);\x20','description','15484437TmDCFs','confirm','Matched\x20','number','dbid=','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Required\x20to\x20execute\x20dataset\x20deletion','filter','deleted','num','1300832nAznmT','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','code','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'];a62_0x31c3=function(){return _0x3438b7;};return a62_0x31c3();}function a62_0x10c9(_0x13b2a0,_0x258941){_0x13b2a0=_0x13b2a0-0xd9;const _0x31c349=a62_0x31c3();let _0x10c9f7=_0x31c349[_0x13b2a0];return _0x10c9f7;}import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a62_0x5351e6(0xdc),'description':a62_0x5351e6(0xe8)},DBID_FLAG={'name':a62_0x5351e6(0xe9),'type':'number','description':a62_0x5351e6(0xf9)},CONFIRM_FLAG={'name':a62_0x5351e6(0xda),'type':a62_0x5351e6(0x109),'description':a62_0x5351e6(0xdf)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a62_0x5351e6(0xdc),'description':a62_0x5351e6(0xf3)};export const datasetDelete={'service':a62_0x5351e6(0xfc),'command':a62_0x5351e6(0xf8),'description':a62_0x5351e6(0xf2),'risk':a62_0x5351e6(0x101),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2c6f40){const _0x3e9861=a62_0x5351e6,_0x19fe0e=_0x2c6f40['num']('id'),_0xd2ea51=_0x2c6f40['str'](_0x3e9861(0xe5)),_0x56c5cf=_0x2c6f40[_0x3e9861(0xe2)]('dbid'),_0x401e2c=[_0x19fe0e>0x0,Boolean(_0xd2ea51),_0x56c5cf>0x0][_0x3e9861(0xe0)](Boolean);if(_0x401e2c[_0x3e9861(0xea)]===0x0)throw CliErrors[_0x3e9861(0xf1)](_0x3e9861(0xe4));if(_0x401e2c[_0x3e9861(0xea)]>0x1)throw CliErrors[_0x3e9861(0xf1)](_0x3e9861(0xf4));},async 'dryRun'(_0x4bc1bc){const _0x460164=a62_0x5351e6,_0x115f32=await resolveTargets(_0x4bc1bc);return{'method':_0x460164(0xfa),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x4bc1bc[_0x460164(0x108)],'count':_0x115f32['length'],'datasets':_0x115f32},'description':'Would\x20delete\x20'+_0x115f32[_0x460164(0xea)]+_0x460164(0xe6)};},async 'execute'(_0x154fd1){const _0x448892=a62_0x5351e6;if(!_0x154fd1[_0x448892(0xe7)](_0x448892(0xda)))throw CliErrors['validation'](_0x448892(0xde),_0x448892(0xfe));const _0x32f6f0=await resolveTargets(_0x154fd1),_0x3aad59=[],_0x5e2067=[];for(const _0x101409 of _0x32f6f0){try{await deleteDataset(_0x154fd1[_0x448892(0x108)],_0x101409['id']),_0x3aad59['push'](_0x101409);}catch(_0x2e261c){_0x5e2067[_0x448892(0x104)]({..._0x101409,'error':_0x2e261c instanceof Error?_0x2e261c[_0x448892(0xed)]:String(_0x2e261c)});}}if(_0x5e2067[_0x448892(0xea)]>0x0)return{'ok':![],'data':{'requested':_0x32f6f0[_0x448892(0xea)],'deletedCount':_0x3aad59[_0x448892(0xea)],'failedCount':_0x5e2067[_0x448892(0xea)],'deleted':_0x3aad59,'failed':_0x5e2067},'message':_0x448892(0x110)+_0x3aad59['length']+'/'+_0x32f6f0[_0x448892(0xea)]+_0x448892(0x111)+_0x5e2067[_0x448892(0xea)]+_0x448892(0xeb)};return{'ok':!![],'data':{'requested':_0x32f6f0[_0x448892(0xea)],'deletedCount':_0x3aad59[_0x448892(0xea)],'deleted':_0x3aad59},'message':_0x448892(0x110)+_0x3aad59[_0x448892(0xea)]+_0x448892(0xfb)};}};async function resolveTargets(_0x2bb42f){const _0x144e71=a62_0x5351e6,_0x3e2e6d=_0x2bb42f[_0x144e71(0xe2)]('id'),_0x51799d=_0x2bb42f[_0x144e71(0x105)]('code'),_0x55ea6d=_0x2bb42f['num']('dbid');let _0x10a4f6;_0x51799d?(_0x10a4f6=await listDatasets(_0x2bb42f[_0x144e71(0x108)],{'code':_0x51799d}),_0x10a4f6=_0x10a4f6['filter'](_0x51d6bc=>_0x51d6bc[_0x144e71(0xe5)]===_0x51799d)):(_0x10a4f6=await listDatasets(_0x2bb42f[_0x144e71(0x108)]),_0x3e2e6d>0x0&&(_0x10a4f6=_0x10a4f6['filter'](_0x4732ac=>_0x4732ac['id']===_0x3e2e6d)),_0x55ea6d>0x0&&(_0x10a4f6=_0x10a4f6[_0x144e71(0xe0)](_0x138669=>_0x138669[_0x144e71(0xee)]?.[_0x144e71(0x106)]===_0x55ea6d)));const _0x3ec487=[];for(const _0x235d1c of _0x10a4f6){const _0x7f71da=await getDatasetDetail(_0x235d1c[_0x144e71(0xe5)]),_0x335bd2=Array[_0x144e71(0x100)](_0x7f71da[_0x144e71(0x10d)])?_0x7f71da['relatedPageInfoList'][_0x144e71(0xe0)](_0x1cbbbb=>_0x1cbbbb!=null&&typeof _0x1cbbbb===_0x144e71(0xfd)&&_0x1cbbbb[_0x144e71(0xe1)]!==!![]):[];_0x3ec487[_0x144e71(0x104)](normalizeTarget(_0x235d1c,_0x335bd2[_0x144e71(0xea)]));}if(_0x3ec487[_0x144e71(0xea)]===0x0){const _0x4c6adc=_0x51799d||(_0x3e2e6d>0x0?_0x144e71(0x103)+_0x3e2e6d:_0x144e71(0xdd)+_0x55ea6d);throw CliErrors[_0x144e71(0xf1)](_0x144e71(0x10a)+_0x4c6adc+'.');}const _0x374399=_0x2bb42f[_0x144e71(0xe2)]('expected-count');if(_0x374399>0x0&&_0x3ec487[_0x144e71(0xea)]!==_0x374399)throw CliErrors['validation'](_0x144e71(0xdb)+_0x3ec487['length']+_0x144e71(0xf0)+_0x374399+'.');return _0x3ec487;}function normalizeTarget(_0x1d4704,_0x2da86c){const _0x1d2b13=a62_0x5351e6,_0x339780=_0x1d4704[_0x1d2b13(0xee)]??{};return{'id':_0x1d4704['id'],'code':_0x1d4704['code'],'name':_0x1d4704['name'],'description':_0x1d4704[_0x1d2b13(0x112)],'source':_0x1d4704[_0x1d2b13(0x102)],'dbId':_0x339780['dbId'],'dbName':_0x339780[_0x1d2b13(0xef)],'tableName':_0x339780['tableName'],'relatedPageCount':_0x2da86c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a63_0x532a4c=a63_0x4a62;(function(_0x3086fa,_0x2a8f76){const _0x414e72=a63_0x4a62,_0x1f7ba3=_0x3086fa();while(!![]){try{const _0x5bb201=-parseInt(_0x414e72(0x139))/0x1*(parseInt(_0x414e72(0x11a))/0x2)+parseInt(_0x414e72(0xfe))/0x3*(-parseInt(_0x414e72(0x111))/0x4)+parseInt(_0x414e72(0x130))/0x5*(-parseInt(_0x414e72(0xef))/0x6)+parseInt(_0x414e72(0xe8))/0x7*(parseInt(_0x414e72(0x121))/0x8)+parseInt(_0x414e72(0xf1))/0x9*(parseInt(_0x414e72(0x12d))/0xa)+parseInt(_0x414e72(0x110))/0xb*(-parseInt(_0x414e72(0x101))/0xc)+-parseInt(_0x414e72(0xfc))/0xd*(-parseInt(_0x414e72(0xe7))/0xe);if(_0x5bb201===_0x2a8f76)break;else _0x1f7ba3['push'](_0x1f7ba3['shift']());}catch(_0x35c119){_0x1f7ba3['push'](_0x1f7ba3['shift']());}}}(a63_0x3f7c,0x66e0e));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2af2f6){const _0x2c4ca7=a63_0x4a62;if(_0x2af2f6[_0x2c4ca7(0x102)])return null;const _0x2ff5d0=Boolean(_0x2af2f6[_0x2c4ca7(0xeb)]!==undefined||_0x2af2f6['doType']!==undefined);let _0xdc43f9={};if(!_0x2ff5d0&&typeof _0x2af2f6[_0x2c4ca7(0x137)]===_0x2c4ca7(0xfd))try{_0xdc43f9=JSON[_0x2c4ca7(0xea)](_0x2af2f6['extend']);}catch{}const _0x498464=_0x2ff5d0?_0x2af2f6[_0x2c4ca7(0xed)]:_0x2af2f6['code'],_0x1caede=_0x2ff5d0?_0x2af2f6['displayName']:_0x2af2f6[_0x2c4ca7(0xed)],_0x50b985=_0x2ff5d0?_0x2af2f6[_0x2c4ca7(0x119)]:_0x2af2f6[_0x2c4ca7(0xf6)]||_0x2af2f6[_0x2c4ca7(0x118)],_0x243f7f=_0x2ff5d0?_0x2af2f6['pkField']===!![]:_0xdc43f9['pkField']===!![],_0x5830bf=_0x2ff5d0?_0x2af2f6['required']===!![]:_0xdc43f9[_0x2c4ca7(0x126)]===!![],_0x2fe89f=_0x2ff5d0?_0x2af2f6[_0x2c4ca7(0x138)]??null:_0xdc43f9[_0x2c4ca7(0x138)]??null,_0x4a08b1={'name':_0x498464,'displayName':_0x1caede||_0x498464,'type':_0x50b985,'dbType':_0x2af2f6[_0x2c4ca7(0x114)],'pk':_0x243f7f,'required':_0x5830bf,'deprecated':_0x2af2f6[_0x2c4ca7(0x12b)]===!![],'description':_0x2af2f6['description']||undefined};return Array[_0x2c4ca7(0x10d)](_0x2fe89f)&&_0x2fe89f['length']>0x0&&(_0x4a08b1[_0x2c4ca7(0x138)]=_0x2fe89f),_0x4a08b1;}function a63_0x4a62(_0x4ae6b1,_0x44d04c){_0x4ae6b1=_0x4ae6b1-0xe6;const _0x3f7cce=a63_0x3f7c();let _0x4a623e=_0x3f7cce[_0x4ae6b1];return _0x4a623e;}function parseJsonMaybe(_0x4c79cc){const _0x4cd557=a63_0x4a62;if(typeof _0x4c79cc!==_0x4cd557(0xfd))return _0x4c79cc;try{return JSON[_0x4cd557(0xea)](_0x4c79cc);}catch{return _0x4c79cc;}}function a63_0x3f7c(){const _0x178cd9=['deprecated','requestFields','6846750vxlGfA','str','relations','2004195dgImiF','tableComment','code','filter','formatRules','logicField','datasetKey','extend','options','797077RbhZjj','properties','trim','5467000VPQPxz','28bYtmlt','dbtableConfig','parse','displayName','toFieldLabel','name','detail','6CRRmWp','afterScriptId','9HkKaOH','description','tableName','modifierIdField','creatorIdField','type','entries','columnCodeListWithDeleted','relationId','modifierNameField','allFieldNames','39CvKLsC','string','669eeQINy','toDatasetCode','sourceType','12cmgzYz','deleted','modelId','alias','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','toDatasetName','fields','dbId','responseFields','cardinality','beforeScriptId','allFields','isArray','requestBody','indexes','5617711CDmRjI','9136WfaMwI','pkField','title','dbType','toField','split','bizRelationType','dataType','doType','2MTpmMH','object','length','path','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modelCode','dblinkInfoDTO','1566328OTkaJH','map','main_sub','doVersion','method','required','fromField','operations','dbName','responseBody'];a63_0x3f7c=function(){return _0x178cd9;};return a63_0x3f7c();}function normalizeOperationEntry(_0x49c0b2,_0x28dff6){const _0x5c97e3=a63_0x4a62;if(!_0x28dff6||typeof _0x28dff6!==_0x5c97e3(0x11b))return null;if(!_0x28dff6[_0x5c97e3(0x125)]||!_0x28dff6[_0x5c97e3(0x11d)])return null;const _0x50eff2={'name':_0x49c0b2,'method':_0x28dff6[_0x5c97e3(0x125)],'path':_0x28dff6[_0x5c97e3(0x11d)]};if(_0x28dff6['host'])_0x50eff2['host']=_0x28dff6['host'];if(_0x28dff6[_0x5c97e3(0x10e)]!=null){const _0x1837ce=parseJsonMaybe(_0x28dff6[_0x5c97e3(0x10e)]);_0x50eff2[_0x5c97e3(0x10e)]=_0x1837ce;}if(_0x28dff6[_0x5c97e3(0x12a)]!=null){const _0x26d7bb=parseJsonMaybe(_0x28dff6[_0x5c97e3(0x12a)]);_0x50eff2['responseBody']=_0x26d7bb;}if(_0x28dff6[_0x5c97e3(0x10b)]!=null)_0x50eff2[_0x5c97e3(0x10b)]=_0x28dff6[_0x5c97e3(0x10b)];if(_0x28dff6[_0x5c97e3(0xf0)]!=null)_0x50eff2[_0x5c97e3(0xf0)]=_0x28dff6[_0x5c97e3(0xf0)];if(Array[_0x5c97e3(0x10d)](_0x28dff6[_0x5c97e3(0x12c)]))_0x50eff2[_0x5c97e3(0x12c)]=_0x28dff6[_0x5c97e3(0x12c)];if(Array['isArray'](_0x28dff6['responseFields']))_0x50eff2['responseFields']=_0x28dff6[_0x5c97e3(0x109)];return _0x50eff2;}function summarizeDbtable(_0x254ba6){const _0x172873=a63_0x4a62,_0x3a448d={},_0x2b0cb1=['dbId',_0x172873(0x129),_0x172873(0xf3),_0x172873(0x136),_0x172873(0x112),'allFields',_0x172873(0x135),'createTimeField','updateTimeField',_0x172873(0xf5),'creatorNameField',_0x172873(0xf4),_0x172873(0xfa),'labelField',_0x172873(0x120)];for(const _0x539b8c of _0x2b0cb1){if(_0x254ba6[_0x539b8c]!==undefined)_0x3a448d[_0x539b8c]=_0x254ba6[_0x539b8c];}return typeof _0x3a448d['allFields']===_0x172873(0xfd)&&_0x3a448d[_0x172873(0x10c)][_0x172873(0x11c)]>0x0&&(_0x3a448d[_0x172873(0xfb)]=_0x3a448d[_0x172873(0x10c)][_0x172873(0x116)](',')[_0x172873(0x122)](_0x135faa=>_0x135faa[_0x172873(0xe6)]())[_0x172873(0x133)](Boolean)),_0x3a448d;}function normalizeRelatedPages(_0x13195a){const _0x3a95f6=a63_0x4a62;if(!Array['isArray'](_0x13195a))return[];return _0x13195a[_0x3a95f6(0x133)](_0x4d007e=>_0x4d007e&&typeof _0x4d007e==='object')[_0x3a95f6(0x122)](_0x436392=>({'id':_0x436392['id'],'type':_0x436392[_0x3a95f6(0xf6)],'code':_0x436392[_0x3a95f6(0x132)],'title':_0x436392[_0x3a95f6(0x113)],'deleted':_0x436392[_0x3a95f6(0x102)]===!![]}));}export const datasetDetail={'service':'dataset','command':a63_0x532a4c(0xee),'description':a63_0x532a4c(0x11e),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x532a4c(0x104),'type':a63_0x532a4c(0xfd),'description':a63_0x532a4c(0x105)}],async 'execute'(_0x5e1295){const _0x51ca7b=a63_0x532a4c,_0x23ef66=await getDatasetDetail(_0x5e1295[_0x51ca7b(0x12e)](_0x51ca7b(0x132))),_0x242b64=Array[_0x51ca7b(0x10d)](_0x23ef66[_0x51ca7b(0x107)])?_0x23ef66[_0x51ca7b(0x107)]:Array[_0x51ca7b(0x10d)](_0x23ef66[_0x51ca7b(0x13a)])?_0x23ef66[_0x51ca7b(0x13a)]:[],_0x35906c=_0x242b64[_0x51ca7b(0x122)](_0x3c8af6=>normalizeField(_0x3c8af6))[_0x51ca7b(0x133)](_0x4650ae=>_0x4650ae!==null),_0x1b888d=_0x23ef66[_0x51ca7b(0x128)]??{},_0x5af92d=[];for(const [_0x13a70c,_0x42ab0e]of Object[_0x51ca7b(0xf7)](_0x1b888d)){const _0x2f88dd=normalizeOperationEntry(_0x13a70c,_0x42ab0e);if(_0x2f88dd)_0x5af92d['push'](_0x2f88dd);}const _0x1ac0a3=_0x23ef66[_0x51ca7b(0xe9)]??{},_0x2a782c=_0x23ef66['dataset']??{},_0x555874=_0x1ac0a3['dbId']!=null?{'id':_0x1ac0a3[_0x51ca7b(0x108)],'name':_0x1ac0a3[_0x51ca7b(0x129)]??null}:undefined;let _0x55818a;return typeof _0x23ef66[_0x51ca7b(0x137)]==='string'&&(_0x55818a=parseJsonMaybe(_0x23ef66[_0x51ca7b(0x137)])),{'ok':!![],'data':{'id':_0x23ef66[_0x51ca7b(0x103)]??_0x23ef66['id'],'name':_0x23ef66[_0x51ca7b(0xed)],'code':_0x23ef66[_0x51ca7b(0x11f)]||_0x23ef66[_0x51ca7b(0x132)],'doVersion':_0x23ef66[_0x51ca7b(0x124)],'description':_0x23ef66[_0x51ca7b(0xf2)]||_0x2a782c[_0x51ca7b(0x131)]||undefined,'source':_0x23ef66['source']||_0x2a782c[_0x51ca7b(0x100)],'table':_0x1ac0a3[_0x51ca7b(0xf3)]||_0x2a782c[_0x51ca7b(0xf3)],'datasetKey':_0x1ac0a3['datasetKey'],'pk':_0x1ac0a3[_0x51ca7b(0x112)],'db':_0x555874,'dbtable':summarizeDbtable(_0x1ac0a3),'fields':_0x35906c,'operations':_0x5af92d,'indexes':Array[_0x51ca7b(0x10d)](_0x2a782c[_0x51ca7b(0x10f)])?_0x2a782c[_0x51ca7b(0x10f)]:[],'relations':Array[_0x51ca7b(0x10d)](_0x23ef66[_0x51ca7b(0x12f)])?_0x23ef66[_0x51ca7b(0x12f)][_0x51ca7b(0x122)](_0x6b5ed9=>({..._0x6b5ed9[_0x51ca7b(0xf9)]!=null?{'relationId':_0x6b5ed9[_0x51ca7b(0xf9)]}:{},'fromDataset':_0x23ef66['name'],'fromCode':_0x23ef66[_0x51ca7b(0x11f)]||_0x23ef66[_0x51ca7b(0x132)],'fromTable':_0x1ac0a3[_0x51ca7b(0xf3)]||_0x2a782c['tableName'],'fromField':_0x6b5ed9[_0x51ca7b(0x127)],'toDataset':_0x6b5ed9[_0x51ca7b(0x106)],'toCode':_0x6b5ed9[_0x51ca7b(0xff)],'toTable':_0x6b5ed9['toTableName'],'toField':_0x6b5ed9[_0x51ca7b(0x115)],'labelField':_0x6b5ed9[_0x51ca7b(0xec)]||undefined,'cardinality':_0x6b5ed9[_0x51ca7b(0x10a)]||undefined,'bizRelationType':_0x6b5ed9[_0x51ca7b(0x117)]===_0x51ca7b(0x123)?_0x51ca7b(0x123):null})):[],'relatedPages':normalizeRelatedPages(_0x23ef66['relatedPageInfoList']),...Array[_0x51ca7b(0x10d)](_0x23ef66['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x23ef66[_0x51ca7b(0xf8)]}:{},'formatRules':Array[_0x51ca7b(0x10d)](_0x23ef66['formatRules'])?_0x23ef66[_0x51ca7b(0x134)]:[],'validateRules':Array[_0x51ca7b(0x10d)](_0x23ef66['validateRules'])?_0x23ef66['validateRules']:[],..._0x55818a!==undefined?{'extend':_0x55818a}:{},'stats':{'fieldCount':_0x35906c[_0x51ca7b(0x11c)],'operationCount':_0x5af92d[_0x51ca7b(0x11c)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0x2189(){const _0x544d07=['modelCode','from','235270RBqhct','join','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','string','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','dbtableConfig','4002QCWtbk','Unsupported\x20patch\x20key:\x20','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','has','patch','\x20must\x20be\x20a\x20JSON\x20object','14vATtmt','tableName','businessGroup',',\x20actual\x20','Patch\x20dataset\x20top-level\x20extend\x20safely','object','extend','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','286973xhmlVU','dataset','No\x20changes\x20for\x20dataset\x20extend','patch-json','parse','stringify','45UztwjK','extend-update','code','/smartapi/dataset/update-driven-data','642590xCUvvf','925096wmjrms','get','165hieexu','POST','length','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','write','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','--patch-json','sort','validation','--code\x20is\x20required','dbName','str','value','shape','\x20must\x20be\x20valid\x20JSON\x20object:\x20','568974mqlMYm','push','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','datasetCode','datasetName','name','keys','modelId','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','trim','extend.','appCode','message','Updated\x20dataset\x20extend\x20(','entries','Allowed\x20keys:\x20','445336TPbMbq','isArray'];a64_0x2189=function(){return _0x544d07;};return a64_0x2189();}const a64_0x5775a6=a64_0x46cc;(function(_0x317c66,_0x200398){const _0x552827=a64_0x46cc,_0x280ac8=_0x317c66();while(!![]){try{const _0x534b36=parseInt(_0x552827(0x1fe))/0x1+parseInt(_0x552827(0x1ea))/0x2+-parseInt(_0x552827(0x1d6))/0x3+parseInt(_0x552827(0x1e6))/0x4+parseInt(_0x552827(0x1c7))/0x5*(-parseInt(_0x552827(0x1f0))/0x6)+-parseInt(_0x552827(0x1f6))/0x7*(-parseInt(_0x552827(0x1c5))/0x8)+-parseInt(_0x552827(0x1c0))/0x9*(parseInt(_0x552827(0x1c4))/0xa);if(_0x534b36===_0x200398)break;else _0x280ac8['push'](_0x280ac8['shift']());}catch(_0x41e982){_0x280ac8['push'](_0x280ac8['shift']());}}}(a64_0x2189,0x344ec));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([[a64_0x5775a6(0x1f8),{'message':'dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','hint':a64_0x5775a6(0x1cc)}]]);export function parseJsonObjectFlag(_0x591bc4,_0x521100){const _0x31b840=a64_0x5775a6;if(!_0x591bc4)return undefined;let _0x29b9e2;try{_0x29b9e2=JSON[_0x31b840(0x1be)](_0x591bc4);}catch(_0x4fe73f){const _0x45b120=_0x4fe73f instanceof Error?_0x4fe73f['message']:String(_0x4fe73f);throw CliErrors[_0x31b840(0x1cf)](_0x521100+_0x31b840(0x1d5)+_0x45b120);}if(!isPlainObject(_0x29b9e2)||Array[_0x31b840(0x1e7)](_0x29b9e2))throw CliErrors[_0x31b840(0x1cf)](_0x521100+_0x31b840(0x1f5));return _0x29b9e2;}export function validateExtendPatchKeys(_0x108655){const _0x5add14=a64_0x5775a6,_0x18e0c6=Object[_0x5add14(0x1dc)](_0x108655);if(_0x18e0c6[_0x5add14(0x1c9)]===0x0)throw CliErrors[_0x5add14(0x1cf)](_0x5add14(0x1ec));for(const _0x13d40d of _0x18e0c6){const _0x1c6690=EXTEND_PATCH_REDIRECTS[_0x5add14(0x1c6)](_0x13d40d);if(_0x1c6690)throw CliErrors[_0x5add14(0x1cf)](_0x1c6690[_0x5add14(0x1e2)],_0x1c6690['hint']);if(!MUTABLE_EXTEND_KEYS[_0x5add14(0x1f3)](_0x13d40d))throw CliErrors[_0x5add14(0x1cf)](_0x5add14(0x1f1)+_0x13d40d,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x16ae50=a64_0x5775a6,_0x4ea81e=Array[_0x16ae50(0x1e9)](MUTABLE_EXTEND_KEYS)[_0x16ae50(0x1ce)]();return _0x4ea81e[_0x16ae50(0x1c9)]>0x0?_0x16ae50(0x1e5)+_0x4ea81e[_0x16ae50(0x1eb)](',\x20'):_0x16ae50(0x1ca);}export function applyExtendPatch(_0x379e08,_0x42941d){const _0x491eec=a64_0x5775a6;validateExtendPatchKeys(_0x42941d);const _0x38afe3=deepClone(_0x379e08),_0x589962=[];for(const [_0x510938,_0x3bd065]of Object['entries'](_0x42941d)){const _0x4325b6=_0x38afe3[_0x510938],_0x25e980=deepClone(_0x3bd065);!deepEqual(_0x4325b6,_0x25e980)&&(_0x38afe3[_0x510938]=_0x25e980,_0x589962[_0x491eec(0x1d7)](_0x491eec(0x1e0)+_0x510938));}return _0x589962[_0x491eec(0x1ce)](),{'after':_0x38afe3,'changedPaths':_0x589962,'changed':_0x589962[_0x491eec(0x1c9)]>0x0};}export function assertExpectation(_0x1aba72,_0x25e8b2){const _0x36cc0f=a64_0x5775a6;if(!_0x25e8b2)return;for(const [_0x3859e1,_0x19ae68]of Object[_0x36cc0f(0x1e4)](_0x25e8b2)){const _0x4b31ef=_0x1aba72[_0x3859e1];if(!deepEqual(_0x4b31ef,_0x19ae68))throw CliErrors[_0x36cc0f(0x1cf)]('Expectation\x20mismatch\x20at\x20extend.'+_0x3859e1,'Expected\x20'+JSON[_0x36cc0f(0x1bf)](_0x19ae68)+_0x36cc0f(0x1f9)+JSON[_0x36cc0f(0x1bf)](_0x4b31ef));}}export async function buildDatasetExtendUpdateResult({appCode:_0x237f53,input:_0xcf93b7,dryRun:_0x30e82f}){const _0x1f6461=a64_0x5775a6;validateInput(_0xcf93b7);const _0x4b2d2c=await getDatasetDetail(_0xcf93b7[_0x1f6461(0x1c2)]),_0x212c42=parseDatasetExtend(_0x4b2d2c[_0x1f6461(0x1fc)]),_0x3f46ec=deepClone(_0x212c42[_0x1f6461(0x1d3)]);assertExpectation(_0x3f46ec,_0xcf93b7['expect']);const {after:_0x97978f,changedPaths:_0x1cf81d,changed:_0x53b13f}=applyExtendPatch(_0x3f46ec,_0xcf93b7[_0x1f6461(0x1f4)]),_0x51a094=summarizeDataset(_0x4b2d2c,_0xcf93b7[_0x1f6461(0x1c2)]);return _0x53b13f&&!_0x30e82f&&(_0x4b2d2c[_0x1f6461(0x1fc)]=serializeDatasetExtend(_0x97978f,_0x212c42[_0x1f6461(0x1d4)]),await updateDrivenData(_0x4b2d2c)),{'ok':!![],'data':{'appCode':_0x237f53,'selector':{'code':_0xcf93b7['code']},'dataset':_0x51a094,'dryRun':_0x30e82f,'changed':_0x53b13f,'changedPaths':_0x1cf81d,'before':{'extend':_0x3f46ec},'after':{'extend':_0x97978f},'submitted':_0x53b13f&&!_0x30e82f},'message':_0x53b13f?_0x30e82f?_0x1f6461(0x1ee)+_0x1cf81d[_0x1f6461(0x1eb)](',\x20')+')':_0x1f6461(0x1e3)+_0x1cf81d['join'](',\x20')+')':_0x1f6461(0x1bc)};}export const datasetExtendUpdate={'service':a64_0x5775a6(0x1ff),'command':a64_0x5775a6(0x1c1),'description':a64_0x5775a6(0x1fa),'risk':a64_0x5775a6(0x1cb),'flags':[CODE_FLAG,{'name':a64_0x5775a6(0x1bd),'type':a64_0x5775a6(0x1ed),'required':!![],'description':a64_0x5775a6(0x1f2)},{'name':'expect-json','type':a64_0x5775a6(0x1ed),'required':![],'description':a64_0x5775a6(0x1de)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x53deaa){validateInput(readExtendUpdateInput(_0x53deaa));},async 'dryRun'(_0x4d1ce6){const _0x53477e=a64_0x5775a6,_0x497edc=await buildDatasetExtendUpdateResult({'appCode':_0x4d1ce6[_0x53477e(0x1e1)],'input':readExtendUpdateInput(_0x4d1ce6),'dryRun':!![]});return{'method':_0x53477e(0x1c8),'url':_0x53477e(0x1c3),'body':_0x497edc['data'],'description':_0x497edc['message']};},async 'execute'(_0x58426c){return buildDatasetExtendUpdateResult({'appCode':_0x58426c['appCode'],'input':readExtendUpdateInput(_0x58426c),'dryRun':![]});}};function a64_0x46cc(_0x32a58d,_0x2c3b9e){_0x32a58d=_0x32a58d-0x1bc;const _0x218945=a64_0x2189();let _0x46cc4b=_0x218945[_0x32a58d];return _0x46cc4b;}function readExtendUpdateInput(_0x73213){const _0x4a991b=a64_0x5775a6,_0x3e80e9=trim(_0x73213[_0x4a991b(0x1d2)]('code')),_0x2c9e88=parseJsonObjectFlag(_0x73213[_0x4a991b(0x1d2)]('patch-json'),_0x4a991b(0x1cd)),_0x192847=parseJsonObjectFlag(_0x73213[_0x4a991b(0x1d2)]('expect-json'),'--expect-json');return{'code':_0x3e80e9,'patch':_0x2c9e88||{},'expect':_0x192847};}function validateInput(_0x1f19bb){const _0x3dfb8f=a64_0x5775a6;if(!_0x1f19bb[_0x3dfb8f(0x1c2)])throw CliErrors[_0x3dfb8f(0x1cf)](_0x3dfb8f(0x1d0));validateExtendPatchKeys(_0x1f19bb[_0x3dfb8f(0x1f4)]);}function parseDatasetExtend(_0x174cee){const _0x258f11=a64_0x5775a6;if(typeof _0x174cee===_0x258f11(0x1ed)){const _0x2f0188=_0x174cee[_0x258f11(0x1df)]();if(!_0x2f0188)return{'value':{},'shape':_0x258f11(0x1ed)};let _0x1e4d45;try{_0x1e4d45=JSON['parse'](_0x2f0188);}catch(_0x502658){const _0x27f7e0=_0x502658 instanceof Error?_0x502658[_0x258f11(0x1e2)]:String(_0x502658);throw CliErrors[_0x258f11(0x1cf)](_0x258f11(0x1d8)+_0x27f7e0);}if(!isPlainObject(_0x1e4d45)||Array['isArray'](_0x1e4d45))throw CliErrors['validation']('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x1e4d45,'shape':_0x258f11(0x1ed)};}if(_0x174cee===undefined||_0x174cee===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x174cee)||Array[_0x258f11(0x1e7)](_0x174cee))throw CliErrors[_0x258f11(0x1cf)](_0x258f11(0x1fd));return{'value':_0x174cee,'shape':_0x258f11(0x1fb)};}function serializeDatasetExtend(_0x4dfca0,_0x5017c9){const _0x491e2c=a64_0x5775a6;return _0x5017c9===_0x491e2c(0x1ed)?JSON[_0x491e2c(0x1bf)](_0x4dfca0):_0x4dfca0;}function summarizeDataset(_0x417b39,_0x491cee){const _0x183b47=a64_0x5775a6,_0x42ed49=isPlainObject(_0x417b39['dataset'])?_0x417b39['dataset']:{},_0x2ac0c7=isPlainObject(_0x417b39[_0x183b47(0x1ef)])?_0x417b39['dbtableConfig']:{};return{'id':_0x417b39[_0x183b47(0x1dd)]??_0x417b39['id']??_0x42ed49['datasetId']??null,'code':_0x417b39[_0x183b47(0x1e8)]??_0x417b39[_0x183b47(0x1c2)]??_0x42ed49[_0x183b47(0x1d9)]??_0x491cee,'name':_0x417b39[_0x183b47(0x1db)]??_0x42ed49[_0x183b47(0x1da)]??null,'table':_0x2ac0c7[_0x183b47(0x1f7)]??_0x42ed49[_0x183b47(0x1f7)]??null,'db':_0x2ac0c7[_0x183b47(0x1d1)]??_0x2ac0c7['dbId']??null};}function deepClone(_0x17b850){const _0x1591ec=a64_0x5775a6;if(_0x17b850===undefined)return _0x17b850;return JSON[_0x1591ec(0x1be)](JSON[_0x1591ec(0x1bf)](_0x17b850));}function deepEqual(_0x225eef,_0x29a3d9){const _0x239923=a64_0x5775a6;return JSON[_0x239923(0x1bf)](_0x225eef)===JSON[_0x239923(0x1bf)](_0x29a3d9);}function isPlainObject(_0x5cd87b){return Boolean(_0x5cd87b)&&typeof _0x5cd87b==='object'&&!Array['isArray'](_0x5cd87b);}function trim(_0x3d4f15){const _0xf8f0e1=String(_0x3d4f15||'')['trim']();return _0xf8f0e1;}
|