@lovrabet/rabetbase-cli 2.5.12 → 2.5.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.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/detail.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/logs.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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.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/dataset/batch-design.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/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.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-restore.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/dataset/user-deleted-field-list.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/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.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/table-diff-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/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.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/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/search.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.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- 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/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/api-architecture-upgrade.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/domain-routing-sync.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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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/feishu-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/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.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/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.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/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.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/page/lr-smart-jsx.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/supported-flags.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.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/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/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 +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a199_0x49bd84=a199_0x22e7;(function(_0x4737a6,_0x5199c8){const _0x4e9c69=a199_0x22e7,_0x2bdf52=_0x4737a6();while(!![]){try{const _0x5ed92b=parseInt(_0x4e9c69(0x105))/0x1*(-parseInt(_0x4e9c69(0x123))/0x2)+parseInt(_0x4e9c69(0xf5))/0x3+-parseInt(_0x4e9c69(0x119))/0x4*(-parseInt(_0x4e9c69(0x112))/0x5)+-parseInt(_0x4e9c69(0x11f))/0x6+-parseInt(_0x4e9c69(0x130))/0x7+-parseInt(_0x4e9c69(0x12b))/0x8*(parseInt(_0x4e9c69(0x102))/0x9)+parseInt(_0x4e9c69(0x100))/0xa*(parseInt(_0x4e9c69(0x12c))/0xb);if(_0x5ed92b===_0x5199c8)break;else _0x2bdf52['push'](_0x2bdf52['shift']());}catch(_0x4c727a){_0x2bdf52['push'](_0x2bdf52['shift']());}}}(a199_0x4b3e,0xcc752));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a199_0x22e7(_0x5f3a13,_0x4304e5){_0x5f3a13=_0x5f3a13-0xf2;const _0x4b3eef=a199_0x4b3e();let _0x22e775=_0x4b3eef[_0x5f3a13];return _0x22e775;}import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';function a199_0x4b3e(){const _0x13289b=['num','34MfMwNp','name','Custom_page_','page-pattern','number','/smartapi/webcode/page/create','Would\x20create\x20Custom\x20Page\x20','isNaN','8FakdAe','11lHyVUm','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','BLANK','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','1855063jPhfgp','page.create','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','\x20and\x20its\x20menu\x20entry.','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','write','1980351fYaJcr','menuId','pageName','validation','files','CUSTOM','string','includes','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','apiError','appCode','29430770qKuoxu','values','12974382kMPwnv','pageId','str','52627fjgbkk','length','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','page-content','createMenu','now','toLowerCase','Created\x20Custom\x20Page\x20','parse','isArray','Invalid\x20Custom\x20Page\x20pattern:\x20','keys','ONEPAGE','16535tckVqh','menuPath','parentMenuId','object','isInteger','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','page\x20create\x20does\x20not\x20accept\x20--page-type.','756ZSVSVQ','Custom\x20Page\x20pattern\x20not\x20found:\x20','DASHBOARD','trim','version','../../../templates/custom-pages','4736958NLYiHl','page-dir','parent-menu-id'];a199_0x4b3e=function(){return _0x13289b;};return a199_0x4b3e();}import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x49bd84(0x12e),a199_0x49bd84(0x111),a199_0x49bd84(0x11b)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x49bd84(0x11e));export const pageCreate={'service':'page','command':'create','description':a199_0x49bd84(0x134),'risk':a199_0x49bd84(0xf4),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a199_0x49bd84(0x118),'hint':a199_0x49bd84(0x12d)},{'name':a199_0x49bd84(0x108),'message':a199_0x49bd84(0xfd),'hint':a199_0x49bd84(0x135)}],'flags':[{'name':'name','type':a199_0x49bd84(0xfb),'description':a199_0x49bd84(0x117)},{'name':a199_0x49bd84(0x121),'type':a199_0x49bd84(0x127),'description':a199_0x49bd84(0x132)},{'name':a199_0x49bd84(0x126),'type':a199_0x49bd84(0xfb),'description':a199_0x49bd84(0xf3),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x49bd84(0x120),'type':a199_0x49bd84(0xfb),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x21877b){await readValidatedPageSource(_0x21877b);},async 'dryRun'(_0x321484){const _0x4f90d2=a199_0x49bd84,_0x49a2ed=readInput(_0x321484,await readValidatedPageSource(_0x321484));return{'method':'POST','url':_0x4f90d2(0x128),'body':{'appCode':_0x49a2ed[_0x4f90d2(0xff)],'pageName':_0x49a2ed[_0x4f90d2(0xf7)],..._0x49a2ed[_0x4f90d2(0x114)]!=null?{'parentMenuId':_0x49a2ed[_0x4f90d2(0x114)]}:{},'createMenu':_0x49a2ed[_0x4f90d2(0x109)],'codeContent':_0x49a2ed[_0x4f90d2(0xf9)]},'description':_0x4f90d2(0x129)+JSON['stringify'](_0x49a2ed[_0x4f90d2(0xf7)])+_0x4f90d2(0x133)};},async 'execute'(_0x158f50){const _0x32f46e=a199_0x49bd84,_0x5c58c5=readInput(_0x158f50,await readValidatedPageSource(_0x158f50)),_0x180f83=await createCustomPage(_0x5c58c5);if(!Number[_0x32f46e(0x116)](_0x180f83[_0x32f46e(0x103)])||_0x180f83[_0x32f46e(0x103)]<=0x0)throw CliErrors[_0x32f46e(0xfe)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x3c5a17=buildCustomPageDevelopmentUrl(_0x5c58c5[_0x32f46e(0xff)],_0x180f83[_0x32f46e(0x113)]),_0x11f82e=buildCustomPageEditUrl(_0x5c58c5['appCode'],_0x180f83[_0x32f46e(0x103)]);return{'ok':!![],'data':{'operation':_0x32f46e(0x131),'pageType':_0x32f46e(0xfa),'pagePattern':readPagePattern(_0x158f50),'selector':{'appCode':_0x5c58c5[_0x32f46e(0xff)],'pageName':_0x5c58c5['pageName']},'before':null,'after':{'pageId':_0x180f83[_0x32f46e(0x103)],'pageName':_0x180f83[_0x32f46e(0xf7)],'appCode':_0x180f83[_0x32f46e(0xff)],'version':_0x180f83[_0x32f46e(0x11d)],'menuId':_0x180f83[_0x32f46e(0xf6)],'menuPath':_0x180f83[_0x32f46e(0x113)],'files':_0x180f83[_0x32f46e(0xf9)]??Object[_0x32f46e(0x110)](_0x5c58c5['files'])},'dryRun':![],'request':_0x5c58c5,..._0x3c5a17?{'pageUrl':_0x3c5a17}:{},..._0x11f82e?{'editPageUrl':_0x11f82e}:{},'warnings':_0x3c5a17?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x32f46e(0x10c)+_0x180f83[_0x32f46e(0x103)]+'.'};}};function readPagePattern(_0xfb6a7d){const _0x25f703=a199_0x49bd84,_0x139692=_0xfb6a7d[_0x25f703(0x104)](_0x25f703(0x126))[_0x25f703(0x11c)](),_0x3ffc9d=_0xfb6a7d[_0x25f703(0x104)](_0x25f703(0x120))[_0x25f703(0x11c)]();if(_0x139692&&_0x3ffc9d)throw CliErrors[_0x25f703(0xf8)](_0x25f703(0x107));if(_0x3ffc9d)return null;if(!_0x139692)throw CliErrors[_0x25f703(0xf8)](_0x25f703(0x12f));if(!CUSTOM_PAGE_PATTERNS[_0x25f703(0xfc)](_0x139692))throw CliErrors[_0x25f703(0xf8)](_0x25f703(0xf2));return _0x139692;}async function readPageSource(_0x15b6fd){const _0x29c8e2=a199_0x49bd84,_0x1d4ff6=_0x15b6fd['str'](_0x29c8e2(0x120))['trim'](),_0x10f8ea=readPagePattern(_0x15b6fd);if(_0x10f8ea===null){const _0x2fa712=await readCustomPageDirectory(_0x1d4ff6);if(Object[_0x29c8e2(0x110)](_0x2fa712)[_0x29c8e2(0x106)]===0x0)throw CliErrors[_0x29c8e2(0xf8)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x2fa712;}let _0x493faa;try{_0x493faa=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x10f8ea[_0x29c8e2(0x10b)]()+'.json'),'utf8');}catch{throw CliErrors[_0x29c8e2(0xf8)](_0x29c8e2(0x11a)+_0x10f8ea+'.');}let _0x17835c;try{_0x17835c=JSON[_0x29c8e2(0x10d)](_0x493faa);}catch{throw CliErrors[_0x29c8e2(0xf8)](_0x29c8e2(0x10f)+_0x10f8ea+'.');}if(!_0x17835c||typeof _0x17835c!==_0x29c8e2(0x115)||Array[_0x29c8e2(0x10e)](_0x17835c)||Object[_0x29c8e2(0x101)](_0x17835c)['some'](_0x2f4eb3=>typeof _0x2f4eb3!==_0x29c8e2(0xfb)))throw CliErrors[_0x29c8e2(0xf8)](_0x29c8e2(0x10f)+_0x10f8ea+'.');return _0x17835c;}async function readValidatedPageSource(_0x2b7214){const _0x2e1647=await readPageSource(_0x2b7214);return await validateCustomPageContent(_0x2e1647),_0x2e1647;}function readInput(_0x268255,_0x4a243f){const _0x560b22=a199_0x49bd84,_0x29f241=_0x268255[_0x560b22(0x104)](_0x560b22(0x124))[_0x560b22(0x11c)]()||_0x560b22(0x125)+Date[_0x560b22(0x10a)]();if(_0x29f241[_0x560b22(0x106)]>0x64)throw CliErrors[_0x560b22(0xf8)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x335966=_0x268255[_0x560b22(0x122)]('parent-menu-id',NaN),_0x266227=!Number[_0x560b22(0x12a)](_0x335966);if(_0x266227&&(!Number[_0x560b22(0x116)](_0x335966)||_0x335966<=0x0))throw CliErrors[_0x560b22(0xf8)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x268255[_0x560b22(0xff)],'pageName':_0x29f241,..._0x266227?{'parentMenuId':_0x335966}:{},'createMenu':!![],'files':_0x4a243f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x250496=a200_0xf9c6;(function(_0x219717,_0x500c2f){const _0x316754=a200_0xf9c6,_0x2040ea=_0x219717();while(!![]){try{const _0x54e51f=parseInt(_0x316754(0x102))/0x1+parseInt(_0x316754(0x119))/0x2*(-parseInt(_0x316754(0x117))/0x3)+-parseInt(_0x316754(0x108))/0x4+parseInt(_0x316754(0x118))/0x5+parseInt(_0x316754(0xff))/0x6+-parseInt(_0x316754(0x10f))/0x7+parseInt(_0x316754(0x104))/0x8*(parseInt(_0x316754(0x106))/0x9);if(_0x54e51f===_0x500c2f)break;else _0x2040ea['push'](_0x2040ea['shift']());}catch(_0x1c234c){_0x2040ea['push'](_0x2040ea['shift']());}}}(a200_0xca5e,0xba795));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0xf9c6(_0x319996,_0x32e2db){_0x319996=_0x319996-0xfd;const _0xca5ef3=a200_0xca5e();let _0xf9c69c=_0xca5ef3[_0x319996];return _0xf9c69c;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x250496(0x10c),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0x250496(0x100),'defaultOutputFormat':a200_0x250496(0x105),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x250496(0xfe),'required':!![],'description':a200_0x250496(0x101)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cf247){readCustomPageId(_0x3cf247);},async 'execute'(_0x1f5d61){const _0x4c3037=a200_0x250496,_0x3be617=readCustomPageId(_0x1f5d61),_0x11ab0c=await getCustomPageSource(_0x3be617),{bundle:_0x3b2563,createTime:_0x548556,updateTime:_0x1d7b3c,..._0x4aaba6}=_0x11ab0c,_0x3f9958=_0x11ab0c['id']??_0x3be617,_0x2ebc2b=_0x11ab0c[_0x4c3037(0xfd)]?.[_0x4c3037(0x112)]()||_0x1f5d61[_0x4c3037(0x115)]('appcode')[_0x4c3037(0x112)](),_0x590a21=buildCustomPageRuntimeUrl(_0x2ebc2b,_0x11ab0c[_0x4c3037(0x110)]),_0x10a909=buildCustomPageEditUrl(_0x2ebc2b,_0x3f9958),_0xf4d86f=await resolveCustomPageDevelopmentUrl(_0x2ebc2b,_0x3f9958,_0x1f5d61[_0x4c3037(0x10d)]);return{'ok':!![],'data':{..._0x4aaba6,..._0x590a21?{'runtimePageUrl':_0x590a21}:{},..._0xf4d86f?{'pageUrl':_0xf4d86f}:{},..._0x10a909?{'editPageUrl':_0x10a909}:{},..._0x548556==null?{}:{'createTime':formatTime(_0x548556)},..._0x1d7b3c==null?{}:{'updateTime':formatTime(_0x1d7b3c)}},'message':_0x4c3037(0x109)+_0x3be617+'.'};}};function a200_0xca5e(){const _0x5ea515=['Custom\x20Page\x20ID','101413LJJVTq','getMinutes','8hLgPQR','compress','30351771AioKZx','getFullYear','5496488fzqfTL','Retrieved\x20Custom\x20Page\x20','getMonth','padStart','custom-detail','cookie','getHours','9312226ENgMBl','pageCode','getSeconds','trim','isNaN','join','str','getTime','3HNObaM','1961645mdOvAL','1715630EePCAt','appCode','number','2759346fHtDHG','read'];a200_0xca5e=function(){return _0x5ea515;};return a200_0xca5e();}function formatTime(_0x278fc8){const _0x22c883=a200_0x250496,_0x548b75=new Date(_0x278fc8);if(Number[_0x22c883(0x113)](_0x548b75[_0x22c883(0x116)]()))return String(_0x278fc8);const _0x4e765b=[_0x548b75[_0x22c883(0x107)](),String(_0x548b75[_0x22c883(0x10a)]()+0x1)[_0x22c883(0x10b)](0x2,'0'),String(_0x548b75['getDate']())[_0x22c883(0x10b)](0x2,'0')][_0x22c883(0x114)]('-'),_0x351e7a=[String(_0x548b75[_0x22c883(0x10e)]())[_0x22c883(0x10b)](0x2,'0'),String(_0x548b75[_0x22c883(0x103)]())[_0x22c883(0x10b)](0x2,'0'),String(_0x548b75[_0x22c883(0x111)]())[_0x22c883(0x10b)](0x2,'0')][_0x22c883(0x114)](':');return _0x4e765b+'\x20'+_0x351e7a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a201_0x4820(_0x54b262,_0x139d85){_0x54b262=_0x54b262-0xc1;const _0x5ed400=a201_0x5ed4();let _0x48202f=_0x5ed400[_0x54b262];return _0x48202f;}function a201_0x5ed4(){const _0x21e7ba=['compress','554855jKyBLt','329541mhivwD','4jsRlyp','label','915399RSNpEX','Found\x20','246056jcNnYH','\x20Custom\x20Page(s).','appCode','6cZJpNo','25117ILtmyc','page','739739MNywvH','length','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','No\x20Custom\x20Pages\x20found.','path','cookie','flatMap','type','998790kwLsni','pageId','read'];a201_0x5ed4=function(){return _0x21e7ba;};return a201_0x5ed4();}const a201_0x437ff5=a201_0x4820;(function(_0x5e34a3,_0x47c44e){const _0x2e9256=a201_0x4820,_0x25a9d0=_0x5e34a3();while(!![]){try{const _0x11a5d4=parseInt(_0x2e9256(0xc4))/0x1*(parseInt(_0x2e9256(0xc3))/0x2)+-parseInt(_0x2e9256(0xd3))/0x3*(-parseInt(_0x2e9256(0xd4))/0x4)+parseInt(_0x2e9256(0xd2))/0x5+-parseInt(_0x2e9256(0xce))/0x6+parseInt(_0x2e9256(0xc6))/0x7+-parseInt(_0x2e9256(0xd8))/0x8+-parseInt(_0x2e9256(0xd6))/0x9;if(_0x11a5d4===_0x47c44e)break;else _0x25a9d0['push'](_0x25a9d0['shift']());}catch(_0x166521){_0x25a9d0['push'](_0x25a9d0['shift']());}}}(a201_0x5ed4,0x19201));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x437ff5(0xc5),'command':'custom-list','description':a201_0x437ff5(0xc8),'risk':a201_0x437ff5(0xd0),'defaultOutputFormat':a201_0x437ff5(0xd1),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a1117){const _0x1d7fd8=a201_0x437ff5,_0x180101=(await fetchMenuSnapshot(_0x1a1117['appCode'],_0x1a1117[_0x1d7fd8(0xcb)]))['menus'][_0x1d7fd8(0xcc)](_0x5ded69=>{const _0x203650=_0x1d7fd8;if(_0x5ded69[_0x203650(0xcd)]!=='react'||_0x5ded69['pageId']==null)return[];const _0x2c8e9e=buildCustomPageDevelopmentUrl(_0x1a1117[_0x203650(0xc2)],_0x5ded69[_0x203650(0xca)]),_0x103648=buildCustomPageRuntimeUrl(_0x1a1117['appCode'],_0x5ded69[_0x203650(0xca)]),_0x2917ce=buildCustomPageEditUrl(_0x1a1117[_0x203650(0xc2)],_0x5ded69['pageId']);return[{'pageId':_0x5ded69[_0x203650(0xcf)],'label':_0x5ded69[_0x203650(0xd5)],'path':_0x5ded69['path'],..._0x2c8e9e?{'pageUrl':_0x2c8e9e}:{},..._0x103648?{'runtimePageUrl':_0x103648}:{},..._0x2917ce?{'editPageUrl':_0x2917ce}:{}}];});return{'ok':!![],'data':{'pages':_0x180101},'message':_0x180101['length']===0x0?_0x1d7fd8(0xc9):_0x1d7fd8(0xd7)+_0x180101[_0x1d7fd8(0xc7)]+_0x1d7fd8(0xc1)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a202_0x47bb(){const _0x4dfe7d=['page.custom-publish','316kcoVyO','30035GxorpK','78nZjZaK','write','str','trim','warnings','812580WPqqWQ','isInteger','page','1389ucHjpG','compress','847952NYZReb','status','Optional\x20publish\x20remark','custom-publish','3701992olPKxI','1220418WScZKT','cookie','string','6580bjIwKx','pageId','pageCode','FORMAL','remark','appCode','runtimePageUrl','number','unknown','6075vZQIYU','apiError','/smartapi/webcode/file/publish','Custom\x20Page\x20ID','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a202_0x47bb=function(){return _0x4dfe7d;};return a202_0x47bb();}const a202_0x1697f5=a202_0x599b;(function(_0x4065cb,_0x1ee7df){const _0x2fb6bc=a202_0x599b,_0x24353f=_0x4065cb();while(!![]){try{const _0xb1b216=parseInt(_0x2fb6bc(0x72))/0x1+-parseInt(_0x2fb6bc(0x8b))/0x2+-parseInt(_0x2fb6bc(0x8e))/0x3*(parseInt(_0x2fb6bc(0x84))/0x4)+parseInt(_0x2fb6bc(0x85))/0x5*(parseInt(_0x2fb6bc(0x86))/0x6)+-parseInt(_0x2fb6bc(0x90))/0x7+-parseInt(_0x2fb6bc(0x71))/0x8+-parseInt(_0x2fb6bc(0x7e))/0x9*(-parseInt(_0x2fb6bc(0x75))/0xa);if(_0xb1b216===_0x1ee7df)break;else _0x24353f['push'](_0x24353f['shift']());}catch(_0x2ab269){_0x24353f['push'](_0x24353f['shift']());}}}(a202_0x47bb,0xaec83));function a202_0x599b(_0x1b7619,_0x592cd6){_0x1b7619=_0x1b7619-0x6f;const _0x47bb07=a202_0x47bb();let _0x599b71=_0x47bb07[_0x1b7619];return _0x599b71;}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x1697f5(0x8d),'command':a202_0x1697f5(0x70),'description':a202_0x1697f5(0x82),'risk':a202_0x1697f5(0x87),'defaultOutputFormat':a202_0x1697f5(0x8f),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x1697f5(0x7c),'required':!![],'description':a202_0x1697f5(0x81)},{'name':a202_0x1697f5(0x79),'type':a202_0x1697f5(0x74),'description':a202_0x1697f5(0x6f)}],async 'validate'(_0x3f0886){readCustomPageId(_0x3f0886);},async 'dryRun'(_0x636f1c){const _0x3e05ee=a202_0x1697f5,_0x587fdd=readInput(_0x636f1c);return{'method':'POST','url':_0x3e05ee(0x80),'body':{'id':_0x587fdd[_0x3e05ee(0x76)],..._0x587fdd[_0x3e05ee(0x79)]?{'remark':_0x587fdd['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x587fdd[_0x3e05ee(0x76)]+'.'};},async 'execute'(_0xb34de9){const _0x987b69=a202_0x1697f5,_0x3f2b89=readInput(_0xb34de9);await getCustomPageSource(_0x3f2b89[_0x987b69(0x76)]);const _0x1480f1=await publishCustomPage(_0x3f2b89);if(!Number[_0x987b69(0x8c)](_0x1480f1)||_0x1480f1!==_0x3f2b89['pageId'])throw CliErrors['apiError']('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x1a2d7f=await getCustomPageSource(_0x3f2b89[_0x987b69(0x76)]);if(_0x1a2d7f[_0x987b69(0x91)]!==_0x987b69(0x78))throw CliErrors[_0x987b69(0x7f)]('Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20'+(_0x1a2d7f[_0x987b69(0x91)]??_0x987b69(0x7d))+'.');const _0x460836=_0x1a2d7f[_0x987b69(0x7a)]?.['trim'](),_0x589976=buildCustomPageEditUrl(_0x460836,_0x3f2b89[_0x987b69(0x76)]),_0x3a370f=await resolveCustomPageDevelopmentUrl(_0x460836,_0x3f2b89[_0x987b69(0x76)],_0xb34de9[_0x987b69(0x73)]),_0x254f9e=buildMutationData(_0x3f2b89,!![],_0x3a370f,_0x589976);_0x460836&&!_0x3a370f&&_0x254f9e[_0x987b69(0x8a)]['push']('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x3c2164=buildCustomPageRuntimeUrl(_0x1a2d7f[_0x987b69(0x7a)],_0x1a2d7f[_0x987b69(0x77)]);return _0x3c2164?_0x254f9e[_0x987b69(0x7b)]=_0x3c2164:_0x254f9e['warnings']['push']('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x254f9e,'message':'Published\x20Custom\x20Page\x20'+_0x3f2b89[_0x987b69(0x76)]+'.'};}};function readInput(_0x53f01b){const _0x5be0ac=a202_0x1697f5,_0x3f6627=readCustomPageId(_0x53f01b),_0x4b845c=_0x53f01b[_0x5be0ac(0x88)](_0x5be0ac(0x79))[_0x5be0ac(0x89)]();return{'pageId':_0x3f6627,..._0x4b845c?{'remark':_0x4b845c}:{}};}function buildMutationData(_0x1526f3,_0x474afd=![],_0x21376d,_0x936593){const _0x321a34=a202_0x1697f5;return{'operation':_0x321a34(0x83),'selector':{'pageId':_0x1526f3['pageId']},'before':null,'after':{'pageId':_0x1526f3[_0x321a34(0x76)],'status':_0x321a34(0x78)},'dryRun':!_0x474afd,'request':_0x1526f3,..._0x21376d?{'pageUrl':_0x21376d}:{},..._0x936593?{'editPageUrl':_0x936593}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x5c7c96=a203_0x42ea;function a203_0x4bc4(){const _0x67bb3a=['740448oCzLOU','495HhJXKE','86728LiorGN','path','validation','length','Invalid\x20Custom\x20Page\x20content:\x20','isInteger','1268474serPBX','/pages/','5555394lkvrLL','type','2571850KvWGeH','1TditBs','93261fNkNnO','696620wgWpFh','react','344vEOCDo','/ide/','trim','find','195XUZarc','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','join','num','file','--id\x20must\x20be\x20a\x20positive\x20integer.','map'];a203_0x4bc4=function(){return _0x67bb3a;};return a203_0x4bc4();}(function(_0x5ab6a5,_0x1c46f4){const _0x501902=a203_0x42ea,_0x656aeb=_0x5ab6a5();while(!![]){try{const _0x3d688e=-parseInt(_0x501902(0x165))/0x1*(-parseInt(_0x501902(0x160))/0x2)+-parseInt(_0x501902(0x151))/0x3*(-parseInt(_0x501902(0x15a))/0x4)+parseInt(_0x501902(0x164))/0x5+parseInt(_0x501902(0x158))/0x6+parseInt(_0x501902(0x166))/0x7*(parseInt(_0x501902(0x14d))/0x8)+parseInt(_0x501902(0x162))/0x9+-parseInt(_0x501902(0x14b))/0xa*(parseInt(_0x501902(0x159))/0xb);if(_0x3d688e===_0x1c46f4)break;else _0x656aeb['push'](_0x656aeb['shift']());}catch(_0x3efd73){_0x656aeb['push'](_0x656aeb['shift']());}}}(a203_0x4bc4,0xb3dc6));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x5c7c96(0x152)};function trimOptional(_0x283889){const _0x401e34=a203_0x5c7c96;return _0x283889?.[_0x401e34(0x14f)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x329e40,_0x1c6575){const _0x33e7f4=trimOptional(_0x329e40),_0x3661eb=trimOptional(_0x1c6575);if(!_0x33e7f4||!_0x3661eb)return undefined;return getPublishedAppDomain(_0x33e7f4)+'/'+encodeURIComponent(_0x3661eb);}export function buildCustomPageDevelopmentUrl(_0x501441,_0x28efee){const _0x1e96cc=a203_0x5c7c96,_0x3f84ce=trimOptional(_0x501441),_0x56f2e3=trimOptional(_0x28efee);if(!_0x3f84ce||!_0x56f2e3)return undefined;return getAppBaseUrl(_0x3f84ce)+_0x1e96cc(0x161)+encodeURIComponent(_0x56f2e3);}export async function resolveCustomPageDevelopmentUrl(_0x44239d,_0x414194,_0x19211a){const _0x293630=a203_0x5c7c96,_0x4cf848=trimOptional(_0x44239d);if(!_0x4cf848)return undefined;try{const _0x20141f=(await fetchMenuSnapshot(_0x4cf848,_0x19211a))['menus'][_0x293630(0x150)](_0x2736fd=>_0x2736fd[_0x293630(0x163)]===_0x293630(0x14c)&&_0x2736fd['pageId']===_0x414194);return buildCustomPageDevelopmentUrl(_0x4cf848,_0x20141f?.[_0x293630(0x15b)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x338d7f,_0x2e3b8f){const _0x4f6830=a203_0x5c7c96,_0x34e589=trimOptional(_0x338d7f);if(!_0x34e589)return;const _0x55c417=trimOptional(String(_0x2e3b8f??''));if(!_0x55c417)return;return getAppBaseUrl(_0x34e589)+_0x4f6830(0x14e)+encodeURIComponent(_0x55c417);}export async function validateCustomPageContent(_0x38fc1c){const _0x2d4f12=a203_0x5c7c96,_0x5571d1=await validateCustomPageSourceFiles(_0x38fc1c);if(_0x5571d1[_0x2d4f12(0x15d)]>0x0)throw CliErrors[_0x2d4f12(0x15c)](_0x2d4f12(0x15e)+_0x5571d1[_0x2d4f12(0x157)](_0x5063c3=>_0x5063c3[_0x2d4f12(0x155)]+':\x20'+_0x5063c3['message'])[_0x2d4f12(0x153)](';\x20'));}function a203_0x42ea(_0x1a7207,_0x53bc67){_0x1a7207=_0x1a7207-0x14b;const _0x4bc41a=a203_0x4bc4();let _0x42eaae=_0x4bc41a[_0x1a7207];return _0x42eaae;}export function readCustomPageId(_0x56ade4){const _0x5b18c8=a203_0x5c7c96,_0x43cede=_0x56ade4[_0x5b18c8(0x154)]('id');if(!Number[_0x5b18c8(0x15f)](_0x43cede)||_0x43cede<=0x0)throw CliErrors['validation'](_0x5b18c8(0x156));return _0x43cede;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a204_0x4f2b(){const _0x39b5be=['entries','filter','34639eAjhfd','message','all','find','465VtvjFL','410BJInpB','page\x20files','36VAlGfR','8796624lnNDeZ','8cQFCAl','some','toLowerCase','5565889oTQlBr','map','11iYmzaW','8659350mVRyrw','89538AKiNwN','endsWith','trim','46746siEXvn','babel','183940QjYDHv','typescript','.jsx'];a204_0x4f2b=function(){return _0x39b5be;};return a204_0x4f2b();}const a204_0x1ae0c0=a204_0x3ae0;(function(_0x15aaeb,_0x50dc90){const _0x2f2ea4=a204_0x3ae0,_0xb19875=_0x15aaeb();while(!![]){try{const _0xdde4e0=parseInt(_0x2f2ea4(0x148))/0x1*(parseInt(_0x2f2ea4(0x14f))/0x2)+-parseInt(_0x2f2ea4(0x14a))/0x3*(parseInt(_0x2f2ea4(0x141))/0x4)+-parseInt(_0x2f2ea4(0x13e))/0x5*(-parseInt(_0x2f2ea4(0x14d))/0x6)+-parseInt(_0x2f2ea4(0x146))/0x7*(parseInt(_0x2f2ea4(0x143))/0x8)+-parseInt(_0x2f2ea4(0x149))/0x9+-parseInt(_0x2f2ea4(0x13f))/0xa*(-parseInt(_0x2f2ea4(0x154))/0xb)+parseInt(_0x2f2ea4(0x142))/0xc;if(_0xdde4e0===_0x50dc90)break;else _0xb19875['push'](_0xb19875['shift']());}catch(_0x11735e){_0xb19875['push'](_0xb19875['shift']());}}}(a204_0x4f2b,0x8bc57));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a204_0x1ae0c0(0x14e),'.ts':a204_0x1ae0c0(0x150),'.tsx':a204_0x1ae0c0(0x150)},CUSTOM_PAGE_EXTENSIONS=[a204_0x1ae0c0(0x151),'.tsx'];export async function validateCustomPageSourceFiles(_0x6c7616){const _0x54ab94=a204_0x1ae0c0,_0x152e5c=Object[_0x54ab94(0x152)](_0x6c7616)['filter'](([_0x12df90])=>getParser(_0x12df90));if(!_0x152e5c[_0x54ab94(0x144)](([_0x3e42eb])=>isReactSourceFile(_0x3e42eb)))return[{'file':_0x54ab94(0x140),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x4a46e0=await Promise[_0x54ab94(0x13c)](_0x152e5c[_0x54ab94(0x147)](async([_0x199de3,_0x780514])=>{const _0x5a9afb=_0x54ab94;try{return await format(_0x780514,{'parser':getParser(_0x199de3)}),undefined;}catch(_0xe9995f){return{'file':_0x199de3,'message':_0xe9995f instanceof Error?_0xe9995f[_0x5a9afb(0x155)]:String(_0xe9995f)};}}));return _0x4a46e0[_0x54ab94(0x153)](_0x467f01=>_0x467f01!==undefined);}function getParser(_0x28dfd0){const _0x103a8e=a204_0x1ae0c0,_0x1c9c8a=_0x28dfd0[_0x103a8e(0x14c)]()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)[_0x103a8e(0x13d)](([_0x1ca054])=>_0x1c9c8a[_0x103a8e(0x14b)](_0x1ca054))?.[0x1];}function a204_0x3ae0(_0x499ee3,_0x520155){_0x499ee3=_0x499ee3-0x13c;const _0x4f2bd9=a204_0x4f2b();let _0x3ae071=_0x4f2bd9[_0x499ee3];return _0x3ae071;}function isReactSourceFile(_0x10b86f){const _0x1686ec=a204_0x1ae0c0,_0x1df10f=_0x10b86f[_0x1686ec(0x14c)]()[_0x1686ec(0x145)]();return CUSTOM_PAGE_EXTENSIONS['some'](_0x2bf378=>_0x1df10f[_0x1686ec(0x14b)](_0x2bf378));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0x1c5791=a205_0x158e;(function(_0x2e05e0,_0x49d519){const _0x17dde3=a205_0x158e,_0x4ee49c=_0x2e05e0();while(!![]){try{const _0x47f855=-parseInt(_0x17dde3(0x150))/0x1*(parseInt(_0x17dde3(0x136))/0x2)+-parseInt(_0x17dde3(0x141))/0x3*(-parseInt(_0x17dde3(0x14d))/0x4)+parseInt(_0x17dde3(0x142))/0x5*(parseInt(_0x17dde3(0x154))/0x6)+parseInt(_0x17dde3(0x156))/0x7*(-parseInt(_0x17dde3(0x14a))/0x8)+parseInt(_0x17dde3(0x139))/0x9+-parseInt(_0x17dde3(0x152))/0xa*(-parseInt(_0x17dde3(0x148))/0xb)+parseInt(_0x17dde3(0x159))/0xc*(-parseInt(_0x17dde3(0x145))/0xd);if(_0x47f855===_0x49d519)break;else _0x4ee49c['push'](_0x4ee49c['shift']());}catch(_0x3f077c){_0x4ee49c['push'](_0x4ee49c['shift']());}}}(a205_0x2708,0x63539));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x158e(_0x3631e1,_0x45374a){_0x3631e1=_0x3631e1-0x135;const _0x27088e=a205_0x2708();let _0x158e64=_0x27088e[_0x3631e1];return _0x158e64;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0x1c5791(0x147),'command':'custom-update','description':a205_0x1c5791(0x137),'risk':'write','defaultOutputFormat':a205_0x1c5791(0x13b),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x1c5791(0x144),'message':a205_0x1c5791(0x140),'hint':a205_0x1c5791(0x13c)}],'flags':[{'name':'id','type':a205_0x1c5791(0x146),'required':!![],'description':a205_0x1c5791(0x13a)},{'name':a205_0x1c5791(0x13e),'type':a205_0x1c5791(0x14b),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x148783){readCustomPageId(_0x148783),await readValidatedPageContent(_0x148783);},async 'dryRun'(_0x3602db){const _0x5a5c77=a205_0x1c5791,_0x15d297=await readInput(_0x3602db);return{'method':_0x5a5c77(0x14c),'url':_0x5a5c77(0x157),'body':{'id':_0x15d297[_0x5a5c77(0x153)],'codeContent':_0x15d297[_0x5a5c77(0x13f)]},'description':_0x5a5c77(0x149)+_0x15d297[_0x5a5c77(0x153)]+'.'};},async 'execute'(_0x101e92){const _0x19b822=a205_0x1c5791,_0x4290df=await readInput(_0x101e92),_0x1b9979=await updateCustomPageContent({'pageId':_0x4290df[_0x19b822(0x153)],'pageContent':_0x4290df['pageContent']});if(!Number[_0x19b822(0x135)](_0x1b9979['newVersion'])||_0x1b9979[_0x19b822(0x155)]<=0x0)throw CliErrors[_0x19b822(0x151)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x556029=buildCustomPageEditUrl(_0x4290df[_0x19b822(0x13d)],_0x4290df[_0x19b822(0x153)]),_0x7727d5=await resolveCustomPageDevelopmentUrl(_0x4290df[_0x19b822(0x13d)],_0x4290df[_0x19b822(0x153)],_0x101e92['cookie']);return{'ok':!![],'data':{'operation':_0x19b822(0x14f),'selector':{'appCode':_0x4290df[_0x19b822(0x13d)],'pageId':_0x4290df['pageId']},'before':null,'after':{'pageId':_0x1b9979[_0x19b822(0x153)],'version':_0x1b9979[_0x19b822(0x155)],'pageContent':_0x4290df[_0x19b822(0x13f)]},'dryRun':![],'request':_0x4290df,..._0x7727d5?{'pageUrl':_0x7727d5}:{},..._0x556029?{'editPageUrl':_0x556029}:{},'warnings':_0x7727d5?[]:[_0x19b822(0x14e)]},'message':_0x19b822(0x138)+_0x4290df[_0x19b822(0x153)]+'.'};}};async function readInput(_0x99a587){const _0x3ac2ea=a205_0x1c5791,_0x577058=readCustomPageId(_0x99a587),_0x40890d=_0x99a587[_0x3ac2ea(0x143)]('appcode')[_0x3ac2ea(0x158)]()||(await getCustomPageSource(_0x577058))[_0x3ac2ea(0x13d)]?.[_0x3ac2ea(0x158)]();if(!_0x40890d)throw CliErrors['validation']('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x577058+'.');return{'appCode':_0x40890d,'pageId':_0x577058,'pageContent':await readValidatedPageContent(_0x99a587)};}function a205_0x2708(){const _0x5880af=['36071vByiQI','/smartapi/webcode/page/update/content','trim','3624jwKtul','isInteger','242Qxsdiw','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','Updated\x20Custom\x20Page\x20','3770334HACaWG','Custom\x20Page\x20ID','compress','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','appCode','page-dir','pageContent','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','16959esMXEC','274180wXbGrg','str','page-content','26585PfLLsF','number','page','11cIoIhE','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','1064XLQDZl','string','POST','244oONaAc','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page.custom-update','241UbFWLm','apiError','8106740qdNeEq','pageId','18MeKkQO','newVersion'];a205_0x2708=function(){return _0x5880af;};return a205_0x2708();}async function readValidatedPageContent(_0x10d29c){const _0x244272=a205_0x1c5791,_0x4e386a=await readCustomPageDirectory(_0x10d29c[_0x244272(0x143)](_0x244272(0x13e)));return await validateCustomPageContent(_0x4e386a),_0x4e386a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x38abaf=a206_0x1a90;(function(_0x3de7c4,_0x8f7747){const _0x390d9a=a206_0x1a90,_0x545012=_0x3de7c4();while(!![]){try{const _0x213c93=-parseInt(_0x390d9a(0x68))/0x1*(-parseInt(_0x390d9a(0x71))/0x2)+parseInt(_0x390d9a(0x74))/0x3+parseInt(_0x390d9a(0x6f))/0x4*(parseInt(_0x390d9a(0x65))/0x5)+parseInt(_0x390d9a(0x7b))/0x6+-parseInt(_0x390d9a(0x67))/0x7+parseInt(_0x390d9a(0x75))/0x8+-parseInt(_0x390d9a(0x66))/0x9;if(_0x213c93===_0x8f7747)break;else _0x545012['push'](_0x545012['shift']());}catch(_0x5eec60){_0x545012['push'](_0x545012['shift']());}}}(a206_0x5090,0x5d377));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a206_0x1a90(_0x37ab8f,_0x38b712){_0x37ab8f=_0x37ab8f-0x65;const _0x50903d=a206_0x5090();let _0x1a90ec=_0x50903d[_0x37ab8f];return _0x1a90ec;}export const pageDataListStatus={'service':a206_0x38abaf(0x79),'command':a206_0x38abaf(0x6c),'description':a206_0x38abaf(0x73),'risk':a206_0x38abaf(0x76),'defaultOutputFormat':a206_0x38abaf(0x69),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x38abaf(0x6a),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x299b5d){validateDatasetSelector(_0x299b5d);},async 'dryRun'(_0x5f2938){const _0x3f6c80=a206_0x38abaf,_0x208493=await loadDatasetDetailForPage(_0x5f2938);return{'method':_0x3f6c80(0x78),'url':'/smartapi/lovrabet/dataset/'+_0x208493[_0x3f6c80(0x6d)]+_0x3f6c80(0x70)+encodeURIComponent(_0x5f2938['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x208493['id'],'code':_0x208493[_0x3f6c80(0x6d)],'name':_0x208493['name']},'action':_0x3f6c80(0x7a)})};},async 'execute'(_0x500e0a){const _0x536dd7=a206_0x38abaf,_0x12725d=await loadDatasetDetailForPage(_0x500e0a),_0x9786a4=await loadDataListPageStatusForGenerate(_0x500e0a,_0x12725d['code']),_0x1032ac=getUndeletedRelatedPages(_0x12725d),_0x42854a=assessDataListPageState(_0x12725d['code'],_0x9786a4,{'fallbackUndeletedPages':_0x1032ac});return{'ok':!![],'data':{'datasetCode':_0x12725d[_0x536dd7(0x6d)],'precheckSource':_0x9786a4?.[_0x536dd7(0x72)]??'related-pages-fallback','status':_0x42854a['status'],'manualResolutionRequired':_0x42854a[_0x536dd7(0x77)],'nextAction':_0x42854a[_0x536dd7(0x6b)],'dataListPageStatus':_0x9786a4,'relatedPages':{'total':_0x12725d[_0x536dd7(0x7c)]['length'],'undeletedCount':_0x1032ac[_0x536dd7(0x6e)]}}};}};function a206_0x5090(){const _0x332055=['code','length','959460LSDdMu','/standard-page-status?appCode=','6bNuhaE','source','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','1020678UfaecL','5589232PtXPgi','read','manualResolutionRequired','GET','page','query-data-list-status','693432yBJiuy','relatedPages','10LxKznR','9018927mDEwbg','3268069Jjiqzm','72201xDzxgb','compress','alias','nextAction','data-list-status'];a206_0x5090=function(){return _0x332055;};return a206_0x5090();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a207_0x5655(_0xfc9576,_0x2b2897){_0xfc9576=_0xfc9576-0x94;const _0x2f5f94=a207_0x2f5f();let _0x565542=_0x2f5f94[_0xfc9576];return _0x565542;}const a207_0x1bdc2b=a207_0x5655;function a207_0x2f5f(){const _0x15b170=['reused','progressRate','clientOperationId','PARTIAL_SUCCESS','source','dataListPageStatus','number','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','compress','/smartapi/lovrabet/dataset/','/generate-standard-pages/start','CRUD_PAGE_SET','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','4370855NwZEZT','6945008oIzdQf','boolean','apply','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','SUCCESS','precheck','operationId','allowGenerate','status','page-type','currentStep','15971470yRbevr','alias','bool','519270EJmYVd','code','related-pages-fallback','message','appCode','dataset','342vwWHwa','POST','name','DATA_LIST','Reusing\x20an\x20existing\x20generate\x20task','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','nextAction','Submitted\x20a\x20generate\x20task','4EpGVjb','32bfcarW','4268334VinHzc','taskId','845603OdrDhx','page','fieldCount','178912MBzdIc'];a207_0x2f5f=function(){return _0x15b170;};return a207_0x2f5f();}(function(_0x426d20,_0x5aeb84){const _0x270314=a207_0x5655,_0x34a771=_0x426d20();while(!![]){try{const _0x461230=-parseInt(_0x270314(0xb7))/0x1*(parseInt(_0x270314(0xb3))/0x2)+parseInt(_0x270314(0xa4))/0x3*(parseInt(_0x270314(0xb4))/0x4)+-parseInt(_0x270314(0x95))/0x5+parseInt(_0x270314(0xb5))/0x6+-parseInt(_0x270314(0x96))/0x7+parseInt(_0x270314(0xba))/0x8*(parseInt(_0x270314(0xaa))/0x9)+parseInt(_0x270314(0xa1))/0xa;if(_0x461230===_0x5aeb84)break;else _0x34a771['push'](_0x34a771['shift']());}catch(_0x5e0a09){_0x34a771['push'](_0x34a771['shift']());}}}(a207_0x2f5f,0xf09df));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a207_0x1bdc2b(0xb8),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':'write','defaultOutputFormat':a207_0x1bdc2b(0xc3),'rejectedFlags':[{'name':a207_0x1bdc2b(0x9f),'message':a207_0x1bdc2b(0xc2),'hint':a207_0x1bdc2b(0x99)},{'name':'page-pattern','message':a207_0x1bdc2b(0xc7),'hint':a207_0x1bdc2b(0xaf)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x1bdc2b(0xa2),'type':'string','description':a207_0x1bdc2b(0xb0)},{'name':'apply','type':a207_0x1bdc2b(0x97),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x30adfd){validateDatasetSelector(_0x30adfd);},async 'dryRun'(_0x15c94f){const _0x2d7f65=a207_0x1bdc2b,_0x5de598=await prepare(_0x15c94f);return{'method':_0x2d7f65(0xab),'url':_0x2d7f65(0xc4)+_0x5de598[_0x2d7f65(0xa9)][_0x2d7f65(0xa5)]+_0x2d7f65(0xc5),'body':{'appCode':_0x15c94f['appCode'],'clientOperationId':_0x5de598[_0x2d7f65(0xbd)]},'description':serializeDryRunDescription({'dataset':{'id':_0x5de598[_0x2d7f65(0xa9)]['id'],'code':_0x5de598[_0x2d7f65(0xa9)]['code'],'name':_0x5de598['dataset'][_0x2d7f65(0xac)],'fieldCount':_0x5de598[_0x2d7f65(0xa9)][_0x2d7f65(0xb9)]},'precheckSource':_0x5de598[_0x2d7f65(0xc0)]?.[_0x2d7f65(0xbf)]??_0x2d7f65(0xa6),'action':'generate-start','clientOperationId':_0x5de598[_0x2d7f65(0xbd)],'plannedStatus':_0x5de598[_0x2d7f65(0x9b)][_0x2d7f65(0x9e)],'reason':_0x5de598[_0x2d7f65(0x9b)][_0x2d7f65(0xa7)]})};},async 'execute'(_0x12cf2e){const _0x37e4c3=a207_0x1bdc2b;if(!_0x12cf2e[_0x37e4c3(0xa3)](_0x37e4c3(0x98))){const _0x1459f9=await pageGenerateStart['dryRun'](_0x12cf2e);return{'ok':!![],'message':_0x37e4c3(0x94),'data':_0x1459f9};}const _0x30ff42=await prepare(_0x12cf2e);if(!_0x30ff42[_0x37e4c3(0x9b)][_0x37e4c3(0x9d)])return{'ok':![],'message':_0x30ff42[_0x37e4c3(0x9b)][_0x37e4c3(0xa7)],'data':{'datasetCode':_0x30ff42['dataset']['code'],'pageType':_0x37e4c3(0xad),'pagePattern':_0x37e4c3(0xc6),'clientOperationId':_0x30ff42['clientOperationId'],'precheckSource':_0x30ff42[_0x37e4c3(0xc0)]?.[_0x37e4c3(0xbf)]??_0x37e4c3(0xa6),'status':_0x30ff42[_0x37e4c3(0x9b)][_0x37e4c3(0x9e)],'manualResolutionRequired':_0x30ff42['precheck']['manualResolutionRequired'],'nextAction':_0x30ff42['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x30ff42['dataset'][_0x37e4c3(0xa5)],_0x12cf2e[_0x37e4c3(0xa8)])},'dataListPageStatus':_0x30ff42[_0x37e4c3(0xc0)]}};const _0x2061d3=await startGenerateDataListPages(_0x12cf2e[_0x37e4c3(0xa8)],_0x30ff42[_0x37e4c3(0xa9)][_0x37e4c3(0xa5)],{'clientOperationId':_0x30ff42[_0x37e4c3(0xbd)]}),_0x408c56=_0x2061d3[_0x37e4c3(0x9e)]===_0x37e4c3(0x9a)||_0x2061d3[_0x37e4c3(0x9e)]===_0x37e4c3(0xbe)?await loadDataListPageStatusForGenerate(_0x12cf2e,_0x30ff42['dataset'][_0x37e4c3(0xa5)]):null,_0x2d92dc=assessGenerateOperationState(_0x30ff42['dataset'][_0x37e4c3(0xa5)],_0x2061d3[_0x37e4c3(0x9e)],_0x408c56);return{'ok':!![],'message':_0x2061d3[_0x37e4c3(0xbb)]?_0x37e4c3(0xae):_0x37e4c3(0xb2),'data':{'datasetCode':_0x30ff42[_0x37e4c3(0xa9)][_0x37e4c3(0xa5)],'appCode':_0x12cf2e[_0x37e4c3(0xa8)],'pageType':_0x37e4c3(0xad),'pagePattern':'CRUD_PAGE_SET','taskId':_0x2061d3[_0x37e4c3(0xb6)]??null,'operationId':_0x2061d3[_0x37e4c3(0x9c)]??null,'clientOperationId':_0x30ff42[_0x37e4c3(0xbd)],'jobStatus':_0x2061d3['status']??null,'progressRate':typeof _0x2061d3[_0x37e4c3(0xbc)]===_0x37e4c3(0xc1)?_0x2061d3[_0x37e4c3(0xbc)]:null,'currentStep':_0x2061d3[_0x37e4c3(0xa0)]??null,'reused':_0x2061d3['reused']===!![],'status':_0x2d92dc[_0x37e4c3(0x9e)],'manualResolutionRequired':_0x2d92dc['manualResolutionRequired'],'nextAction':_0x2d92dc[_0x37e4c3(0xb1)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x30ff42['dataset'][_0x37e4c3(0xa5)],{'appCode':_0x12cf2e[_0x37e4c3(0xa8)],'taskId':_0x2061d3['taskId'],'operationId':_0x2061d3['operationId'],'clientOperationId':_0x30ff42[_0x37e4c3(0xbd)]})},'dataListPageStatus':_0x408c56}};}};async function prepare(_0x368ca7){const _0x4348db=a207_0x1bdc2b,_0x3cbf14=await loadDatasetDetailForPage(_0x368ca7),_0x5d9e4b=await loadDataListPageStatusForGenerate(_0x368ca7,_0x3cbf14[_0x4348db(0xa5)]),_0x305b3e=getUndeletedRelatedPages(_0x3cbf14);return{'dataset':_0x3cbf14,'dataListPageStatus':_0x5d9e4b,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3cbf14['code'],_0x5d9e4b,{'fallbackUndeletedPages':_0x305b3e})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a208_0x26d92b=a208_0x58e3;function a208_0x2cc4(){const _0x18796c=['str','686658KpWDzB','PARTIAL_SUCCESS','operationId','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','read','1387755dGEsoQ','/smartapi/lovrabet/dataset/','page','result','operation_failed','1914200lbQSYo','alias','set','1055pLdzwj','taskId','client-operation-id','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','string','message','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','code','2836AKpGqb','progressRate','381568nRNden','clientOperationId','7ntuZio','operation-id','status','manualResolutionRequired','generate-status','query-generate-operation-status','errorMsg','appCode','38052MYADjy','compress','nextAction','currentStep','109335wzoWXB','task-id'];a208_0x2cc4=function(){return _0x18796c;};return a208_0x2cc4();}(function(_0x243966,_0x373289){const _0x4735a0=a208_0x58e3,_0xb10875=_0x243966();while(!![]){try{const _0x1765db=parseInt(_0x4735a0(0xbb))/0x1+parseInt(_0x4735a0(0xd9))/0x2+parseInt(_0x4735a0(0xbf))/0x3+-parseInt(_0x4735a0(0xd7))/0x4*(-parseInt(_0x4735a0(0xcf))/0x5)+-parseInt(_0x4735a0(0xc2))/0x6*(parseInt(_0x4735a0(0xdb))/0x7)+-parseInt(_0x4735a0(0xcc))/0x8+parseInt(_0x4735a0(0xc7))/0x9;if(_0x1765db===_0x373289)break;else _0xb10875['push'](_0xb10875['shift']());}catch(_0x3339ed){_0xb10875['push'](_0xb10875['shift']());}}}(a208_0x2cc4,0x3493d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';function a208_0x58e3(_0x23d4d0,_0x150a6e){_0x23d4d0=_0x23d4d0-0xb8;const _0x2cc4fd=a208_0x2cc4();let _0x58e3c9=_0x2cc4fd[_0x23d4d0];return _0x58e3c9;}export const pageGenerateStatus={'service':a208_0x26d92b(0xc9),'command':a208_0x26d92b(0xdf),'description':a208_0x26d92b(0xd5),'risk':a208_0x26d92b(0xc6),'defaultOutputFormat':a208_0x26d92b(0xbc),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x26d92b(0xcd),'type':'string','description':a208_0x26d92b(0xd2)},{'name':a208_0x26d92b(0xc0),'type':a208_0x26d92b(0xd3),'description':a208_0x26d92b(0xc5)},{'name':a208_0x26d92b(0xdc),'type':a208_0x26d92b(0xd3),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x26d92b(0xd1),'type':a208_0x26d92b(0xd3),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x5842a4){validateDatasetSelector(_0x5842a4),validateGenerateOperationSelector(_0x5842a4);},async 'dryRun'(_0x214c61){const _0x3518f3=a208_0x26d92b,_0x1d969e=await loadDatasetDetailForPage(_0x214c61),_0x4727b7=_0x214c61['str']('task-id'),_0x50cf9b=_0x214c61['str'](_0x3518f3(0xdc)),_0x41c01d=_0x214c61[_0x3518f3(0xc1)]('client-operation-id'),_0xce7eb4=new URLSearchParams({'appCode':_0x214c61[_0x3518f3(0xba)]});return _0x4727b7&&_0xce7eb4[_0x3518f3(0xce)]('taskId',_0x4727b7),_0x50cf9b&&_0xce7eb4[_0x3518f3(0xce)](_0x3518f3(0xc4),_0x50cf9b),_0x41c01d&&_0xce7eb4[_0x3518f3(0xce)](_0x3518f3(0xda),_0x41c01d),{'method':'GET','url':_0x3518f3(0xc8)+_0x1d969e[_0x3518f3(0xd6)]+'/generate-standard-pages/status?'+_0xce7eb4['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x1d969e['id'],'code':_0x1d969e[_0x3518f3(0xd6)],'name':_0x1d969e['name']},'action':_0x3518f3(0xb8),'taskId':_0x4727b7||undefined,'operationId':_0x50cf9b||undefined,'clientOperationId':_0x41c01d||undefined})};},async 'execute'(_0x25c799){const _0x363805=a208_0x26d92b,_0x5b3691=await loadDatasetDetailForPage(_0x25c799),_0xe865bb=_0x25c799[_0x363805(0xc1)](_0x363805(0xc0)),_0x248807=_0x25c799[_0x363805(0xc1)](_0x363805(0xdc)),_0x203f02=_0x25c799[_0x363805(0xc1)](_0x363805(0xd1)),_0x1fab71=await getGenerateDataListPagesStatus(_0x25c799[_0x363805(0xba)],_0x5b3691['code'],{'taskId':_0xe865bb||undefined,'operationId':_0x248807||undefined,'clientOperationId':_0x203f02||undefined}),_0x5082fe=_0x1fab71[_0x363805(0xdd)]==='SUCCESS'||_0x1fab71[_0x363805(0xdd)]===_0x363805(0xc3),_0x20e451=_0x5082fe?await loadDataListPageStatusForGenerate(_0x25c799,_0x5b3691[_0x363805(0xd6)]):null,_0x2ec839=assessGenerateOperationState(_0x5b3691[_0x363805(0xd6)],_0x1fab71[_0x363805(0xdd)],_0x20e451),_0x17ac9f=_0x1fab71[_0x363805(0xd0)]??_0xe865bb??undefined,_0x44c7ec=_0x1fab71['operationId']??_0x248807??undefined,_0x4c73a7=_0x1fab71[_0x363805(0xda)]??_0x203f02??undefined;return{'ok':!![],'message':_0x2ec839[_0x363805(0xdd)]===_0x363805(0xcb)?_0x1fab71[_0x363805(0xb9)]||_0x2ec839[_0x363805(0xd4)]:_0x2ec839[_0x363805(0xd4)],'data':{'datasetCode':_0x5b3691['code'],'appCode':_0x25c799['appCode'],'taskId':_0x17ac9f,'operationId':_0x44c7ec,'clientOperationId':_0x4c73a7,'jobStatus':_0x1fab71[_0x363805(0xdd)]??null,'progressRate':typeof _0x1fab71[_0x363805(0xd8)]==='number'?_0x1fab71[_0x363805(0xd8)]:null,'currentStep':_0x1fab71[_0x363805(0xbe)]??null,'errorMsg':_0x1fab71[_0x363805(0xb9)]??null,'status':_0x2ec839[_0x363805(0xdd)],'manualResolutionRequired':_0x2ec839[_0x363805(0xde)],'nextAction':_0x2ec839[_0x363805(0xbd)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x5b3691[_0x363805(0xd6)],{'appCode':_0x25c799['appCode'],'taskId':_0x17ac9f,'operationId':_0x44c7ec,'clientOperationId':_0x4c73a7})},'dataListPageStatus':_0x20e451,'result':_0x1fab71[_0x363805(0xca)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x212a16,_0x26a977){const _0x400e8c=a209_0x2d3c,_0x43cf87=_0x212a16();while(!![]){try{const _0x1bc9d7=-parseInt(_0x400e8c(0x14a))/0x1+parseInt(_0x400e8c(0x14c))/0x2*(parseInt(_0x400e8c(0x14b))/0x3)+parseInt(_0x400e8c(0x143))/0x4*(parseInt(_0x400e8c(0x144))/0x5)+parseInt(_0x400e8c(0x145))/0x6+parseInt(_0x400e8c(0x146))/0x7+parseInt(_0x400e8c(0x148))/0x8+-parseInt(_0x400e8c(0x147))/0x9*(parseInt(_0x400e8c(0x149))/0xa);if(_0x1bc9d7===_0x26a977)break;else _0x43cf87['push'](_0x43cf87['shift']());}catch(_0x278997){_0x43cf87['push'](_0x43cf87['shift']());}}}(a209_0x3d33,0x66e61));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';function a209_0x2d3c(_0x1ca319,_0x511684){_0x1ca319=_0x1ca319-0x143;const _0x3d33ea=a209_0x3d33();let _0x2d3c4c=_0x3d33ea[_0x1ca319];return _0x2d3c4c;}import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';function a209_0x3d33(){const _0x57c65f=['1190CCwgPH','648071wSjOjh','18TjFEAe','212716mRmIrK','103636HwspOr','105oBBxyI','572196pFotFs','4885139lEFenX','130833owpbxo','6591736ZpMvRT'];a209_0x3d33=function(){return _0x57c65f;};return a209_0x3d33();}import{pageCustomList}from'../../commands/page/custom/list.js';import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0x35eb(){const _0xb9f1e=['1022XnNIeF','bool','would_pull','12KdrDPd','6906vYEtNN','conflict','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','string','3126erhOHC','number','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','force','562OZJBVs','lockFilePath','relatedPages','Page\x20ID','items','2876iTYgmd','map','/smartapi/lovrabet/detail?pageId=','detail','type','push','448RCYjPO','filter','utf8','localPath','read','mode','status','single','length','Dataset\x20\x22','Pull\x20page\x20schema\x20to\x20local\x20files','lastSync','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','deleted','toISOString','3524114Mtqutm','pageVersion','code','\x20skipped','hash','appCode','1567125JFDIPJ','compress','377200CpueJi','validation','pages','local\x20unsynced\x20changes','pageId','GET','datasetIds','versionTag','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','Pull\x20complete:\x20','8NlShho','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','pull','all','name','datasetCode','6299703mqIrFO','alias','reason'];a210_0x35eb=function(){return _0xb9f1e;};return a210_0x35eb();}const a210_0x269def=a210_0xbcb7;(function(_0x28a229,_0x5e5e54){const _0x46010d=a210_0xbcb7,_0x202a86=_0x28a229();while(!![]){try{const _0x142c65=-parseInt(_0x46010d(0x14b))/0x1*(-parseInt(_0x46010d(0x150))/0x2)+parseInt(_0x46010d(0x186))/0x3*(parseInt(_0x46010d(0x156))/0x4)+-parseInt(_0x46010d(0x16b))/0x5+-parseInt(_0x46010d(0x18a))/0x6*(-parseInt(_0x46010d(0x182))/0x7)+parseInt(_0x46010d(0x179))/0x8*(-parseInt(_0x46010d(0x17f))/0x9)+-parseInt(_0x46010d(0x16d))/0xa+parseInt(_0x46010d(0x165))/0xb*(parseInt(_0x46010d(0x185))/0xc);if(_0x142c65===_0x5e5e54)break;else _0x202a86['push'](_0x202a86['shift']());}catch(_0x21974a){_0x202a86['push'](_0x202a86['shift']());}}}(a210_0x35eb,0x646ac));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';function a210_0xbcb7(_0x5aa77e,_0x2447b6){_0x5aa77e=_0x5aa77e-0x149;const _0x35eb67=a210_0x35eb();let _0xbcb75b=_0x35eb67[_0x5aa77e];return _0xbcb75b;}import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x269def(0x17b),'description':a210_0x269def(0x160),'risk':a210_0x269def(0x15a),'defaultOutputFormat':a210_0x269def(0x16c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x269def(0x18b),'description':a210_0x269def(0x14e)},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x269def(0x180),'type':'string','description':a210_0x269def(0x162)},{'name':'version-tag','type':a210_0x269def(0x189),'description':a210_0x269def(0x175)},{'name':a210_0x269def(0x14a),'type':'boolean','description':a210_0x269def(0x177)}],async 'validate'(_0x53fcc4){validatePageTargetSelector(_0x53fcc4);},async 'dryRun'(_0x47fda3){const _0x1a5730=a210_0x269def,_0x3be19f=await buildPullPlan(_0x47fda3);return{'method':_0x1a5730(0x172),'url':_0x3be19f[_0x1a5730(0x15b)]===_0x1a5730(0x15d)?_0x1a5730(0x152)+(_0x3be19f['items'][0x0]?.['detail'][_0x1a5730(0x171)]??''):_0x1a5730(0x188),'body':{'appCode':_0x47fda3[_0x1a5730(0x16a)],'mode':_0x3be19f[_0x1a5730(0x15b)],'targetDatasetCode':_0x3be19f['datasetCode']??null,'pages':_0x3be19f[_0x1a5730(0x14f)][_0x1a5730(0x151)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x3be19f[_0x1a5730(0x15b)],'datasetCode':_0x3be19f[_0x1a5730(0x17e)]??null,'totalCandidates':_0x3be19f[_0x1a5730(0x14f)]['length'],'totalWouldPull':_0x3be19f[_0x1a5730(0x14f)][_0x1a5730(0x157)](_0x3b9947=>_0x3b9947[_0x1a5730(0x15c)]===_0x1a5730(0x184))[_0x1a5730(0x15e)],'totalConflicts':_0x3be19f[_0x1a5730(0x14f)][_0x1a5730(0x157)](_0x421677=>_0x421677[_0x1a5730(0x15c)]===_0x1a5730(0x187))['length']})};},async 'execute'(_0x274c6e){const _0x1a397b=a210_0x269def,_0x1cbb77=loadPageProjectConfig(_0x274c6e['appCode']),_0x1ad7e0=await readPageLockFile(_0x1cbb77[_0x1a397b(0x14c)]),{lockData:_0x3c8326,appLock:_0xc1a074}=ensurePageLockScope(_0x1ad7e0??createEmptyPageLock(),_0x274c6e[_0x1a397b(0x16a)]),_0x3baa6f=await buildPullPlan(_0x274c6e),_0x340390=_0x274c6e[_0x1a397b(0x183)](_0x1a397b(0x14a));if(_0x3baa6f[_0x1a397b(0x15b)]===_0x1a397b(0x15d)&&_0x3baa6f['items'][0x0]?.[_0x1a397b(0x15c)]===_0x1a397b(0x187)&&!_0x340390)throw CliErrors[_0x1a397b(0x16e)](_0x1a397b(0x17a)+_0x3baa6f[_0x1a397b(0x14f)][0x0][_0x1a397b(0x159)],_0x1a397b(0x176));const _0x1eab68=[],_0x2bc497=[];for(const _0x1cd168 of _0x3baa6f['items']){if(_0x1cd168[_0x1a397b(0x15c)]===_0x1a397b(0x187)&&!_0x340390){_0x2bc497[_0x1a397b(0x155)]({'pageId':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x171)],'type':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x154)],'title':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x17d)],'localPath':_0x1cd168[_0x1a397b(0x159)],'reason':_0x1cd168[_0x1a397b(0x181)]??_0x1a397b(0x170)});continue;}await ensureParentDirectory(_0x1cd168[_0x1a397b(0x159)]);const _0x5a2294=serializePageSchemaForFile(_0x1cd168[_0x1a397b(0x153)]['code']);await writeFile(_0x1cd168[_0x1a397b(0x159)],_0x5a2294,_0x1a397b(0x158)),_0xc1a074[_0x1a397b(0x16f)][String(_0x1cd168[_0x1a397b(0x153)]['pageId'])]=buildLockEntry(_0x1cd168['detail'],_0x5a2294),_0x1eab68[_0x1a397b(0x155)]({'pageId':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x171)],'type':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x154)],'title':_0x1cd168[_0x1a397b(0x153)]['name'],'localPath':_0x1cd168[_0x1a397b(0x159)]});}return _0xc1a074[_0x1a397b(0x161)]=new Date()[_0x1a397b(0x164)](),await writePageLockFile(_0x1cbb77[_0x1a397b(0x14c)],_0x3c8326),{'ok':!![],'message':_0x1a397b(0x178)+_0x1eab68[_0x1a397b(0x15e)]+'\x20pulled,\x20'+_0x2bc497[_0x1a397b(0x15e)]+_0x1a397b(0x168),'data':{'appCode':_0x274c6e[_0x1a397b(0x16a)],'pulledPages':_0x1eab68,'skippedPages':_0x2bc497,'totalPulled':_0x1eab68[_0x1a397b(0x15e)],'totalSkipped':_0x2bc497['length']}};}};async function buildPullPlan(_0x3ad4ea){const _0x45b062=a210_0x269def,_0x2abf8a=loadPageProjectConfig(_0x3ad4ea[_0x45b062(0x16a)]),_0x4a9c4f=await readPageLockFile(_0x2abf8a['lockFilePath']),{appLock:_0x347343}=ensurePageLockScope(_0x4a9c4f??createEmptyPageLock(),_0x3ad4ea[_0x45b062(0x16a)]),_0xd52654=getPageIdFlag(_0x3ad4ea);if(_0xd52654!==undefined){const _0x1d3f0e=await loadPageDetailForPage(_0x3ad4ea,_0xd52654);return{'mode':_0x45b062(0x15d),'items':[await inspectPullTarget(_0x2abf8a,_0x347343[_0x45b062(0x16f)][String(_0x1d3f0e[_0x45b062(0x171)])],_0x1d3f0e)]};}const _0x1ef037=await loadDatasetDetailForPage(_0x3ad4ea),_0x58a7a6=_0x1ef037[_0x45b062(0x14d)][_0x45b062(0x157)](_0x5e118d=>!_0x5e118d[_0x45b062(0x163)]);if(_0x58a7a6[_0x45b062(0x15e)]===0x0)throw CliErrors[_0x45b062(0x16e)](_0x45b062(0x15f)+_0x1ef037[_0x45b062(0x167)]+_0x45b062(0x149));const _0x2119eb=await Promise[_0x45b062(0x17c)](_0x58a7a6[_0x45b062(0x151)](_0x337370=>loadPageDetailForPage(_0x3ad4ea,_0x337370['id']))),_0x156ba2=selectVersionTagGroup(_0x2119eb,_0x127225=>_0x127225[_0x45b062(0x174)],_0x3ad4ea['str']('version-tag'));return{'mode':'batch','datasetCode':_0x1ef037[_0x45b062(0x167)],'items':await Promise[_0x45b062(0x17c)](_0x156ba2[_0x45b062(0x14f)][_0x45b062(0x151)](_0x5cdaba=>inspectPullTarget(_0x2abf8a,_0x347343[_0x45b062(0x16f)][String(_0x5cdaba[_0x45b062(0x171)])],_0x5cdaba)))};}async function inspectPullTarget(_0x3cb333,_0x170c7d,_0xcff171){const _0x1b7f45=a210_0x269def,_0xc97740=resolvePageFilePath(_0x3cb333,_0xcff171[_0x1b7f45(0x171)],_0xcff171[_0x1b7f45(0x154)]),_0x3e856a=await fileExists(_0xc97740);if(!_0x3e856a){const _0x2f0395=serializePageSchemaForFile(_0xcff171[_0x1b7f45(0x167)]);return{'detail':_0xcff171,'localPath':_0xc97740,'localHash':computePageContentHash(_0x2f0395),'status':_0x1b7f45(0x184)};}const _0x273d69=await computePageFileHash(_0xc97740);if(!_0x170c7d||_0x273d69!==_0x170c7d[_0x1b7f45(0x169)])return{'detail':_0xcff171,'localPath':_0xc97740,'localHash':_0x273d69,'status':_0x1b7f45(0x187),'reason':'local\x20unsynced\x20changes'};return{'detail':_0xcff171,'localPath':_0xc97740,'localHash':_0x273d69,'status':_0x1b7f45(0x184)};}function buildLockEntry(_0x30a3d5,_0x1533fa){const _0x4cc94d=a210_0x269def;return{'hash':computePageContentHash(_0x1533fa),'pageId':_0x30a3d5[_0x4cc94d(0x171)],'pageVersion':_0x30a3d5[_0x4cc94d(0x166)],'type':_0x30a3d5[_0x4cc94d(0x154)],'title':_0x30a3d5[_0x4cc94d(0x17d)],'datasetIds':_0x30a3d5[_0x4cc94d(0x173)],'versionTag':_0x30a3d5[_0x4cc94d(0x174)]};}function toPreviewItem(_0x116ea8){const _0x4c0fa9=a210_0x269def;return{'pageId':_0x116ea8[_0x4c0fa9(0x153)][_0x4c0fa9(0x171)],'type':_0x116ea8[_0x4c0fa9(0x153)][_0x4c0fa9(0x154)],'title':_0x116ea8[_0x4c0fa9(0x153)][_0x4c0fa9(0x17d)],'localPath':_0x116ea8[_0x4c0fa9(0x159)],'status':_0x116ea8[_0x4c0fa9(0x15c)],..._0x116ea8['reason']?{'reason':_0x116ea8[_0x4c0fa9(0x181)]}:{}};}
|