@lovrabet/rabetbase-cli 2.4.6-beta.1 → 2.4.6-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +8 -7
- 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/types.d.ts +17 -2
- 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/visibility-update.d.ts +2 -0
- package/lib/commands/menu/visibility-update.js +1 -0
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/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/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/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
- package/skills/rabetbase/SKILL.md +3 -2
- package/skills/rabetbase/references/rabetbase-menu-list.md +3 -1
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49e605,_0x410bc9){const _0x4071e5=a48_0x3199,_0x27d73f=_0x49e605();while(!![]){try{const _0x136d93=-parseInt(_0x4071e5(0x190))/0x1*(parseInt(_0x4071e5(0x18f))/0x2)+parseInt(_0x4071e5(0x18a))/0x3+-parseInt(_0x4071e5(0x182))/0x4*(parseInt(_0x4071e5(0x191))/0x5)+parseInt(_0x4071e5(0x18e))/0x6*(-parseInt(_0x4071e5(0x187))/0x7)+parseInt(_0x4071e5(0x192))/0x8+-parseInt(_0x4071e5(0x18c))/0x9+-parseInt(_0x4071e5(0x181))/0xa*(-parseInt(_0x4071e5(0x184))/0xb);if(_0x136d93===_0x410bc9)break;else _0x27d73f['push'](_0x27d73f['shift']());}catch(_0x754838){_0x27d73f['push'](_0x27d73f['shift']());}}}(a48_0x21c5,0x273e9));import{existsSync,statSync}from'node:fs';function a48_0x21c5(){const _0x44af5d=['\x20MB','1822752RLpenA','validation','239784prNQbz','2GWqiTw','11901hbPxxG','5FqzVzv','2296688VVuhGM','ceil','5603820KRTjcT','1236724GkjsRe','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','11vacYLn','File\x20is\x20not\x20a\x20regular\x20file:\x20','trim','42wlIQkv','size','toFixed','230013zvAmJQ'];a48_0x21c5=function(){return _0x44af5d;};return a48_0x21c5();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a48_0x3199(_0x3ef1f0,_0x339125){_0x3ef1f0=_0x3ef1f0-0x180;const _0x21c5b7=a48_0x21c5();let _0x3199a4=_0x21c5b7[_0x3ef1f0];return _0x3199a4;}export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x311657){const _0xa84153=a48_0x3199;if(_0x311657>=BYTES_PER_MB){const _0x111d39=Math[_0xa84153(0x180)](_0x311657/BYTES_PER_MB*0x64)/0x64;return _0x111d39[_0xa84153(0x189)](0x2)+_0xa84153(0x18b);}return _0x311657+'\x20B';}export function requireDevelopmentUploadFile(_0x4f26c5,_0x1330a2){const _0x2468a1=a48_0x3199,_0x469c83=_0x4f26c5[_0x2468a1(0x186)]();if(!_0x469c83)throw CliErrors[_0x2468a1(0x18d)](_0x1330a2+'\x20path\x20is\x20required.');if(!existsSync(_0x469c83))throw CliErrors[_0x2468a1(0x18d)]('File\x20not\x20found:\x20'+_0x469c83);const _0x4ce6ad=statSync(_0x469c83);if(!_0x4ce6ad['isFile']())throw CliErrors[_0x2468a1(0x18d)](_0x2468a1(0x185)+_0x469c83);if(_0x4ce6ad[_0x2468a1(0x188)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x2468a1(0x18d)](_0x2468a1(0x183)+_0x469c83+'\x20('+formatBytes(_0x4ce6ad[_0x2468a1(0x188)])+')');return{'path':_0x469c83,'size':_0x4ce6ad[_0x2468a1(0x188)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x45b8(_0x1a40ff,_0x5506f5){_0x1a40ff=_0x1a40ff-0x89;const _0x378e8d=a49_0x378e();let _0x45b876=_0x378e8d[_0x1a40ff];return _0x45b876;}(function(_0x163582,_0x53d0fa){const _0x6131e8=a49_0x45b8,_0xb7946e=_0x163582();while(!![]){try{const _0xa6134d=-parseInt(_0x6131e8(0x93))/0x1+-parseInt(_0x6131e8(0x8b))/0x2+parseInt(_0x6131e8(0x8f))/0x3+-parseInt(_0x6131e8(0x8c))/0x4*(-parseInt(_0x6131e8(0x8d))/0x5)+-parseInt(_0x6131e8(0x94))/0x6*(parseInt(_0x6131e8(0x8e))/0x7)+parseInt(_0x6131e8(0x95))/0x8+parseInt(_0x6131e8(0x89))/0x9;if(_0xa6134d===_0x53d0fa)break;else _0xb7946e['push'](_0xb7946e['shift']());}catch(_0x42bf64){_0xb7946e['push'](_0xb7946e['shift']());}}}(a49_0x378e,0x7fc05));function a49_0x378e(){const _0x50e457=['1674072yrPHHH','App\x20Code\x20cannot\x20be\x20empty','16034031dQVbjy','test','1608904POtyXn','20VkKSfm','1019485YRrmhA','1639477GkUsQN','264894dotTbh','App\x20Code\x20cannot\x20exceed\x20100\x20characters','trim','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','834036apHpVJ','24KrmrAL'];a49_0x378e=function(){return _0x50e457;};return a49_0x378e();}export function validateAppcode(_0x1bfbaf){const _0x61818d=a49_0x45b8,_0x1abb68=_0x1bfbaf[_0x61818d(0x91)]();if(!_0x1abb68)return{'valid':![],'message':_0x61818d(0x96)};if(_0x1abb68['length']>0x64)return{'valid':![],'message':_0x61818d(0x90)};if(!/^[A-Za-z0-9_-]+$/[_0x61818d(0x8a)](_0x1abb68))return{'valid':![],'message':_0x61818d(0x92)};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0xc9513a=a50_0x1856;(function(_0x441743,_0x552bbf){const _0x1f5075=a50_0x1856,_0xfd9c16=_0x441743();while(!![]){try{const _0x21d1bf=-parseInt(_0x1f5075(0x160))/0x1+-parseInt(_0x1f5075(0x15f))/0x2*(-parseInt(_0x1f5075(0x157))/0x3)+parseInt(_0x1f5075(0x151))/0x4*(-parseInt(_0x1f5075(0x153))/0x5)+-parseInt(_0x1f5075(0x155))/0x6*(-parseInt(_0x1f5075(0x159))/0x7)+-parseInt(_0x1f5075(0x15c))/0x8+parseInt(_0x1f5075(0x14f))/0x9*(parseInt(_0x1f5075(0x158))/0xa)+parseInt(_0x1f5075(0x150))/0xb;if(_0x21d1bf===_0x552bbf)break;else _0xfd9c16['push'](_0xfd9c16['shift']());}catch(_0x336518){_0xfd9c16['push'](_0xfd9c16['shift']());}}}(a50_0x5b78,0x77a8a));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a50_0x1856(_0x13bbea,_0x404032){_0x13bbea=_0x13bbea-0x14c;const _0x5b780a=a50_0x5b78();let _0x1856a3=_0x5b780a[_0x13bbea];return _0x1856a3;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x3a8de4){const _0x29eba0=a50_0x1856,_0x1483f3=_0x3a8de4[_0x29eba0(0x15d)](_0x29eba0(0x154));if(!_0x1483f3)throw CliErrors['validation'](_0x29eba0(0x156),_0x29eba0(0x15b)+CLI_BIN_NAME+_0x29eba0(0x15a));const _0x548def=readConfig(),_0x4f75c9=_0x1483f3==='app'?_0x29eba0(0x15e):_0x1483f3,_0x41c68c=_0x548def[_0x4f75c9];if(_0x41c68c===undefined)throw CliErrors[_0x29eba0(0x14c)]('Key\x20not\x20found:\x20'+_0x1483f3);return{'ok':!![],'data':typeof _0x41c68c==='object'?_0x41c68c:{[_0x4f75c9]:_0x41c68c},'message':typeof _0x41c68c===_0x29eba0(0x161)?undefined:String(_0x41c68c)};}export const configGetDefinition={'service':a50_0xc9513a(0x14d),'command':a50_0xc9513a(0x14e),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0xc9513a(0x154),'type':a50_0xc9513a(0x152),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a50_0x5b78(){const _0x71862e=['object','validation','config','get','14796LUUykV','5383917WFGRLc','64qSGLdv','string','96325rbEaKj','key','2898OPZclF','Missing\x20key.','903dXPvph','530Ymdoeq','8337cginLS','\x20config\x20get\x20--key\x20<key>','Usage:\x20','2802944BZiEiE','str','appcode','3486WhvsVR','527745QggDdo'];a50_0x5b78=function(){return _0x71862e;};return a50_0x5b78();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3189d0,_0x2f17a4){const _0x541993=a51_0x47ab,_0x746084=_0x3189d0();while(!![]){try{const _0x3723ae=-parseInt(_0x541993(0x1e1))/0x1+parseInt(_0x541993(0x1e9))/0x2*(-parseInt(_0x541993(0x1e8))/0x3)+-parseInt(_0x541993(0x1e5))/0x4+parseInt(_0x541993(0x1ea))/0x5+parseInt(_0x541993(0x1e4))/0x6*(-parseInt(_0x541993(0x1e3))/0x7)+parseInt(_0x541993(0x1e6))/0x8+-parseInt(_0x541993(0x1e2))/0x9*(-parseInt(_0x541993(0x1e7))/0xa);if(_0x3723ae===_0x2f17a4)break;else _0x746084['push'](_0x746084['shift']());}catch(_0x17fe52){_0x746084['push'](_0x746084['shift']());}}}(a51_0x3605,0xcbfc5));import{configListDefinition}from'../../commands/config/list.js';function a51_0x3605(){const _0x4e970a=['1377772VWmWre','1287NqNPqG','1086148SMQreA','12kUCxwR','501536rRvjMS','3064456aArWVY','193810wMRUto','44481Majyjq','158RDcLyU','3329010RlfNiD'];a51_0x3605=function(){return _0x4e970a;};return a51_0x3605();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a51_0x47ab(_0x3fa962,_0x5eca13){_0x3fa962=_0x3fa962-0x1e1;const _0x3605e4=a51_0x3605();let _0x47ab92=_0x3605e4[_0x3fa962];return _0x47ab92;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x4144b1=a52_0x482e;(function(_0x2cc168,_0x19d351){const _0x182850=a52_0x482e,_0x1edfbb=_0x2cc168();while(!![]){try{const _0x1fc6a6=parseInt(_0x182850(0x1c8))/0x1+parseInt(_0x182850(0x1cd))/0x2*(parseInt(_0x182850(0x1d0))/0x3)+parseInt(_0x182850(0x1ca))/0x4*(-parseInt(_0x182850(0x1cb))/0x5)+-parseInt(_0x182850(0x1c9))/0x6+-parseInt(_0x182850(0x1d1))/0x7+parseInt(_0x182850(0x1c5))/0x8*(parseInt(_0x182850(0x1c7))/0x9)+-parseInt(_0x182850(0x1d3))/0xa*(-parseInt(_0x182850(0x1ce))/0xb);if(_0x1fc6a6===_0x19d351)break;else _0x1edfbb['push'](_0x1edfbb['shift']());}catch(_0x53a33e){_0x1edfbb['push'](_0x1edfbb['shift']());}}}(a52_0x5323,0xbd23c));import{readScopedConfig}from'../../commands/config/shared.js';function a52_0x482e(_0x570c98,_0xfebd52){_0x570c98=_0x570c98-0x1c5;const _0x5323a9=a52_0x5323();let _0x482ea1=_0x5323a9[_0x570c98];return _0x482ea1;}function a52_0x5323(){const _0x47528d=['3kKJlUA','10534657CizVfv','global','743790oVTGGT','boolean','6326288wtHSXG','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','9mqKxKR','868656dirBXF','7581084BEaiEh','82564aLKHCv','5SrLOTC','read','982358cSTaPC','209WBedoq','List\x20all\x20config\x20values'];a52_0x5323=function(){return _0x47528d;};return a52_0x5323();}import{readConfig}from'../../utils/config.js';async function execute(_0x4068cb){const _0x56ddcf=a52_0x482e,_0x2d2c10=_0x4068cb['bool']('global')?readScopedConfig(_0x56ddcf(0x1d2)):readConfig();return{'ok':!![],'data':_0x2d2c10};}export const configListDefinition={'service':'config','command':'list','description':a52_0x4144b1(0x1cf),'risk':a52_0x4144b1(0x1cc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a52_0x4144b1(0x1d4),'description':a52_0x4144b1(0x1c6),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a53_0x24168a=a53_0x4f9a;function a53_0x4f9a(_0x56a5ac,_0x5d74c6){_0x56a5ac=_0x56a5ac-0x75;const _0xf83faf=a53_0xf83f();let _0x4f9a9e=_0xf83faf[_0x56a5ac];return _0x4f9a9e;}(function(_0x37a877,_0x179bc4){const _0x369b65=a53_0x4f9a,_0x431fc4=_0x37a877();while(!![]){try{const _0x3affdd=parseInt(_0x369b65(0x92))/0x1*(-parseInt(_0x369b65(0x81))/0x2)+-parseInt(_0x369b65(0xa7))/0x3+parseInt(_0x369b65(0x80))/0x4+parseInt(_0x369b65(0x8d))/0x5*(parseInt(_0x369b65(0xa1))/0x6)+parseInt(_0x369b65(0x79))/0x7*(-parseInt(_0x369b65(0x94))/0x8)+parseInt(_0x369b65(0x82))/0x9*(-parseInt(_0x369b65(0x8a))/0xa)+parseInt(_0x369b65(0x7d))/0xb;if(_0x3affdd===_0x179bc4)break;else _0x431fc4['push'](_0x431fc4['shift']());}catch(_0x20ae9f){_0x431fc4['push'](_0x431fc4['shift']());}}}(a53_0xf83f,0x46132));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x5ed957){const _0x5cf6bf=a53_0x4f9a,_0x4b6776=_0x5ed957['str'](_0x5cf6bf(0x78)),_0x4acce6=_0x5ed957[_0x5cf6bf(0x7b)](_0x5cf6bf(0x91));if(!_0x4b6776)throw CliErrors[_0x5cf6bf(0xa3)](_0x5cf6bf(0x88),'Usage:\x20'+CLI_BIN_NAME+_0x5cf6bf(0x8f));if(_0x4acce6===undefined||_0x4acce6==='')throw CliErrors['validation'](_0x5cf6bf(0x9c),'Usage:\x20'+CLI_BIN_NAME+_0x5cf6bf(0x8f));if(_0x4acce6['length']>0x1f4)throw CliErrors[_0x5cf6bf(0xa3)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x4b6776))throw CliErrors[_0x5cf6bf(0xa3)](_0x5cf6bf(0xa8)+_0x4b6776+_0x5cf6bf(0xa0),_0x5cf6bf(0x8b)+getTopLevelConfigKeySummary());if(_0x4b6776==='riskLevel')throw CliErrors['validation'](_0x5cf6bf(0x9d));if(CONFIG_ENUM_VALUES[_0x4b6776]&&!CONFIG_ENUM_VALUES[_0x4b6776][_0x5cf6bf(0x76)](_0x4acce6))throw CliErrors['validation'](_0x5cf6bf(0x83)+_0x4b6776+_0x5cf6bf(0x90)+CONFIG_ENUM_VALUES[_0x4b6776]['join'](',\x20'));if(_0x4b6776===_0x5cf6bf(0x9a)&&!normalizeLocale(_0x4acce6))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x5cf6bf(0x89));const _0x1ddfc7={'global':_0x5ed957[_0x5cf6bf(0xa4)](_0x5cf6bf(0x98))},_0x48126a=resolveWriteScope(_0x1ddfc7),_0x5dc601=readScopedConfig(_0x48126a);let _0x4cf55f=_0x4b6776,_0x2f6b2e=_0x4acce6;_0x4b6776==='app'&&(_0x4cf55f='appcode',delete _0x5dc601[_0x5cf6bf(0x95)]);_0x4b6776===_0x5cf6bf(0x9a)&&(_0x2f6b2e=normalizeLocale(_0x4acce6));if(_0x4b6776===_0x5cf6bf(0xa5)){_0x2f6b2e=normalizeEnv(_0x4acce6);if(!isProduction(_0x2f6b2e)&&!isDaily(_0x2f6b2e))throw CliErrors['validation'](_0x5cf6bf(0x86),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x4b6776==='appcode'){const _0x1d7795=_0x5dc601[_0x5cf6bf(0x7e)]&&typeof _0x5dc601[_0x5cf6bf(0x7e)]===_0x5cf6bf(0x8c)?Object[_0x5cf6bf(0x9e)](_0x5dc601[_0x5cf6bf(0x7e)]):[];if(_0x1d7795['length']>0x0)throw CliErrors['validation'](_0x5cf6bf(0xa6),_0x5cf6bf(0x75)+CLI_BIN_NAME+_0x5cf6bf(0x93)+_0x2f6b2e+_0x5cf6bf(0x9f)+CLI_BIN_NAME+_0x5cf6bf(0x87));const _0x2716cd=buildCanonicalProjectConfig({..._0x5dc601},{'appCodes':[_0x2f6b2e],'env':typeof _0x5dc601[_0x5cf6bf(0xa5)]==='string'?_0x5dc601[_0x5cf6bf(0xa5)]:undefined});writeScopedConfig(_0x2716cd,_0x48126a);const _0xda1e0=_0x48126a===_0x5cf6bf(0x98)?'Global':_0x5cf6bf(0x97);return{'ok':!![],'message':'✓\x20'+_0xda1e0+_0x5cf6bf(0x99)+_0x2f6b2e+_0x5cf6bf(0x7f)};}_0x5dc601[_0x4cf55f]=_0x2f6b2e,writeScopedConfig(_0x5dc601,_0x48126a);const _0x42f442=_0x48126a===_0x5cf6bf(0x98)?'Global':_0x5cf6bf(0x97);return{'ok':!![],'message':'✓\x20'+_0x42f442+'\x20'+_0x4cf55f+_0x5cf6bf(0x77)+_0x2f6b2e};}export const configSetDefinition={'service':a53_0x24168a(0x8e),'command':a53_0x24168a(0x96),'description':a53_0x24168a(0x7c),'risk':a53_0x24168a(0xa2),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x24168a(0x78),'type':a53_0x24168a(0x7a),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x24168a(0x91),'type':a53_0x24168a(0x7a),'description':a53_0x24168a(0x85),'required':!![]},{'name':a53_0x24168a(0x98),'type':a53_0x24168a(0x84),'description':a53_0x24168a(0x9b),'default':![]}],'execute':execute};function a53_0xf83f(){const _0x187977=['\x22\x20is\x20not\x20settable.','3216IsqHER','write','validation','bool','env','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','326733oOEpsk','Top-level\x20key\x20\x22','Use\x20`','includes','\x20set\x20to:\x20','key','1071kmNCCo','string','str','Set\x20a\x20config\x20value','10380634AhIakq','apps','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','1001008SpeOGo','928hWmOsi','3826566NIuhNM','Invalid\x20value\x20for\x20\x22','boolean','Config\x20value','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Missing\x20key.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','10orDiuP','Settable\x20top-level\x20keys:\x20','object','4705iAercu','config','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x22.\x20Allowed:\x20','value','655ghTaSG','\x20workspace\x20add\x20<name>\x20--appcode\x20','29976agetmS','app','set','Project','global','\x20appcode\x20set\x20to:\x20','locale','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Missing\x20value.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','keys','`,\x20`'];a53_0xf83f=function(){return _0x187977;};return a53_0xf83f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x488520,_0x48cf2f){var _0x3a586b=a54_0x1d22,_0x564b14=_0x488520();while(!![]){try{var _0x10bb47=-parseInt(_0x3a586b(0x183))/0x1*(parseInt(_0x3a586b(0x17b))/0x2)+parseInt(_0x3a586b(0x188))/0x3*(-parseInt(_0x3a586b(0x186))/0x4)+parseInt(_0x3a586b(0x17e))/0x5*(-parseInt(_0x3a586b(0x180))/0x6)+parseInt(_0x3a586b(0x179))/0x7*(parseInt(_0x3a586b(0x187))/0x8)+-parseInt(_0x3a586b(0x181))/0x9+-parseInt(_0x3a586b(0x178))/0xa*(-parseInt(_0x3a586b(0x182))/0xb)+parseInt(_0x3a586b(0x185))/0xc;if(_0x10bb47===_0x48cf2f)break;else _0x564b14['push'](_0x564b14['shift']());}catch(_0x57a09e){_0x564b14['push'](_0x564b14['shift']());}}}(a54_0x1bd0,0xca0d1));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(_0x5ecb5){var _0x2f037c=a54_0x1d22;if(_0x5ecb5['global'])return _0x2f037c(0x17d);if(!isInProject())throw CliErrors[_0x2f037c(0x184)](_0x2f037c(0x17a),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x2f037c(0x17f));return _0x2f037c(0x17c);}function a54_0x1bd0(){var _0x57f94e=['project','global','5UouiOB','\x20init`\x20first.','2219220oyNcYK','5115861CSnlSG','277486UuGGCm','599189NwYhGB','validation','33308712KJYUIY','56428NmeWxr','976zAUhzW','321fbBlEd','320zsUsDI','16730gnZlwX','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2JbSpyz'];a54_0x1bd0=function(){return _0x57f94e;};return a54_0x1bd0();}export function readScopedConfig(_0x1449fe){return readConfigFile(resolveWriteConfigPath(_0x1449fe));}function a54_0x1d22(_0x18008d,_0x52c296){_0x18008d=_0x18008d-0x178;var _0x1bd0fa=a54_0x1bd0();var _0x1d22d6=_0x1bd0fa[_0x18008d];return _0x1d22d6;}export function writeScopedConfig(_0x1ce7e3,_0x16579b){writeConfigFile(resolveWriteConfigPath(_0x16579b),_0x1ce7e3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x4b702a=a55_0x6fc8;function a55_0x6fc8(_0x2197df,_0x2a6b4d){_0x2197df=_0x2197df-0x1e0;const _0x3b2f86=a55_0x3b2f();let _0x6fc8f3=_0x3b2f86[_0x2197df];return _0x6fc8f3;}(function(_0x276308,_0x1229e8){const _0x159785=a55_0x6fc8,_0x10d827=_0x276308();while(!![]){try{const _0xf74f05=parseInt(_0x159785(0x1ef))/0x1+parseInt(_0x159785(0x1e0))/0x2*(parseInt(_0x159785(0x1f0))/0x3)+parseInt(_0x159785(0x1e7))/0x4+parseInt(_0x159785(0x1e8))/0x5+parseInt(_0x159785(0x1e3))/0x6*(-parseInt(_0x159785(0x1e6))/0x7)+parseInt(_0x159785(0x1e4))/0x8*(-parseInt(_0x159785(0x1eb))/0x9)+parseInt(_0x159785(0x1e2))/0xa*(-parseInt(_0x159785(0x1ed))/0xb);if(_0xf74f05===_0x1229e8)break;else _0x10d827['push'](_0x10d827['shift']());}catch(_0x537727){_0x10d827['push'](_0x10d827['shift']());}}}(a55_0x3b2f,0x24d20));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a55_0x4b702a(0x1e9),'operation':a55_0x4b702a(0x1e9),'description':a55_0x4b702a(0x1ec),'paramsRequired':![],'paramsHint':a55_0x4b702a(0x1ea),'helpExtra':[a55_0x4b702a(0x1e5),'\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a55_0x4b702a(0x1ee),a55_0x4b702a(0x1e1)]['join']('\x0a')});function a55_0x3b2f(){const _0x2b83aa=['filter','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','9ZepTQq','Filter\x20dataset\x20records\x20with\x20query\x20conditions','132LaCCQg','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','74401brRNie','786303YbOrSz','2YrZKBs','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','159010MyOZhC','6kVroZo','1212856pFHjjP','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','612913JBoAFU','925488LowQve','64600qnEapK'];a55_0x3b2f=function(){return _0x2b83aa;};return a55_0x3b2f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x3353b1=a56_0x3ac6;function a56_0x1c6f(){const _0x5945c2=['871506oSwWrp','927108KYROyl','4uLqUxi','Get\x20a\x20single\x20record\x20by\x20ID','getOne','345786uyyuso','2736095kkIZrq','411093HTKCkD','184HVrtsF','86027gOvqpi','1544316jHYAXS'];a56_0x1c6f=function(){return _0x5945c2;};return a56_0x1c6f();}(function(_0x48635d,_0x21f622){const _0x4358e1=a56_0x3ac6,_0x3ebdc6=_0x48635d();while(!![]){try{const _0x7c2469=-parseInt(_0x4358e1(0x17c))/0x1+-parseInt(_0x4358e1(0x174))/0x2+-parseInt(_0x4358e1(0x17d))/0x3+-parseInt(_0x4358e1(0x175))/0x4*(-parseInt(_0x4358e1(0x179))/0x5)+-parseInt(_0x4358e1(0x173))/0x6+-parseInt(_0x4358e1(0x178))/0x7+parseInt(_0x4358e1(0x17b))/0x8*(parseInt(_0x4358e1(0x17a))/0x9);if(_0x7c2469===_0x21f622)break;else _0x3ebdc6['push'](_0x3ebdc6['shift']());}catch(_0x285096){_0x3ebdc6['push'](_0x3ebdc6['shift']());}}}(a56_0x1c6f,0x52b64));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x3ac6(_0x44e345,_0xe14528){_0x44e345=_0x44e345-0x173;const _0x1c6f94=a56_0x1c6f();let _0x3ac6e0=_0x1c6f94[_0x44e345];return _0x3ac6e0;}export const dataGetOne=buildDataCommand({'command':a56_0x3353b1(0x177),'operation':a56_0x3353b1(0x177),'description':a56_0x3353b1(0x176),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a57_0x2619(_0x1017fe,_0x2debe6){_0x1017fe=_0x1017fe-0x1ae;const _0x543a0c=a57_0x543a();let _0x2619ca=_0x543a0c[_0x1017fe];return _0x2619ca;}(function(_0xd181b6,_0x1741e6){const _0xb7e0bd=a57_0x2619,_0x1fdb1a=_0xd181b6();while(!![]){try{const _0x244c7d=parseInt(_0xb7e0bd(0x1b7))/0x1*(parseInt(_0xb7e0bd(0x1af))/0x2)+-parseInt(_0xb7e0bd(0x1b6))/0x3+parseInt(_0xb7e0bd(0x1b3))/0x4*(-parseInt(_0xb7e0bd(0x1b2))/0x5)+parseInt(_0xb7e0bd(0x1b1))/0x6+parseInt(_0xb7e0bd(0x1ae))/0x7+-parseInt(_0xb7e0bd(0x1b5))/0x8*(-parseInt(_0xb7e0bd(0x1b4))/0x9)+parseInt(_0xb7e0bd(0x1b8))/0xa*(-parseInt(_0xb7e0bd(0x1b0))/0xb);if(_0x244c7d===_0x1741e6)break;else _0x1fdb1a['push'](_0x1fdb1a['shift']());}catch(_0x458c32){_0x1fdb1a['push'](_0x1fdb1a['shift']());}}}(a57_0x543a,0x6359f));function a57_0x543a(){const _0x5aedf5=['9080MFPEhj','1310433gIuLCu','684038njRmOC','1354030WcUZvp','2999605bEFOQC','2tPLsxi','33hTmKjR','462102EgvLNc','27780LMTXvg','8bCGani','567tsGFLd'];a57_0x543a=function(){return _0x5aedf5;};return a57_0x543a();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb681fd,_0x47952f){const _0x37175b=a58_0x56dd,_0x187c85=_0xb681fd();while(!![]){try{const _0x1da060=parseInt(_0x37175b(0x131))/0x1*(-parseInt(_0x37175b(0x12a))/0x2)+-parseInt(_0x37175b(0x13f))/0x3*(-parseInt(_0x37175b(0x12b))/0x4)+-parseInt(_0x37175b(0x120))/0x5*(parseInt(_0x37175b(0x134))/0x6)+-parseInt(_0x37175b(0x122))/0x7*(-parseInt(_0x37175b(0x13d))/0x8)+parseInt(_0x37175b(0x123))/0x9*(parseInt(_0x37175b(0x130))/0xa)+-parseInt(_0x37175b(0x12c))/0xb*(parseInt(_0x37175b(0x125))/0xc)+-parseInt(_0x37175b(0x121))/0xd;if(_0x1da060===_0x47952f)break;else _0x187c85['push'](_0x187c85['shift']());}catch(_0x2b5e77){_0x187c85['push'](_0x187c85['shift']());}}}(a58_0x423a,0xc894f));function a58_0x423a(){const _0x36ccce=['664VOHmjb','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','15DoYSoM','code','alias','64555PxHQce','18793580pMNSiQ','126574PIhjje','607626pJBQjS','compress','498276jsYSmS','command','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','string','\x20completed\x20in\x20','39762QpJJft','1253668CvIPTE','110HBcdQv','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','str','getOne','110IejOqY','47uOiWSs','data\x20','now','90yERgzd','paramsHint','helpExtra','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','operation','read','flagMissing','appCode','params'];a58_0x423a=function(){return _0x36ccce;};return a58_0x423a();}import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0x56dd(_0x5503ae,_0x2f06c9){_0x5503ae=_0x5503ae-0x11e;const _0x423a7c=a58_0x423a();let _0x56dd79=_0x423a7c[_0x5503ae];return _0x56dd79;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x307047){const _0x890c99=a58_0x56dd;if(!_0x307047)throw CliErrors[_0x890c99(0x13a)](_0x890c99(0x13c),_0x890c99(0x127));const _0x3ab2a9=_0x307047['id'];if(_0x3ab2a9===undefined||_0x3ab2a9===null||_0x3ab2a9==='')throw CliErrors['validation'](_0x890c99(0x12d),_0x890c99(0x13e));}function parseCommandParams(_0x4e7118){return parseJsonParams(_0x4e7118)??{};}export function buildDataCommand(_0x55778d){const _0x5bfd42=a58_0x56dd,_0x30ed70=_0x5bfd42(0x137);return{'service':'data','command':_0x55778d[_0x5bfd42(0x126)],'description':_0x55778d['description'],'risk':_0x5bfd42(0x139),'defaultOutputFormat':_0x5bfd42(0x124),'helpExtra':_0x55778d[_0x5bfd42(0x136)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x5bfd42(0x11f),'type':_0x5bfd42(0x128),'description':_0x30ed70},{'name':_0x5bfd42(0x13c),'type':'string','description':_0x55778d['paramsHint']}],async 'validate'(_0x260a03){const _0x7a1efc=_0x5bfd42,_0x1a5ced=_0x260a03[_0x7a1efc(0x12e)]('params');if(_0x55778d['paramsRequired']&&!_0x1a5ced)throw CliErrors[_0x7a1efc(0x13a)](_0x7a1efc(0x13c),_0x55778d[_0x7a1efc(0x135)]);const _0x234b92=parseJsonParams(_0x1a5ced);_0x55778d[_0x7a1efc(0x138)]===_0x7a1efc(0x12f)&&assertGetOneId(_0x234b92);},async 'execute'(_0xf1ab24){const _0x43986f=_0x5bfd42,_0x452eaa=parseCommandParams(_0xf1ab24[_0x43986f(0x12e)](_0x43986f(0x13c))),_0x16b7ef=Date[_0x43986f(0x133)](),_0x329aa2=await executeDatasetDataOperation(_0xf1ab24[_0x43986f(0x13b)],_0xf1ab24['str'](_0x43986f(0x11e)),_0x55778d[_0x43986f(0x138)],_0x452eaa),_0x290266=Date['now']()-_0x16b7ef;return{'ok':!![],'data':{'result':_0x329aa2,'elapsed':_0x290266},'message':_0x43986f(0x132)+_0x55778d[_0x43986f(0x126)]+_0x43986f(0x129)+_0x290266+'ms'};}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59_0xb60c4a=a59_0x1a62;(function(_0x32d1e3,_0x3f8add){const _0x4ab942=a59_0x1a62,_0x2bb697=_0x32d1e3();while(!![]){try{const _0x16ccbd=parseInt(_0x4ab942(0x184))/0x1+parseInt(_0x4ab942(0x197))/0x2*(-parseInt(_0x4ab942(0x17f))/0x3)+parseInt(_0x4ab942(0x19c))/0x4+-parseInt(_0x4ab942(0x18f))/0x5+parseInt(_0x4ab942(0x192))/0x6+-parseInt(_0x4ab942(0x189))/0x7+parseInt(_0x4ab942(0x17e))/0x8;if(_0x16ccbd===_0x3f8add)break;else _0x2bb697['push'](_0x2bb697['shift']());}catch(_0x10756f){_0x2bb697['push'](_0x2bb697['shift']());}}}(a59_0x45e5,0x9dbf4));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a59_0xb60c4a(0x19d);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1e4bd4,input:_0x24af6c,dryRun:_0x1237dc}){const _0x878efb=a59_0xb60c4a;validateInput(_0x24af6c);const _0x5979e6=normalizeBusinessGroup(_0x24af6c[_0x878efb(0x16e)]),_0x46e7b1=await getDatasetDetail(_0x24af6c[_0x878efb(0x160)]),_0x129252=resolveBusinessGroupDataset(_0x46e7b1,_0x24af6c[_0x878efb(0x160)]),_0x58e329=loadCurrentBusinessGroup(_0x46e7b1,_0x129252);assertExpectedBusinessGroup(_0x58e329,_0x24af6c[_0x878efb(0x181)]);const _0x4ab2b7=buildBackendPayload(_0x1e4bd4,_0x129252,_0x5979e6),_0x2526e9=_0x58e329!==_0x5979e6;let _0x8862b;if(_0x2526e9&&!_0x1237dc){await updateErBusinessGroup(_0x4ab2b7);const _0x1337ce=await getDatasetDetail(_0x129252[_0x878efb(0x160)]),_0x42f0f4=resolveBusinessGroupDataset(_0x1337ce,_0x129252['code']),_0x499876=loadCurrentBusinessGroup(_0x1337ce,_0x42f0f4);if(_0x499876!==_0x5979e6)throw CliErrors[_0x878efb(0x171)](_0x878efb(0x187),_0x878efb(0x170)+JSON[_0x878efb(0x17c)](_0x5979e6)+_0x878efb(0x18b)+JSON[_0x878efb(0x17c)](_0x499876)+'.');_0x8862b={'verified':!![],'status':_0x878efb(0x18e),'afterReadback':{'businessGroup':_0x499876}};}else!_0x2526e9&&(_0x8862b={'verified':!![],'status':_0x878efb(0x190),'afterReadback':{'businessGroup':_0x58e329}});const _0x203cc7={'operation':_0x878efb(0x17a),'appCode':_0x1e4bd4,'selector':{'code':_0x129252[_0x878efb(0x160)]},'dataset':_0x129252,'before':{'businessGroup':_0x58e329},'after':{'businessGroup':_0x5979e6},'changed':_0x2526e9,'dryRun':_0x1237dc,'submitted':_0x2526e9&&!_0x1237dc,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x4ab2b7},..._0x8862b?{'verification':_0x8862b}:{},'warnings':[]};return{'ok':!![],'data':_0x203cc7,'message':_0x2526e9?_0x1237dc?_0x878efb(0x16b)+_0x129252['code']:_0x878efb(0x188)+_0x129252[_0x878efb(0x160)]:_0x878efb(0x196)+_0x129252['code']};}export const datasetBusinessGroupUpdate={'service':'dataset','command':a59_0xb60c4a(0x177),'description':a59_0xb60c4a(0x173),'risk':a59_0xb60c4a(0x179),'flags':[CODE_FLAG,{'name':a59_0xb60c4a(0x183),'type':a59_0xb60c4a(0x180),'required':!![],'description':a59_0xb60c4a(0x176)},{'name':a59_0xb60c4a(0x168),'type':a59_0xb60c4a(0x180),'required':![],'description':a59_0xb60c4a(0x161)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1eaea4){validateInput(readBusinessGroupUpdateInput(_0x1eaea4));},async 'dryRun'(_0x5c798a){const _0x56ec78=a59_0xb60c4a,_0x43f444=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x5c798a[_0x56ec78(0x16a)],'input':readBusinessGroupUpdateInput(_0x5c798a),'dryRun':!![]});return{'method':_0x56ec78(0x19b),'url':BACKEND_PATH,'body':_0x43f444[_0x56ec78(0x17d)][_0x56ec78(0x175)][_0x56ec78(0x198)],'description':_0x43f444[_0x56ec78(0x18c)],..._0x43f444['data']};},async 'execute'(_0x5a4c10){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x5a4c10['appCode'],'input':readBusinessGroupUpdateInput(_0x5a4c10),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x1453b1){const _0x64a489=a59_0xb60c4a,_0x33407b=_0x1453b1[_0x64a489(0x178)](_0x64a489(0x168));return{'code':trim(_0x1453b1[_0x64a489(0x178)](_0x64a489(0x160))),'businessGroup':_0x1453b1[_0x64a489(0x178)]('business-group'),'expectBusinessGroup':_0x33407b===undefined||_0x33407b===''?undefined:_0x33407b};}function validateInput(_0x227140){const _0x46c863=a59_0xb60c4a;if(!trim(_0x227140[_0x46c863(0x160)]))throw CliErrors[_0x46c863(0x18d)]('--code\x20is\x20required');if(_0x227140[_0x46c863(0x16e)]===undefined)throw CliErrors[_0x46c863(0x18d)](_0x46c863(0x169));}function resolveBusinessGroupDataset(_0x512641,_0x390ea5){const _0x19b7ba=a59_0xb60c4a,_0x1614f8=asPlainObject(_0x512641[_0x19b7ba(0x19e)]),_0x22cc1d=asPlainObject(_0x512641['dbtableConfig']),_0x21c4f1=resolveSourceType(_0x512641,_0x1614f8,_0x22cc1d),_0xc800f0=firstString(_0x512641[_0x19b7ba(0x19a)],_0x512641['code'],_0x1614f8[_0x19b7ba(0x199)],_0x390ea5)||_0x390ea5;return{'id':firstNumber(_0x512641[_0x19b7ba(0x191)],_0x512641['id'],_0x1614f8['datasetId'])??firstString(_0x512641[_0x19b7ba(0x191)],_0x512641['id'],_0x1614f8['datasetId'])??null,'code':_0xc800f0,'name':firstString(_0x512641[_0x19b7ba(0x16f)],_0x1614f8['datasetName'],_0x1614f8[_0x19b7ba(0x16f)])||null,'sourceType':_0x21c4f1};}function resolveSourceType(_0x5d5a10,_0xde4271,_0x27645e){const _0x1dec81=a59_0xb60c4a,_0x25bba0=firstString(_0x5d5a10[_0x1dec81(0x172)],_0x5d5a10['sourceType'],_0xde4271[_0x1dec81(0x172)],_0xde4271[_0x1dec81(0x16d)])?.['trim']()[_0x1dec81(0x17b)]();if(_0x25bba0===_0x1dec81(0x163)||_0x25bba0==='METADATA')return _0x25bba0;if(Object[_0x1dec81(0x182)](_0x27645e)[_0x1dec81(0x194)]>0x0)return _0x1dec81(0x163);throw CliErrors[_0x1dec81(0x18d)](_0x1dec81(0x174));}function a59_0x1a62(_0x3c46bc,_0x5148c1){_0x3c46bc=_0x3c46bc-0x160;const _0x45e527=a59_0x45e5();let _0x1a6232=_0x45e527[_0x3c46bc];return _0x1a6232;}function loadCurrentBusinessGroup(_0x5b6f1d,_0x29a352){const _0x229898=a59_0xb60c4a,_0x4f990a=readBusinessGroupFromDatasetDetail(_0x5b6f1d,_0x29a352[_0x229898(0x16d)]);if(_0x4f990a[_0x229898(0x16c)])return normalizeBusinessGroup(_0x4f990a[_0x229898(0x167)]);if(_0x29a352['sourceType']==='METADATA')return'';throw CliErrors[_0x229898(0x18d)](_0x229898(0x164),_0x229898(0x166));}function readBusinessGroupFromDatasetDetail(_0x4e6dc5,_0x1b5212){const _0xd2938d=a59_0xb60c4a,_0x3842c8=asPlainObject(_0x4e6dc5[_0xd2938d(0x19e)]),_0x22239a=firstPresent(_0x4e6dc5[_0xd2938d(0x16e)]);if(_0x22239a['found'])return _0x22239a;const _0x4344d2=firstPresent(_0x3842c8[_0xd2938d(0x16e)]);if(_0x4344d2[_0xd2938d(0x16c)])return _0x4344d2;if(_0x1b5212===_0xd2938d(0x163))return{'found':![]};const _0x462fdc=readBusinessGroupFromExtend(_0x4e6dc5[_0xd2938d(0x162)]);if(_0x462fdc['found'])return _0x462fdc;return readBusinessGroupFromExtend(_0x3842c8['extend']);}function readBusinessGroupFromExtend(_0x5501b9){const _0x25e814=a59_0xb60c4a;if(_0x5501b9===undefined||_0x5501b9===null||_0x5501b9==='')return{'found':![]};if(typeof _0x5501b9===_0x25e814(0x180))try{const _0x2a0b48=JSON[_0x25e814(0x165)](_0x5501b9);return readBusinessGroupFromExtend(_0x2a0b48);}catch{return{'found':![]};}const _0x4e46e0=asPlainObject(_0x5501b9);if(Object['prototype']['hasOwnProperty'][_0x25e814(0x193)](_0x4e46e0,_0x25e814(0x16e)))return{'found':!![],'value':_0x4e46e0['businessGroup']};return{'found':![]};}function firstPresent(..._0x8c0d24){for(const _0x34ab43 of _0x8c0d24){if(_0x34ab43!==undefined&&_0x34ab43!==null)return{'found':!![],'value':_0x34ab43};}return{'found':![]};}function assertExpectedBusinessGroup(_0x270d13,_0x45e7ac){const _0x2f4f95=a59_0xb60c4a;if(_0x45e7ac===undefined)return;const _0x228958=normalizeBusinessGroup(_0x45e7ac);if(_0x270d13!==_0x228958)throw CliErrors[_0x2f4f95(0x18d)](_0x2f4f95(0x195),'Expected\x20'+JSON[_0x2f4f95(0x17c)](_0x228958)+',\x20actual\x20'+JSON['stringify'](_0x270d13));}function buildBackendPayload(_0x1521ce,_0x2acc35,_0x45245a){return{'appCode':_0x1521ce,'datasetCode':_0x2acc35['code'],'businessGroup':_0x45245a};}function a59_0x45e5(){const _0x392ce9=['expectBusinessGroup','keys','business-group','462182KJsoCO','trim','number','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','7481789laFVPQ','isFinite',',\x20actual\x20','message','validation','matched','3119935JSZszj','unchanged','modelId','6532872DynCfc','call','length','Expectation\x20mismatch\x20at\x20businessGroup','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','2pNTQns','payload','datasetCode','modelCode','POST','4554652tVmgVJ','/smartapi/question/er-config/business-group/edit','dataset','code','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','extend','DB_TABLE','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','parse','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','value','expect-business-group','--business-group\x20is\x20required','appCode','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','found','sourceType','businessGroup','name','Expected\x20','apiError','source','Update\x20business\x20scenario\x20group','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','backend','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','business-group-update','str','write','update','toUpperCase','stringify','data','832680UCLjeS','1364388HxLLHx','string'];a59_0x45e5=function(){return _0x392ce9;};return a59_0x45e5();}function normalizeBusinessGroup(_0x54b392){const _0x427ba4=a59_0xb60c4a;if(_0x54b392===undefined||_0x54b392===null)return'';return String(_0x54b392)[_0x427ba4(0x185)]();}function asPlainObject(_0x3e1d70){if(!_0x3e1d70||typeof _0x3e1d70!=='object'||Array['isArray'](_0x3e1d70))return{};return _0x3e1d70;}function firstString(..._0x50e096){const _0x4fc723=a59_0xb60c4a;for(const _0x45bee1 of _0x50e096){if(typeof _0x45bee1==='string'&&_0x45bee1[_0x4fc723(0x185)]())return _0x45bee1[_0x4fc723(0x185)]();if(typeof _0x45bee1===_0x4fc723(0x186)&&Number['isFinite'](_0x45bee1))return String(_0x45bee1);}return undefined;}function firstNumber(..._0x2d1cf0){const _0x1681bf=a59_0xb60c4a;for(const _0x32b53d of _0x2d1cf0){if(typeof _0x32b53d===_0x1681bf(0x186)&&Number[_0x1681bf(0x18a)](_0x32b53d))return _0x32b53d;if(typeof _0x32b53d===_0x1681bf(0x180)&&_0x32b53d[_0x1681bf(0x185)]()&&Number[_0x1681bf(0x18a)](Number(_0x32b53d)))return Number(_0x32b53d);}return null;}function trim(_0x22fac0){const _0x29eac9=a59_0xb60c4a;return String(_0x22fac0||'')[_0x29eac9(0x185)]();}
|
|
1
|
+
const a59_0x2c4640=a59_0x13ca;(function(_0x47d317,_0x234674){const _0x1e133c=a59_0x13ca,_0x17550e=_0x47d317();while(!![]){try{const _0x103ee0=-parseInt(_0x1e133c(0x182))/0x1*(-parseInt(_0x1e133c(0x181))/0x2)+parseInt(_0x1e133c(0x165))/0x3+-parseInt(_0x1e133c(0x15c))/0x4*(parseInt(_0x1e133c(0x169))/0x5)+-parseInt(_0x1e133c(0x183))/0x6+-parseInt(_0x1e133c(0x177))/0x7*(-parseInt(_0x1e133c(0x175))/0x8)+parseInt(_0x1e133c(0x14f))/0x9*(-parseInt(_0x1e133c(0x170))/0xa)+-parseInt(_0x1e133c(0x16c))/0xb;if(_0x103ee0===_0x234674)break;else _0x17550e['push'](_0x17550e['shift']());}catch(_0x2caf4a){_0x17550e['push'](_0x17550e['shift']());}}}(a59_0x30cb,0x7dee7));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a59_0x13ca(_0x179ba4,_0xc6140a){_0x179ba4=_0x179ba4-0x14b;const _0x30cb5b=a59_0x30cb();let _0x13ca66=_0x30cb5b[_0x179ba4];return _0x13ca66;}const BACKEND_PATH=a59_0x2c4640(0x15a);function a59_0x30cb(){const _0x1dc755=['Update\x20business\x20scenario\x20group','unchanged','1629QqBdOP','string','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','number','source','--code\x20is\x20required','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','hasOwnProperty','expect-business-group','str','data','/smartapi/question/er-config/business-group/edit','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','212260RIrPLr','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','DB_TABLE','datasetCode',',\x20actual\x20','validation','extend','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','payload','2527677NmdfIS','expectBusinessGroup','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','object','25PEEADy','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','2023846ZXEXhp','Expectation\x20mismatch\x20at\x20businessGroup','modelId','apiError','10040mMizEc','parse','appCode','found','business-group','8ckkAtu','isArray','5414458OxwePf','modelCode','matched','isFinite','code','call','toUpperCase','trim','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','backend','23090XbnIIU','30oZRDYc','4893318ILkUYj','--business-group\x20is\x20required','sourceType','business-group-update','message','datasetName','businessGroup','Expected\x20','dbtableConfig','dataset','update','METADATA','stringify'];a59_0x30cb=function(){return _0x1dc755;};return a59_0x30cb();}export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x592b52,input:_0x46657e,dryRun:_0x451400}){const _0x2ee05b=a59_0x2c4640;validateInput(_0x46657e);const _0xa1e97=normalizeBusinessGroup(_0x46657e[_0x2ee05b(0x189)]),_0x22c158=await getDatasetDetail(_0x46657e['code']),_0xab083=resolveBusinessGroupDataset(_0x22c158,_0x46657e[_0x2ee05b(0x17b)]),_0xc8605e=loadCurrentBusinessGroup(_0x22c158,_0xab083);assertExpectedBusinessGroup(_0xc8605e,_0x46657e[_0x2ee05b(0x166)]);const _0x372e3f=buildBackendPayload(_0x592b52,_0xab083,_0xa1e97),_0x1f27ef=_0xc8605e!==_0xa1e97;let _0x1982f8;if(_0x1f27ef&&!_0x451400){await updateErBusinessGroup(_0x372e3f);const _0xdd839a=await getDatasetDetail(_0xab083[_0x2ee05b(0x17b)]),_0x516894=resolveBusinessGroupDataset(_0xdd839a,_0xab083[_0x2ee05b(0x17b)]),_0x232a3e=loadCurrentBusinessGroup(_0xdd839a,_0x516894);if(_0x232a3e!==_0xa1e97)throw CliErrors[_0x2ee05b(0x16f)](_0x2ee05b(0x167),_0x2ee05b(0x18a)+JSON[_0x2ee05b(0x14c)](_0xa1e97)+_0x2ee05b(0x160)+JSON[_0x2ee05b(0x14c)](_0x232a3e)+'.');_0x1982f8={'verified':!![],'status':_0x2ee05b(0x179),'afterReadback':{'businessGroup':_0x232a3e}};}else!_0x1f27ef&&(_0x1982f8={'verified':!![],'status':_0x2ee05b(0x14e),'afterReadback':{'businessGroup':_0xc8605e}});const _0x1b3d80={'operation':_0x2ee05b(0x18d),'appCode':_0x592b52,'selector':{'code':_0xab083[_0x2ee05b(0x17b)]},'dataset':_0xab083,'before':{'businessGroup':_0xc8605e},'after':{'businessGroup':_0xa1e97},'changed':_0x1f27ef,'dryRun':_0x451400,'submitted':_0x1f27ef&&!_0x451400,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x372e3f},..._0x1982f8?{'verification':_0x1982f8}:{},'warnings':[]};return{'ok':!![],'data':_0x1b3d80,'message':_0x1f27ef?_0x451400?_0x2ee05b(0x151)+_0xab083[_0x2ee05b(0x17b)]:_0x2ee05b(0x15d)+_0xab083[_0x2ee05b(0x17b)]:_0x2ee05b(0x155)+_0xab083[_0x2ee05b(0x17b)]};}export const datasetBusinessGroupUpdate={'service':a59_0x2c4640(0x18c),'command':a59_0x2c4640(0x186),'description':a59_0x2c4640(0x14d),'risk':'write','flags':[CODE_FLAG,{'name':a59_0x2c4640(0x174),'type':a59_0x2c4640(0x150),'required':!![],'description':a59_0x2c4640(0x163)},{'name':a59_0x2c4640(0x157),'type':a59_0x2c4640(0x150),'required':![],'description':a59_0x2c4640(0x16b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x55ab3b){validateInput(readBusinessGroupUpdateInput(_0x55ab3b));},async 'dryRun'(_0x3217af){const _0x1d9ac1=a59_0x2c4640,_0x40648f=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x3217af[_0x1d9ac1(0x172)],'input':readBusinessGroupUpdateInput(_0x3217af),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x40648f['data'][_0x1d9ac1(0x180)][_0x1d9ac1(0x164)],'description':_0x40648f[_0x1d9ac1(0x187)],..._0x40648f[_0x1d9ac1(0x159)]};},async 'execute'(_0x22e2e9){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x22e2e9['appCode'],'input':readBusinessGroupUpdateInput(_0x22e2e9),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x5f2a28){const _0xa30739=a59_0x2c4640,_0x2565cc=_0x5f2a28[_0xa30739(0x158)](_0xa30739(0x157));return{'code':trim(_0x5f2a28['str'](_0xa30739(0x17b))),'businessGroup':_0x5f2a28['str'](_0xa30739(0x174)),'expectBusinessGroup':_0x2565cc===undefined||_0x2565cc===''?undefined:_0x2565cc};}function validateInput(_0x4fcca4){const _0x1ead20=a59_0x2c4640;if(!trim(_0x4fcca4[_0x1ead20(0x17b)]))throw CliErrors[_0x1ead20(0x161)](_0x1ead20(0x154));if(_0x4fcca4[_0x1ead20(0x189)]===undefined)throw CliErrors[_0x1ead20(0x161)](_0x1ead20(0x184));}function resolveBusinessGroupDataset(_0x4d0a08,_0x100b2e){const _0x42364a=a59_0x2c4640,_0x4e5c11=asPlainObject(_0x4d0a08['dataset']),_0x5d9e32=asPlainObject(_0x4d0a08[_0x42364a(0x18b)]),_0x159b49=resolveSourceType(_0x4d0a08,_0x4e5c11,_0x5d9e32),_0x4a21ac=firstString(_0x4d0a08[_0x42364a(0x178)],_0x4d0a08[_0x42364a(0x17b)],_0x4e5c11[_0x42364a(0x15f)],_0x100b2e)||_0x100b2e;return{'id':firstNumber(_0x4d0a08[_0x42364a(0x16e)],_0x4d0a08['id'],_0x4e5c11['datasetId'])??firstString(_0x4d0a08[_0x42364a(0x16e)],_0x4d0a08['id'],_0x4e5c11['datasetId'])??null,'code':_0x4a21ac,'name':firstString(_0x4d0a08['name'],_0x4e5c11[_0x42364a(0x188)],_0x4e5c11['name'])||null,'sourceType':_0x159b49};}function resolveSourceType(_0x5a4b31,_0x3e71c2,_0x1cc1a9){const _0x1eeea3=a59_0x2c4640,_0x313243=firstString(_0x5a4b31[_0x1eeea3(0x153)],_0x5a4b31[_0x1eeea3(0x185)],_0x3e71c2[_0x1eeea3(0x153)],_0x3e71c2['sourceType'])?.[_0x1eeea3(0x17e)]()[_0x1eeea3(0x17d)]();if(_0x313243==='DB_TABLE'||_0x313243===_0x1eeea3(0x14b))return _0x313243;if(Object['keys'](_0x1cc1a9)['length']>0x0)return _0x1eeea3(0x15e);throw CliErrors[_0x1eeea3(0x161)](_0x1eeea3(0x15b));}function loadCurrentBusinessGroup(_0x3182c0,_0x1571ca){const _0x257831=a59_0x2c4640,_0x57d133=readBusinessGroupFromDatasetDetail(_0x3182c0,_0x1571ca[_0x257831(0x185)]);if(_0x57d133[_0x257831(0x173)])return normalizeBusinessGroup(_0x57d133['value']);if(_0x1571ca[_0x257831(0x185)]==='METADATA')return'';throw CliErrors[_0x257831(0x161)](_0x257831(0x17f),_0x257831(0x16a));}function readBusinessGroupFromDatasetDetail(_0x44d8c4,_0x39c264){const _0x3d6f76=a59_0x2c4640,_0x979e30=asPlainObject(_0x44d8c4['dataset']),_0x45b13e=firstPresent(_0x44d8c4['businessGroup']);if(_0x45b13e[_0x3d6f76(0x173)])return _0x45b13e;const _0x66d4de=firstPresent(_0x979e30['businessGroup']);if(_0x66d4de[_0x3d6f76(0x173)])return _0x66d4de;if(_0x39c264==='DB_TABLE')return{'found':![]};const _0x484e62=readBusinessGroupFromExtend(_0x44d8c4[_0x3d6f76(0x162)]);if(_0x484e62['found'])return _0x484e62;return readBusinessGroupFromExtend(_0x979e30[_0x3d6f76(0x162)]);}function readBusinessGroupFromExtend(_0x34938e){const _0x55a04c=a59_0x2c4640;if(_0x34938e===undefined||_0x34938e===null||_0x34938e==='')return{'found':![]};if(typeof _0x34938e===_0x55a04c(0x150))try{const _0x39f8f3=JSON[_0x55a04c(0x171)](_0x34938e);return readBusinessGroupFromExtend(_0x39f8f3);}catch{return{'found':![]};}const _0x53ecce=asPlainObject(_0x34938e);if(Object['prototype'][_0x55a04c(0x156)][_0x55a04c(0x17c)](_0x53ecce,_0x55a04c(0x189)))return{'found':!![],'value':_0x53ecce['businessGroup']};return{'found':![]};}function firstPresent(..._0x597aaa){for(const _0xd273c4 of _0x597aaa){if(_0xd273c4!==undefined&&_0xd273c4!==null)return{'found':!![],'value':_0xd273c4};}return{'found':![]};}function assertExpectedBusinessGroup(_0x364c2b,_0x252da3){const _0x2c6244=a59_0x2c4640;if(_0x252da3===undefined)return;const _0xce123c=normalizeBusinessGroup(_0x252da3);if(_0x364c2b!==_0xce123c)throw CliErrors[_0x2c6244(0x161)](_0x2c6244(0x16d),_0x2c6244(0x18a)+JSON[_0x2c6244(0x14c)](_0xce123c)+',\x20actual\x20'+JSON[_0x2c6244(0x14c)](_0x364c2b));}function buildBackendPayload(_0x3d0e7d,_0x3af763,_0x49cd87){const _0x2a9777=a59_0x2c4640;return{'appCode':_0x3d0e7d,'datasetCode':_0x3af763[_0x2a9777(0x17b)],'businessGroup':_0x49cd87};}function normalizeBusinessGroup(_0x2d65b3){const _0x5dab55=a59_0x2c4640;if(_0x2d65b3===undefined||_0x2d65b3===null)return'';return String(_0x2d65b3)[_0x5dab55(0x17e)]();}function asPlainObject(_0x57a306){const _0x530a08=a59_0x2c4640;if(!_0x57a306||typeof _0x57a306!==_0x530a08(0x168)||Array[_0x530a08(0x176)](_0x57a306))return{};return _0x57a306;}function firstString(..._0x2a188c){const _0x1bd7b2=a59_0x2c4640;for(const _0x5a580d of _0x2a188c){if(typeof _0x5a580d==='string'&&_0x5a580d[_0x1bd7b2(0x17e)]())return _0x5a580d[_0x1bd7b2(0x17e)]();if(typeof _0x5a580d===_0x1bd7b2(0x152)&&Number[_0x1bd7b2(0x17a)](_0x5a580d))return String(_0x5a580d);}return undefined;}function firstNumber(..._0x529067){const _0x10f0b0=a59_0x2c4640;for(const _0x14d371 of _0x529067){if(typeof _0x14d371===_0x10f0b0(0x152)&&Number[_0x10f0b0(0x17a)](_0x14d371))return _0x14d371;if(typeof _0x14d371===_0x10f0b0(0x150)&&_0x14d371[_0x10f0b0(0x17e)]()&&Number[_0x10f0b0(0x17a)](Number(_0x14d371)))return Number(_0x14d371);}return null;}function trim(_0x5df70c){const _0x24e17b=a59_0x2c4640;return String(_0x5df70c||'')[_0x24e17b(0x17e)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a60_0x1ff039=a60_0x5b0a;function a60_0x41b1(){const _0x49e24f=['176JOeFeM','length','groups','dataset','business-groups','4009712QegBAv','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','1174462swPFDH','dbid','\x20business\x20group(s)\x20for\x20database\x20connection\x20','253761LHUNqm','2340368fGKDMH','appCode','69155yDYePS','3207816JCIvKQ','6451158mhSqev'];a60_0x41b1=function(){return _0x49e24f;};return a60_0x41b1();}(function(_0x1da778,_0x1219c5){const _0x2ab6e5=a60_0x5b0a,_0x2db424=_0x1da778();while(!![]){try{const _0x4cb4e8=-parseInt(_0x2ab6e5(0x191))/0x1+parseInt(_0x2ab6e5(0x18e))/0x2+parseInt(_0x2ab6e5(0x185))/0x3+-parseInt(_0x2ab6e5(0x187))/0x4*(parseInt(_0x2ab6e5(0x184))/0x5)+-parseInt(_0x2ab6e5(0x186))/0x6+parseInt(_0x2ab6e5(0x18c))/0x7+parseInt(_0x2ab6e5(0x192))/0x8;if(_0x4cb4e8===_0x1219c5)break;else _0x2db424['push'](_0x2db424['shift']());}catch(_0x1bba0a){_0x2db424['push'](_0x2db424['shift']());}}}(a60_0x41b1,0x8ea9b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a60_0x5b0a(_0x2b180e,_0x2d2a7b){_0x2b180e=_0x2b180e-0x183;const _0x41b1ee=a60_0x41b1();let _0x5b0af9=_0x41b1ee[_0x2b180e];return _0x5b0af9;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a60_0x1ff039(0x18a),'command':a60_0x1ff039(0x18b),'description':'List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','risk':'read','flags':[{'name':a60_0x1ff039(0x18f),'type':'number','required':!![],'description':a60_0x1ff039(0x18d)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0xe3ed0a){const _0x224c52=a60_0x1ff039,_0x29e188=_0xe3ed0a['num'](_0x224c52(0x18f)),_0xcf826d=await getErBusinessGroupSummary(_0xe3ed0a[_0x224c52(0x183)],_0x29e188);return{'ok':!![],'data':{..._0xcf826d,'scope':'DB_TABLE'},'message':'Found\x20'+_0xcf826d[_0x224c52(0x189)][_0x224c52(0x188)]+_0x224c52(0x190)+_0x29e188};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x224d8c=a61_0x12af;(function(_0xeeea56,_0xe03a9d){const _0x21835d=a61_0x12af,_0x3e1dc5=_0xeeea56();while(!![]){try{const _0x507015=-parseInt(_0x21835d(0x168))/0x1+-parseInt(_0x21835d(0x16a))/0x2*(-parseInt(_0x21835d(0x166))/0x3)+parseInt(_0x21835d(0x16b))/0x4*(parseInt(_0x21835d(0x169))/0x5)+-parseInt(_0x21835d(0x165))/0x6+-parseInt(_0x21835d(0x16c))/0x7*(parseInt(_0x21835d(0x17b))/0x8)+-parseInt(_0x21835d(0x183))/0x9*(parseInt(_0x21835d(0x189))/0xa)+parseInt(_0x21835d(0x16d))/0xb;if(_0x507015===_0xe03a9d)break;else _0x3e1dc5['push'](_0x3e1dc5['shift']());}catch(_0x756f8f){_0x3e1dc5['push'](_0x3e1dc5['shift']());}}}(a61_0x852d,0x75411));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x224d8c(0x187),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a61_0x224d8c(0x178)};export const RUNTIME_DATA_ACCESS_SUMMARY=a61_0x224d8c(0x16e);function a61_0x12af(_0x54000d,_0x202345){_0x54000d=_0x54000d-0x165;const _0x852d9e=a61_0x852d();let _0x12af95=_0x852d9e[_0x54000d];return _0x12af95;}function valueToString(_0x1505f3){const _0x104b6f=a61_0x224d8c;return _0x1505f3==null?'':String(_0x1505f3)[_0x104b6f(0x18a)]();}function getDatasetCode(_0x42de75){const _0x5e1046=a61_0x224d8c;return valueToString(_0x42de75[_0x5e1046(0x17e)]??_0x42de75['modelCode']??_0x42de75[_0x5e1046(0x175)]?.[_0x5e1046(0x179)]);}function getDatasetName(_0x47bafc){const _0x29d544=a61_0x224d8c;return valueToString(_0x47bafc[_0x29d544(0x184)]??_0x47bafc[_0x29d544(0x175)]?.[_0x29d544(0x17a)])||_0x29d544(0x181);}function getDatasetSource(_0x4155d4){const _0x2b8c8f=a61_0x224d8c;return valueToString(_0x4155d4[_0x2b8c8f(0x17d)]??_0x4155d4[_0x2b8c8f(0x175)]?.[_0x2b8c8f(0x17f)])['toUpperCase']();}function getDbtableConfig(_0x4c9d3c){const _0x399d81=a61_0x224d8c,_0x12eaf4=_0x4c9d3c[_0x399d81(0x172)]??_0x4c9d3c[_0x399d81(0x167)];return _0x12eaf4&&typeof _0x12eaf4===_0x399d81(0x185)?_0x12eaf4:{};}export function isDbTableBackedDataset(_0x3864b3){const _0x4e8989=a61_0x224d8c,_0x1614de=getDatasetSource(_0x3864b3);if(_0x1614de===_0x4e8989(0x16f))return![];const _0x2a091f=getDbtableConfig(_0x3864b3),_0x3cf98b=_0x2a091f[_0x4e8989(0x177)]??_0x2a091f['id'],_0x51941e=valueToString(_0x2a091f[_0x4e8989(0x174)]??_0x3864b3[_0x4e8989(0x174)]??_0x3864b3[_0x4e8989(0x175)]?.[_0x4e8989(0x174)]);return _0x3cf98b!==undefined&&_0x3cf98b!==null&&_0x51941e['length']>0x0;}function a61_0x852d(){const _0x24891c=['\x20是\x20','join','dbtableConfig','UNKNOWN','tableName','dataset','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','dbId','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','datasetCode','datasetName','6408MmDSBH','\x20的\x20DB_TABLE\x20数据源上下文。','source','code','sourceType','SQL\x20schema\x20validation','unknown','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','9opCcCb','name','object','validation','lovrabet','\x20类型,没有可用于\x20','3159730HePPxn','trim','1439454HMPSDv','39IdeSHP','dbtable','213372lJcxVA','5StWnZa','76784XYvWRW','2608636rktXhV','3598nqRwPF','5609846cOjvzN','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','METADATA'];a61_0x852d=function(){return _0x24891c;};return a61_0x852d();}export function filterDbTableBackedDatasets(_0x1a6f0e){return _0x1a6f0e['filter'](_0x2a0eb5=>isDbTableBackedDataset(_0x2a0eb5));}export function buildDbTableBackedRequirementMessage(_0x20a2e6,_0x10d058=a61_0x224d8c(0x180)){const _0x1a9f4c=a61_0x224d8c,_0x15f61f=getDatasetSource(_0x20a2e6)||_0x1a9f4c(0x173),_0x586468=getDatasetName(_0x20a2e6),_0xefbc5b=getDatasetCode(_0x20a2e6),_0x4dd3b4=_0xefbc5b?'\x20('+_0xefbc5b+')':'';return['当前数据集\x20\x22'+_0x586468+'\x22'+_0x4dd3b4+_0x1a9f4c(0x170)+_0x15f61f+_0x1a9f4c(0x188)+_0x10d058+_0x1a9f4c(0x17c),_0x1a9f4c(0x182),_0x1a9f4c(0x176),'如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:'+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x1a9f4c(0x171)]('\x20');}export function assertDatasetIsDbTableBacked(_0x394a42,_0x5c3e6a){const _0x131fa2=a61_0x224d8c;if(!isDbTableBackedDataset(_0x394a42))throw CliErrors[_0x131fa2(0x186)](buildDbTableBackedRequirementMessage(_0x394a42,_0x5c3e6a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a62_0x255f(_0x59d5a1,_0x488ed6){_0x59d5a1=_0x59d5a1-0xe8;const _0x20f251=a62_0x20f2();let _0x255f98=_0x20f251[_0x59d5a1];return _0x255f98;}const a62_0x59019d=a62_0x255f;(function(_0x58139d,_0x4b00ec){const _0x9e6fd1=a62_0x255f,_0x122dda=_0x58139d();while(!![]){try{const _0x10be49=parseInt(_0x9e6fd1(0x12b))/0x1*(parseInt(_0x9e6fd1(0x106))/0x2)+-parseInt(_0x9e6fd1(0x11e))/0x3*(-parseInt(_0x9e6fd1(0xf4))/0x4)+parseInt(_0x9e6fd1(0x11a))/0x5+parseInt(_0x9e6fd1(0x10a))/0x6*(parseInt(_0x9e6fd1(0xeb))/0x7)+parseInt(_0x9e6fd1(0xec))/0x8*(-parseInt(_0x9e6fd1(0x100))/0x9)+parseInt(_0x9e6fd1(0x127))/0xa*(parseInt(_0x9e6fd1(0x124))/0xb)+parseInt(_0x9e6fd1(0x101))/0xc*(-parseInt(_0x9e6fd1(0x11c))/0xd);if(_0x10be49===_0x4b00ec)break;else _0x122dda['push'](_0x122dda['shift']());}catch(_0x275fcc){_0x122dda['push'](_0x122dda['shift']());}}}(a62_0x20f2,0x29646));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_0x59019d(0xee),'description':a62_0x59019d(0xe8)},DBID_FLAG={'name':a62_0x59019d(0x129),'type':a62_0x59019d(0xee),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':a62_0x59019d(0x102),'type':a62_0x59019d(0x10c),'description':a62_0x59019d(0x109)},CASCADE_FLAG={'name':a62_0x59019d(0x116),'type':a62_0x59019d(0x10c),'description':a62_0x59019d(0x11f)},EXPECTED_COUNT_FLAG={'name':a62_0x59019d(0x107),'type':'number','description':a62_0x59019d(0xff)};function a62_0x20f2(){const _0x50a6ac=['message','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','true','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Would\x20safely\x20delete\x20','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','9Exfhnl','36MXYFOv','confirm','deleted','add','dbId','65990ZjWlGN','expected-count','filter','Required\x20to\x20execute\x20dataset\x20deletion','6muTHjj','str','boolean','map','/smartapi/dataset/delete?cascade=','relatedPageInfoList','Deleted\x20','\x20dataset(s);\x20','delete','push','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','length','cascade','appCode','high-risk-write','source','906520BmogaF','dataset','1097785ZUFbku','dbtableConfig','3qyLOBI','Also\x20delete\x20related\x20pages\x20and\x20menus;\x20requires\x20explicit\x20--confirm','POST','validation','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','code','61809DohOlt','bool','Would\x20delete\x20','170HqRTGL','No\x20undeleted\x20dataset\x20found\x20for\x20','dbid','\x20dataset(s)\x20and\x20their\x20listed\x20related\x20pages/menus.\x20Restore\x20each\x20Dataset\x20first,\x20then\x20restore\x20pages\x20explicitly\x20when\x20needed.','1bhFuPC','Dataset\x20id','description','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','204197dgTpdv','1140000lOjIZK','name','number','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','Matched\x20','\x20dataset(s)\x20without\x20cascading\x20to\x20pages.\x20The\x20server\x20blocks\x20a\x20Dataset\x20that\x20still\x20has\x20related\x20pages.','type','relatedPages','905536uwsgjy','object','\x20dataset(s)','isInteger','\x20--appcode\x20','num'];a62_0x20f2=function(){return _0x50a6ac;};return a62_0x20f2();}export const datasetDelete={'service':a62_0x59019d(0x11b),'command':a62_0x59019d(0x112),'description':a62_0x59019d(0x122),'risk':a62_0x59019d(0x118),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CASCADE_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1a67d8){const _0x37e704=a62_0x59019d,_0x45895a=_0x1a67d8[_0x37e704(0xf9)]('id'),_0x3c8ad7=_0x1a67d8[_0x37e704(0x10b)](_0x37e704(0x123)),_0x4ea632=_0x1a67d8['num'](_0x37e704(0x129)),_0x584657=[_0x45895a>0x0,Boolean(_0x3c8ad7),_0x4ea632>0x0]['filter'](Boolean);if(_0x584657[_0x37e704(0x115)]===0x0)throw CliErrors[_0x37e704(0x121)](_0x37e704(0xea));if(_0x584657[_0x37e704(0x115)]>0x1)throw CliErrors[_0x37e704(0x121)](_0x37e704(0xfb));},async 'dryRun'(_0x2f9a2a){const _0x5384ce=a62_0x59019d,_0x441a32=await resolveTargets(_0x2f9a2a),_0x56b579=_0x2f9a2a['bool'](_0x5384ce(0x116));return{'method':_0x5384ce(0x120),'url':_0x5384ce(0x10e)+(_0x56b579?_0x5384ce(0xfc):'false'),'body':{'count':_0x441a32[_0x5384ce(0x115)],'cascade':_0x56b579,'datasets':_0x441a32},'description':_0x56b579?_0x5384ce(0x126)+_0x441a32[_0x5384ce(0x115)]+_0x5384ce(0x12a):_0x5384ce(0xfe)+_0x441a32['length']+_0x5384ce(0xf1)};},async 'execute'(_0x10ed02){const _0x2d926d=a62_0x59019d;if(!_0x10ed02['bool'](_0x2d926d(0x102)))throw CliErrors[_0x2d926d(0x121)](_0x2d926d(0x114),_0x2d926d(0xef));const _0x2a1b31=await resolveTargets(_0x10ed02),_0x56ec77=_0x10ed02[_0x2d926d(0x125)](_0x2d926d(0x116)),_0x4afc2b=[],_0xc7f4f1=[];for(const _0x3bde68 of _0x2a1b31){try{await deleteDataset(_0x3bde68['id'],_0x56ec77),_0x4afc2b[_0x2d926d(0x113)](_0x3bde68);}catch(_0x58be42){_0xc7f4f1[_0x2d926d(0x113)]({..._0x3bde68,'error':_0x58be42 instanceof Error?_0x58be42[_0x2d926d(0xfa)]:String(_0x58be42)});}}if(_0xc7f4f1[_0x2d926d(0x115)]>0x0){const _0x215e51=buildPageRestoreCommands(_0x10ed02[_0x2d926d(0x117)],_0x56ec77?_0x4afc2b:[]);return{'ok':![],'data':{'requested':_0x2a1b31[_0x2d926d(0x115)],'cascade':_0x56ec77,'deletedCount':_0x4afc2b[_0x2d926d(0x115)],'failedCount':_0xc7f4f1[_0x2d926d(0x115)],'deleted':_0x4afc2b,'failed':_0xc7f4f1,'pageRestoreCommands':_0x215e51},'message':'Deleted\x20'+_0x4afc2b[_0x2d926d(0x115)]+'/'+_0x2a1b31[_0x2d926d(0x115)]+_0x2d926d(0x111)+_0xc7f4f1[_0x2d926d(0x115)]+'\x20failed'};}return{'ok':!![],'data':{'requested':_0x2a1b31[_0x2d926d(0x115)],'cascade':_0x56ec77,'deletedCount':_0x4afc2b['length'],'deleted':_0x4afc2b,'pageRestoreCommands':buildPageRestoreCommands(_0x10ed02[_0x2d926d(0x117)],_0x56ec77?_0x4afc2b:[])},'message':_0x2d926d(0x110)+_0x4afc2b[_0x2d926d(0x115)]+_0x2d926d(0xf6)};}};async function resolveTargets(_0x47059b){const _0x421cec=a62_0x59019d,_0xf6b8e2=_0x47059b[_0x421cec(0xf9)]('id'),_0x17697f=_0x47059b[_0x421cec(0x10b)]('code'),_0x343916=_0x47059b[_0x421cec(0xf9)](_0x421cec(0x129));let _0x564df6;_0x17697f?(_0x564df6=await listDatasets(_0x47059b[_0x421cec(0x117)],{'code':_0x17697f}),_0x564df6=_0x564df6[_0x421cec(0x108)](_0x3d7a4d=>_0x3d7a4d[_0x421cec(0x123)]===_0x17697f)):(_0x564df6=await listDatasets(_0x47059b[_0x421cec(0x117)]),_0xf6b8e2>0x0&&(_0x564df6=_0x564df6[_0x421cec(0x108)](_0xbe22a8=>_0xbe22a8['id']===_0xf6b8e2)),_0x343916>0x0&&(_0x564df6=_0x564df6['filter'](_0x53089d=>_0x53089d[_0x421cec(0x11d)]?.[_0x421cec(0x105)]===_0x343916)));const _0x2b4876=[];for(const _0xcc4513 of _0x564df6){const _0x25e7fc=await getDatasetDetail(_0xcc4513[_0x421cec(0x123)]),_0x58b3b9=Array['isArray'](_0x25e7fc[_0x421cec(0x10f)])?_0x25e7fc[_0x421cec(0x10f)][_0x421cec(0x108)](_0x20c68e=>_0x20c68e!=null&&typeof _0x20c68e===_0x421cec(0xf5)&&_0x20c68e[_0x421cec(0x103)]!==!![]):[];_0x2b4876[_0x421cec(0x113)](normalizeTarget(_0xcc4513,_0x58b3b9));}if(_0x2b4876[_0x421cec(0x115)]===0x0){const _0x2373dd=_0x17697f||(_0xf6b8e2>0x0?'id='+_0xf6b8e2:'dbid='+_0x343916);throw CliErrors[_0x421cec(0x121)](_0x421cec(0x128)+_0x2373dd+'.');}const _0x6d7b25=_0x47059b[_0x421cec(0xf9)](_0x421cec(0x107));if(_0x6d7b25>0x0&&_0x2b4876['length']!==_0x6d7b25)throw CliErrors[_0x421cec(0x121)](_0x421cec(0xf0)+_0x2b4876[_0x421cec(0x115)]+_0x421cec(0xfd)+_0x6d7b25+'.');return _0x2b4876;}function normalizeTarget(_0xa1382b,_0x4a52bf){const _0x392fe6=a62_0x59019d,_0x515583=_0xa1382b['dbtableConfig']??{},_0xe903be=_0x4a52bf[_0x392fe6(0x10d)](_0xb4e021=>{const _0x3282a1=_0x392fe6;if(_0xb4e021==null||typeof _0xb4e021!==_0x3282a1(0xf5))return null;const _0x2dc488=_0xb4e021,_0x12870c=Number(_0x2dc488['id']);if(!Number[_0x3282a1(0xf7)](_0x12870c)||_0x12870c<=0x0)return null;const _0xec8da2=_0x2dc488['title']??_0x2dc488[_0x3282a1(0xed)];return{'id':_0x12870c,..._0xec8da2?{'name':String(_0xec8da2)}:{},..._0x2dc488[_0x3282a1(0xf2)]?{'type':String(_0x2dc488['type'])}:{}};})['filter'](_0x5c5a92=>_0x5c5a92!==null);return{'id':_0xa1382b['id'],'code':_0xa1382b['code'],'name':_0xa1382b['name'],'description':_0xa1382b[_0x392fe6(0xe9)],'source':_0xa1382b[_0x392fe6(0x119)],'dbId':_0x515583[_0x392fe6(0x105)],'dbName':_0x515583['dbName'],'tableName':_0x515583['tableName'],'relatedPageCount':_0xe903be[_0x392fe6(0x115)],'relatedPages':_0xe903be};}function buildPageRestoreCommands(_0x945236,_0x34a5ff){const _0x39661b=a62_0x59019d,_0x2ca4fa=new Set();for(const _0x23ebef of _0x34a5ff){for(const _0x28be53 of _0x23ebef[_0x39661b(0xf3)])_0x2ca4fa[_0x39661b(0x104)](_0x28be53['id']);}return[..._0x2ca4fa][_0x39661b(0x10d)](_0x15eb09=>'rabetbase\x20page\x20restore\x20--id\x20'+_0x15eb09+_0x39661b(0xf8)+_0x945236);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x5aec8b=a63_0x2506;function a63_0x1a46(){const _0x5e00c1=['responseBody','parse','dataType','push','278wKTiuu','filter','dbType','tableComment','modelCode','afterScriptId','object','allFieldNames','dataset','length','name','36553ZedHgW','4iDzFAY','dbId','displayName','indexes','type','6049505kOlAlX','alias','9dmLtCh','29080kcoVtQ','extend','doVersion','dbtableConfig','operations','1724106ZsdNsu','entries','cardinality','relations','3452UIYuYW','modifierIdField','3778090elxWyk','tableName','properties','doType','requestBody','fields','dbName','dblinkInfoDTO','2537670XTcECJ','1880YjqeoG','isArray','logicField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','formatRules','relatedPageInfoList','description','string','split','modifierNameField','toFieldLabel','creatorNameField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','main_sub','columnCodeListWithDeleted','code','requestFields','title','toTableName','bizRelationType','validateRules','options','str','responseFields','updateTimeField','map','relationId','datasetKey','beforeScriptId','labelField','allFields','host','read','pkField','fromField','toDatasetName','required','deleted','path'];a63_0x1a46=function(){return _0x5e00c1;};return a63_0x1a46();}(function(_0x4ead28,_0x4cefb2){const _0x485ca1=a63_0x2506,_0x1818ca=_0x4ead28();while(!![]){try{const _0x4361f4=parseInt(_0x485ca1(0x1c2))/0x1*(-parseInt(_0x485ca1(0x1df))/0x2)+parseInt(_0x485ca1(0x1db))/0x3+parseInt(_0x485ca1(0x1ce))/0x4*(parseInt(_0x485ca1(0x1e1))/0x5)+-parseInt(_0x485ca1(0x196))/0x6+parseInt(_0x485ca1(0x1d3))/0x7+parseInt(_0x485ca1(0x1d6))/0x8*(parseInt(_0x485ca1(0x1d5))/0x9)+-parseInt(_0x485ca1(0x197))/0xa*(parseInt(_0x485ca1(0x1cd))/0xb);if(_0x4361f4===_0x4cefb2)break;else _0x1818ca['push'](_0x1818ca['shift']());}catch(_0x4ba726){_0x1818ca['push'](_0x1818ca['shift']());}}}(a63_0x1a46,0xa3bd1));function a63_0x2506(_0xe4b326,_0xa27a3b){_0xe4b326=_0xe4b326-0x192;const _0x1a46f1=a63_0x1a46();let _0x2506aa=_0x1a46f1[_0xe4b326];return _0x2506aa;}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x5a73bc){const _0x40bcf6=a63_0x2506;if(_0x5a73bc[_0x40bcf6(0x1bc)])return null;const _0x161e8e=Boolean(_0x5a73bc[_0x40bcf6(0x1d0)]!==undefined||_0x5a73bc[_0x40bcf6(0x1e4)]!==undefined);let _0x48d560={};if(!_0x161e8e&&typeof _0x5a73bc[_0x40bcf6(0x1d7)]===_0x40bcf6(0x19e))try{_0x48d560=JSON['parse'](_0x5a73bc[_0x40bcf6(0x1d7)]);}catch{}const _0x406d81=_0x161e8e?_0x5a73bc[_0x40bcf6(0x1cc)]:_0x5a73bc[_0x40bcf6(0x1a6)],_0x2d7b1f=_0x161e8e?_0x5a73bc['displayName']:_0x5a73bc[_0x40bcf6(0x1cc)],_0x505e15=_0x161e8e?_0x5a73bc[_0x40bcf6(0x1e4)]:_0x5a73bc[_0x40bcf6(0x1d2)]||_0x5a73bc[_0x40bcf6(0x1c0)],_0x45a70c=_0x161e8e?_0x5a73bc['pkField']===!![]:_0x48d560[_0x40bcf6(0x1b8)]===!![],_0x3db2c5=_0x161e8e?_0x5a73bc[_0x40bcf6(0x1bb)]===!![]:_0x48d560[_0x40bcf6(0x1bb)]===!![],_0x1c0174=_0x161e8e?_0x5a73bc['options']??null:_0x48d560['options']??null,_0x2dfeb3={'name':_0x406d81,'displayName':_0x2d7b1f||_0x406d81,'type':_0x505e15,'dbType':_0x5a73bc[_0x40bcf6(0x1c4)],'pk':_0x45a70c,'required':_0x3db2c5,'deprecated':_0x5a73bc['deprecated']===!![],'description':_0x5a73bc[_0x40bcf6(0x19d)]||undefined};return Array[_0x40bcf6(0x198)](_0x1c0174)&&_0x1c0174['length']>0x0&&(_0x2dfeb3[_0x40bcf6(0x1ac)]=_0x1c0174),_0x2dfeb3;}function parseJsonMaybe(_0x52410a){const _0x376066=a63_0x2506;if(typeof _0x52410a!==_0x376066(0x19e))return _0x52410a;try{return JSON[_0x376066(0x1bf)](_0x52410a);}catch{return _0x52410a;}}function normalizeOperationEntry(_0x399f8b,_0x1dff37){const _0x3586c2=a63_0x2506;if(!_0x1dff37||typeof _0x1dff37!==_0x3586c2(0x1c8))return null;if(!_0x1dff37['method']||!_0x1dff37['path'])return null;const _0x3927c2={'name':_0x399f8b,'method':_0x1dff37['method'],'path':_0x1dff37[_0x3586c2(0x1bd)]};if(_0x1dff37[_0x3586c2(0x1b6)])_0x3927c2[_0x3586c2(0x1b6)]=_0x1dff37[_0x3586c2(0x1b6)];if(_0x1dff37[_0x3586c2(0x192)]!=null){const _0x2a8af7=parseJsonMaybe(_0x1dff37['requestBody']);_0x3927c2[_0x3586c2(0x192)]=_0x2a8af7;}if(_0x1dff37[_0x3586c2(0x1be)]!=null){const _0x32f814=parseJsonMaybe(_0x1dff37[_0x3586c2(0x1be)]);_0x3927c2['responseBody']=_0x32f814;}if(_0x1dff37[_0x3586c2(0x1b3)]!=null)_0x3927c2[_0x3586c2(0x1b3)]=_0x1dff37[_0x3586c2(0x1b3)];if(_0x1dff37['afterScriptId']!=null)_0x3927c2[_0x3586c2(0x1c7)]=_0x1dff37[_0x3586c2(0x1c7)];if(Array[_0x3586c2(0x198)](_0x1dff37[_0x3586c2(0x1a7)]))_0x3927c2[_0x3586c2(0x1a7)]=_0x1dff37[_0x3586c2(0x1a7)];if(Array[_0x3586c2(0x198)](_0x1dff37[_0x3586c2(0x1ae)]))_0x3927c2['responseFields']=_0x1dff37[_0x3586c2(0x1ae)];return _0x3927c2;}function summarizeDbtable(_0x437c7f){const _0x2fdc0b=a63_0x2506,_0x36aa96={},_0x12a4c4=['dbId',_0x2fdc0b(0x194),_0x2fdc0b(0x1e2),_0x2fdc0b(0x1b2),_0x2fdc0b(0x1b8),_0x2fdc0b(0x1b5),_0x2fdc0b(0x199),'createTimeField',_0x2fdc0b(0x1af),'creatorIdField',_0x2fdc0b(0x1a2),_0x2fdc0b(0x1e0),_0x2fdc0b(0x1a0),_0x2fdc0b(0x1b4),_0x2fdc0b(0x195)];for(const _0x3fef42 of _0x12a4c4){if(_0x437c7f[_0x3fef42]!==undefined)_0x36aa96[_0x3fef42]=_0x437c7f[_0x3fef42];}return typeof _0x36aa96['allFields']==='string'&&_0x36aa96[_0x2fdc0b(0x1b5)][_0x2fdc0b(0x1cb)]>0x0&&(_0x36aa96[_0x2fdc0b(0x1c9)]=_0x36aa96['allFields'][_0x2fdc0b(0x19f)](',')[_0x2fdc0b(0x1b0)](_0x59a25f=>_0x59a25f['trim']())[_0x2fdc0b(0x1c3)](Boolean)),_0x36aa96;}function normalizeRelatedPages(_0xef8f2c){const _0x544308=a63_0x2506;if(!Array[_0x544308(0x198)](_0xef8f2c))return[];return _0xef8f2c[_0x544308(0x1c3)](_0x15d040=>_0x15d040&&typeof _0x15d040===_0x544308(0x1c8))[_0x544308(0x1b0)](_0x53d83e=>({'id':_0x53d83e['id'],'type':_0x53d83e[_0x544308(0x1d2)],'code':_0x53d83e[_0x544308(0x1a6)],'title':_0x53d83e[_0x544308(0x1a8)],'deleted':_0x53d83e[_0x544308(0x1bc)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a63_0x5aec8b(0x19a),'risk':a63_0x5aec8b(0x1b7),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x5aec8b(0x1d4),'type':a63_0x5aec8b(0x19e),'description':a63_0x5aec8b(0x1a3)}],async 'execute'(_0x274d86){const _0x1c272c=a63_0x5aec8b,_0x44f251=await getDatasetDetail(_0x274d86[_0x1c272c(0x1ad)]('code')),_0x3d4895=Array[_0x1c272c(0x198)](_0x44f251[_0x1c272c(0x193)])?_0x44f251[_0x1c272c(0x193)]:Array['isArray'](_0x44f251['properties'])?_0x44f251[_0x1c272c(0x1e3)]:[],_0x7f8681=_0x3d4895[_0x1c272c(0x1b0)](_0x5422c7=>normalizeField(_0x5422c7))[_0x1c272c(0x1c3)](_0x21b61d=>_0x21b61d!==null),_0x50109e=_0x44f251[_0x1c272c(0x1da)]??{},_0x3c512d=[];for(const [_0x4c2a68,_0xf473d5]of Object[_0x1c272c(0x1dc)](_0x50109e)){const _0x15ee2b=normalizeOperationEntry(_0x4c2a68,_0xf473d5);if(_0x15ee2b)_0x3c512d[_0x1c272c(0x1c1)](_0x15ee2b);}const _0x5153b8=_0x44f251[_0x1c272c(0x1d9)]??{},_0x17561b=_0x44f251[_0x1c272c(0x1ca)]??{},_0x5b016a=_0x5153b8[_0x1c272c(0x1cf)]!=null?{'id':_0x5153b8['dbId'],'name':_0x5153b8[_0x1c272c(0x194)]??null}:undefined;let _0x4a2626;return typeof _0x44f251[_0x1c272c(0x1d7)]===_0x1c272c(0x19e)&&(_0x4a2626=parseJsonMaybe(_0x44f251['extend'])),{'ok':!![],'data':{'id':_0x44f251['modelId']??_0x44f251['id'],'name':_0x44f251[_0x1c272c(0x1cc)],'code':_0x44f251[_0x1c272c(0x1c6)]||_0x44f251[_0x1c272c(0x1a6)],'doVersion':_0x44f251[_0x1c272c(0x1d8)],'description':_0x44f251[_0x1c272c(0x19d)]||_0x17561b[_0x1c272c(0x1c5)]||undefined,'source':_0x44f251['source']||_0x17561b['sourceType'],'table':_0x5153b8[_0x1c272c(0x1e2)]||_0x17561b[_0x1c272c(0x1e2)],'datasetKey':_0x5153b8[_0x1c272c(0x1b2)],'pk':_0x5153b8['pkField'],'db':_0x5b016a,'dbtable':summarizeDbtable(_0x5153b8),'fields':_0x7f8681,'operations':_0x3c512d,'indexes':Array[_0x1c272c(0x198)](_0x17561b['indexes'])?_0x17561b[_0x1c272c(0x1d1)]:[],'relations':Array[_0x1c272c(0x198)](_0x44f251[_0x1c272c(0x1de)])?_0x44f251[_0x1c272c(0x1de)][_0x1c272c(0x1b0)](_0x2673b8=>({..._0x2673b8['relationId']!=null?{'relationId':_0x2673b8[_0x1c272c(0x1b1)]}:{},'fromDataset':_0x44f251[_0x1c272c(0x1cc)],'fromCode':_0x44f251[_0x1c272c(0x1c6)]||_0x44f251[_0x1c272c(0x1a6)],'fromTable':_0x5153b8[_0x1c272c(0x1e2)]||_0x17561b[_0x1c272c(0x1e2)],'fromField':_0x2673b8[_0x1c272c(0x1b9)],'toDataset':_0x2673b8[_0x1c272c(0x1ba)],'toCode':_0x2673b8['toDatasetCode'],'toTable':_0x2673b8[_0x1c272c(0x1a9)],'toField':_0x2673b8['toField'],'labelField':_0x2673b8[_0x1c272c(0x1a1)]||undefined,'cardinality':_0x2673b8[_0x1c272c(0x1dd)]||undefined,'bizRelationType':_0x2673b8[_0x1c272c(0x1aa)]===_0x1c272c(0x1a4)?_0x1c272c(0x1a4):null})):[],'relatedPages':normalizeRelatedPages(_0x44f251[_0x1c272c(0x19c)]),...Array[_0x1c272c(0x198)](_0x44f251[_0x1c272c(0x1a5)])?{'columnCodeListWithDeleted':_0x44f251[_0x1c272c(0x1a5)]}:{},'formatRules':Array[_0x1c272c(0x198)](_0x44f251[_0x1c272c(0x19b)])?_0x44f251[_0x1c272c(0x19b)]:[],'validateRules':Array[_0x1c272c(0x198)](_0x44f251[_0x1c272c(0x1ab)])?_0x44f251[_0x1c272c(0x1ab)]:[],..._0x4a2626!==undefined?{'extend':_0x4a2626}:{},'stats':{'fieldCount':_0x7f8681['length'],'operationCount':_0x3c512d[_0x1c272c(0x1cb)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a64_0xa93775=a64_0x503a;(function(_0x224f6e,_0x35fed6){const _0x1fa319=a64_0x503a,_0x4a2537=_0x224f6e();while(!![]){try{const _0xe0c171=-parseInt(_0x1fa319(0x201))/0x1*(parseInt(_0x1fa319(0x1ee))/0x2)+parseInt(_0x1fa319(0x203))/0x3*(parseInt(_0x1fa319(0x1f7))/0x4)+parseInt(_0x1fa319(0x1da))/0x5*(parseInt(_0x1fa319(0x1fe))/0x6)+parseInt(_0x1fa319(0x1de))/0x7*(-parseInt(_0x1fa319(0x1d9))/0x8)+-parseInt(_0x1fa319(0x1ce))/0x9*(-parseInt(_0x1fa319(0x1ff))/0xa)+parseInt(_0x1fa319(0x1d6))/0xb*(-parseInt(_0x1fa319(0x1d3))/0xc)+-parseInt(_0x1fa319(0x1df))/0xd;if(_0xe0c171===_0x35fed6)break;else _0x4a2537['push'](_0x4a2537['shift']());}catch(_0x5baa78){_0x4a2537['push'](_0x4a2537['shift']());}}}(a64_0x34ce,0x83a75));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_0xa93775(0x1f0),{'message':a64_0xa93775(0x1f2),'hint':a64_0xa93775(0x200)}]]);export function parseJsonObjectFlag(_0x195d5d,_0x5badf3){const _0x264dde=a64_0xa93775;if(!_0x195d5d)return undefined;let _0x266ad5;try{_0x266ad5=JSON[_0x264dde(0x1e6)](_0x195d5d);}catch(_0x34f7f1){const _0x1a13bb=_0x34f7f1 instanceof Error?_0x34f7f1[_0x264dde(0x1f1)]:String(_0x34f7f1);throw CliErrors[_0x264dde(0x1f6)](_0x5badf3+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x1a13bb);}if(!isPlainObject(_0x266ad5)||Array[_0x264dde(0x1cd)](_0x266ad5))throw CliErrors[_0x264dde(0x1f6)](_0x5badf3+_0x264dde(0x1ec));return _0x266ad5;}export function validateExtendPatchKeys(_0x238821){const _0x2cb809=a64_0xa93775,_0x223907=Object[_0x2cb809(0x1e3)](_0x238821);if(_0x223907[_0x2cb809(0x1dc)]===0x0)throw CliErrors[_0x2cb809(0x1f6)](_0x2cb809(0x1d7));for(const _0x20dd68 of _0x223907){const _0x58afa0=EXTEND_PATCH_REDIRECTS[_0x2cb809(0x1f5)](_0x20dd68);if(_0x58afa0)throw CliErrors[_0x2cb809(0x1f6)](_0x58afa0['message'],_0x58afa0['hint']);if(!MUTABLE_EXTEND_KEYS[_0x2cb809(0x1fa)](_0x20dd68))throw CliErrors[_0x2cb809(0x1f6)]('Unsupported\x20patch\x20key:\x20'+_0x20dd68,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x42246f=a64_0xa93775,_0x48ddff=Array[_0x42246f(0x1e0)](MUTABLE_EXTEND_KEYS)[_0x42246f(0x204)]();return _0x48ddff[_0x42246f(0x1dc)]>0x0?_0x42246f(0x1c8)+_0x48ddff[_0x42246f(0x1ef)](',\x20'):_0x42246f(0x1ea);}export function applyExtendPatch(_0x47ec76,_0x5d9dce){const _0x425948=a64_0xa93775;validateExtendPatchKeys(_0x5d9dce);const _0x3caf53=deepClone(_0x47ec76),_0x498324=[];for(const [_0x41d16f,_0x3ea180]of Object[_0x425948(0x1e9)](_0x5d9dce)){const _0x551ca3=_0x3caf53[_0x41d16f],_0x49e5ad=deepClone(_0x3ea180);!deepEqual(_0x551ca3,_0x49e5ad)&&(_0x3caf53[_0x41d16f]=_0x49e5ad,_0x498324['push'](_0x425948(0x1cb)+_0x41d16f));}return _0x498324[_0x425948(0x204)](),{'after':_0x3caf53,'changedPaths':_0x498324,'changed':_0x498324[_0x425948(0x1dc)]>0x0};}export function assertExpectation(_0x49e8e2,_0x36e462){const _0x4cdb0f=a64_0xa93775;if(!_0x36e462)return;for(const [_0x59c0ea,_0x5c22d3]of Object[_0x4cdb0f(0x1e9)](_0x36e462)){const _0x362f91=_0x49e8e2[_0x59c0ea];if(!deepEqual(_0x362f91,_0x5c22d3))throw CliErrors[_0x4cdb0f(0x1f6)](_0x4cdb0f(0x1c9)+_0x59c0ea,_0x4cdb0f(0x205)+JSON[_0x4cdb0f(0x1f8)](_0x5c22d3)+',\x20actual\x20'+JSON['stringify'](_0x362f91));}}export async function buildDatasetExtendUpdateResult({appCode:_0x42bcb8,input:_0x69876a,dryRun:_0xaedfde}){const _0x13c919=a64_0xa93775;validateInput(_0x69876a);const _0x407dd8=await getDatasetDetail(_0x69876a['code']),_0x5953e1=parseDatasetExtend(_0x407dd8[_0x13c919(0x1e8)]),_0x5a3059=deepClone(_0x5953e1['value']);assertExpectation(_0x5a3059,_0x69876a[_0x13c919(0x209)]);const {after:_0x2970f1,changedPaths:_0x496b2c,changed:_0x5b42cb}=applyExtendPatch(_0x5a3059,_0x69876a[_0x13c919(0x1e5)]),_0x59614f=summarizeDataset(_0x407dd8,_0x69876a['code']);return _0x5b42cb&&!_0xaedfde&&(_0x407dd8[_0x13c919(0x1e8)]=serializeDatasetExtend(_0x2970f1,_0x5953e1[_0x13c919(0x1d8)]),await updateDrivenData(_0x407dd8)),{'ok':!![],'data':{'appCode':_0x42bcb8,'selector':{'code':_0x69876a[_0x13c919(0x1d4)]},'dataset':_0x59614f,'dryRun':_0xaedfde,'changed':_0x5b42cb,'changedPaths':_0x496b2c,'before':{'extend':_0x5a3059},'after':{'extend':_0x2970f1},'submitted':_0x5b42cb&&!_0xaedfde},'message':_0x5b42cb?_0xaedfde?_0x13c919(0x1f3)+_0x496b2c[_0x13c919(0x1ef)](',\x20')+')':'Updated\x20dataset\x20extend\x20('+_0x496b2c[_0x13c919(0x1ef)](',\x20')+')':_0x13c919(0x1e2)};}export const datasetExtendUpdate={'service':a64_0xa93775(0x1cc),'command':a64_0xa93775(0x1f4),'description':a64_0xa93775(0x1eb),'risk':'write','flags':[CODE_FLAG,{'name':'patch-json','type':a64_0xa93775(0x202),'required':!![],'description':a64_0xa93775(0x1ed)},{'name':a64_0xa93775(0x1e1),'type':a64_0xa93775(0x202),'required':![],'description':a64_0xa93775(0x1e7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1b0864){validateInput(readExtendUpdateInput(_0x1b0864));},async 'dryRun'(_0x4800ed){const _0x96a582=a64_0xa93775,_0x291b04=await buildDatasetExtendUpdateResult({'appCode':_0x4800ed[_0x96a582(0x1f9)],'input':readExtendUpdateInput(_0x4800ed),'dryRun':!![]});return{'method':'POST','url':_0x96a582(0x208),'body':_0x291b04[_0x96a582(0x1d1)],'description':_0x291b04[_0x96a582(0x1f1)]};},async 'execute'(_0x60614a){const _0x33d424=a64_0xa93775;return buildDatasetExtendUpdateResult({'appCode':_0x60614a[_0x33d424(0x1f9)],'input':readExtendUpdateInput(_0x60614a),'dryRun':![]});}};function readExtendUpdateInput(_0x209693){const _0x31c0cf=a64_0xa93775,_0x3295ec=trim(_0x209693[_0x31c0cf(0x1dd)](_0x31c0cf(0x1d4))),_0x4b5815=parseJsonObjectFlag(_0x209693[_0x31c0cf(0x1dd)]('patch-json'),'--patch-json'),_0x2fa765=parseJsonObjectFlag(_0x209693[_0x31c0cf(0x1dd)](_0x31c0cf(0x1e1)),_0x31c0cf(0x1cf));return{'code':_0x3295ec,'patch':_0x4b5815||{},'expect':_0x2fa765};}function validateInput(_0x102373){const _0x189d72=a64_0xa93775;if(!_0x102373[_0x189d72(0x1d4)])throw CliErrors[_0x189d72(0x1f6)]('--code\x20is\x20required');validateExtendPatchKeys(_0x102373[_0x189d72(0x1e5)]);}function parseDatasetExtend(_0x134efc){const _0x1d6430=a64_0xa93775;if(typeof _0x134efc===_0x1d6430(0x202)){const _0xa0b6=_0x134efc['trim']();if(!_0xa0b6)return{'value':{},'shape':_0x1d6430(0x202)};let _0x809188;try{_0x809188=JSON[_0x1d6430(0x1e6)](_0xa0b6);}catch(_0x5c4ee1){const _0x4c2906=_0x5c4ee1 instanceof Error?_0x5c4ee1[_0x1d6430(0x1f1)]:String(_0x5c4ee1);throw CliErrors[_0x1d6430(0x1f6)](_0x1d6430(0x1ca)+_0x4c2906);}if(!isPlainObject(_0x809188)||Array[_0x1d6430(0x1cd)](_0x809188))throw CliErrors['validation'](_0x1d6430(0x1fd));return{'value':_0x809188,'shape':_0x1d6430(0x202)};}if(_0x134efc===undefined||_0x134efc===null)return{'value':{},'shape':_0x1d6430(0x202)};if(!isPlainObject(_0x134efc)||Array['isArray'](_0x134efc))throw CliErrors[_0x1d6430(0x1f6)](_0x1d6430(0x1fd));return{'value':_0x134efc,'shape':'object'};}function serializeDatasetExtend(_0x38b6e3,_0x168295){const _0x374dba=a64_0xa93775;return _0x168295===_0x374dba(0x202)?JSON[_0x374dba(0x1f8)](_0x38b6e3):_0x38b6e3;}function summarizeDataset(_0x427f33,_0x488bc2){const _0x1300fe=a64_0xa93775,_0x54fe23=isPlainObject(_0x427f33['dataset'])?_0x427f33[_0x1300fe(0x1cc)]:{},_0xf5c5c8=isPlainObject(_0x427f33['dbtableConfig'])?_0x427f33[_0x1300fe(0x1d2)]:{};return{'id':_0x427f33['modelId']??_0x427f33['id']??_0x54fe23['datasetId']??null,'code':_0x427f33[_0x1300fe(0x1e4)]??_0x427f33['code']??_0x54fe23[_0x1300fe(0x1db)]??_0x488bc2,'name':_0x427f33[_0x1300fe(0x206)]??_0x54fe23[_0x1300fe(0x1fb)]??null,'table':_0xf5c5c8[_0x1300fe(0x207)]??_0x54fe23[_0x1300fe(0x207)]??null,'db':_0xf5c5c8[_0x1300fe(0x1fc)]??_0xf5c5c8['dbId']??null};}function a64_0x503a(_0x4a639e,_0x89d161){_0x4a639e=_0x4a639e-0x1c8;const _0x34ceea=a64_0x34ce();let _0x503ad8=_0x34ceea[_0x4a639e];return _0x503ad8;}function deepClone(_0x275700){const _0x11694a=a64_0xa93775;if(_0x275700===undefined)return _0x275700;return JSON[_0x11694a(0x1e6)](JSON['stringify'](_0x275700));}function a64_0x34ce(){const _0x2ca679=['object','data','dbtableConfig','444jfRSxj','code','trim','113817iJsrPj','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','shape','32nqOWFY','4832135VTPrsT','datasetCode','length','str','97293upgAHH','13237146RPteWv','from','expect-json','No\x20changes\x20for\x20dataset\x20extend','keys','modelCode','patch','parse','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','extend','entries','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','Patch\x20dataset\x20top-level\x20extend\x20safely','\x20must\x20be\x20a\x20JSON\x20object','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','2wcnirb','join','businessGroup','message','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','extend-update','get','validation','2508536CtSryz','stringify','appCode','has','datasetName','dbName','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','6SMaeab','20GwZsuk','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','246133edwjXw','string','3EpJuTz','sort','Expected\x20','name','tableName','/smartapi/dataset/update-driven-data','expect','Allowed\x20keys:\x20','Expectation\x20mismatch\x20at\x20extend.','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','extend.','dataset','isArray','2918259xpigMG','--expect-json'];a64_0x34ce=function(){return _0x2ca679;};return a64_0x34ce();}function deepEqual(_0x15dec8,_0x16724f){const _0x4396c0=a64_0xa93775;return JSON['stringify'](_0x15dec8)===JSON[_0x4396c0(0x1f8)](_0x16724f);}function isPlainObject(_0x2ae0d1){const _0x38f6d6=a64_0xa93775;return Boolean(_0x2ae0d1)&&typeof _0x2ae0d1===_0x38f6d6(0x1d0)&&!Array[_0x38f6d6(0x1cd)](_0x2ae0d1);}function trim(_0x4592a3){const _0x2c6f0f=a64_0xa93775,_0x5486ac=String(_0x4592a3||'')[_0x2c6f0f(0x1d5)]();return _0x5486ac;}
|
|
1
|
+
const a64_0xe25ff5=a64_0x272e;(function(_0x15cec6,_0x3f7a2d){const _0x1cec77=a64_0x272e,_0x4d84a3=_0x15cec6();while(!![]){try{const _0x130388=-parseInt(_0x1cec77(0x1d9))/0x1*(-parseInt(_0x1cec77(0x1d8))/0x2)+-parseInt(_0x1cec77(0x1f0))/0x3+parseInt(_0x1cec77(0x1ef))/0x4*(parseInt(_0x1cec77(0x1e2))/0x5)+-parseInt(_0x1cec77(0x1c5))/0x6+-parseInt(_0x1cec77(0x1e0))/0x7+parseInt(_0x1cec77(0x1c3))/0x8*(parseInt(_0x1cec77(0x1e9))/0x9)+parseInt(_0x1cec77(0x1fd))/0xa;if(_0x130388===_0x3f7a2d)break;else _0x4d84a3['push'](_0x4d84a3['shift']());}catch(_0x2c0766){_0x4d84a3['push'](_0x4d84a3['shift']());}}}(a64_0x59d5,0xdbf09));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_0xe25ff5(0x1bc),{'message':a64_0xe25ff5(0x1f6),'hint':a64_0xe25ff5(0x1e1)}]]);export function parseJsonObjectFlag(_0x36bc7c,_0x459b99){const _0x4c623f=a64_0xe25ff5;if(!_0x36bc7c)return undefined;let _0xab5393;try{_0xab5393=JSON[_0x4c623f(0x1ea)](_0x36bc7c);}catch(_0x135987){const _0x551f3c=_0x135987 instanceof Error?_0x135987['message']:String(_0x135987);throw CliErrors[_0x4c623f(0x1fe)](_0x459b99+_0x4c623f(0x1f7)+_0x551f3c);}if(!isPlainObject(_0xab5393)||Array[_0x4c623f(0x1ca)](_0xab5393))throw CliErrors['validation'](_0x459b99+_0x4c623f(0x1be));return _0xab5393;}export function validateExtendPatchKeys(_0x2bc6f2){const _0x1be886=a64_0xe25ff5,_0x44969f=Object[_0x1be886(0x1c0)](_0x2bc6f2);if(_0x44969f['length']===0x0)throw CliErrors[_0x1be886(0x1fe)](_0x1be886(0x1ff));for(const _0x595cdd of _0x44969f){const _0x517921=EXTEND_PATCH_REDIRECTS['get'](_0x595cdd);if(_0x517921)throw CliErrors['validation'](_0x517921['message'],_0x517921['hint']);if(!MUTABLE_EXTEND_KEYS['has'](_0x595cdd))throw CliErrors[_0x1be886(0x1fe)](_0x1be886(0x1d2)+_0x595cdd,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x50cccc=a64_0xe25ff5,_0x36d1e4=Array['from'](MUTABLE_EXTEND_KEYS)[_0x50cccc(0x1d1)]();return _0x36d1e4['length']>0x0?_0x50cccc(0x1f5)+_0x36d1e4[_0x50cccc(0x1cb)](',\x20'):_0x50cccc(0x1e5);}export function applyExtendPatch(_0x3a4d52,_0x11e5b8){const _0x5e1d72=a64_0xe25ff5;validateExtendPatchKeys(_0x11e5b8);const _0x1d8709=deepClone(_0x3a4d52),_0x38e18c=[];for(const [_0x1d030d,_0x25e33e]of Object[_0x5e1d72(0x1e3)](_0x11e5b8)){const _0x2a5450=_0x1d8709[_0x1d030d],_0x3291c2=deepClone(_0x25e33e);!deepEqual(_0x2a5450,_0x3291c2)&&(_0x1d8709[_0x1d030d]=_0x3291c2,_0x38e18c[_0x5e1d72(0x1ed)](_0x5e1d72(0x1e4)+_0x1d030d));}return _0x38e18c[_0x5e1d72(0x1d1)](),{'after':_0x1d8709,'changedPaths':_0x38e18c,'changed':_0x38e18c[_0x5e1d72(0x1d3)]>0x0};}export function assertExpectation(_0x63fcfe,_0x3ff924){const _0xc05006=a64_0xe25ff5;if(!_0x3ff924)return;for(const [_0x4652ce,_0x5a0cbf]of Object[_0xc05006(0x1e3)](_0x3ff924)){const _0xf8b5cb=_0x63fcfe[_0x4652ce];if(!deepEqual(_0xf8b5cb,_0x5a0cbf))throw CliErrors[_0xc05006(0x1fe)](_0xc05006(0x1bf)+_0x4652ce,_0xc05006(0x1e8)+JSON[_0xc05006(0x1de)](_0x5a0cbf)+_0xc05006(0x1d6)+JSON[_0xc05006(0x1de)](_0xf8b5cb));}}export async function buildDatasetExtendUpdateResult({appCode:_0x1baf27,input:_0x44d588,dryRun:_0x4cca63}){const _0x17edc3=a64_0xe25ff5;validateInput(_0x44d588);const _0x196c61=await getDatasetDetail(_0x44d588['code']),_0x490320=parseDatasetExtend(_0x196c61[_0x17edc3(0x1d7)]),_0x3437f3=deepClone(_0x490320['value']);assertExpectation(_0x3437f3,_0x44d588[_0x17edc3(0x1c1)]);const {after:_0x1a0368,changedPaths:_0x2fd7f3,changed:_0x5c188a}=applyExtendPatch(_0x3437f3,_0x44d588['patch']),_0x1e07ef=summarizeDataset(_0x196c61,_0x44d588[_0x17edc3(0x1fb)]);return _0x5c188a&&!_0x4cca63&&(_0x196c61['extend']=serializeDatasetExtend(_0x1a0368,_0x490320[_0x17edc3(0x1c8)]),await updateDrivenData(_0x196c61)),{'ok':!![],'data':{'appCode':_0x1baf27,'selector':{'code':_0x44d588[_0x17edc3(0x1fb)]},'dataset':_0x1e07ef,'dryRun':_0x4cca63,'changed':_0x5c188a,'changedPaths':_0x2fd7f3,'before':{'extend':_0x3437f3},'after':{'extend':_0x1a0368},'submitted':_0x5c188a&&!_0x4cca63},'message':_0x5c188a?_0x4cca63?_0x17edc3(0x1bd)+_0x2fd7f3['join'](',\x20')+')':'Updated\x20dataset\x20extend\x20('+_0x2fd7f3['join'](',\x20')+')':_0x17edc3(0x1c7)};}export const datasetExtendUpdate={'service':a64_0xe25ff5(0x1da),'command':a64_0xe25ff5(0x1fc),'description':a64_0xe25ff5(0x1d0),'risk':'write','flags':[CODE_FLAG,{'name':a64_0xe25ff5(0x1ec),'type':'string','required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a64_0xe25ff5(0x1f3),'type':a64_0xe25ff5(0x1e6),'required':![],'description':a64_0xe25ff5(0x1eb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf60d03){validateInput(readExtendUpdateInput(_0xf60d03));},async 'dryRun'(_0x2e7dd8){const _0x23c7be=a64_0xe25ff5,_0x53daf3=await buildDatasetExtendUpdateResult({'appCode':_0x2e7dd8[_0x23c7be(0x1ee)],'input':readExtendUpdateInput(_0x2e7dd8),'dryRun':!![]});return{'method':_0x23c7be(0x1f8),'url':_0x23c7be(0x1f9),'body':_0x53daf3[_0x23c7be(0x1dd)],'description':_0x53daf3['message']};},async 'execute'(_0x2ef8ff){return buildDatasetExtendUpdateResult({'appCode':_0x2ef8ff['appCode'],'input':readExtendUpdateInput(_0x2ef8ff),'dryRun':![]});}};function readExtendUpdateInput(_0x8b6190){const _0x27351b=a64_0xe25ff5,_0x2a87d4=trim(_0x8b6190[_0x27351b(0x1f4)](_0x27351b(0x1fb))),_0xf16e33=parseJsonObjectFlag(_0x8b6190[_0x27351b(0x1f4)](_0x27351b(0x1ec)),_0x27351b(0x1c2)),_0x30d317=parseJsonObjectFlag(_0x8b6190['str'](_0x27351b(0x1f3)),_0x27351b(0x1c9));return{'code':_0x2a87d4,'patch':_0xf16e33||{},'expect':_0x30d317};}function validateInput(_0x3d0e22){const _0x220284=a64_0xe25ff5;if(!_0x3d0e22[_0x220284(0x1fb)])throw CliErrors[_0x220284(0x1fe)]('--code\x20is\x20required');validateExtendPatchKeys(_0x3d0e22[_0x220284(0x1f1)]);}function parseDatasetExtend(_0x5ca340){const _0x5e1c05=a64_0xe25ff5;if(typeof _0x5ca340===_0x5e1c05(0x1e6)){const _0x304632=_0x5ca340[_0x5e1c05(0x1d4)]();if(!_0x304632)return{'value':{},'shape':_0x5e1c05(0x1e6)};let _0x11c99f;try{_0x11c99f=JSON[_0x5e1c05(0x1ea)](_0x304632);}catch(_0x139df4){const _0x21b26b=_0x139df4 instanceof Error?_0x139df4[_0x5e1c05(0x1c6)]:String(_0x139df4);throw CliErrors[_0x5e1c05(0x1fe)](_0x5e1c05(0x1c4)+_0x21b26b);}if(!isPlainObject(_0x11c99f)||Array[_0x5e1c05(0x1ca)](_0x11c99f))throw CliErrors['validation'](_0x5e1c05(0x1cf));return{'value':_0x11c99f,'shape':_0x5e1c05(0x1e6)};}if(_0x5ca340===undefined||_0x5ca340===null)return{'value':{},'shape':_0x5e1c05(0x1e6)};if(!isPlainObject(_0x5ca340)||Array[_0x5e1c05(0x1ca)](_0x5ca340))throw CliErrors[_0x5e1c05(0x1fe)](_0x5e1c05(0x1cf));return{'value':_0x5ca340,'shape':_0x5e1c05(0x1cc)};}function serializeDatasetExtend(_0x5c56cc,_0x31a090){const _0x42b727=a64_0xe25ff5;return _0x31a090==='string'?JSON[_0x42b727(0x1de)](_0x5c56cc):_0x5c56cc;}function summarizeDataset(_0x4ebf07,_0x521e62){const _0xc0cc63=a64_0xe25ff5,_0x553279=isPlainObject(_0x4ebf07[_0xc0cc63(0x1da)])?_0x4ebf07['dataset']:{},_0x308f3f=isPlainObject(_0x4ebf07[_0xc0cc63(0x1fa)])?_0x4ebf07['dbtableConfig']:{};return{'id':_0x4ebf07[_0xc0cc63(0x1d5)]??_0x4ebf07['id']??_0x553279[_0xc0cc63(0x1dc)]??null,'code':_0x4ebf07[_0xc0cc63(0x1f2)]??_0x4ebf07['code']??_0x553279[_0xc0cc63(0x1e7)]??_0x521e62,'name':_0x4ebf07[_0xc0cc63(0x1df)]??_0x553279[_0xc0cc63(0x1ce)]??null,'table':_0x308f3f['tableName']??_0x553279['tableName']??null,'db':_0x308f3f[_0xc0cc63(0x1db)]??_0x308f3f[_0xc0cc63(0x1cd)]??null};}function deepClone(_0x5cea31){const _0x1f0dd7=a64_0xe25ff5;if(_0x5cea31===undefined)return _0x5cea31;return JSON[_0x1f0dd7(0x1ea)](JSON[_0x1f0dd7(0x1de)](_0x5cea31));}function deepEqual(_0x3e61d3,_0x397b56){const _0x4c8c6e=a64_0xe25ff5;return JSON[_0x4c8c6e(0x1de)](_0x3e61d3)===JSON[_0x4c8c6e(0x1de)](_0x397b56);}function isPlainObject(_0x5423c6){const _0x5efadf=a64_0xe25ff5;return Boolean(_0x5423c6)&&typeof _0x5423c6===_0x5efadf(0x1cc)&&!Array[_0x5efadf(0x1ca)](_0x5423c6);}function a64_0x59d5(){const _0x2f82b8=['27315450LxGHZA','validation','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','businessGroup','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','\x20must\x20be\x20a\x20JSON\x20object','Expectation\x20mismatch\x20at\x20extend.','keys','expect','--patch-json','5274328nisOhD','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','9509244pFTnUr','message','No\x20changes\x20for\x20dataset\x20extend','shape','--expect-json','isArray','join','object','dbId','datasetName','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','Patch\x20dataset\x20top-level\x20extend\x20safely','sort','Unsupported\x20patch\x20key:\x20','length','trim','modelId',',\x20actual\x20','extend','188Iuonba','556AyrZCJ','dataset','dbName','datasetId','data','stringify','name','8868629wTUnJo','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','90oKLnOI','entries','extend.','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','string','datasetCode','Expected\x20','9IChyNj','parse','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','patch-json','push','appCode','333924uLNjra','3579192yLDxbf','patch','modelCode','expect-json','str','Allowed\x20keys:\x20','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','\x20must\x20be\x20valid\x20JSON\x20object:\x20','POST','/smartapi/dataset/update-driven-data','dbtableConfig','code','extend-update'];a64_0x59d5=function(){return _0x2f82b8;};return a64_0x59d5();}function a64_0x272e(_0x45545c,_0x5442ed){_0x45545c=_0x45545c-0x1bc;const _0x59d5c1=a64_0x59d5();let _0x272e25=_0x59d5c1[_0x45545c];return _0x272e25;}function trim(_0x2151df){const _0x13d541=a64_0xe25ff5,_0x1239ef=String(_0x2151df||'')[_0x13d541(0x1d4)]();return _0x1239ef;}
|