@lovrabet/rabetbase-cli 2.5.13-beta.1 → 2.5.13
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-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x1bef01=a199_0x578c;(function(_0x5020ba,_0x2b70da){const _0x27ac5e=a199_0x578c,_0x20ddae=_0x5020ba();while(!![]){try{const _0x585b38=-parseInt(_0x27ac5e(0xad))/0x1*(parseInt(_0x27ac5e(0x9b))/0x2)+-parseInt(_0x27ac5e(0x91))/0x3+parseInt(_0x27ac5e(0xa3))/0x4+-parseInt(_0x27ac5e(0x9c))/0x5+-parseInt(_0x27ac5e(0xa7))/0x6*(parseInt(_0x27ac5e(0x7e))/0x7)+-parseInt(_0x27ac5e(0x83))/0x8+parseInt(_0x27ac5e(0x94))/0x9;if(_0x585b38===_0x2b70da)break;else _0x20ddae['push'](_0x20ddae['shift']());}catch(_0x123713){_0x20ddae['push'](_0x20ddae['shift']());}}}(a199_0x5a76,0xf0b8d));import{readFile}from'node:fs/promises';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';function a199_0x578c(_0x3ee1f4,_0x2bbcf8){_0x3ee1f4=_0x3ee1f4-0x7d;const _0x5a76c8=a199_0x5a76();let _0x578cc2=_0x5a76c8[_0x3ee1f4];return _0x578cc2;}const CUSTOM_PAGE_PATTERNS=['BLANK',a199_0x1bef01(0x9e),a199_0x1bef01(0xa9)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x1bef01(0xa8));export const pageCreate={'service':a199_0x1bef01(0xa2),'command':a199_0x1bef01(0xaa),'description':a199_0x1bef01(0xb5),'risk':a199_0x1bef01(0x84),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a199_0x1bef01(0x7f),'message':a199_0x1bef01(0xba),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':a199_0x1bef01(0x7d),'message':'page\x20create\x20no\x20longer\x20accepts\x20--page-content.','hint':a199_0x1bef01(0xa4)}],'flags':[{'name':a199_0x1bef01(0x80),'type':a199_0x1bef01(0x8e),'description':a199_0x1bef01(0x95)},{'name':a199_0x1bef01(0x8b),'type':'number','description':a199_0x1bef01(0x8f)},{'name':'page-pattern','type':'string','description':a199_0x1bef01(0x98),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x1bef01(0x9d),'type':a199_0x1bef01(0x8e),'description':a199_0x1bef01(0xb6)},APPCODE_FLAG],async 'validate'(_0x5df044){await readValidatedPageSource(_0x5df044);},async 'dryRun'(_0x33f261){const _0x42039e=a199_0x1bef01,_0x331538=readInput(_0x33f261,await readValidatedPageSource(_0x33f261));return{'method':'POST','url':_0x42039e(0xbb),'body':{'appCode':_0x331538[_0x42039e(0xb4)],'pageName':_0x331538[_0x42039e(0x90)],..._0x331538['parentMenuId']!=null?{'parentMenuId':_0x331538[_0x42039e(0xa6)]}:{},'createMenu':_0x331538[_0x42039e(0x9f)],'codeContent':_0x331538[_0x42039e(0xa5)]},'description':_0x42039e(0xb7)+JSON[_0x42039e(0x89)](_0x331538['pageName'])+_0x42039e(0xb1)};},async 'execute'(_0x1aa2c1){const _0x342538=a199_0x1bef01,_0x49846d=readInput(_0x1aa2c1,await readValidatedPageSource(_0x1aa2c1)),_0x561fc6=await createCustomPage(_0x49846d);if(!Number['isInteger'](_0x561fc6[_0x342538(0xb2)])||_0x561fc6[_0x342538(0xb2)]<=0x0)throw CliErrors[_0x342538(0xb0)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x21a55a=buildCustomPageDevelopmentUrl(_0x49846d[_0x342538(0xb4)],_0x561fc6[_0x342538(0x81)]),_0x501e28=buildCustomPageEditUrl(_0x49846d['appCode'],_0x561fc6['pageId']);return{'ok':!![],'data':{'operation':_0x342538(0x96),'pageType':_0x342538(0xb8),'pagePattern':readPagePattern(_0x1aa2c1),'selector':{'appCode':_0x49846d[_0x342538(0xb4)],'pageName':_0x49846d[_0x342538(0x90)]},'before':null,'after':{'pageId':_0x561fc6[_0x342538(0xb2)],'pageName':_0x561fc6[_0x342538(0x90)],'appCode':_0x561fc6[_0x342538(0xb4)],'version':_0x561fc6['version'],'menuId':_0x561fc6[_0x342538(0x86)],'menuPath':_0x561fc6['menuPath'],'files':_0x561fc6[_0x342538(0xa5)]??Object[_0x342538(0xab)](_0x49846d[_0x342538(0xa5)])},'dryRun':![],'request':_0x49846d,..._0x21a55a?{'pageUrl':_0x21a55a}:{},..._0x501e28?{'editPageUrl':_0x501e28}:{},'warnings':_0x21a55a?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x342538(0x8d)+_0x561fc6['pageId']+'.'};}};function readPagePattern(_0x5b40d4){const _0x1c95d6=a199_0x1bef01,_0x16c77e=_0x5b40d4[_0x1c95d6(0x87)]('page-pattern')[_0x1c95d6(0x82)](),_0x2504ec=_0x5b40d4[_0x1c95d6(0x87)](_0x1c95d6(0x9d))[_0x1c95d6(0x82)]();if(_0x16c77e&&_0x2504ec)throw CliErrors[_0x1c95d6(0xa0)](_0x1c95d6(0x85));if(_0x2504ec)return null;if(!_0x16c77e)throw CliErrors[_0x1c95d6(0xa0)]('Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.');if(!CUSTOM_PAGE_PATTERNS['includes'](_0x16c77e))throw CliErrors['validation'](_0x1c95d6(0x99));return _0x16c77e;}async function readPageSource(_0x5ad9b9){const _0xab7a75=a199_0x1bef01,_0x33e352=_0x5ad9b9[_0xab7a75(0x87)](_0xab7a75(0x9d))[_0xab7a75(0x82)](),_0x41d09b=readPagePattern(_0x5ad9b9);if(_0x41d09b===null){const _0x326065=await readCustomPageDirectory(_0x33e352);if(Object[_0xab7a75(0xab)](_0x326065)[_0xab7a75(0x88)]===0x0)throw CliErrors[_0xab7a75(0xa0)](_0xab7a75(0x9a));return _0x326065;}let _0x454ddd;try{_0x454ddd=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x41d09b[_0xab7a75(0x97)]()+_0xab7a75(0xb9)),_0xab7a75(0xac));}catch{throw CliErrors[_0xab7a75(0xa0)](_0xab7a75(0xbc)+_0x41d09b+'.');}let _0x3c907f;try{_0x3c907f=JSON[_0xab7a75(0xa1)](_0x454ddd);}catch{throw CliErrors[_0xab7a75(0xa0)](_0xab7a75(0xae)+_0x41d09b+'.');}if(!_0x3c907f||typeof _0x3c907f!==_0xab7a75(0xbd)||Array['isArray'](_0x3c907f)||Object[_0xab7a75(0xb3)](_0x3c907f)[_0xab7a75(0x92)](_0x2c333a=>typeof _0x2c333a!==_0xab7a75(0x8e)))throw CliErrors['validation'](_0xab7a75(0xae)+_0x41d09b+'.');return _0x3c907f;}async function readValidatedPageSource(_0x14c127){const _0x3ed640=await readPageSource(_0x14c127);return await validateCustomPageContent(_0x3ed640),_0x3ed640;}function a199_0x5a76(){const _0x2d332e=['str','length','stringify','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','parent-menu-id','now','Created\x20Custom\x20Page\x20','string','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','pageName','3799392LOxNeH','some','Custom_page_','65846925GUpOwo','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','page.create','toLowerCase','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','394jTLxQk','9199345fauUdC','page-dir','ONEPAGE','createMenu','validation','parse','page','5527772hEhRVC','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','files','parentMenuId','222fnGFSq','../../../templates/custom-pages','DASHBOARD','create','keys','utf8','9326RwYqrz','Invalid\x20Custom\x20Page\x20pattern:\x20','isNaN','apiError','\x20and\x20its\x20menu\x20entry.','pageId','values','appCode','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','Would\x20create\x20Custom\x20Page\x20','CUSTOM','.json','page\x20create\x20does\x20not\x20accept\x20--page-type.','/smartapi/webcode/page/create','Custom\x20Page\x20pattern\x20not\x20found:\x20','object','page-content','197435LwhMDm','page-type','name','menuPath','trim','13801048jfwKou','write','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','menuId'];a199_0x5a76=function(){return _0x2d332e;};return a199_0x5a76();}function readInput(_0x824f61,_0x41aada){const _0x5dfe9a=a199_0x1bef01,_0x5a7c0c=_0x824f61[_0x5dfe9a(0x87)](_0x5dfe9a(0x80))['trim']()||_0x5dfe9a(0x93)+Date[_0x5dfe9a(0x8c)]();if(_0x5a7c0c['length']>0x64)throw CliErrors[_0x5dfe9a(0xa0)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x215f56=_0x824f61['num'](_0x5dfe9a(0x8b),NaN),_0x30c6ed=!Number[_0x5dfe9a(0xaf)](_0x215f56);if(_0x30c6ed&&(!Number['isInteger'](_0x215f56)||_0x215f56<=0x0))throw CliErrors[_0x5dfe9a(0xa0)](_0x5dfe9a(0x8a));return{'appCode':_0x824f61[_0x5dfe9a(0xb4)],'pageName':_0x5a7c0c,..._0x30c6ed?{'parentMenuId':_0x215f56}:{},'createMenu':!![],'files':_0x41aada};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x4814cd=a200_0x4bde;(function(_0x4ad882,_0x4f2b6e){const _0x3f847b=a200_0x4bde,_0x3a9d03=_0x4ad882();while(!![]){try{const _0x1f875e=parseInt(_0x3f847b(0x16a))/0x1+-parseInt(_0x3f847b(0x168))/0x2+-parseInt(_0x3f847b(0x158))/0x3+-parseInt(_0x3f847b(0x155))/0x4*(-parseInt(_0x3f847b(0x15f))/0x5)+parseInt(_0x3f847b(0x16d))/0x6*(parseInt(_0x3f847b(0x15e))/0x7)+parseInt(_0x3f847b(0x160))/0x8*(parseInt(_0x3f847b(0x15d))/0x9)+-parseInt(_0x3f847b(0x16c))/0xa*(-parseInt(_0x3f847b(0x16b))/0xb);if(_0x1f875e===_0x4f2b6e)break;else _0x3a9d03['push'](_0x3a9d03['shift']());}catch(_0x1bc3a7){_0x3a9d03['push'](_0x3a9d03['shift']());}}}(a200_0x1e90,0x8935a));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x1e90(){const _0x4a0a85=['getSeconds','831027XmWpRj','Custom\x20Page\x20ID','join','trim','cookie','108FJRTvK','7zbpVRT','254645WZEfxG','561360ZSdeYi','isNaN','Retrieved\x20Custom\x20Page\x20','getFullYear','number','getTime','getHours','custom-detail','1535678BdxzAv','appcode','79453EGyDQT','44MKboog','36590anuOCY','2802078PsemsS','padStart','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','str','getMonth','compress','16eOaaid','page'];a200_0x1e90=function(){return _0x4a0a85;};return a200_0x1e90();}function a200_0x4bde(_0x22f6da,_0x5453b0){_0x22f6da=_0x22f6da-0x152;const _0x1e90b2=a200_0x1e90();let _0x4bdef5=_0x1e90b2[_0x22f6da];return _0x4bdef5;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x4814cd(0x156),'command':a200_0x4814cd(0x167),'description':a200_0x4814cd(0x16f),'risk':'read','defaultOutputFormat':a200_0x4814cd(0x154),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x4814cd(0x164),'required':!![],'description':a200_0x4814cd(0x159)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2c737e){readCustomPageId(_0x2c737e);},async 'execute'(_0x378bca){const _0x1e733f=a200_0x4814cd,_0x28ba9a=readCustomPageId(_0x378bca),_0x213bc9=await getCustomPageSource(_0x28ba9a),{bundle:_0x26c97e,createTime:_0x20b7bf,updateTime:_0x138d31,..._0x13cbb5}=_0x213bc9,_0x52b5b7=_0x213bc9['id']??_0x28ba9a,_0x10817c=_0x213bc9['appCode']?.[_0x1e733f(0x15b)]()||_0x378bca[_0x1e733f(0x152)](_0x1e733f(0x169))[_0x1e733f(0x15b)](),_0x3bda69=buildCustomPageRuntimeUrl(_0x10817c,_0x213bc9['pageCode']),_0x40b7aa=buildCustomPageEditUrl(_0x10817c,_0x52b5b7),_0x54e5e0=await resolveCustomPageDevelopmentUrl(_0x10817c,_0x52b5b7,_0x378bca[_0x1e733f(0x15c)]);return{'ok':!![],'data':{..._0x13cbb5,..._0x3bda69?{'runtimePageUrl':_0x3bda69}:{},..._0x54e5e0?{'pageUrl':_0x54e5e0}:{},..._0x40b7aa?{'editPageUrl':_0x40b7aa}:{},..._0x20b7bf==null?{}:{'createTime':formatTime(_0x20b7bf)},..._0x138d31==null?{}:{'updateTime':formatTime(_0x138d31)}},'message':_0x1e733f(0x162)+_0x28ba9a+'.'};}};function formatTime(_0x121bb0){const _0x4c9758=a200_0x4814cd,_0x2879c8=new Date(_0x121bb0);if(Number[_0x4c9758(0x161)](_0x2879c8[_0x4c9758(0x165)]()))return String(_0x121bb0);const _0x5a4a3a=[_0x2879c8[_0x4c9758(0x163)](),String(_0x2879c8[_0x4c9758(0x153)]()+0x1)[_0x4c9758(0x16e)](0x2,'0'),String(_0x2879c8['getDate']())['padStart'](0x2,'0')]['join']('-'),_0xc055d1=[String(_0x2879c8[_0x4c9758(0x166)]())[_0x4c9758(0x16e)](0x2,'0'),String(_0x2879c8['getMinutes']())[_0x4c9758(0x16e)](0x2,'0'),String(_0x2879c8[_0x4c9758(0x157)]())[_0x4c9758(0x16e)](0x2,'0')][_0x4c9758(0x15a)](':');return _0x5a4a3a+'\x20'+_0xc055d1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a201_0x3e804e=a201_0x5373;function a201_0x4fc1(){const _0x47a883=['compress','6257wwrIqk','read','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','pageId','custom-list','label','854420PFmvOT','126959BnrYJi','644214BzhSRi','322220BFMZCo','1128690srhhFf','15ySGfen','length','8ibWDZn','cookie','48iKDjTH','react','flatMap','page','menus','1289295kGLhTm','Found\x20','appCode','path'];a201_0x4fc1=function(){return _0x47a883;};return a201_0x4fc1();}(function(_0x4a834c,_0x4c0099){const _0x6746b6=a201_0x5373,_0x868cab=_0x4a834c();while(!![]){try{const _0x543fec=-parseInt(_0x6746b6(0x16e))/0x1*(parseInt(_0x6746b6(0x164))/0x2)+parseInt(_0x6746b6(0x15f))/0x3+parseInt(_0x6746b6(0x15e))/0x4+parseInt(_0x6746b6(0x160))/0x5*(-parseInt(_0x6746b6(0x15d))/0x6)+-parseInt(_0x6746b6(0x15c))/0x7*(parseInt(_0x6746b6(0x162))/0x8)+parseInt(_0x6746b6(0x169))/0x9+parseInt(_0x6746b6(0x15b))/0xa;if(_0x543fec===_0x4c0099)break;else _0x868cab['push'](_0x868cab['shift']());}catch(_0x18d043){_0x868cab['push'](_0x868cab['shift']());}}}(a201_0x4fc1,0x2f9fe));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x5373(_0x5ba8b8,_0x590d1d){_0x5ba8b8=_0x5ba8b8-0x159;const _0x4fc1f6=a201_0x4fc1();let _0x537333=_0x4fc1f6[_0x5ba8b8];return _0x537333;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x3e804e(0x167),'command':a201_0x3e804e(0x159),'description':a201_0x3e804e(0x170),'risk':a201_0x3e804e(0x16f),'defaultOutputFormat':a201_0x3e804e(0x16d),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x40cdb9){const _0x551b27=a201_0x3e804e,_0x906505=(await fetchMenuSnapshot(_0x40cdb9[_0x551b27(0x16b)],_0x40cdb9[_0x551b27(0x163)]))[_0x551b27(0x168)][_0x551b27(0x166)](_0xc42435=>{const _0x20410a=_0x551b27;if(_0xc42435['type']!==_0x20410a(0x165)||_0xc42435['pageId']==null)return[];const _0x4998e4=buildCustomPageDevelopmentUrl(_0x40cdb9[_0x20410a(0x16b)],_0xc42435[_0x20410a(0x16c)]),_0x363383=buildCustomPageRuntimeUrl(_0x40cdb9[_0x20410a(0x16b)],_0xc42435[_0x20410a(0x16c)]),_0x5362bf=buildCustomPageEditUrl(_0x40cdb9[_0x20410a(0x16b)],_0xc42435[_0x20410a(0x171)]);return[{'pageId':_0xc42435[_0x20410a(0x171)],'label':_0xc42435[_0x20410a(0x15a)],'path':_0xc42435[_0x20410a(0x16c)],..._0x4998e4?{'pageUrl':_0x4998e4}:{},..._0x363383?{'runtimePageUrl':_0x363383}:{},..._0x5362bf?{'editPageUrl':_0x5362bf}:{}}];});return{'ok':!![],'data':{'pages':_0x906505},'message':_0x906505[_0x551b27(0x161)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x551b27(0x16a)+_0x906505[_0x551b27(0x161)]+'\x20Custom\x20Page(s).'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a202_0x56ddc5=a202_0x1c73;function a202_0x1c73(_0x2dc1ee,_0x47fed4){_0x2dc1ee=_0x2dc1ee-0x16f;const _0x5ea4fe=a202_0x5ea4();let _0x1c7318=_0x5ea4fe[_0x2dc1ee];return _0x1c7318;}(function(_0x42aa1f,_0x47a0b4){const _0x15fb48=a202_0x1c73,_0x40784c=_0x42aa1f();while(!![]){try{const _0x47a66d=-parseInt(_0x15fb48(0x17f))/0x1+-parseInt(_0x15fb48(0x187))/0x2+-parseInt(_0x15fb48(0x191))/0x3+-parseInt(_0x15fb48(0x192))/0x4*(-parseInt(_0x15fb48(0x178))/0x5)+-parseInt(_0x15fb48(0x18f))/0x6+-parseInt(_0x15fb48(0x18d))/0x7*(-parseInt(_0x15fb48(0x17d))/0x8)+-parseInt(_0x15fb48(0x17a))/0x9*(-parseInt(_0x15fb48(0x170))/0xa);if(_0x47a66d===_0x47a0b4)break;else _0x40784c['push'](_0x40784c['shift']());}catch(_0x9637a1){_0x40784c['push'](_0x40784c['shift']());}}}(a202_0x5ea4,0x63464));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':'page','command':a202_0x56ddc5(0x17b),'description':a202_0x56ddc5(0x177),'risk':a202_0x56ddc5(0x18c),'defaultOutputFormat':a202_0x56ddc5(0x18a),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a202_0x56ddc5(0x190)},{'name':a202_0x56ddc5(0x188),'type':'string','description':a202_0x56ddc5(0x173)}],async 'validate'(_0xeffc0f){readCustomPageId(_0xeffc0f);},async 'dryRun'(_0x3efe2b){const _0x35e2cc=a202_0x56ddc5,_0x1efa53=readInput(_0x3efe2b);return{'method':_0x35e2cc(0x17c),'url':_0x35e2cc(0x181),'body':{'id':_0x1efa53[_0x35e2cc(0x18b)],..._0x1efa53[_0x35e2cc(0x188)]?{'remark':_0x1efa53[_0x35e2cc(0x188)]}:{}},'description':_0x35e2cc(0x174)+_0x1efa53[_0x35e2cc(0x18b)]+'.'};},async 'execute'(_0x43d211){const _0x2fd83f=a202_0x56ddc5,_0x22e873=readInput(_0x43d211);await getCustomPageSource(_0x22e873[_0x2fd83f(0x18b)]);const _0x2ee725=await publishCustomPage(_0x22e873);if(!Number[_0x2fd83f(0x185)](_0x2ee725)||_0x2ee725!==_0x22e873[_0x2fd83f(0x18b)])throw CliErrors[_0x2fd83f(0x176)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x20d437=await getCustomPageSource(_0x22e873[_0x2fd83f(0x18b)]);if(_0x20d437[_0x2fd83f(0x179)]!==_0x2fd83f(0x182))throw CliErrors[_0x2fd83f(0x176)](_0x2fd83f(0x189)+(_0x20d437[_0x2fd83f(0x179)]??'unknown')+'.');const _0x3b26db=_0x20d437['appCode']?.[_0x2fd83f(0x171)](),_0x475af4=buildCustomPageEditUrl(_0x3b26db,_0x22e873[_0x2fd83f(0x18b)]),_0x43339f=await resolveCustomPageDevelopmentUrl(_0x3b26db,_0x22e873[_0x2fd83f(0x18b)],_0x43d211['cookie']),_0x467fe1=buildMutationData(_0x22e873,!![],_0x43339f,_0x475af4);_0x3b26db&&!_0x43339f&&_0x467fe1[_0x2fd83f(0x175)][_0x2fd83f(0x172)](_0x2fd83f(0x17e));const _0x527ead=buildCustomPageRuntimeUrl(_0x20d437[_0x2fd83f(0x184)],_0x20d437[_0x2fd83f(0x16f)]);return _0x527ead?_0x467fe1['runtimePageUrl']=_0x527ead:_0x467fe1[_0x2fd83f(0x175)]['push'](_0x2fd83f(0x183)),{'ok':!![],'data':_0x467fe1,'message':_0x2fd83f(0x18e)+_0x22e873['pageId']+'.'};}};function readInput(_0x405ad7){const _0x84f7f1=a202_0x56ddc5,_0x36d623=readCustomPageId(_0x405ad7),_0x4e0eac=_0x405ad7[_0x84f7f1(0x180)]('remark')['trim']();return{'pageId':_0x36d623,..._0x4e0eac?{'remark':_0x4e0eac}:{}};}function a202_0x5ea4(){const _0x1c627b=['trim','push','Optional\x20publish\x20remark','Would\x20publish\x20Custom\x20Page\x20','warnings','apiError','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','110RLWDsK','status','8006130izovRX','custom-publish','POST','636360MzEydS','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','803299SvtEcX','str','/smartapi/webcode/file/publish','FORMAL','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','appCode','isInteger','page.custom-publish','364302PJFbyk','remark','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','compress','pageId','write','35eLwwwQ','Published\x20Custom\x20Page\x20','359412MaqHxe','Custom\x20Page\x20ID','3651fxSePp','30164JBFZyo','pageCode','10kZBeQp'];a202_0x5ea4=function(){return _0x1c627b;};return a202_0x5ea4();}function buildMutationData(_0x4a5fea,_0x409209=![],_0x3e3153,_0x4ac0cd){const _0x29de81=a202_0x56ddc5;return{'operation':_0x29de81(0x186),'selector':{'pageId':_0x4a5fea[_0x29de81(0x18b)]},'before':null,'after':{'pageId':_0x4a5fea['pageId'],'status':_0x29de81(0x182)},'dryRun':!_0x409209,'request':_0x4a5fea,..._0x3e3153?{'pageUrl':_0x3e3153}:{},..._0x4ac0cd?{'editPageUrl':_0x4ac0cd}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x206600=a203_0x513f;(function(_0x36d4a7,_0x2990c4){const _0x3de257=a203_0x513f,_0x4333ea=_0x36d4a7();while(!![]){try{const _0x3c067e=parseInt(_0x3de257(0x142))/0x1+parseInt(_0x3de257(0x139))/0x2*(parseInt(_0x3de257(0x140))/0x3)+-parseInt(_0x3de257(0x13c))/0x4*(parseInt(_0x3de257(0x13e))/0x5)+-parseInt(_0x3de257(0x147))/0x6*(-parseInt(_0x3de257(0x13f))/0x7)+parseInt(_0x3de257(0x152))/0x8+parseInt(_0x3de257(0x141))/0x9*(-parseInt(_0x3de257(0x148))/0xa)+parseInt(_0x3de257(0x143))/0xb;if(_0x3c067e===_0x2990c4)break;else _0x4333ea['push'](_0x4333ea['shift']());}catch(_0xbdf30c){_0x4333ea['push'](_0x4333ea['shift']());}}}(a203_0x2f10,0x53df4));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_0x206600(0x14e)};function a203_0x513f(_0x47111b,_0x176105){_0x47111b=_0x47111b-0x139;const _0x2f1072=a203_0x2f10();let _0x513f16=_0x2f1072[_0x47111b];return _0x513f16;}function a203_0x2f10(){const _0x4e5f69=['trim','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','type','message','/ide/','2341120biDpTh','react','num','map','120002Yrunrr','Invalid\x20Custom\x20Page\x20content:\x20','validation','4LXsQMp','isInteger','979230uzngNS','63uxANyI','6kIQBwr','18AUJIcI','172791cbsnsk','172590AbQzpv','path','join','menus','83838Vqzyqh','937470XFMZkv','file','pageId','length','--id\x20must\x20be\x20a\x20positive\x20integer.'];a203_0x2f10=function(){return _0x4e5f69;};return a203_0x2f10();}function trimOptional(_0x190679){const _0x1f7039=a203_0x206600;return _0x190679?.[_0x1f7039(0x14d)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x44a0e1,_0x1f8a3a){const _0x40e358=trimOptional(_0x44a0e1),_0x3efd33=trimOptional(_0x1f8a3a);if(!_0x40e358||!_0x3efd33)return undefined;return getPublishedAppDomain(_0x40e358)+'/'+encodeURIComponent(_0x3efd33);}export function buildCustomPageDevelopmentUrl(_0x5d3104,_0x2e629d){const _0x33cd49=trimOptional(_0x5d3104),_0x288d7e=trimOptional(_0x2e629d);if(!_0x33cd49||!_0x288d7e)return undefined;return getAppBaseUrl(_0x33cd49)+'/pages/'+encodeURIComponent(_0x288d7e);}export async function resolveCustomPageDevelopmentUrl(_0x20463f,_0x199112,_0xcfb584){const _0x2346d8=a203_0x206600,_0x39e30e=trimOptional(_0x20463f);if(!_0x39e30e)return undefined;try{const _0x42ac24=(await fetchMenuSnapshot(_0x39e30e,_0xcfb584))[_0x2346d8(0x146)]['find'](_0x3e2d14=>_0x3e2d14[_0x2346d8(0x14f)]===_0x2346d8(0x153)&&_0x3e2d14[_0x2346d8(0x14a)]===_0x199112);return buildCustomPageDevelopmentUrl(_0x39e30e,_0x42ac24?.[_0x2346d8(0x144)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x122c61,_0x2dfc24){const _0x59c5e6=a203_0x206600,_0x2f0109=trimOptional(_0x122c61);if(!_0x2f0109)return;const _0x12baaf=trimOptional(String(_0x2dfc24??''));if(!_0x12baaf)return;return getAppBaseUrl(_0x2f0109)+_0x59c5e6(0x151)+encodeURIComponent(_0x12baaf);}export async function validateCustomPageContent(_0x32ceb5){const _0x1e5ba2=a203_0x206600,_0x51dcc7=await validateCustomPageSourceFiles(_0x32ceb5);if(_0x51dcc7[_0x1e5ba2(0x14b)]>0x0)throw CliErrors[_0x1e5ba2(0x13b)](_0x1e5ba2(0x13a)+_0x51dcc7[_0x1e5ba2(0x155)](_0x83a226=>_0x83a226[_0x1e5ba2(0x149)]+':\x20'+_0x83a226[_0x1e5ba2(0x150)])[_0x1e5ba2(0x145)](';\x20'));}export function readCustomPageId(_0x55425c){const _0x11885f=a203_0x206600,_0xa40a17=_0x55425c[_0x11885f(0x154)]('id');if(!Number[_0x11885f(0x13d)](_0xa40a17)||_0xa40a17<=0x0)throw CliErrors[_0x11885f(0x13b)](_0x11885f(0x14c));return _0xa40a17;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a204_0x4812a1=a204_0x39c8;(function(_0x1642ae,_0x380a65){const _0x2c3db1=a204_0x39c8,_0x35aa63=_0x1642ae();while(!![]){try{const _0x15332=parseInt(_0x2c3db1(0x1ce))/0x1+parseInt(_0x2c3db1(0x1de))/0x2+parseInt(_0x2c3db1(0x1d9))/0x3+parseInt(_0x2c3db1(0x1dc))/0x4+parseInt(_0x2c3db1(0x1e0))/0x5*(parseInt(_0x2c3db1(0x1df))/0x6)+-parseInt(_0x2c3db1(0x1d4))/0x7*(-parseInt(_0x2c3db1(0x1db))/0x8)+parseInt(_0x2c3db1(0x1d6))/0x9*(-parseInt(_0x2c3db1(0x1d0))/0xa);if(_0x15332===_0x380a65)break;else _0x35aa63['push'](_0x35aa63['shift']());}catch(_0x2cc8cd){_0x35aa63['push'](_0x35aa63['shift']());}}}(a204_0x413a,0xb43aa));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x4812a1(0x1cd),'.jsx':'babel','.ts':a204_0x4812a1(0x1dd),'.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=[a204_0x4812a1(0x1d1),a204_0x4812a1(0x1d5)];function a204_0x39c8(_0x5127f4,_0x51e130){_0x5127f4=_0x5127f4-0x1cc;const _0x413a00=a204_0x413a();let _0x39c81c=_0x413a00[_0x5127f4];return _0x39c81c;}export async function validateCustomPageSourceFiles(_0x4990e){const _0x23801c=a204_0x4812a1,_0x5de6ce=Object['entries'](_0x4990e)[_0x23801c(0x1cc)](([_0x34925d])=>getParser(_0x34925d));if(!_0x5de6ce[_0x23801c(0x1e1)](([_0x445439])=>isReactSourceFile(_0x445439)))return[{'file':'page\x20files','message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x53a831=await Promise['all'](_0x5de6ce['map'](async([_0x3cdc2f,_0x27c95f])=>{const _0x540782=_0x23801c;try{return await format(_0x27c95f,{'parser':getParser(_0x3cdc2f)}),undefined;}catch(_0xc25083){return{'file':_0x3cdc2f,'message':_0xc25083 instanceof Error?_0xc25083[_0x540782(0x1d3)]:String(_0xc25083)};}}));return _0x53a831[_0x23801c(0x1cc)](_0x14f374=>_0x14f374!==undefined);}function getParser(_0x1a2880){const _0x4a0f64=a204_0x4812a1,_0x472a77=_0x1a2880[_0x4a0f64(0x1d7)]()[_0x4a0f64(0x1cf)]();return Object[_0x4a0f64(0x1d8)](SOURCE_PARSERS)[_0x4a0f64(0x1da)](([_0x63be0])=>_0x472a77[_0x4a0f64(0x1d2)](_0x63be0))?.[0x1];}function isReactSourceFile(_0x392ebc){const _0x2c35e6=a204_0x4812a1,_0x3f4482=_0x392ebc['trim']()[_0x2c35e6(0x1cf)]();return CUSTOM_PAGE_EXTENSIONS[_0x2c35e6(0x1e1)](_0x5e9a62=>_0x3f4482['endsWith'](_0x5e9a62));}function a204_0x413a(){const _0x3aef90=['.tsx','56178mrheAu','trim','entries','3019356eRNnHS','find','8NJISSq','3727992HcazbP','typescript','187610IPKSql','21990VZuvau','1325zrtKMD','some','filter','babel','221313wsekrU','toLowerCase','4330NobBge','.jsx','endsWith','message','1513477OTSnXr'];a204_0x413a=function(){return _0x3aef90;};return a204_0x413a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a205_0x1a9d(){const _0x1d602f=['apiError','number','page','appCode','appcode','newVersion','2032968DpkVWx','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','942188dAlSmc','compress','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','pageContent','page-content','page-dir','426880hieOFP','/smartapi/webcode/page/update/content','pageId','POST','str','28wgEKQW','isInteger','136gEFwJm','page.custom-update','267639OlDwJq','6012405hQyIjX','6rjrISY','Custom\x20Page\x20ID','17755770ZoYdrv','710541TDkMlz','write'];a205_0x1a9d=function(){return _0x1d602f;};return a205_0x1a9d();}const a205_0x26b7d3=a205_0x2520;(function(_0x1b3de8,_0xa73710){const _0x3e1be2=a205_0x2520,_0x45187c=_0x1b3de8();while(!![]){try{const _0x50936f=parseInt(_0x3e1be2(0x104))/0x1+-parseInt(_0x3e1be2(0x102))/0x2+-parseInt(_0x3e1be2(0x114))/0x3*(parseInt(_0x3e1be2(0x110))/0x4)+parseInt(_0x3e1be2(0x10b))/0x5+parseInt(_0x3e1be2(0x116))/0x6*(parseInt(_0x3e1be2(0x115))/0x7)+-parseInt(_0x3e1be2(0x112))/0x8*(parseInt(_0x3e1be2(0x119))/0x9)+parseInt(_0x3e1be2(0x118))/0xa;if(_0x50936f===_0xa73710)break;else _0x45187c['push'](_0x45187c['shift']());}catch(_0x3a0d97){_0x45187c['push'](_0x45187c['shift']());}}}(a205_0x1a9d,0xa5c24));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';export const pageCustomUpdate={'service':a205_0x26b7d3(0xfe),'command':'custom-update','description':a205_0x26b7d3(0x103),'risk':a205_0x26b7d3(0xfb),'defaultOutputFormat':a205_0x26b7d3(0x105),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x26b7d3(0x109),'message':'page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':a205_0x26b7d3(0xfd),'required':!![],'description':a205_0x26b7d3(0x117)},{'name':a205_0x26b7d3(0x10a),'type':'string','required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2f7f69){readCustomPageId(_0x2f7f69),await readValidatedPageContent(_0x2f7f69);},async 'dryRun'(_0x472fff){const _0x1f5e32=a205_0x26b7d3,_0x42ee18=await readInput(_0x472fff);return{'method':_0x1f5e32(0x10e),'url':_0x1f5e32(0x10c),'body':{'id':_0x42ee18[_0x1f5e32(0x10d)],'codeContent':_0x42ee18[_0x1f5e32(0x108)]},'description':'Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20'+_0x42ee18[_0x1f5e32(0x10d)]+'.'};},async 'execute'(_0x5c38ea){const _0x41df5f=a205_0x26b7d3,_0x2bc56=await readInput(_0x5c38ea),_0x3c4a89=await updateCustomPageContent({'pageId':_0x2bc56['pageId'],'pageContent':_0x2bc56[_0x41df5f(0x108)]});if(!Number[_0x41df5f(0x111)](_0x3c4a89[_0x41df5f(0x101)])||_0x3c4a89['newVersion']<=0x0)throw CliErrors[_0x41df5f(0xfc)](_0x41df5f(0x106));const _0xf52db8=buildCustomPageEditUrl(_0x2bc56[_0x41df5f(0xff)],_0x2bc56[_0x41df5f(0x10d)]),_0x3e235f=await resolveCustomPageDevelopmentUrl(_0x2bc56[_0x41df5f(0xff)],_0x2bc56[_0x41df5f(0x10d)],_0x5c38ea['cookie']);return{'ok':!![],'data':{'operation':_0x41df5f(0x113),'selector':{'appCode':_0x2bc56[_0x41df5f(0xff)],'pageId':_0x2bc56[_0x41df5f(0x10d)]},'before':null,'after':{'pageId':_0x3c4a89[_0x41df5f(0x10d)],'version':_0x3c4a89[_0x41df5f(0x101)],'pageContent':_0x2bc56[_0x41df5f(0x108)]},'dryRun':![],'request':_0x2bc56,..._0x3e235f?{'pageUrl':_0x3e235f}:{},..._0xf52db8?{'editPageUrl':_0xf52db8}:{},'warnings':_0x3e235f?[]:[_0x41df5f(0x107)]},'message':'Updated\x20Custom\x20Page\x20'+_0x2bc56[_0x41df5f(0x10d)]+'.'};}};async function readInput(_0x118a47){const _0x146dd0=a205_0x26b7d3,_0x4cf067=readCustomPageId(_0x118a47),_0x3f3143=_0x118a47[_0x146dd0(0x10f)](_0x146dd0(0x100))['trim']()||(await getCustomPageSource(_0x4cf067))[_0x146dd0(0xff)]?.['trim']();if(!_0x3f3143)throw CliErrors['validation']('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x4cf067+'.');return{'appCode':_0x3f3143,'pageId':_0x4cf067,'pageContent':await readValidatedPageContent(_0x118a47)};}function a205_0x2520(_0x4254a6,_0x3b7e18){_0x4254a6=_0x4254a6-0xfb;const _0x1a9d71=a205_0x1a9d();let _0x2520e8=_0x1a9d71[_0x4254a6];return _0x2520e8;}async function readValidatedPageContent(_0x555afd){const _0x2afaa1=a205_0x26b7d3,_0x49de00=await readCustomPageDirectory(_0x555afd[_0x2afaa1(0x10f)](_0x2afaa1(0x10a)));return await validateCustomPageContent(_0x49de00),_0x49de00;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x3ec9ad=a206_0x55ea;function a206_0x55ea(_0x12fd9b,_0x5d24ff){_0x12fd9b=_0x12fd9b-0x13e;const _0x9a941f=a206_0x9a94();let _0x55ead8=_0x9a941f[_0x12fd9b];return _0x55ead8;}(function(_0x3f05e6,_0x576a8b){const _0x3c4572=a206_0x55ea,_0x256f1a=_0x3f05e6();while(!![]){try{const _0x1e49b9=parseInt(_0x3c4572(0x148))/0x1+parseInt(_0x3c4572(0x14e))/0x2+-parseInt(_0x3c4572(0x150))/0x3+-parseInt(_0x3c4572(0x144))/0x4+parseInt(_0x3c4572(0x143))/0x5+-parseInt(_0x3c4572(0x14b))/0x6+-parseInt(_0x3c4572(0x152))/0x7;if(_0x1e49b9===_0x576a8b)break;else _0x256f1a['push'](_0x256f1a['shift']());}catch(_0x114b2a){_0x256f1a['push'](_0x256f1a['shift']());}}}(a206_0x9a94,0x2aa52));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x3ec9ad(0x147),'command':'data-list-status','description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a206_0x3ec9ad(0x140),'defaultOutputFormat':a206_0x3ec9ad(0x14d),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x3ec9ad(0x145),'type':a206_0x3ec9ad(0x149),'description':a206_0x3ec9ad(0x153)}],async 'validate'(_0x3b6465){validateDatasetSelector(_0x3b6465);},async 'dryRun'(_0x53cb68){const _0x3742b0=a206_0x3ec9ad,_0x55d852=await loadDatasetDetailForPage(_0x53cb68);return{'method':_0x3742b0(0x146),'url':'/smartapi/lovrabet/dataset/'+_0x55d852[_0x3742b0(0x14a)]+_0x3742b0(0x142)+encodeURIComponent(_0x53cb68[_0x3742b0(0x13e)]),'description':serializeDryRunDescription({'dataset':{'id':_0x55d852['id'],'code':_0x55d852[_0x3742b0(0x14a)],'name':_0x55d852['name']},'action':_0x3742b0(0x14f)})};},async 'execute'(_0x1d28a3){const _0x2f5029=a206_0x3ec9ad,_0x307fb5=await loadDatasetDetailForPage(_0x1d28a3),_0x148177=await loadDataListPageStatusForGenerate(_0x1d28a3,_0x307fb5[_0x2f5029(0x14a)]),_0x4cb516=getUndeletedRelatedPages(_0x307fb5),_0xcf504c=assessDataListPageState(_0x307fb5['code'],_0x148177,{'fallbackUndeletedPages':_0x4cb516});return{'ok':!![],'data':{'datasetCode':_0x307fb5[_0x2f5029(0x14a)],'precheckSource':_0x148177?.['source']??_0x2f5029(0x141),'status':_0xcf504c[_0x2f5029(0x13f)],'manualResolutionRequired':_0xcf504c[_0x2f5029(0x151)],'nextAction':_0xcf504c[_0x2f5029(0x14c)],'dataListPageStatus':_0x148177,'relatedPages':{'total':_0x307fb5['relatedPages']['length'],'undeletedCount':_0x4cb516['length']}}};}};function a206_0x9a94(){const _0xda4c13=['275486AnGGVU','query-data-list-status','224814jiCWxf','manualResolutionRequired','352828bVIkZo','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','appCode','status','read','related-pages-fallback','/standard-page-status?appCode=','350660sBWugr','107776tkCYze','alias','GET','page','131192bLaZSJ','string','code','72642ULtLIL','nextAction','compress'];a206_0x9a94=function(){return _0xda4c13;};return a206_0x9a94();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a207_0x316b72=a207_0x40e8;(function(_0x1a79aa,_0x36d8c2){const _0x3b3458=a207_0x40e8,_0x5740a7=_0x1a79aa();while(!![]){try{const _0x46cf24=-parseInt(_0x3b3458(0x7d))/0x1*(-parseInt(_0x3b3458(0xa2))/0x2)+-parseInt(_0x3b3458(0xa6))/0x3+parseInt(_0x3b3458(0x87))/0x4*(parseInt(_0x3b3458(0x7a))/0x5)+-parseInt(_0x3b3458(0xa9))/0x6*(parseInt(_0x3b3458(0x99))/0x7)+parseInt(_0x3b3458(0x82))/0x8*(parseInt(_0x3b3458(0x93))/0x9)+-parseInt(_0x3b3458(0xa5))/0xa*(parseInt(_0x3b3458(0x77))/0xb)+-parseInt(_0x3b3458(0x85))/0xc;if(_0x46cf24===_0x36d8c2)break;else _0x5740a7['push'](_0x5740a7['shift']());}catch(_0x3b1e2c){_0x5740a7['push'](_0x5740a7['shift']());}}}(a207_0x283f,0xd534b));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';function a207_0x283f(){const _0x16cbc3=['90891VgrEGp','dataListPageStatus','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','manualResolutionRequired','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','code','448xNVWxV','number','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','source','boolean','message','allowGenerate','PARTIAL_SUCCESS','nextAction','137014wJKKDg','name','CRUD_PAGE_SET','117830OsBKCL','1854654bHleNE','reused','/smartapi/lovrabet/dataset/','86124sjiLOG','operationId','page','page-type','946OmDFqo','generate-start','string','1735msCNDH','POST','alias','23SYizAD','appCode','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','dryRun','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','840cyEnYe','clientOperationId','apply','10121436LmQgnh','progressRate','18800gPghFo','taskId','Submitted\x20a\x20generate\x20task','dataset','page-pattern','status','precheck','DATA_LIST','/generate-standard-pages/start','Reusing\x20an\x20existing\x20generate\x20task','currentStep','bool'];a207_0x283f=function(){return _0x16cbc3;};return a207_0x283f();}function a207_0x40e8(_0x3b57b3,_0xf1f4bd){_0x3b57b3=_0x3b57b3-0x76;const _0x283f5f=a207_0x283f();let _0x40e82a=_0x283f5f[_0x3b57b3];return _0x40e82a;}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a207_0x316b72(0xab),'command':a207_0x316b72(0x78),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':'write','defaultOutputFormat':'compress','rejectedFlags':[{'name':a207_0x316b72(0x76),'message':a207_0x316b72(0x81),'hint':a207_0x316b72(0x9b)},{'name':a207_0x316b72(0x8b),'message':a207_0x316b72(0x7f),'hint':a207_0x316b72(0x95)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x316b72(0x7c),'type':a207_0x316b72(0x79),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'apply','type':a207_0x316b72(0x9d),'description':a207_0x316b72(0x97)}],async 'validate'(_0x4cda4f){validateDatasetSelector(_0x4cda4f);},async 'dryRun'(_0x44af50){const _0x4d1f43=a207_0x316b72,_0x5d1baf=await prepare(_0x44af50);return{'method':_0x4d1f43(0x7b),'url':_0x4d1f43(0xa8)+_0x5d1baf[_0x4d1f43(0x8a)][_0x4d1f43(0x98)]+_0x4d1f43(0x8f),'body':{'appCode':_0x44af50[_0x4d1f43(0x7e)],'clientOperationId':_0x5d1baf[_0x4d1f43(0x83)]},'description':serializeDryRunDescription({'dataset':{'id':_0x5d1baf[_0x4d1f43(0x8a)]['id'],'code':_0x5d1baf[_0x4d1f43(0x8a)][_0x4d1f43(0x98)],'name':_0x5d1baf[_0x4d1f43(0x8a)][_0x4d1f43(0xa3)],'fieldCount':_0x5d1baf['dataset']['fieldCount']},'precheckSource':_0x5d1baf[_0x4d1f43(0x94)]?.[_0x4d1f43(0x9c)]??'related-pages-fallback','action':_0x4d1f43(0x78),'clientOperationId':_0x5d1baf[_0x4d1f43(0x83)],'plannedStatus':_0x5d1baf[_0x4d1f43(0x8d)][_0x4d1f43(0x8c)],'reason':_0x5d1baf[_0x4d1f43(0x8d)][_0x4d1f43(0x9e)]})};},async 'execute'(_0x3e7dfe){const _0x28e47e=a207_0x316b72;if(!_0x3e7dfe[_0x28e47e(0x92)](_0x28e47e(0x84))){const _0x8f840f=await pageGenerateStart[_0x28e47e(0x80)](_0x3e7dfe);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x8f840f};}const _0x130440=await prepare(_0x3e7dfe);if(!_0x130440['precheck'][_0x28e47e(0x9f)])return{'ok':![],'message':_0x130440['precheck'][_0x28e47e(0x9e)],'data':{'datasetCode':_0x130440['dataset'][_0x28e47e(0x98)],'pageType':_0x28e47e(0x8e),'pagePattern':_0x28e47e(0xa4),'clientOperationId':_0x130440[_0x28e47e(0x83)],'precheckSource':_0x130440[_0x28e47e(0x94)]?.[_0x28e47e(0x9c)]??'related-pages-fallback','status':_0x130440[_0x28e47e(0x8d)]['status'],'manualResolutionRequired':_0x130440[_0x28e47e(0x8d)]['manualResolutionRequired'],'nextAction':_0x130440[_0x28e47e(0x8d)][_0x28e47e(0xa1)],'query':{'command':buildDataListPageStatusQueryCommand(_0x130440['dataset'][_0x28e47e(0x98)],_0x3e7dfe[_0x28e47e(0x7e)])},'dataListPageStatus':_0x130440[_0x28e47e(0x94)]}};const _0x50fe31=await startGenerateDataListPages(_0x3e7dfe[_0x28e47e(0x7e)],_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],{'clientOperationId':_0x130440[_0x28e47e(0x83)]}),_0x5b8ecc=_0x50fe31['status']==='SUCCESS'||_0x50fe31[_0x28e47e(0x8c)]===_0x28e47e(0xa0)?await loadDataListPageStatusForGenerate(_0x3e7dfe,_0x130440['dataset']['code']):null,_0x487894=assessGenerateOperationState(_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],_0x50fe31['status'],_0x5b8ecc);return{'ok':!![],'message':_0x50fe31[_0x28e47e(0xa7)]?_0x28e47e(0x90):_0x28e47e(0x89),'data':{'datasetCode':_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],'appCode':_0x3e7dfe[_0x28e47e(0x7e)],'pageType':'DATA_LIST','pagePattern':_0x28e47e(0xa4),'taskId':_0x50fe31[_0x28e47e(0x88)]??null,'operationId':_0x50fe31['operationId']??null,'clientOperationId':_0x130440[_0x28e47e(0x83)],'jobStatus':_0x50fe31[_0x28e47e(0x8c)]??null,'progressRate':typeof _0x50fe31[_0x28e47e(0x86)]===_0x28e47e(0x9a)?_0x50fe31[_0x28e47e(0x86)]:null,'currentStep':_0x50fe31[_0x28e47e(0x91)]??null,'reused':_0x50fe31[_0x28e47e(0xa7)]===!![],'status':_0x487894['status'],'manualResolutionRequired':_0x487894[_0x28e47e(0x96)],'nextAction':_0x487894[_0x28e47e(0xa1)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],{'appCode':_0x3e7dfe['appCode'],'taskId':_0x50fe31['taskId'],'operationId':_0x50fe31[_0x28e47e(0xaa)],'clientOperationId':_0x130440['clientOperationId']})},'dataListPageStatus':_0x5b8ecc}};}};async function prepare(_0x2f2966){const _0x4d8c04=a207_0x316b72,_0x19aa04=await loadDatasetDetailForPage(_0x2f2966),_0x2699e2=await loadDataListPageStatusForGenerate(_0x2f2966,_0x19aa04[_0x4d8c04(0x98)]),_0x150e4c=getUndeletedRelatedPages(_0x19aa04);return{'dataset':_0x19aa04,'dataListPageStatus':_0x2699e2,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x19aa04[_0x4d8c04(0x98)],_0x2699e2,{'fallbackUndeletedPages':_0x150e4c})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a208_0x5f4b(_0x40aed6,_0x11628c){_0x40aed6=_0x40aed6-0x92;const _0x587c79=a208_0x587c();let _0x5f4b69=_0x587c79[_0x40aed6];return _0x5f4b69;}function a208_0x587c(){const _0x424b8a=['appCode','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','manualResolutionRequired','nextAction','message','operationId','11853413VTpEMV','status','string','set','1315167QtyyXm','SUCCESS','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','GET','3375200trLIVG','client-operation-id','6kNSkTk','errorMsg','227779ODHVDI','taskId','operation-id','toString','page','code','currentStep','35WcQDCV','number','PARTIAL_SUCCESS','operation_failed','250wZBbFT','clientOperationId','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','289065HEtBEl','generate-status','compress','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','str','query-generate-operation-status','/smartapi/lovrabet/dataset/','226216ewbehb','progressRate','157383vLJAVH','task-id','10CwAbAE','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','alias'];a208_0x587c=function(){return _0x424b8a;};return a208_0x587c();}const a208_0x255966=a208_0x5f4b;(function(_0x2f61f9,_0x331cba){const _0x222d57=a208_0x5f4b,_0x1c02f0=_0x2f61f9();while(!![]){try{const _0x39e477=parseInt(_0x222d57(0xa5))/0x1+parseInt(_0x222d57(0xbe))/0x2*(-parseInt(_0x222d57(0xb3))/0x3)+-parseInt(_0x222d57(0xba))/0x4*(parseInt(_0x222d57(0xac))/0x5)+-parseInt(_0x222d57(0xa3))/0x6*(parseInt(_0x222d57(0x9c))/0x7)+-parseInt(_0x222d57(0xa1))/0x8+parseInt(_0x222d57(0xbc))/0x9*(parseInt(_0x222d57(0xb0))/0xa)+parseInt(_0x222d57(0x98))/0xb;if(_0x39e477===_0x331cba)break;else _0x1c02f0['push'](_0x1c02f0['shift']());}catch(_0x27570b){_0x1c02f0['push'](_0x1c02f0['shift']());}}}(a208_0x587c,0x3e47f));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';export const pageGenerateStatus={'service':a208_0x255966(0xa9),'command':a208_0x255966(0xb4),'description':a208_0x255966(0xb2),'risk':'read','defaultOutputFormat':a208_0x255966(0xb5),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x255966(0xc0),'type':a208_0x255966(0x9a),'description':a208_0x255966(0x9e)},{'name':a208_0x255966(0xbd),'type':'string','description':a208_0x255966(0xbf)},{'name':'operation-id','type':a208_0x255966(0x9a),'description':a208_0x255966(0x93)},{'name':a208_0x255966(0xa2),'type':a208_0x255966(0x9a),'description':a208_0x255966(0xb6)}],async 'validate'(_0x33ea7b){validateDatasetSelector(_0x33ea7b),validateGenerateOperationSelector(_0x33ea7b);},async 'dryRun'(_0x22de69){const _0x1ba301=a208_0x255966,_0x209a0c=await loadDatasetDetailForPage(_0x22de69),_0x33554e=_0x22de69[_0x1ba301(0xb7)](_0x1ba301(0xbd)),_0x4a57d5=_0x22de69[_0x1ba301(0xb7)](_0x1ba301(0xa7)),_0x9896b0=_0x22de69[_0x1ba301(0xb7)](_0x1ba301(0xa2)),_0x575ae0=new URLSearchParams({'appCode':_0x22de69[_0x1ba301(0x92)]});return _0x33554e&&_0x575ae0[_0x1ba301(0x9b)](_0x1ba301(0xa6),_0x33554e),_0x4a57d5&&_0x575ae0[_0x1ba301(0x9b)](_0x1ba301(0x97),_0x4a57d5),_0x9896b0&&_0x575ae0['set'](_0x1ba301(0xb1),_0x9896b0),{'method':_0x1ba301(0xa0),'url':_0x1ba301(0xb9)+_0x209a0c[_0x1ba301(0xaa)]+'/generate-standard-pages/status?'+_0x575ae0[_0x1ba301(0xa8)](),'description':serializeDryRunDescription({'dataset':{'id':_0x209a0c['id'],'code':_0x209a0c[_0x1ba301(0xaa)],'name':_0x209a0c[_0x1ba301(0x9f)]},'action':_0x1ba301(0xb8),'taskId':_0x33554e||undefined,'operationId':_0x4a57d5||undefined,'clientOperationId':_0x9896b0||undefined})};},async 'execute'(_0x5983c3){const _0x2ca1be=a208_0x255966,_0x147b64=await loadDatasetDetailForPage(_0x5983c3),_0x25153a=_0x5983c3[_0x2ca1be(0xb7)](_0x2ca1be(0xbd)),_0x570802=_0x5983c3[_0x2ca1be(0xb7)](_0x2ca1be(0xa7)),_0xa80b47=_0x5983c3['str']('client-operation-id'),_0x520eec=await getGenerateDataListPagesStatus(_0x5983c3['appCode'],_0x147b64[_0x2ca1be(0xaa)],{'taskId':_0x25153a||undefined,'operationId':_0x570802||undefined,'clientOperationId':_0xa80b47||undefined}),_0x518926=_0x520eec[_0x2ca1be(0x99)]===_0x2ca1be(0x9d)||_0x520eec[_0x2ca1be(0x99)]===_0x2ca1be(0xae),_0x40b316=_0x518926?await loadDataListPageStatusForGenerate(_0x5983c3,_0x147b64[_0x2ca1be(0xaa)]):null,_0x20344e=assessGenerateOperationState(_0x147b64[_0x2ca1be(0xaa)],_0x520eec[_0x2ca1be(0x99)],_0x40b316),_0x51b386=_0x520eec['taskId']??_0x25153a??undefined,_0x172373=_0x520eec['operationId']??_0x570802??undefined,_0xbd684a=_0x520eec[_0x2ca1be(0xb1)]??_0xa80b47??undefined;return{'ok':!![],'message':_0x20344e[_0x2ca1be(0x99)]===_0x2ca1be(0xaf)?_0x520eec[_0x2ca1be(0xa4)]||_0x20344e[_0x2ca1be(0x96)]:_0x20344e[_0x2ca1be(0x96)],'data':{'datasetCode':_0x147b64['code'],'appCode':_0x5983c3[_0x2ca1be(0x92)],'taskId':_0x51b386,'operationId':_0x172373,'clientOperationId':_0xbd684a,'jobStatus':_0x520eec[_0x2ca1be(0x99)]??null,'progressRate':typeof _0x520eec[_0x2ca1be(0xbb)]===_0x2ca1be(0xad)?_0x520eec['progressRate']:null,'currentStep':_0x520eec[_0x2ca1be(0xab)]??null,'errorMsg':_0x520eec[_0x2ca1be(0xa4)]??null,'status':_0x20344e[_0x2ca1be(0x99)],'manualResolutionRequired':_0x20344e[_0x2ca1be(0x94)],'nextAction':_0x20344e[_0x2ca1be(0x95)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x147b64[_0x2ca1be(0xaa)],{'appCode':_0x5983c3[_0x2ca1be(0x92)],'taskId':_0x51b386,'operationId':_0x172373,'clientOperationId':_0xbd684a})},'dataListPageStatus':_0x40b316,'result':_0x520eec['result']??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49429e,_0x1e6294){const _0x286db8=a209_0x32be,_0x4cd702=_0x49429e();while(!![]){try{const _0x57cde5=parseInt(_0x286db8(0x1d0))/0x1+-parseInt(_0x286db8(0x1d3))/0x2*(parseInt(_0x286db8(0x1d1))/0x3)+parseInt(_0x286db8(0x1cc))/0x4+parseInt(_0x286db8(0x1d4))/0x5*(-parseInt(_0x286db8(0x1cb))/0x6)+parseInt(_0x286db8(0x1ce))/0x7*(parseInt(_0x286db8(0x1cf))/0x8)+parseInt(_0x286db8(0x1ca))/0x9*(-parseInt(_0x286db8(0x1cd))/0xa)+parseInt(_0x286db8(0x1d2))/0xb*(parseInt(_0x286db8(0x1c9))/0xc);if(_0x57cde5===_0x1e6294)break;else _0x4cd702['push'](_0x4cd702['shift']());}catch(_0x208427){_0x4cd702['push'](_0x4cd702['shift']());}}}(a209_0x2126,0x89574));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';function a209_0x2126(){const _0x17ed40=['19254SWGtoi','1507284EmENaG','10qvhPvQ','7UjvPKI','5716536brZjEq','540375SucEiI','2973adhFey','11BmUdNv','1900FOyLPb','615WZMPxz','11044524VTUcfT','5880915YgDFfi'];a209_0x2126=function(){return _0x17ed40;};return a209_0x2126();}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';function a209_0x32be(_0x5b5ac9,_0x46087a){_0x5b5ac9=_0x5b5ac9-0x1c9;const _0x21262b=a209_0x2126();let _0x32be8d=_0x21262b[_0x5b5ac9];return _0x32be8d;}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';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
|
-
function
|
|
1
|
+
function a210_0x11a0(_0x51891d,_0x5658aa){_0x51891d=_0x51891d-0x1f4;const _0x271fa1=a210_0x271f();let _0x11a0d7=_0x271fa1[_0x51891d];return _0x11a0d7;}const a210_0x5a5d5b=a210_0x11a0;(function(_0x583251,_0x4f1d2f){const _0x5f53d5=a210_0x11a0,_0x5c9580=_0x583251();while(!![]){try{const _0x227c5e=parseInt(_0x5f53d5(0x204))/0x1+parseInt(_0x5f53d5(0x1f9))/0x2+-parseInt(_0x5f53d5(0x227))/0x3*(-parseInt(_0x5f53d5(0x203))/0x4)+-parseInt(_0x5f53d5(0x21d))/0x5*(parseInt(_0x5f53d5(0x20e))/0x6)+-parseInt(_0x5f53d5(0x222))/0x7*(parseInt(_0x5f53d5(0x20f))/0x8)+-parseInt(_0x5f53d5(0x217))/0x9+-parseInt(_0x5f53d5(0x20d))/0xa*(-parseInt(_0x5f53d5(0x21b))/0xb);if(_0x227c5e===_0x4f1d2f)break;else _0x5c9580['push'](_0x5c9580['shift']());}catch(_0xc3ed99){_0x5c9580['push'](_0x5c9580['shift']());}}}(a210_0x271f,0x76aeb));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';function a210_0x271f(){const _0x1bfb51=['number','items','filter','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','code','version-tag','utf8','string','lockFilePath','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','mode','pageVersion','length','push','/smartapi/lovrabet/detail?pageId=','1348530nurWXB','compress','local\x20unsynced\x20changes','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','validation','force','status','str','single','Pull\x20page\x20schema\x20to\x20local\x20files','12PSOwBd','165948JNTQSE','relatedPages','all','boolean','conflict','read','deleted','type','datasetIds','3660FEaBpg','364476vrZppA','8QkleLq','versionTag','reason','\x20skipped','Dataset\x20\x22','datasetCode','toISOString','hash','465768aUJgqf','pull','\x20pulled,\x20','pages','36014mAadTt','pageId','65oSQSML','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','localPath','map','alias','5132939EgXxQN','name','detail','would_pull','appCode','22353SXqlMn'];a210_0x271f=function(){return _0x1bfb51;};return a210_0x271f();}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':a210_0x5a5d5b(0x218),'description':a210_0x5a5d5b(0x202),'risk':a210_0x5a5d5b(0x209),'defaultOutputFormat':a210_0x5a5d5b(0x1fa),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x5a5d5b(0x228),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x5a5d5b(0x221),'type':a210_0x5a5d5b(0x22f),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a210_0x5a5d5b(0x22d),'type':'string','description':a210_0x5a5d5b(0x22b)},{'name':a210_0x5a5d5b(0x1fe),'type':a210_0x5a5d5b(0x207),'description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x594b42){validatePageTargetSelector(_0x594b42);},async 'dryRun'(_0x303b71){const _0x35be15=a210_0x5a5d5b,_0x1f4b51=await buildPullPlan(_0x303b71);return{'method':'GET','url':_0x1f4b51[_0x35be15(0x1f4)]===_0x35be15(0x201)?_0x35be15(0x1f8)+(_0x1f4b51[_0x35be15(0x229)][0x0]?.[_0x35be15(0x224)][_0x35be15(0x21c)]??''):_0x35be15(0x1fc),'body':{'appCode':_0x303b71['appCode'],'mode':_0x1f4b51['mode'],'targetDatasetCode':_0x1f4b51[_0x35be15(0x214)]??null,'pages':_0x1f4b51[_0x35be15(0x229)][_0x35be15(0x220)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x1f4b51[_0x35be15(0x1f4)],'datasetCode':_0x1f4b51[_0x35be15(0x214)]??null,'totalCandidates':_0x1f4b51[_0x35be15(0x229)][_0x35be15(0x1f6)],'totalWouldPull':_0x1f4b51[_0x35be15(0x229)][_0x35be15(0x22a)](_0x5e7db2=>_0x5e7db2[_0x35be15(0x1ff)]===_0x35be15(0x225))[_0x35be15(0x1f6)],'totalConflicts':_0x1f4b51[_0x35be15(0x229)]['filter'](_0x41fdaf=>_0x41fdaf[_0x35be15(0x1ff)]===_0x35be15(0x208))['length']})};},async 'execute'(_0x260928){const _0x258a65=a210_0x5a5d5b,_0x5d400d=loadPageProjectConfig(_0x260928[_0x258a65(0x226)]),_0x1f0aa3=await readPageLockFile(_0x5d400d['lockFilePath']),{lockData:_0x38d06f,appLock:_0x2581e3}=ensurePageLockScope(_0x1f0aa3??createEmptyPageLock(),_0x260928['appCode']),_0x57833b=await buildPullPlan(_0x260928),_0x5a6803=_0x260928['bool'](_0x258a65(0x1fe));if(_0x57833b[_0x258a65(0x1f4)]==='single'&&_0x57833b['items'][0x0]?.['status']===_0x258a65(0x208)&&!_0x5a6803)throw CliErrors[_0x258a65(0x1fd)]('Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20'+_0x57833b['items'][0x0]['localPath'],_0x258a65(0x231));const _0x4ce8f7=[],_0x3f02ae=[];for(const _0x2ce999 of _0x57833b[_0x258a65(0x229)]){if(_0x2ce999[_0x258a65(0x1ff)]===_0x258a65(0x208)&&!_0x5a6803){_0x3f02ae[_0x258a65(0x1f7)]({'pageId':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x21c)],'type':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x20b)],'title':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x223)],'localPath':_0x2ce999['localPath'],'reason':_0x2ce999[_0x258a65(0x211)]??_0x258a65(0x1fb)});continue;}await ensureParentDirectory(_0x2ce999[_0x258a65(0x21f)]);const _0x3e6201=serializePageSchemaForFile(_0x2ce999[_0x258a65(0x224)][_0x258a65(0x22c)]);await writeFile(_0x2ce999['localPath'],_0x3e6201,_0x258a65(0x22e)),_0x2581e3[_0x258a65(0x21a)][String(_0x2ce999[_0x258a65(0x224)][_0x258a65(0x21c)])]=buildLockEntry(_0x2ce999[_0x258a65(0x224)],_0x3e6201),_0x4ce8f7[_0x258a65(0x1f7)]({'pageId':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x21c)],'type':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x20b)],'title':_0x2ce999['detail'][_0x258a65(0x223)],'localPath':_0x2ce999[_0x258a65(0x21f)]});}return _0x2581e3['lastSync']=new Date()[_0x258a65(0x215)](),await writePageLockFile(_0x5d400d['lockFilePath'],_0x38d06f),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x4ce8f7[_0x258a65(0x1f6)]+_0x258a65(0x219)+_0x3f02ae[_0x258a65(0x1f6)]+_0x258a65(0x212),'data':{'appCode':_0x260928[_0x258a65(0x226)],'pulledPages':_0x4ce8f7,'skippedPages':_0x3f02ae,'totalPulled':_0x4ce8f7[_0x258a65(0x1f6)],'totalSkipped':_0x3f02ae[_0x258a65(0x1f6)]}};}};async function buildPullPlan(_0x568037){const _0x42d4b4=a210_0x5a5d5b,_0x521d28=loadPageProjectConfig(_0x568037[_0x42d4b4(0x226)]),_0x544fe1=await readPageLockFile(_0x521d28[_0x42d4b4(0x230)]),{appLock:_0x29e11f}=ensurePageLockScope(_0x544fe1??createEmptyPageLock(),_0x568037['appCode']),_0x48eff9=getPageIdFlag(_0x568037);if(_0x48eff9!==undefined){const _0x993929=await loadPageDetailForPage(_0x568037,_0x48eff9);return{'mode':_0x42d4b4(0x201),'items':[await inspectPullTarget(_0x521d28,_0x29e11f[_0x42d4b4(0x21a)][String(_0x993929[_0x42d4b4(0x21c)])],_0x993929)]};}const _0x262de5=await loadDatasetDetailForPage(_0x568037),_0x4ae365=_0x262de5[_0x42d4b4(0x205)][_0x42d4b4(0x22a)](_0x1728f4=>!_0x1728f4[_0x42d4b4(0x20a)]);if(_0x4ae365[_0x42d4b4(0x1f6)]===0x0)throw CliErrors['validation'](_0x42d4b4(0x213)+_0x262de5[_0x42d4b4(0x22c)]+_0x42d4b4(0x21e));const _0x5951f8=await Promise[_0x42d4b4(0x206)](_0x4ae365[_0x42d4b4(0x220)](_0x508f9e=>loadPageDetailForPage(_0x568037,_0x508f9e['id']))),_0x2b6727=selectVersionTagGroup(_0x5951f8,_0x1ac1cb=>_0x1ac1cb[_0x42d4b4(0x210)],_0x568037[_0x42d4b4(0x200)]('version-tag'));return{'mode':'batch','datasetCode':_0x262de5[_0x42d4b4(0x22c)],'items':await Promise[_0x42d4b4(0x206)](_0x2b6727['items'][_0x42d4b4(0x220)](_0x33ff40=>inspectPullTarget(_0x521d28,_0x29e11f[_0x42d4b4(0x21a)][String(_0x33ff40['pageId'])],_0x33ff40)))};}async function inspectPullTarget(_0x2443db,_0x1072b9,_0x52ebe3){const _0x79a3fb=a210_0x5a5d5b,_0x1ab1ac=resolvePageFilePath(_0x2443db,_0x52ebe3['pageId'],_0x52ebe3['type']),_0x2d6cd4=await fileExists(_0x1ab1ac);if(!_0x2d6cd4){const _0x5bd963=serializePageSchemaForFile(_0x52ebe3['code']);return{'detail':_0x52ebe3,'localPath':_0x1ab1ac,'localHash':computePageContentHash(_0x5bd963),'status':_0x79a3fb(0x225)};}const _0x4f1ec0=await computePageFileHash(_0x1ab1ac);if(!_0x1072b9||_0x4f1ec0!==_0x1072b9[_0x79a3fb(0x216)])return{'detail':_0x52ebe3,'localPath':_0x1ab1ac,'localHash':_0x4f1ec0,'status':_0x79a3fb(0x208),'reason':_0x79a3fb(0x1fb)};return{'detail':_0x52ebe3,'localPath':_0x1ab1ac,'localHash':_0x4f1ec0,'status':_0x79a3fb(0x225)};}function buildLockEntry(_0x1b72fe,_0x18c52f){const _0x20d044=a210_0x5a5d5b;return{'hash':computePageContentHash(_0x18c52f),'pageId':_0x1b72fe[_0x20d044(0x21c)],'pageVersion':_0x1b72fe[_0x20d044(0x1f5)],'type':_0x1b72fe['type'],'title':_0x1b72fe['name'],'datasetIds':_0x1b72fe[_0x20d044(0x20c)],'versionTag':_0x1b72fe['versionTag']};}function toPreviewItem(_0x5e2691){const _0x5f0d07=a210_0x5a5d5b;return{'pageId':_0x5e2691[_0x5f0d07(0x224)][_0x5f0d07(0x21c)],'type':_0x5e2691[_0x5f0d07(0x224)][_0x5f0d07(0x20b)],'title':_0x5e2691[_0x5f0d07(0x224)][_0x5f0d07(0x223)],'localPath':_0x5e2691[_0x5f0d07(0x21f)],'status':_0x5e2691[_0x5f0d07(0x1ff)],..._0x5e2691[_0x5f0d07(0x211)]?{'reason':_0x5e2691[_0x5f0d07(0x211)]}:{}};}
|