@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.6
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.d.ts +9 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.d.ts +2 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +8 -0
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.d.ts +13 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.d.ts +25 -0
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.d.ts +2 -0
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.d.ts +1 -0
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.d.ts +51 -0
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.d.ts +1 -0
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.d.ts +5 -0
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.d.ts +1 -0
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.d.ts +12 -0
- package/lib/cli-flags.js +1 -1
- package/lib/cli.d.ts +2 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.d.ts +2 -0
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.d.ts +2 -0
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.d.ts +2 -0
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.d.ts +2 -0
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.d.ts +18 -0
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.d.ts +5 -0
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.d.ts +10 -0
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.d.ts +2 -0
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.d.ts +11 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.d.ts +46 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.d.ts +2 -0
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.d.ts +2 -0
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.d.ts +2 -0
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.d.ts +2 -0
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.d.ts +2 -0
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.d.ts +105 -0
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.d.ts +2 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.d.ts +4 -0
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.d.ts +2 -0
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.d.ts +2 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.d.ts +5 -0
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.d.ts +2 -0
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.d.ts +2 -0
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.d.ts +2 -0
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.d.ts +2 -0
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.d.ts +8 -0
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.d.ts +2 -0
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.d.ts +2 -0
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.d.ts +2 -0
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.d.ts +2 -0
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.d.ts +17 -0
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.d.ts +17 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.d.ts +11 -0
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.d.ts +12 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +26 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.d.ts +6 -0
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.d.ts +13 -0
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.d.ts +5 -0
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.d.ts +5 -0
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.d.ts +5 -0
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.d.ts +5 -0
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.d.ts +16 -0
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.d.ts +7 -0
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.d.ts +7 -0
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.d.ts +8 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.d.ts +33 -0
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.d.ts +18 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.d.ts +11 -0
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.d.ts +2 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.d.ts +2 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.d.ts +26 -0
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.d.ts +27 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.d.ts +3 -0
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.d.ts +2 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.d.ts +2 -0
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.d.ts +2 -0
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.d.ts +2 -0
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.d.ts +2 -0
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.d.ts +2 -0
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.d.ts +128 -0
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.d.ts +2 -0
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.d.ts +53 -0
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.d.ts +17 -0
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.d.ts +2 -0
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.d.ts +30 -0
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.d.ts +2 -0
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.d.ts +2 -0
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.d.ts +2 -0
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.d.ts +2 -0
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.d.ts +2 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.d.ts +2 -0
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.d.ts +2 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.d.ts +5 -0
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.d.ts +2 -0
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.d.ts +15 -0
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.d.ts +2 -0
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.d.ts +2 -0
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.d.ts +2 -0
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.d.ts +2 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.d.ts +2 -0
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.d.ts +11 -0
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.d.ts +23 -0
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.d.ts +32 -0
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.d.ts +2 -0
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.d.ts +2 -0
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.d.ts +2 -0
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.d.ts +2 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.d.ts +2 -0
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.d.ts +33 -0
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.d.ts +2 -0
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.d.ts +5 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.d.ts +2 -0
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.d.ts +2 -0
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.d.ts +3 -0
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.d.ts +2 -0
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.d.ts +2 -0
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.d.ts +2 -0
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.d.ts +17 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.d.ts +2 -0
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.d.ts +2 -0
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.d.ts +2 -0
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.d.ts +2 -0
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.d.ts +27 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.d.ts +12 -0
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.d.ts +12 -0
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.d.ts +10 -0
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +12 -0
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +28 -0
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +69 -0
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.d.ts +17 -0
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.d.ts +7 -0
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +162 -0
- package/lib/commands/menu/shared/update-core.d.ts +11 -0
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.d.ts +6 -0
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.d.ts +2 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.d.ts +2 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.d.ts +2 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.d.ts +2 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.d.ts +2 -0
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.d.ts +2 -0
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.d.ts +2 -0
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.d.ts +2 -0
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.d.ts +2 -0
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.d.ts +2 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.d.ts +2 -0
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +105 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.d.ts +2 -0
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.d.ts +2 -0
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.d.ts +2 -0
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.d.ts +2 -0
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.d.ts +2 -0
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.d.ts +2 -0
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.d.ts +2 -0
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.d.ts +2 -0
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.d.ts +74 -0
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.d.ts +1 -0
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +6 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.d.ts +9 -0
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.d.ts +4 -0
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.d.ts +1 -0
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.d.ts +2 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.d.ts +1 -0
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.d.ts +66 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.d.ts +2 -0
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.d.ts +2 -0
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.d.ts +2 -0
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.d.ts +2 -0
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.d.ts +2 -0
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.d.ts +107 -0
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.d.ts +2 -0
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.d.ts +2 -0
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.d.ts +2 -0
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.d.ts +2 -0
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.d.ts +2 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.d.ts +5 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.d.ts +10 -0
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.d.ts +5 -0
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.d.ts +2 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +2 -0
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.d.ts +5 -0
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.d.ts +2 -0
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.d.ts +5 -0
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.d.ts +5 -0
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.d.ts +23 -0
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.d.ts +5 -0
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.d.ts +2 -0
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.d.ts +2 -0
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.d.ts +2 -0
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.d.ts +2 -0
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.d.ts +2 -0
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.d.ts +10 -0
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/workspace/add.d.ts +6 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.d.ts +11 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.d.ts +6 -0
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.d.ts +50 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +1 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.d.ts +34 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.d.ts +10 -0
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +14 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +11 -0
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.d.ts +1 -0
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.d.ts +5 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.d.ts +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.d.ts +36 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.d.ts +5 -0
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.d.ts +61 -0
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +102 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +31 -0
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +1018 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +8 -0
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +28 -0
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +7 -0
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +25 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +92 -0
- package/lib/core/bff/utils.d.ts +25 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.d.ts +43 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.d.ts +6 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.d.ts +4 -0
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.d.ts +8 -0
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/types.d.ts +22 -0
- package/lib/core/sql-index-auditor.d.ts +33 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.d.ts +7 -0
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.d.ts +7 -0
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.d.ts +5 -0
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.d.ts +14 -0
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/types.d.ts +43 -0
- package/lib/core/sql-sync/utils.d.ts +10 -0
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.d.ts +34 -0
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.d.ts +2 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.d.ts +9 -0
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.d.ts +3 -0
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.d.ts +3 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.d.ts +4 -0
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.d.ts +11 -0
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.d.ts +15 -0
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.d.ts +2 -0
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +14 -0
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.d.ts +36 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.d.ts +3 -0
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +63 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -0
- package/lib/generated/build-info.js +1 -1
- package/lib/help.d.ts +1 -0
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.d.ts +4 -0
- package/lib/runtime/confirmation.js +1 -0
- package/lib/runtime/event.d.ts +5 -0
- package/lib/runtime/event.js +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/queue.d.ts +5 -0
- package/lib/runtime/queue.js +1 -0
- package/lib/runtime/resolve.d.ts +8 -0
- package/lib/runtime/resolve.js +1 -0
- package/lib/runtime/types.d.ts +50 -0
- package/lib/runtime/types.js +1 -0
- package/lib/skills/main.d.ts +41 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +99 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.d.ts +44 -0
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.d.ts +12 -0
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.d.ts +8 -0
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +93 -0
- package/lib/utils/ai_config.d.ts +47 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.d.ts +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.d.ts +42 -0
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.d.ts +23 -0
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.d.ts +37 -0
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +9 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +42 -0
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.d.ts +1 -0
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.d.ts +30 -0
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.d.ts +25 -0
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.d.ts +80 -0
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.d.ts +30 -0
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.d.ts +7 -0
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.d.ts +62 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.d.ts +15 -0
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +21 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.d.ts +38 -0
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.d.ts +1 -0
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +55 -0
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.d.ts +10 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.d.ts +1 -0
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.d.ts +6 -0
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x2c15(_0x2bea72,_0x1a4a48){_0x2bea72=_0x2bea72-0x9a;const _0x29392b=a49_0x2939();let _0x2c152a=_0x29392b[_0x2bea72];return _0x2c152a;}(function(_0x1f622d,_0x462bc2){const _0x4c7278=a49_0x2c15,_0xaba1b4=_0x1f622d();while(!![]){try{const _0x5b5f22=parseInt(_0x4c7278(0x9b))/0x1*(parseInt(_0x4c7278(0xa8))/0x2)+-parseInt(_0x4c7278(0x9e))/0x3+-parseInt(_0x4c7278(0xa3))/0x4*(-parseInt(_0x4c7278(0xa4))/0x5)+parseInt(_0x4c7278(0x9d))/0x6+-parseInt(_0x4c7278(0xa1))/0x7*(parseInt(_0x4c7278(0x9a))/0x8)+-parseInt(_0x4c7278(0xa0))/0x9+parseInt(_0x4c7278(0xa9))/0xa;if(_0x5b5f22===_0x462bc2)break;else _0xaba1b4['push'](_0xaba1b4['shift']());}catch(_0x467a59){_0xaba1b4['push'](_0xaba1b4['shift']());}}}(a49_0x2939,0x865b1));function a49_0x2939(){const _0x1d5521=['63BtjogX','App\x20Code\x20cannot\x20exceed\x20100\x20characters','28MLMOLg','474795BQtESJ','length','trim','App\x20Code\x20cannot\x20be\x20empty','26yttVvE','1950070EhKDkB','840816ZBPsyV','25457GNBgzI','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','3616368CYBTvB','785979OapOkW','test','316413XqnqiF'];a49_0x2939=function(){return _0x1d5521;};return a49_0x2939();}export function validateAppcode(_0x4bec88){const _0x10d03c=a49_0x2c15,_0x36a019=_0x4bec88[_0x10d03c(0xa6)]();if(!_0x36a019)return{'valid':![],'message':_0x10d03c(0xa7)};if(_0x36a019[_0x10d03c(0xa5)]>0x64)return{'valid':![],'message':_0x10d03c(0xa2)};if(!/^[A-Za-z0-9_-]+$/[_0x10d03c(0x9f)](_0x36a019))return{'valid':![],'message':_0x10d03c(0x9c)};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50_0x16c653=a50_0x23f7;(function(_0x189a82,_0x1cd837){const _0x23e24b=a50_0x23f7,_0x5c2fa1=_0x189a82();while(!![]){try{const _0x19f694=parseInt(_0x23e24b(0x175))/0x1+parseInt(_0x23e24b(0x16d))/0x2*(parseInt(_0x23e24b(0x16b))/0x3)+parseInt(_0x23e24b(0x173))/0x4+parseInt(_0x23e24b(0x16f))/0x5*(parseInt(_0x23e24b(0x17a))/0x6)+parseInt(_0x23e24b(0x172))/0x7+parseInt(_0x23e24b(0x17c))/0x8*(parseInt(_0x23e24b(0x171))/0x9)+-parseInt(_0x23e24b(0x176))/0xa*(parseInt(_0x23e24b(0x180))/0xb);if(_0x19f694===_0x1cd837)break;else _0x5c2fa1['push'](_0x5c2fa1['shift']());}catch(_0x7b2069){_0x5c2fa1['push'](_0x5c2fa1['shift']());}}}(a50_0x5b82,0x291fd));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a50_0x5b82(){const _0xd47ffd=['644932oyybna','Get\x20a\x20config\x20value\x20by\x20key','475blgNvj','string','9gbppkQ','1509844Oftxse','880528cihBvX','\x20config\x20get\x20--key\x20<key>','330413IZgXNc','566180TrewPS','object','validation','config','11850SNgTXj','read','1554648GwVNWV','key','str','Missing\x20key.','253PfpHEP','app','3LBHZfo','Usage:\x20'];a50_0x5b82=function(){return _0xd47ffd;};return a50_0x5b82();}async function execute(_0x557ff9){const _0x4fa7de=a50_0x23f7,_0x478e3c=_0x557ff9[_0x4fa7de(0x17e)](_0x4fa7de(0x17d));if(!_0x478e3c)throw CliErrors[_0x4fa7de(0x178)](_0x4fa7de(0x17f),_0x4fa7de(0x16c)+CLI_BIN_NAME+_0x4fa7de(0x174));const _0x367575=readConfig(),_0x384bd1=_0x478e3c===_0x4fa7de(0x181)?'appcode':_0x478e3c,_0xd77234=_0x367575[_0x384bd1];if(_0xd77234===undefined)throw CliErrors[_0x4fa7de(0x178)]('Key\x20not\x20found:\x20'+_0x478e3c);return{'ok':!![],'data':typeof _0xd77234===_0x4fa7de(0x177)?_0xd77234:{[_0x384bd1]:_0xd77234},'message':typeof _0xd77234===_0x4fa7de(0x177)?undefined:String(_0xd77234)};}function a50_0x23f7(_0x3a9591,_0x28c435){_0x3a9591=_0x3a9591-0x16b;const _0x5b822f=a50_0x5b82();let _0x23f74e=_0x5b822f[_0x3a9591];return _0x23f74e;}export const configGetDefinition={'service':a50_0x16c653(0x179),'command':'get','description':a50_0x16c653(0x16e),'risk':a50_0x16c653(0x17b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x16c653(0x17d),'type':a50_0x16c653(0x170),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a51_0x42d7(_0x555f7c,_0x3a9e2b){_0x555f7c=_0x555f7c-0x17d;const _0x144da5=a51_0x144d();let _0x42d7f5=_0x144da5[_0x555f7c];return _0x42d7f5;}(function(_0xbee70a,_0x20a9dd){const _0x5078a9=a51_0x42d7,_0x23134e=_0xbee70a();while(!![]){try{const _0xc55860=-parseInt(_0x5078a9(0x17e))/0x1*(parseInt(_0x5078a9(0x184))/0x2)+-parseInt(_0x5078a9(0x186))/0x3*(-parseInt(_0x5078a9(0x181))/0x4)+-parseInt(_0x5078a9(0x187))/0x5*(-parseInt(_0x5078a9(0x188))/0x6)+-parseInt(_0x5078a9(0x185))/0x7*(-parseInt(_0x5078a9(0x180))/0x8)+-parseInt(_0x5078a9(0x17f))/0x9+-parseInt(_0x5078a9(0x17d))/0xa*(parseInt(_0x5078a9(0x182))/0xb)+-parseInt(_0x5078a9(0x183))/0xc;if(_0xc55860===_0x20a9dd)break;else _0x23134e['push'](_0x23134e['shift']());}catch(_0x3553d5){_0x23134e['push'](_0x23134e['shift']());}}}(a51_0x144d,0x6b0d6));import{configListDefinition}from'../../commands/config/list.js';function a51_0x144d(){const _0x17581f=['8shGcip','7840JeZxEn','2079mILTrU','2295396IPrrTU','2uMSqKr','2383955vnQhVA','195lBESoU','4051140puiuLm','6hWjruW','5230GUgcup','176285DLQHnc','3359628FmzxiF'];a51_0x144d=function(){return _0x17581f;};return a51_0x144d();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x31e972=a52_0x32f0;(function(_0x378793,_0xea6216){const _0x260ad6=a52_0x32f0,_0x5ca896=_0x378793();while(!![]){try{const _0x563852=-parseInt(_0x260ad6(0x1b3))/0x1+parseInt(_0x260ad6(0x1b7))/0x2*(-parseInt(_0x260ad6(0x1ae))/0x3)+-parseInt(_0x260ad6(0x1b0))/0x4+-parseInt(_0x260ad6(0x1b4))/0x5+-parseInt(_0x260ad6(0x1b6))/0x6+-parseInt(_0x260ad6(0x1ba))/0x7*(-parseInt(_0x260ad6(0x1b5))/0x8)+parseInt(_0x260ad6(0x1b8))/0x9;if(_0x563852===_0xea6216)break;else _0x5ca896['push'](_0x5ca896['shift']());}catch(_0x550c8c){_0x5ca896['push'](_0x5ca896['shift']());}}}(a52_0x477d,0xa132a));function a52_0x477d(){const _0xebf4ee=['config','read','1066922hqOZVQ','5553830AqQXEq','617720Qvcxkh','2769618qjovdx','2SpqDId','32568588tshcnQ','List\x20all\x20config\x20values','98kujLRt','1565013NExbMI','global','3514056SSqwWp'];a52_0x477d=function(){return _0xebf4ee;};return a52_0x477d();}function a52_0x32f0(_0x23ab1f,_0x2e57a6){_0x23ab1f=_0x23ab1f-0x1ae;const _0x477d95=a52_0x477d();let _0x32f01f=_0x477d95[_0x23ab1f];return _0x32f01f;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x313f6a){const _0x1083c2=a52_0x32f0,_0x12ec2e=_0x313f6a['bool'](_0x1083c2(0x1af))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x12ec2e};}export const configListDefinition={'service':a52_0x31e972(0x1b1),'command':'list','description':a52_0x31e972(0x1b9),'risk':a52_0x31e972(0x1b2),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x507ff6=a53_0x3fa0;function a53_0x3fa0(_0xd9ca03,_0x2de4bf){_0xd9ca03=_0xd9ca03-0x182;const _0x536153=a53_0x5361();let _0x3fa0e9=_0x536153[_0xd9ca03];return _0x3fa0e9;}(function(_0x2b02bc,_0x5d9fa9){const _0x1ddfa8=a53_0x3fa0,_0x2609df=_0x2b02bc();while(!![]){try{const _0x5415a3=parseInt(_0x1ddfa8(0x189))/0x1+parseInt(_0x1ddfa8(0x18b))/0x2+-parseInt(_0x1ddfa8(0x182))/0x3*(-parseInt(_0x1ddfa8(0x1a8))/0x4)+-parseInt(_0x1ddfa8(0x1a0))/0x5*(-parseInt(_0x1ddfa8(0x1aa))/0x6)+parseInt(_0x1ddfa8(0x191))/0x7+-parseInt(_0x1ddfa8(0x1b0))/0x8+-parseInt(_0x1ddfa8(0x19f))/0x9;if(_0x5415a3===_0x5d9fa9)break;else _0x2609df['push'](_0x2609df['shift']());}catch(_0x396add){_0x2609df['push'](_0x2609df['shift']());}}}(a53_0x5361,0xc6aa6));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(_0x3f301c){const _0x36aab7=a53_0x3fa0,_0x2b87b9=_0x3f301c[_0x36aab7(0x18d)]('key'),_0x1b1c52=_0x3f301c[_0x36aab7(0x18d)](_0x36aab7(0x1a3));if(!_0x2b87b9)throw CliErrors[_0x36aab7(0x18f)](_0x36aab7(0x188),_0x36aab7(0x184)+CLI_BIN_NAME+_0x36aab7(0x183));if(_0x1b1c52===undefined||_0x1b1c52==='')throw CliErrors['validation'](_0x36aab7(0x196),_0x36aab7(0x184)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x1b1c52[_0x36aab7(0x1b2)]>0x1f4)throw CliErrors[_0x36aab7(0x18f)](_0x36aab7(0x1a4));if(!isTopLevelConfigKey(_0x2b87b9))throw CliErrors[_0x36aab7(0x18f)](_0x36aab7(0x1a6)+_0x2b87b9+_0x36aab7(0x1ac),_0x36aab7(0x199)+getTopLevelConfigKeySummary());if(_0x2b87b9===_0x36aab7(0x19c))throw CliErrors[_0x36aab7(0x18f)](_0x36aab7(0x1af));if(CONFIG_ENUM_VALUES[_0x2b87b9]&&!CONFIG_ENUM_VALUES[_0x2b87b9][_0x36aab7(0x197)](_0x1b1c52))throw CliErrors[_0x36aab7(0x18f)]('Invalid\x20value\x20for\x20\x22'+_0x2b87b9+_0x36aab7(0x187)+CONFIG_ENUM_VALUES[_0x2b87b9][_0x36aab7(0x18c)](',\x20'));if(_0x2b87b9===_0x36aab7(0x185)&&!normalizeLocale(_0x1b1c52))throw CliErrors[_0x36aab7(0x18f)](_0x36aab7(0x1a2),_0x36aab7(0x18e));const _0x3b329c={'global':_0x3f301c[_0x36aab7(0x1a7)]('global')},_0x2a15aa=resolveWriteScope(_0x3b329c),_0x4cc779=readScopedConfig(_0x2a15aa);let _0x556f15=_0x2b87b9,_0xae2727=_0x1b1c52;_0x2b87b9===_0x36aab7(0x1b6)&&(_0x556f15=_0x36aab7(0x1a1),delete _0x4cc779[_0x36aab7(0x1b6)]);_0x2b87b9===_0x36aab7(0x185)&&(_0xae2727=normalizeLocale(_0x1b1c52));if(_0x2b87b9===_0x36aab7(0x18a)){_0xae2727=normalizeEnv(_0x1b1c52);if(!isProduction(_0xae2727)&&!isDaily(_0xae2727))throw CliErrors[_0x36aab7(0x18f)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x36aab7(0x190));}if(_0x2b87b9==='appcode'){const _0x3022e9=_0x4cc779['apps']&&typeof _0x4cc779[_0x36aab7(0x1ae)]===_0x36aab7(0x198)?Object[_0x36aab7(0x1b1)](_0x4cc779[_0x36aab7(0x1ae)]):[];if(_0x3022e9[_0x36aab7(0x1b2)]>0x0)throw CliErrors[_0x36aab7(0x18f)](_0x36aab7(0x1ad),_0x36aab7(0x19b)+CLI_BIN_NAME+_0x36aab7(0x19a)+_0xae2727+_0x36aab7(0x1ab)+CLI_BIN_NAME+_0x36aab7(0x1a9));const _0x1477d8=buildCanonicalProjectConfig({..._0x4cc779},{'appCodes':[_0xae2727],'env':typeof _0x4cc779[_0x36aab7(0x18a)]===_0x36aab7(0x1b3)?_0x4cc779[_0x36aab7(0x18a)]:undefined});writeScopedConfig(_0x1477d8,_0x2a15aa);const _0x3f3196=_0x2a15aa===_0x36aab7(0x192)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x3f3196+_0x36aab7(0x1b5)+_0xae2727+_0x36aab7(0x1b4)};}_0x4cc779[_0x556f15]=_0xae2727,writeScopedConfig(_0x4cc779,_0x2a15aa);const _0x83a87f=_0x2a15aa===_0x36aab7(0x192)?_0x36aab7(0x19e):_0x36aab7(0x186);return{'ok':!![],'message':'✓\x20'+_0x83a87f+'\x20'+_0x556f15+'\x20set\x20to:\x20'+_0xae2727};}export const configSetDefinition={'service':'config','command':a53_0x507ff6(0x1a5),'description':a53_0x507ff6(0x193),'risk':a53_0x507ff6(0x195),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x507ff6(0x194),'type':a53_0x507ff6(0x1b3),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x507ff6(0x1a3),'type':a53_0x507ff6(0x1b3),'description':a53_0x507ff6(0x19d),'required':!![]},{'name':a53_0x507ff6(0x192),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a53_0x5361(){const _0x466488=['Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','3051811zbjoRs','global','Set\x20a\x20config\x20value','key','write','Missing\x20value.','includes','object','Settable\x20top-level\x20keys:\x20','\x20workspace\x20add\x20<name>\x20--appcode\x20','Use\x20`','riskLevel','Config\x20value','Global','26284113wzyRqp','2207390qSNwQA','appcode','Invalid\x20locale\x20value.','value','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','set','Top-level\x20key\x20\x22','bool','18656zsAQeu','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','6qgylKp','`,\x20`','\x22\x20is\x20not\x20settable.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','apps','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','3518912TncfOb','keys','length','string','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x20appcode\x20set\x20to:\x20','app','321oxthRb','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Usage:\x20','locale','Project','\x22.\x20Allowed:\x20','Missing\x20key.','1625235BGdmpG','env','2344642HfTpPu','join','str','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','validation'];a53_0x5361=function(){return _0x466488;};return a53_0x5361();}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* config 子命令共享工具
|
|
3
|
+
*/
|
|
4
|
+
import { CLI_BIN_NAME } from "../../constant/cli.js";
|
|
5
|
+
import { CONFIG_ENUM_VALUES, TOP_LEVEL_CONFIG_KEYS, getConfigCommandKeyDescription, getTopLevelConfigKeyList, getTopLevelConfigKeySummary, isTopLevelConfigKey, normalizeLocale } from "../../config/schema.js";
|
|
6
|
+
export { CLI_BIN_NAME };
|
|
7
|
+
export { normalizeLocale };
|
|
8
|
+
export { CONFIG_ENUM_VALUES, TOP_LEVEL_CONFIG_KEYS, getConfigCommandKeyDescription, getTopLevelConfigKeyList, getTopLevelConfigKeySummary, isTopLevelConfigKey, };
|
|
9
|
+
/**
|
|
10
|
+
* 解析写入 scope:
|
|
11
|
+
* --global → global
|
|
12
|
+
* 无 --global → 在项目目录内 → project;否则拒绝(要求显式 --global)
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveWriteScope(flags: Record<string, any>): "project" | "global";
|
|
15
|
+
export declare function readScopedConfig(scope: "project" | "global"): Record<string, any>;
|
|
16
|
+
export declare function writeScopedConfig(config: Record<string, any>, scope: "project" | "global"): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57404d,_0x581b14){var _0x565bd4=a54_0x1cb4,_0x423c82=_0x57404d();while(!![]){try{var _0x1d5759=parseInt(_0x565bd4(0x195))/0x1+-parseInt(_0x565bd4(0x194))/0x2*(parseInt(_0x565bd4(0x18d))/0x3)+-parseInt(_0x565bd4(0x190))/0x4+-parseInt(_0x565bd4(0x192))/0x5+-parseInt(_0x565bd4(0x196))/0x6+parseInt(_0x565bd4(0x193))/0x7+parseInt(_0x565bd4(0x18e))/0x8;if(_0x1d5759===_0x581b14)break;else _0x423c82['push'](_0x423c82['shift']());}catch(_0x5f30e1){_0x423c82['push'](_0x423c82['shift']());}}}(a54_0x2527,0xd99ff));function a54_0x1cb4(_0x3f9ad6,_0x47b84a){_0x3f9ad6=_0x3f9ad6-0x18d;var _0x25272d=a54_0x2527();var _0x1cb4c8=_0x25272d[_0x3f9ad6];return _0x1cb4c8;}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(_0x390195){var _0x3d3d6d=a54_0x1cb4;if(_0x390195[_0x3d3d6d(0x197)])return _0x3d3d6d(0x197);if(!isInProject())throw CliErrors[_0x3d3d6d(0x191)](_0x3d3d6d(0x18f),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}export function readScopedConfig(_0x18a29a){return readConfigFile(resolveWriteConfigPath(_0x18a29a));}function a54_0x2527(){var _0x4c31c6=['Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1401652bHZzqJ','validation','1314695kLClZj','8278235AqCNQa','2IvQqhE','193461VStRVi','3192246amJgXc','global','2916573FxgBVM','13063272eTFPKW'];a54_0x2527=function(){return _0x4c31c6;};return a54_0x2527();}export function writeScopedConfig(_0x15854a,_0x874463){writeConfigFile(resolveWriteConfigPath(_0x874463),_0x15854a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a55_0x4ea2(){const _0x134381=['32PNKHrt','join','190074BkxZQT','520QoLrOY','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','1557668jUFRNp','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','233646yuteoc','filter','3204SaPMph','2xrsfSI','10SOMVno','9qqCwoT','\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]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','20308beziXA','52HgJJmc','101700neQlOq','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','1015721jgWOJJ','3322WXySnR'];a55_0x4ea2=function(){return _0x134381;};return a55_0x4ea2();}const a55_0x5b8655=a55_0x3686;function a55_0x3686(_0x406fd7,_0x500599){_0x406fd7=_0x406fd7-0x1a7;const _0x4ea281=a55_0x4ea2();let _0x36862c=_0x4ea281[_0x406fd7];return _0x36862c;}(function(_0x3beffb,_0x4c6197){const _0x153122=a55_0x3686,_0x35df3c=_0x3beffb();while(!![]){try{const _0x158f1d=parseInt(_0x153122(0x1b3))/0x1*(-parseInt(_0x153122(0x1b6))/0x2)+parseInt(_0x153122(0x1b8))/0x3*(-parseInt(_0x153122(0x1bb))/0x4)+-parseInt(_0x153122(0x1b7))/0x5*(-parseInt(_0x153122(0x1ae))/0x6)+-parseInt(_0x153122(0x1aa))/0x7*(-parseInt(_0x153122(0x1ac))/0x8)+-parseInt(_0x153122(0x1a8))/0x9*(parseInt(_0x153122(0x1af))/0xa)+parseInt(_0x153122(0x1ab))/0xb*(parseInt(_0x153122(0x1b5))/0xc)+parseInt(_0x153122(0x1a7))/0xd*(parseInt(_0x153122(0x1b1))/0xe);if(_0x158f1d===_0x4c6197)break;else _0x35df3c['push'](_0x35df3c['shift']());}catch(_0x49390d){_0x35df3c['push'](_0x35df3c['shift']());}}}(a55_0x4ea2,0x514af));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a55_0x5b8655(0x1b4),'operation':a55_0x5b8655(0x1b4),'description':a55_0x5b8655(0x1ba),'paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a55_0x5b8655(0x1a9),a55_0x5b8655(0x1b9),'\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_0x5b8655(0x1b0),a55_0x5b8655(0x1b2)][a55_0x5b8655(0x1ad)]('\x0a')});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a56_0x13db(){const _0x4e76d6=['4646045rhkoQQ','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','98pUTEqf','48BqrWCV','getOne','4tnuqxP','48529AdbTmt','3715320SQnTmx','317488RTOEtO','132cXcgxf','2561040NNVFWq','389262WftFhT','1121292bBUvCP'];a56_0x13db=function(){return _0x4e76d6;};return a56_0x13db();}function a56_0x409b(_0x4fc768,_0x303d7d){_0x4fc768=_0x4fc768-0xaa;const _0x13dbbb=a56_0x13db();let _0x409b=_0x13dbbb[_0x4fc768];return _0x409b;}const a56_0x16aa64=a56_0x409b;(function(_0x482a78,_0x1fa32f){const _0x188319=a56_0x409b,_0xf316c8=_0x482a78();while(!![]){try{const _0x4a8062=parseInt(_0x188319(0xaf))/0x1+-parseInt(_0x188319(0xb1))/0x2+parseInt(_0x188319(0xb0))/0x3+-parseInt(_0x188319(0xae))/0x4*(-parseInt(_0x188319(0xb6))/0x5)+parseInt(_0x188319(0xb4))/0x6*(parseInt(_0x188319(0xab))/0x7)+-parseInt(_0x188319(0xac))/0x8*(-parseInt(_0x188319(0xb5))/0x9)+-parseInt(_0x188319(0xb3))/0xa*(parseInt(_0x188319(0xb2))/0xb);if(_0x4a8062===_0x1fa32f)break;else _0xf316c8['push'](_0xf316c8['shift']());}catch(_0x1595b7){_0xf316c8['push'](_0xf316c8['shift']());}}}(a56_0x13db,0x9c3f8));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a56_0x16aa64(0xad),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a56_0x16aa64(0xaa)});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Declarative exports for the read-only `data` command group.
|
|
3
|
+
*/
|
|
4
|
+
import type { CommandDefinition } from "../../framework/types.js";
|
|
5
|
+
/**
|
|
6
|
+
* Ordered command list used by help output, schema export, and registry wiring.
|
|
7
|
+
*/
|
|
8
|
+
export declare const dataDefinitions: CommandDefinition[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x71cf24,_0x331aa6){const _0x3685ac=a57_0x5ac1,_0x484d7b=_0x71cf24();while(!![]){try{const _0x54bc85=-parseInt(_0x3685ac(0xfd))/0x1+-parseInt(_0x3685ac(0xfe))/0x2+parseInt(_0x3685ac(0xf8))/0x3+-parseInt(_0x3685ac(0xfa))/0x4+parseInt(_0x3685ac(0xf9))/0x5*(parseInt(_0x3685ac(0xf6))/0x6)+parseInt(_0x3685ac(0xfc))/0x7*(-parseInt(_0x3685ac(0xf7))/0x8)+parseInt(_0x3685ac(0xff))/0x9*(parseInt(_0x3685ac(0xfb))/0xa);if(_0x54bc85===_0x331aa6)break;else _0x484d7b['push'](_0x484d7b['shift']());}catch(_0x1be3b2){_0x484d7b['push'](_0x484d7b['shift']());}}}(a57_0x2ce8,0xc8dd5));function a57_0x5ac1(_0x2ef815,_0x1ef534){_0x2ef815=_0x2ef815-0xf6;const _0x2ce8e3=a57_0x2ce8();let _0x5ac1a5=_0x2ce8e3[_0x2ef815];return _0x5ac1a5;}import{dataFilter}from'../../commands/data/filter.js';function a57_0x2ce8(){const _0x58aa4f=['419497CKmPvT','1702432KVlSTw','162elVxYf','186FXCYXJ','1696168lEshJb','897921kjuXPM','70515YjAquA','3546356lSIzIh','1835360tCdYOY','35PxJqcz'];a57_0x2ce8=function(){return _0x58aa4f;};return a57_0x2ce8();}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Shared builder for the read-only `data` command group.
|
|
3
|
+
*
|
|
4
|
+
* The `data filter` and `data getOne` commands differ only in metadata and
|
|
5
|
+
* parameter validation. A small factory keeps them aligned with the unified
|
|
6
|
+
* command pipeline while avoiding duplicated parsing and execution logic.
|
|
7
|
+
*/
|
|
8
|
+
import { type DatasetDataReadOperation } from "../../core/api-client.js";
|
|
9
|
+
import type { CommandDefinition } from "../../framework/types.js";
|
|
10
|
+
/**
|
|
11
|
+
* Declarative metadata for a single read-only data command.
|
|
12
|
+
*/
|
|
13
|
+
export interface DataCommandSpec {
|
|
14
|
+
/** CLI subcommand name, for example `filter` or `getOne`. */
|
|
15
|
+
command: string;
|
|
16
|
+
/** Runtime API operation name. */
|
|
17
|
+
operation: DatasetDataReadOperation;
|
|
18
|
+
/** Human-readable command description. */
|
|
19
|
+
description: string;
|
|
20
|
+
/** Whether `--params` is mandatory. */
|
|
21
|
+
paramsRequired: boolean;
|
|
22
|
+
/** Help text shown for the `--params` flag. */
|
|
23
|
+
paramsHint: string;
|
|
24
|
+
/** Optional extended help shown in `--help`. */
|
|
25
|
+
helpExtra?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Builds one read-only data command definition.
|
|
29
|
+
*
|
|
30
|
+
* @param spec - Command metadata.
|
|
31
|
+
* @returns A command definition wired to the runtime data API.
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildDataCommand(spec: DataCommandSpec): CommandDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e41fe,_0x2fd278){const _0x4018d4=a58_0x4fdf,_0x32cd69=_0x1e41fe();while(!![]){try{const _0x269c75=parseInt(_0x4018d4(0x7f))/0x1+-parseInt(_0x4018d4(0x89))/0x2*(-parseInt(_0x4018d4(0x7b))/0x3)+parseInt(_0x4018d4(0x95))/0x4*(-parseInt(_0x4018d4(0x8c))/0x5)+parseInt(_0x4018d4(0x87))/0x6*(-parseInt(_0x4018d4(0x81))/0x7)+-parseInt(_0x4018d4(0x90))/0x8*(-parseInt(_0x4018d4(0x83))/0x9)+-parseInt(_0x4018d4(0x7e))/0xa+parseInt(_0x4018d4(0x8b))/0xb;if(_0x269c75===_0x2fd278)break;else _0x32cd69['push'](_0x32cd69['shift']());}catch(_0x3fa40a){_0x32cd69['push'](_0x32cd69['shift']());}}}(a58_0x36a1,0x59b70));function a58_0x4fdf(_0x338196,_0x3b8dc7){_0x338196=_0x338196-0x7b;const _0x36a190=a58_0x36a1();let _0x4fdf4e=_0x36a190[_0x338196];return _0x4fdf4e;}import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a58_0x36a1(){const _0x3fc4cb=['6400592RIJenP','4230DIbLiu','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','read','validation','48WaTdgf','code','command','appCode','data','1068mqldTJ','\x20completed\x20in\x20','params','str','string','description','9nVSRht','paramsHint','data\x20','2621230uqdiua','220897yWXBpe','getOne','7ClDZsR','operation','633303DIdrNm','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','paramsRequired','4188810FNWDGh','helpExtra','219094AUSyFe','now'];a58_0x36a1=function(){return _0x3fc4cb;};return a58_0x36a1();}function assertGetOneId(_0x347647){const _0xf7516d=a58_0x4fdf;if(!_0x347647)throw CliErrors['flagMissing'](_0xf7516d(0x97),_0xf7516d(0x85));const _0x77c814=_0x347647['id'];if(_0x77c814===undefined||_0x77c814===null||_0x77c814==='')throw CliErrors[_0xf7516d(0x8f)](_0xf7516d(0x84),_0xf7516d(0x8d));}function parseCommandParams(_0x1334fd){return parseJsonParams(_0x1334fd)??{};}export function buildDataCommand(_0x5efa0b){const _0x57d24f=a58_0x4fdf,_0x2d939e='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x57d24f(0x94),'command':_0x5efa0b[_0x57d24f(0x92)],'description':_0x5efa0b[_0x57d24f(0x9a)],'risk':_0x57d24f(0x8e),'defaultOutputFormat':'compress','helpExtra':_0x5efa0b[_0x57d24f(0x88)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x57d24f(0x99),'description':_0x2d939e},{'name':_0x57d24f(0x97),'type':_0x57d24f(0x99),'description':_0x5efa0b[_0x57d24f(0x7c)]}],async 'validate'(_0x476f59){const _0x1d142c=_0x57d24f,_0x2cb94c=_0x476f59[_0x1d142c(0x98)]('params');if(_0x5efa0b[_0x1d142c(0x86)]&&!_0x2cb94c)throw CliErrors['flagMissing']('params',_0x5efa0b[_0x1d142c(0x7c)]);const _0x5e5a09=parseJsonParams(_0x2cb94c);_0x5efa0b[_0x1d142c(0x82)]===_0x1d142c(0x80)&&assertGetOneId(_0x5e5a09);},async 'execute'(_0x22da9c){const _0x19ea9f=_0x57d24f,_0x33d460=parseCommandParams(_0x22da9c[_0x19ea9f(0x98)](_0x19ea9f(0x97))),_0x5c30d1=Date[_0x19ea9f(0x8a)](),_0x10bb87=await executeDatasetDataOperation(_0x22da9c[_0x19ea9f(0x93)],_0x22da9c[_0x19ea9f(0x98)](_0x19ea9f(0x91)),_0x5efa0b['operation'],_0x33d460),_0x20b9f5=Date[_0x19ea9f(0x8a)]()-_0x5c30d1;return{'ok':!![],'data':{'result':_0x10bb87,'elapsed':_0x20b9f5},'message':_0x19ea9f(0x7d)+_0x5efa0b[_0x19ea9f(0x92)]+_0x19ea9f(0x96)+_0x20b9f5+'ms'};}};}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CommandDefinition } from "../../framework/types.js";
|
|
2
|
+
interface BusinessGroupUpdateInput {
|
|
3
|
+
code?: string;
|
|
4
|
+
businessGroup?: string;
|
|
5
|
+
expectBusinessGroup?: string;
|
|
6
|
+
}
|
|
7
|
+
interface BuildBusinessGroupUpdateOptions {
|
|
8
|
+
appCode: string;
|
|
9
|
+
input: BusinessGroupUpdateInput;
|
|
10
|
+
dryRun: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildDatasetBusinessGroupUpdateResult({ appCode, input, dryRun, }: BuildBusinessGroupUpdateOptions): Promise<{
|
|
13
|
+
ok: true;
|
|
14
|
+
data: Record<string, unknown>;
|
|
15
|
+
message: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const datasetBusinessGroupUpdate: CommandDefinition;
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a59_0x202b(){const _0x1a57ba=['data','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.',',\x20actual\x20','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','name','validation','business-group-update','appCode','87898Bcebdt','apiError','18162OEgrBX','Update\x20business\x20scenario\x20group','80794qxhrYn','extend','sourceType','17336zAYxdX','prototype','update','63vHkvBJ','isArray','message','str','trim','found','code','parse','1760KvZcRm','METADATA','businessGroup','--business-group\x20is\x20required','keys','write','1060TQQkMv','expectBusinessGroup','source','datasetCode','Expectation\x20mismatch\x20at\x20businessGroup','POST','/smartapi/question/er-config/business-group/edit','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','number','datasetName','hasOwnProperty','--code\x20is\x20required','DB_TABLE','string','call','isFinite','4662130qsftDM','unchanged','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','matched','business-group','872467etoEHr','datasetId','84ypRSTo','object','dataset','modelId','toUpperCase','backend','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','12876agIqjV','Expected\x20','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','stringify','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','expect-business-group'];a59_0x202b=function(){return _0x1a57ba;};return a59_0x202b();}const a59_0x3ee680=a59_0xc4b8;(function(_0x3ff428,_0x1c68df){const _0x569838=a59_0xc4b8,_0x59526b=_0x3ff428();while(!![]){try{const _0x5d3408=parseInt(_0x569838(0xe9))/0x1+-parseInt(_0x569838(0xbc))/0x2*(parseInt(_0x569838(0xc6))/0x3)+parseInt(_0x569838(0xad))/0x4*(parseInt(_0x569838(0xd4))/0x5)+-parseInt(_0x569838(0xeb))/0x6*(-parseInt(_0x569838(0xc0))/0x7)+parseInt(_0x569838(0xce))/0x8*(parseInt(_0x569838(0xbe))/0x9)+-parseInt(_0x569838(0xe4))/0xa+-parseInt(_0x569838(0xc3))/0xb;if(_0x5d3408===_0x1c68df)break;else _0x59526b['push'](_0x59526b['shift']());}catch(_0x3d3c37){_0x59526b['push'](_0x59526b['shift']());}}}(a59_0x202b,0xbbebd));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_0x3ee680(0xda);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x423333,input:_0x5f09f3,dryRun:_0x55ee15}){const _0x563881=a59_0x3ee680;validateInput(_0x5f09f3);const _0x20e450=normalizeBusinessGroup(_0x5f09f3[_0x563881(0xd0)]),_0x6c5e6e=await getDatasetDetail(_0x5f09f3[_0x563881(0xcc)]),_0x1468c3=resolveBusinessGroupDataset(_0x6c5e6e,_0x5f09f3['code']),_0x176a9a=loadCurrentBusinessGroup(_0x6c5e6e,_0x1468c3);assertExpectedBusinessGroup(_0x176a9a,_0x5f09f3[_0x563881(0xd5)]);const _0x6f6e20=buildBackendPayload(_0x423333,_0x1468c3,_0x20e450),_0x802bde=_0x176a9a!==_0x20e450;let _0x57e1b0;if(_0x802bde&&!_0x55ee15){await updateErBusinessGroup(_0x6f6e20);const _0x213ba2=await getDatasetDetail(_0x1468c3[_0x563881(0xcc)]),_0x338ec0=resolveBusinessGroupDataset(_0x213ba2,_0x1468c3[_0x563881(0xcc)]),_0x2d314d=loadCurrentBusinessGroup(_0x213ba2,_0x338ec0);if(_0x2d314d!==_0x20e450)throw CliErrors[_0x563881(0xbd)](_0x563881(0xac),_0x563881(0xae)+JSON[_0x563881(0xb0)](_0x20e450)+',\x20actual\x20'+JSON[_0x563881(0xb0)](_0x2d314d)+'.');_0x57e1b0={'verified':!![],'status':_0x563881(0xe7),'afterReadback':{'businessGroup':_0x2d314d}};}else!_0x802bde&&(_0x57e1b0={'verified':!![],'status':_0x563881(0xe5),'afterReadback':{'businessGroup':_0x176a9a}});const _0x4777d9={'operation':_0x563881(0xc5),'appCode':_0x423333,'selector':{'code':_0x1468c3[_0x563881(0xcc)]},'dataset':_0x1468c3,'before':{'businessGroup':_0x176a9a},'after':{'businessGroup':_0x20e450},'changed':_0x802bde,'dryRun':_0x55ee15,'submitted':_0x802bde&&!_0x55ee15,'backend':{'method':_0x563881(0xd9),'path':BACKEND_PATH,'payload':_0x6f6e20},..._0x57e1b0?{'verification':_0x57e1b0}:{},'warnings':[]};return{'ok':!![],'data':_0x4777d9,'message':_0x802bde?_0x55ee15?_0x563881(0xb4)+_0x1468c3[_0x563881(0xcc)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x1468c3[_0x563881(0xcc)]:_0x563881(0xdb)+_0x1468c3[_0x563881(0xcc)]};}export const datasetBusinessGroupUpdate={'service':a59_0x3ee680(0xed),'command':a59_0x3ee680(0xba),'description':a59_0x3ee680(0xbf),'risk':a59_0x3ee680(0xd3),'flags':[CODE_FLAG,{'name':a59_0x3ee680(0xe8),'type':a59_0x3ee680(0xe1),'required':!![],'description':a59_0x3ee680(0xb1)},{'name':a59_0x3ee680(0xb2),'type':a59_0x3ee680(0xe1),'required':![],'description':a59_0x3ee680(0xe6)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5b6945){validateInput(readBusinessGroupUpdateInput(_0x5b6945));},async 'dryRun'(_0x51e11b){const _0x4a1d80=a59_0x3ee680,_0x2ddd3e=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x51e11b[_0x4a1d80(0xbb)],'input':readBusinessGroupUpdateInput(_0x51e11b),'dryRun':!![]});return{'method':_0x4a1d80(0xd9),'url':BACKEND_PATH,'body':_0x2ddd3e[_0x4a1d80(0xb3)][_0x4a1d80(0xab)]['payload'],'description':_0x2ddd3e[_0x4a1d80(0xc8)],..._0x2ddd3e['data']};},async 'execute'(_0x3baef2){const _0x4aad2c=a59_0x3ee680;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x3baef2[_0x4aad2c(0xbb)],'input':readBusinessGroupUpdateInput(_0x3baef2),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x7fc110){const _0x33fb12=a59_0x3ee680,_0x189c08=_0x7fc110[_0x33fb12(0xc9)](_0x33fb12(0xb2));return{'code':trim(_0x7fc110['str'](_0x33fb12(0xcc))),'businessGroup':_0x7fc110[_0x33fb12(0xc9)](_0x33fb12(0xe8)),'expectBusinessGroup':_0x189c08===undefined||_0x189c08===''?undefined:_0x189c08};}function validateInput(_0x5eacc3){const _0x3c15ac=a59_0x3ee680;if(!trim(_0x5eacc3['code']))throw CliErrors['validation'](_0x3c15ac(0xdf));if(_0x5eacc3[_0x3c15ac(0xd0)]===undefined)throw CliErrors[_0x3c15ac(0xb9)](_0x3c15ac(0xd1));}function resolveBusinessGroupDataset(_0x398e2d,_0xbb0c6d){const _0x5bb6eb=a59_0x3ee680,_0x13b864=asPlainObject(_0x398e2d[_0x5bb6eb(0xed)]),_0x16c729=asPlainObject(_0x398e2d['dbtableConfig']),_0x5ac1e8=resolveSourceType(_0x398e2d,_0x13b864,_0x16c729),_0x307ab6=firstString(_0x398e2d['modelCode'],_0x398e2d[_0x5bb6eb(0xcc)],_0x13b864[_0x5bb6eb(0xd7)],_0xbb0c6d)||_0xbb0c6d;return{'id':firstNumber(_0x398e2d[_0x5bb6eb(0xee)],_0x398e2d['id'],_0x13b864['datasetId'])??firstString(_0x398e2d[_0x5bb6eb(0xee)],_0x398e2d['id'],_0x13b864[_0x5bb6eb(0xea)])??null,'code':_0x307ab6,'name':firstString(_0x398e2d[_0x5bb6eb(0xb8)],_0x13b864[_0x5bb6eb(0xdd)],_0x13b864['name'])||null,'sourceType':_0x5ac1e8};}function resolveSourceType(_0x36af69,_0x14bfac,_0x4da51a){const _0x3c078f=a59_0x3ee680,_0x51edda=firstString(_0x36af69[_0x3c078f(0xd6)],_0x36af69[_0x3c078f(0xc2)],_0x14bfac[_0x3c078f(0xd6)],_0x14bfac['sourceType'])?.[_0x3c078f(0xca)]()[_0x3c078f(0xaa)]();if(_0x51edda==='DB_TABLE'||_0x51edda===_0x3c078f(0xcf))return _0x51edda;if(Object[_0x3c078f(0xd2)](_0x4da51a)['length']>0x0)return _0x3c078f(0xe0);throw CliErrors['validation'](_0x3c078f(0xb5));}function loadCurrentBusinessGroup(_0xca5f20,_0x15a20a){const _0x37eaf4=a59_0x3ee680,_0x4bcf65=readBusinessGroupFromDatasetDetail(_0xca5f20,_0x15a20a[_0x37eaf4(0xc2)]);if(_0x4bcf65[_0x37eaf4(0xcb)])return normalizeBusinessGroup(_0x4bcf65['value']);if(_0x15a20a[_0x37eaf4(0xc2)]===_0x37eaf4(0xcf))return'';throw CliErrors['validation'](_0x37eaf4(0xb7),_0x37eaf4(0xaf));}function readBusinessGroupFromDatasetDetail(_0x554d21,_0x5627d8){const _0x1d4167=a59_0x3ee680,_0x542476=asPlainObject(_0x554d21[_0x1d4167(0xed)]),_0x47d83c=firstPresent(_0x554d21['businessGroup']);if(_0x47d83c[_0x1d4167(0xcb)])return _0x47d83c;const _0x1c1741=firstPresent(_0x542476[_0x1d4167(0xd0)]);if(_0x1c1741[_0x1d4167(0xcb)])return _0x1c1741;if(_0x5627d8===_0x1d4167(0xe0))return{'found':![]};const _0x4facc6=readBusinessGroupFromExtend(_0x554d21['extend']);if(_0x4facc6[_0x1d4167(0xcb)])return _0x4facc6;return readBusinessGroupFromExtend(_0x542476[_0x1d4167(0xc1)]);}function readBusinessGroupFromExtend(_0x30a8b1){const _0x75a1ca=a59_0x3ee680;if(_0x30a8b1===undefined||_0x30a8b1===null||_0x30a8b1==='')return{'found':![]};if(typeof _0x30a8b1===_0x75a1ca(0xe1))try{const _0x31440e=JSON[_0x75a1ca(0xcd)](_0x30a8b1);return readBusinessGroupFromExtend(_0x31440e);}catch{return{'found':![]};}const _0x22a85f=asPlainObject(_0x30a8b1);if(Object[_0x75a1ca(0xc4)][_0x75a1ca(0xde)][_0x75a1ca(0xe2)](_0x22a85f,_0x75a1ca(0xd0)))return{'found':!![],'value':_0x22a85f[_0x75a1ca(0xd0)]};return{'found':![]};}function firstPresent(..._0x3e513f){for(const _0x54496b of _0x3e513f){if(_0x54496b!==undefined&&_0x54496b!==null)return{'found':!![],'value':_0x54496b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2872f9,_0x1d6503){const _0x453761=a59_0x3ee680;if(_0x1d6503===undefined)return;const _0x80163a=normalizeBusinessGroup(_0x1d6503);if(_0x2872f9!==_0x80163a)throw CliErrors[_0x453761(0xb9)](_0x453761(0xd8),_0x453761(0xae)+JSON[_0x453761(0xb0)](_0x80163a)+_0x453761(0xb6)+JSON[_0x453761(0xb0)](_0x2872f9));}function buildBackendPayload(_0x20f6d1,_0x17cb56,_0x25f3b1){return{'appCode':_0x20f6d1,'datasetCode':_0x17cb56['code'],'businessGroup':_0x25f3b1};}function normalizeBusinessGroup(_0x16d121){const _0x40a39b=a59_0x3ee680;if(_0x16d121===undefined||_0x16d121===null)return'';return String(_0x16d121)[_0x40a39b(0xca)]();}function asPlainObject(_0x10c06b){const _0x1b3cc4=a59_0x3ee680;if(!_0x10c06b||typeof _0x10c06b!==_0x1b3cc4(0xec)||Array[_0x1b3cc4(0xc7)](_0x10c06b))return{};return _0x10c06b;}function a59_0xc4b8(_0x2dc6c4,_0x164a6f){_0x2dc6c4=_0x2dc6c4-0xaa;const _0x202b3e=a59_0x202b();let _0xc4b82d=_0x202b3e[_0x2dc6c4];return _0xc4b82d;}function firstString(..._0x3cc423){const _0xc81543=a59_0x3ee680;for(const _0x2de9e1 of _0x3cc423){if(typeof _0x2de9e1===_0xc81543(0xe1)&&_0x2de9e1[_0xc81543(0xca)]())return _0x2de9e1[_0xc81543(0xca)]();if(typeof _0x2de9e1===_0xc81543(0xdc)&&Number[_0xc81543(0xe3)](_0x2de9e1))return String(_0x2de9e1);}return undefined;}function firstNumber(..._0x283e36){const _0x3eed23=a59_0x3ee680;for(const _0x5df6cf of _0x283e36){if(typeof _0x5df6cf===_0x3eed23(0xdc)&&Number[_0x3eed23(0xe3)](_0x5df6cf))return _0x5df6cf;if(typeof _0x5df6cf===_0x3eed23(0xe1)&&_0x5df6cf[_0x3eed23(0xca)]()&&Number[_0x3eed23(0xe3)](Number(_0x5df6cf)))return Number(_0x5df6cf);}return null;}function trim(_0x17ef97){const _0xb925f3=a59_0x3ee680;return String(_0x17ef97||'')[_0xb925f3(0xca)]();}
|
|
1
|
+
function a59_0x2ad1(){const _0x2fab9d=[',\x20actual\x20','code','Expectation\x20mismatch\x20at\x20businessGroup','171024jutbYU','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','name','object','matched','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','business-group','call','message','source','appCode','51301HeMvdX','stringify','DB_TABLE','value','1430444KKYzMw','data','dataset','12AuIptM','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Expected\x20','length','--code\x20is\x20required','/smartapi/question/er-config/business-group/edit','5EXTFSd','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','number','modelId','payload','backend','140LJUsyK','expectBusinessGroup','validation','str','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','168543PUTvGq','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','POST','datasetName','trim','found','METADATA','6037872VgMPQB','84wRxPvL','--business-group\x20is\x20required','isFinite','526674KDjLIx','datasetId','dbtableConfig','string','sourceType','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','prototype','apiError','extend','isArray','unchanged','2516748xwALap','businessGroup','187KvYoao'];a59_0x2ad1=function(){return _0x2fab9d;};return a59_0x2ad1();}const a59_0x324659=a59_0x427a;(function(_0x184bad,_0x580ea3){const _0x274537=a59_0x427a,_0x11815b=_0x184bad();while(!![]){try{const _0x42c508=-parseInt(_0x274537(0xd9))/0x1*(parseInt(_0x274537(0xe0))/0x2)+parseInt(_0x274537(0x10d))/0x3+parseInt(_0x274537(0xdd))/0x4*(-parseInt(_0x274537(0xe6))/0x5)+parseInt(_0x274537(0xfc))/0x6*(-parseInt(_0x274537(0xf9))/0x7)+-parseInt(_0x274537(0xf8))/0x8+-parseInt(_0x274537(0xf1))/0x9*(parseInt(_0x274537(0xec))/0xa)+-parseInt(_0x274537(0x109))/0xb*(-parseInt(_0x274537(0x107))/0xc);if(_0x42c508===_0x580ea3)break;else _0x11815b['push'](_0x11815b['shift']());}catch(_0x198ccd){_0x11815b['push'](_0x11815b['shift']());}}}(a59_0x2ad1,0xd87c4));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_0x324659(0xe5);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x5e7a57,input:_0x330d44,dryRun:_0x221359}){const _0x23cf97=a59_0x324659;validateInput(_0x330d44);const _0x1a69e3=normalizeBusinessGroup(_0x330d44['businessGroup']),_0x2ea6f8=await getDatasetDetail(_0x330d44[_0x23cf97(0x10b)]),_0x1c62f6=resolveBusinessGroupDataset(_0x2ea6f8,_0x330d44[_0x23cf97(0x10b)]),_0x4d7fb0=loadCurrentBusinessGroup(_0x2ea6f8,_0x1c62f6);assertExpectedBusinessGroup(_0x4d7fb0,_0x330d44[_0x23cf97(0xed)]);const _0x4b4c64=buildBackendPayload(_0x5e7a57,_0x1c62f6,_0x1a69e3),_0x25e8ce=_0x4d7fb0!==_0x1a69e3;let _0x3872a8;if(_0x25e8ce&&!_0x221359){await updateErBusinessGroup(_0x4b4c64);const _0x1930a2=await getDatasetDetail(_0x1c62f6[_0x23cf97(0x10b)]),_0x1839d9=resolveBusinessGroupDataset(_0x1930a2,_0x1c62f6[_0x23cf97(0x10b)]),_0x542b24=loadCurrentBusinessGroup(_0x1930a2,_0x1839d9);if(_0x542b24!==_0x1a69e3)throw CliErrors[_0x23cf97(0x103)](_0x23cf97(0x101),'Expected\x20'+JSON['stringify'](_0x1a69e3)+_0x23cf97(0x10a)+JSON[_0x23cf97(0xda)](_0x542b24)+'.');_0x3872a8={'verified':!![],'status':_0x23cf97(0xd2),'afterReadback':{'businessGroup':_0x542b24}};}else!_0x25e8ce&&(_0x3872a8={'verified':!![],'status':_0x23cf97(0x106),'afterReadback':{'businessGroup':_0x4d7fb0}});const _0xdf668c={'operation':'update','appCode':_0x5e7a57,'selector':{'code':_0x1c62f6[_0x23cf97(0x10b)]},'dataset':_0x1c62f6,'before':{'businessGroup':_0x4d7fb0},'after':{'businessGroup':_0x1a69e3},'changed':_0x25e8ce,'dryRun':_0x221359,'submitted':_0x25e8ce&&!_0x221359,'backend':{'method':_0x23cf97(0xf3),'path':BACKEND_PATH,'payload':_0x4b4c64},..._0x3872a8?{'verification':_0x3872a8}:{},'warnings':[]};return{'ok':!![],'data':_0xdf668c,'message':_0x25e8ce?_0x221359?_0x23cf97(0xf2)+_0x1c62f6[_0x23cf97(0x10b)]:_0x23cf97(0x10f)+_0x1c62f6[_0x23cf97(0x10b)]:_0x23cf97(0xe1)+_0x1c62f6[_0x23cf97(0x10b)]};}export const datasetBusinessGroupUpdate={'service':a59_0x324659(0xdf),'command':'business-group-update','description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':a59_0x324659(0xd4),'type':a59_0x324659(0xff),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it'},{'name':'expect-business-group','type':a59_0x324659(0xff),'required':![],'description':a59_0x324659(0xf0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4c2b7c){validateInput(readBusinessGroupUpdateInput(_0x4c2b7c));},async 'dryRun'(_0x32253c){const _0x144847=a59_0x324659,_0x59d83a=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x32253c[_0x144847(0xd8)],'input':readBusinessGroupUpdateInput(_0x32253c),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x59d83a[_0x144847(0xde)][_0x144847(0xeb)][_0x144847(0xea)],'description':_0x59d83a[_0x144847(0xd6)],..._0x59d83a[_0x144847(0xde)]};},async 'execute'(_0x19d3ff){const _0x316427=a59_0x324659;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x19d3ff[_0x316427(0xd8)],'input':readBusinessGroupUpdateInput(_0x19d3ff),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0xa62e03){const _0x395799=a59_0x324659,_0x19ca2f=_0xa62e03[_0x395799(0xef)]('expect-business-group');return{'code':trim(_0xa62e03[_0x395799(0xef)]('code')),'businessGroup':_0xa62e03[_0x395799(0xef)]('business-group'),'expectBusinessGroup':_0x19ca2f===undefined||_0x19ca2f===''?undefined:_0x19ca2f};}function validateInput(_0x281a00){const _0x5dcfb2=a59_0x324659;if(!trim(_0x281a00['code']))throw CliErrors[_0x5dcfb2(0xee)](_0x5dcfb2(0xe4));if(_0x281a00[_0x5dcfb2(0x108)]===undefined)throw CliErrors[_0x5dcfb2(0xee)](_0x5dcfb2(0xfa));}function a59_0x427a(_0x450daa,_0x974c3d){_0x450daa=_0x450daa-0xd0;const _0x2ad14e=a59_0x2ad1();let _0x427adb=_0x2ad14e[_0x450daa];return _0x427adb;}function resolveBusinessGroupDataset(_0xafaffa,_0x1b486d){const _0x49c43d=a59_0x324659,_0x40518e=asPlainObject(_0xafaffa[_0x49c43d(0xdf)]),_0x1f8f3b=asPlainObject(_0xafaffa[_0x49c43d(0xfe)]),_0x127d7d=resolveSourceType(_0xafaffa,_0x40518e,_0x1f8f3b),_0x226833=firstString(_0xafaffa['modelCode'],_0xafaffa['code'],_0x40518e['datasetCode'],_0x1b486d)||_0x1b486d;return{'id':firstNumber(_0xafaffa['modelId'],_0xafaffa['id'],_0x40518e[_0x49c43d(0xfd)])??firstString(_0xafaffa[_0x49c43d(0xe9)],_0xafaffa['id'],_0x40518e[_0x49c43d(0xfd)])??null,'code':_0x226833,'name':firstString(_0xafaffa[_0x49c43d(0xd0)],_0x40518e[_0x49c43d(0xf4)],_0x40518e[_0x49c43d(0xd0)])||null,'sourceType':_0x127d7d};}function resolveSourceType(_0x1ae697,_0x2c4fd1,_0xaf5f67){const _0x142922=a59_0x324659,_0x369865=firstString(_0x1ae697[_0x142922(0xd7)],_0x1ae697[_0x142922(0x100)],_0x2c4fd1[_0x142922(0xd7)],_0x2c4fd1['sourceType'])?.[_0x142922(0xf5)]()['toUpperCase']();if(_0x369865===_0x142922(0xdb)||_0x369865===_0x142922(0xf7))return _0x369865;if(Object['keys'](_0xaf5f67)[_0x142922(0xe3)]>0x0)return _0x142922(0xdb);throw CliErrors[_0x142922(0xee)](_0x142922(0x10e));}function loadCurrentBusinessGroup(_0x369615,_0x3722e3){const _0x493242=a59_0x324659,_0x3cf507=readBusinessGroupFromDatasetDetail(_0x369615,_0x3722e3[_0x493242(0x100)]);if(_0x3cf507[_0x493242(0xf6)])return normalizeBusinessGroup(_0x3cf507[_0x493242(0xdc)]);if(_0x3722e3[_0x493242(0x100)]===_0x493242(0xf7))return'';throw CliErrors[_0x493242(0xee)](_0x493242(0xe7),_0x493242(0xd3));}function readBusinessGroupFromDatasetDetail(_0x27a03d,_0x3d4510){const _0xb84c18=a59_0x324659,_0x15c057=asPlainObject(_0x27a03d[_0xb84c18(0xdf)]),_0x1d8ded=firstPresent(_0x27a03d['businessGroup']);if(_0x1d8ded[_0xb84c18(0xf6)])return _0x1d8ded;const _0x4ee95a=firstPresent(_0x15c057[_0xb84c18(0x108)]);if(_0x4ee95a['found'])return _0x4ee95a;if(_0x3d4510===_0xb84c18(0xdb))return{'found':![]};const _0x5d0c86=readBusinessGroupFromExtend(_0x27a03d[_0xb84c18(0x104)]);if(_0x5d0c86[_0xb84c18(0xf6)])return _0x5d0c86;return readBusinessGroupFromExtend(_0x15c057['extend']);}function readBusinessGroupFromExtend(_0x3dfc62){const _0x39e20c=a59_0x324659;if(_0x3dfc62===undefined||_0x3dfc62===null||_0x3dfc62==='')return{'found':![]};if(typeof _0x3dfc62===_0x39e20c(0xff))try{const _0x3e08be=JSON['parse'](_0x3dfc62);return readBusinessGroupFromExtend(_0x3e08be);}catch{return{'found':![]};}const _0x2759d0=asPlainObject(_0x3dfc62);if(Object[_0x39e20c(0x102)]['hasOwnProperty'][_0x39e20c(0xd5)](_0x2759d0,_0x39e20c(0x108)))return{'found':!![],'value':_0x2759d0[_0x39e20c(0x108)]};return{'found':![]};}function firstPresent(..._0x440dfc){for(const _0xfd53c8 of _0x440dfc){if(_0xfd53c8!==undefined&&_0xfd53c8!==null)return{'found':!![],'value':_0xfd53c8};}return{'found':![]};}function assertExpectedBusinessGroup(_0x5d9261,_0x13d15a){const _0x403310=a59_0x324659;if(_0x13d15a===undefined)return;const _0xf6e387=normalizeBusinessGroup(_0x13d15a);if(_0x5d9261!==_0xf6e387)throw CliErrors[_0x403310(0xee)](_0x403310(0x10c),_0x403310(0xe2)+JSON['stringify'](_0xf6e387)+_0x403310(0x10a)+JSON[_0x403310(0xda)](_0x5d9261));}function buildBackendPayload(_0x4b38d3,_0x26d84a,_0x319790){return{'appCode':_0x4b38d3,'datasetCode':_0x26d84a['code'],'businessGroup':_0x319790};}function normalizeBusinessGroup(_0x554797){const _0x3cc84b=a59_0x324659;if(_0x554797===undefined||_0x554797===null)return'';return String(_0x554797)[_0x3cc84b(0xf5)]();}function asPlainObject(_0x7f8917){const _0x3b648e=a59_0x324659;if(!_0x7f8917||typeof _0x7f8917!==_0x3b648e(0xd1)||Array[_0x3b648e(0x105)](_0x7f8917))return{};return _0x7f8917;}function firstString(..._0x4b288b){const _0x1a2f95=a59_0x324659;for(const _0x5165f5 of _0x4b288b){if(typeof _0x5165f5===_0x1a2f95(0xff)&&_0x5165f5[_0x1a2f95(0xf5)]())return _0x5165f5[_0x1a2f95(0xf5)]();if(typeof _0x5165f5===_0x1a2f95(0xe8)&&Number[_0x1a2f95(0xfb)](_0x5165f5))return String(_0x5165f5);}return undefined;}function firstNumber(..._0x480730){const _0x430b93=a59_0x324659;for(const _0x3d43f4 of _0x480730){if(typeof _0x3d43f4===_0x430b93(0xe8)&&Number['isFinite'](_0x3d43f4))return _0x3d43f4;if(typeof _0x3d43f4===_0x430b93(0xff)&&_0x3d43f4[_0x430b93(0xf5)]()&&Number[_0x430b93(0xfb)](Number(_0x3d43f4)))return Number(_0x3d43f4);}return null;}function trim(_0x3c68fb){const _0x326351=a59_0x324659;return String(_0x3c68fb||'')[_0x326351(0xf5)]();}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DatasetItem } from "../../core/api-client.js";
|
|
2
|
+
export declare const RUNTIME_DATA_ACCESS_COMMANDS: {
|
|
3
|
+
readonly cli: "lovrabet";
|
|
4
|
+
readonly filter: "lovrabet data filter --code <datasetCode> --params '<json>' --format compress";
|
|
5
|
+
readonly getOne: "lovrabet data getOne --code <datasetCode> --params '{\"id\":123}' --format compress";
|
|
6
|
+
};
|
|
7
|
+
export declare const RUNTIME_DATA_ACCESS_SUMMARY = "Use lovrabet data filter/getOne for real runtime records.";
|
|
8
|
+
export declare function isDbTableBackedDataset(dataset: DatasetItem | Record<string, any>): boolean;
|
|
9
|
+
export declare function filterDbTableBackedDatasets<T extends DatasetItem | Record<string, any>>(datasets: T[]): T[];
|
|
10
|
+
export declare function buildDbTableBackedRequirementMessage(dataset: DatasetItem | Record<string, any>, assetName?: string): string;
|
|
11
|
+
export declare function assertDatasetIsDbTableBacked(dataset: DatasetItem | Record<string, any>, assetName?: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60_0x2e442c=a60_0x4a2f;(function(_0x20fffa,_0x2f4e80){const _0x3040f0=a60_0x4a2f,_0x5d7250=_0x20fffa();while(!![]){try{const _0x55e037=parseInt(_0x3040f0(0x1e6))/0x1+parseInt(_0x3040f0(0x1e4))/0x2*(parseInt(_0x3040f0(0x1f1))/0x3)+parseInt(_0x3040f0(0x1d8))/0x4*(parseInt(_0x3040f0(0x1e0))/0x5)+parseInt(_0x3040f0(0x1f3))/0x6+-parseInt(_0x3040f0(0x1d7))/0x7*(parseInt(_0x3040f0(0x1f0))/0x8)+-parseInt(_0x3040f0(0x1ea))/0x9*(-parseInt(_0x3040f0(0x1f6))/0xa)+-parseInt(_0x3040f0(0x1f5))/0xb*(parseInt(_0x3040f0(0x1dd))/0xc);if(_0x55e037===_0x2f4e80)break;else _0x5d7250['push'](_0x5d7250['shift']());}catch(_0x3174e0){_0x5d7250['push'](_0x5d7250['shift']());}}}(a60_0x46c9,0x66561));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x2e442c(0x1e2),'filter':a60_0x2e442c(0x1e8),'getOne':a60_0x2e442c(0x1db)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x2e442c(0x1f8);function a60_0x4a2f(_0x2049f1,_0x1dd86e){_0x2049f1=_0x2049f1-0x1d7;const _0x46c908=a60_0x46c9();let _0x4a2f72=_0x46c908[_0x2049f1];return _0x4a2f72;}function valueToString(_0xea0565){return _0xea0565==null?'':String(_0xea0565)['trim']();}function a60_0x46c9(){const _0x483f38=['dataset','21138372EewYSO','datasetName','source','10ydnjWI','\x20是\x20','lovrabet','METADATA','16vrzyMd','modelCode','781692bzbPjP','join','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','filter','27sUkvrv','length','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','dbtableConfig','datasetCode','validation','1862488aiDTdQ','44661INoFRA','\x20的\x20DB_TABLE\x20数据源上下文。','2543958JhLTna','sourceType','11UFhDge','1080920glRcug','unknown','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','toUpperCase','object','tableName','SQL\x20schema\x20validation','7TxppNk','1528908iIbAof','UNKNOWN','dbId','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'];a60_0x46c9=function(){return _0x483f38;};return a60_0x46c9();}function getDatasetCode(_0x494525){const _0x5d350f=a60_0x2e442c;return valueToString(_0x494525['code']??_0x494525[_0x5d350f(0x1e5)]??_0x494525[_0x5d350f(0x1dc)]?.[_0x5d350f(0x1ee)]);}function getDatasetName(_0x4d775e){const _0x5076cb=a60_0x2e442c;return valueToString(_0x4d775e['name']??_0x4d775e[_0x5076cb(0x1dc)]?.[_0x5076cb(0x1de)])||_0x5076cb(0x1f7);}function getDatasetSource(_0x2137de){const _0x1e1034=a60_0x2e442c;return valueToString(_0x2137de[_0x1e1034(0x1df)]??_0x2137de[_0x1e1034(0x1dc)]?.[_0x1e1034(0x1f4)])[_0x1e1034(0x1f9)]();}function getDbtableConfig(_0x89e0ba){const _0x569a67=a60_0x2e442c,_0x51a5c8=_0x89e0ba[_0x569a67(0x1ed)]??_0x89e0ba['dbtable'];return _0x51a5c8&&typeof _0x51a5c8===_0x569a67(0x1fa)?_0x51a5c8:{};}export function isDbTableBackedDataset(_0x1043c9){const _0x4f8e84=a60_0x2e442c,_0x437c4c=getDatasetSource(_0x1043c9);if(_0x437c4c===_0x4f8e84(0x1e3))return![];const _0x1e2b12=getDbtableConfig(_0x1043c9),_0x52daa0=_0x1e2b12[_0x4f8e84(0x1da)]??_0x1e2b12['id'],_0x2149de=valueToString(_0x1e2b12[_0x4f8e84(0x1fb)]??_0x1043c9[_0x4f8e84(0x1fb)]??_0x1043c9['dataset']?.[_0x4f8e84(0x1fb)]);return _0x52daa0!==undefined&&_0x52daa0!==null&&_0x2149de[_0x4f8e84(0x1eb)]>0x0;}export function filterDbTableBackedDatasets(_0x532405){const _0x3921db=a60_0x2e442c;return _0x532405[_0x3921db(0x1e9)](_0x5e1560=>isDbTableBackedDataset(_0x5e1560));}export function buildDbTableBackedRequirementMessage(_0x3629ca,_0x43e9cf=a60_0x2e442c(0x1fc)){const _0x3c6025=a60_0x2e442c,_0x41b8b6=getDatasetSource(_0x3629ca)||_0x3c6025(0x1d9),_0x4a2c96=getDatasetName(_0x3629ca),_0x3a6d99=getDatasetCode(_0x3629ca),_0x5231c9=_0x3a6d99?'\x20('+_0x3a6d99+')':'';return['当前数据集\x20\x22'+_0x4a2c96+'\x22'+_0x5231c9+_0x3c6025(0x1e1)+_0x41b8b6+'\x20类型,没有可用于\x20'+_0x43e9cf+_0x3c6025(0x1f2),'原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0x3c6025(0x1ec)+RUNTIME_DATA_ACCESS_COMMANDS[_0x3c6025(0x1e9)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x3c6025(0x1e7)]('\x20');}export function assertDatasetIsDbTableBacked(_0x201687,_0xf12968){const _0x3c3762=a60_0x2e442c;if(!isDbTableBackedDataset(_0x201687))throw CliErrors[_0x3c3762(0x1ef)](buildDbTableBackedRequirementMessage(_0x201687,_0xf12968));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x5c2baf=a61_0x5f42;function a61_0x5f42(_0x41d16b,_0xc17f33){_0x41d16b=_0x41d16b-0xb0;const _0x460cca=a61_0x460c();let _0x5f42c0=_0x460cca[_0x41d16b];return _0x5f42c0;}(function(_0x493226,_0x2bd4f6){const _0x35d3a9=a61_0x5f42,_0xdcfbd1=_0x493226();while(!![]){try{const _0x25ff16=-parseInt(_0x35d3a9(0xb1))/0x1*(parseInt(_0x35d3a9(0xc1))/0x2)+-parseInt(_0x35d3a9(0xc2))/0x3+parseInt(_0x35d3a9(0xbc))/0x4*(-parseInt(_0x35d3a9(0xb3))/0x5)+parseInt(_0x35d3a9(0xb2))/0x6+-parseInt(_0x35d3a9(0xc8))/0x7*(-parseInt(_0x35d3a9(0xce))/0x8)+-parseInt(_0x35d3a9(0xb0))/0x9*(-parseInt(_0x35d3a9(0xba))/0xa)+-parseInt(_0x35d3a9(0xc9))/0xb;if(_0x25ff16===_0x2bd4f6)break;else _0xdcfbd1['push'](_0xdcfbd1['shift']());}catch(_0x5807f1){_0xdcfbd1['push'](_0xdcfbd1['shift']());}}}(a61_0x460c,0x65bc1));function a61_0x460c(){const _0x3bc4c3=['code','number','num','description','10esxfGX','dbtableConfig','12SWTpUq','Deleted\x20','/smartapi/dataset/delete-dataset','deleted','\x20failed','14jBuOpf','364812wFZQwR','appCode','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','push','confirm','No\x20undeleted\x20dataset\x20found\x20for\x20','364ePPjFp','825495nrfxwJ','filter','length','Would\x20delete\x20','relatedPageInfoList','40024oGBRII','isArray','validation','tableName','message','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbid','source','bool','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','Required\x20to\x20execute\x20dataset\x20deletion','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','expected-count','dbid=','boolean','Matched\x20','\x20dataset(s)','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','high-risk-write','\x20dataset(s);\x20','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','str','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','6572061cAfKIH','115237DMerkK','4395606EyyyFV','504955eGsGCl','id=','dbName'];a61_0x460c=function(){return _0x3bc4c3;};return a61_0x460c();}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':a61_0x5c2baf(0xb7),'description':'Dataset\x20id'},DBID_FLAG={'name':a61_0x5c2baf(0xd4),'type':'number','description':a61_0x5c2baf(0xe2)},CONFIRM_FLAG={'name':a61_0x5c2baf(0xc6),'type':a61_0x5c2baf(0xdc),'description':a61_0x5c2baf(0xd8)},EXPECTED_COUNT_FLAG={'name':a61_0x5c2baf(0xda),'type':a61_0x5c2baf(0xb7),'description':a61_0x5c2baf(0xd3)};export const datasetDelete={'service':'dataset','command':'delete','description':a61_0x5c2baf(0xd7),'risk':a61_0x5c2baf(0xe0),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x35597f){const _0x3d5963=a61_0x5c2baf,_0x53bdf0=_0x35597f[_0x3d5963(0xb8)]('id'),_0x1e2141=_0x35597f[_0x3d5963(0xe3)](_0x3d5963(0xb6)),_0x20f1fb=_0x35597f[_0x3d5963(0xb8)](_0x3d5963(0xd4)),_0xc25274=[_0x53bdf0>0x0,Boolean(_0x1e2141),_0x20f1fb>0x0][_0x3d5963(0xca)](Boolean);if(_0xc25274[_0x3d5963(0xcb)]===0x0)throw CliErrors[_0x3d5963(0xd0)](_0x3d5963(0xdf));if(_0xc25274[_0x3d5963(0xcb)]>0x1)throw CliErrors[_0x3d5963(0xd0)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x11480b){const _0x31a243=a61_0x5c2baf,_0x20357c=await resolveTargets(_0x11480b);return{'method':'POST','url':_0x31a243(0xbe),'body':{'appCode':_0x11480b['appCode'],'count':_0x20357c[_0x31a243(0xcb)],'datasets':_0x20357c},'description':_0x31a243(0xcc)+_0x20357c[_0x31a243(0xcb)]+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x5eb899){const _0xb11646=a61_0x5c2baf;if(!_0x5eb899[_0xb11646(0xd6)](_0xb11646(0xc6)))throw CliErrors[_0xb11646(0xd0)](_0xb11646(0xe4),_0xb11646(0xc4));const _0x7d26b5=await resolveTargets(_0x5eb899),_0x4db3d0=[],_0x12f2e7=[];for(const _0x1a3612 of _0x7d26b5){try{await deleteDataset(_0x5eb899[_0xb11646(0xc3)],_0x1a3612['id']),_0x4db3d0[_0xb11646(0xc5)](_0x1a3612);}catch(_0x288421){_0x12f2e7[_0xb11646(0xc5)]({..._0x1a3612,'error':_0x288421 instanceof Error?_0x288421[_0xb11646(0xd2)]:String(_0x288421)});}}if(_0x12f2e7[_0xb11646(0xcb)]>0x0)return{'ok':![],'data':{'requested':_0x7d26b5[_0xb11646(0xcb)],'deletedCount':_0x4db3d0[_0xb11646(0xcb)],'failedCount':_0x12f2e7[_0xb11646(0xcb)],'deleted':_0x4db3d0,'failed':_0x12f2e7},'message':_0xb11646(0xbd)+_0x4db3d0[_0xb11646(0xcb)]+'/'+_0x7d26b5[_0xb11646(0xcb)]+_0xb11646(0xe1)+_0x12f2e7[_0xb11646(0xcb)]+_0xb11646(0xc0)};return{'ok':!![],'data':{'requested':_0x7d26b5['length'],'deletedCount':_0x4db3d0[_0xb11646(0xcb)],'deleted':_0x4db3d0},'message':_0xb11646(0xbd)+_0x4db3d0[_0xb11646(0xcb)]+_0xb11646(0xde)};}};async function resolveTargets(_0x1ad203){const _0x9f7e84=a61_0x5c2baf,_0x52d803=_0x1ad203[_0x9f7e84(0xb8)]('id'),_0x325b66=_0x1ad203[_0x9f7e84(0xe3)](_0x9f7e84(0xb6)),_0x3bce8c=_0x1ad203[_0x9f7e84(0xb8)](_0x9f7e84(0xd4));let _0x1b5d5c;_0x325b66?(_0x1b5d5c=await listDatasets(_0x1ad203[_0x9f7e84(0xc3)],{'code':_0x325b66}),_0x1b5d5c=_0x1b5d5c[_0x9f7e84(0xca)](_0x3c93da=>_0x3c93da[_0x9f7e84(0xb6)]===_0x325b66)):(_0x1b5d5c=await listDatasets(_0x1ad203[_0x9f7e84(0xc3)]),_0x52d803>0x0&&(_0x1b5d5c=_0x1b5d5c['filter'](_0x1ebf0c=>_0x1ebf0c['id']===_0x52d803)),_0x3bce8c>0x0&&(_0x1b5d5c=_0x1b5d5c['filter'](_0x507516=>_0x507516[_0x9f7e84(0xbb)]?.['dbId']===_0x3bce8c)));const _0xdd18e9=[];for(const _0xf29b99 of _0x1b5d5c){const _0x3f928e=await getDatasetDetail(_0xf29b99[_0x9f7e84(0xb6)]),_0x5ec2bc=Array[_0x9f7e84(0xcf)](_0x3f928e[_0x9f7e84(0xcd)])?_0x3f928e[_0x9f7e84(0xcd)][_0x9f7e84(0xca)](_0x4765dc=>_0x4765dc!=null&&typeof _0x4765dc==='object'&&_0x4765dc[_0x9f7e84(0xbf)]!==!![]):[];_0xdd18e9[_0x9f7e84(0xc5)](normalizeTarget(_0xf29b99,_0x5ec2bc[_0x9f7e84(0xcb)]));}if(_0xdd18e9[_0x9f7e84(0xcb)]===0x0){const _0x2b82a2=_0x325b66||(_0x52d803>0x0?_0x9f7e84(0xb4)+_0x52d803:_0x9f7e84(0xdb)+_0x3bce8c);throw CliErrors[_0x9f7e84(0xd0)](_0x9f7e84(0xc7)+_0x2b82a2+'.');}const _0x5d7235=_0x1ad203['num'](_0x9f7e84(0xda));if(_0x5d7235>0x0&&_0xdd18e9[_0x9f7e84(0xcb)]!==_0x5d7235)throw CliErrors['validation'](_0x9f7e84(0xdd)+_0xdd18e9[_0x9f7e84(0xcb)]+_0x9f7e84(0xd9)+_0x5d7235+'.');return _0xdd18e9;}function normalizeTarget(_0x38a863,_0x36bf96){const _0x363e17=a61_0x5c2baf,_0x449695=_0x38a863[_0x363e17(0xbb)]??{};return{'id':_0x38a863['id'],'code':_0x38a863[_0x363e17(0xb6)],'name':_0x38a863['name'],'description':_0x38a863[_0x363e17(0xb9)],'source':_0x38a863[_0x363e17(0xd5)],'dbId':_0x449695['dbId'],'dbName':_0x449695[_0x363e17(0xb5)],'tableName':_0x449695[_0x363e17(0xd1)],'relatedPageCount':_0x36bf96};}
|