@lovrabet/rabetbase-cli 2.5.10-beta.5 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a198_0x559f(){const _0x256cc6=['ocr','fileUrl','Preview:\x20recognize\x20','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','appCode','image-file','Invoice','GET','/smartapi/ocr/recognize-text','str','/smartapi/ocr/recognize-text?','7qjqcxG','\x20OCR','length','string','apiError','filter','form','26656832QomTtv','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','General','image-url','164504UsMRxR','Publicly\x20accessible\x20image\x20or\x20file\x20URL','trim','Table','2020608FKdWgd','validation','fileName','imageFile','idcard','File\x20upload\x20response\x20missing\x20filePath.','6962485XxQIlK','general','/smartapi/common/queryFileUrl','scene','toLowerCase','759629ZMeUhN','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','read','IdCard','POST','\x20OCR\x20from\x20URL','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','invoice','imageUrl','count','recognize','Unsupported\x20OCR\x20scene:\x20','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','230280aQeLwU','filePath','9fpCEbc','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','7572522qFAGYR','path','/smartapi/common/uploadFile'];a198_0x559f=function(){return _0x256cc6;};return a198_0x559f();}const a198_0x336b06=a198_0x1962;(function(_0x26b212,_0xd312be){const _0x146fbe=a198_0x1962,_0x3a66f1=_0x26b212();while(!![]){try{const _0x5dce76=-parseInt(_0x146fbe(0xd1))/0x1+parseInt(_0x146fbe(0xc6))/0x2+-parseInt(_0x146fbe(0xdf))/0x3+parseInt(_0x146fbe(0xc2))/0x4+-parseInt(_0x146fbe(0xcc))/0x5+parseInt(_0x146fbe(0xe3))/0x6*(-parseInt(_0x146fbe(0xf1))/0x7)+-parseInt(_0x146fbe(0xf8))/0x8*(-parseInt(_0x146fbe(0xe1))/0x9);if(_0x5dce76===_0xd312be)break;else _0x3a66f1['push'](_0x3a66f1['shift']());}catch(_0x57e1c9){_0x3a66f1['push'](_0x3a66f1['shift']());}}}(a198_0x559f,0xd9e91));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a198_0x336b06(0xd9),'general','form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a198_0x336b06(0xec),'general':a198_0x336b06(0xfa),'form':a198_0x336b06(0xc5),'idCard':a198_0x336b06(0xd4)},SCENE_FLAG={'name':a198_0x336b06(0xcf),'type':a198_0x336b06(0xf4),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a198_0x336b06(0xd7)},IMAGE_FILE_FLAG={'name':a198_0x336b06(0xeb),'type':'string','description':a198_0x336b06(0xd8)},IMAGE_URL_FLAG={'name':a198_0x336b06(0xfb),'type':'string','description':a198_0x336b06(0xc3)};function normalizeScene(_0x237b96){const _0x50c9db=a198_0x336b06,_0xfecdc1=_0x237b96[_0x50c9db(0xc4)]()[_0x50c9db(0xd0)]();if(_0xfecdc1===_0x50c9db(0xca))return'idCard';if(_0xfecdc1==='invoice'||_0xfecdc1===_0x50c9db(0xcd)||_0xfecdc1===_0x50c9db(0xf7))return _0xfecdc1;throw CliErrors[_0x50c9db(0xc7)](_0x50c9db(0xdd)+_0x237b96+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x1e226d){const _0x1500a4=a198_0x336b06,_0x403632=_0x1e226d[_0x1500a4(0xef)](_0x1500a4(0xeb))[_0x1500a4(0xc4)](),_0x5f45c6=_0x1e226d[_0x1500a4(0xef)](_0x1500a4(0xfb))[_0x1500a4(0xc4)]();return{'imageFile':_0x403632,'imageUrl':_0x5f45c6,'count':[_0x403632,_0x5f45c6][_0x1500a4(0xf6)](Boolean)[_0x1500a4(0xf3)]};}function a198_0x1962(_0x5fbf69,_0x2d61cf){_0x5fbf69=_0x5fbf69-0xc2;const _0x559f5c=a198_0x559f();let _0x196289=_0x559f5c[_0x5fbf69];return _0x196289;}function validateInputSelection(_0x3c2f00){const _0x1088c7=a198_0x336b06,_0x33f994=selectedInputs(_0x3c2f00);if(_0x33f994[_0x1088c7(0xdb)]!==0x1)throw CliErrors[_0x1088c7(0xc7)](_0x1088c7(0xd2));return _0x33f994;}function withScene(_0x556241,_0x3e76ca,_0x2e9743){const _0xb40e22=a198_0x336b06;return{..._0x556241,'scene':_0x3e76ca,..._0x2e9743?{'sourceFile':{'fileName':_0x2e9743[_0xb40e22(0xc8)],'filePath':_0x2e9743[_0xb40e22(0xe0)]}}:{}};}const ocrRecognize={'service':a198_0x336b06(0xe6),'command':a198_0x336b06(0xdc),'description':a198_0x336b06(0xf9),'risk':a198_0x336b06(0xd3),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xcf8920){const _0x19ba0d=a198_0x336b06,_0x156b52=normalizeScene(_0xcf8920[_0x19ba0d(0xef)](_0x19ba0d(0xcf))),_0xda351b=SCENE_TO_LEGACY_TYPE[_0x156b52],_0x19dae1=validateInputSelection(_0xcf8920);if(_0x19dae1[_0x19ba0d(0xda)]){const _0x4ee4d6=new URLSearchParams({'url':_0x19dae1[_0x19ba0d(0xda)],'type':_0xda351b,'appCode':_0xcf8920[_0x19ba0d(0xea)]});return{'method':'GET','url':_0x19ba0d(0xf0)+_0x4ee4d6['toString'](),'description':_0x19ba0d(0xe8)+_0x156b52+_0x19ba0d(0xd6)};}const _0xa43495=requireDevelopmentUploadFile(_0x19dae1[_0x19ba0d(0xc9)],'image-file');return{'method':_0x19ba0d(0xd5),'url':_0x19ba0d(0xe5),'body':{'steps':[{'method':_0x19ba0d(0xd5),'url':_0x19ba0d(0xe5),'body':{'appCode':_0xcf8920[_0x19ba0d(0xea)],'multipart':{'file':_0xa43495}}},{'method':'POST','url':_0x19ba0d(0xce),'body':{'filePath':_0x19ba0d(0xe2),'downloadFlag':![]}},{'method':_0x19ba0d(0xed),'url':_0x19ba0d(0xee),'query':{'appCode':_0xcf8920[_0x19ba0d(0xea)],'url':_0x19ba0d(0xde),'type':_0xda351b}}]},'description':_0x19ba0d(0xe9)+_0x156b52+_0x19ba0d(0xf2)};},async 'execute'(_0x3fca20){const _0x1dbcf1=a198_0x336b06,_0x220512=normalizeScene(_0x3fca20[_0x1dbcf1(0xef)](_0x1dbcf1(0xcf))),_0x277d20=SCENE_TO_LEGACY_TYPE[_0x220512],_0x4ba972=validateInputSelection(_0x3fca20);if(_0x4ba972[_0x1dbcf1(0xda)]){const _0x30c53b=await recognizeDevelopmentOcr(_0x3fca20[_0x1dbcf1(0xea)],{'url':_0x4ba972[_0x1dbcf1(0xda)],'type':_0x277d20});return{'ok':!![],'data':withScene(_0x30c53b,_0x220512)};}const _0x5894df=requireDevelopmentUploadFile(_0x4ba972[_0x1dbcf1(0xc9)],_0x1dbcf1(0xeb)),_0xe82b02=await uploadDevelopmentFile(_0x3fca20[_0x1dbcf1(0xea)],_0x5894df[_0x1dbcf1(0xe4)]);if(!_0xe82b02['filePath'])throw CliErrors[_0x1dbcf1(0xf5)](_0x1dbcf1(0xcb));const _0xe1d63f=await queryDevelopmentFileUrl(_0xe82b02[_0x1dbcf1(0xe0)],{'download':![]});if(!_0xe1d63f[_0x1dbcf1(0xe7)])throw CliErrors[_0x1dbcf1(0xf5)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x2239e5=await recognizeDevelopmentOcr(_0x3fca20[_0x1dbcf1(0xea)],{'url':_0xe1d63f['fileUrl'],'type':_0x277d20});return{'ok':!![],'data':withScene(_0x2239e5,_0x220512,_0xe82b02)};}};export const ocrDefinitions=[ocrRecognize];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x453474=a199_0xdf51;(function(_0x30fd73,_0x5301c2){const _0xa04a20=a199_0xdf51,_0x3553a6=_0x30fd73();while(!![]){try{const _0x43521d=-parseInt(_0xa04a20(0x1cc))/0x1*(-parseInt(_0xa04a20(0x1eb))/0x2)+-parseInt(_0xa04a20(0x1b6))/0x3+-parseInt(_0xa04a20(0x1e6))/0x4*(parseInt(_0xa04a20(0x1bd))/0x5)+parseInt(_0xa04a20(0x1ab))/0x6+parseInt(_0xa04a20(0x1c1))/0x7*(-parseInt(_0xa04a20(0x1cb))/0x8)+parseInt(_0xa04a20(0x1e8))/0x9+parseInt(_0xa04a20(0x1b1))/0xa*(parseInt(_0xa04a20(0x1e7))/0xb);if(_0x43521d===_0x5301c2)break;else _0x3553a6['push'](_0x3553a6['shift']());}catch(_0x503c1a){_0x3553a6['push'](_0x3553a6['shift']());}}}(a199_0x5d81,0x94256));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x453474(0x1e1),a199_0x453474(0x1aa),a199_0x453474(0x1de)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');export const pageCreate={'service':'page','command':a199_0x453474(0x1e5),'description':a199_0x453474(0x1c5),'risk':a199_0x453474(0x1cf),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a199_0x453474(0x1dc),'message':a199_0x453474(0x1af),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':'page-content','message':a199_0x453474(0x1df),'hint':a199_0x453474(0x1ca)}],'flags':[{'name':'name','type':a199_0x453474(0x1e9),'description':a199_0x453474(0x1d5)},{'name':a199_0x453474(0x1b4),'type':a199_0x453474(0x1bc),'description':a199_0x453474(0x1c8)},{'name':a199_0x453474(0x1ce),'type':a199_0x453474(0x1e9),'description':a199_0x453474(0x1c0),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x453474(0x1ed),'type':a199_0x453474(0x1e9),'description':a199_0x453474(0x1db)},APPCODE_FLAG],async 'validate'(_0x218829){await readValidatedPageSource(_0x218829);},async 'dryRun'(_0xf9e9e0){const _0x4c938d=a199_0x453474,_0x43a0fd=readInput(_0xf9e9e0,await readValidatedPageSource(_0xf9e9e0));return{'method':_0x4c938d(0x1ad),'url':_0x4c938d(0x1e4),'body':{'appCode':_0x43a0fd[_0x4c938d(0x1c4)],'pageName':_0x43a0fd[_0x4c938d(0x1b2)],..._0x43a0fd['parentMenuId']!=null?{'parentMenuId':_0x43a0fd[_0x4c938d(0x1c7)]}:{},'createMenu':_0x43a0fd[_0x4c938d(0x1d4)],'codeContent':_0x43a0fd[_0x4c938d(0x1ba)]},'description':_0x4c938d(0x1d7)+JSON[_0x4c938d(0x1b7)](_0x43a0fd[_0x4c938d(0x1b2)])+_0x4c938d(0x1c3)};},async 'execute'(_0x19ab37){const _0x2c2e4b=a199_0x453474,_0x4573fe=readInput(_0x19ab37,await readValidatedPageSource(_0x19ab37)),_0x81063b=await createCustomPage(_0x4573fe);if(!Number[_0x2c2e4b(0x1b5)](_0x81063b[_0x2c2e4b(0x1b0)])||_0x81063b[_0x2c2e4b(0x1b0)]<=0x0)throw CliErrors[_0x2c2e4b(0x1c2)](_0x2c2e4b(0x1ac));const _0x3f1216=buildCustomPageDevelopmentUrl(_0x4573fe['appCode'],_0x81063b[_0x2c2e4b(0x1e3)]),_0x43cd3e=buildCustomPageEditUrl(_0x4573fe[_0x2c2e4b(0x1c4)],_0x81063b[_0x2c2e4b(0x1b0)]);return{'ok':!![],'data':{'operation':_0x2c2e4b(0x1d6),'pageType':_0x2c2e4b(0x1e2),'pagePattern':readPagePattern(_0x19ab37),'selector':{'appCode':_0x4573fe[_0x2c2e4b(0x1c4)],'pageName':_0x4573fe[_0x2c2e4b(0x1b2)]},'before':null,'after':{'pageId':_0x81063b[_0x2c2e4b(0x1b0)],'pageName':_0x81063b[_0x2c2e4b(0x1b2)],'appCode':_0x81063b[_0x2c2e4b(0x1c4)],'version':_0x81063b[_0x2c2e4b(0x1bf)],'menuId':_0x81063b['menuId'],'menuPath':_0x81063b[_0x2c2e4b(0x1e3)],'files':_0x81063b[_0x2c2e4b(0x1ba)]??Object[_0x2c2e4b(0x1b9)](_0x4573fe[_0x2c2e4b(0x1ba)])},'dryRun':![],'request':_0x4573fe,..._0x3f1216?{'pageUrl':_0x3f1216}:{},..._0x43cd3e?{'editPageUrl':_0x43cd3e}:{},'warnings':_0x3f1216?[]:[_0x2c2e4b(0x1d9)]},'message':_0x2c2e4b(0x1d3)+_0x81063b['pageId']+'.'};}};function a199_0xdf51(_0x3cdf44,_0xe796e3){_0x3cdf44=_0x3cdf44-0x1aa;const _0x5d8156=a199_0x5d81();let _0xdf516d=_0x5d8156[_0x3cdf44];return _0xdf516d;}function readPagePattern(_0xef1858){const _0x452c47=a199_0x453474,_0x105024=_0xef1858[_0x452c47(0x1b8)](_0x452c47(0x1ce))[_0x452c47(0x1b3)](),_0x177623=_0xef1858[_0x452c47(0x1b8)]('page-dir')[_0x452c47(0x1b3)]();if(_0x105024&&_0x177623)throw CliErrors['validation']('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x177623)return null;if(!_0x105024)throw CliErrors[_0x452c47(0x1ec)](_0x452c47(0x1e0));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x105024))throw CliErrors[_0x452c47(0x1ec)](_0x452c47(0x1da));return _0x105024;}function a199_0x5d81(){const _0x3a0ef7=['192iihZoK','1mJesHU','object','page-pattern','write','some','pageName\x20cannot\x20exceed\x20100\x20characters.','Custom_page_','Created\x20Custom\x20Page\x20','createMenu','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','page.create','Would\x20create\x20Custom\x20Page\x20','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','page-type','Custom\x20Page\x20pattern\x20not\x20found:\x20','DASHBOARD','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','BLANK','CUSTOM','menuPath','/smartapi/webcode/page/create','create','35692uTeoYX','649nqaFQZ','3860838AfloVl','string','name','967786JXdKQC','validation','page-dir','toLowerCase','ONEPAGE','6660318KjRRdO','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','POST','isNaN','page\x20create\x20does\x20not\x20accept\x20--page-type.','pageId','12960ZTrxre','pageName','trim','parent-menu-id','isInteger','1414137dekLAb','stringify','str','keys','files','length','number','185fTTsop','values','version','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','201558QDXmhi','apiError','\x20and\x20its\x20menu\x20entry.','appCode','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','num','parentMenuId','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','Invalid\x20Custom\x20Page\x20pattern:\x20','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'];a199_0x5d81=function(){return _0x3a0ef7;};return a199_0x5d81();}async function readPageSource(_0x5036b6){const _0x5baecf=a199_0x453474,_0x133773=_0x5036b6[_0x5baecf(0x1b8)](_0x5baecf(0x1ed))['trim'](),_0x13ef1a=readPagePattern(_0x5036b6);if(_0x13ef1a===null){const _0x4a60a2=await readCustomPageDirectory(_0x133773);if(Object[_0x5baecf(0x1b9)](_0x4a60a2)[_0x5baecf(0x1bb)]===0x0)throw CliErrors['validation']('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x4a60a2;}let _0x52a630;try{_0x52a630=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x13ef1a[_0x5baecf(0x1ee)]()+'.json'),'utf8');}catch{throw CliErrors['validation'](_0x5baecf(0x1dd)+_0x13ef1a+'.');}let _0x48b1d7;try{_0x48b1d7=JSON['parse'](_0x52a630);}catch{throw CliErrors[_0x5baecf(0x1ec)](_0x5baecf(0x1c9)+_0x13ef1a+'.');}if(!_0x48b1d7||typeof _0x48b1d7!==_0x5baecf(0x1cd)||Array['isArray'](_0x48b1d7)||Object[_0x5baecf(0x1be)](_0x48b1d7)[_0x5baecf(0x1d0)](_0x2ae158=>typeof _0x2ae158!==_0x5baecf(0x1e9)))throw CliErrors[_0x5baecf(0x1ec)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x13ef1a+'.');return _0x48b1d7;}async function readValidatedPageSource(_0x14b02d){const _0x366037=await readPageSource(_0x14b02d);return await validateCustomPageContent(_0x366037),_0x366037;}function readInput(_0x1807b9,_0x3b699d){const _0x1181dd=a199_0x453474,_0x264f0f=_0x1807b9[_0x1181dd(0x1b8)](_0x1181dd(0x1ea))['trim']()||_0x1181dd(0x1d2)+Date['now']();if(_0x264f0f[_0x1181dd(0x1bb)]>0x64)throw CliErrors[_0x1181dd(0x1ec)](_0x1181dd(0x1d1));const _0x56de7c=_0x1807b9[_0x1181dd(0x1c6)]('parent-menu-id',NaN),_0x4b3610=!Number[_0x1181dd(0x1ae)](_0x56de7c);if(_0x4b3610&&(!Number[_0x1181dd(0x1b5)](_0x56de7c)||_0x56de7c<=0x0))throw CliErrors[_0x1181dd(0x1ec)](_0x1181dd(0x1d8));return{'appCode':_0x1807b9['appCode'],'pageName':_0x264f0f,..._0x4b3610?{'parentMenuId':_0x56de7c}:{},'createMenu':!![],'files':_0x3b699d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x2c7d26=a200_0x7abf;(function(_0x1c6b9b,_0xa4af46){const _0x140c87=a200_0x7abf,_0x220500=_0x1c6b9b();while(!![]){try{const _0x121b23=parseInt(_0x140c87(0x1f2))/0x1+-parseInt(_0x140c87(0x1e2))/0x2*(parseInt(_0x140c87(0x1ea))/0x3)+parseInt(_0x140c87(0x1e5))/0x4*(-parseInt(_0x140c87(0x1eb))/0x5)+parseInt(_0x140c87(0x1f4))/0x6+parseInt(_0x140c87(0x1e3))/0x7+parseInt(_0x140c87(0x1fb))/0x8+parseInt(_0x140c87(0x1f6))/0x9*(-parseInt(_0x140c87(0x1f9))/0xa);if(_0x121b23===_0xa4af46)break;else _0x220500['push'](_0x220500['shift']());}catch(_0x4f87c1){_0x220500['push'](_0x220500['shift']());}}}(a200_0x1fba,0x6409a));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x1fba(){const _0x2e68b4=['join','1004eiqpZD','2216767DzSFvW','pageCode','17132MPnMTG','getFullYear','Retrieved\x20Custom\x20Page\x20','getSeconds','cookie','4359zQcbdH','740yvDccJ','padStart','compress','page','appcode','trim','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','771816TFVxxh','isNaN','4327194aHbWoc','appCode','1234854UBuXQs','getHours','custom-detail','20QDFinK','read','1902080xGqeOR','getMinutes','Custom\x20Page\x20ID'];a200_0x1fba=function(){return _0x2e68b4;};return a200_0x1fba();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x2c7d26(0x1ee),'command':a200_0x2c7d26(0x1f8),'description':a200_0x2c7d26(0x1f1),'risk':a200_0x2c7d26(0x1fa),'defaultOutputFormat':a200_0x2c7d26(0x1ed),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a200_0x2c7d26(0x1fd)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x203c31){readCustomPageId(_0x203c31);},async 'execute'(_0x3b331e){const _0x98cc54=a200_0x2c7d26,_0x2ffdff=readCustomPageId(_0x3b331e),_0x313c61=await getCustomPageSource(_0x2ffdff),{bundle:_0xfbfa08,createTime:_0x1ad608,updateTime:_0x31a61a,..._0x49c77e}=_0x313c61,_0x1b1430=_0x313c61['id']??_0x2ffdff,_0x5861e7=_0x313c61[_0x98cc54(0x1f5)]?.[_0x98cc54(0x1f0)]()||_0x3b331e['str'](_0x98cc54(0x1ef))[_0x98cc54(0x1f0)](),_0x40e9e0=buildCustomPageRuntimeUrl(_0x5861e7,_0x313c61[_0x98cc54(0x1e4)]),_0xcf2c57=buildCustomPageEditUrl(_0x5861e7,_0x1b1430),_0x156c78=await resolveCustomPageDevelopmentUrl(_0x5861e7,_0x1b1430,_0x3b331e[_0x98cc54(0x1e9)]);return{'ok':!![],'data':{..._0x49c77e,..._0x40e9e0?{'runtimePageUrl':_0x40e9e0}:{},..._0x156c78?{'pageUrl':_0x156c78}:{},..._0xcf2c57?{'editPageUrl':_0xcf2c57}:{},..._0x1ad608==null?{}:{'createTime':formatTime(_0x1ad608)},..._0x31a61a==null?{}:{'updateTime':formatTime(_0x31a61a)}},'message':_0x98cc54(0x1e7)+_0x2ffdff+'.'};}};function a200_0x7abf(_0x5bff04,_0x528086){_0x5bff04=_0x5bff04-0x1e1;const _0x1fba3d=a200_0x1fba();let _0x7abf4e=_0x1fba3d[_0x5bff04];return _0x7abf4e;}function formatTime(_0x69298b){const _0xd5546c=a200_0x2c7d26,_0x3d5e45=new Date(_0x69298b);if(Number[_0xd5546c(0x1f3)](_0x3d5e45['getTime']()))return String(_0x69298b);const _0x4c59b7=[_0x3d5e45[_0xd5546c(0x1e6)](),String(_0x3d5e45['getMonth']()+0x1)[_0xd5546c(0x1ec)](0x2,'0'),String(_0x3d5e45['getDate']())[_0xd5546c(0x1ec)](0x2,'0')][_0xd5546c(0x1e1)]('-'),_0x519ecb=[String(_0x3d5e45[_0xd5546c(0x1f7)]())['padStart'](0x2,'0'),String(_0x3d5e45[_0xd5546c(0x1fc)]())[_0xd5546c(0x1ec)](0x2,'0'),String(_0x3d5e45[_0xd5546c(0x1e8)]())[_0xd5546c(0x1ec)](0x2,'0')][_0xd5546c(0x1e1)](':');return _0x4c59b7+'\x20'+_0x519ecb;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a201_0x5403(){const _0x28e0fd=['custom-list','menus','80nHOtVv','276558hEHWRl','path','Found\x20','1662VcGyzq','label','No\x20Custom\x20Pages\x20found.','3180440fIWPFL','flatMap','1RfpKFY','\x20Custom\x20Page(s).','pageId','appCode','4772kAnzSy','713678vpdTSy','17433150XzfNPB','compress','2826927iUdQci','page','1450406ddCPAb','cookie','length'];a201_0x5403=function(){return _0x28e0fd;};return a201_0x5403();}function a201_0x7bb5(_0x4c70b8,_0x1310df){_0x4c70b8=_0x4c70b8-0x10d;const _0x540349=a201_0x5403();let _0x7bb53a=_0x540349[_0x4c70b8];return _0x7bb53a;}const a201_0x45e99e=a201_0x7bb5;(function(_0x2aa90b,_0x306f32){const _0x239fce=a201_0x7bb5,_0x4dedb4=_0x2aa90b();while(!![]){try{const _0x25bac4=parseInt(_0x239fce(0x117))/0x1*(parseInt(_0x239fce(0x121))/0x2)+-parseInt(_0x239fce(0x112))/0x3*(-parseInt(_0x239fce(0x11b))/0x4)+-parseInt(_0x239fce(0x10e))/0x5*(-parseInt(_0x239fce(0x10f))/0x6)+parseInt(_0x239fce(0x11c))/0x7+-parseInt(_0x239fce(0x115))/0x8+parseInt(_0x239fce(0x11f))/0x9+-parseInt(_0x239fce(0x11d))/0xa;if(_0x25bac4===_0x306f32)break;else _0x4dedb4['push'](_0x4dedb4['shift']());}catch(_0x4c6c4c){_0x4dedb4['push'](_0x4dedb4['shift']());}}}(a201_0x5403,0x615d0));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x45e99e(0x120),'command':a201_0x45e99e(0x124),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':'read','defaultOutputFormat':a201_0x45e99e(0x11e),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4e71f2){const _0x514344=a201_0x45e99e,_0x46f32e=(await fetchMenuSnapshot(_0x4e71f2[_0x514344(0x11a)],_0x4e71f2[_0x514344(0x122)]))[_0x514344(0x10d)][_0x514344(0x116)](_0x391cda=>{const _0x16e6c9=_0x514344;if(_0x391cda['type']!=='react'||_0x391cda[_0x16e6c9(0x119)]==null)return[];const _0xe86f93=buildCustomPageDevelopmentUrl(_0x4e71f2[_0x16e6c9(0x11a)],_0x391cda[_0x16e6c9(0x110)]),_0xe5e885=buildCustomPageRuntimeUrl(_0x4e71f2[_0x16e6c9(0x11a)],_0x391cda[_0x16e6c9(0x110)]),_0x408b1e=buildCustomPageEditUrl(_0x4e71f2[_0x16e6c9(0x11a)],_0x391cda[_0x16e6c9(0x119)]);return[{'pageId':_0x391cda[_0x16e6c9(0x119)],'label':_0x391cda[_0x16e6c9(0x113)],'path':_0x391cda[_0x16e6c9(0x110)],..._0xe86f93?{'pageUrl':_0xe86f93}:{},..._0xe5e885?{'runtimePageUrl':_0xe5e885}:{},..._0x408b1e?{'editPageUrl':_0x408b1e}:{}}];});return{'ok':!![],'data':{'pages':_0x46f32e},'message':_0x46f32e[_0x514344(0x123)]===0x0?_0x514344(0x114):_0x514344(0x111)+_0x46f32e['length']+_0x514344(0x118)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a202_0x15ab42=a202_0x3d82;(function(_0x9247be,_0xd6f86a){const _0x521c27=a202_0x3d82,_0x264521=_0x9247be();while(!![]){try{const _0x54767a=parseInt(_0x521c27(0x14b))/0x1+parseInt(_0x521c27(0x140))/0x2*(parseInt(_0x521c27(0x14a))/0x3)+parseInt(_0x521c27(0x151))/0x4+parseInt(_0x521c27(0x13d))/0x5+parseInt(_0x521c27(0x136))/0x6*(parseInt(_0x521c27(0x143))/0x7)+parseInt(_0x521c27(0x13b))/0x8*(-parseInt(_0x521c27(0x152))/0x9)+-parseInt(_0x521c27(0x13c))/0xa*(parseInt(_0x521c27(0x133))/0xb);if(_0x54767a===_0xd6f86a)break;else _0x264521['push'](_0x264521['shift']());}catch(_0x1e739e){_0x264521['push'](_0x264521['shift']());}}}(a202_0x5178,0xc50e9));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a202_0x5178(){const _0x5943a3=['remark','apiError','unknown','appCode','11wJvpUe','warnings','Would\x20publish\x20Custom\x20Page\x20','32454Zztdbb','string','push','POST','Custom\x20Page\x20ID','669256TYaxMT','1447730lvvCgn','4672150IOKWdj','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','Optional\x20publish\x20remark','492818JMUdnL','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','623vyMmgp','write','cookie','page.custom-publish','isInteger','custom-publish','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','3IQmWEO','16765ybaKce','FORMAL','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','pageId','str','772560xXQaKR','99LgIPaL','status'];a202_0x5178=function(){return _0x5943a3;};return a202_0x5178();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a202_0x3d82(_0x1d1974,_0x3cd166){_0x1d1974=_0x1d1974-0x131;const _0x51788a=a202_0x5178();let _0x3d8257=_0x51788a[_0x1d1974];return _0x3d8257;}export const pageCustomPublish={'service':'page','command':a202_0x15ab42(0x148),'description':a202_0x15ab42(0x14d),'risk':a202_0x15ab42(0x144),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a202_0x15ab42(0x13a)},{'name':a202_0x15ab42(0x154),'type':a202_0x15ab42(0x137),'description':a202_0x15ab42(0x13f)}],async 'validate'(_0x540fd4){readCustomPageId(_0x540fd4);},async 'dryRun'(_0x5f297d){const _0x3ab65a=a202_0x15ab42,_0x3d300a=readInput(_0x5f297d);return{'method':_0x3ab65a(0x139),'url':'/smartapi/webcode/file/publish','body':{'id':_0x3d300a[_0x3ab65a(0x14f)],..._0x3d300a['remark']?{'remark':_0x3d300a[_0x3ab65a(0x154)]}:{}},'description':_0x3ab65a(0x135)+_0x3d300a[_0x3ab65a(0x14f)]+'.'};},async 'execute'(_0x1bd63e){const _0x357e29=a202_0x15ab42,_0x579087=readInput(_0x1bd63e);await getCustomPageSource(_0x579087['pageId']);const _0x4c63e2=await publishCustomPage(_0x579087);if(!Number[_0x357e29(0x147)](_0x4c63e2)||_0x4c63e2!==_0x579087[_0x357e29(0x14f)])throw CliErrors[_0x357e29(0x155)](_0x357e29(0x13e));const _0x482c42=await getCustomPageSource(_0x579087[_0x357e29(0x14f)]);if(_0x482c42['status']!==_0x357e29(0x14c))throw CliErrors[_0x357e29(0x155)](_0x357e29(0x14e)+(_0x482c42[_0x357e29(0x153)]??_0x357e29(0x131))+'.');const _0x28efaf=_0x482c42[_0x357e29(0x132)]?.['trim'](),_0x172a54=buildCustomPageEditUrl(_0x28efaf,_0x579087[_0x357e29(0x14f)]),_0x448add=await resolveCustomPageDevelopmentUrl(_0x28efaf,_0x579087[_0x357e29(0x14f)],_0x1bd63e[_0x357e29(0x145)]),_0x388a0a=buildMutationData(_0x579087,!![],_0x448add,_0x172a54);_0x28efaf&&!_0x448add&&_0x388a0a[_0x357e29(0x134)]['push'](_0x357e29(0x141));const _0xe9d0fb=buildCustomPageRuntimeUrl(_0x482c42['appCode'],_0x482c42['pageCode']);return _0xe9d0fb?_0x388a0a['runtimePageUrl']=_0xe9d0fb:_0x388a0a[_0x357e29(0x134)][_0x357e29(0x138)](_0x357e29(0x149)),{'ok':!![],'data':_0x388a0a,'message':'Published\x20Custom\x20Page\x20'+_0x579087[_0x357e29(0x14f)]+'.'};}};function readInput(_0x5e4196){const _0x239988=a202_0x15ab42,_0x5d9486=readCustomPageId(_0x5e4196),_0x2eceea=_0x5e4196[_0x239988(0x150)]('remark')[_0x239988(0x142)]();return{'pageId':_0x5d9486,..._0x2eceea?{'remark':_0x2eceea}:{}};}function buildMutationData(_0x2e7e03,_0x1628ba=![],_0x29b92d,_0x58de98){const _0x339626=a202_0x15ab42;return{'operation':_0x339626(0x146),'selector':{'pageId':_0x2e7e03['pageId']},'before':null,'after':{'pageId':_0x2e7e03[_0x339626(0x14f)],'status':_0x339626(0x14c)},'dryRun':!_0x1628ba,'request':_0x2e7e03,..._0x29b92d?{'pageUrl':_0x29b92d}:{},..._0x58de98?{'editPageUrl':_0x58de98}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a203_0x5802(_0x392f77,_0x517e5c){_0x392f77=_0x392f77-0xd0;const _0x92ae=a203_0x92ae();let _0x580291=_0x92ae[_0x392f77];return _0x580291;}const a203_0x5437fb=a203_0x5802;(function(_0x52cae1,_0x33776c){const _0x4943ee=a203_0x5802,_0x48b3b2=_0x52cae1();while(!![]){try{const _0x4c4106=parseInt(_0x4943ee(0xe0))/0x1*(parseInt(_0x4943ee(0xea))/0x2)+-parseInt(_0x4943ee(0xe3))/0x3*(parseInt(_0x4943ee(0xd1))/0x4)+parseInt(_0x4943ee(0xe7))/0x5*(-parseInt(_0x4943ee(0xdd))/0x6)+-parseInt(_0x4943ee(0xeb))/0x7*(parseInt(_0x4943ee(0xda))/0x8)+-parseInt(_0x4943ee(0xd9))/0x9*(parseInt(_0x4943ee(0xd2))/0xa)+-parseInt(_0x4943ee(0xd7))/0xb+-parseInt(_0x4943ee(0xdf))/0xc*(-parseInt(_0x4943ee(0xd8))/0xd);if(_0x4c4106===_0x33776c)break;else _0x48b3b2['push'](_0x48b3b2['shift']());}catch(_0x3a7214){_0x48b3b2['push'](_0x48b3b2['shift']());}}}(a203_0x92ae,0x2e0b7));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_0x5437fb(0xd4)};function trimOptional(_0x3b5dda){const _0x30427d=a203_0x5437fb;return _0x3b5dda?.[_0x30427d(0xe2)]()||undefined;}function a203_0x92ae(){const _0x2f84c3=['message','1722945DZhEPG','/ide/','join','2RrZebp','166509FOZnUc','pageId','448676vOtViK','20410hxdanW','find','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','menus','/pages/','2720729BFnLfo','52pVJIVM','990FuiTpo','24bpgLQg','length','path','6PDORiA','file','2580624sWERHY','328359ERHzdT','isInteger','trim','3QnzBhO','num','validation'];a203_0x92ae=function(){return _0x2f84c3;};return a203_0x92ae();}export function buildCustomPageRuntimeUrl(_0x100af1,_0x327741){const _0x5d7127=trimOptional(_0x100af1),_0x489d07=trimOptional(_0x327741);if(!_0x5d7127||!_0x489d07)return undefined;return getPublishedAppDomain(_0x5d7127)+'/'+encodeURIComponent(_0x489d07);}export function buildCustomPageDevelopmentUrl(_0x1e4485,_0x28af1c){const _0x5785f1=a203_0x5437fb,_0x452aa7=trimOptional(_0x1e4485),_0x577dd5=trimOptional(_0x28af1c);if(!_0x452aa7||!_0x577dd5)return undefined;return getAppBaseUrl(_0x452aa7)+_0x5785f1(0xd6)+encodeURIComponent(_0x577dd5);}export async function resolveCustomPageDevelopmentUrl(_0x25037a,_0x4cdc32,_0x105bd2){const _0x580b8e=a203_0x5437fb,_0x59ed21=trimOptional(_0x25037a);if(!_0x59ed21)return undefined;try{const _0x27bc17=(await fetchMenuSnapshot(_0x59ed21,_0x105bd2))[_0x580b8e(0xd5)][_0x580b8e(0xd3)](_0x355a55=>_0x355a55['type']==='react'&&_0x355a55[_0x580b8e(0xd0)]===_0x4cdc32);return buildCustomPageDevelopmentUrl(_0x59ed21,_0x27bc17?.[_0x580b8e(0xdc)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x3fb864,_0xeb90a9){const _0x53c4ea=a203_0x5437fb,_0x4db37b=trimOptional(_0x3fb864);if(!_0x4db37b)return;const _0x187eed=trimOptional(String(_0xeb90a9??''));if(!_0x187eed)return;return getAppBaseUrl(_0x4db37b)+_0x53c4ea(0xe8)+encodeURIComponent(_0x187eed);}export async function validateCustomPageContent(_0x3ef1fe){const _0x4c8e13=a203_0x5437fb,_0x168e91=await validateCustomPageSourceFiles(_0x3ef1fe);if(_0x168e91[_0x4c8e13(0xdb)]>0x0)throw CliErrors['validation']('Invalid\x20Custom\x20Page\x20content:\x20'+_0x168e91['map'](_0x365cfa=>_0x365cfa[_0x4c8e13(0xde)]+':\x20'+_0x365cfa[_0x4c8e13(0xe6)])[_0x4c8e13(0xe9)](';\x20'));}export function readCustomPageId(_0x2eeae9){const _0x342be6=a203_0x5437fb,_0x30f034=_0x2eeae9[_0x342be6(0xe4)]('id');if(!Number[_0x342be6(0xe1)](_0x30f034)||_0x30f034<=0x0)throw CliErrors[_0x342be6(0xe5)]('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x30f034;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x1169d5=a204_0x6fb5;function a204_0x6fb5(_0x26aaf1,_0xd9e26d){_0x26aaf1=_0x26aaf1-0x85;const _0x74385a=a204_0x7438();let _0x6fb555=_0x74385a[_0x26aaf1];return _0x6fb555;}(function(_0x5f03e0,_0x5f4686){const _0x54e789=a204_0x6fb5,_0x303584=_0x5f03e0();while(!![]){try{const _0x30a8aa=-parseInt(_0x54e789(0x8b))/0x1+-parseInt(_0x54e789(0x93))/0x2+-parseInt(_0x54e789(0x95))/0x3+parseInt(_0x54e789(0x89))/0x4+-parseInt(_0x54e789(0x90))/0x5+parseInt(_0x54e789(0x8e))/0x6*(parseInt(_0x54e789(0x97))/0x7)+parseInt(_0x54e789(0x94))/0x8;if(_0x30a8aa===_0x5f4686)break;else _0x303584['push'](_0x303584['shift']());}catch(_0x533196){_0x303584['push'](_0x303584['shift']());}}}(a204_0x7438,0x95a30));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x1169d5(0x8d),'.jsx':a204_0x1169d5(0x8d),'.ts':'typescript','.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=['.jsx',a204_0x1169d5(0x8c)];function a204_0x7438(){const _0x5bc9fd=['303700NmoFWo','message','toLowerCase','1413586BuFrTE','10405360OqnZWy','2812785DUxeLe','filter','371MZWuqN','page\x20files','endsWith','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','trim','4335388wUvkbd','some','188006VYwaPy','.tsx','babel','13758RmxzAW','entries'];a204_0x7438=function(){return _0x5bc9fd;};return a204_0x7438();}export async function validateCustomPageSourceFiles(_0x3032a4){const _0x6fa1aa=a204_0x1169d5,_0x556e7a=Object[_0x6fa1aa(0x8f)](_0x3032a4)[_0x6fa1aa(0x96)](([_0x346c20])=>getParser(_0x346c20));if(!_0x556e7a['some'](([_0x1bc1f5])=>isReactSourceFile(_0x1bc1f5)))return[{'file':_0x6fa1aa(0x85),'message':_0x6fa1aa(0x87)}];const _0x4228ab=await Promise['all'](_0x556e7a['map'](async([_0x5f4889,_0x389b54])=>{const _0xd33e3d=_0x6fa1aa;try{return await format(_0x389b54,{'parser':getParser(_0x5f4889)}),undefined;}catch(_0x206389){return{'file':_0x5f4889,'message':_0x206389 instanceof Error?_0x206389[_0xd33e3d(0x91)]:String(_0x206389)};}}));return _0x4228ab[_0x6fa1aa(0x96)](_0x3ab1d3=>_0x3ab1d3!==undefined);}function getParser(_0x4115a6){const _0x436ad8=a204_0x1169d5,_0x21c451=_0x4115a6['trim']()[_0x436ad8(0x92)]();return Object[_0x436ad8(0x8f)](SOURCE_PARSERS)['find'](([_0x371c4f])=>_0x21c451['endsWith'](_0x371c4f))?.[0x1];}function isReactSourceFile(_0x48a2b7){const _0x3e5698=a204_0x1169d5,_0x41cf84=_0x48a2b7[_0x3e5698(0x88)]()[_0x3e5698(0x92)]();return CUSTOM_PAGE_EXTENSIONS[_0x3e5698(0x8a)](_0x3f6bd3=>_0x41cf84[_0x3e5698(0x86)](_0x3f6bd3));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a205_0x3c4422=a205_0x4a6a;(function(_0xf9a318,_0x25ec57){const _0x6e72e0=a205_0x4a6a,_0x4ed47a=_0xf9a318();while(!![]){try{const _0x367f62=parseInt(_0x6e72e0(0x1f3))/0x1*(parseInt(_0x6e72e0(0x1fa))/0x2)+parseInt(_0x6e72e0(0x1fd))/0x3*(-parseInt(_0x6e72e0(0x1eb))/0x4)+parseInt(_0x6e72e0(0x1fe))/0x5*(-parseInt(_0x6e72e0(0x1f6))/0x6)+parseInt(_0x6e72e0(0x20b))/0x7+-parseInt(_0x6e72e0(0x1f5))/0x8*(parseInt(_0x6e72e0(0x1ea))/0x9)+-parseInt(_0x6e72e0(0x204))/0xa+parseInt(_0x6e72e0(0x20a))/0xb*(parseInt(_0x6e72e0(0x205))/0xc);if(_0x367f62===_0x25ec57)break;else _0x4ed47a['push'](_0x4ed47a['shift']());}catch(_0x5cc437){_0x4ed47a['push'](_0x4ed47a['shift']());}}}(a205_0x1703,0x6f2bd));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':'page','command':'custom-update','description':a205_0x3c4422(0x1e9),'risk':a205_0x3c4422(0x209),'defaultOutputFormat':a205_0x3c4422(0x1ee),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':'page-content','message':a205_0x3c4422(0x1ed),'hint':a205_0x3c4422(0x1f7)}],'flags':[{'name':'id','type':a205_0x3c4422(0x1f8),'required':!![],'description':a205_0x3c4422(0x201)},{'name':a205_0x3c4422(0x1f2),'type':'string','required':!![],'description':a205_0x3c4422(0x1fc)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x206075){readCustomPageId(_0x206075),await readValidatedPageContent(_0x206075);},async 'dryRun'(_0x474dc2){const _0x2b5507=a205_0x3c4422,_0x101c92=await readInput(_0x474dc2);return{'method':_0x2b5507(0x1f1),'url':_0x2b5507(0x207),'body':{'id':_0x101c92[_0x2b5507(0x1ff)],'codeContent':_0x101c92['pageContent']},'description':_0x2b5507(0x206)+_0x101c92['pageId']+'.'};},async 'execute'(_0x49f227){const _0x459e52=a205_0x3c4422,_0x29ecc2=await readInput(_0x49f227),_0x32efbe=await updateCustomPageContent({'pageId':_0x29ecc2[_0x459e52(0x1ff)],'pageContent':_0x29ecc2[_0x459e52(0x1fb)]});if(!Number['isInteger'](_0x32efbe[_0x459e52(0x203)])||_0x32efbe[_0x459e52(0x203)]<=0x0)throw CliErrors[_0x459e52(0x1ec)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x72ec2=buildCustomPageEditUrl(_0x29ecc2[_0x459e52(0x1ef)],_0x29ecc2['pageId']),_0x198375=await resolveCustomPageDevelopmentUrl(_0x29ecc2[_0x459e52(0x1ef)],_0x29ecc2[_0x459e52(0x1ff)],_0x49f227[_0x459e52(0x200)]);return{'ok':!![],'data':{'operation':'page.custom-update','selector':{'appCode':_0x29ecc2[_0x459e52(0x1ef)],'pageId':_0x29ecc2[_0x459e52(0x1ff)]},'before':null,'after':{'pageId':_0x32efbe[_0x459e52(0x1ff)],'version':_0x32efbe['newVersion'],'pageContent':_0x29ecc2[_0x459e52(0x1fb)]},'dryRun':![],'request':_0x29ecc2,..._0x198375?{'pageUrl':_0x198375}:{},..._0x72ec2?{'editPageUrl':_0x72ec2}:{},'warnings':_0x198375?[]:[_0x459e52(0x208)]},'message':_0x459e52(0x202)+_0x29ecc2['pageId']+'.'};}};async function readInput(_0x5a0a84){const _0xc3a061=a205_0x3c4422,_0x19641d=readCustomPageId(_0x5a0a84),_0x3e77e6=_0x5a0a84[_0xc3a061(0x1f0)]('appcode')[_0xc3a061(0x1f4)]()||(await getCustomPageSource(_0x19641d))['appCode']?.[_0xc3a061(0x1f4)]();if(!_0x3e77e6)throw CliErrors[_0xc3a061(0x1f9)]('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x19641d+'.');return{'appCode':_0x3e77e6,'pageId':_0x19641d,'pageContent':await readValidatedPageContent(_0x5a0a84)};}function a205_0x4a6a(_0x159ebd,_0x14b5e1){_0x159ebd=_0x159ebd-0x1e9;const _0x170337=a205_0x1703();let _0x4a6a6a=_0x170337[_0x159ebd];return _0x4a6a6a;}function a205_0x1703(){const _0x5989c5=['page-dir','937yFDmfu','trim','8lOztnK','6wxuEpd','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','number','validation','274wzaLfT','pageContent','Directory\x20containing\x20all\x20complete\x20page\x20files','1162509ghbwye','2237295FGtJia','pageId','cookie','Custom\x20Page\x20ID','Updated\x20Custom\x20Page\x20','newVersion','9066770kSeuMT','381588mlQNwb','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','/smartapi/webcode/page/update/content','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','write','682PSZhps','3755745svPhgh','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','467487qLXgyQ','8wYyYlY','apiError','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','compress','appCode','str','POST'];a205_0x1703=function(){return _0x5989c5;};return a205_0x1703();}async function readValidatedPageContent(_0x25e337){const _0x11f135=a205_0x3c4422,_0x1ddc54=await readCustomPageDirectory(_0x25e337[_0x11f135(0x1f0)](_0x11f135(0x1f2)));return await validateCustomPageContent(_0x1ddc54),_0x1ddc54;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a206_0x1476(){const _0x15b0b3=['page','7979384DQNYjx','64868WlVfDA','compress','nextAction','2592836SvDODZ','length','/smartapi/lovrabet/dataset/','505hfcFRj','read','9DOUkON','alias','query-data-list-status','213012NhlqfI','name','681810RyMMrN','/standard-page-status?appCode=','relatedPages','appCode','manualResolutionRequired','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','status','759YZiwfu','code','569079qnWoAJ','data-list-status','30YMuFkF','source','1282265wcbNnB'];a206_0x1476=function(){return _0x15b0b3;};return a206_0x1476();}const a206_0x252b2f=a206_0x41d2;(function(_0x4cb1ef,_0x2bc31c){const _0x5253d9=a206_0x41d2,_0x2bb2cf=_0x4cb1ef();while(!![]){try{const _0x2d91b3=parseInt(_0x5253d9(0x92))/0x1+parseInt(_0x5253d9(0x98))/0x2+parseInt(_0x5253d9(0xa0))/0x3+-parseInt(_0x5253d9(0x95))/0x4*(-parseInt(_0x5253d9(0x9b))/0x5)+-parseInt(_0x5253d9(0x90))/0x6*(-parseInt(_0x5253d9(0x8e))/0x7)+parseInt(_0x5253d9(0x94))/0x8*(parseInt(_0x5253d9(0x9d))/0x9)+parseInt(_0x5253d9(0xa2))/0xa*(-parseInt(_0x5253d9(0xa9))/0xb);if(_0x2d91b3===_0x2bc31c)break;else _0x2bb2cf['push'](_0x2bb2cf['shift']());}catch(_0x13fa93){_0x2bb2cf['push'](_0x2bb2cf['shift']());}}}(a206_0x1476,0xf0f8f));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a206_0x41d2(_0x2254d2,_0xc29f07){_0x2254d2=_0x2254d2-0x8e;const _0x147673=a206_0x1476();let _0x41d25b=_0x147673[_0x2254d2];return _0x41d25b;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x252b2f(0x93),'command':a206_0x252b2f(0x8f),'description':a206_0x252b2f(0xa7),'risk':a206_0x252b2f(0x9c),'defaultOutputFormat':a206_0x252b2f(0x96),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x252b2f(0x9e),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x42777b){validateDatasetSelector(_0x42777b);},async 'dryRun'(_0x59b3f9){const _0x176507=a206_0x252b2f,_0x28e344=await loadDatasetDetailForPage(_0x59b3f9);return{'method':'GET','url':_0x176507(0x9a)+_0x28e344[_0x176507(0xaa)]+_0x176507(0xa3)+encodeURIComponent(_0x59b3f9[_0x176507(0xa5)]),'description':serializeDryRunDescription({'dataset':{'id':_0x28e344['id'],'code':_0x28e344[_0x176507(0xaa)],'name':_0x28e344[_0x176507(0xa1)]},'action':_0x176507(0x9f)})};},async 'execute'(_0x27ccf1){const _0x25e793=a206_0x252b2f,_0x1bab98=await loadDatasetDetailForPage(_0x27ccf1),_0x3171be=await loadDataListPageStatusForGenerate(_0x27ccf1,_0x1bab98[_0x25e793(0xaa)]),_0x3aa744=getUndeletedRelatedPages(_0x1bab98),_0x3658cc=assessDataListPageState(_0x1bab98[_0x25e793(0xaa)],_0x3171be,{'fallbackUndeletedPages':_0x3aa744});return{'ok':!![],'data':{'datasetCode':_0x1bab98[_0x25e793(0xaa)],'precheckSource':_0x3171be?.[_0x25e793(0x91)]??'related-pages-fallback','status':_0x3658cc[_0x25e793(0xa8)],'manualResolutionRequired':_0x3658cc[_0x25e793(0xa6)],'nextAction':_0x3658cc[_0x25e793(0x97)],'dataListPageStatus':_0x3171be,'relatedPages':{'total':_0x1bab98[_0x25e793(0xa4)]['length'],'undeletedCount':_0x3aa744[_0x25e793(0x99)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x80d055=a207_0xf3ea;(function(_0x28c1d5,_0xd6b873){const _0x1daf98=a207_0xf3ea,_0x426d4a=_0x28c1d5();while(!![]){try{const _0x254f93=-parseInt(_0x1daf98(0x1a5))/0x1*(parseInt(_0x1daf98(0x1ac))/0x2)+-parseInt(_0x1daf98(0x1ce))/0x3*(parseInt(_0x1daf98(0x1c4))/0x4)+parseInt(_0x1daf98(0x1b8))/0x5+-parseInt(_0x1daf98(0x1b0))/0x6+parseInt(_0x1daf98(0x1c2))/0x7*(-parseInt(_0x1daf98(0x1dc))/0x8)+parseInt(_0x1daf98(0x1a4))/0x9*(-parseInt(_0x1daf98(0x1cf))/0xa)+parseInt(_0x1daf98(0x1c9))/0xb*(parseInt(_0x1daf98(0x1aa))/0xc);if(_0x254f93===_0xd6b873)break;else _0x426d4a['push'](_0x426d4a['shift']());}catch(_0x2df252){_0x426d4a['push'](_0x426d4a['shift']());}}}(a207_0x466f,0xa48df));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';function a207_0x466f(){const _0xb3ba7c=['81944vHsroG','bool','write','87201sbOuio','1zZEEom','code','generate-start','boolean','reused','12HwMqJo','page-type','1572642pUcurT','compress','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','progressRate','7959120NgpvGb','Submitted\x20a\x20generate\x20task','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','nextAction','status','appCode','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','PARTIAL_SUCCESS','407360HmXkhp','Reusing\x20an\x20existing\x20generate\x20task','manualResolutionRequired','operationId','source','currentStep','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','POST','taskId','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','791JMgaIT','alias','242044xYdQfI','clientOperationId','dataListPageStatus','number','dryRun','60764594IsgSOu','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','dataset','string','SUCCESS','30Lzyzij','1090PtrTsL','allowGenerate','related-pages-fallback','name','DATA_LIST','page-pattern','/smartapi/lovrabet/dataset/','page','message','CRUD_PAGE_SET','apply','precheck','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)'];a207_0x466f=function(){return _0xb3ba7c;};return a207_0x466f();}function a207_0xf3ea(_0xf852e7,_0x258932){_0xf852e7=_0xf852e7-0x1a2;const _0x466f73=a207_0x466f();let _0xf3ea50=_0x466f73[_0xf852e7];return _0xf3ea50;}export const pageGenerateStart={'service':a207_0x80d055(0x1d6),'command':a207_0x80d055(0x1a7),'description':a207_0x80d055(0x1ca),'risk':a207_0x80d055(0x1a3),'defaultOutputFormat':a207_0x80d055(0x1ad),'rejectedFlags':[{'name':a207_0x80d055(0x1ab),'message':a207_0x80d055(0x1ae),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a207_0x80d055(0x1d4),'message':a207_0x80d055(0x1b6),'hint':a207_0x80d055(0x1be)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x80d055(0x1c3),'type':a207_0x80d055(0x1cc),'description':a207_0x80d055(0x1c1)},{'name':'apply','type':a207_0x80d055(0x1a8),'description':a207_0x80d055(0x1b2)}],async 'validate'(_0x21ced3){validateDatasetSelector(_0x21ced3);},async 'dryRun'(_0x260739){const _0xd01251=a207_0x80d055,_0x4b5729=await prepare(_0x260739);return{'method':_0xd01251(0x1bf),'url':_0xd01251(0x1d5)+_0x4b5729[_0xd01251(0x1cb)][_0xd01251(0x1a6)]+'/generate-standard-pages/start','body':{'appCode':_0x260739[_0xd01251(0x1b5)],'clientOperationId':_0x4b5729['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x4b5729[_0xd01251(0x1cb)]['id'],'code':_0x4b5729[_0xd01251(0x1cb)][_0xd01251(0x1a6)],'name':_0x4b5729[_0xd01251(0x1cb)][_0xd01251(0x1d2)],'fieldCount':_0x4b5729['dataset']['fieldCount']},'precheckSource':_0x4b5729[_0xd01251(0x1c6)]?.[_0xd01251(0x1bc)]??_0xd01251(0x1d1),'action':'generate-start','clientOperationId':_0x4b5729[_0xd01251(0x1c5)],'plannedStatus':_0x4b5729[_0xd01251(0x1da)]['status'],'reason':_0x4b5729[_0xd01251(0x1da)][_0xd01251(0x1d7)]})};},async 'execute'(_0x332639){const _0x30c509=a207_0x80d055;if(!_0x332639[_0x30c509(0x1a2)](_0x30c509(0x1d9))){const _0x4b762e=await pageGenerateStart[_0x30c509(0x1c8)](_0x332639);return{'ok':!![],'message':_0x30c509(0x1db),'data':_0x4b762e};}const _0x474ba7=await prepare(_0x332639);if(!_0x474ba7[_0x30c509(0x1da)][_0x30c509(0x1d0)])return{'ok':![],'message':_0x474ba7[_0x30c509(0x1da)][_0x30c509(0x1d7)],'data':{'datasetCode':_0x474ba7[_0x30c509(0x1cb)][_0x30c509(0x1a6)],'pageType':'DATA_LIST','pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x474ba7[_0x30c509(0x1c5)],'precheckSource':_0x474ba7[_0x30c509(0x1c6)]?.[_0x30c509(0x1bc)]??_0x30c509(0x1d1),'status':_0x474ba7[_0x30c509(0x1da)][_0x30c509(0x1b4)],'manualResolutionRequired':_0x474ba7[_0x30c509(0x1da)][_0x30c509(0x1ba)],'nextAction':_0x474ba7['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x474ba7[_0x30c509(0x1cb)]['code'],_0x332639['appCode'])},'dataListPageStatus':_0x474ba7[_0x30c509(0x1c6)]}};const _0x2c3726=await startGenerateDataListPages(_0x332639[_0x30c509(0x1b5)],_0x474ba7[_0x30c509(0x1cb)]['code'],{'clientOperationId':_0x474ba7[_0x30c509(0x1c5)]}),_0x3fc3fd=_0x2c3726['status']===_0x30c509(0x1cd)||_0x2c3726['status']===_0x30c509(0x1b7)?await loadDataListPageStatusForGenerate(_0x332639,_0x474ba7[_0x30c509(0x1cb)][_0x30c509(0x1a6)]):null,_0x4e425a=assessGenerateOperationState(_0x474ba7[_0x30c509(0x1cb)][_0x30c509(0x1a6)],_0x2c3726[_0x30c509(0x1b4)],_0x3fc3fd);return{'ok':!![],'message':_0x2c3726[_0x30c509(0x1a9)]?_0x30c509(0x1b9):_0x30c509(0x1b1),'data':{'datasetCode':_0x474ba7['dataset'][_0x30c509(0x1a6)],'appCode':_0x332639[_0x30c509(0x1b5)],'pageType':_0x30c509(0x1d3),'pagePattern':_0x30c509(0x1d8),'taskId':_0x2c3726[_0x30c509(0x1c0)]??null,'operationId':_0x2c3726[_0x30c509(0x1bb)]??null,'clientOperationId':_0x474ba7[_0x30c509(0x1c5)],'jobStatus':_0x2c3726['status']??null,'progressRate':typeof _0x2c3726[_0x30c509(0x1af)]===_0x30c509(0x1c7)?_0x2c3726[_0x30c509(0x1af)]:null,'currentStep':_0x2c3726[_0x30c509(0x1bd)]??null,'reused':_0x2c3726[_0x30c509(0x1a9)]===!![],'status':_0x4e425a['status'],'manualResolutionRequired':_0x4e425a['manualResolutionRequired'],'nextAction':_0x4e425a[_0x30c509(0x1b3)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x474ba7[_0x30c509(0x1cb)][_0x30c509(0x1a6)],{'appCode':_0x332639[_0x30c509(0x1b5)],'taskId':_0x2c3726[_0x30c509(0x1c0)],'operationId':_0x2c3726[_0x30c509(0x1bb)],'clientOperationId':_0x474ba7[_0x30c509(0x1c5)]})},'dataListPageStatus':_0x3fc3fd}};}};async function prepare(_0x2e65db){const _0x46d54d=a207_0x80d055,_0x209101=await loadDatasetDetailForPage(_0x2e65db),_0x2df3ac=await loadDataListPageStatusForGenerate(_0x2e65db,_0x209101['code']),_0x3479ef=getUndeletedRelatedPages(_0x209101);return{'dataset':_0x209101,'dataListPageStatus':_0x2df3ac,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x209101[_0x46d54d(0x1a6)],_0x2df3ac,{'fallbackUndeletedPages':_0x3479ef})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a208_0x1b986b=a208_0xbd18;(function(_0x36614e,_0x5b4d31){const _0xd62966=a208_0xbd18,_0x14af33=_0x36614e();while(!![]){try{const _0x5a6728=-parseInt(_0xd62966(0x137))/0x1+-parseInt(_0xd62966(0x12f))/0x2*(-parseInt(_0xd62966(0x150))/0x3)+-parseInt(_0xd62966(0x147))/0x4*(-parseInt(_0xd62966(0x13d))/0x5)+parseInt(_0xd62966(0x153))/0x6+-parseInt(_0xd62966(0x133))/0x7+-parseInt(_0xd62966(0x148))/0x8*(-parseInt(_0xd62966(0x13b))/0x9)+-parseInt(_0xd62966(0x13c))/0xa;if(_0x5a6728===_0x5b4d31)break;else _0x14af33['push'](_0x14af33['shift']());}catch(_0x16f6a6){_0x14af33['push'](_0x14af33['shift']());}}}(a208_0x57f6,0x696f7));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0xbd18(_0x4d3afa,_0x49f3d8){_0x4d3afa=_0x4d3afa-0x12e;const _0x57f66d=a208_0x57f6();let _0xbd18f=_0x57f66d[_0x4d3afa];return _0xbd18f;}function a208_0x57f6(){const _0x158b7c=['taskId','number','generate-status','message','appCode','PARTIAL_SUCCESS','1546671oHAlNx','manualResolutionRequired','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','1306572myllsL','compress','code','2RAZVmG','alias','result','set','467873mZTPkc','clientOperationId','operationId','status','243315SGvtRp','SUCCESS','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','task-id','46323zdwqnA','10696870nZpAlY','10hjtwDe','client-operation-id','toString','operation-id','errorMsg','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','string','str','name','nextAction','1528836MySfuR','488ZKaVvI','progressRate'];a208_0x57f6=function(){return _0x158b7c;};return a208_0x57f6();}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':'page','command':a208_0x1b986b(0x14c),'description':'Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','risk':'read','defaultOutputFormat':a208_0x1b986b(0x154),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x1b986b(0x130),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x1b986b(0x13a),'type':'string','description':a208_0x1b986b(0x139)},{'name':a208_0x1b986b(0x140),'type':a208_0x1b986b(0x143),'description':a208_0x1b986b(0x142)},{'name':'client-operation-id','type':'string','description':a208_0x1b986b(0x152)}],async 'validate'(_0xee46d3){validateDatasetSelector(_0xee46d3),validateGenerateOperationSelector(_0xee46d3);},async 'dryRun'(_0x351d06){const _0x21bd5e=a208_0x1b986b,_0xe24d21=await loadDatasetDetailForPage(_0x351d06),_0x36d04b=_0x351d06[_0x21bd5e(0x144)](_0x21bd5e(0x13a)),_0x314bfa=_0x351d06[_0x21bd5e(0x144)](_0x21bd5e(0x140)),_0x2e0f64=_0x351d06[_0x21bd5e(0x144)](_0x21bd5e(0x13e)),_0xae2a1=new URLSearchParams({'appCode':_0x351d06[_0x21bd5e(0x14e)]});return _0x36d04b&&_0xae2a1[_0x21bd5e(0x132)](_0x21bd5e(0x14a),_0x36d04b),_0x314bfa&&_0xae2a1[_0x21bd5e(0x132)](_0x21bd5e(0x135),_0x314bfa),_0x2e0f64&&_0xae2a1[_0x21bd5e(0x132)](_0x21bd5e(0x134),_0x2e0f64),{'method':'GET','url':'/smartapi/lovrabet/dataset/'+_0xe24d21[_0x21bd5e(0x12e)]+'/generate-standard-pages/status?'+_0xae2a1[_0x21bd5e(0x13f)](),'description':serializeDryRunDescription({'dataset':{'id':_0xe24d21['id'],'code':_0xe24d21[_0x21bd5e(0x12e)],'name':_0xe24d21[_0x21bd5e(0x145)]},'action':'query-generate-operation-status','taskId':_0x36d04b||undefined,'operationId':_0x314bfa||undefined,'clientOperationId':_0x2e0f64||undefined})};},async 'execute'(_0x28aadf){const _0x457249=a208_0x1b986b,_0x53c3b3=await loadDatasetDetailForPage(_0x28aadf),_0x385330=_0x28aadf[_0x457249(0x144)](_0x457249(0x13a)),_0x3854bb=_0x28aadf[_0x457249(0x144)](_0x457249(0x140)),_0x2768ae=_0x28aadf[_0x457249(0x144)]('client-operation-id'),_0xecfeec=await getGenerateDataListPagesStatus(_0x28aadf[_0x457249(0x14e)],_0x53c3b3['code'],{'taskId':_0x385330||undefined,'operationId':_0x3854bb||undefined,'clientOperationId':_0x2768ae||undefined}),_0x1dc713=_0xecfeec[_0x457249(0x136)]===_0x457249(0x138)||_0xecfeec[_0x457249(0x136)]===_0x457249(0x14f),_0x11eb12=_0x1dc713?await loadDataListPageStatusForGenerate(_0x28aadf,_0x53c3b3[_0x457249(0x12e)]):null,_0x10fafe=assessGenerateOperationState(_0x53c3b3['code'],_0xecfeec[_0x457249(0x136)],_0x11eb12),_0x2521b3=_0xecfeec[_0x457249(0x14a)]??_0x385330??undefined,_0x332081=_0xecfeec[_0x457249(0x135)]??_0x3854bb??undefined,_0x3db545=_0xecfeec[_0x457249(0x134)]??_0x2768ae??undefined;return{'ok':!![],'message':_0x10fafe[_0x457249(0x136)]==='operation_failed'?_0xecfeec[_0x457249(0x141)]||_0x10fafe[_0x457249(0x14d)]:_0x10fafe[_0x457249(0x14d)],'data':{'datasetCode':_0x53c3b3[_0x457249(0x12e)],'appCode':_0x28aadf[_0x457249(0x14e)],'taskId':_0x2521b3,'operationId':_0x332081,'clientOperationId':_0x3db545,'jobStatus':_0xecfeec[_0x457249(0x136)]??null,'progressRate':typeof _0xecfeec[_0x457249(0x149)]===_0x457249(0x14b)?_0xecfeec[_0x457249(0x149)]:null,'currentStep':_0xecfeec['currentStep']??null,'errorMsg':_0xecfeec[_0x457249(0x141)]??null,'status':_0x10fafe[_0x457249(0x136)],'manualResolutionRequired':_0x10fafe[_0x457249(0x151)],'nextAction':_0x10fafe[_0x457249(0x146)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x53c3b3[_0x457249(0x12e)],{'appCode':_0x28aadf['appCode'],'taskId':_0x2521b3,'operationId':_0x332081,'clientOperationId':_0x3db545})},'dataListPageStatus':_0x11eb12,'result':_0xecfeec[_0x457249(0x131)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17ee48,_0x6ebcd8){const _0x28afd7=a209_0x321a,_0xe5191a=_0x17ee48();while(!![]){try{const _0x5aaacb=-parseInt(_0x28afd7(0x1e1))/0x1*(-parseInt(_0x28afd7(0x1e4))/0x2)+-parseInt(_0x28afd7(0x1e2))/0x3*(-parseInt(_0x28afd7(0x1e5))/0x4)+parseInt(_0x28afd7(0x1e8))/0x5*(parseInt(_0x28afd7(0x1e9))/0x6)+parseInt(_0x28afd7(0x1ea))/0x7*(parseInt(_0x28afd7(0x1e7))/0x8)+-parseInt(_0x28afd7(0x1e3))/0x9*(-parseInt(_0x28afd7(0x1e6))/0xa)+-parseInt(_0x28afd7(0x1e0))/0xb+parseInt(_0x28afd7(0x1df))/0xc;if(_0x5aaacb===_0x6ebcd8)break;else _0xe5191a['push'](_0xe5191a['shift']());}catch(_0x10079c){_0xe5191a['push'](_0xe5191a['shift']());}}}(a209_0x90ab,0x2202f));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';import{pageCustomPublish}from'../../commands/page/custom/publish.js';function a209_0x321a(_0x3e41fb,_0x561810){_0x3e41fb=_0x3e41fb-0x1df;const _0x90abea=a209_0x90ab();let _0x321aa8=_0x90abea[_0x3e41fb];return _0x321aa8;}import{pageCustomUpdate}from'../../commands/page/custom/update.js';function a209_0x90ab(){const _0x57a6d0=['42VDJjvO','225071ZCZccY','277404ttYrrS','1165054VYCEsF','10196ABrTzY','60nbwHYr','81IuVMyZ','4aCcdDo','6232ytSQNq','1500BzmegH','8PtcpEK','97895BKYDZa'];a209_0x90ab=function(){return _0x57a6d0;};return a209_0x90ab();}export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0x4d6771=a210_0x1ce2;(function(_0x343a61,_0x13bdb7){const _0x21169a=a210_0x1ce2,_0x75eaf0=_0x343a61();while(!![]){try{const _0x5b6b5d=-parseInt(_0x21169a(0x1fb))/0x1+-parseInt(_0x21169a(0x227))/0x2*(-parseInt(_0x21169a(0x218))/0x3)+parseInt(_0x21169a(0x1fa))/0x4*(-parseInt(_0x21169a(0x229))/0x5)+parseInt(_0x21169a(0x226))/0x6*(-parseInt(_0x21169a(0x20b))/0x7)+parseInt(_0x21169a(0x22d))/0x8+parseInt(_0x21169a(0x210))/0x9+-parseInt(_0x21169a(0x21c))/0xa*(-parseInt(_0x21169a(0x213))/0xb);if(_0x5b6b5d===_0x13bdb7)break;else _0x75eaf0['push'](_0x75eaf0['shift']());}catch(_0x2985b6){_0x75eaf0['push'](_0x75eaf0['shift']());}}}(a210_0x21df,0x40b4b));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';function a210_0x1ce2(_0x10a9c2,_0x3bb1d7){_0x10a9c2=_0x10a9c2-0x1f1;const _0x21df6e=a210_0x21df();let _0x1ce2b8=_0x21df6e[_0x10a9c2];return _0x1ce2b8;}import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';function a210_0x21df(){const _0x7cd3e3=['single','Pull\x20page\x20schema\x20to\x20local\x20files','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','utf8','bool','appCode','lastSync','Dataset\x20\x22','code','762uJKWFD','730zHqPKd','localPath','314135DVdHHy','items','boolean','length','219888vYtqyd','reason','pages','detail','version-tag','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','/smartapi/lovrabet/detail?pageId=','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','local\x20unsynced\x20changes','number','batch','would_pull','force','page','4MTluET','373345ErIkRw','\x20skipped','string','type','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','relatedPages','all','validation','hash','versionTag','pageVersion','filter','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','mode','\x20pulled,\x20','status','1652yHYOAn','Page\x20ID','datasetCode','str','deleted','3932712hgFbmT','lockFilePath','conflict','4488GhznQe','map','push','name','GET','1203BuBMYu','pageId','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','Pull\x20complete:\x20','2950RiCcaE'];a210_0x21df=function(){return _0x7cd3e3;};return a210_0x21df();}export const pagePull={'service':a210_0x4d6771(0x1f9),'command':'pull','description':a210_0x4d6771(0x21e),'risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x4d6771(0x1f5),'description':a210_0x4d6771(0x20c)},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a210_0x4d6771(0x1fd),'description':a210_0x4d6771(0x1ff)},{'name':'version-tag','type':a210_0x4d6771(0x1fd),'description':a210_0x4d6771(0x207)},{'name':a210_0x4d6771(0x1f8),'type':a210_0x4d6771(0x22b),'description':a210_0x4d6771(0x1f1)}],async 'validate'(_0x5a39ab){validatePageTargetSelector(_0x5a39ab);},async 'dryRun'(_0x3dc6df){const _0x436f83=a210_0x4d6771,_0x5296c1=await buildPullPlan(_0x3dc6df);return{'method':_0x436f83(0x217),'url':_0x5296c1[_0x436f83(0x208)]===_0x436f83(0x21d)?_0x436f83(0x1f2)+(_0x5296c1[_0x436f83(0x22a)][0x0]?.[_0x436f83(0x230)][_0x436f83(0x219)]??''):_0x436f83(0x21a),'body':{'appCode':_0x3dc6df[_0x436f83(0x222)],'mode':_0x5296c1[_0x436f83(0x208)],'targetDatasetCode':_0x5296c1[_0x436f83(0x20d)]??null,'pages':_0x5296c1[_0x436f83(0x22a)][_0x436f83(0x214)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x5296c1[_0x436f83(0x208)],'datasetCode':_0x5296c1['datasetCode']??null,'totalCandidates':_0x5296c1['items']['length'],'totalWouldPull':_0x5296c1[_0x436f83(0x22a)][_0x436f83(0x206)](_0x5e16b1=>_0x5e16b1[_0x436f83(0x20a)]===_0x436f83(0x1f7))['length'],'totalConflicts':_0x5296c1[_0x436f83(0x22a)][_0x436f83(0x206)](_0x19bb66=>_0x19bb66[_0x436f83(0x20a)]==='conflict')['length']})};},async 'execute'(_0x563397){const _0x3eb0e8=a210_0x4d6771,_0x1a8a55=loadPageProjectConfig(_0x563397['appCode']),_0x543d15=await readPageLockFile(_0x1a8a55[_0x3eb0e8(0x211)]),{lockData:_0x12b6f1,appLock:_0x456d25}=ensurePageLockScope(_0x543d15??createEmptyPageLock(),_0x563397[_0x3eb0e8(0x222)]),_0x1b53da=await buildPullPlan(_0x563397),_0x10f0f1=_0x563397[_0x3eb0e8(0x221)](_0x3eb0e8(0x1f8));if(_0x1b53da[_0x3eb0e8(0x208)]==='single'&&_0x1b53da[_0x3eb0e8(0x22a)][0x0]?.[_0x3eb0e8(0x20a)]===_0x3eb0e8(0x212)&&!_0x10f0f1)throw CliErrors[_0x3eb0e8(0x202)](_0x3eb0e8(0x1f3)+_0x1b53da['items'][0x0][_0x3eb0e8(0x228)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x17d552=[],_0x26d897=[];for(const _0x4df31e of _0x1b53da[_0x3eb0e8(0x22a)]){if(_0x4df31e['status']==='conflict'&&!_0x10f0f1){_0x26d897['push']({'pageId':_0x4df31e[_0x3eb0e8(0x230)]['pageId'],'type':_0x4df31e[_0x3eb0e8(0x230)][_0x3eb0e8(0x1fe)],'title':_0x4df31e[_0x3eb0e8(0x230)]['name'],'localPath':_0x4df31e[_0x3eb0e8(0x228)],'reason':_0x4df31e[_0x3eb0e8(0x22e)]??_0x3eb0e8(0x1f4)});continue;}await ensureParentDirectory(_0x4df31e[_0x3eb0e8(0x228)]);const _0x19a61a=serializePageSchemaForFile(_0x4df31e['detail']['code']);await writeFile(_0x4df31e[_0x3eb0e8(0x228)],_0x19a61a,_0x3eb0e8(0x220)),_0x456d25[_0x3eb0e8(0x22f)][String(_0x4df31e[_0x3eb0e8(0x230)][_0x3eb0e8(0x219)])]=buildLockEntry(_0x4df31e['detail'],_0x19a61a),_0x17d552[_0x3eb0e8(0x215)]({'pageId':_0x4df31e[_0x3eb0e8(0x230)][_0x3eb0e8(0x219)],'type':_0x4df31e['detail'][_0x3eb0e8(0x1fe)],'title':_0x4df31e[_0x3eb0e8(0x230)][_0x3eb0e8(0x216)],'localPath':_0x4df31e[_0x3eb0e8(0x228)]});}return _0x456d25[_0x3eb0e8(0x223)]=new Date()['toISOString'](),await writePageLockFile(_0x1a8a55['lockFilePath'],_0x12b6f1),{'ok':!![],'message':_0x3eb0e8(0x21b)+_0x17d552[_0x3eb0e8(0x22c)]+_0x3eb0e8(0x209)+_0x26d897[_0x3eb0e8(0x22c)]+_0x3eb0e8(0x1fc),'data':{'appCode':_0x563397[_0x3eb0e8(0x222)],'pulledPages':_0x17d552,'skippedPages':_0x26d897,'totalPulled':_0x17d552[_0x3eb0e8(0x22c)],'totalSkipped':_0x26d897[_0x3eb0e8(0x22c)]}};}};async function buildPullPlan(_0x25cd41){const _0x4f9d26=a210_0x4d6771,_0x363c71=loadPageProjectConfig(_0x25cd41[_0x4f9d26(0x222)]),_0x3fc3d2=await readPageLockFile(_0x363c71[_0x4f9d26(0x211)]),{appLock:_0x5d9d8a}=ensurePageLockScope(_0x3fc3d2??createEmptyPageLock(),_0x25cd41[_0x4f9d26(0x222)]),_0x2e1399=getPageIdFlag(_0x25cd41);if(_0x2e1399!==undefined){const _0x4aedd1=await loadPageDetailForPage(_0x25cd41,_0x2e1399);return{'mode':_0x4f9d26(0x21d),'items':[await inspectPullTarget(_0x363c71,_0x5d9d8a[_0x4f9d26(0x22f)][String(_0x4aedd1[_0x4f9d26(0x219)])],_0x4aedd1)]};}const _0x258197=await loadDatasetDetailForPage(_0x25cd41),_0x4c2dba=_0x258197[_0x4f9d26(0x200)][_0x4f9d26(0x206)](_0x4e6c9=>!_0x4e6c9[_0x4f9d26(0x20f)]);if(_0x4c2dba[_0x4f9d26(0x22c)]===0x0)throw CliErrors['validation'](_0x4f9d26(0x224)+_0x258197[_0x4f9d26(0x225)]+_0x4f9d26(0x21f));const _0x214ed0=await Promise[_0x4f9d26(0x201)](_0x4c2dba[_0x4f9d26(0x214)](_0x1f6576=>loadPageDetailForPage(_0x25cd41,_0x1f6576['id']))),_0x3a8f56=selectVersionTagGroup(_0x214ed0,_0x43e621=>_0x43e621[_0x4f9d26(0x204)],_0x25cd41[_0x4f9d26(0x20e)](_0x4f9d26(0x231)));return{'mode':_0x4f9d26(0x1f6),'datasetCode':_0x258197[_0x4f9d26(0x225)],'items':await Promise[_0x4f9d26(0x201)](_0x3a8f56[_0x4f9d26(0x22a)]['map'](_0x2c40f0=>inspectPullTarget(_0x363c71,_0x5d9d8a[_0x4f9d26(0x22f)][String(_0x2c40f0['pageId'])],_0x2c40f0)))};}async function inspectPullTarget(_0xc7e089,_0x375e16,_0x59f54c){const _0x5d45f1=a210_0x4d6771,_0x507fab=resolvePageFilePath(_0xc7e089,_0x59f54c[_0x5d45f1(0x219)],_0x59f54c[_0x5d45f1(0x1fe)]),_0x5da4a0=await fileExists(_0x507fab);if(!_0x5da4a0){const _0x5d11d3=serializePageSchemaForFile(_0x59f54c[_0x5d45f1(0x225)]);return{'detail':_0x59f54c,'localPath':_0x507fab,'localHash':computePageContentHash(_0x5d11d3),'status':_0x5d45f1(0x1f7)};}const _0x4e9c34=await computePageFileHash(_0x507fab);if(!_0x375e16||_0x4e9c34!==_0x375e16[_0x5d45f1(0x203)])return{'detail':_0x59f54c,'localPath':_0x507fab,'localHash':_0x4e9c34,'status':_0x5d45f1(0x212),'reason':_0x5d45f1(0x1f4)};return{'detail':_0x59f54c,'localPath':_0x507fab,'localHash':_0x4e9c34,'status':_0x5d45f1(0x1f7)};}function buildLockEntry(_0x29e0cc,_0x2e2d50){const _0x1350f7=a210_0x4d6771;return{'hash':computePageContentHash(_0x2e2d50),'pageId':_0x29e0cc[_0x1350f7(0x219)],'pageVersion':_0x29e0cc[_0x1350f7(0x205)],'type':_0x29e0cc[_0x1350f7(0x1fe)],'title':_0x29e0cc[_0x1350f7(0x216)],'datasetIds':_0x29e0cc['datasetIds'],'versionTag':_0x29e0cc['versionTag']};}function toPreviewItem(_0x39cad4){const _0x58b244=a210_0x4d6771;return{'pageId':_0x39cad4['detail']['pageId'],'type':_0x39cad4[_0x58b244(0x230)][_0x58b244(0x1fe)],'title':_0x39cad4['detail'][_0x58b244(0x216)],'localPath':_0x39cad4['localPath'],'status':_0x39cad4[_0x58b244(0x20a)],..._0x39cad4[_0x58b244(0x22e)]?{'reason':_0x39cad4[_0x58b244(0x22e)]}:{}};}
|