@lovrabet/rabetbase-cli 2.5.6 → 2.5.7-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.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- 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/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/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.d.ts +26 -6
- 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.d.ts +12 -0
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.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/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/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 +8 -4
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x2f5e6f=a199_0xd336;(function(_0x2c5003,_0x114855){const _0x3b1deb=a199_0xd336,_0x2faa47=_0x2c5003();while(!![]){try{const _0x491551=parseInt(_0x3b1deb(0x90))/0x1+parseInt(_0x3b1deb(0x79))/0x2+-parseInt(_0x3b1deb(0xad))/0x3*(parseInt(_0x3b1deb(0xae))/0x4)+-parseInt(_0x3b1deb(0x85))/0x5+-parseInt(_0x3b1deb(0xa7))/0x6+-parseInt(_0x3b1deb(0xb3))/0x7*(parseInt(_0x3b1deb(0xa0))/0x8)+parseInt(_0x3b1deb(0xa6))/0x9;if(_0x491551===_0x114855)break;else _0x2faa47['push'](_0x2faa47['shift']());}catch(_0x17b7c5){_0x2faa47['push'](_0x2faa47['shift']());}}}(a199_0x526d,0x623a8));import{readFile}from'node:fs/promises';function a199_0x526d(){const _0x476428=['4zowztE','menuId','Created\x20Custom\x20Page\x20','files','isNaN','119JPscMV','compress','isArray','trim','toLowerCase','parentMenuId','validation','591922aJJSoA','pageId','now','page','str','keys','page-dir','menuPath','page\x20create\x20does\x20not\x20accept\x20--page-type.','Would\x20create\x20Custom\x20Page\x20','string','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','596505YVGeFJ','parse','page-type','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','length','appCode','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','../../../templates/custom-pages','create','pageName','361540oSiQyj','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','includes','write','\x20and\x20its\x20menu\x20entry.','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','page-pattern','number','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','Custom\x20Page\x20pattern\x20not\x20found:\x20','.json','/smartapi/webcode/page/create','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','parent-menu-id','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','some','320384aLcuWk','Invalid\x20Custom\x20Page\x20pattern:\x20','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','utf8','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','12501063KudOJa','4257552IrxQio','name','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','createMenu','BLANK','403365VxHUMw'];a199_0x526d=function(){return _0x476428;};return a199_0x526d();}function a199_0xd336(_0x526002,_0x21ae1d){_0x526002=_0x526002-0x76;const _0x526df9=a199_0x526d();let _0xd3369=_0x526df9[_0x526002];return _0xd3369;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x2f5e6f(0xac),'ONEPAGE','DASHBOARD'],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x2f5e6f(0x8d));export const pageCreate={'service':a199_0x2f5e6f(0x7c),'command':a199_0x2f5e6f(0x8e),'description':a199_0x2f5e6f(0xa2),'risk':a199_0x2f5e6f(0x93),'defaultOutputFormat':a199_0x2f5e6f(0xb4),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x2f5e6f(0x87),'message':a199_0x2f5e6f(0x81),'hint':a199_0x2f5e6f(0xa9)},{'name':'page-content','message':a199_0x2f5e6f(0x91),'hint':a199_0x2f5e6f(0xa5)}],'flags':[{'name':a199_0x2f5e6f(0xa8),'type':a199_0x2f5e6f(0x83),'description':a199_0x2f5e6f(0x9c)},{'name':a199_0x2f5e6f(0x9d),'type':a199_0x2f5e6f(0x97),'description':a199_0x2f5e6f(0x9e)},{'name':'page-pattern','type':a199_0x2f5e6f(0x83),'description':a199_0x2f5e6f(0x88),'enum':CUSTOM_PAGE_PATTERNS},{'name':'page-dir','type':a199_0x2f5e6f(0x83),'description':a199_0x2f5e6f(0x95)},APPCODE_FLAG],async 'validate'(_0x3cd9b7){await readValidatedPageSource(_0x3cd9b7);},async 'dryRun'(_0x28e82f){const _0x4b1da9=a199_0x2f5e6f,_0x529c57=readInput(_0x28e82f,await readValidatedPageSource(_0x28e82f));return{'method':'POST','url':_0x4b1da9(0x9b),'body':{'appCode':_0x529c57['appCode'],'pageName':_0x529c57[_0x4b1da9(0x8f)],..._0x529c57[_0x4b1da9(0x77)]!=null?{'parentMenuId':_0x529c57[_0x4b1da9(0x77)]}:{},'createMenu':_0x529c57[_0x4b1da9(0xab)],'codeContent':_0x529c57['files']},'description':_0x4b1da9(0x82)+JSON['stringify'](_0x529c57[_0x4b1da9(0x8f)])+_0x4b1da9(0x94)};},async 'execute'(_0x1e7a3e){const _0x21dc3d=a199_0x2f5e6f,_0x1d1575=readInput(_0x1e7a3e,await readValidatedPageSource(_0x1e7a3e)),_0x3a1ee0=await createCustomPage(_0x1d1575);if(!Number['isInteger'](_0x3a1ee0[_0x21dc3d(0x7a)])||_0x3a1ee0[_0x21dc3d(0x7a)]<=0x0)throw CliErrors['apiError'](_0x21dc3d(0xa3));const _0x5d0e0b=buildCustomPageDevelopmentUrl(_0x1d1575[_0x21dc3d(0x8b)],_0x3a1ee0[_0x21dc3d(0x80)]),_0x4d47d1=buildCustomPageEditUrl(_0x1d1575['appCode'],_0x3a1ee0[_0x21dc3d(0x7a)]);return{'ok':!![],'data':{'operation':'page.create','pageType':'CUSTOM','pagePattern':readPagePattern(_0x1e7a3e),'selector':{'appCode':_0x1d1575[_0x21dc3d(0x8b)],'pageName':_0x1d1575[_0x21dc3d(0x8f)]},'before':null,'after':{'pageId':_0x3a1ee0[_0x21dc3d(0x7a)],'pageName':_0x3a1ee0[_0x21dc3d(0x8f)],'appCode':_0x3a1ee0['appCode'],'version':_0x3a1ee0['version'],'menuId':_0x3a1ee0[_0x21dc3d(0xaf)],'menuPath':_0x3a1ee0[_0x21dc3d(0x80)],'files':_0x3a1ee0[_0x21dc3d(0xb1)]??Object[_0x21dc3d(0x7e)](_0x1d1575['files'])},'dryRun':![],'request':_0x1d1575,..._0x5d0e0b?{'pageUrl':_0x5d0e0b}:{},..._0x4d47d1?{'editPageUrl':_0x4d47d1}:{},'warnings':_0x5d0e0b?[]:[_0x21dc3d(0x8c)]},'message':_0x21dc3d(0xb0)+_0x3a1ee0['pageId']+'.'};}};function readPagePattern(_0x4ae082){const _0x20c99c=a199_0x2f5e6f,_0x54f36c=_0x4ae082[_0x20c99c(0x7d)](_0x20c99c(0x96))[_0x20c99c(0xb6)](),_0x29dafb=_0x4ae082[_0x20c99c(0x7d)](_0x20c99c(0x7f))['trim']();if(_0x54f36c&&_0x29dafb)throw CliErrors[_0x20c99c(0x78)](_0x20c99c(0xaa));if(_0x29dafb)return null;if(!_0x54f36c)throw CliErrors[_0x20c99c(0x78)]('Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.');if(!CUSTOM_PAGE_PATTERNS[_0x20c99c(0x92)](_0x54f36c))throw CliErrors[_0x20c99c(0x78)](_0x20c99c(0x98));return _0x54f36c;}async function readPageSource(_0x477241){const _0x19bd78=a199_0x2f5e6f,_0xde411=_0x477241[_0x19bd78(0x7d)]('page-dir')['trim'](),_0x178eac=readPagePattern(_0x477241);if(_0x178eac===null){const _0x217db2=await readCustomPageDirectory(_0xde411);if(Object[_0x19bd78(0x7e)](_0x217db2)[_0x19bd78(0x8a)]===0x0)throw CliErrors[_0x19bd78(0x78)](_0x19bd78(0x84));return _0x217db2;}let _0x153929;try{_0x153929=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x178eac[_0x19bd78(0x76)]()+_0x19bd78(0x9a)),_0x19bd78(0xa4));}catch{throw CliErrors[_0x19bd78(0x78)](_0x19bd78(0x99)+_0x178eac+'.');}let _0x529010;try{_0x529010=JSON[_0x19bd78(0x86)](_0x153929);}catch{throw CliErrors[_0x19bd78(0x78)](_0x19bd78(0xa1)+_0x178eac+'.');}if(!_0x529010||typeof _0x529010!=='object'||Array[_0x19bd78(0xb5)](_0x529010)||Object['values'](_0x529010)[_0x19bd78(0x9f)](_0x455e14=>typeof _0x455e14!==_0x19bd78(0x83)))throw CliErrors[_0x19bd78(0x78)](_0x19bd78(0xa1)+_0x178eac+'.');return _0x529010;}async function readValidatedPageSource(_0x259106){const _0x5cb2c7=await readPageSource(_0x259106);return await validateCustomPageContent(_0x5cb2c7),_0x5cb2c7;}function readInput(_0x3b42a0,_0x327859){const _0x1fde62=a199_0x2f5e6f,_0x5c9b85=_0x3b42a0[_0x1fde62(0x7d)]('name')[_0x1fde62(0xb6)]()||'Custom_page_'+Date[_0x1fde62(0x7b)]();if(_0x5c9b85['length']>0x64)throw CliErrors['validation']('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x59cf59=_0x3b42a0['num'](_0x1fde62(0x9d),NaN),_0x1f62cb=!Number[_0x1fde62(0xb2)](_0x59cf59);if(_0x1f62cb&&(!Number['isInteger'](_0x59cf59)||_0x59cf59<=0x0))throw CliErrors['validation'](_0x1fde62(0x89));return{'appCode':_0x3b42a0[_0x1fde62(0x8b)],'pageName':_0x5c9b85,..._0x1f62cb?{'parentMenuId':_0x59cf59}:{},'createMenu':!![],'files':_0x327859};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x4fa991=a200_0x2b16;(function(_0x31bec3,_0x3ab540){const _0x130505=a200_0x2b16,_0x1bee56=_0x31bec3();while(!![]){try{const _0xb25960=parseInt(_0x130505(0x82))/0x1+parseInt(_0x130505(0x84))/0x2*(parseInt(_0x130505(0x8a))/0x3)+-parseInt(_0x130505(0x85))/0x4+-parseInt(_0x130505(0x94))/0x5*(-parseInt(_0x130505(0x9a))/0x6)+-parseInt(_0x130505(0x8c))/0x7+-parseInt(_0x130505(0x99))/0x8*(-parseInt(_0x130505(0x86))/0x9)+-parseInt(_0x130505(0x98))/0xa;if(_0xb25960===_0x3ab540)break;else _0x1bee56['push'](_0x1bee56['shift']());}catch(_0x3a8c33){_0x1bee56['push'](_0x1bee56['shift']());}}}(a200_0x92d2,0xbec41));function a200_0x2b16(_0x24904f,_0x575d2d){_0x24904f=_0x24904f-0x82;const _0x92d2a3=a200_0x92d2();let _0x2b1627=_0x92d2a3[_0x24904f];return _0x2b1627;}import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':'custom-detail','description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0x4fa991(0x95),'defaultOutputFormat':a200_0x4fa991(0x9b),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x4fa991(0x96),'required':!![],'description':a200_0x4fa991(0x90)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x42a6ec){readCustomPageId(_0x42a6ec);},async 'execute'(_0xa90c97){const _0x1cb738=a200_0x4fa991,_0x481cbc=readCustomPageId(_0xa90c97),_0x576719=await getCustomPageSource(_0x481cbc),{bundle:_0x2e176d,createTime:_0x485b57,updateTime:_0x1c5166,..._0x299edc}=_0x576719,_0x52f925=_0x576719['id']??_0x481cbc,_0x2e96ac=_0x576719[_0x1cb738(0x8e)]?.[_0x1cb738(0x97)]()||_0xa90c97[_0x1cb738(0x8d)]('appcode')['trim'](),_0x4130d7=buildCustomPageRuntimeUrl(_0x2e96ac,_0x576719[_0x1cb738(0x8f)]),_0x2b973d=buildCustomPageEditUrl(_0x2e96ac,_0x52f925),_0x3f25fb=await resolveCustomPageDevelopmentUrl(_0x2e96ac,_0x52f925,_0xa90c97[_0x1cb738(0x8b)]);return{'ok':!![],'data':{..._0x299edc,..._0x4130d7?{'runtimePageUrl':_0x4130d7}:{},..._0x3f25fb?{'pageUrl':_0x3f25fb}:{},..._0x2b973d?{'editPageUrl':_0x2b973d}:{},..._0x485b57==null?{}:{'createTime':formatTime(_0x485b57)},..._0x1c5166==null?{}:{'updateTime':formatTime(_0x1c5166)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x481cbc+'.'};}};function a200_0x92d2(){const _0x3bdf34=['getMonth','42kDlrxJ','cookie','10436090Tlloav','str','appCode','pageCode','Custom\x20Page\x20ID','getHours','padStart','getSeconds','90UZnLtG','read','number','trim','11449860WbJqcN','1573136fIeWEx','2598ZohEcT','compress','getMinutes','865950HdhGJy','getFullYear','193266qImhfs','743468xbekLP','63EDjrUK','getTime','isNaN'];a200_0x92d2=function(){return _0x3bdf34;};return a200_0x92d2();}function formatTime(_0x8ed64c){const _0x43ba7e=a200_0x4fa991,_0x18a551=new Date(_0x8ed64c);if(Number[_0x43ba7e(0x88)](_0x18a551[_0x43ba7e(0x87)]()))return String(_0x8ed64c);const _0x5ac0b3=[_0x18a551[_0x43ba7e(0x83)](),String(_0x18a551[_0x43ba7e(0x89)]()+0x1)[_0x43ba7e(0x92)](0x2,'0'),String(_0x18a551['getDate']())[_0x43ba7e(0x92)](0x2,'0')]['join']('-'),_0xcf7297=[String(_0x18a551[_0x43ba7e(0x91)]())[_0x43ba7e(0x92)](0x2,'0'),String(_0x18a551[_0x43ba7e(0x9c)]())[_0x43ba7e(0x92)](0x2,'0'),String(_0x18a551[_0x43ba7e(0x93)]())[_0x43ba7e(0x92)](0x2,'0')]['join'](':');return _0x5ac0b3+'\x20'+_0xcf7297;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a201_0x25faa8=a201_0x34ba;function a201_0x23d5(){const _0x1fa03b=['page','24713180XQQJsj','read','path','6494368wcvAAP','9rzYixH','19615mvYUGI','652916fJHTaA','99702xJKSbe','2056059fkzzik','21DqEWgM','\x20Custom\x20Page(s).','react','appCode','menus','length','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','custom-list','pageId','flatMap','1198066PuxCzz','No\x20Custom\x20Pages\x20found.','label','1076oeqaXa'];a201_0x23d5=function(){return _0x1fa03b;};return a201_0x23d5();}(function(_0x4d270f,_0xfabe0d){const _0x10d040=a201_0x34ba,_0x1854e4=_0x4d270f();while(!![]){try{const _0x50d96d=-parseInt(_0x10d040(0x105))/0x1+parseInt(_0x10d040(0xf8))/0x2+-parseInt(_0x10d040(0xfa))/0x3+-parseInt(_0x10d040(0x108))/0x4*(parseInt(_0x10d040(0xf7))/0x5)+-parseInt(_0x10d040(0xf9))/0x6*(parseInt(_0x10d040(0xfb))/0x7)+parseInt(_0x10d040(0xf5))/0x8+-parseInt(_0x10d040(0xf6))/0x9*(-parseInt(_0x10d040(0xf2))/0xa);if(_0x50d96d===_0xfabe0d)break;else _0x1854e4['push'](_0x1854e4['shift']());}catch(_0x3f29ec){_0x1854e4['push'](_0x1854e4['shift']());}}}(a201_0x23d5,0x979d7));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x34ba(_0x362707,_0x5d8888){_0x362707=_0x362707-0xf2;const _0x23d5af=a201_0x23d5();let _0x34ba8c=_0x23d5af[_0x362707];return _0x34ba8c;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x25faa8(0x109),'command':a201_0x25faa8(0x102),'description':a201_0x25faa8(0x101),'risk':a201_0x25faa8(0xf3),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x7ac51){const _0x192191=a201_0x25faa8,_0x1571d5=(await fetchMenuSnapshot(_0x7ac51['appCode'],_0x7ac51['cookie']))[_0x192191(0xff)][_0x192191(0x104)](_0x56fda2=>{const _0x4eca0c=_0x192191;if(_0x56fda2['type']!==_0x4eca0c(0xfd)||_0x56fda2['pageId']==null)return[];const _0x310b2b=buildCustomPageDevelopmentUrl(_0x7ac51[_0x4eca0c(0xfe)],_0x56fda2['path']),_0x52cb00=buildCustomPageRuntimeUrl(_0x7ac51[_0x4eca0c(0xfe)],_0x56fda2[_0x4eca0c(0xf4)]),_0x15dc5e=buildCustomPageEditUrl(_0x7ac51[_0x4eca0c(0xfe)],_0x56fda2[_0x4eca0c(0x103)]);return[{'pageId':_0x56fda2[_0x4eca0c(0x103)],'label':_0x56fda2[_0x4eca0c(0x107)],'path':_0x56fda2[_0x4eca0c(0xf4)],..._0x310b2b?{'pageUrl':_0x310b2b}:{},..._0x52cb00?{'runtimePageUrl':_0x52cb00}:{},..._0x15dc5e?{'editPageUrl':_0x15dc5e}:{}}];});return{'ok':!![],'data':{'pages':_0x1571d5},'message':_0x1571d5[_0x192191(0x100)]===0x0?_0x192191(0x106):'Found\x20'+_0x1571d5[_0x192191(0x100)]+_0x192191(0xfc)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x59b52b=a202_0x3f38;(function(_0x1d1486,_0x4520f8){const _0x106c27=a202_0x3f38,_0x2fb2a0=_0x1d1486();while(!![]){try{const _0x2d14d2=-parseInt(_0x106c27(0xdc))/0x1*(parseInt(_0x106c27(0xf7))/0x2)+parseInt(_0x106c27(0xf0))/0x3*(-parseInt(_0x106c27(0xd6))/0x4)+parseInt(_0x106c27(0xf8))/0x5*(-parseInt(_0x106c27(0xdd))/0x6)+parseInt(_0x106c27(0xef))/0x7+-parseInt(_0x106c27(0xe8))/0x8*(-parseInt(_0x106c27(0xeb))/0x9)+parseInt(_0x106c27(0xda))/0xa*(parseInt(_0x106c27(0xe7))/0xb)+-parseInt(_0x106c27(0xdf))/0xc*(parseInt(_0x106c27(0xe1))/0xd);if(_0x2d14d2===_0x4520f8)break;else _0x2fb2a0['push'](_0x2fb2a0['shift']());}catch(_0x52eefa){_0x2fb2a0['push'](_0x2fb2a0['shift']());}}}(a202_0x5eaf,0x7dd16));function a202_0x5eaf(){const _0x6270ec=['push','5339271xaVmDB','57JoaLTj','appCode','FORMAL','remark','number','isInteger','compress','76JelLXK','26125aeQWWT','status','custom-publish','runtimePageUrl','cookie','Would\x20publish\x20Custom\x20Page\x20','145884DvTnZn','Custom\x20Page\x20ID','POST','pageId','8273850pHfbUj','string','1203hAvZYL','762IbOvmG','Published\x20Custom\x20Page\x20','2847348MpajAz','pageCode','26DdsoZt','/smartapi/webcode/file/publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','Optional\x20publish\x20remark','page.custom-publish','11nDhSzA','27072zzbwDH','trim','unknown','2133XOCUxu','warnings','str'];a202_0x5eaf=function(){return _0x6270ec;};return a202_0x5eaf();}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a202_0x3f38(_0x11984b,_0x7a7dea){_0x11984b=_0x11984b-0xd5;const _0x5eaff3=a202_0x5eaf();let _0x3f3879=_0x5eaff3[_0x11984b];return _0x3f3879;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':'page','command':a202_0x59b52b(0xfa),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':'write','defaultOutputFormat':a202_0x59b52b(0xf6),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x59b52b(0xf4),'required':!![],'description':a202_0x59b52b(0xd7)},{'name':'remark','type':a202_0x59b52b(0xdb),'description':a202_0x59b52b(0xe5)}],async 'validate'(_0x15218f){readCustomPageId(_0x15218f);},async 'dryRun'(_0x25dc56){const _0x1784dc=a202_0x59b52b,_0x47513e=readInput(_0x25dc56);return{'method':_0x1784dc(0xd8),'url':_0x1784dc(0xe2),'body':{'id':_0x47513e[_0x1784dc(0xd9)],..._0x47513e[_0x1784dc(0xf3)]?{'remark':_0x47513e[_0x1784dc(0xf3)]}:{}},'description':_0x1784dc(0xd5)+_0x47513e['pageId']+'.'};},async 'execute'(_0x43862b){const _0x2528f4=a202_0x59b52b,_0x370bd0=readInput(_0x43862b);await getCustomPageSource(_0x370bd0['pageId']);const _0x3d2ef3=await publishCustomPage(_0x370bd0);if(!Number[_0x2528f4(0xf5)](_0x3d2ef3)||_0x3d2ef3!==_0x370bd0[_0x2528f4(0xd9)])throw CliErrors['apiError'](_0x2528f4(0xe4));const _0xa68042=await getCustomPageSource(_0x370bd0['pageId']);if(_0xa68042[_0x2528f4(0xf9)]!==_0x2528f4(0xf2))throw CliErrors['apiError'](_0x2528f4(0xe3)+(_0xa68042['status']??_0x2528f4(0xea))+'.');const _0x35fcca=_0xa68042[_0x2528f4(0xf1)]?.[_0x2528f4(0xe9)](),_0x4d211e=buildCustomPageEditUrl(_0x35fcca,_0x370bd0[_0x2528f4(0xd9)]),_0x352b77=await resolveCustomPageDevelopmentUrl(_0x35fcca,_0x370bd0[_0x2528f4(0xd9)],_0x43862b[_0x2528f4(0xfc)]),_0xe143d0=buildMutationData(_0x370bd0,!![],_0x352b77,_0x4d211e);_0x35fcca&&!_0x352b77&&_0xe143d0[_0x2528f4(0xec)][_0x2528f4(0xee)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x1b974a=buildCustomPageRuntimeUrl(_0xa68042[_0x2528f4(0xf1)],_0xa68042[_0x2528f4(0xe0)]);return _0x1b974a?_0xe143d0[_0x2528f4(0xfb)]=_0x1b974a:_0xe143d0['warnings'][_0x2528f4(0xee)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0xe143d0,'message':_0x2528f4(0xde)+_0x370bd0['pageId']+'.'};}};function readInput(_0x50dab4){const _0x53d66f=a202_0x59b52b,_0x4f5ba7=readCustomPageId(_0x50dab4),_0x2aad69=_0x50dab4[_0x53d66f(0xed)](_0x53d66f(0xf3))[_0x53d66f(0xe9)]();return{'pageId':_0x4f5ba7,..._0x2aad69?{'remark':_0x2aad69}:{}};}function buildMutationData(_0x2456a4,_0x244982=![],_0x358317,_0x577c00){const _0x2e700b=a202_0x59b52b;return{'operation':_0x2e700b(0xe6),'selector':{'pageId':_0x2456a4[_0x2e700b(0xd9)]},'before':null,'after':{'pageId':_0x2456a4[_0x2e700b(0xd9)],'status':'FORMAL'},'dryRun':!_0x244982,'request':_0x2456a4,..._0x358317?{'pageUrl':_0x358317}:{},..._0x577c00?{'editPageUrl':_0x577c00}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x4c689f=a203_0x1df2;(function(_0x4d9d6a,_0x5b535c){const _0x4a38e1=a203_0x1df2,_0x275f33=_0x4d9d6a();while(!![]){try{const _0x3c928b=-parseInt(_0x4a38e1(0x133))/0x1*(parseInt(_0x4a38e1(0x135))/0x2)+parseInt(_0x4a38e1(0x137))/0x3+-parseInt(_0x4a38e1(0x12d))/0x4+parseInt(_0x4a38e1(0x13b))/0x5+parseInt(_0x4a38e1(0x13d))/0x6+-parseInt(_0x4a38e1(0x129))/0x7+parseInt(_0x4a38e1(0x12b))/0x8;if(_0x3c928b===_0x5b535c)break;else _0x275f33['push'](_0x275f33['shift']());}catch(_0x197abb){_0x275f33['push'](_0x275f33['shift']());}}}(a203_0x4db8,0x26091));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a203_0x4db8(){const _0x16bf3e=['485882rUjsXh','type','822072vuYwwQ','Invalid\x20Custom\x20Page\x20content:\x20','--id\x20must\x20be\x20a\x20positive\x20integer.','/ide/','271260FWBCje','react','231030sfxKYd','menus','map','876610KaWeIC','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','3370136XfdBGW','length','1056336fKURwP','/pages/','message','join','path','file','1MRDBbv','find'];a203_0x4db8=function(){return _0x16bf3e;};return a203_0x4db8();}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';function a203_0x1df2(_0x50ef98,_0x292624){_0x50ef98=_0x50ef98-0x128;const _0x4db855=a203_0x4db8();let _0x1df2c4=_0x4db855[_0x50ef98];return _0x1df2c4;}import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x4c689f(0x12a)};function trimOptional(_0x11bcbc){return _0x11bcbc?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x451503,_0x5d2054){const _0x15ad97=trimOptional(_0x451503),_0x1cae67=trimOptional(_0x5d2054);if(!_0x15ad97||!_0x1cae67)return undefined;return getPublishedAppDomain(_0x15ad97)+'/'+encodeURIComponent(_0x1cae67);}export function buildCustomPageDevelopmentUrl(_0x1f44ed,_0x4550a2){const _0x29f83c=a203_0x4c689f,_0x4c35be=trimOptional(_0x1f44ed),_0x384963=trimOptional(_0x4550a2);if(!_0x4c35be||!_0x384963)return undefined;return getAppBaseUrl(_0x4c35be)+_0x29f83c(0x12e)+encodeURIComponent(_0x384963);}export async function resolveCustomPageDevelopmentUrl(_0x4d754f,_0x5903ab,_0x33826a){const _0x20b12e=a203_0x4c689f,_0x1262e0=trimOptional(_0x4d754f);if(!_0x1262e0)return undefined;try{const _0x5c3481=(await fetchMenuSnapshot(_0x1262e0,_0x33826a))[_0x20b12e(0x13e)][_0x20b12e(0x134)](_0x34895a=>_0x34895a[_0x20b12e(0x136)]===_0x20b12e(0x13c)&&_0x34895a['pageId']===_0x5903ab);return buildCustomPageDevelopmentUrl(_0x1262e0,_0x5c3481?.[_0x20b12e(0x131)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x4ebeb7,_0x551b3a){const _0xdc3196=a203_0x4c689f,_0x1c58d3=trimOptional(_0x4ebeb7);if(!_0x1c58d3)return;const _0x3a6402=trimOptional(String(_0x551b3a??''));if(!_0x3a6402)return;return getAppBaseUrl(_0x1c58d3)+_0xdc3196(0x13a)+encodeURIComponent(_0x3a6402);}export async function validateCustomPageContent(_0x4bfa69){const _0x26e5e8=a203_0x4c689f,_0x257f1b=await validateCustomPageSourceFiles(_0x4bfa69);if(_0x257f1b[_0x26e5e8(0x12c)]>0x0)throw CliErrors['validation'](_0x26e5e8(0x138)+_0x257f1b[_0x26e5e8(0x128)](_0x2582f9=>_0x2582f9[_0x26e5e8(0x132)]+':\x20'+_0x2582f9[_0x26e5e8(0x12f)])[_0x26e5e8(0x130)](';\x20'));}export function readCustomPageId(_0xa156f1){const _0x442eeb=a203_0x4c689f,_0x9ad14e=_0xa156f1['num']('id');if(!Number['isInteger'](_0x9ad14e)||_0x9ad14e<=0x0)throw CliErrors['validation'](_0x442eeb(0x139));return _0x9ad14e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a204_0x20808e=a204_0x58f0;(function(_0x1ee7aa,_0x416768){const _0x3e8a70=a204_0x58f0,_0x4d0f12=_0x1ee7aa();while(!![]){try{const _0x18ba7b=parseInt(_0x3e8a70(0x1f2))/0x1*(parseInt(_0x3e8a70(0x1f3))/0x2)+-parseInt(_0x3e8a70(0x1e9))/0x3*(-parseInt(_0x3e8a70(0x1ee))/0x4)+parseInt(_0x3e8a70(0x1f1))/0x5+parseInt(_0x3e8a70(0x1f5))/0x6+parseInt(_0x3e8a70(0x1f0))/0x7+-parseInt(_0x3e8a70(0x1eb))/0x8+parseInt(_0x3e8a70(0x1df))/0x9*(-parseInt(_0x3e8a70(0x1e7))/0xa);if(_0x18ba7b===_0x416768)break;else _0x4d0f12['push'](_0x4d0f12['shift']());}catch(_0xdc379e){_0x4d0f12['push'](_0x4d0f12['shift']());}}}(a204_0x333c,0xd0b40));import{format}from'prettier';function a204_0x333c(){const _0x174c96=['4uLbGNN','typescript','1748705OxVMHF','3196620vNBEfr','4185wcYFnd','454kIgrFE','message','6107484bNnSTV','all','153756HBpcKR','.jsx','page\x20files','entries','trim','endsWith','babel','filter','680YCtRFW','find','709431nhCyyQ','some','8615720BwwAzX','toLowerCase','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'];a204_0x333c=function(){return _0x174c96;};return a204_0x333c();}const SOURCE_PARSERS={'.js':a204_0x20808e(0x1e5),'.jsx':a204_0x20808e(0x1e5),'.ts':a204_0x20808e(0x1ef),'.tsx':a204_0x20808e(0x1ef)},CUSTOM_PAGE_EXTENSIONS=[a204_0x20808e(0x1e0),'.tsx'];function a204_0x58f0(_0x59677b,_0x54987a){_0x59677b=_0x59677b-0x1df;const _0x333c7c=a204_0x333c();let _0x58f0ef=_0x333c7c[_0x59677b];return _0x58f0ef;}export async function validateCustomPageSourceFiles(_0x27dccf){const _0x2e65f6=a204_0x20808e,_0x15ae1d=Object[_0x2e65f6(0x1e2)](_0x27dccf)[_0x2e65f6(0x1e6)](([_0xe9ac18])=>getParser(_0xe9ac18));if(!_0x15ae1d[_0x2e65f6(0x1ea)](([_0x3b117b])=>isReactSourceFile(_0x3b117b)))return[{'file':_0x2e65f6(0x1e1),'message':_0x2e65f6(0x1ed)}];const _0x18dcfb=await Promise[_0x2e65f6(0x1f6)](_0x15ae1d['map'](async([_0x42c599,_0x22e459])=>{const _0x11e16c=_0x2e65f6;try{return await format(_0x22e459,{'parser':getParser(_0x42c599)}),undefined;}catch(_0x54ac57){return{'file':_0x42c599,'message':_0x54ac57 instanceof Error?_0x54ac57[_0x11e16c(0x1f4)]:String(_0x54ac57)};}}));return _0x18dcfb[_0x2e65f6(0x1e6)](_0x1bf29b=>_0x1bf29b!==undefined);}function getParser(_0x3ebc56){const _0x4bbbef=a204_0x20808e,_0x4b77e5=_0x3ebc56[_0x4bbbef(0x1e3)]()[_0x4bbbef(0x1ec)]();return Object[_0x4bbbef(0x1e2)](SOURCE_PARSERS)[_0x4bbbef(0x1e8)](([_0x246711])=>_0x4b77e5[_0x4bbbef(0x1e4)](_0x246711))?.[0x1];}function isReactSourceFile(_0x3e5313){const _0x261f2a=a204_0x20808e,_0x5d8522=_0x3e5313['trim']()[_0x261f2a(0x1ec)]();return CUSTOM_PAGE_EXTENSIONS[_0x261f2a(0x1ea)](_0x4d68ca=>_0x5d8522['endsWith'](_0x4d68ca));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0x522d88=a205_0x3a85;(function(_0x261946,_0x364461){const _0x3949b5=a205_0x3a85,_0x25bdc6=_0x261946();while(!![]){try{const _0x375857=parseInt(_0x3949b5(0xd7))/0x1+-parseInt(_0x3949b5(0xd9))/0x2+parseInt(_0x3949b5(0xd0))/0x3+parseInt(_0x3949b5(0xda))/0x4*(-parseInt(_0x3949b5(0xd4))/0x5)+parseInt(_0x3949b5(0xd5))/0x6+parseInt(_0x3949b5(0xdb))/0x7+-parseInt(_0x3949b5(0xc4))/0x8;if(_0x375857===_0x364461)break;else _0x25bdc6['push'](_0x25bdc6['shift']());}catch(_0x130a7f){_0x25bdc6['push'](_0x25bdc6['shift']());}}}(a205_0x51c3,0x8973f));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x3a85(_0x481a03,_0x365e76){_0x481a03=_0x481a03-0xc3;const _0x51c3f6=a205_0x51c3();let _0x3a8586=_0x51c3f6[_0x481a03];return _0x3a8586;}export const pageCustomUpdate={'service':a205_0x522d88(0xd1),'command':'custom-update','description':a205_0x522d88(0xdd),'risk':a205_0x522d88(0xdc),'defaultOutputFormat':a205_0x522d88(0xd2),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x522d88(0xe1),'message':a205_0x522d88(0xcf),'hint':a205_0x522d88(0xe2)}],'flags':[{'name':'id','type':a205_0x522d88(0xd8),'required':!![],'description':a205_0x522d88(0xca)},{'name':'page-dir','type':a205_0x522d88(0xd6),'required':!![],'description':a205_0x522d88(0xcb)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x924e3c){readCustomPageId(_0x924e3c),await readValidatedPageContent(_0x924e3c);},async 'dryRun'(_0x203e1b){const _0x477563=a205_0x522d88,_0x2dd957=await readInput(_0x203e1b);return{'method':_0x477563(0xc8),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x2dd957[_0x477563(0xde)],'codeContent':_0x2dd957[_0x477563(0xcc)]},'description':_0x477563(0xc9)+_0x2dd957[_0x477563(0xde)]+'.'};},async 'execute'(_0x562157){const _0x5d30b8=a205_0x522d88,_0x4e2639=await readInput(_0x562157),_0x2fef62=await updateCustomPageContent({'pageId':_0x4e2639['pageId'],'pageContent':_0x4e2639['pageContent']});if(!Number['isInteger'](_0x2fef62[_0x5d30b8(0xd3)])||_0x2fef62[_0x5d30b8(0xd3)]<=0x0)throw CliErrors[_0x5d30b8(0xe0)](_0x5d30b8(0xe3));const _0x341fa4=buildCustomPageEditUrl(_0x4e2639[_0x5d30b8(0xcd)],_0x4e2639['pageId']),_0x47a9f4=await resolveCustomPageDevelopmentUrl(_0x4e2639[_0x5d30b8(0xcd)],_0x4e2639[_0x5d30b8(0xde)],_0x562157['cookie']);return{'ok':!![],'data':{'operation':_0x5d30b8(0xc3),'selector':{'appCode':_0x4e2639[_0x5d30b8(0xcd)],'pageId':_0x4e2639[_0x5d30b8(0xde)]},'before':null,'after':{'pageId':_0x2fef62['pageId'],'version':_0x2fef62[_0x5d30b8(0xd3)],'pageContent':_0x4e2639[_0x5d30b8(0xcc)]},'dryRun':![],'request':_0x4e2639,..._0x47a9f4?{'pageUrl':_0x47a9f4}:{},..._0x341fa4?{'editPageUrl':_0x341fa4}:{},'warnings':_0x47a9f4?[]:[_0x5d30b8(0xc5)]},'message':_0x5d30b8(0xce)+_0x4e2639[_0x5d30b8(0xde)]+'.'};}};async function readInput(_0x50d82f){const _0x25dd63=a205_0x522d88,_0x52f5e9=readCustomPageId(_0x50d82f),_0x573cd9=_0x50d82f[_0x25dd63(0xc7)]('appcode')[_0x25dd63(0xc6)]()||(await getCustomPageSource(_0x52f5e9))['appCode']?.[_0x25dd63(0xc6)]();if(!_0x573cd9)throw CliErrors[_0x25dd63(0xdf)]('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x52f5e9+'.');return{'appCode':_0x573cd9,'pageId':_0x52f5e9,'pageContent':await readValidatedPageContent(_0x50d82f)};}async function readValidatedPageContent(_0x360218){const _0x2d5e4f=a205_0x522d88,_0x3017cf=await readCustomPageDirectory(_0x360218['str'](_0x2d5e4f(0xe4)));return await validateCustomPageContent(_0x3017cf),_0x3017cf;}function a205_0x51c3(){const _0x5da8e0=['Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page-dir','page.custom-update','4882832DwgMFt','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','str','POST','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','Custom\x20Page\x20ID','Directory\x20containing\x20all\x20complete\x20page\x20files','pageContent','appCode','Updated\x20Custom\x20Page\x20','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','3125196ARxcam','page','compress','newVersion','764420wSkQhZ','261720ZEAYic','string','432159akwtSM','number','1875948WHQyPT','4QVIvfP','5226956ZRFXDn','write','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','pageId','validation','apiError','page-content','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'];a205_0x51c3=function(){return _0x5da8e0;};return a205_0x51c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a206_0xb2b0(){const _0x3e854f=['1010690ahsfkQ','page','/standard-page-status?appCode=','1183293DKjYcV','338583EKPsjD','475155DLzlST','appCode','87368yTAPKN','code','manualResolutionRequired','2203836WDxbFN','related-pages-fallback','2gyKiXW','nextAction','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','source','compress','length','status','16VxocMC','6087348IacGiu','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','data-list-status'];a206_0xb2b0=function(){return _0x3e854f;};return a206_0xb2b0();}const a206_0x2b0d61=a206_0x15aa;(function(_0x118ef4,_0x2a4d3a){const _0x252b61=a206_0x15aa,_0x414062=_0x118ef4();while(!![]){try{const _0x361b83=-parseInt(_0x252b61(0x7d))/0x1+-parseInt(_0x252b61(0x6d))/0x2*(parseInt(_0x252b61(0x7b))/0x3)+-parseInt(_0x252b61(0x68))/0x4+parseInt(_0x252b61(0x78))/0x5+parseInt(_0x252b61(0x6b))/0x6+parseInt(_0x252b61(0x7c))/0x7*(-parseInt(_0x252b61(0x74))/0x8)+parseInt(_0x252b61(0x75))/0x9;if(_0x361b83===_0x2a4d3a)break;else _0x414062['push'](_0x414062['shift']());}catch(_0x59be4d){_0x414062['push'](_0x414062['shift']());}}}(a206_0xb2b0,0x3ee72));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a206_0x15aa(_0x32a54a,_0x70141b){_0x32a54a=_0x32a54a-0x68;const _0xb2b074=a206_0xb2b0();let _0x15aaf8=_0xb2b074[_0x32a54a];return _0x15aaf8;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x2b0d61(0x79),'command':a206_0x2b0d61(0x77),'description':a206_0x2b0d61(0x6f),'risk':'read','defaultOutputFormat':a206_0x2b0d61(0x71),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a206_0x2b0d61(0x76)}],async 'validate'(_0x375846){validateDatasetSelector(_0x375846);},async 'dryRun'(_0x5ebeda){const _0x5ca490=a206_0x2b0d61,_0x510fc5=await loadDatasetDetailForPage(_0x5ebeda);return{'method':'GET','url':'/smartapi/lovrabet/dataset/'+_0x510fc5[_0x5ca490(0x69)]+_0x5ca490(0x7a)+encodeURIComponent(_0x5ebeda[_0x5ca490(0x7e)]),'description':serializeDryRunDescription({'dataset':{'id':_0x510fc5['id'],'code':_0x510fc5[_0x5ca490(0x69)],'name':_0x510fc5['name']},'action':'query-data-list-status'})};},async 'execute'(_0x3144c4){const _0x9ffcad=a206_0x2b0d61,_0x8307c2=await loadDatasetDetailForPage(_0x3144c4),_0x1f32bf=await loadDataListPageStatusForGenerate(_0x3144c4,_0x8307c2[_0x9ffcad(0x69)]),_0x4f5033=getUndeletedRelatedPages(_0x8307c2),_0x732f6f=assessDataListPageState(_0x8307c2[_0x9ffcad(0x69)],_0x1f32bf,{'fallbackUndeletedPages':_0x4f5033});return{'ok':!![],'data':{'datasetCode':_0x8307c2[_0x9ffcad(0x69)],'precheckSource':_0x1f32bf?.[_0x9ffcad(0x70)]??_0x9ffcad(0x6c),'status':_0x732f6f[_0x9ffcad(0x73)],'manualResolutionRequired':_0x732f6f[_0x9ffcad(0x6a)],'nextAction':_0x732f6f[_0x9ffcad(0x6e)],'dataListPageStatus':_0x1f32bf,'relatedPages':{'total':_0x8307c2['relatedPages'][_0x9ffcad(0x72)],'undeletedCount':_0x4f5033[_0x9ffcad(0x72)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x1cba2c=a207_0xc9ec;function a207_0x3a94(){const _0x4e5ef3=['precheck','bool','allowGenerate','progressRate','1415986mSgcLw','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','/generate-standard-pages/start','Reusing\x20an\x20existing\x20generate\x20task','653205hhLmtw','POST','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','status','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','2870965lucTUF','compress','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','nextAction','currentStep','operationId','string','592tlwHXh','manualResolutionRequired','clientOperationId','dryRun','DATA_LIST','6436700GtkpHi','/smartapi/lovrabet/dataset/','819CATrOJ','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','source','PARTIAL_SUCCESS','code','SUCCESS','alias','name','dataset','generate-start','taskId','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','page-pattern','message','boolean','409854mGavxd','page','appCode','CRUD_PAGE_SET','1401297fZXvda','related-pages-fallback','write','dataListPageStatus','number','4sHGYXm','reused','14sLNLZn','apply'];a207_0x3a94=function(){return _0x4e5ef3;};return a207_0x3a94();}(function(_0x4d0b60,_0x4bd593){const _0xe90288=a207_0xc9ec,_0x117a16=_0x4d0b60();while(!![]){try{const _0x2b8d1a=-parseInt(_0xe90288(0xc1))/0x1+parseInt(_0xe90288(0xbd))/0x2+parseInt(_0xe90288(0xb0))/0x3*(parseInt(_0xe90288(0xb5))/0x4)+-parseInt(_0xe90288(0xc7))/0x5+-parseInt(_0xe90288(0xac))/0x6*(parseInt(_0xe90288(0xb7))/0x7)+parseInt(_0xe90288(0xce))/0x8*(parseInt(_0xe90288(0xd5))/0x9)+parseInt(_0xe90288(0xd3))/0xa;if(_0x2b8d1a===_0x4bd593)break;else _0x117a16['push'](_0x117a16['shift']());}catch(_0x252878){_0x117a16['push'](_0x117a16['shift']());}}}(a207_0x3a94,0x70aa8));function a207_0xc9ec(_0x194344,_0x156939){_0x194344=_0x194344-0x9e;const _0x3a9473=a207_0x3a94();let _0xc9ec44=_0x3a9473[_0x194344];return _0xc9ec44;}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_0x1cba2c(0xad),'command':a207_0x1cba2c(0xa6),'description':a207_0x1cba2c(0xc6),'risk':a207_0x1cba2c(0xb2),'defaultOutputFormat':a207_0x1cba2c(0xc8),'rejectedFlags':[{'name':'page-type','message':a207_0x1cba2c(0xc3),'hint':a207_0x1cba2c(0xa8)},{'name':a207_0x1cba2c(0xa9),'message':a207_0x1cba2c(0xbe),'hint':a207_0x1cba2c(0xc5)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x1cba2c(0xa3),'type':a207_0x1cba2c(0xcd),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a207_0x1cba2c(0xb8),'type':a207_0x1cba2c(0xab),'description':a207_0x1cba2c(0x9e)}],async 'validate'(_0x1b83c2){validateDatasetSelector(_0x1b83c2);},async 'dryRun'(_0x45ed3e){const _0x3ece38=a207_0x1cba2c,_0x20eac0=await prepare(_0x45ed3e);return{'method':_0x3ece38(0xc2),'url':_0x3ece38(0xd4)+_0x20eac0[_0x3ece38(0xa5)][_0x3ece38(0xa1)]+_0x3ece38(0xbf),'body':{'appCode':_0x45ed3e[_0x3ece38(0xae)],'clientOperationId':_0x20eac0[_0x3ece38(0xd0)]},'description':serializeDryRunDescription({'dataset':{'id':_0x20eac0[_0x3ece38(0xa5)]['id'],'code':_0x20eac0[_0x3ece38(0xa5)][_0x3ece38(0xa1)],'name':_0x20eac0[_0x3ece38(0xa5)][_0x3ece38(0xa4)],'fieldCount':_0x20eac0[_0x3ece38(0xa5)]['fieldCount']},'precheckSource':_0x20eac0['dataListPageStatus']?.[_0x3ece38(0x9f)]??'related-pages-fallback','action':_0x3ece38(0xa6),'clientOperationId':_0x20eac0['clientOperationId'],'plannedStatus':_0x20eac0[_0x3ece38(0xb9)][_0x3ece38(0xc4)],'reason':_0x20eac0['precheck'][_0x3ece38(0xaa)]})};},async 'execute'(_0x43a678){const _0x3a447c=a207_0x1cba2c;if(!_0x43a678[_0x3a447c(0xba)]('apply')){const _0x5c80ce=await pageGenerateStart[_0x3a447c(0xd1)](_0x43a678);return{'ok':!![],'message':_0x3a447c(0xc9),'data':_0x5c80ce};}const _0x12c15f=await prepare(_0x43a678);if(!_0x12c15f[_0x3a447c(0xb9)][_0x3a447c(0xbb)])return{'ok':![],'message':_0x12c15f[_0x3a447c(0xb9)][_0x3a447c(0xaa)],'data':{'datasetCode':_0x12c15f[_0x3a447c(0xa5)][_0x3a447c(0xa1)],'pageType':_0x3a447c(0xd2),'pagePattern':_0x3a447c(0xaf),'clientOperationId':_0x12c15f[_0x3a447c(0xd0)],'precheckSource':_0x12c15f[_0x3a447c(0xb3)]?.[_0x3a447c(0x9f)]??_0x3a447c(0xb1),'status':_0x12c15f[_0x3a447c(0xb9)][_0x3a447c(0xc4)],'manualResolutionRequired':_0x12c15f[_0x3a447c(0xb9)][_0x3a447c(0xcf)],'nextAction':_0x12c15f[_0x3a447c(0xb9)][_0x3a447c(0xca)],'query':{'command':buildDataListPageStatusQueryCommand(_0x12c15f['dataset'][_0x3a447c(0xa1)],_0x43a678[_0x3a447c(0xae)])},'dataListPageStatus':_0x12c15f[_0x3a447c(0xb3)]}};const _0x1394fb=await startGenerateDataListPages(_0x43a678['appCode'],_0x12c15f[_0x3a447c(0xa5)][_0x3a447c(0xa1)],{'clientOperationId':_0x12c15f[_0x3a447c(0xd0)]}),_0x2635ae=_0x1394fb[_0x3a447c(0xc4)]===_0x3a447c(0xa2)||_0x1394fb[_0x3a447c(0xc4)]===_0x3a447c(0xa0)?await loadDataListPageStatusForGenerate(_0x43a678,_0x12c15f[_0x3a447c(0xa5)]['code']):null,_0x4093b3=assessGenerateOperationState(_0x12c15f[_0x3a447c(0xa5)]['code'],_0x1394fb[_0x3a447c(0xc4)],_0x2635ae);return{'ok':!![],'message':_0x1394fb['reused']?_0x3a447c(0xc0):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x12c15f['dataset'][_0x3a447c(0xa1)],'appCode':_0x43a678[_0x3a447c(0xae)],'pageType':_0x3a447c(0xd2),'pagePattern':_0x3a447c(0xaf),'taskId':_0x1394fb[_0x3a447c(0xa7)]??null,'operationId':_0x1394fb[_0x3a447c(0xcc)]??null,'clientOperationId':_0x12c15f[_0x3a447c(0xd0)],'jobStatus':_0x1394fb[_0x3a447c(0xc4)]??null,'progressRate':typeof _0x1394fb[_0x3a447c(0xbc)]===_0x3a447c(0xb4)?_0x1394fb[_0x3a447c(0xbc)]:null,'currentStep':_0x1394fb[_0x3a447c(0xcb)]??null,'reused':_0x1394fb[_0x3a447c(0xb6)]===!![],'status':_0x4093b3[_0x3a447c(0xc4)],'manualResolutionRequired':_0x4093b3[_0x3a447c(0xcf)],'nextAction':_0x4093b3[_0x3a447c(0xca)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x12c15f[_0x3a447c(0xa5)][_0x3a447c(0xa1)],{'appCode':_0x43a678[_0x3a447c(0xae)],'taskId':_0x1394fb[_0x3a447c(0xa7)],'operationId':_0x1394fb['operationId'],'clientOperationId':_0x12c15f[_0x3a447c(0xd0)]})},'dataListPageStatus':_0x2635ae}};}};async function prepare(_0x5cce85){const _0x115e82=a207_0x1cba2c,_0xcb6e79=await loadDatasetDetailForPage(_0x5cce85),_0xe7485e=await loadDataListPageStatusForGenerate(_0x5cce85,_0xcb6e79[_0x115e82(0xa1)]),_0x2310b8=getUndeletedRelatedPages(_0xcb6e79);return{'dataset':_0xcb6e79,'dataListPageStatus':_0xe7485e,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0xcb6e79[_0x115e82(0xa1)],_0xe7485e,{'fallbackUndeletedPages':_0x2310b8})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x2b6f91=a208_0x5f4d;function a208_0x5f4d(_0x15b8a8,_0x501c95){_0x15b8a8=_0x15b8a8-0x80;const _0x1ae4c4=a208_0x1ae4();let _0x5f4d1c=_0x1ae4c4[_0x15b8a8];return _0x5f4d1c;}(function(_0xcb42bb,_0x1a02ba){const _0x2d6173=a208_0x5f4d,_0x18f585=_0xcb42bb();while(!![]){try{const _0x3e7854=-parseInt(_0x2d6173(0xa1))/0x1+parseInt(_0x2d6173(0xa3))/0x2+parseInt(_0x2d6173(0x83))/0x3*(parseInt(_0x2d6173(0xa0))/0x4)+parseInt(_0x2d6173(0x89))/0x5*(parseInt(_0x2d6173(0x99))/0x6)+-parseInt(_0x2d6173(0x9f))/0x7*(-parseInt(_0x2d6173(0xa7))/0x8)+-parseInt(_0x2d6173(0x87))/0x9+-parseInt(_0x2d6173(0x94))/0xa*(parseInt(_0x2d6173(0x80))/0xb);if(_0x3e7854===_0x1a02ba)break;else _0x18f585['push'](_0x18f585['shift']());}catch(_0xeef05d){_0x18f585['push'](_0x18f585['shift']());}}}(a208_0x1ae4,0x6194b));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';function a208_0x1ae4(){const _0x141bd5=['/smartapi/lovrabet/dataset/','PARTIAL_SUCCESS','operation_failed','result','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','clientOperationId','generate-status','429290BVUyls','client-operation-id','set','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','status','12rUmcQS','alias','SUCCESS','name','currentStep','query-generate-operation-status','5416201kbIDjh','4plRDMI','227884dGeGUi','operation-id','268166TmkdwS','code','manualResolutionRequired','page','8MGJlNL','nextAction','string','task-id','message','taskId','read','220uTnwRk','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','progressRate','549204YQuLgA','operationId','compress','number','3336399vbMoAX','str','1914930JYgRAF','errorMsg','GET','appCode'];a208_0x1ae4=function(){return _0x141bd5;};return a208_0x1ae4();}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x2b6f91(0xa6),'command':a208_0x2b6f91(0x93),'description':a208_0x2b6f91(0x91),'risk':a208_0x2b6f91(0xad),'defaultOutputFormat':a208_0x2b6f91(0x85),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x2b6f91(0x9a),'type':a208_0x2b6f91(0xa9),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x2b6f91(0xaa),'type':a208_0x2b6f91(0xa9),'description':a208_0x2b6f91(0x81)},{'name':a208_0x2b6f91(0xa2),'type':a208_0x2b6f91(0xa9),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':'client-operation-id','type':a208_0x2b6f91(0xa9),'description':a208_0x2b6f91(0x97)}],async 'validate'(_0x37cd2d){validateDatasetSelector(_0x37cd2d),validateGenerateOperationSelector(_0x37cd2d);},async 'dryRun'(_0x347564){const _0xaf831d=a208_0x2b6f91,_0x110644=await loadDatasetDetailForPage(_0x347564),_0x4506c7=_0x347564[_0xaf831d(0x88)](_0xaf831d(0xaa)),_0x5de9aa=_0x347564[_0xaf831d(0x88)](_0xaf831d(0xa2)),_0x10427c=_0x347564[_0xaf831d(0x88)](_0xaf831d(0x95)),_0x1fba77=new URLSearchParams({'appCode':_0x347564[_0xaf831d(0x8c)]});return _0x4506c7&&_0x1fba77[_0xaf831d(0x96)](_0xaf831d(0xac),_0x4506c7),_0x5de9aa&&_0x1fba77[_0xaf831d(0x96)](_0xaf831d(0x84),_0x5de9aa),_0x10427c&&_0x1fba77[_0xaf831d(0x96)]('clientOperationId',_0x10427c),{'method':_0xaf831d(0x8b),'url':_0xaf831d(0x8d)+_0x110644[_0xaf831d(0xa4)]+'/generate-standard-pages/status?'+_0x1fba77['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x110644['id'],'code':_0x110644[_0xaf831d(0xa4)],'name':_0x110644[_0xaf831d(0x9c)]},'action':_0xaf831d(0x9e),'taskId':_0x4506c7||undefined,'operationId':_0x5de9aa||undefined,'clientOperationId':_0x10427c||undefined})};},async 'execute'(_0x1945e8){const _0x247993=a208_0x2b6f91,_0x431396=await loadDatasetDetailForPage(_0x1945e8),_0x1c39c7=_0x1945e8[_0x247993(0x88)]('task-id'),_0x8093ab=_0x1945e8[_0x247993(0x88)]('operation-id'),_0xcc3622=_0x1945e8['str'](_0x247993(0x95)),_0x32f40a=await getGenerateDataListPagesStatus(_0x1945e8[_0x247993(0x8c)],_0x431396[_0x247993(0xa4)],{'taskId':_0x1c39c7||undefined,'operationId':_0x8093ab||undefined,'clientOperationId':_0xcc3622||undefined}),_0x25337d=_0x32f40a[_0x247993(0x98)]===_0x247993(0x9b)||_0x32f40a[_0x247993(0x98)]===_0x247993(0x8e),_0x1aa026=_0x25337d?await loadDataListPageStatusForGenerate(_0x1945e8,_0x431396[_0x247993(0xa4)]):null,_0x9a4dd0=assessGenerateOperationState(_0x431396[_0x247993(0xa4)],_0x32f40a[_0x247993(0x98)],_0x1aa026),_0x5c2c81=_0x32f40a[_0x247993(0xac)]??_0x1c39c7??undefined,_0x121442=_0x32f40a[_0x247993(0x84)]??_0x8093ab??undefined,_0x44966a=_0x32f40a[_0x247993(0x92)]??_0xcc3622??undefined;return{'ok':!![],'message':_0x9a4dd0[_0x247993(0x98)]===_0x247993(0x8f)?_0x32f40a[_0x247993(0x8a)]||_0x9a4dd0[_0x247993(0xab)]:_0x9a4dd0['message'],'data':{'datasetCode':_0x431396[_0x247993(0xa4)],'appCode':_0x1945e8[_0x247993(0x8c)],'taskId':_0x5c2c81,'operationId':_0x121442,'clientOperationId':_0x44966a,'jobStatus':_0x32f40a[_0x247993(0x98)]??null,'progressRate':typeof _0x32f40a[_0x247993(0x82)]===_0x247993(0x86)?_0x32f40a[_0x247993(0x82)]:null,'currentStep':_0x32f40a[_0x247993(0x9d)]??null,'errorMsg':_0x32f40a[_0x247993(0x8a)]??null,'status':_0x9a4dd0[_0x247993(0x98)],'manualResolutionRequired':_0x9a4dd0[_0x247993(0xa5)],'nextAction':_0x9a4dd0[_0x247993(0xa8)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x431396[_0x247993(0xa4)],{'appCode':_0x1945e8['appCode'],'taskId':_0x5c2c81,'operationId':_0x121442,'clientOperationId':_0x44966a})},'dataListPageStatus':_0x1aa026,'result':_0x32f40a[_0x247993(0x90)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12e1dc,_0x2da793){const _0x5a7a51=a209_0x1f0d,_0x483b99=_0x12e1dc();while(!![]){try{const _0x1bd073=parseInt(_0x5a7a51(0x177))/0x1+parseInt(_0x5a7a51(0x172))/0x2*(parseInt(_0x5a7a51(0x175))/0x3)+parseInt(_0x5a7a51(0x17a))/0x4+-parseInt(_0x5a7a51(0x179))/0x5*(parseInt(_0x5a7a51(0x171))/0x6)+parseInt(_0x5a7a51(0x174))/0x7+-parseInt(_0x5a7a51(0x178))/0x8+parseInt(_0x5a7a51(0x176))/0x9*(-parseInt(_0x5a7a51(0x173))/0xa);if(_0x1bd073===_0x2da793)break;else _0x483b99['push'](_0x483b99['shift']());}catch(_0x26e007){_0x483b99['push'](_0x483b99['shift']());}}}(a209_0x2c85,0x614e3));import{pageGenerateStart}from'../../commands/page/generate-start.js';function a209_0x1f0d(_0x1c466d,_0x41389a){_0x1c466d=_0x1c466d-0x171;const _0x2c8516=a209_0x2c85();let _0x1f0d00=_0x2c8516[_0x1c466d];return _0x1f0d00;}import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';function a209_0x2c85(){const _0x1248e1=['2445331qUwUcD','2094GaSYHB','9BSNmuv','361750OcttHn','4046376yueimD','31970tfZnHh','1871608uCfuPa','60TolxJy','964BsKkTJ','5471210pPunba'];a209_0x2c85=function(){return _0x1248e1;};return a209_0x2c85();}import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';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
|
+
const a210_0xa4e19b=a210_0x35ab;(function(_0x2c5a37,_0x40e9d4){const _0x35934b=a210_0x35ab,_0x15fe24=_0x2c5a37();while(!![]){try{const _0x459403=-parseInt(_0x35934b(0xe8))/0x1*(parseInt(_0x35934b(0xe9))/0x2)+-parseInt(_0x35934b(0xd8))/0x3+-parseInt(_0x35934b(0xde))/0x4+parseInt(_0x35934b(0xec))/0x5*(-parseInt(_0x35934b(0xdb))/0x6)+-parseInt(_0x35934b(0xf6))/0x7*(parseInt(_0x35934b(0xd3))/0x8)+parseInt(_0x35934b(0xf5))/0x9*(parseInt(_0x35934b(0xf2))/0xa)+parseInt(_0x35934b(0xc8))/0xb;if(_0x459403===_0x40e9d4)break;else _0x15fe24['push'](_0x15fe24['shift']());}catch(_0x1b3343){_0x15fe24['push'](_0x15fe24['shift']());}}}(a210_0x1170,0x6636d));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a210_0x35ab(_0x15c845,_0x4eb93f){_0x15c845=_0x15c845-0xbe;const _0x1170de=a210_0x1170();let _0x35ab34=_0x1170de[_0x15c845];return _0x35ab34;}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';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':'pull','description':a210_0xa4e19b(0xd6),'risk':a210_0xa4e19b(0xd1),'defaultOutputFormat':a210_0xa4e19b(0xf4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0xa4e19b(0xdc),'type':'string','description':a210_0xa4e19b(0xe2)},{'name':a210_0xa4e19b(0xea),'type':a210_0xa4e19b(0xe7),'description':a210_0xa4e19b(0xc5)},{'name':'force','type':a210_0xa4e19b(0xbe),'description':a210_0xa4e19b(0xc2)}],async 'validate'(_0x4e6483){validatePageTargetSelector(_0x4e6483);},async 'dryRun'(_0x18ee11){const _0x3609fc=a210_0xa4e19b,_0x169422=await buildPullPlan(_0x18ee11);return{'method':_0x3609fc(0xd9),'url':_0x169422[_0x3609fc(0xcd)]===_0x3609fc(0xf8)?'/smartapi/lovrabet/detail?pageId='+(_0x169422[_0x3609fc(0xe5)][0x0]?.[_0x3609fc(0xca)]['pageId']??''):_0x3609fc(0xd0),'body':{'appCode':_0x18ee11[_0x3609fc(0xf9)],'mode':_0x169422[_0x3609fc(0xcd)],'targetDatasetCode':_0x169422[_0x3609fc(0xed)]??null,'pages':_0x169422[_0x3609fc(0xe5)][_0x3609fc(0xe1)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x169422[_0x3609fc(0xcd)],'datasetCode':_0x169422[_0x3609fc(0xed)]??null,'totalCandidates':_0x169422[_0x3609fc(0xe5)]['length'],'totalWouldPull':_0x169422[_0x3609fc(0xe5)]['filter'](_0x239a7a=>_0x239a7a[_0x3609fc(0xeb)]===_0x3609fc(0xf3))['length'],'totalConflicts':_0x169422[_0x3609fc(0xe5)][_0x3609fc(0xcc)](_0x4fec96=>_0x4fec96[_0x3609fc(0xeb)]===_0x3609fc(0xdd))[_0x3609fc(0xc1)]})};},async 'execute'(_0x2a6ce1){const _0x3aa15c=a210_0xa4e19b,_0x4a34a0=loadPageProjectConfig(_0x2a6ce1['appCode']),_0x183ba0=await readPageLockFile(_0x4a34a0[_0x3aa15c(0xc9)]),{lockData:_0x484f13,appLock:_0x56dd23}=ensurePageLockScope(_0x183ba0??createEmptyPageLock(),_0x2a6ce1['appCode']),_0x3afb48=await buildPullPlan(_0x2a6ce1),_0x89bbc6=_0x2a6ce1[_0x3aa15c(0xf7)](_0x3aa15c(0xc7));if(_0x3afb48[_0x3aa15c(0xcd)]===_0x3aa15c(0xf8)&&_0x3afb48[_0x3aa15c(0xe5)][0x0]?.[_0x3aa15c(0xeb)]===_0x3aa15c(0xdd)&&!_0x89bbc6)throw CliErrors[_0x3aa15c(0xe6)](_0x3aa15c(0xcb)+_0x3afb48['items'][0x0][_0x3aa15c(0xef)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x136482=[],_0x3fd16e=[];for(const _0x32f802 of _0x3afb48[_0x3aa15c(0xe5)]){if(_0x32f802[_0x3aa15c(0xeb)]===_0x3aa15c(0xdd)&&!_0x89bbc6){_0x3fd16e['push']({'pageId':_0x32f802[_0x3aa15c(0xca)][_0x3aa15c(0xe3)],'type':_0x32f802[_0x3aa15c(0xca)][_0x3aa15c(0xbf)],'title':_0x32f802[_0x3aa15c(0xca)][_0x3aa15c(0xf1)],'localPath':_0x32f802[_0x3aa15c(0xef)],'reason':_0x32f802[_0x3aa15c(0xc0)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x32f802[_0x3aa15c(0xef)]);const _0x10a353=serializePageSchemaForFile(_0x32f802[_0x3aa15c(0xca)]['code']);await writeFile(_0x32f802[_0x3aa15c(0xef)],_0x10a353,_0x3aa15c(0xd4)),_0x56dd23[_0x3aa15c(0xd2)][String(_0x32f802['detail'][_0x3aa15c(0xe3)])]=buildLockEntry(_0x32f802[_0x3aa15c(0xca)],_0x10a353),_0x136482[_0x3aa15c(0xc6)]({'pageId':_0x32f802[_0x3aa15c(0xca)]['pageId'],'type':_0x32f802[_0x3aa15c(0xca)][_0x3aa15c(0xbf)],'title':_0x32f802[_0x3aa15c(0xca)]['name'],'localPath':_0x32f802['localPath']});}return _0x56dd23[_0x3aa15c(0xd5)]=new Date()[_0x3aa15c(0xcf)](),await writePageLockFile(_0x4a34a0[_0x3aa15c(0xc9)],_0x484f13),{'ok':!![],'message':_0x3aa15c(0xee)+_0x136482[_0x3aa15c(0xc1)]+_0x3aa15c(0xc3)+_0x3fd16e[_0x3aa15c(0xc1)]+_0x3aa15c(0xf0),'data':{'appCode':_0x2a6ce1[_0x3aa15c(0xf9)],'pulledPages':_0x136482,'skippedPages':_0x3fd16e,'totalPulled':_0x136482[_0x3aa15c(0xc1)],'totalSkipped':_0x3fd16e[_0x3aa15c(0xc1)]}};}};async function buildPullPlan(_0x23398c){const _0x313f49=a210_0xa4e19b,_0x19eea5=loadPageProjectConfig(_0x23398c[_0x313f49(0xf9)]),_0x2cba16=await readPageLockFile(_0x19eea5['lockFilePath']),{appLock:_0x570646}=ensurePageLockScope(_0x2cba16??createEmptyPageLock(),_0x23398c[_0x313f49(0xf9)]),_0x5d258c=getPageIdFlag(_0x23398c);if(_0x5d258c!==undefined){const _0x3d8d10=await loadPageDetailForPage(_0x23398c,_0x5d258c);return{'mode':_0x313f49(0xf8),'items':[await inspectPullTarget(_0x19eea5,_0x570646[_0x313f49(0xd2)][String(_0x3d8d10['pageId'])],_0x3d8d10)]};}const _0x11f5fe=await loadDatasetDetailForPage(_0x23398c),_0x5aaac2=_0x11f5fe['relatedPages'][_0x313f49(0xcc)](_0x24f0a9=>!_0x24f0a9['deleted']);if(_0x5aaac2[_0x313f49(0xc1)]===0x0)throw CliErrors[_0x313f49(0xe6)](_0x313f49(0xce)+_0x11f5fe[_0x313f49(0xda)]+'\x22\x20has\x20no\x20undeleted\x20related\x20pages.');const _0x3e8174=await Promise['all'](_0x5aaac2['map'](_0x26f2f0=>loadPageDetailForPage(_0x23398c,_0x26f2f0['id']))),_0x48f181=selectVersionTagGroup(_0x3e8174,_0x49f193=>_0x49f193['versionTag'],_0x23398c[_0x313f49(0xd7)](_0x313f49(0xea)));return{'mode':_0x313f49(0xc4),'datasetCode':_0x11f5fe[_0x313f49(0xda)],'items':await Promise[_0x313f49(0xe4)](_0x48f181[_0x313f49(0xe5)]['map'](_0x7dca23=>inspectPullTarget(_0x19eea5,_0x570646['pages'][String(_0x7dca23[_0x313f49(0xe3)])],_0x7dca23)))};}async function inspectPullTarget(_0x312cc2,_0x515f0e,_0x20324a){const _0x3f0a5b=a210_0xa4e19b,_0xe077ce=resolvePageFilePath(_0x312cc2,_0x20324a[_0x3f0a5b(0xe3)],_0x20324a[_0x3f0a5b(0xbf)]),_0x61ae4d=await fileExists(_0xe077ce);if(!_0x61ae4d){const _0x416504=serializePageSchemaForFile(_0x20324a['code']);return{'detail':_0x20324a,'localPath':_0xe077ce,'localHash':computePageContentHash(_0x416504),'status':_0x3f0a5b(0xf3)};}const _0x5ba2e8=await computePageFileHash(_0xe077ce);if(!_0x515f0e||_0x5ba2e8!==_0x515f0e[_0x3f0a5b(0xdf)])return{'detail':_0x20324a,'localPath':_0xe077ce,'localHash':_0x5ba2e8,'status':_0x3f0a5b(0xdd),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x20324a,'localPath':_0xe077ce,'localHash':_0x5ba2e8,'status':_0x3f0a5b(0xf3)};}function buildLockEntry(_0x4bf16b,_0x4050ac){const _0x352902=a210_0xa4e19b;return{'hash':computePageContentHash(_0x4050ac),'pageId':_0x4bf16b[_0x352902(0xe3)],'pageVersion':_0x4bf16b[_0x352902(0xe0)],'type':_0x4bf16b[_0x352902(0xbf)],'title':_0x4bf16b[_0x352902(0xf1)],'datasetIds':_0x4bf16b['datasetIds'],'versionTag':_0x4bf16b['versionTag']};}function a210_0x1170(){const _0x3d224c=['toISOString','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','read','pages','78912rFDPtx','utf8','lastSync','Pull\x20page\x20schema\x20to\x20local\x20files','str','2499426ZyLMuo','GET','code','5015244TNAAgV','alias','conflict','3110336dWsaoU','hash','pageVersion','map','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','pageId','all','items','validation','string','41597WbQAZS','2vOlgHe','version-tag','status','5URLJtP','datasetCode','Pull\x20complete:\x20','localPath','\x20skipped','name','10WwMyGb','would_pull','compress','229743LmrTBi','455KJqNsE','bool','single','appCode','boolean','type','reason','length','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','\x20pulled,\x20','batch','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','push','force','38747489EYRNpn','lockFilePath','detail','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','filter','mode','Dataset\x20\x22'];a210_0x1170=function(){return _0x3d224c;};return a210_0x1170();}function toPreviewItem(_0x5acf92){const _0x56b248=a210_0xa4e19b;return{'pageId':_0x5acf92[_0x56b248(0xca)]['pageId'],'type':_0x5acf92[_0x56b248(0xca)][_0x56b248(0xbf)],'title':_0x5acf92[_0x56b248(0xca)][_0x56b248(0xf1)],'localPath':_0x5acf92['localPath'],'status':_0x5acf92['status'],..._0x5acf92[_0x56b248(0xc0)]?{'reason':_0x5acf92[_0x56b248(0xc0)]}:{}};}
|