@lovrabet/rabetbase-cli 2.5.10-beta.1 → 2.5.10-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/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.d.ts +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +0 -28
- 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.d.ts +8 -0
- package/lib/core/instant-api-policy/endpoints.js +1 -0
- package/lib/core/kb-management-client.d.ts +3 -9
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +1 -4
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -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 a198_0x1be700=a198_0x25a5;(function(_0x3cd19b,_0x460707){const _0x3ed610=a198_0x25a5,_0x2d290f=_0x3cd19b();while(!![]){try{const _0xb4daf1=-parseInt(_0x3ed610(0x91))/0x1+parseInt(_0x3ed610(0x9b))/0x2*(-parseInt(_0x3ed610(0x74))/0x3)+parseInt(_0x3ed610(0x9d))/0x4*(parseInt(_0x3ed610(0x8f))/0x5)+-parseInt(_0x3ed610(0x71))/0x6+-parseInt(_0x3ed610(0x79))/0x7*(-parseInt(_0x3ed610(0x9e))/0x8)+parseInt(_0x3ed610(0x7e))/0x9+-parseInt(_0x3ed610(0x82))/0xa;if(_0xb4daf1===_0x460707)break;else _0x2d290f['push'](_0x2d290f['shift']());}catch(_0xcb13b3){_0x2d290f['push'](_0x2d290f['shift']());}}}(a198_0x1ee2,0x5ab38));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a198_0x25a5(_0x28eb4d,_0x58ee59){_0x28eb4d=_0x28eb4d-0x6a;const _0x1ee25c=a198_0x1ee2();let _0x25a531=_0x1ee25c[_0x28eb4d];return _0x25a531;}const SUPPORTED_SCENES=[a198_0x1be700(0x6a),'general',a198_0x1be700(0x6b),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a198_0x1be700(0x9f),'general':a198_0x1be700(0x8a),'form':a198_0x1be700(0x8d),'idCard':a198_0x1be700(0x78)},SCENE_FLAG={'name':a198_0x1be700(0x88),'type':a198_0x1be700(0x72),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a198_0x1be700(0x76)},IMAGE_FILE_FLAG={'name':a198_0x1be700(0x9c),'type':'string','description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a198_0x1be700(0x81),'type':'string','description':a198_0x1be700(0x7a)};function normalizeScene(_0x5c5d8f){const _0x9ad28f=a198_0x1be700,_0x430deb=_0x5c5d8f[_0x9ad28f(0x9a)]()[_0x9ad28f(0x8b)]();if(_0x430deb===_0x9ad28f(0x85))return _0x9ad28f(0x97);if(_0x430deb===_0x9ad28f(0x6a)||_0x430deb===_0x9ad28f(0x73)||_0x430deb===_0x9ad28f(0x6b))return _0x430deb;throw CliErrors[_0x9ad28f(0x87)]('Unsupported\x20OCR\x20scene:\x20'+_0x5c5d8f+_0x9ad28f(0x86)+SUPPORTED_SCENES[_0x9ad28f(0x7f)](',\x20'));}function selectedInputs(_0x4a1a15){const _0x386759=a198_0x1be700,_0x1d8094=_0x4a1a15[_0x386759(0x84)](_0x386759(0x9c))[_0x386759(0x9a)](),_0x195419=_0x4a1a15[_0x386759(0x84)](_0x386759(0x81))[_0x386759(0x9a)]();return{'imageFile':_0x1d8094,'imageUrl':_0x195419,'count':[_0x1d8094,_0x195419][_0x386759(0x95)](Boolean)['length']};}function validateInputSelection(_0x5ef523){const _0x3127a5=a198_0x1be700,_0x2b5e50=selectedInputs(_0x5ef523);if(_0x2b5e50[_0x3127a5(0xa1)]!==0x1)throw CliErrors[_0x3127a5(0x87)](_0x3127a5(0x6e));return _0x2b5e50;}function withScene(_0x8d2196,_0x30e5b0,_0x11fdda){const _0xde9bb4=a198_0x1be700;return{..._0x8d2196,'scene':_0x30e5b0,..._0x11fdda?{'sourceFile':{'fileName':_0x11fdda[_0xde9bb4(0x80)],'filePath':_0x11fdda['filePath']}}:{}};}const ocrRecognize={'service':'ocr','command':a198_0x1be700(0x83),'description':a198_0x1be700(0x6f),'risk':a198_0x1be700(0x75),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xcebf56){const _0x2202a7=a198_0x1be700,_0x10c927=normalizeScene(_0xcebf56[_0x2202a7(0x84)]('scene')),_0x1b7563=SCENE_TO_LEGACY_TYPE[_0x10c927],_0x350daa=validateInputSelection(_0xcebf56);if(_0x350daa[_0x2202a7(0xa0)]){const _0x518510=new URLSearchParams({'url':_0x350daa[_0x2202a7(0xa0)],'type':_0x1b7563,'appCode':_0xcebf56[_0x2202a7(0x89)]});return{'method':_0x2202a7(0x92),'url':'/smartapi/ocr/recognize-text?'+_0x518510[_0x2202a7(0x94)](),'description':_0x2202a7(0x96)+_0x10c927+_0x2202a7(0x99)};}const _0x1816ba=requireDevelopmentUploadFile(_0x350daa[_0x2202a7(0x7c)],_0x2202a7(0x9c));return{'method':_0x2202a7(0x7d),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0xcebf56[_0x2202a7(0x89)],'multipart':{'file':_0x1816ba}}},{'method':_0x2202a7(0x7d),'url':_0x2202a7(0x70),'body':{'filePath':_0x2202a7(0x93),'downloadFlag':![]}},{'method':_0x2202a7(0x92),'url':_0x2202a7(0xa2),'query':{'appCode':_0xcebf56[_0x2202a7(0x89)],'url':_0x2202a7(0x8c),'type':_0x1b7563}}]},'description':_0x2202a7(0x90)+_0x10c927+_0x2202a7(0x7b)};},async 'execute'(_0x4d1fa8){const _0x473fa7=a198_0x1be700,_0x216409=normalizeScene(_0x4d1fa8[_0x473fa7(0x84)]('scene')),_0xb644e0=SCENE_TO_LEGACY_TYPE[_0x216409],_0x43b2f9=validateInputSelection(_0x4d1fa8);if(_0x43b2f9[_0x473fa7(0xa0)]){const _0x2de00e=await recognizeDevelopmentOcr(_0x4d1fa8[_0x473fa7(0x89)],{'url':_0x43b2f9[_0x473fa7(0xa0)],'type':_0xb644e0});return{'ok':!![],'data':withScene(_0x2de00e,_0x216409)};}const _0x45d241=requireDevelopmentUploadFile(_0x43b2f9['imageFile'],'image-file'),_0x3d0b0c=await uploadDevelopmentFile(_0x4d1fa8[_0x473fa7(0x89)],_0x45d241[_0x473fa7(0x6d)]);if(!_0x3d0b0c[_0x473fa7(0x98)])throw CliErrors[_0x473fa7(0x6c)](_0x473fa7(0x77));const _0x43f83c=await queryDevelopmentFileUrl(_0x3d0b0c[_0x473fa7(0x98)],{'download':![]});if(!_0x43f83c['fileUrl'])throw CliErrors['apiError'](_0x473fa7(0x8e));const _0x174c0c=await recognizeDevelopmentOcr(_0x4d1fa8['appCode'],{'url':_0x43f83c['fileUrl'],'type':_0xb644e0});return{'ok':!![],'data':withScene(_0x174c0c,_0x216409,_0x3d0b0c)};}};export const ocrDefinitions=[ocrRecognize];function a198_0x1ee2(){const _0xa12ebe=['general','41859MfNvOF','read','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','File\x20upload\x20response\x20missing\x20filePath.','IdCard','14007FHSsEM','Publicly\x20accessible\x20image\x20or\x20file\x20URL','\x20OCR','imageFile','POST','2719170TbATQt','join','fileName','image-url','221750zYayDp','recognize','str','idcard','.\x20Supported\x20scenes:\x20','validation','scene','appCode','General','toLowerCase','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','Table','File\x20URL\x20response\x20missing\x20fileUrl.','221245rLmLEO','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','266339SuRYeH','GET','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','toString','filter','Preview:\x20recognize\x20','idCard','filePath','\x20OCR\x20from\x20URL','trim','12gVtKnw','image-file','28TUIxqy','1288wokEFt','Invoice','imageUrl','count','/smartapi/ocr/recognize-text','invoice','form','apiError','path','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','/smartapi/common/queryFileUrl','1141740fRCtqi','string'];a198_0x1ee2=function(){return _0xa12ebe;};return a198_0x1ee2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x2734df=a199_0xacc1;(function(_0x498f9f,_0x160b5b){const _0x4a7503=a199_0xacc1,_0x55fdff=_0x498f9f();while(!![]){try{const _0x45fe03=parseInt(_0x4a7503(0x11d))/0x1*(-parseInt(_0x4a7503(0x100))/0x2)+parseInt(_0x4a7503(0x11c))/0x3+-parseInt(_0x4a7503(0xe8))/0x4+-parseInt(_0x4a7503(0x10f))/0x5*(parseInt(_0x4a7503(0xe4))/0x6)+parseInt(_0x4a7503(0xf5))/0x7+-parseInt(_0x4a7503(0x110))/0x8*(parseInt(_0x4a7503(0x11e))/0x9)+-parseInt(_0x4a7503(0x108))/0xa*(-parseInt(_0x4a7503(0x116))/0xb);if(_0x45fe03===_0x160b5b)break;else _0x55fdff['push'](_0x55fdff['shift']());}catch(_0x4cd907){_0x55fdff['push'](_0x55fdff['shift']());}}}(a199_0x4c12,0xefc7e));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a199_0x4c12(){const _0x1b1d10=['parent-menu-id','page-pattern','str','createMenu','2sfGjBm','Invalid\x20Custom\x20Page\x20pattern:\x20','length','appCode','\x20and\x20its\x20menu\x20entry.','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','CUSTOM','page-dir','3442720kLDfmc','string','Custom_page_','isInteger','compress','create','POST','85URjLEX','9513544zIlARW','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Custom\x20Page\x20pattern\x20not\x20found:\x20','pageName\x20cannot\x20exceed\x20100\x20characters.','menuId','validation','99SrOpjg','DASHBOARD','Created\x20Custom\x20Page\x20','apiError','utf8','pageName','4271409zLDhJI','1896607JqXBTf','9kkZhkT','now','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','menuPath','page.create','Would\x20create\x20Custom\x20Page\x20','pageId','page','107436qFyzvL','isNaN','.json','num','5873320DhAKcF','/smartapi/webcode/page/create','version','number','trim','stringify','parse','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','files','parentMenuId','BLANK','page-type','9228961pClqUl','page-content','page\x20create\x20does\x20not\x20accept\x20--page-type.','name','keys','some','isArray'];a199_0x4c12=function(){return _0x1b1d10;};return a199_0x4c12();}import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x2734df(0xf3),'ONEPAGE',a199_0x2734df(0x117)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');export const pageCreate={'service':a199_0x2734df(0x125),'command':a199_0x2734df(0x10d),'description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':a199_0x2734df(0x10c),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x2734df(0xf4),'message':a199_0x2734df(0xf7),'hint':a199_0x2734df(0x111)},{'name':a199_0x2734df(0xf6),'message':a199_0x2734df(0x105),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a199_0x2734df(0x109),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a199_0x2734df(0xfc),'type':a199_0x2734df(0xeb),'description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a199_0x2734df(0xfd),'type':a199_0x2734df(0x109),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x2734df(0x107),'type':a199_0x2734df(0x109),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x319a00){await readValidatedPageSource(_0x319a00);},async 'dryRun'(_0x3cfc9e){const _0xa10e90=a199_0x2734df,_0x369b0a=readInput(_0x3cfc9e,await readValidatedPageSource(_0x3cfc9e));return{'method':_0xa10e90(0x10e),'url':_0xa10e90(0xe9),'body':{'appCode':_0x369b0a['appCode'],'pageName':_0x369b0a[_0xa10e90(0x11b)],..._0x369b0a['parentMenuId']!=null?{'parentMenuId':_0x369b0a[_0xa10e90(0xf2)]}:{},'createMenu':_0x369b0a[_0xa10e90(0xff)],'codeContent':_0x369b0a[_0xa10e90(0xf1)]},'description':_0xa10e90(0x123)+JSON[_0xa10e90(0xed)](_0x369b0a[_0xa10e90(0x11b)])+_0xa10e90(0x104)};},async 'execute'(_0x299e05){const _0x488267=a199_0x2734df,_0x57f427=readInput(_0x299e05,await readValidatedPageSource(_0x299e05)),_0x1c54e7=await createCustomPage(_0x57f427);if(!Number[_0x488267(0x10b)](_0x1c54e7[_0x488267(0x124)])||_0x1c54e7[_0x488267(0x124)]<=0x0)throw CliErrors[_0x488267(0x119)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x5a9635=buildCustomPageDevelopmentUrl(_0x57f427['appCode'],_0x1c54e7[_0x488267(0x121)]),_0x425b4a=buildCustomPageEditUrl(_0x57f427[_0x488267(0x103)],_0x1c54e7[_0x488267(0x124)]);return{'ok':!![],'data':{'operation':_0x488267(0x122),'pageType':_0x488267(0x106),'pagePattern':readPagePattern(_0x299e05),'selector':{'appCode':_0x57f427['appCode'],'pageName':_0x57f427['pageName']},'before':null,'after':{'pageId':_0x1c54e7[_0x488267(0x124)],'pageName':_0x1c54e7[_0x488267(0x11b)],'appCode':_0x1c54e7[_0x488267(0x103)],'version':_0x1c54e7[_0x488267(0xea)],'menuId':_0x1c54e7[_0x488267(0x114)],'menuPath':_0x1c54e7[_0x488267(0x121)],'files':_0x1c54e7[_0x488267(0xf1)]??Object[_0x488267(0xf9)](_0x57f427['files'])},'dryRun':![],'request':_0x57f427,..._0x5a9635?{'pageUrl':_0x5a9635}:{},..._0x425b4a?{'editPageUrl':_0x425b4a}:{},'warnings':_0x5a9635?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x488267(0x118)+_0x1c54e7['pageId']+'.'};}};function readPagePattern(_0x5b9eab){const _0x80cd5=a199_0x2734df,_0x6212ea=_0x5b9eab[_0x80cd5(0xfe)](_0x80cd5(0xfd))[_0x80cd5(0xec)](),_0x3d1c00=_0x5b9eab[_0x80cd5(0xfe)]('page-dir')[_0x80cd5(0xec)]();if(_0x6212ea&&_0x3d1c00)throw CliErrors['validation']('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x3d1c00)return null;if(!_0x6212ea)throw CliErrors[_0x80cd5(0x115)](_0x80cd5(0xf0));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x6212ea))throw CliErrors[_0x80cd5(0x115)](_0x80cd5(0x120));return _0x6212ea;}function a199_0xacc1(_0x85438d,_0x490c8b){_0x85438d=_0x85438d-0xe4;const _0x4c123e=a199_0x4c12();let _0xacc169=_0x4c123e[_0x85438d];return _0xacc169;}async function readPageSource(_0x4d2858){const _0xbab1dc=a199_0x2734df,_0x4f258f=_0x4d2858[_0xbab1dc(0xfe)](_0xbab1dc(0x107))[_0xbab1dc(0xec)](),_0x2981a8=readPagePattern(_0x4d2858);if(_0x2981a8===null){const _0x393cf4=await readCustomPageDirectory(_0x4f258f);if(Object[_0xbab1dc(0xf9)](_0x393cf4)[_0xbab1dc(0x102)]===0x0)throw CliErrors[_0xbab1dc(0x115)](_0xbab1dc(0xef));return _0x393cf4;}let _0x55d867;try{_0x55d867=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x2981a8['toLowerCase']()+_0xbab1dc(0xe6)),_0xbab1dc(0x11a));}catch{throw CliErrors[_0xbab1dc(0x115)](_0xbab1dc(0x112)+_0x2981a8+'.');}let _0x55f828;try{_0x55f828=JSON[_0xbab1dc(0xee)](_0x55d867);}catch{throw CliErrors['validation'](_0xbab1dc(0x101)+_0x2981a8+'.');}if(!_0x55f828||typeof _0x55f828!=='object'||Array[_0xbab1dc(0xfb)](_0x55f828)||Object['values'](_0x55f828)[_0xbab1dc(0xfa)](_0x172a1c=>typeof _0x172a1c!==_0xbab1dc(0x109)))throw CliErrors[_0xbab1dc(0x115)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x2981a8+'.');return _0x55f828;}async function readValidatedPageSource(_0x6c8025){const _0x462113=await readPageSource(_0x6c8025);return await validateCustomPageContent(_0x462113),_0x462113;}function readInput(_0x1e5750,_0x4fd9fb){const _0x579bfb=a199_0x2734df,_0x5bd7cb=_0x1e5750[_0x579bfb(0xfe)](_0x579bfb(0xf8))[_0x579bfb(0xec)]()||_0x579bfb(0x10a)+Date[_0x579bfb(0x11f)]();if(_0x5bd7cb[_0x579bfb(0x102)]>0x64)throw CliErrors['validation'](_0x579bfb(0x113));const _0x5a8c27=_0x1e5750[_0x579bfb(0xe7)](_0x579bfb(0xfc),NaN),_0x1c75db=!Number[_0x579bfb(0xe5)](_0x5a8c27);if(_0x1c75db&&(!Number[_0x579bfb(0x10b)](_0x5a8c27)||_0x5a8c27<=0x0))throw CliErrors[_0x579bfb(0x115)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x1e5750['appCode'],'pageName':_0x5bd7cb,..._0x1c75db?{'parentMenuId':_0x5a8c27}:{},'createMenu':!![],'files':_0x4fd9fb};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a200_0x3b57(_0x51cf5f,_0x353187){_0x51cf5f=_0x51cf5f-0xed;const _0xc779ad=a200_0xc779();let _0x3b5706=_0xc779ad[_0x51cf5f];return _0x3b5706;}const a200_0x38b4dd=a200_0x3b57;(function(_0x201b6f,_0xc11895){const _0x3774c7=a200_0x3b57,_0x25cf8e=_0x201b6f();while(!![]){try{const _0x5c9be4=-parseInt(_0x3774c7(0x101))/0x1+parseInt(_0x3774c7(0x100))/0x2+parseInt(_0x3774c7(0xfd))/0x3*(-parseInt(_0x3774c7(0x108))/0x4)+-parseInt(_0x3774c7(0xf7))/0x5+-parseInt(_0x3774c7(0xff))/0x6*(parseInt(_0x3774c7(0x107))/0x7)+parseInt(_0x3774c7(0x102))/0x8*(parseInt(_0x3774c7(0x106))/0x9)+parseInt(_0x3774c7(0xf5))/0xa;if(_0x5c9be4===_0xc11895)break;else _0x25cf8e['push'](_0x25cf8e['shift']());}catch(_0x52dcca){_0x25cf8e['push'](_0x25cf8e['shift']());}}}(a200_0xc779,0x5e797));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x38b4dd(0xf8),'command':a200_0x38b4dd(0x10a),'description':a200_0x38b4dd(0xef),'risk':a200_0x38b4dd(0x109),'defaultOutputFormat':a200_0x38b4dd(0xee),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x38b4dd(0xf0),'required':!![],'description':a200_0x38b4dd(0xed)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4cdf25){readCustomPageId(_0x4cdf25);},async 'execute'(_0x411d68){const _0x5b559d=a200_0x38b4dd,_0x5cb06a=readCustomPageId(_0x411d68),_0x4aa540=await getCustomPageSource(_0x5cb06a),{bundle:_0x25f842,createTime:_0x294b78,updateTime:_0x4721c9,..._0xe1ffb7}=_0x4aa540,_0x16d1de=_0x4aa540['id']??_0x5cb06a,_0x3687e9=_0x4aa540[_0x5b559d(0xfc)]?.[_0x5b559d(0x105)]()||_0x411d68['str']('appcode')[_0x5b559d(0x105)](),_0x4e5dfc=buildCustomPageRuntimeUrl(_0x3687e9,_0x4aa540[_0x5b559d(0xf1)]),_0x1504c8=buildCustomPageEditUrl(_0x3687e9,_0x16d1de),_0x8e3e3d=await resolveCustomPageDevelopmentUrl(_0x3687e9,_0x16d1de,_0x411d68[_0x5b559d(0x10b)]);return{'ok':!![],'data':{..._0xe1ffb7,..._0x4e5dfc?{'runtimePageUrl':_0x4e5dfc}:{},..._0x8e3e3d?{'pageUrl':_0x8e3e3d}:{},..._0x1504c8?{'editPageUrl':_0x1504c8}:{},..._0x294b78==null?{}:{'createTime':formatTime(_0x294b78)},..._0x4721c9==null?{}:{'updateTime':formatTime(_0x4721c9)}},'message':_0x5b559d(0xf6)+_0x5cb06a+'.'};}};function formatTime(_0x506b76){const _0x259066=a200_0x38b4dd,_0x282a02=new Date(_0x506b76);if(Number[_0x259066(0xf4)](_0x282a02[_0x259066(0xfa)]()))return String(_0x506b76);const _0x3ef685=[_0x282a02[_0x259066(0xfb)](),String(_0x282a02[_0x259066(0xf2)]()+0x1)[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0xf3)]())[_0x259066(0xfe)](0x2,'0')][_0x259066(0x103)]('-'),_0x98d58c=[String(_0x282a02['getHours']())[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0xf9)]())[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0x104)]())[_0x259066(0xfe)](0x2,'0')][_0x259066(0x103)](':');return _0x3ef685+'\x20'+_0x98d58c;}function a200_0xc779(){const _0x5292dc=['page','getMinutes','getTime','getFullYear','appCode','223569Bbzqqs','padStart','84amYzvB','838050kRZIhs','401835jIUCFg','56HNslxR','join','getSeconds','trim','149706WSzBPT','116893nFppPQ','8sXJQTP','read','custom-detail','cookie','Custom\x20Page\x20ID','compress','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','number','pageCode','getMonth','getDate','isNaN','11992310sRnQJA','Retrieved\x20Custom\x20Page\x20','2815300OeIjlW'];a200_0xc779=function(){return _0x5292dc;};return a200_0xc779();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x5f0659=a201_0x1bf7;function a201_0x1bf7(_0x297160,_0x41f4b9){_0x297160=_0x297160-0xc7;const _0x5dee3f=a201_0x5dee();let _0x1bf774=_0x5dee3f[_0x297160];return _0x1bf774;}(function(_0x250c5a,_0x436961){const _0x1446d6=a201_0x1bf7,_0x5e4156=_0x250c5a();while(!![]){try{const _0x267940=-parseInt(_0x1446d6(0xc9))/0x1*(parseInt(_0x1446d6(0xcd))/0x2)+parseInt(_0x1446d6(0xce))/0x3+parseInt(_0x1446d6(0xcb))/0x4*(parseInt(_0x1446d6(0xd7))/0x5)+-parseInt(_0x1446d6(0xd6))/0x6+parseInt(_0x1446d6(0xca))/0x7*(-parseInt(_0x1446d6(0xda))/0x8)+-parseInt(_0x1446d6(0xc7))/0x9+parseInt(_0x1446d6(0xd5))/0xa;if(_0x267940===_0x436961)break;else _0x5e4156['push'](_0x5e4156['shift']());}catch(_0x1a9579){_0x5e4156['push'](_0x5e4156['shift']());}}}(a201_0x5dee,0x45442));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x5dee(){const _0x3323f5=['appCode','cookie','custom-list','page','pageId','menus','8744580GddQBm','963234rloBib','25kgRaSE','react','length','8SnQSXh','flatMap','compress','3471696vXGuOk','path','603idBaTk','1561357oAJaAO','217148SLQdtp','label','1664CZnfVi','1226553BNybbp'];a201_0x5dee=function(){return _0x3323f5;};return a201_0x5dee();}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x5f0659(0xd2),'command':a201_0x5f0659(0xd1),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':'read','defaultOutputFormat':a201_0x5f0659(0xdc),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4815c7){const _0x5abf6b=a201_0x5f0659,_0x3e107b=(await fetchMenuSnapshot(_0x4815c7[_0x5abf6b(0xcf)],_0x4815c7[_0x5abf6b(0xd0)]))[_0x5abf6b(0xd4)][_0x5abf6b(0xdb)](_0x273384=>{const _0x268f05=_0x5abf6b;if(_0x273384['type']!==_0x268f05(0xd8)||_0x273384['pageId']==null)return[];const _0x462dc8=buildCustomPageDevelopmentUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xc8)]),_0x3d85bb=buildCustomPageRuntimeUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xc8)]),_0x36c4d1=buildCustomPageEditUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xd3)]);return[{'pageId':_0x273384[_0x268f05(0xd3)],'label':_0x273384[_0x268f05(0xcc)],'path':_0x273384['path'],..._0x462dc8?{'pageUrl':_0x462dc8}:{},..._0x3d85bb?{'runtimePageUrl':_0x3d85bb}:{},..._0x36c4d1?{'editPageUrl':_0x36c4d1}:{}}];});return{'ok':!![],'data':{'pages':_0x3e107b},'message':_0x3e107b['length']===0x0?'No\x20Custom\x20Pages\x20found.':'Found\x20'+_0x3e107b[_0x5abf6b(0xd9)]+'\x20Custom\x20Page(s).'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a202_0x3aa4(_0x478d80,_0x3f91e2){_0x478d80=_0x478d80-0xbc;const _0x44899e=a202_0x4489();let _0x3aa4df=_0x44899e[_0x478d80];return _0x3aa4df;}const a202_0x3a2510=a202_0x3aa4;(function(_0x35eb95,_0x1da13e){const _0x1851b8=a202_0x3aa4,_0x59c49e=_0x35eb95();while(!![]){try{const _0x4850aa=-parseInt(_0x1851b8(0xdd))/0x1*(-parseInt(_0x1851b8(0xda))/0x2)+parseInt(_0x1851b8(0xcd))/0x3*(-parseInt(_0x1851b8(0xc0))/0x4)+-parseInt(_0x1851b8(0xc7))/0x5*(-parseInt(_0x1851b8(0xe0))/0x6)+parseInt(_0x1851b8(0xd3))/0x7+parseInt(_0x1851b8(0xc4))/0x8*(parseInt(_0x1851b8(0xbf))/0x9)+-parseInt(_0x1851b8(0xc2))/0xa*(parseInt(_0x1851b8(0xd0))/0xb)+parseInt(_0x1851b8(0xc1))/0xc*(parseInt(_0x1851b8(0xcf))/0xd);if(_0x4850aa===_0x1da13e)break;else _0x59c49e['push'](_0x59c49e['shift']());}catch(_0x1ddc4b){_0x59c49e['push'](_0x59c49e['shift']());}}}(a202_0x4489,0x6841c));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0x4489(){const _0x53a84b=['page','pageId','page.custom-publish','push','33498jhrzqL','16vxTxDM','84852WAIcno','10pDFsNk','cookie','736NTwtCH','apiError','Custom\x20Page\x20ID','5QrSjCT','status','appCode','runtimePageUrl','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','POST','379632KHyvhR','number','481AXPKdZ','8553358poTVhj','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','trim','5881631CHrHlY','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','Would\x20publish\x20Custom\x20Page\x20','warnings','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','compress','FORMAL','6DuPrMA','custom-publish','str','40376dYyzys','/smartapi/webcode/file/publish','Published\x20Custom\x20Page\x20','872268HdCPyX','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','string','remark','isInteger'];a202_0x4489=function(){return _0x53a84b;};return a202_0x4489();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x3a2510(0xe5),'command':a202_0x3a2510(0xdb),'description':a202_0x3a2510(0xd4),'risk':'write','defaultOutputFormat':a202_0x3a2510(0xd8),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x3a2510(0xce),'required':!![],'description':a202_0x3a2510(0xc6)},{'name':a202_0x3a2510(0xe3),'type':a202_0x3a2510(0xe2),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x23e450){readCustomPageId(_0x23e450);},async 'dryRun'(_0x59b4cf){const _0x221cbb=a202_0x3a2510,_0xb68a3f=readInput(_0x59b4cf);return{'method':_0x221cbb(0xcc),'url':_0x221cbb(0xde),'body':{'id':_0xb68a3f['pageId'],..._0xb68a3f[_0x221cbb(0xe3)]?{'remark':_0xb68a3f[_0x221cbb(0xe3)]}:{}},'description':_0x221cbb(0xd5)+_0xb68a3f[_0x221cbb(0xbc)]+'.'};},async 'execute'(_0x475e99){const _0x19747a=a202_0x3a2510,_0x4f26ab=readInput(_0x475e99);await getCustomPageSource(_0x4f26ab[_0x19747a(0xbc)]);const _0x2b43aa=await publishCustomPage(_0x4f26ab);if(!Number[_0x19747a(0xe4)](_0x2b43aa)||_0x2b43aa!==_0x4f26ab[_0x19747a(0xbc)])throw CliErrors[_0x19747a(0xc5)](_0x19747a(0xd1));const _0x8cbe1a=await getCustomPageSource(_0x4f26ab[_0x19747a(0xbc)]);if(_0x8cbe1a[_0x19747a(0xc8)]!==_0x19747a(0xd9))throw CliErrors[_0x19747a(0xc5)](_0x19747a(0xd7)+(_0x8cbe1a[_0x19747a(0xc8)]??'unknown')+'.');const _0x24aa2a=_0x8cbe1a[_0x19747a(0xc9)]?.[_0x19747a(0xd2)](),_0x199df8=buildCustomPageEditUrl(_0x24aa2a,_0x4f26ab['pageId']),_0x15f2ea=await resolveCustomPageDevelopmentUrl(_0x24aa2a,_0x4f26ab[_0x19747a(0xbc)],_0x475e99[_0x19747a(0xc3)]),_0x1d0d90=buildMutationData(_0x4f26ab,!![],_0x15f2ea,_0x199df8);_0x24aa2a&&!_0x15f2ea&&_0x1d0d90[_0x19747a(0xd6)][_0x19747a(0xbe)](_0x19747a(0xcb));const _0x14bf99=buildCustomPageRuntimeUrl(_0x8cbe1a['appCode'],_0x8cbe1a['pageCode']);return _0x14bf99?_0x1d0d90[_0x19747a(0xca)]=_0x14bf99:_0x1d0d90['warnings'][_0x19747a(0xbe)](_0x19747a(0xe1)),{'ok':!![],'data':_0x1d0d90,'message':_0x19747a(0xdf)+_0x4f26ab[_0x19747a(0xbc)]+'.'};}};function readInput(_0x4e8c40){const _0x2c7eb8=a202_0x3a2510,_0x25cf25=readCustomPageId(_0x4e8c40),_0x264a8c=_0x4e8c40[_0x2c7eb8(0xdc)](_0x2c7eb8(0xe3))['trim']();return{'pageId':_0x25cf25,..._0x264a8c?{'remark':_0x264a8c}:{}};}function buildMutationData(_0x22da6b,_0x5ea7e2=![],_0x53bb7d,_0x5aca82){const _0x3b4a37=a202_0x3a2510;return{'operation':_0x3b4a37(0xbd),'selector':{'pageId':_0x22da6b[_0x3b4a37(0xbc)]},'before':null,'after':{'pageId':_0x22da6b[_0x3b4a37(0xbc)],'status':_0x3b4a37(0xd9)},'dryRun':!_0x5ea7e2,'request':_0x22da6b,..._0x53bb7d?{'pageUrl':_0x53bb7d}:{},..._0x5aca82?{'editPageUrl':_0x5aca82}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a203_0x41ae30=a203_0x4c28;(function(_0x30fcc9,_0x1aba05){const _0x194879=a203_0x4c28,_0x4e34f1=_0x30fcc9();while(!![]){try{const _0x5c7310=-parseInt(_0x194879(0x140))/0x1+-parseInt(_0x194879(0x14d))/0x2+parseInt(_0x194879(0x146))/0x3+parseInt(_0x194879(0x13a))/0x4*(-parseInt(_0x194879(0x141))/0x5)+-parseInt(_0x194879(0x13b))/0x6+-parseInt(_0x194879(0x13d))/0x7+parseInt(_0x194879(0x148))/0x8;if(_0x5c7310===_0x1aba05)break;else _0x4e34f1['push'](_0x4e34f1['shift']());}catch(_0x322a83){_0x4e34f1['push'](_0x4e34f1['shift']());}}}(a203_0xf4fe,0x84f9f));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_0x41ae30(0x149)};function trimOptional(_0x49aeeb){const _0x9e1fbd=a203_0x41ae30;return _0x49aeeb?.[_0x9e1fbd(0x14e)]()||undefined;}function a203_0xf4fe(){const _0xac252d=['pageId','validation','/pages/','4XOhRcT','1708428SebxHm','type','708624ObnUaB','--id\x20must\x20be\x20a\x20positive\x20integer.','react','527231tDjvoz','1998620qDvjXy','find','menus','/ide/','path','3130905fEkJPI','num','9481480GPPOFr','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','map','Invalid\x20Custom\x20Page\x20content:\x20','isInteger','742448lXACLp','trim','file'];a203_0xf4fe=function(){return _0xac252d;};return a203_0xf4fe();}export function buildCustomPageRuntimeUrl(_0x53d8a2,_0x49f777){const _0x54cc60=trimOptional(_0x53d8a2),_0x2d713c=trimOptional(_0x49f777);if(!_0x54cc60||!_0x2d713c)return undefined;return getPublishedAppDomain(_0x54cc60)+'/'+encodeURIComponent(_0x2d713c);}export function buildCustomPageDevelopmentUrl(_0x1dd2da,_0x20718d){const _0x46068b=a203_0x41ae30,_0xe82854=trimOptional(_0x1dd2da),_0x174551=trimOptional(_0x20718d);if(!_0xe82854||!_0x174551)return undefined;return getAppBaseUrl(_0xe82854)+_0x46068b(0x152)+encodeURIComponent(_0x174551);}function a203_0x4c28(_0x384164,_0x4820cb){_0x384164=_0x384164-0x13a;const _0xf4fe1c=a203_0xf4fe();let _0x4c2878=_0xf4fe1c[_0x384164];return _0x4c2878;}export async function resolveCustomPageDevelopmentUrl(_0x5252ce,_0x55f237,_0x6ae2ed){const _0x45ca07=a203_0x41ae30,_0x46491d=trimOptional(_0x5252ce);if(!_0x46491d)return undefined;try{const _0x48033d=(await fetchMenuSnapshot(_0x46491d,_0x6ae2ed))[_0x45ca07(0x143)][_0x45ca07(0x142)](_0x24eae7=>_0x24eae7[_0x45ca07(0x13c)]===_0x45ca07(0x13f)&&_0x24eae7[_0x45ca07(0x150)]===_0x55f237);return buildCustomPageDevelopmentUrl(_0x46491d,_0x48033d?.[_0x45ca07(0x145)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x5ec083,_0x18d22c){const _0x5ce0fc=a203_0x41ae30,_0x1048b9=trimOptional(_0x5ec083);if(!_0x1048b9)return;const _0x437bc6=trimOptional(String(_0x18d22c??''));if(!_0x437bc6)return;return getAppBaseUrl(_0x1048b9)+_0x5ce0fc(0x144)+encodeURIComponent(_0x437bc6);}export async function validateCustomPageContent(_0x1648da){const _0x2c6f7c=a203_0x41ae30,_0x244362=await validateCustomPageSourceFiles(_0x1648da);if(_0x244362['length']>0x0)throw CliErrors[_0x2c6f7c(0x151)](_0x2c6f7c(0x14b)+_0x244362[_0x2c6f7c(0x14a)](_0x1e417d=>_0x1e417d[_0x2c6f7c(0x14f)]+':\x20'+_0x1e417d['message'])['join'](';\x20'));}export function readCustomPageId(_0x571738){const _0x1381f4=a203_0x41ae30,_0x33f5e4=_0x571738[_0x1381f4(0x147)]('id');if(!Number[_0x1381f4(0x14c)](_0x33f5e4)||_0x33f5e4<=0x0)throw CliErrors['validation'](_0x1381f4(0x13e));return _0x33f5e4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a204_0x2bca10=a204_0x11c0;function a204_0x11c0(_0x451913,_0x586196){_0x451913=_0x451913-0xe9;const _0x309477=a204_0x3094();let _0x11c0c5=_0x309477[_0x451913];return _0x11c0c5;}function a204_0x3094(){const _0x324305=['all','.jsx','toLowerCase','trim','page\x20files','9086392RSJWAn','40CsCHkH','8qoyqYA','14416038EOoYiy','map','57038750neWDtF','message','some','typescript','entries','endsWith','1085070yCEkLK','2178486oMebkM','188920ZdUOIt','babel','213751XMeSAR','8ibJtNu','.tsx','filter'];a204_0x3094=function(){return _0x324305;};return a204_0x3094();}(function(_0x180e76,_0x1fcb4d){const _0x20040d=a204_0x11c0,_0x1bf3fb=_0x180e76();while(!![]){try{const _0x4900b3=parseInt(_0x20040d(0xeb))/0x1*(-parseInt(_0x20040d(0xf6))/0x2)+-parseInt(_0x20040d(0xff))/0x3+-parseInt(_0x20040d(0xe9))/0x4*(parseInt(_0x20040d(0xf5))/0x5)+-parseInt(_0x20040d(0x100))/0x6+-parseInt(_0x20040d(0xf4))/0x7*(parseInt(_0x20040d(0xec))/0x8)+-parseInt(_0x20040d(0xf7))/0x9+parseInt(_0x20040d(0xf9))/0xa;if(_0x4900b3===_0x1fcb4d)break;else _0x1bf3fb['push'](_0x1bf3fb['shift']());}catch(_0x4439fa){_0x1bf3fb['push'](_0x1bf3fb['shift']());}}}(a204_0x3094,0xcea56));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a204_0x2bca10(0xea),'.ts':a204_0x2bca10(0xfc),'.tsx':a204_0x2bca10(0xfc)},CUSTOM_PAGE_EXTENSIONS=[a204_0x2bca10(0xf0),a204_0x2bca10(0xed)];export async function validateCustomPageSourceFiles(_0x5d3801){const _0x447629=a204_0x2bca10,_0x5b153b=Object['entries'](_0x5d3801)[_0x447629(0xee)](([_0x3ed1b3])=>getParser(_0x3ed1b3));if(!_0x5b153b[_0x447629(0xfb)](([_0x54eb8a])=>isReactSourceFile(_0x54eb8a)))return[{'file':_0x447629(0xf3),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x598f1c=await Promise[_0x447629(0xef)](_0x5b153b[_0x447629(0xf8)](async([_0x1e94c0,_0x13cf1e])=>{const _0xfbb00b=_0x447629;try{return await format(_0x13cf1e,{'parser':getParser(_0x1e94c0)}),undefined;}catch(_0x431342){return{'file':_0x1e94c0,'message':_0x431342 instanceof Error?_0x431342[_0xfbb00b(0xfa)]:String(_0x431342)};}}));return _0x598f1c['filter'](_0x43ba4a=>_0x43ba4a!==undefined);}function getParser(_0x3f902c){const _0x50387c=a204_0x2bca10,_0xdb83a9=_0x3f902c[_0x50387c(0xf2)]()['toLowerCase']();return Object[_0x50387c(0xfd)](SOURCE_PARSERS)['find'](([_0x2c0517])=>_0xdb83a9[_0x50387c(0xfe)](_0x2c0517))?.[0x1];}function isReactSourceFile(_0x1e7269){const _0x1206ba=a204_0x2bca10,_0x3df5c9=_0x1e7269['trim']()[_0x1206ba(0xf1)]();return CUSTOM_PAGE_EXTENSIONS[_0x1206ba(0xfb)](_0x1d1f0f=>_0x3df5c9[_0x1206ba(0xfe)](_0x1d1f0f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0xa85d97=a205_0x59c9;function a205_0x59c9(_0x4c176c,_0x104503){_0x4c176c=_0x4c176c-0x147;const _0x26c2b3=a205_0x26c2();let _0x59c9eb=_0x26c2b3[_0x4c176c];return _0x59c9eb;}(function(_0x414eeb,_0x26a21f){const _0x18d44d=a205_0x59c9,_0x5ba916=_0x414eeb();while(!![]){try{const _0x5d43f3=parseInt(_0x18d44d(0x14f))/0x1*(parseInt(_0x18d44d(0x163))/0x2)+-parseInt(_0x18d44d(0x14c))/0x3*(parseInt(_0x18d44d(0x166))/0x4)+-parseInt(_0x18d44d(0x153))/0x5+parseInt(_0x18d44d(0x157))/0x6+parseInt(_0x18d44d(0x151))/0x7*(-parseInt(_0x18d44d(0x14d))/0x8)+-parseInt(_0x18d44d(0x154))/0x9+parseInt(_0x18d44d(0x15f))/0xa;if(_0x5d43f3===_0x26a21f)break;else _0x5ba916['push'](_0x5ba916['shift']());}catch(_0x29517d){_0x5ba916['push'](_0x5ba916['shift']());}}}(a205_0x26c2,0x62618));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x26c2(){const _0x34af15=['compress','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','validation','apiError','page-dir','12159030zwPlFT','page.custom-update','Directory\x20containing\x20all\x20complete\x20page\x20files','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','82PxxDYp','page-content','Custom\x20Page\x20ID','81288fVderf','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','newVersion','pageId','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page','pageContent','appCode','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','6xxuuTd','24HdPgut','number','2833CWVzAs','write','49315kCZKbO','Updated\x20Custom\x20Page\x20','1550880gHNpaF','6431688olXZgv','cookie','str','944994IYpkOA','string','custom-update'];a205_0x26c2=function(){return _0x34af15;};return a205_0x26c2();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0xa85d97(0x148),'command':a205_0xa85d97(0x159),'description':a205_0xa85d97(0x14b),'risk':a205_0xa85d97(0x150),'defaultOutputFormat':a205_0xa85d97(0x15a),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0xa85d97(0x164),'message':a205_0xa85d97(0x15b),'hint':a205_0xa85d97(0x147)}],'flags':[{'name':'id','type':a205_0xa85d97(0x14e),'required':!![],'description':a205_0xa85d97(0x165)},{'name':a205_0xa85d97(0x15e),'type':a205_0xa85d97(0x158),'required':!![],'description':a205_0xa85d97(0x161)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf2b76a){readCustomPageId(_0xf2b76a),await readValidatedPageContent(_0xf2b76a);},async 'dryRun'(_0x143e74){const _0xc2dc14=a205_0xa85d97,_0x5e92b0=await readInput(_0x143e74);return{'method':'POST','url':'/smartapi/webcode/page/update/content','body':{'id':_0x5e92b0[_0xc2dc14(0x169)],'codeContent':_0x5e92b0[_0xc2dc14(0x149)]},'description':_0xc2dc14(0x167)+_0x5e92b0[_0xc2dc14(0x169)]+'.'};},async 'execute'(_0x334773){const _0x18be60=a205_0xa85d97,_0x18a218=await readInput(_0x334773),_0x1eb32a=await updateCustomPageContent({'pageId':_0x18a218['pageId'],'pageContent':_0x18a218[_0x18be60(0x149)]});if(!Number['isInteger'](_0x1eb32a[_0x18be60(0x168)])||_0x1eb32a[_0x18be60(0x168)]<=0x0)throw CliErrors[_0x18be60(0x15d)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x231001=buildCustomPageEditUrl(_0x18a218[_0x18be60(0x14a)],_0x18a218[_0x18be60(0x169)]),_0x5a56d5=await resolveCustomPageDevelopmentUrl(_0x18a218[_0x18be60(0x14a)],_0x18a218[_0x18be60(0x169)],_0x334773[_0x18be60(0x155)]);return{'ok':!![],'data':{'operation':_0x18be60(0x160),'selector':{'appCode':_0x18a218[_0x18be60(0x14a)],'pageId':_0x18a218['pageId']},'before':null,'after':{'pageId':_0x1eb32a[_0x18be60(0x169)],'version':_0x1eb32a[_0x18be60(0x168)],'pageContent':_0x18a218[_0x18be60(0x149)]},'dryRun':![],'request':_0x18a218,..._0x5a56d5?{'pageUrl':_0x5a56d5}:{},..._0x231001?{'editPageUrl':_0x231001}:{},'warnings':_0x5a56d5?[]:['Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x18be60(0x152)+_0x18a218[_0x18be60(0x169)]+'.'};}};async function readInput(_0x244fa0){const _0x25eb3f=a205_0xa85d97,_0x392566=readCustomPageId(_0x244fa0),_0x440a0b=_0x244fa0[_0x25eb3f(0x156)]('appcode')['trim']()||(await getCustomPageSource(_0x392566))[_0x25eb3f(0x14a)]?.['trim']();if(!_0x440a0b)throw CliErrors[_0x25eb3f(0x15c)](_0x25eb3f(0x162)+_0x392566+'.');return{'appCode':_0x440a0b,'pageId':_0x392566,'pageContent':await readValidatedPageContent(_0x244fa0)};}async function readValidatedPageContent(_0x2b0661){const _0x43ed32=a205_0xa85d97,_0x2256b2=await readCustomPageDirectory(_0x2b0661[_0x43ed32(0x156)](_0x43ed32(0x15e)));return await validateCustomPageContent(_0x2256b2),_0x2256b2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x57d1ca=a206_0x4d97;(function(_0x3713cb,_0x324798){const _0xec9e71=a206_0x4d97,_0x4b17bf=_0x3713cb();while(!![]){try{const _0x554aad=-parseInt(_0xec9e71(0xdb))/0x1*(-parseInt(_0xec9e71(0xc5))/0x2)+-parseInt(_0xec9e71(0xc8))/0x3*(-parseInt(_0xec9e71(0xd2))/0x4)+parseInt(_0xec9e71(0xd8))/0x5+-parseInt(_0xec9e71(0xdc))/0x6+parseInt(_0xec9e71(0xcb))/0x7+-parseInt(_0xec9e71(0xca))/0x8+-parseInt(_0xec9e71(0xcc))/0x9;if(_0x554aad===_0x324798)break;else _0x4b17bf['push'](_0x4b17bf['shift']());}catch(_0xc8264b){_0x4b17bf['push'](_0x4b17bf['shift']());}}}(a206_0x2597,0xb3080));function a206_0x2597(){const _0x4fb7ee=['4324642ywDeYA','4079394ZdeYQX','nextAction','status','page','GET','data-list-status','320XtIOWK','manualResolutionRequired','read','length','/smartapi/lovrabet/dataset/','alias','4740610GCmxgf','/standard-page-status?appCode=','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','1265333wAHExM','5422968evBJpv','source','relatedPages','query-data-list-status','related-pages-fallback','2fAuOOR','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','12681YrOZxc','code','8632120gatOcF'];a206_0x2597=function(){return _0x4fb7ee;};return a206_0x2597();}function a206_0x4d97(_0x1b70bb,_0xde1720){_0x1b70bb=_0x1b70bb-0xc4;const _0x259746=a206_0x2597();let _0x4d973c=_0x259746[_0x1b70bb];return _0x4d973c;}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_0x57d1ca(0xcf),'command':a206_0x57d1ca(0xd1),'description':a206_0x57d1ca(0xda),'risk':a206_0x57d1ca(0xd4),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x57d1ca(0xd7),'type':'string','description':a206_0x57d1ca(0xc6)}],async 'validate'(_0x59c9c6){validateDatasetSelector(_0x59c9c6);},async 'dryRun'(_0x19db95){const _0x3f549b=a206_0x57d1ca,_0x159fd1=await loadDatasetDetailForPage(_0x19db95);return{'method':_0x3f549b(0xd0),'url':_0x3f549b(0xd6)+_0x159fd1[_0x3f549b(0xc9)]+_0x3f549b(0xd9)+encodeURIComponent(_0x19db95['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x159fd1['id'],'code':_0x159fd1[_0x3f549b(0xc9)],'name':_0x159fd1[_0x3f549b(0xc7)]},'action':_0x3f549b(0xdf)})};},async 'execute'(_0x5a7226){const _0x500f8d=a206_0x57d1ca,_0x426d7a=await loadDatasetDetailForPage(_0x5a7226),_0xa35c1=await loadDataListPageStatusForGenerate(_0x5a7226,_0x426d7a[_0x500f8d(0xc9)]),_0x2191fd=getUndeletedRelatedPages(_0x426d7a),_0x1df420=assessDataListPageState(_0x426d7a[_0x500f8d(0xc9)],_0xa35c1,{'fallbackUndeletedPages':_0x2191fd});return{'ok':!![],'data':{'datasetCode':_0x426d7a['code'],'precheckSource':_0xa35c1?.[_0x500f8d(0xdd)]??_0x500f8d(0xc4),'status':_0x1df420[_0x500f8d(0xce)],'manualResolutionRequired':_0x1df420[_0x500f8d(0xd3)],'nextAction':_0x1df420[_0x500f8d(0xcd)],'dataListPageStatus':_0xa35c1,'relatedPages':{'total':_0x426d7a[_0x500f8d(0xde)][_0x500f8d(0xd5)],'undeletedCount':_0x2191fd[_0x500f8d(0xd5)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a207_0x3d80(_0x2ea8b0,_0xcaf35){_0x2ea8b0=_0x2ea8b0-0x148;const _0x24873b=a207_0x2487();let _0x3d8047=_0x24873b[_0x2ea8b0];return _0x3d8047;}const a207_0x5bc296=a207_0x3d80;function a207_0x2487(){const _0x211199=['dataset','source','write','clientOperationId','string','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','status','appCode','nextAction','apply','48154mZkyGx','CRUD_PAGE_SET','SUCCESS','code','taskId','manualResolutionRequired','2783120gdlOVr','153880jtNgCZ','1799zBlcOb','/generate-standard-pages/start','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','Submitted\x20a\x20generate\x20task','message','name','3148pneSSi','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','/smartapi/lovrabet/dataset/','related-pages-fallback','15ufouKZ','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','precheck','number','dataListPageStatus','DATA_LIST','allowGenerate','dryRun','fieldCount','progressRate','bool','4536801FXJUdU','operationId','Reusing\x20an\x20existing\x20generate\x20task','2457968UyABfh','POST','generate-start','currentStep','reused','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','6054kWnnPb','alias','55FmTcIe','1395mNTmRm','page-type'];a207_0x2487=function(){return _0x211199;};return a207_0x2487();}(function(_0x4b6667,_0xc4834){const _0x16301b=a207_0x3d80,_0x1da91b=_0x4b6667();while(!![]){try{const _0x2922d4=-parseInt(_0x16301b(0x16a))/0x1*(-parseInt(_0x16301b(0x158))/0x2)+parseInt(_0x16301b(0x14a))/0x3*(-parseInt(_0x16301b(0x166))/0x4)+parseInt(_0x16301b(0x15e))/0x5+parseInt(_0x16301b(0x17e))/0x6*(-parseInt(_0x16301b(0x160))/0x7)+-parseInt(_0x16301b(0x178))/0x8+parseInt(_0x16301b(0x175))/0x9+parseInt(_0x16301b(0x15f))/0xa*(-parseInt(_0x16301b(0x149))/0xb);if(_0x2922d4===_0xc4834)break;else _0x1da91b['push'](_0x1da91b['shift']());}catch(_0x21a5b9){_0x1da91b['push'](_0x1da91b['shift']());}}}(a207_0x2487,0x64afe));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':'page','command':a207_0x5bc296(0x17a),'description':a207_0x5bc296(0x16b),'risk':a207_0x5bc296(0x14e),'defaultOutputFormat':'compress','rejectedFlags':[{'name':a207_0x5bc296(0x14b),'message':a207_0x5bc296(0x151),'hint':a207_0x5bc296(0x153)},{'name':'page-pattern','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':a207_0x5bc296(0x167)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x5bc296(0x148),'type':a207_0x5bc296(0x150),'description':a207_0x5bc296(0x152)},{'name':a207_0x5bc296(0x157),'type':'boolean','description':a207_0x5bc296(0x162)}],async 'validate'(_0x282fb4){validateDatasetSelector(_0x282fb4);},async 'dryRun'(_0x3490a3){const _0x1e4928=a207_0x5bc296,_0x2b2e8f=await prepare(_0x3490a3);return{'method':_0x1e4928(0x179),'url':_0x1e4928(0x168)+_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x15b)]+_0x1e4928(0x161),'body':{'appCode':_0x3490a3[_0x1e4928(0x155)],'clientOperationId':_0x2b2e8f[_0x1e4928(0x14f)]},'description':serializeDryRunDescription({'dataset':{'id':_0x2b2e8f[_0x1e4928(0x14c)]['id'],'code':_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x15b)],'name':_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x165)],'fieldCount':_0x2b2e8f['dataset'][_0x1e4928(0x172)]},'precheckSource':_0x2b2e8f[_0x1e4928(0x16e)]?.[_0x1e4928(0x14d)]??_0x1e4928(0x169),'action':'generate-start','clientOperationId':_0x2b2e8f[_0x1e4928(0x14f)],'plannedStatus':_0x2b2e8f[_0x1e4928(0x16c)][_0x1e4928(0x154)],'reason':_0x2b2e8f[_0x1e4928(0x16c)]['message']})};},async 'execute'(_0x207da7){const _0x3a745b=a207_0x5bc296;if(!_0x207da7[_0x3a745b(0x174)]('apply')){const _0x5aedc0=await pageGenerateStart[_0x3a745b(0x171)](_0x207da7);return{'ok':!![],'message':_0x3a745b(0x17d),'data':_0x5aedc0};}const _0x178a17=await prepare(_0x207da7);if(!_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x170)])return{'ok':![],'message':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x164)],'data':{'datasetCode':_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],'pageType':'DATA_LIST','pagePattern':_0x3a745b(0x159),'clientOperationId':_0x178a17[_0x3a745b(0x14f)],'precheckSource':_0x178a17[_0x3a745b(0x16e)]?.[_0x3a745b(0x14d)]??_0x3a745b(0x169),'status':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x154)],'manualResolutionRequired':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x15d)],'nextAction':_0x178a17['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],_0x207da7['appCode'])},'dataListPageStatus':_0x178a17[_0x3a745b(0x16e)]}};const _0x473567=await startGenerateDataListPages(_0x207da7['appCode'],_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],{'clientOperationId':_0x178a17[_0x3a745b(0x14f)]}),_0x2b6931=_0x473567['status']===_0x3a745b(0x15a)||_0x473567[_0x3a745b(0x154)]==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x207da7,_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)]):null,_0x30b52a=assessGenerateOperationState(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],_0x473567[_0x3a745b(0x154)],_0x2b6931);return{'ok':!![],'message':_0x473567['reused']?_0x3a745b(0x177):_0x3a745b(0x163),'data':{'datasetCode':_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],'appCode':_0x207da7[_0x3a745b(0x155)],'pageType':_0x3a745b(0x16f),'pagePattern':'CRUD_PAGE_SET','taskId':_0x473567[_0x3a745b(0x15c)]??null,'operationId':_0x473567[_0x3a745b(0x176)]??null,'clientOperationId':_0x178a17[_0x3a745b(0x14f)],'jobStatus':_0x473567['status']??null,'progressRate':typeof _0x473567['progressRate']===_0x3a745b(0x16d)?_0x473567[_0x3a745b(0x173)]:null,'currentStep':_0x473567[_0x3a745b(0x17b)]??null,'reused':_0x473567[_0x3a745b(0x17c)]===!![],'status':_0x30b52a[_0x3a745b(0x154)],'manualResolutionRequired':_0x30b52a[_0x3a745b(0x15d)],'nextAction':_0x30b52a[_0x3a745b(0x156)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],{'appCode':_0x207da7[_0x3a745b(0x155)],'taskId':_0x473567['taskId'],'operationId':_0x473567[_0x3a745b(0x176)],'clientOperationId':_0x178a17[_0x3a745b(0x14f)]})},'dataListPageStatus':_0x2b6931}};}};async function prepare(_0x44ecdd){const _0x1e3d28=a207_0x5bc296,_0x50c429=await loadDatasetDetailForPage(_0x44ecdd),_0x4f9ef0=await loadDataListPageStatusForGenerate(_0x44ecdd,_0x50c429[_0x1e3d28(0x15b)]),_0x3b57c3=getUndeletedRelatedPages(_0x50c429);return{'dataset':_0x50c429,'dataListPageStatus':_0x4f9ef0,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x50c429[_0x1e3d28(0x15b)],_0x4f9ef0,{'fallbackUndeletedPages':_0x3b57c3})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x527061=a208_0x276d;(function(_0x83071a,_0x2bfe0d){const _0x473280=a208_0x276d,_0x29da59=_0x83071a();while(!![]){try{const _0x5a9723=parseInt(_0x473280(0x67))/0x1*(-parseInt(_0x473280(0x69))/0x2)+-parseInt(_0x473280(0x74))/0x3+parseInt(_0x473280(0x64))/0x4+-parseInt(_0x473280(0x8a))/0x5+-parseInt(_0x473280(0x78))/0x6*(parseInt(_0x473280(0x8e))/0x7)+-parseInt(_0x473280(0x6d))/0x8*(parseInt(_0x473280(0x6b))/0x9)+-parseInt(_0x473280(0x72))/0xa*(-parseInt(_0x473280(0x7d))/0xb);if(_0x5a9723===_0x2bfe0d)break;else _0x29da59['push'](_0x29da59['shift']());}catch(_0x4e5f01){_0x29da59['push'](_0x29da59['shift']());}}}(a208_0x3e9e,0x27a5d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0x276d(_0x466283,_0x2f40b7){_0x466283=_0x466283-0x64;const _0x3e9eb2=a208_0x3e9e();let _0x276d07=_0x3e9eb2[_0x466283];return _0x276d07;}function a208_0x3e9e(){const _0x499827=['manualResolutionRequired','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','progressRate','1226050VWylNw','taskId','number','alias','77DEMqeu','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','1016532kzbSAV','str','/smartapi/lovrabet/dataset/','2pGymAv','name','294608OxGHOY','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','18ldGHIH','page','891736bcevNj','client-operation-id','compress','operation-id','GET','7069950zecUxt','operationId','52794TKxftx','/generate-standard-pages/status?','clientOperationId','status','10026TwEwrV','toString','string','task-id','operation_failed','11QVvGJu','generate-status','read','code','currentStep','errorMsg','query-generate-operation-status','set','message','appCode'];a208_0x3e9e=function(){return _0x499827;};return a208_0x3e9e();}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_0x527061(0x6c),'command':a208_0x527061(0x7e),'description':a208_0x527061(0x88),'risk':a208_0x527061(0x7f),'defaultOutputFormat':a208_0x527061(0x6f),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x527061(0x8d),'type':a208_0x527061(0x7a),'description':a208_0x527061(0x6a)},{'name':a208_0x527061(0x7b),'type':a208_0x527061(0x7a),'description':'Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x527061(0x70),'type':a208_0x527061(0x7a),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x527061(0x6e),'type':a208_0x527061(0x7a),'description':a208_0x527061(0x8f)}],async 'validate'(_0x2484e9){validateDatasetSelector(_0x2484e9),validateGenerateOperationSelector(_0x2484e9);},async 'dryRun'(_0x33773f){const _0x4253b4=a208_0x527061,_0x21ac94=await loadDatasetDetailForPage(_0x33773f),_0x104d74=_0x33773f[_0x4253b4(0x65)](_0x4253b4(0x7b)),_0x2e8ad7=_0x33773f[_0x4253b4(0x65)]('operation-id'),_0x337859=_0x33773f[_0x4253b4(0x65)](_0x4253b4(0x6e)),_0xa6f0=new URLSearchParams({'appCode':_0x33773f['appCode']});return _0x104d74&&_0xa6f0[_0x4253b4(0x84)](_0x4253b4(0x8b),_0x104d74),_0x2e8ad7&&_0xa6f0['set'](_0x4253b4(0x73),_0x2e8ad7),_0x337859&&_0xa6f0['set'](_0x4253b4(0x76),_0x337859),{'method':_0x4253b4(0x71),'url':_0x4253b4(0x66)+_0x21ac94[_0x4253b4(0x80)]+_0x4253b4(0x75)+_0xa6f0[_0x4253b4(0x79)](),'description':serializeDryRunDescription({'dataset':{'id':_0x21ac94['id'],'code':_0x21ac94[_0x4253b4(0x80)],'name':_0x21ac94[_0x4253b4(0x68)]},'action':_0x4253b4(0x83),'taskId':_0x104d74||undefined,'operationId':_0x2e8ad7||undefined,'clientOperationId':_0x337859||undefined})};},async 'execute'(_0x23432b){const _0x267842=a208_0x527061,_0x205364=await loadDatasetDetailForPage(_0x23432b),_0x49d252=_0x23432b[_0x267842(0x65)](_0x267842(0x7b)),_0x294c2d=_0x23432b['str'](_0x267842(0x70)),_0x26a67a=_0x23432b[_0x267842(0x65)]('client-operation-id'),_0xa9c918=await getGenerateDataListPagesStatus(_0x23432b[_0x267842(0x86)],_0x205364[_0x267842(0x80)],{'taskId':_0x49d252||undefined,'operationId':_0x294c2d||undefined,'clientOperationId':_0x26a67a||undefined}),_0x3872c6=_0xa9c918['status']==='SUCCESS'||_0xa9c918[_0x267842(0x77)]==='PARTIAL_SUCCESS',_0x323584=_0x3872c6?await loadDataListPageStatusForGenerate(_0x23432b,_0x205364[_0x267842(0x80)]):null,_0x301785=assessGenerateOperationState(_0x205364['code'],_0xa9c918[_0x267842(0x77)],_0x323584),_0x42bc20=_0xa9c918['taskId']??_0x49d252??undefined,_0x457d1b=_0xa9c918[_0x267842(0x73)]??_0x294c2d??undefined,_0xe8a409=_0xa9c918[_0x267842(0x76)]??_0x26a67a??undefined;return{'ok':!![],'message':_0x301785['status']===_0x267842(0x7c)?_0xa9c918[_0x267842(0x82)]||_0x301785[_0x267842(0x85)]:_0x301785[_0x267842(0x85)],'data':{'datasetCode':_0x205364[_0x267842(0x80)],'appCode':_0x23432b['appCode'],'taskId':_0x42bc20,'operationId':_0x457d1b,'clientOperationId':_0xe8a409,'jobStatus':_0xa9c918[_0x267842(0x77)]??null,'progressRate':typeof _0xa9c918[_0x267842(0x89)]===_0x267842(0x8c)?_0xa9c918[_0x267842(0x89)]:null,'currentStep':_0xa9c918[_0x267842(0x81)]??null,'errorMsg':_0xa9c918[_0x267842(0x82)]??null,'status':_0x301785['status'],'manualResolutionRequired':_0x301785[_0x267842(0x87)],'nextAction':_0x301785['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x205364[_0x267842(0x80)],{'appCode':_0x23432b['appCode'],'taskId':_0x42bc20,'operationId':_0x457d1b,'clientOperationId':_0xe8a409})},'dataListPageStatus':_0x323584,'result':_0xa9c918['result']??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5de13e,_0x253914){const _0x42534d=a209_0x2154,_0x2b7cbe=_0x5de13e();while(!![]){try{const _0x2b49fe=parseInt(_0x42534d(0x143))/0x1+parseInt(_0x42534d(0x148))/0x2*(-parseInt(_0x42534d(0x149))/0x3)+parseInt(_0x42534d(0x144))/0x4+-parseInt(_0x42534d(0x142))/0x5*(-parseInt(_0x42534d(0x147))/0x6)+parseInt(_0x42534d(0x14a))/0x7+-parseInt(_0x42534d(0x145))/0x8*(-parseInt(_0x42534d(0x146))/0x9)+-parseInt(_0x42534d(0x14b))/0xa;if(_0x2b49fe===_0x253914)break;else _0x2b7cbe['push'](_0x2b7cbe['shift']());}catch(_0x1ef39f){_0x2b7cbe['push'](_0x2b7cbe['shift']());}}}(a209_0x2820,0xd216e));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';function a209_0x2154(_0x483f0e,_0x53b3b6){_0x483f0e=_0x483f0e-0x142;const _0x2820bb=a209_0x2820();let _0x215409=_0x2820bb[_0x483f0e];return _0x215409;}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 a209_0x2820(){const _0x3e5e08=['43385qANIRG','1419672xIGiuK','3230944bfZMiE','4695112pMwwuH','18sRyGiF','840TeoWzy','435588lmFxlw','9oyLKWp','7820848WOQHSG','42193220HIXlDj'];a209_0x2820=function(){return _0x3e5e08;};return a209_0x2820();}import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0x182a(_0x3db2a7,_0x5bedc6){_0x3db2a7=_0x3db2a7-0x1cb;const _0x4b60aa=a210_0x4b60();let _0x182a36=_0x4b60aa[_0x3db2a7];return _0x182a36;}const a210_0x28b6bd=a210_0x182a;(function(_0x22f86b,_0x5f3cc6){const _0x140edb=a210_0x182a,_0x22f8bd=_0x22f86b();while(!![]){try{const _0x58dd32=parseInt(_0x140edb(0x1f4))/0x1*(-parseInt(_0x140edb(0x1d4))/0x2)+parseInt(_0x140edb(0x1cd))/0x3+parseInt(_0x140edb(0x1df))/0x4+-parseInt(_0x140edb(0x1f9))/0x5+parseInt(_0x140edb(0x1f5))/0x6*(-parseInt(_0x140edb(0x1e6))/0x7)+-parseInt(_0x140edb(0x1ce))/0x8*(parseInt(_0x140edb(0x1dc))/0x9)+parseInt(_0x140edb(0x1ef))/0xa*(parseInt(_0x140edb(0x1fa))/0xb);if(_0x58dd32===_0x5f3cc6)break;else _0x22f8bd['push'](_0x22f8bd['shift']());}catch(_0x6355b8){_0x22f8bd['push'](_0x22f8bd['shift']());}}}(a210_0x4b60,0xa8258));import{writeFile}from'node:fs/promises';function a210_0x4b60(){const _0x85d08b=['datasetCode','1iKDXyu','15846vsfANz','name','version-tag','map','4660970YXUgel','25651054WiMsbO','pull','localPath','all','mode','utf8','conflict','deleted','lockFilePath','Pull\x20complete:\x20','would_pull','pages','filter','appCode','4107288tyQSMg','384VyLyem','/smartapi/lovrabet/detail?pageId=','items','push','compress','pageId','258742zSRzUQ','reason','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','\x20pulled,\x20','code','status','page','datasetIds','218799RmbJQO','string','relatedPages','1914436wrwMjp','hash','detail','versionTag','GET','length','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','3346nquRmc','number','alias','toISOString','type','validation','bool','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','single','10wvfpgw','pageVersion','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','Page\x20ID'];a210_0x4b60=function(){return _0x85d08b;};return a210_0x4b60();}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':a210_0x28b6bd(0x1da),'command':a210_0x28b6bd(0x1fb),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':'read','defaultOutputFormat':a210_0x28b6bd(0x1d2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x28b6bd(0x1e7),'description':a210_0x28b6bd(0x1f2)},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x28b6bd(0x1e8),'type':a210_0x28b6bd(0x1dd),'description':a210_0x28b6bd(0x1f1)},{'name':a210_0x28b6bd(0x1f7),'type':a210_0x28b6bd(0x1dd),'description':a210_0x28b6bd(0x1ed)},{'name':'force','type':'boolean','description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x518857){validatePageTargetSelector(_0x518857);},async 'dryRun'(_0x1ed2b0){const _0x1b927c=a210_0x28b6bd,_0x4bc641=await buildPullPlan(_0x1ed2b0);return{'method':_0x1b927c(0x1e3),'url':_0x4bc641['mode']===_0x1b927c(0x1ee)?_0x1b927c(0x1cf)+(_0x4bc641[_0x1b927c(0x1d0)][0x0]?.[_0x1b927c(0x1e1)][_0x1b927c(0x1d3)]??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0x1ed2b0[_0x1b927c(0x1cc)],'mode':_0x4bc641[_0x1b927c(0x1fe)],'targetDatasetCode':_0x4bc641[_0x1b927c(0x1f3)]??null,'pages':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1f8)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x4bc641[_0x1b927c(0x1fe)],'datasetCode':_0x4bc641[_0x1b927c(0x1f3)]??null,'totalCandidates':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1e4)],'totalWouldPull':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1cb)](_0x165628=>_0x165628[_0x1b927c(0x1d9)]===_0x1b927c(0x204))[_0x1b927c(0x1e4)],'totalConflicts':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1cb)](_0x1043da=>_0x1043da['status']===_0x1b927c(0x200))[_0x1b927c(0x1e4)]})};},async 'execute'(_0x509a01){const _0x2fe316=a210_0x28b6bd,_0x1ae625=loadPageProjectConfig(_0x509a01[_0x2fe316(0x1cc)]),_0x4d969e=await readPageLockFile(_0x1ae625[_0x2fe316(0x202)]),{lockData:_0x190633,appLock:_0x2fe5e3}=ensurePageLockScope(_0x4d969e??createEmptyPageLock(),_0x509a01[_0x2fe316(0x1cc)]),_0x414b7c=await buildPullPlan(_0x509a01),_0x7dde13=_0x509a01[_0x2fe316(0x1ec)]('force');if(_0x414b7c['mode']===_0x2fe316(0x1ee)&&_0x414b7c[_0x2fe316(0x1d0)][0x0]?.[_0x2fe316(0x1d9)]===_0x2fe316(0x200)&&!_0x7dde13)throw CliErrors[_0x2fe316(0x1eb)](_0x2fe316(0x1e5)+_0x414b7c[_0x2fe316(0x1d0)][0x0]['localPath'],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x50e20b=[],_0x1ef866=[];for(const _0x526cf3 of _0x414b7c[_0x2fe316(0x1d0)]){if(_0x526cf3[_0x2fe316(0x1d9)]===_0x2fe316(0x200)&&!_0x7dde13){_0x1ef866[_0x2fe316(0x1d1)]({'pageId':_0x526cf3[_0x2fe316(0x1e1)]['pageId'],'type':_0x526cf3['detail'][_0x2fe316(0x1ea)],'title':_0x526cf3['detail']['name'],'localPath':_0x526cf3[_0x2fe316(0x1fc)],'reason':_0x526cf3[_0x2fe316(0x1d5)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x526cf3['localPath']);const _0x5d59f7=serializePageSchemaForFile(_0x526cf3[_0x2fe316(0x1e1)][_0x2fe316(0x1d8)]);await writeFile(_0x526cf3['localPath'],_0x5d59f7,_0x2fe316(0x1ff)),_0x2fe5e3[_0x2fe316(0x205)][String(_0x526cf3[_0x2fe316(0x1e1)][_0x2fe316(0x1d3)])]=buildLockEntry(_0x526cf3[_0x2fe316(0x1e1)],_0x5d59f7),_0x50e20b['push']({'pageId':_0x526cf3[_0x2fe316(0x1e1)]['pageId'],'type':_0x526cf3['detail']['type'],'title':_0x526cf3['detail'][_0x2fe316(0x1f6)],'localPath':_0x526cf3[_0x2fe316(0x1fc)]});}return _0x2fe5e3['lastSync']=new Date()[_0x2fe316(0x1e9)](),await writePageLockFile(_0x1ae625[_0x2fe316(0x202)],_0x190633),{'ok':!![],'message':_0x2fe316(0x203)+_0x50e20b['length']+_0x2fe316(0x1d7)+_0x1ef866[_0x2fe316(0x1e4)]+'\x20skipped','data':{'appCode':_0x509a01[_0x2fe316(0x1cc)],'pulledPages':_0x50e20b,'skippedPages':_0x1ef866,'totalPulled':_0x50e20b['length'],'totalSkipped':_0x1ef866[_0x2fe316(0x1e4)]}};}};async function buildPullPlan(_0x2473dd){const _0xb918d2=a210_0x28b6bd,_0x434797=loadPageProjectConfig(_0x2473dd[_0xb918d2(0x1cc)]),_0x2e5657=await readPageLockFile(_0x434797[_0xb918d2(0x202)]),{appLock:_0x4bb310}=ensurePageLockScope(_0x2e5657??createEmptyPageLock(),_0x2473dd[_0xb918d2(0x1cc)]),_0x5a9466=getPageIdFlag(_0x2473dd);if(_0x5a9466!==undefined){const _0x49e978=await loadPageDetailForPage(_0x2473dd,_0x5a9466);return{'mode':'single','items':[await inspectPullTarget(_0x434797,_0x4bb310[_0xb918d2(0x205)][String(_0x49e978[_0xb918d2(0x1d3)])],_0x49e978)]};}const _0x5264f6=await loadDatasetDetailForPage(_0x2473dd),_0x10e070=_0x5264f6[_0xb918d2(0x1de)]['filter'](_0x129ef5=>!_0x129ef5[_0xb918d2(0x201)]);if(_0x10e070['length']===0x0)throw CliErrors['validation']('Dataset\x20\x22'+_0x5264f6[_0xb918d2(0x1d8)]+_0xb918d2(0x1d6));const _0x42fd67=await Promise[_0xb918d2(0x1fd)](_0x10e070[_0xb918d2(0x1f8)](_0x5daa4d=>loadPageDetailForPage(_0x2473dd,_0x5daa4d['id']))),_0x5d6c48=selectVersionTagGroup(_0x42fd67,_0x1b87d9=>_0x1b87d9['versionTag'],_0x2473dd['str'](_0xb918d2(0x1f7)));return{'mode':'batch','datasetCode':_0x5264f6['code'],'items':await Promise['all'](_0x5d6c48[_0xb918d2(0x1d0)][_0xb918d2(0x1f8)](_0x15f9ac=>inspectPullTarget(_0x434797,_0x4bb310[_0xb918d2(0x205)][String(_0x15f9ac[_0xb918d2(0x1d3)])],_0x15f9ac)))};}async function inspectPullTarget(_0x1ecb75,_0x191765,_0x59acca){const _0x1b79a1=a210_0x28b6bd,_0xb87a55=resolvePageFilePath(_0x1ecb75,_0x59acca[_0x1b79a1(0x1d3)],_0x59acca['type']),_0x5eacb0=await fileExists(_0xb87a55);if(!_0x5eacb0){const _0x36de92=serializePageSchemaForFile(_0x59acca[_0x1b79a1(0x1d8)]);return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':computePageContentHash(_0x36de92),'status':_0x1b79a1(0x204)};}const _0x524793=await computePageFileHash(_0xb87a55);if(!_0x191765||_0x524793!==_0x191765[_0x1b79a1(0x1e0)])return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':_0x524793,'status':_0x1b79a1(0x200),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':_0x524793,'status':_0x1b79a1(0x204)};}function buildLockEntry(_0x29696a,_0x1baeb3){const _0x9a08dc=a210_0x28b6bd;return{'hash':computePageContentHash(_0x1baeb3),'pageId':_0x29696a[_0x9a08dc(0x1d3)],'pageVersion':_0x29696a[_0x9a08dc(0x1f0)],'type':_0x29696a[_0x9a08dc(0x1ea)],'title':_0x29696a[_0x9a08dc(0x1f6)],'datasetIds':_0x29696a[_0x9a08dc(0x1db)],'versionTag':_0x29696a[_0x9a08dc(0x1e2)]};}function toPreviewItem(_0x355d73){const _0x16a771=a210_0x28b6bd;return{'pageId':_0x355d73[_0x16a771(0x1e1)][_0x16a771(0x1d3)],'type':_0x355d73[_0x16a771(0x1e1)][_0x16a771(0x1ea)],'title':_0x355d73[_0x16a771(0x1e1)]['name'],'localPath':_0x355d73[_0x16a771(0x1fc)],'status':_0x355d73[_0x16a771(0x1d9)],..._0x355d73[_0x16a771(0x1d5)]?{'reason':_0x355d73[_0x16a771(0x1d5)]}:{}};}
|