@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.d.ts +7 -0
- package/lib/commands/bff/logs.js +1 -0
- 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.d.ts +21 -0
- package/lib/commands/dataset/batch-design.js +1 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-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/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.d.ts +2 -0
- package/lib/commands/flow/create.js +1 -0
- package/lib/commands/flow/detail.d.ts +2 -0
- package/lib/commands/flow/detail.js +1 -0
- package/lib/commands/flow/index.d.ts +3 -0
- package/lib/commands/flow/index.js +1 -0
- package/lib/commands/flow/list.d.ts +2 -0
- package/lib/commands/flow/list.js +1 -0
- package/lib/commands/flow/publish.d.ts +2 -0
- package/lib/commands/flow/publish.js +1 -0
- package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
- package/lib/commands/flow/runtime-resources-shared.js +1 -0
- package/lib/commands/flow/runtime-role-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-list.js +1 -0
- package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-user-list.js +1 -0
- package/lib/commands/flow/runtime-user-search.d.ts +2 -0
- package/lib/commands/flow/runtime-user-search.js +1 -0
- package/lib/commands/flow/shared.d.ts +41 -0
- package/lib/commands/flow/shared.js +1 -0
- package/lib/commands/flow/update.d.ts +2 -0
- package/lib/commands/flow/update.js +1 -0
- package/lib/commands/flow/validate.d.ts +3 -0
- package/lib/commands/flow/validate.js +1 -0
- 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/service.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/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/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/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.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- 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.d.ts +6 -0
- 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.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +172 -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.d.ts +55 -0
- package/lib/core/bff/hook-directory.js +1 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +15 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +628 -0
- package/lib/core/flow-config.js +1 -0
- 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.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- 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/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/types/index.d.ts +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.d.ts +2 -8
- 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.d.ts +2 -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 +27 -8
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
- package/skills/rabetbase/guides/backend-function.md +19 -9
- package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
- package/skills/rabetbase/guides/conflict-detection.md +2 -0
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
- package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
- package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +9 -3
- package/templates/generate-api/client.ts.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a173_0x5c8698=a173_0x10b1;(function(_0x565682,_0x19b18b){const _0x580fe2=a173_0x10b1,_0x43629a=_0x565682();while(!![]){try{const _0x3bb201=parseInt(_0x580fe2(0x152))/0x1*(-parseInt(_0x580fe2(0x170))/0x2)+parseInt(_0x580fe2(0x14a))/0x3*(parseInt(_0x580fe2(0x133))/0x4)+parseInt(_0x580fe2(0x162))/0x5*(parseInt(_0x580fe2(0x150))/0x6)+-parseInt(_0x580fe2(0x16a))/0x7+-parseInt(_0x580fe2(0x13b))/0x8*(-parseInt(_0x580fe2(0x171))/0x9)+parseInt(_0x580fe2(0x14b))/0xa*(-parseInt(_0x580fe2(0x146))/0xb)+parseInt(_0x580fe2(0x15b))/0xc;if(_0x3bb201===_0x19b18b)break;else _0x43629a['push'](_0x43629a['shift']());}catch(_0x4577d6){_0x43629a['push'](_0x43629a['shift']());}}}(a173_0x5dab,0xbbb01));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';function a173_0x5dab(){const _0x41b87d=['2908578pvYTQN','now','1aElRXJ','Created\x20Custom\x20Page\x20','toLowerCase','parent-menu-id','CUSTOM','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','parse','utf8','validation','25271304uCjBXr','name','string','page.create','page\x20create\x20does\x20not\x20accept\x20--page-type.','page-type','parentMenuId','5qRYfuv','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','menuPath','page','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','files','Custom\x20Page\x20pattern\x20not\x20found:\x20','values','6805498jogAlr','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','isNaN','some','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','isArray','1931938atCdPf','36MulyoC','DASHBOARD','14420oFPkSY','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','isInteger','\x20and\x20its\x20menu\x20entry.','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','keys','Invalid\x20Custom\x20Page\x20pattern:\x20','length','1813344SxcQsY','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','apiError','page-pattern','pageName\x20cannot\x20exceed\x20100\x20characters.','appCode','pageName','createMenu','.json','trim','937255gKbIPW','str','/smartapi/webcode/page/create','ONEPAGE','264RMMDNS','130hsCyDB','BLANK','page-dir','pageId','number'];a173_0x5dab=function(){return _0x41b87d;};return a173_0x5dab();}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=[a173_0x5c8698(0x14c),a173_0x5c8698(0x149),a173_0x5c8698(0x172)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');function a173_0x10b1(_0x56d111,_0x42e087){_0x56d111=_0x56d111-0x133;const _0x5dabba=a173_0x5dab();let _0x10b1d6=_0x5dabba[_0x56d111];return _0x10b1d6;}export const pageCreate={'service':a173_0x5c8698(0x165),'command':'create','description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a173_0x5c8698(0x160),'message':a173_0x5c8698(0x15f),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':'page-content','message':a173_0x5c8698(0x166),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a173_0x5c8698(0x15d),'description':a173_0x5c8698(0x157)},{'name':'parent-menu-id','type':a173_0x5c8698(0x14f),'description':a173_0x5c8698(0x13c)},{'name':'page-pattern','type':a173_0x5c8698(0x15d),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':a173_0x5c8698(0x14d),'type':a173_0x5c8698(0x15d),'description':a173_0x5c8698(0x134)},APPCODE_FLAG],async 'validate'(_0x323ddf){await readValidatedPageSource(_0x323ddf);},async 'dryRun'(_0x532a1f){const _0x1100a3=a173_0x5c8698,_0x33a346=readInput(_0x532a1f,await readValidatedPageSource(_0x532a1f));return{'method':'POST','url':_0x1100a3(0x148),'body':{'appCode':_0x33a346[_0x1100a3(0x141)],'pageName':_0x33a346[_0x1100a3(0x142)],..._0x33a346['parentMenuId']!=null?{'parentMenuId':_0x33a346[_0x1100a3(0x161)]}:{},'createMenu':_0x33a346[_0x1100a3(0x143)],'codeContent':_0x33a346[_0x1100a3(0x167)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON['stringify'](_0x33a346['pageName'])+_0x1100a3(0x136)};},async 'execute'(_0x41f1ea){const _0x48dd21=a173_0x5c8698,_0x4238e3=readInput(_0x41f1ea,await readValidatedPageSource(_0x41f1ea)),_0xfaf9d1=await createCustomPage(_0x4238e3);if(!Number['isInteger'](_0xfaf9d1[_0x48dd21(0x14e)])||_0xfaf9d1[_0x48dd21(0x14e)]<=0x0)throw CliErrors[_0x48dd21(0x13e)](_0x48dd21(0x163));const _0x55a04c=buildCustomPageDevelopmentUrl(_0x4238e3[_0x48dd21(0x141)],_0xfaf9d1[_0x48dd21(0x164)]),_0x371196=buildCustomPageEditUrl(_0x4238e3['appCode'],_0xfaf9d1[_0x48dd21(0x14e)]);return{'ok':!![],'data':{'operation':_0x48dd21(0x15e),'pageType':_0x48dd21(0x156),'pagePattern':readPagePattern(_0x41f1ea),'selector':{'appCode':_0x4238e3[_0x48dd21(0x141)],'pageName':_0x4238e3['pageName']},'before':null,'after':{'pageId':_0xfaf9d1[_0x48dd21(0x14e)],'pageName':_0xfaf9d1[_0x48dd21(0x142)],'appCode':_0xfaf9d1['appCode'],'version':_0xfaf9d1['version'],'menuId':_0xfaf9d1['menuId'],'menuPath':_0xfaf9d1[_0x48dd21(0x164)],'files':_0xfaf9d1[_0x48dd21(0x167)]??Object[_0x48dd21(0x138)](_0x4238e3['files'])},'dryRun':![],'request':_0x4238e3,..._0x55a04c?{'pageUrl':_0x55a04c}:{},..._0x371196?{'editPageUrl':_0x371196}:{},'warnings':_0x55a04c?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x48dd21(0x153)+_0xfaf9d1[_0x48dd21(0x14e)]+'.'};}};function readPagePattern(_0x4ae444){const _0x26f55b=a173_0x5c8698,_0x49cb47=_0x4ae444[_0x26f55b(0x147)](_0x26f55b(0x13f))[_0x26f55b(0x145)](),_0x5cacde=_0x4ae444[_0x26f55b(0x147)](_0x26f55b(0x14d))['trim']();if(_0x49cb47&&_0x5cacde)throw CliErrors['validation'](_0x26f55b(0x137));if(_0x5cacde)return null;if(!_0x49cb47)throw CliErrors[_0x26f55b(0x15a)](_0x26f55b(0x16e));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x49cb47))throw CliErrors[_0x26f55b(0x15a)](_0x26f55b(0x13d));return _0x49cb47;}async function readPageSource(_0x1eb037){const _0x52125a=a173_0x5c8698,_0xc855bd=_0x1eb037[_0x52125a(0x147)](_0x52125a(0x14d))[_0x52125a(0x145)](),_0x21204c=readPagePattern(_0x1eb037);if(_0x21204c===null){const _0x1ee510=await readCustomPageDirectory(_0xc855bd);if(Object['keys'](_0x1ee510)[_0x52125a(0x13a)]===0x0)throw CliErrors['validation'](_0x52125a(0x16b));return _0x1ee510;}let _0x5009b7;try{_0x5009b7=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x21204c[_0x52125a(0x154)]()+_0x52125a(0x144)),_0x52125a(0x159));}catch{throw CliErrors['validation'](_0x52125a(0x168)+_0x21204c+'.');}let _0x3e2fa4;try{_0x3e2fa4=JSON[_0x52125a(0x158)](_0x5009b7);}catch{throw CliErrors['validation'](_0x52125a(0x139)+_0x21204c+'.');}if(!_0x3e2fa4||typeof _0x3e2fa4!=='object'||Array[_0x52125a(0x16f)](_0x3e2fa4)||Object[_0x52125a(0x169)](_0x3e2fa4)[_0x52125a(0x16d)](_0x1ec00e=>typeof _0x1ec00e!==_0x52125a(0x15d)))throw CliErrors[_0x52125a(0x15a)](_0x52125a(0x139)+_0x21204c+'.');return _0x3e2fa4;}async function readValidatedPageSource(_0x4e589d){const _0x487cdc=await readPageSource(_0x4e589d);return await validateCustomPageContent(_0x487cdc),_0x487cdc;}function readInput(_0x136e6f,_0x5be840){const _0x15f8d8=a173_0x5c8698,_0x48d05c=_0x136e6f[_0x15f8d8(0x147)](_0x15f8d8(0x15c))[_0x15f8d8(0x145)]()||'Custom_page_'+Date[_0x15f8d8(0x151)]();if(_0x48d05c['length']>0x64)throw CliErrors[_0x15f8d8(0x15a)](_0x15f8d8(0x140));const _0x47b0a1=_0x136e6f['num'](_0x15f8d8(0x155),NaN),_0x56bad2=!Number[_0x15f8d8(0x16c)](_0x47b0a1);if(_0x56bad2&&(!Number[_0x15f8d8(0x135)](_0x47b0a1)||_0x47b0a1<=0x0))throw CliErrors[_0x15f8d8(0x15a)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x136e6f[_0x15f8d8(0x141)],'pageName':_0x48d05c,..._0x56bad2?{'parentMenuId':_0x47b0a1}:{},'createMenu':!![],'files':_0x5be840};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x52e299=a174_0xdf85;(function(_0x3d7771,_0xdfccea){const _0x2dd4c5=a174_0xdf85,_0x149560=_0x3d7771();while(!![]){try{const _0x96142a=parseInt(_0x2dd4c5(0x12e))/0x1+-parseInt(_0x2dd4c5(0x12a))/0x2*(parseInt(_0x2dd4c5(0x139))/0x3)+-parseInt(_0x2dd4c5(0x138))/0x4+parseInt(_0x2dd4c5(0x128))/0x5+-parseInt(_0x2dd4c5(0x12f))/0x6*(-parseInt(_0x2dd4c5(0x134))/0x7)+-parseInt(_0x2dd4c5(0x13e))/0x8+parseInt(_0x2dd4c5(0x129))/0x9;if(_0x96142a===_0xdfccea)break;else _0x149560['push'](_0x149560['shift']());}catch(_0x40b257){_0x149560['push'](_0x149560['shift']());}}}(a174_0x4cc9,0x3cc3b));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a174_0x52e299(0x137),'command':a174_0x52e299(0x13b),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a174_0x52e299(0x127),'defaultOutputFormat':a174_0x52e299(0x131),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a174_0x52e299(0x124),'required':!![],'description':a174_0x52e299(0x13c)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4afd06){readCustomPageId(_0x4afd06);},async 'execute'(_0x478bdd){const _0x5a231c=a174_0x52e299,_0x402323=readCustomPageId(_0x478bdd),_0x5e5266=await getCustomPageSource(_0x402323),{bundle:_0x510279,createTime:_0x987299,updateTime:_0xb73a4c,..._0x5bf0a1}=_0x5e5266,_0x554660=_0x5e5266['id']??_0x402323,_0x131778=_0x5e5266[_0x5a231c(0x126)]?.[_0x5a231c(0x133)]()||_0x478bdd[_0x5a231c(0x12b)](_0x5a231c(0x13f))[_0x5a231c(0x133)](),_0x8a9e79=buildCustomPageRuntimeUrl(_0x131778,_0x5e5266[_0x5a231c(0x13a)]),_0x244f06=buildCustomPageEditUrl(_0x131778,_0x554660),_0x1c0b25=await resolveCustomPageDevelopmentUrl(_0x131778,_0x554660,_0x478bdd[_0x5a231c(0x135)]);return{'ok':!![],'data':{..._0x5bf0a1,..._0x8a9e79?{'runtimePageUrl':_0x8a9e79}:{},..._0x1c0b25?{'pageUrl':_0x1c0b25}:{},..._0x244f06?{'editPageUrl':_0x244f06}:{},..._0x987299==null?{}:{'createTime':formatTime(_0x987299)},..._0xb73a4c==null?{}:{'updateTime':formatTime(_0xb73a4c)}},'message':_0x5a231c(0x121)+_0x402323+'.'};}};function a174_0x4cc9(){const _0x38a27=['12oLVTTy','getMonth','compress','isNaN','trim','753956LuVCjQ','cookie','getFullYear','page','1433880jAmFQx','45IRDlij','pageCode','custom-detail','Custom\x20Page\x20ID','getHours','1070480YsxyGW','appcode','join','Retrieved\x20Custom\x20Page\x20','getSeconds','getDate','number','getMinutes','appCode','read','778960WumYlE','2019240IUJPcx','4154ZSYxcD','str','padStart','getTime','176758qMsqGP'];a174_0x4cc9=function(){return _0x38a27;};return a174_0x4cc9();}function a174_0xdf85(_0x5b3658,_0x24ab97){_0x5b3658=_0x5b3658-0x120;const _0x4cc9e2=a174_0x4cc9();let _0xdf85db=_0x4cc9e2[_0x5b3658];return _0xdf85db;}function formatTime(_0x50c225){const _0x5b5b3c=a174_0x52e299,_0x3fc715=new Date(_0x50c225);if(Number[_0x5b5b3c(0x132)](_0x3fc715[_0x5b5b3c(0x12d)]()))return String(_0x50c225);const _0x370ab9=[_0x3fc715[_0x5b5b3c(0x136)](),String(_0x3fc715[_0x5b5b3c(0x130)]()+0x1)[_0x5b5b3c(0x12c)](0x2,'0'),String(_0x3fc715[_0x5b5b3c(0x123)]())[_0x5b5b3c(0x12c)](0x2,'0')]['join']('-'),_0x1bdfe7=[String(_0x3fc715[_0x5b5b3c(0x13d)]())[_0x5b5b3c(0x12c)](0x2,'0'),String(_0x3fc715[_0x5b5b3c(0x125)]())[_0x5b5b3c(0x12c)](0x2,'0'),String(_0x3fc715[_0x5b5b3c(0x122)]())[_0x5b5b3c(0x12c)](0x2,'0')][_0x5b5b3c(0x120)](':');return _0x370ab9+'\x20'+_0x1bdfe7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x1cbfca=a175_0x59b2;(function(_0x1d6bf6,_0x3bb726){const _0x539c3e=a175_0x59b2,_0x4c55dc=_0x1d6bf6();while(!![]){try{const _0xedc3fb=parseInt(_0x539c3e(0xda))/0x1+parseInt(_0x539c3e(0xe0))/0x2*(-parseInt(_0x539c3e(0xdf))/0x3)+-parseInt(_0x539c3e(0xd4))/0x4*(-parseInt(_0x539c3e(0xd0))/0x5)+-parseInt(_0x539c3e(0xe4))/0x6*(parseInt(_0x539c3e(0xe1))/0x7)+parseInt(_0x539c3e(0xd7))/0x8+-parseInt(_0x539c3e(0xd9))/0x9*(parseInt(_0x539c3e(0xdb))/0xa)+parseInt(_0x539c3e(0xe2))/0xb*(parseInt(_0x539c3e(0xd6))/0xc);if(_0xedc3fb===_0x3bb726)break;else _0x4c55dc['push'](_0x4c55dc['shift']());}catch(_0x3ff6c7){_0x4c55dc['push'](_0x4c55dc['shift']());}}}(a175_0x1ee4,0x5e0a0));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a175_0x1ee4(){const _0x32ab41=['custom-list','read','5508rfWfKW','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','1277076baueMn','5493088aHbGLF','pageId','1294497SpEipv','138599Pgjzmb','50lbYPHy','type','compress','Found\x20','971322XsqVqk','2uXDbBp','7hRvCNg','110VPACqJ','path','3800802WONUhN','\x20Custom\x20Page(s).','react','length','cookie','menus','625hODpFM','appCode'];a175_0x1ee4=function(){return _0x32ab41;};return a175_0x1ee4();}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a175_0x59b2(_0x22de15,_0x477cc5){_0x22de15=_0x22de15-0xcf;const _0x1ee436=a175_0x1ee4();let _0x59b2ba=_0x1ee436[_0x22de15];return _0x59b2ba;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':'page','command':a175_0x1cbfca(0xd2),'description':a175_0x1cbfca(0xd5),'risk':a175_0x1cbfca(0xd3),'defaultOutputFormat':a175_0x1cbfca(0xdd),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1789ae){const _0x4f84a4=a175_0x1cbfca,_0x249cdf=(await fetchMenuSnapshot(_0x1789ae[_0x4f84a4(0xd1)],_0x1789ae[_0x4f84a4(0xe8)]))[_0x4f84a4(0xcf)]['flatMap'](_0x2f8c70=>{const _0x2008d3=_0x4f84a4;if(_0x2f8c70[_0x2008d3(0xdc)]!==_0x2008d3(0xe6)||_0x2f8c70[_0x2008d3(0xd8)]==null)return[];const _0x35391a=buildCustomPageDevelopmentUrl(_0x1789ae[_0x2008d3(0xd1)],_0x2f8c70[_0x2008d3(0xe3)]),_0x212213=buildCustomPageEditUrl(_0x1789ae['appCode'],_0x2f8c70[_0x2008d3(0xd8)]);return[{'pageId':_0x2f8c70[_0x2008d3(0xd8)],'label':_0x2f8c70['label'],..._0x35391a?{'pageUrl':_0x35391a}:{},..._0x212213?{'editPageUrl':_0x212213}:{}}];});return{'ok':!![],'data':{'pages':_0x249cdf},'message':_0x249cdf[_0x4f84a4(0xe7)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x4f84a4(0xde)+_0x249cdf[_0x4f84a4(0xe7)]+_0x4f84a4(0xe5)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a176_0x53cfe9=a176_0x3f15;(function(_0x3c44a5,_0x3808c9){const _0x39c19c=a176_0x3f15,_0x326210=_0x3c44a5();while(!![]){try{const _0x4b82ad=-parseInt(_0x39c19c(0x81))/0x1+parseInt(_0x39c19c(0x91))/0x2*(parseInt(_0x39c19c(0x75))/0x3)+parseInt(_0x39c19c(0x8a))/0x4*(parseInt(_0x39c19c(0x85))/0x5)+parseInt(_0x39c19c(0x79))/0x6+-parseInt(_0x39c19c(0x87))/0x7+-parseInt(_0x39c19c(0x98))/0x8*(parseInt(_0x39c19c(0x93))/0x9)+parseInt(_0x39c19c(0x8d))/0xa;if(_0x4b82ad===_0x3808c9)break;else _0x326210['push'](_0x326210['shift']());}catch(_0x19c908){_0x326210['push'](_0x326210['shift']());}}}(a176_0x40e7,0x1ba7d));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a176_0x40e7(){const _0x343544=['pageId','status','apiError','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','appCode','cookie','19094yyJlKS','remark','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','40inDzYc','custom-publish','1525671NEvzGf','page','push','57028EFgmOH','Optional\x20publish\x20remark','isInteger','799650HRrhyv','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','str','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','698fmWYEz','/smartapi/webcode/file/publish','9QmYvrK','runtimePageUrl','FORMAL','string','number','1089624hvMSvL','1485YQYBpB','warnings','Custom\x20Page\x20ID','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','718506bZTqts','write'];a176_0x40e7=function(){return _0x343544;};return a176_0x40e7();}function a176_0x3f15(_0x4504c3,_0x50e6d5){_0x4504c3=_0x4504c3-0x75;const _0x40e7f4=a176_0x40e7();let _0x3f15c4=_0x40e7f4[_0x4504c3];return _0x3f15c4;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a176_0x53cfe9(0x88),'command':a176_0x53cfe9(0x86),'description':a176_0x53cfe9(0x8e),'risk':a176_0x53cfe9(0x7a),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a176_0x53cfe9(0x97),'required':!![],'description':a176_0x53cfe9(0x77)},{'name':a176_0x53cfe9(0x82),'type':a176_0x53cfe9(0x96),'description':a176_0x53cfe9(0x8b)}],async 'validate'(_0x49baaf){readCustomPageId(_0x49baaf);},async 'dryRun'(_0x5605f9){const _0x4abfcc=a176_0x53cfe9,_0x184ce0=readInput(_0x5605f9);return{'method':'POST','url':_0x4abfcc(0x92),'body':{'id':_0x184ce0[_0x4abfcc(0x7b)],..._0x184ce0['remark']?{'remark':_0x184ce0['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x184ce0[_0x4abfcc(0x7b)]+'.'};},async 'execute'(_0xbff1c9){const _0x1639a2=a176_0x53cfe9,_0x2e25a5=readInput(_0xbff1c9);await getCustomPageSource(_0x2e25a5[_0x1639a2(0x7b)]);const _0x34801=await publishCustomPage(_0x2e25a5);if(!Number[_0x1639a2(0x8c)](_0x34801)||_0x34801!==_0x2e25a5[_0x1639a2(0x7b)])throw CliErrors[_0x1639a2(0x7d)](_0x1639a2(0x90));const _0x3a812f=await getCustomPageSource(_0x2e25a5['pageId']);if(_0x3a812f[_0x1639a2(0x7c)]!==_0x1639a2(0x95))throw CliErrors[_0x1639a2(0x7d)](_0x1639a2(0x7e)+(_0x3a812f['status']??'unknown')+'.');const _0xa49fbd=_0x3a812f[_0x1639a2(0x7f)]?.[_0x1639a2(0x84)](),_0x38d408=buildCustomPageEditUrl(_0xa49fbd,_0x2e25a5[_0x1639a2(0x7b)]),_0x38fe78=await resolveCustomPageDevelopmentUrl(_0xa49fbd,_0x2e25a5[_0x1639a2(0x7b)],_0xbff1c9[_0x1639a2(0x80)]),_0x23639d=buildMutationData(_0x2e25a5,!![],_0x38fe78,_0x38d408);_0xa49fbd&&!_0x38fe78&&_0x23639d['warnings'][_0x1639a2(0x89)](_0x1639a2(0x83));const _0x537d5=buildCustomPageRuntimeUrl(_0x3a812f['appCode'],_0x3a812f['pageCode']);return _0x537d5?_0x23639d[_0x1639a2(0x94)]=_0x537d5:_0x23639d[_0x1639a2(0x76)][_0x1639a2(0x89)](_0x1639a2(0x78)),{'ok':!![],'data':_0x23639d,'message':'Published\x20Custom\x20Page\x20'+_0x2e25a5[_0x1639a2(0x7b)]+'.'};}};function readInput(_0x2539b4){const _0x30d213=a176_0x53cfe9,_0x1bb6d2=readCustomPageId(_0x2539b4),_0x32931b=_0x2539b4[_0x30d213(0x8f)](_0x30d213(0x82))[_0x30d213(0x84)]();return{'pageId':_0x1bb6d2,..._0x32931b?{'remark':_0x32931b}:{}};}function buildMutationData(_0x2b85e3,_0x48120d=![],_0x3eb66e,_0xe5db79){const _0x3e996c=a176_0x53cfe9;return{'operation':'page.custom-publish','selector':{'pageId':_0x2b85e3[_0x3e996c(0x7b)]},'before':null,'after':{'pageId':_0x2b85e3['pageId'],'status':_0x3e996c(0x95)},'dryRun':!_0x48120d,'request':_0x2b85e3,..._0x3eb66e?{'pageUrl':_0x3eb66e}:{},..._0xe5db79?{'editPageUrl':_0xe5db79}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a13cd,_0x3240a9){const _0x2fe9e6=a177_0x445a,_0x51245e=_0x3a13cd();while(!![]){try{const _0x511c94=parseInt(_0x2fe9e6(0x10f))/0x1+parseInt(_0x2fe9e6(0x110))/0x2*(-parseInt(_0x2fe9e6(0x109))/0x3)+parseInt(_0x2fe9e6(0xff))/0x4+-parseInt(_0x2fe9e6(0x112))/0x5+-parseInt(_0x2fe9e6(0x101))/0x6+parseInt(_0x2fe9e6(0xfc))/0x7*(parseInt(_0x2fe9e6(0x100))/0x8)+parseInt(_0x2fe9e6(0x103))/0x9;if(_0x511c94===_0x3240a9)break;else _0x51245e['push'](_0x51245e['shift']());}catch(_0x1a0962){_0x51245e['push'](_0x51245e['shift']());}}}(a177_0xc0ae,0x4b150));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':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function a177_0x445a(_0x272dbd,_0x578026){_0x272dbd=_0x272dbd-0xfa;const _0xc0aeed=a177_0xc0ae();let _0x445a56=_0xc0aeed[_0x272dbd];return _0x445a56;}function trimOptional(_0x41defb){const _0xaa18ed=a177_0x445a;return _0x41defb?.[_0xaa18ed(0xfb)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x492483,_0x5f4dca){const _0x4df2ad=trimOptional(_0x492483),_0x18afa5=trimOptional(_0x5f4dca);if(!_0x4df2ad||!_0x18afa5)return undefined;return getPublishedAppDomain(_0x4df2ad)+'/'+encodeURIComponent(_0x18afa5);}export function buildCustomPageDevelopmentUrl(_0x395e36,_0x1ec0b1){const _0x3009cb=a177_0x445a,_0x1b508a=trimOptional(_0x395e36),_0x594b75=trimOptional(_0x1ec0b1);if(!_0x1b508a||!_0x594b75)return undefined;return getAppBaseUrl(_0x1b508a)+_0x3009cb(0x111)+encodeURIComponent(_0x594b75);}export async function resolveCustomPageDevelopmentUrl(_0x551c1e,_0xba3710,_0x35a9f0){const _0x2d4f28=a177_0x445a,_0x456843=trimOptional(_0x551c1e);if(!_0x456843)return undefined;try{const _0x406b25=(await fetchMenuSnapshot(_0x456843,_0x35a9f0))['menus'][_0x2d4f28(0x10d)](_0x1e3c98=>_0x1e3c98[_0x2d4f28(0xfd)]==='react'&&_0x1e3c98[_0x2d4f28(0x113)]===_0xba3710);return buildCustomPageDevelopmentUrl(_0x456843,_0x406b25?.[_0x2d4f28(0x108)]);}catch{return undefined;}}function a177_0xc0ae(){const _0x42f869=['9uelzoo','--id\x20must\x20be\x20a\x20positive\x20integer.','file','validation','find','map','230713vWdrPO','323378HGHBHj','/pages/','3074115qDRatc','pageId','num','trim','7izauUK','type','/ide/','554064HixaRn','2785112ghGrIP','479520pDICnm','Invalid\x20Custom\x20Page\x20content:\x20','6929802gOnaeX','message','isInteger','length','join','path'];a177_0xc0ae=function(){return _0x42f869;};return a177_0xc0ae();}export function buildCustomPageEditUrl(_0x27dc38,_0x314520){const _0x53e4e6=a177_0x445a,_0x52bcb8=trimOptional(_0x27dc38);if(!_0x52bcb8)return;const _0x5cc473=trimOptional(String(_0x314520??''));if(!_0x5cc473)return;return getAppBaseUrl(_0x52bcb8)+_0x53e4e6(0xfe)+encodeURIComponent(_0x5cc473);}export async function validateCustomPageContent(_0x18fae1){const _0x265aff=a177_0x445a,_0x4c1a6b=await validateCustomPageSourceFiles(_0x18fae1);if(_0x4c1a6b[_0x265aff(0x106)]>0x0)throw CliErrors[_0x265aff(0x10c)](_0x265aff(0x102)+_0x4c1a6b[_0x265aff(0x10e)](_0x2b8781=>_0x2b8781[_0x265aff(0x10b)]+':\x20'+_0x2b8781[_0x265aff(0x104)])[_0x265aff(0x107)](';\x20'));}export function readCustomPageId(_0xdc99df){const _0x3e3011=a177_0x445a,_0x18af6a=_0xdc99df[_0x3e3011(0xfa)]('id');if(!Number[_0x3e3011(0x105)](_0x18af6a)||_0x18af6a<=0x0)throw CliErrors[_0x3e3011(0x10c)](_0x3e3011(0x10a));return _0x18af6a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a178_0x33bae4=a178_0x5d85;(function(_0x3e9f34,_0x492cdf){const _0x4b3a14=a178_0x5d85,_0x56b125=_0x3e9f34();while(!![]){try{const _0x379fd4=parseInt(_0x4b3a14(0x115))/0x1*(parseInt(_0x4b3a14(0x11b))/0x2)+-parseInt(_0x4b3a14(0x11e))/0x3*(-parseInt(_0x4b3a14(0x10c))/0x4)+parseInt(_0x4b3a14(0x110))/0x5*(-parseInt(_0x4b3a14(0x10f))/0x6)+parseInt(_0x4b3a14(0x117))/0x7*(parseInt(_0x4b3a14(0x11f))/0x8)+parseInt(_0x4b3a14(0x11a))/0x9+parseInt(_0x4b3a14(0x122))/0xa+-parseInt(_0x4b3a14(0x113))/0xb;if(_0x379fd4===_0x492cdf)break;else _0x56b125['push'](_0x56b125['shift']());}catch(_0x3fb8a5){_0x56b125['push'](_0x56b125['shift']());}}}(a178_0x5165,0x9da51));import{format}from'prettier';function a178_0x5165(){const _0x8562e5=['242823dMWnVy','message','typescript','4807593BtPaol','2dtmyLG','trim','filter','3237351mEyBQo','88BKrzDl','.jsx','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','8939800NvjyNF','map','4VPbwIU','entries','babel','498pobCMn','35935KwWKKk','some','all','26679917bRcbfi','toLowerCase','778828SeejUU','endsWith'];a178_0x5165=function(){return _0x8562e5;};return a178_0x5165();}const SOURCE_PARSERS={'.js':'babel','.jsx':a178_0x33bae4(0x10e),'.ts':a178_0x33bae4(0x119),'.tsx':a178_0x33bae4(0x119)},CUSTOM_PAGE_EXTENSIONS=[a178_0x33bae4(0x120),'.tsx'];function a178_0x5d85(_0xf777e5,_0x3b6683){_0xf777e5=_0xf777e5-0x10c;const _0x516579=a178_0x5165();let _0x5d8534=_0x516579[_0xf777e5];return _0x5d8534;}export async function validateCustomPageSourceFiles(_0x31feb0){const _0x2ce7c8=a178_0x33bae4,_0x96c7c6=Object[_0x2ce7c8(0x10d)](_0x31feb0)[_0x2ce7c8(0x11d)](([_0x12a20c])=>getParser(_0x12a20c));if(!_0x96c7c6[_0x2ce7c8(0x111)](([_0xb25d7c])=>isReactSourceFile(_0xb25d7c)))return[{'file':'page\x20files','message':_0x2ce7c8(0x121)}];const _0x502041=await Promise[_0x2ce7c8(0x112)](_0x96c7c6[_0x2ce7c8(0x123)](async([_0x2c4e12,_0x3b33ab])=>{const _0x1b426f=_0x2ce7c8;try{return await format(_0x3b33ab,{'parser':getParser(_0x2c4e12)}),undefined;}catch(_0x246121){return{'file':_0x2c4e12,'message':_0x246121 instanceof Error?_0x246121[_0x1b426f(0x118)]:String(_0x246121)};}}));return _0x502041[_0x2ce7c8(0x11d)](_0x43c3f5=>_0x43c3f5!==undefined);}function getParser(_0x236880){const _0x67cb6f=a178_0x33bae4,_0x174bd9=_0x236880['trim']()[_0x67cb6f(0x114)]();return Object['entries'](SOURCE_PARSERS)['find'](([_0x47fc02])=>_0x174bd9[_0x67cb6f(0x116)](_0x47fc02))?.[0x1];}function isReactSourceFile(_0x2da145){const _0x3956b5=a178_0x33bae4,_0x4c3be4=_0x2da145[_0x3956b5(0x11c)]()[_0x3956b5(0x114)]();return CUSTOM_PAGE_EXTENSIONS[_0x3956b5(0x111)](_0x3bd5bf=>_0x4c3be4[_0x3956b5(0x116)](_0x3bd5bf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a179_0x425b(){const _0x378655=['Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','17087rEbcpE','POST','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','str','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','50sRzFKc','custom-update','6305648HfOTuk','number','page-content','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','3059664IdOIZp','cookie','trim','appCode','pageContent','page-dir','validation','page.custom-update','pageId','114WbMhnD','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','19420kIcBsq','string','write','Updated\x20Custom\x20Page\x20','1689957fgWaMP','113wEuXny','113770BstebD','5085591htthjh','Custom\x20Page\x20ID','page','220bQrJrj','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','newVersion','isInteger','1208jwwdop'];a179_0x425b=function(){return _0x378655;};return a179_0x425b();}const a179_0x2cbb87=a179_0x533e;(function(_0x1045c1,_0x9da089){const _0x23f79f=a179_0x533e,_0x8524d=_0x1045c1();while(!![]){try{const _0xb0ee4b=-parseInt(_0x23f79f(0x1a5))/0x1*(parseInt(_0x23f79f(0x1a0))/0x2)+-parseInt(_0x23f79f(0x1a7))/0x3+-parseInt(_0x23f79f(0x191))/0x4+-parseInt(_0x23f79f(0x1a6))/0x5*(parseInt(_0x23f79f(0x19e))/0x6)+parseInt(_0x23f79f(0x1b0))/0x7*(-parseInt(_0x23f79f(0x1ae))/0x8)+parseInt(_0x23f79f(0x1a4))/0x9*(parseInt(_0x23f79f(0x1b5))/0xa)+-parseInt(_0x23f79f(0x1aa))/0xb*(-parseInt(_0x23f79f(0x195))/0xc);if(_0xb0ee4b===_0x9da089)break;else _0x8524d['push'](_0x8524d['shift']());}catch(_0x3e96fb){_0x8524d['push'](_0x8524d['shift']());}}}(a179_0x425b,0xd40c5));function a179_0x533e(_0x3b4dbc,_0x3f8382){_0x3b4dbc=_0x3b4dbc-0x190;const _0x425b53=a179_0x425b();let _0x533e21=_0x425b53[_0x3b4dbc];return _0x533e21;}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':a179_0x2cbb87(0x1a9),'command':a179_0x2cbb87(0x190),'description':a179_0x2cbb87(0x1ab),'risk':a179_0x2cbb87(0x1a2),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a179_0x2cbb87(0x193),'message':a179_0x2cbb87(0x1b2),'hint':a179_0x2cbb87(0x19f)}],'flags':[{'name':'id','type':a179_0x2cbb87(0x192),'required':!![],'description':a179_0x2cbb87(0x1a8)},{'name':a179_0x2cbb87(0x19a),'type':a179_0x2cbb87(0x1a1),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5eeefb){readCustomPageId(_0x5eeefb),await readValidatedPageContent(_0x5eeefb);},async 'dryRun'(_0x2e6fd5){const _0x22b316=a179_0x2cbb87,_0xfb9b07=await readInput(_0x2e6fd5);return{'method':_0x22b316(0x1b1),'url':'/smartapi/webcode/page/update/content','body':{'id':_0xfb9b07[_0x22b316(0x19d)],'codeContent':_0xfb9b07[_0x22b316(0x199)]},'description':_0x22b316(0x194)+_0xfb9b07[_0x22b316(0x19d)]+'.'};},async 'execute'(_0x167f87){const _0x4b240e=a179_0x2cbb87,_0x2bbbba=await readInput(_0x167f87),_0x36a0eb=await updateCustomPageContent({'pageId':_0x2bbbba[_0x4b240e(0x19d)],'pageContent':_0x2bbbba['pageContent']});if(!Number[_0x4b240e(0x1ad)](_0x36a0eb[_0x4b240e(0x1ac)])||_0x36a0eb['newVersion']<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0xc1fc4c=buildCustomPageEditUrl(_0x2bbbba[_0x4b240e(0x198)],_0x2bbbba[_0x4b240e(0x19d)]),_0xa18aa1=await resolveCustomPageDevelopmentUrl(_0x2bbbba[_0x4b240e(0x198)],_0x2bbbba['pageId'],_0x167f87[_0x4b240e(0x196)]);return{'ok':!![],'data':{'operation':_0x4b240e(0x19c),'selector':{'appCode':_0x2bbbba[_0x4b240e(0x198)],'pageId':_0x2bbbba[_0x4b240e(0x19d)]},'before':null,'after':{'pageId':_0x36a0eb[_0x4b240e(0x19d)],'version':_0x36a0eb['newVersion'],'pageContent':_0x2bbbba[_0x4b240e(0x199)]},'dryRun':![],'request':_0x2bbbba,..._0xa18aa1?{'pageUrl':_0xa18aa1}:{},..._0xc1fc4c?{'editPageUrl':_0xc1fc4c}:{},'warnings':_0xa18aa1?[]:[_0x4b240e(0x1b4)]},'message':_0x4b240e(0x1a3)+_0x2bbbba[_0x4b240e(0x19d)]+'.'};}};async function readInput(_0x173bd6){const _0x7b6848=a179_0x2cbb87,_0x356f68=readCustomPageId(_0x173bd6),_0x16078f=_0x173bd6[_0x7b6848(0x1b3)]('appcode')[_0x7b6848(0x197)]()||(await getCustomPageSource(_0x356f68))[_0x7b6848(0x198)]?.[_0x7b6848(0x197)]();if(!_0x16078f)throw CliErrors[_0x7b6848(0x19b)](_0x7b6848(0x1af)+_0x356f68+'.');return{'appCode':_0x16078f,'pageId':_0x356f68,'pageContent':await readValidatedPageContent(_0x173bd6)};}async function readValidatedPageContent(_0x3b3c5f){const _0x571e4c=a179_0x2cbb87,_0x4c729f=await readCustomPageDirectory(_0x3b3c5f[_0x571e4c(0x1b3)](_0x571e4c(0x19a)));return await validateCustomPageContent(_0x4c729f),_0x4c729f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a180_0xaf01(){const _0x5042c4=['code','data-list-status','3722248YCzmxR','length','name','831912cCkqha','/standard-page-status?appCode=','source','manualResolutionRequired','compress','14sDXDCz','relatedPages','GET','nextAction','/smartapi/lovrabet/dataset/','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','related-pages-fallback','alias','2809FxtIzR','469485VuXubG','7NtoYMP','10gLUSQb','appCode','page','read','11483813JnhtPk','1155415qhbuQH','12oPzGPK','674319YjcDxV'];a180_0xaf01=function(){return _0x5042c4;};return a180_0xaf01();}const a180_0x165a4=a180_0xedc6;(function(_0x4a9833,_0x2cb1e4){const _0x16c30b=a180_0xedc6,_0x48ca60=_0x4a9833();while(!![]){try{const _0x1189ba=-parseInt(_0x16c30b(0xc0))/0x1*(parseInt(_0x16c30b(0xb8))/0x2)+parseInt(_0x16c30b(0xad))/0x3+parseInt(_0x16c30b(0xb3))/0x4+-parseInt(_0x16c30b(0xab))/0x5*(-parseInt(_0x16c30b(0xac))/0x6)+parseInt(_0x16c30b(0xa5))/0x7*(parseInt(_0x16c30b(0xb0))/0x8)+-parseInt(_0x16c30b(0xa4))/0x9*(parseInt(_0x16c30b(0xa6))/0xa)+-parseInt(_0x16c30b(0xaa))/0xb;if(_0x1189ba===_0x2cb1e4)break;else _0x48ca60['push'](_0x48ca60['shift']());}catch(_0x9781da){_0x48ca60['push'](_0x48ca60['shift']());}}}(a180_0xaf01,0x3baa3));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a180_0xedc6(_0x18c189,_0x21a96f){_0x18c189=_0x18c189-0xa4;const _0xaf01ae=a180_0xaf01();let _0xedc6b0=_0xaf01ae[_0x18c189];return _0xedc6b0;}export const pageDataListStatus={'service':a180_0x165a4(0xa8),'command':a180_0x165a4(0xaf),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a180_0x165a4(0xa9),'defaultOutputFormat':a180_0x165a4(0xb7),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a180_0x165a4(0xbf),'type':'string','description':a180_0x165a4(0xbd)}],async 'validate'(_0xeca1cd){validateDatasetSelector(_0xeca1cd);},async 'dryRun'(_0x6e9416){const _0x3440c9=a180_0x165a4,_0x5c2d2d=await loadDatasetDetailForPage(_0x6e9416);return{'method':_0x3440c9(0xba),'url':_0x3440c9(0xbc)+_0x5c2d2d[_0x3440c9(0xae)]+_0x3440c9(0xb4)+encodeURIComponent(_0x6e9416[_0x3440c9(0xa7)]),'description':serializeDryRunDescription({'dataset':{'id':_0x5c2d2d['id'],'code':_0x5c2d2d[_0x3440c9(0xae)],'name':_0x5c2d2d[_0x3440c9(0xb2)]},'action':'query-data-list-status'})};},async 'execute'(_0x91f947){const _0x230a89=a180_0x165a4,_0x17d01d=await loadDatasetDetailForPage(_0x91f947),_0x322cb2=await loadDataListPageStatusForGenerate(_0x91f947,_0x17d01d[_0x230a89(0xae)]),_0x2639d0=getUndeletedRelatedPages(_0x17d01d),_0x164c1c=assessDataListPageState(_0x17d01d[_0x230a89(0xae)],_0x322cb2,{'fallbackUndeletedPages':_0x2639d0});return{'ok':!![],'data':{'datasetCode':_0x17d01d[_0x230a89(0xae)],'precheckSource':_0x322cb2?.[_0x230a89(0xb5)]??_0x230a89(0xbe),'status':_0x164c1c['status'],'manualResolutionRequired':_0x164c1c[_0x230a89(0xb6)],'nextAction':_0x164c1c[_0x230a89(0xbb)],'dataListPageStatus':_0x322cb2,'relatedPages':{'total':_0x17d01d[_0x230a89(0xb9)]['length'],'undeletedCount':_0x2639d0[_0x230a89(0xb1)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a181_0x16e880=a181_0x1c12;(function(_0x5a1ff4,_0x28dca0){const _0x2b8dac=a181_0x1c12,_0x46f1ce=_0x5a1ff4();while(!![]){try{const _0x10bf06=parseInt(_0x2b8dac(0xa9))/0x1+-parseInt(_0x2b8dac(0xa8))/0x2*(parseInt(_0x2b8dac(0xa2))/0x3)+-parseInt(_0x2b8dac(0xa6))/0x4+parseInt(_0x2b8dac(0xb0))/0x5+-parseInt(_0x2b8dac(0xaf))/0x6+parseInt(_0x2b8dac(0xc4))/0x7+parseInt(_0x2b8dac(0xbd))/0x8*(parseInt(_0x2b8dac(0xa1))/0x9);if(_0x10bf06===_0x28dca0)break;else _0x46f1ce['push'](_0x46f1ce['shift']());}catch(_0x2dc934){_0x46f1ce['push'](_0x46f1ce['shift']());}}}(a181_0x14c9,0xacba8));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':a181_0x16e880(0xaa),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a181_0x16e880(0xc2),'defaultOutputFormat':a181_0x16e880(0xc3),'rejectedFlags':[{'name':a181_0x16e880(0xbb),'message':a181_0x16e880(0xab),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a181_0x16e880(0xba),'message':a181_0x16e880(0xb9),'hint':a181_0x16e880(0xbe)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a181_0x16e880(0xc6),'type':a181_0x16e880(0xb4),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a181_0x16e880(0x9d),'type':a181_0x16e880(0xc1),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x11b156){validateDatasetSelector(_0x11b156);},async 'dryRun'(_0x27b8aa){const _0xf60ed4=a181_0x16e880,_0x182f27=await prepare(_0x27b8aa);return{'method':_0xf60ed4(0xa3),'url':_0xf60ed4(0x9c)+_0x182f27[_0xf60ed4(0x9a)]['code']+'/generate-standard-pages/start','body':{'appCode':_0x27b8aa[_0xf60ed4(0xa4)],'clientOperationId':_0x182f27[_0xf60ed4(0xc8)]},'description':serializeDryRunDescription({'dataset':{'id':_0x182f27[_0xf60ed4(0x9a)]['id'],'code':_0x182f27[_0xf60ed4(0x9a)][_0xf60ed4(0xad)],'name':_0x182f27[_0xf60ed4(0x9a)]['name'],'fieldCount':_0x182f27[_0xf60ed4(0x9a)]['fieldCount']},'precheckSource':_0x182f27['dataListPageStatus']?.['source']??_0xf60ed4(0xbc),'action':_0xf60ed4(0xb3),'clientOperationId':_0x182f27[_0xf60ed4(0xc8)],'plannedStatus':_0x182f27[_0xf60ed4(0xa5)][_0xf60ed4(0xb5)],'reason':_0x182f27['precheck'][_0xf60ed4(0x9e)]})};},async 'execute'(_0x2027fd){const _0x1d6628=a181_0x16e880;if(!_0x2027fd['bool'](_0x1d6628(0x9d))){const _0x758008=await pageGenerateStart['dryRun'](_0x2027fd);return{'ok':!![],'message':_0x1d6628(0xc7),'data':_0x758008};}const _0x1fda8b=await prepare(_0x2027fd);if(!_0x1fda8b[_0x1d6628(0xa5)][_0x1d6628(0xb6)])return{'ok':![],'message':_0x1fda8b[_0x1d6628(0xa5)][_0x1d6628(0x9e)],'data':{'datasetCode':_0x1fda8b[_0x1d6628(0x9a)]['code'],'pageType':_0x1d6628(0xb1),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x1fda8b[_0x1d6628(0xc8)],'precheckSource':_0x1fda8b['dataListPageStatus']?.[_0x1d6628(0xa7)]??_0x1d6628(0xbc),'status':_0x1fda8b[_0x1d6628(0xa5)]['status'],'manualResolutionRequired':_0x1fda8b[_0x1d6628(0xa5)]['manualResolutionRequired'],'nextAction':_0x1fda8b[_0x1d6628(0xa5)]['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x1fda8b['dataset'][_0x1d6628(0xad)],_0x2027fd[_0x1d6628(0xa4)])},'dataListPageStatus':_0x1fda8b[_0x1d6628(0xac)]}};const _0x31cb5d=await startGenerateDataListPages(_0x2027fd[_0x1d6628(0xa4)],_0x1fda8b['dataset'][_0x1d6628(0xad)],{'clientOperationId':_0x1fda8b[_0x1d6628(0xc8)]}),_0x3ccd5f=_0x31cb5d[_0x1d6628(0xb5)]===_0x1d6628(0x9f)||_0x31cb5d[_0x1d6628(0xb5)]===_0x1d6628(0xc5)?await loadDataListPageStatusForGenerate(_0x2027fd,_0x1fda8b[_0x1d6628(0x9a)]['code']):null,_0x1dd7e3=assessGenerateOperationState(_0x1fda8b['dataset'][_0x1d6628(0xad)],_0x31cb5d[_0x1d6628(0xb5)],_0x3ccd5f);return{'ok':!![],'message':_0x31cb5d[_0x1d6628(0xae)]?_0x1d6628(0xb8):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x1fda8b[_0x1d6628(0x9a)][_0x1d6628(0xad)],'appCode':_0x2027fd['appCode'],'pageType':_0x1d6628(0xb1),'pagePattern':_0x1d6628(0xa0),'taskId':_0x31cb5d[_0x1d6628(0x99)]??null,'operationId':_0x31cb5d[_0x1d6628(0xbf)]??null,'clientOperationId':_0x1fda8b['clientOperationId'],'jobStatus':_0x31cb5d[_0x1d6628(0xb5)]??null,'progressRate':typeof _0x31cb5d[_0x1d6628(0xb2)]===_0x1d6628(0x9b)?_0x31cb5d[_0x1d6628(0xb2)]:null,'currentStep':_0x31cb5d['currentStep']??null,'reused':_0x31cb5d[_0x1d6628(0xae)]===!![],'status':_0x1dd7e3[_0x1d6628(0xb5)],'manualResolutionRequired':_0x1dd7e3[_0x1d6628(0xc0)],'nextAction':_0x1dd7e3[_0x1d6628(0xb7)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1fda8b[_0x1d6628(0x9a)][_0x1d6628(0xad)],{'appCode':_0x2027fd['appCode'],'taskId':_0x31cb5d[_0x1d6628(0x99)],'operationId':_0x31cb5d[_0x1d6628(0xbf)],'clientOperationId':_0x1fda8b[_0x1d6628(0xc8)]})},'dataListPageStatus':_0x3ccd5f}};}};async function prepare(_0x5b481b){const _0x234758=a181_0x16e880,_0x3952a4=await loadDatasetDetailForPage(_0x5b481b),_0x20d897=await loadDataListPageStatusForGenerate(_0x5b481b,_0x3952a4[_0x234758(0xad)]),_0x4fd468=getUndeletedRelatedPages(_0x3952a4);return{'dataset':_0x3952a4,'dataListPageStatus':_0x20d897,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3952a4[_0x234758(0xad)],_0x20d897,{'fallbackUndeletedPages':_0x4fd468})};}function a181_0x1c12(_0x3c3454,_0xc090c5){_0x3c3454=_0x3c3454-0x99;const _0x14c9db=a181_0x14c9();let _0x1c1295=_0x14c9db[_0x3c3454];return _0x1c1295;}function a181_0x14c9(){const _0x478628=['boolean','write','compress','6367648LgfMfV','PARTIAL_SUCCESS','alias','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','clientOperationId','taskId','dataset','number','/smartapi/lovrabet/dataset/','apply','message','SUCCESS','CRUD_PAGE_SET','219330UNbwjj','159543woKqnr','POST','appCode','precheck','3136484hJzBbk','source','2WpycnV','514433rNGtCj','page','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','dataListPageStatus','code','reused','8466162QkgodO','225790TKeQlb','DATA_LIST','progressRate','generate-start','string','status','allowGenerate','nextAction','Reusing\x20an\x20existing\x20generate\x20task','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','page-pattern','page-type','related-pages-fallback','488ttciUC','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','operationId','manualResolutionRequired'];a181_0x14c9=function(){return _0x478628;};return a181_0x14c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a182_0x4f4f2d=a182_0x2507;(function(_0x3554d4,_0x298272){const _0x466723=a182_0x2507,_0x42cb0c=_0x3554d4();while(!![]){try{const _0x36d120=-parseInt(_0x466723(0x1fc))/0x1*(parseInt(_0x466723(0x1fd))/0x2)+-parseInt(_0x466723(0x1f7))/0x3+-parseInt(_0x466723(0x1ec))/0x4+-parseInt(_0x466723(0x1f1))/0x5+-parseInt(_0x466723(0x20a))/0x6*(-parseInt(_0x466723(0x215))/0x7)+parseInt(_0x466723(0x1f8))/0x8+-parseInt(_0x466723(0x20d))/0x9*(-parseInt(_0x466723(0x204))/0xa);if(_0x36d120===_0x298272)break;else _0x42cb0c['push'](_0x42cb0c['shift']());}catch(_0x574362){_0x42cb0c['push'](_0x42cb0c['shift']());}}}(a182_0xcd4b,0x98c8d));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 a182_0x2507(_0x20183b,_0x408479){_0x20183b=_0x20183b-0x1e9;const _0xcd4b48=a182_0xcd4b();let _0x25075b=_0xcd4b48[_0x20183b];return _0x25075b;}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a182_0x4f4f2d(0x214),'command':a182_0x4f4f2d(0x1f2),'description':a182_0x4f4f2d(0x1fe),'risk':a182_0x4f4f2d(0x202),'defaultOutputFormat':a182_0x4f4f2d(0x200),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a182_0x4f4f2d(0x1e9),'type':a182_0x4f4f2d(0x205),'description':a182_0x4f4f2d(0x201)},{'name':a182_0x4f4f2d(0x20b),'type':'string','description':a182_0x4f4f2d(0x1f4)},{'name':'operation-id','type':'string','description':a182_0x4f4f2d(0x213)},{'name':a182_0x4f4f2d(0x1ff),'type':a182_0x4f4f2d(0x205),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0xa982fb){validateDatasetSelector(_0xa982fb),validateGenerateOperationSelector(_0xa982fb);},async 'dryRun'(_0x3b9ac4){const _0x11478e=a182_0x4f4f2d,_0x1dd9bb=await loadDatasetDetailForPage(_0x3b9ac4),_0x359773=_0x3b9ac4[_0x11478e(0x212)](_0x11478e(0x20b)),_0x3e4ef0=_0x3b9ac4['str'](_0x11478e(0x1f9)),_0x2d9c2e=_0x3b9ac4[_0x11478e(0x212)](_0x11478e(0x1ff)),_0x4a7692=new URLSearchParams({'appCode':_0x3b9ac4[_0x11478e(0x1f5)]});return _0x359773&&_0x4a7692['set'](_0x11478e(0x1eb),_0x359773),_0x3e4ef0&&_0x4a7692[_0x11478e(0x203)](_0x11478e(0x20c),_0x3e4ef0),_0x2d9c2e&&_0x4a7692[_0x11478e(0x203)]('clientOperationId',_0x2d9c2e),{'method':'GET','url':_0x11478e(0x216)+_0x1dd9bb[_0x11478e(0x1ea)]+'/generate-standard-pages/status?'+_0x4a7692[_0x11478e(0x1f0)](),'description':serializeDryRunDescription({'dataset':{'id':_0x1dd9bb['id'],'code':_0x1dd9bb[_0x11478e(0x1ea)],'name':_0x1dd9bb[_0x11478e(0x20f)]},'action':_0x11478e(0x1ed),'taskId':_0x359773||undefined,'operationId':_0x3e4ef0||undefined,'clientOperationId':_0x2d9c2e||undefined})};},async 'execute'(_0x2ec03e){const _0x413e11=a182_0x4f4f2d,_0x25a922=await loadDatasetDetailForPage(_0x2ec03e),_0x20dc6d=_0x2ec03e['str']('task-id'),_0x16dc94=_0x2ec03e[_0x413e11(0x212)]('operation-id'),_0x3ea8c0=_0x2ec03e[_0x413e11(0x212)]('client-operation-id'),_0x2c150e=await getGenerateDataListPagesStatus(_0x2ec03e[_0x413e11(0x1f5)],_0x25a922[_0x413e11(0x1ea)],{'taskId':_0x20dc6d||undefined,'operationId':_0x16dc94||undefined,'clientOperationId':_0x3ea8c0||undefined}),_0x1f3b9c=_0x2c150e[_0x413e11(0x208)]===_0x413e11(0x1ee)||_0x2c150e[_0x413e11(0x208)]===_0x413e11(0x209),_0x96f97e=_0x1f3b9c?await loadDataListPageStatusForGenerate(_0x2ec03e,_0x25a922[_0x413e11(0x1ea)]):null,_0x570b5b=assessGenerateOperationState(_0x25a922[_0x413e11(0x1ea)],_0x2c150e[_0x413e11(0x208)],_0x96f97e),_0x4731bd=_0x2c150e[_0x413e11(0x1eb)]??_0x20dc6d??undefined,_0x460644=_0x2c150e[_0x413e11(0x20c)]??_0x16dc94??undefined,_0x202a69=_0x2c150e[_0x413e11(0x1f3)]??_0x3ea8c0??undefined;return{'ok':!![],'message':_0x570b5b['status']===_0x413e11(0x207)?_0x2c150e['errorMsg']||_0x570b5b['message']:_0x570b5b[_0x413e11(0x1fb)],'data':{'datasetCode':_0x25a922[_0x413e11(0x1ea)],'appCode':_0x2ec03e['appCode'],'taskId':_0x4731bd,'operationId':_0x460644,'clientOperationId':_0x202a69,'jobStatus':_0x2c150e[_0x413e11(0x208)]??null,'progressRate':typeof _0x2c150e[_0x413e11(0x211)]===_0x413e11(0x1fa)?_0x2c150e['progressRate']:null,'currentStep':_0x2c150e[_0x413e11(0x206)]??null,'errorMsg':_0x2c150e[_0x413e11(0x210)]??null,'status':_0x570b5b[_0x413e11(0x208)],'manualResolutionRequired':_0x570b5b[_0x413e11(0x1f6)],'nextAction':_0x570b5b[_0x413e11(0x1ef)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x25a922['code'],{'appCode':_0x2ec03e[_0x413e11(0x1f5)],'taskId':_0x4731bd,'operationId':_0x460644,'clientOperationId':_0x202a69})},'dataListPageStatus':_0x96f97e,'result':_0x2c150e[_0x413e11(0x20e)]??null}};}};function a182_0xcd4b(){const _0xfd2c64=['string','currentStep','operation_failed','status','PARTIAL_SUCCESS','6gmSVPH','task-id','operationId','499869SVakvm','result','name','errorMsg','progressRate','str','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','page','328587PoYvTy','/smartapi/lovrabet/dataset/','alias','code','taskId','2702356SMTqAA','query-generate-operation-status','SUCCESS','nextAction','toString','6201305vFNVuw','generate-status','clientOperationId','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','appCode','manualResolutionRequired','1516107oIkZXm','926328QQkoxG','operation-id','number','message','6KtTQUI','334526dgdqxb','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','client-operation-id','compress','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','read','set','700tvhkeU'];a182_0xcd4b=function(){return _0xfd2c64;};return a182_0xcd4b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e778d,_0x2c09a6){const _0x3d024c=a183_0x430f,_0x4bf6cb=_0x5e778d();while(!![]){try{const _0x2950d1=-parseInt(_0x3d024c(0x19a))/0x1*(-parseInt(_0x3d024c(0x197))/0x2)+parseInt(_0x3d024c(0x19b))/0x3+-parseInt(_0x3d024c(0x19f))/0x4*(parseInt(_0x3d024c(0x199))/0x5)+parseInt(_0x3d024c(0x195))/0x6*(-parseInt(_0x3d024c(0x198))/0x7)+-parseInt(_0x3d024c(0x19c))/0x8*(-parseInt(_0x3d024c(0x19d))/0x9)+parseInt(_0x3d024c(0x196))/0xa+parseInt(_0x3d024c(0x19e))/0xb;if(_0x2950d1===_0x2c09a6)break;else _0x4bf6cb['push'](_0x4bf6cb['shift']());}catch(_0x2fd2d2){_0x4bf6cb['push'](_0x4bf6cb['shift']());}}}(a183_0x27f1,0x65c1d));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a183_0x430f(_0x2362bc,_0x389860){_0x2362bc=_0x2362bc-0x195;const _0x27f14d=a183_0x27f1();let _0x430f01=_0x27f14d[_0x2362bc];return _0x430f01;}import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';function a183_0x27f1(){const _0x55dfbd=['80706VMdJIR','3571048clzmIP','9soxIfw','4031566qcrEZP','46228NrMLzo','4779426onLwda','6801700eCzkwf','2YmcDYq','7rrMRMf','355BNGqse','513956BrYZha'];a183_0x27f1=function(){return _0x55dfbd;};return a183_0x27f1();}export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a184_0x271559=a184_0x5cc8;function a184_0x4112(){const _0x36bfe4=['localPath','versionTag','4826214FwKNSa','Page\x20ID','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','force','Pull\x20page\x20schema\x20to\x20local\x20files','4151889FSjXQw','deleted','validation','pageVersion','relatedPages','string','5682BxuIPt','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','str','hash','name','local\x20unsynced\x20changes','pageId','items','datasetIds','toISOString','406947OldusL','detail','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','37187557IjggWg','Pull\x20complete:\x20','GET','lockFilePath','single','mode','8ncsXew','code','pages','number','datasetCode','4mwDtDE','2782388rTOJEl','map','page','batch','version-tag','all','alias','1246683iIJHUe','boolean','length','read','filter','reason','would_pull','10lVrjqB','/smartapi/lovrabet/detail?pageId=','push','1115soRExK','\x20skipped','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','Dataset\x20\x22','pull','type','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','appCode','status'];a184_0x4112=function(){return _0x36bfe4;};return a184_0x4112();}(function(_0x2cdb9f,_0x5990ea){const _0x662d25=a184_0x5cc8,_0x92981c=_0x2cdb9f();while(!![]){try{const _0x43d555=-parseInt(_0x662d25(0x1df))/0x1+-parseInt(_0x662d25(0x1d8))/0x2+parseInt(_0x662d25(0x1c9))/0x3*(parseInt(_0x662d25(0x1d7))/0x4)+-parseInt(_0x662d25(0x1a9))/0x5*(parseInt(_0x662d25(0x1bf))/0x6)+parseInt(_0x662d25(0x1b9))/0x7+parseInt(_0x662d25(0x1d2))/0x8*(-parseInt(_0x662d25(0x1b4))/0x9)+parseInt(_0x662d25(0x1a6))/0xa*(parseInt(_0x662d25(0x1cc))/0xb);if(_0x43d555===_0x5990ea)break;else _0x92981c['push'](_0x92981c['shift']());}catch(_0x4d1098){_0x92981c['push'](_0x92981c['shift']());}}}(a184_0x4112,0xb0cbf));function a184_0x5cc8(_0x2967b3,_0x528be1){_0x2967b3=_0x2967b3-0x1a5;const _0x411236=a184_0x4112();let _0x5cc875=_0x411236[_0x2967b3];return _0x5cc875;}import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a184_0x271559(0x1da),'command':a184_0x271559(0x1ad),'description':a184_0x271559(0x1b8),'risk':a184_0x271559(0x1e2),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a184_0x271559(0x1d5),'description':a184_0x271559(0x1b5)},DATASETCODE_FLAG_OPTIONAL,{'name':a184_0x271559(0x1de),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a184_0x271559(0x1dc),'type':a184_0x271559(0x1be),'description':a184_0x271559(0x1c0)},{'name':a184_0x271559(0x1b7),'type':a184_0x271559(0x1e0),'description':a184_0x271559(0x1cb)}],async 'validate'(_0x45b9e3){validatePageTargetSelector(_0x45b9e3);},async 'dryRun'(_0x31f77c){const _0x220f49=a184_0x271559,_0xa1096a=await buildPullPlan(_0x31f77c);return{'method':_0x220f49(0x1ce),'url':_0xa1096a[_0x220f49(0x1d1)]===_0x220f49(0x1d0)?_0x220f49(0x1a7)+(_0xa1096a['items'][0x0]?.['detail']['pageId']??''):_0x220f49(0x1ab),'body':{'appCode':_0x31f77c[_0x220f49(0x1b0)],'mode':_0xa1096a[_0x220f49(0x1d1)],'targetDatasetCode':_0xa1096a[_0x220f49(0x1d6)]??null,'pages':_0xa1096a[_0x220f49(0x1c6)][_0x220f49(0x1d9)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0xa1096a[_0x220f49(0x1d1)],'datasetCode':_0xa1096a[_0x220f49(0x1d6)]??null,'totalCandidates':_0xa1096a[_0x220f49(0x1c6)][_0x220f49(0x1e1)],'totalWouldPull':_0xa1096a[_0x220f49(0x1c6)][_0x220f49(0x1e3)](_0x1941f7=>_0x1941f7[_0x220f49(0x1b1)]===_0x220f49(0x1a5))[_0x220f49(0x1e1)],'totalConflicts':_0xa1096a['items'][_0x220f49(0x1e3)](_0x1b74bc=>_0x1b74bc['status']==='conflict')[_0x220f49(0x1e1)]})};},async 'execute'(_0x1ea18a){const _0x64dd9d=a184_0x271559,_0x48f2cb=loadPageProjectConfig(_0x1ea18a[_0x64dd9d(0x1b0)]),_0x35087a=await readPageLockFile(_0x48f2cb[_0x64dd9d(0x1cf)]),{lockData:_0x41dec9,appLock:_0x32e54c}=ensurePageLockScope(_0x35087a??createEmptyPageLock(),_0x1ea18a[_0x64dd9d(0x1b0)]),_0x2707c4=await buildPullPlan(_0x1ea18a),_0x535a88=_0x1ea18a['bool']('force');if(_0x2707c4[_0x64dd9d(0x1d1)]==='single'&&_0x2707c4[_0x64dd9d(0x1c6)][0x0]?.['status']==='conflict'&&!_0x535a88)throw CliErrors[_0x64dd9d(0x1bb)](_0x64dd9d(0x1af)+_0x2707c4[_0x64dd9d(0x1c6)][0x0][_0x64dd9d(0x1b2)],_0x64dd9d(0x1b6));const _0x20cf94=[],_0x150b4f=[];for(const _0x5cdaf7 of _0x2707c4['items']){if(_0x5cdaf7[_0x64dd9d(0x1b1)]==='conflict'&&!_0x535a88){_0x150b4f[_0x64dd9d(0x1a8)]({'pageId':_0x5cdaf7[_0x64dd9d(0x1ca)]['pageId'],'type':_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1ae)],'title':_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1c3)],'localPath':_0x5cdaf7[_0x64dd9d(0x1b2)],'reason':_0x5cdaf7['reason']??_0x64dd9d(0x1c4)});continue;}await ensureParentDirectory(_0x5cdaf7[_0x64dd9d(0x1b2)]);const _0xdcfe01=serializePageSchemaForFile(_0x5cdaf7['detail']['code']);await writeFile(_0x5cdaf7[_0x64dd9d(0x1b2)],_0xdcfe01,'utf8'),_0x32e54c[_0x64dd9d(0x1d4)][String(_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1c5)])]=buildLockEntry(_0x5cdaf7[_0x64dd9d(0x1ca)],_0xdcfe01),_0x20cf94[_0x64dd9d(0x1a8)]({'pageId':_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1c5)],'type':_0x5cdaf7[_0x64dd9d(0x1ca)]['type'],'title':_0x5cdaf7[_0x64dd9d(0x1ca)]['name'],'localPath':_0x5cdaf7[_0x64dd9d(0x1b2)]});}return _0x32e54c['lastSync']=new Date()[_0x64dd9d(0x1c8)](),await writePageLockFile(_0x48f2cb[_0x64dd9d(0x1cf)],_0x41dec9),{'ok':!![],'message':_0x64dd9d(0x1cd)+_0x20cf94['length']+'\x20pulled,\x20'+_0x150b4f[_0x64dd9d(0x1e1)]+_0x64dd9d(0x1aa),'data':{'appCode':_0x1ea18a['appCode'],'pulledPages':_0x20cf94,'skippedPages':_0x150b4f,'totalPulled':_0x20cf94[_0x64dd9d(0x1e1)],'totalSkipped':_0x150b4f['length']}};}};async function buildPullPlan(_0x4b49d0){const _0x2158f2=a184_0x271559,_0x5cd39a=loadPageProjectConfig(_0x4b49d0[_0x2158f2(0x1b0)]),_0xff5f9e=await readPageLockFile(_0x5cd39a[_0x2158f2(0x1cf)]),{appLock:_0x528ed8}=ensurePageLockScope(_0xff5f9e??createEmptyPageLock(),_0x4b49d0[_0x2158f2(0x1b0)]),_0xff4858=getPageIdFlag(_0x4b49d0);if(_0xff4858!==undefined){const _0x549eb2=await loadPageDetailForPage(_0x4b49d0,_0xff4858);return{'mode':'single','items':[await inspectPullTarget(_0x5cd39a,_0x528ed8[_0x2158f2(0x1d4)][String(_0x549eb2[_0x2158f2(0x1c5)])],_0x549eb2)]};}const _0x8cbf09=await loadDatasetDetailForPage(_0x4b49d0),_0x20c9cd=_0x8cbf09[_0x2158f2(0x1bd)][_0x2158f2(0x1e3)](_0x420c4b=>!_0x420c4b[_0x2158f2(0x1ba)]);if(_0x20c9cd[_0x2158f2(0x1e1)]===0x0)throw CliErrors[_0x2158f2(0x1bb)](_0x2158f2(0x1ac)+_0x8cbf09[_0x2158f2(0x1d3)]+'\x22\x20has\x20no\x20undeleted\x20related\x20pages.');const _0x322143=await Promise[_0x2158f2(0x1dd)](_0x20c9cd[_0x2158f2(0x1d9)](_0x16c79e=>loadPageDetailForPage(_0x4b49d0,_0x16c79e['id']))),_0x26beb0=selectVersionTagGroup(_0x322143,_0xb14a7f=>_0xb14a7f['versionTag'],_0x4b49d0[_0x2158f2(0x1c1)]('version-tag'));return{'mode':_0x2158f2(0x1db),'datasetCode':_0x8cbf09[_0x2158f2(0x1d3)],'items':await Promise[_0x2158f2(0x1dd)](_0x26beb0[_0x2158f2(0x1c6)][_0x2158f2(0x1d9)](_0x994ab6=>inspectPullTarget(_0x5cd39a,_0x528ed8['pages'][String(_0x994ab6['pageId'])],_0x994ab6)))};}async function inspectPullTarget(_0x106c72,_0x3f7211,_0x350279){const _0x3aa36e=a184_0x271559,_0x22e8ce=resolvePageFilePath(_0x106c72,_0x350279[_0x3aa36e(0x1c5)],_0x350279[_0x3aa36e(0x1ae)]),_0x56579e=await fileExists(_0x22e8ce);if(!_0x56579e){const _0x419941=serializePageSchemaForFile(_0x350279[_0x3aa36e(0x1d3)]);return{'detail':_0x350279,'localPath':_0x22e8ce,'localHash':computePageContentHash(_0x419941),'status':_0x3aa36e(0x1a5)};}const _0x19ae5f=await computePageFileHash(_0x22e8ce);if(!_0x3f7211||_0x19ae5f!==_0x3f7211[_0x3aa36e(0x1c2)])return{'detail':_0x350279,'localPath':_0x22e8ce,'localHash':_0x19ae5f,'status':'conflict','reason':'local\x20unsynced\x20changes'};return{'detail':_0x350279,'localPath':_0x22e8ce,'localHash':_0x19ae5f,'status':_0x3aa36e(0x1a5)};}function buildLockEntry(_0x12ce40,_0x1c9032){const _0x1820c5=a184_0x271559;return{'hash':computePageContentHash(_0x1c9032),'pageId':_0x12ce40[_0x1820c5(0x1c5)],'pageVersion':_0x12ce40[_0x1820c5(0x1bc)],'type':_0x12ce40['type'],'title':_0x12ce40['name'],'datasetIds':_0x12ce40[_0x1820c5(0x1c7)],'versionTag':_0x12ce40[_0x1820c5(0x1b3)]};}function toPreviewItem(_0x2cce0f){const _0x599b78=a184_0x271559;return{'pageId':_0x2cce0f['detail']['pageId'],'type':_0x2cce0f[_0x599b78(0x1ca)][_0x599b78(0x1ae)],'title':_0x2cce0f['detail']['name'],'localPath':_0x2cce0f[_0x599b78(0x1b2)],'status':_0x2cce0f[_0x599b78(0x1b1)],..._0x2cce0f[_0x599b78(0x1e4)]?{'reason':_0x2cce0f['reason']}:{}};}
|