@lovrabet/rabetbase-cli 2.5.0-beta.5 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/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/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-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/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/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/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/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/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/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.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/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/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/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 +2 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a143_0x46f7a9=a143_0x4844;(function(_0x345da7,_0x2722a7){const _0x1bc021=a143_0x4844,_0x491c04=_0x345da7();while(!![]){try{const _0x2306d2=-parseInt(_0x1bc021(0xd2))/0x1+parseInt(_0x1bc021(0xa0))/0x2+-parseInt(_0x1bc021(0xd5))/0x3*(-parseInt(_0x1bc021(0xaf))/0x4)+-parseInt(_0x1bc021(0xd7))/0x5*(-parseInt(_0x1bc021(0xd9))/0x6)+-parseInt(_0x1bc021(0xa9))/0x7+parseInt(_0x1bc021(0xb0))/0x8+-parseInt(_0x1bc021(0xa4))/0x9*(-parseInt(_0x1bc021(0xce))/0xa);if(_0x2306d2===_0x2722a7)break;else _0x491c04['push'](_0x491c04['shift']());}catch(_0x2dd932){_0x491c04['push'](_0x491c04['shift']());}}}(a143_0x5a38,0xd64c3));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a143_0x46f7a9(0xd6),'en-US'];export const pageCreate={'service':'page','command':a143_0x46f7a9(0xbd),'description':a143_0x46f7a9(0xc1),'risk':a143_0x46f7a9(0xc8),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a143_0x46f7a9(0xbe),'message':a143_0x46f7a9(0xac),'hint':a143_0x46f7a9(0xbb)}],'flags':[{'name':'name','type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xb3)},{'name':a143_0x46f7a9(0xc3),'type':'number','description':a143_0x46f7a9(0xa1)},{'name':a143_0x46f7a9(0xc0),'type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xa7),'enum':[a143_0x46f7a9(0xd8)]},{'name':a143_0x46f7a9(0xc4),'type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xa6)},APPCODE_FLAG],async 'validate'(_0x124133){const _0x29fefc=a143_0x46f7a9,_0x599e50=readPagePattern(_0x124133);await validateCustomPageContent(readInput(_0x124133,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x599e50)[_0x29fefc(0xb5)]);},async 'dryRun'(_0x325efe){const _0x50d107=a143_0x46f7a9,{input:_0x236873}=await prepare(_0x325efe);return{'method':'POST','url':'/smartapi/webcode/page/create','body':{'appCode':_0x236873['appCode'],'pageName':_0x236873['pageName'],..._0x236873['parentMenuId']!=null?{'parentMenuId':_0x236873[_0x50d107(0xb1)]}:{},'createMenu':_0x236873['createMenu'],'codeContent':_0x236873[_0x50d107(0xb5)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON[_0x50d107(0xca)](_0x236873[_0x50d107(0xd1)])+_0x50d107(0xaa)};},async 'execute'(_0x891731){const _0x34bef5=a143_0x46f7a9,_0x1cc0fe=await prepare(_0x891731),_0x4b24ae=await createCustomPage(_0x1cc0fe[_0x34bef5(0xbf)]);if(!Number['isInteger'](_0x4b24ae[_0x34bef5(0xd3)])||_0x4b24ae[_0x34bef5(0xd3)]<=0x0)throw CliErrors[_0x34bef5(0xcd)](_0x34bef5(0xb2));return{'ok':!![],'data':buildMutationData(_0x1cc0fe,_0x4b24ae),'message':_0x34bef5(0xcc)+_0x4b24ae[_0x34bef5(0xd3)]+'.'};}};async function prepare(_0x41cb8e){const _0x487d0c=a143_0x46f7a9,_0x290666=readPagePattern(_0x41cb8e);if(_0x290666===null)return{'input':readInput(_0x41cb8e,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x290666),'warnings':[],'pagePattern':_0x290666};let _0x2a42dc=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3919c3=[];try{const _0x2efb4f=await getI18nInfo(_0x41cb8e[_0x487d0c(0xb7)]);_0x2efb4f[_0x487d0c(0xae)]&&_0x2efb4f[_0x487d0c(0xd0)]?.['length']&&(_0x2a42dc=_0x2efb4f[_0x487d0c(0xd0)]);}catch{_0x3919c3=[_0x487d0c(0xb8)];}return{'input':readInput(_0x41cb8e,_0x2a42dc,_0x290666),'warnings':_0x3919c3,'pagePattern':_0x290666};}function a143_0x5a38(){const _0x3d7427=['stringify','pageName\x20cannot\x20exceed\x20100\x20characters.','Created\x20Custom\x20Page\x20','apiError','3710Sjshcj','isInteger','langs','pageName','834143PoSUGZ','pageId','pagePattern','175254vfPcUP','zh-CN','21265cEWMDa','BLANK','6QSwsyT','version','str','2272472BKplVJ','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','keys','CUSTOM','31491nKuonh','trim','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','now','11972779lwBnZX','\x20and\x20its\x20menu\x20entry.','page.create','page\x20create\x20does\x20not\x20accept\x20--page-type.','num','enableI18n','48GEQnQW','2261352PGzDRI','parentMenuId','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','isNaN','files','warnings','appCode','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','name','menuPath','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','length','create','page-type','input','page-pattern','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','validation','parent-menu-id','page-content','Custom_page_','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','string','write','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.'];a143_0x5a38=function(){return _0x3d7427;};return a143_0x5a38();}function readPagePattern(_0x5a9e1f){const _0x54276b=a143_0x46f7a9,_0x7965d7=_0x5a9e1f['str'](_0x54276b(0xc0))[_0x54276b(0xa5)](),_0x4f826a=_0x5a9e1f[_0x54276b(0x9f)]('page-content')[_0x54276b(0xa5)]()['length']>0x0;if(_0x7965d7&&_0x4f826a)throw CliErrors['validation']('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x4f826a)return null;if(!_0x7965d7)throw CliErrors[_0x54276b(0xc2)]('Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.');if(_0x7965d7!==_0x54276b(0xd8))throw CliErrors['validation']('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x7965d7;}function readInput(_0x485829,_0x71fda=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1c9ab6=readPagePattern(_0x485829)){const _0x50bf4c=a143_0x46f7a9,_0x5182c3=_0x485829[_0x50bf4c(0x9f)](_0x50bf4c(0xb9))[_0x50bf4c(0xa5)]()||_0x50bf4c(0xc5)+Date[_0x50bf4c(0xa8)]();if(_0x5182c3[_0x50bf4c(0xbc)]>0x64)throw CliErrors[_0x50bf4c(0xc2)](_0x50bf4c(0xcb));const _0x3e2c32=_0x485829[_0x50bf4c(0xad)](_0x50bf4c(0xc3),NaN),_0x54a3fc=!Number[_0x50bf4c(0xb4)](_0x3e2c32);if(_0x54a3fc&&(!Number[_0x50bf4c(0xcf)](_0x3e2c32)||_0x3e2c32<=0x0))throw CliErrors[_0x50bf4c(0xc2)](_0x50bf4c(0xc6));return{'appCode':_0x485829['appCode'],'pageName':_0x5182c3,..._0x54a3fc?{'parentMenuId':_0x3e2c32}:{},'createMenu':!![],'files':_0x1c9ab6===null?parseCustomPageContent(_0x485829[_0x50bf4c(0x9f)](_0x50bf4c(0xc4))):buildInitialFiles(_0x5182c3,_0x71fda)};}function a143_0x4844(_0x32c062,_0x4140b8){_0x32c062=_0x32c062-0x9e;const _0x5a38ce=a143_0x5a38();let _0x484477=_0x5a38ce[_0x32c062];return _0x484477;}function buildMutationData(_0x195747,_0x117372){const _0x3f717e=a143_0x46f7a9,{input:_0x9db4b1}=_0x195747,_0x1276fd=_0x117372&&buildCustomPageDevelopmentUrl(_0x9db4b1['appCode'],_0x117372[_0x3f717e(0xba)]),_0x31a8df=_0x117372&&buildCustomPageEditUrl(_0x9db4b1[_0x3f717e(0xb7)],_0x117372['pageId']);return{'operation':_0x3f717e(0xab),'pageType':_0x3f717e(0xa3),'pagePattern':_0x195747[_0x3f717e(0xd4)],'selector':{'appCode':_0x9db4b1[_0x3f717e(0xb7)],'pageName':_0x9db4b1['pageName']},'before':null,'after':{'pageId':_0x117372?.[_0x3f717e(0xd3)]??null,'pageName':_0x117372?.[_0x3f717e(0xd1)]??_0x9db4b1['pageName'],'appCode':_0x117372?.[_0x3f717e(0xb7)]??_0x9db4b1[_0x3f717e(0xb7)],'version':_0x117372?.[_0x3f717e(0x9e)]??null,'menuId':_0x117372?.['menuId']??null,'menuPath':_0x117372?.['menuPath']??null,'files':_0x117372?.['files']??Object[_0x3f717e(0xa2)](_0x9db4b1['files'])},'dryRun':_0x117372===undefined,'request':_0x9db4b1,..._0x1276fd?{'pageUrl':_0x1276fd}:{},..._0x31a8df?{'editPageUrl':_0x31a8df}:{},'warnings':[..._0x195747[_0x3f717e(0xb6)],..._0x117372&&!_0x1276fd?[_0x3f717e(0xc9)]:[]]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a144_0x4936(){const _0x2b39e2=['page','294sSyHHQ','getHours','7022sVvxXd','getMinutes','3744044fDWgFz','padStart','number','appcode','138urjLic','cookie','custom-detail','trim','appCode','getFullYear','36818Qbclio','74824cgLvaj','48293EaJxsh','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','Retrieved\x20Custom\x20Page\x20','2124010SNHRlf','747OXmKbJ','pageCode','24269800zevnUT','read'];a144_0x4936=function(){return _0x2b39e2;};return a144_0x4936();}const a144_0x431b49=a144_0x2af8;(function(_0x65f13e,_0x5da42e){const _0xa4793e=a144_0x2af8,_0x460f07=_0x65f13e();while(!![]){try{const _0x406fe5=parseInt(_0xa4793e(0x1eb))/0x1+parseInt(_0xa4793e(0x1df))/0x2*(-parseInt(_0xa4793e(0x1e5))/0x3)+-parseInt(_0xa4793e(0x1e1))/0x4+parseInt(_0xa4793e(0x1f0))/0x5+parseInt(_0xa4793e(0x1dd))/0x6*(-parseInt(_0xa4793e(0x1ed))/0x7)+-parseInt(_0xa4793e(0x1ec))/0x8*(parseInt(_0xa4793e(0x1f1))/0x9)+parseInt(_0xa4793e(0x1f3))/0xa;if(_0x406fe5===_0x5da42e)break;else _0x460f07['push'](_0x460f07['shift']());}catch(_0x7abd4d){_0x460f07['push'](_0x460f07['shift']());}}}(a144_0x4936,0xa537d));import{getCustomPageSource}from'../../../core/api-client.js';function a144_0x2af8(_0x278a3,_0x59c6f1){_0x278a3=_0x278a3-0x1dc;const _0x49369d=a144_0x4936();let _0x2af88f=_0x49369d[_0x278a3];return _0x2af88f;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a144_0x431b49(0x1dc),'command':a144_0x431b49(0x1e7),'description':a144_0x431b49(0x1ee),'risk':a144_0x431b49(0x1f4),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x431b49(0x1e3),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xffd2a9){readCustomPageId(_0xffd2a9);},async 'execute'(_0x4e14dd){const _0x117097=a144_0x431b49,_0x34f68d=readCustomPageId(_0x4e14dd),_0x3c81e9=await getCustomPageSource(_0x34f68d),{bundle:_0x5916d3,createTime:_0x3b13e4,updateTime:_0x431577,..._0x18f6fa}=_0x3c81e9,_0x315974=_0x3c81e9['id']??_0x34f68d,_0xbb1236=_0x3c81e9[_0x117097(0x1e9)]?.['trim']()||_0x4e14dd['str'](_0x117097(0x1e4))[_0x117097(0x1e8)](),_0x5b1522=buildCustomPageRuntimeUrl(_0xbb1236,_0x3c81e9[_0x117097(0x1f2)]),_0x14dc4e=buildCustomPageEditUrl(_0xbb1236,_0x315974),_0x3df653=await resolveCustomPageDevelopmentUrl(_0xbb1236,_0x315974,_0x4e14dd[_0x117097(0x1e6)]);return{'ok':!![],'data':{..._0x18f6fa,..._0x5b1522?{'runtimePageUrl':_0x5b1522}:{},..._0x3df653?{'pageUrl':_0x3df653}:{},..._0x14dc4e?{'editPageUrl':_0x14dc4e}:{},..._0x3b13e4==null?{}:{'createTime':formatTime(_0x3b13e4)},..._0x431577==null?{}:{'updateTime':formatTime(_0x431577)}},'message':_0x117097(0x1ef)+_0x34f68d+'.'};}};function formatTime(_0x52a539){const _0x419990=a144_0x431b49,_0x5512ac=new Date(_0x52a539);if(Number['isNaN'](_0x5512ac['getTime']()))return String(_0x52a539);const _0x4ffaef=[_0x5512ac[_0x419990(0x1ea)](),String(_0x5512ac['getMonth']()+0x1)[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac['getDate']())[_0x419990(0x1e2)](0x2,'0')]['join']('-'),_0x1a818d=[String(_0x5512ac[_0x419990(0x1de)]())[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac[_0x419990(0x1e0)]())[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac['getSeconds']())['padStart'](0x2,'0')]['join'](':');return _0x4ffaef+'\x20'+_0x1a818d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a145_0x4e7d52=a145_0x3aea;(function(_0x4a8027,_0x295ba4){const _0x1d2a5b=a145_0x3aea,_0x1c3e5e=_0x4a8027();while(!![]){try{const _0x2a3e38=parseInt(_0x1d2a5b(0x191))/0x1*(-parseInt(_0x1d2a5b(0x196))/0x2)+parseInt(_0x1d2a5b(0x18a))/0x3+parseInt(_0x1d2a5b(0x195))/0x4*(-parseInt(_0x1d2a5b(0x181))/0x5)+parseInt(_0x1d2a5b(0x182))/0x6*(-parseInt(_0x1d2a5b(0x185))/0x7)+-parseInt(_0x1d2a5b(0x183))/0x8*(-parseInt(_0x1d2a5b(0x18e))/0x9)+-parseInt(_0x1d2a5b(0x192))/0xa*(parseInt(_0x1d2a5b(0x18c))/0xb)+parseInt(_0x1d2a5b(0x18d))/0xc*(parseInt(_0x1d2a5b(0x194))/0xd);if(_0x2a3e38===_0x295ba4)break;else _0x1c3e5e['push'](_0x1c3e5e['shift']());}catch(_0x4bc305){_0x1c3e5e['push'](_0x1c3e5e['shift']());}}}(a145_0x2388,0x7f456));function a145_0x3aea(_0x5e4e96,_0x5229c2){_0x5e4e96=_0x5e4e96-0x17f;const _0x238833=a145_0x2388();let _0x3aeaad=_0x238833[_0x5e4e96];return _0x3aeaad;}function a145_0x2388(){const _0x44507f=['203910ynpwiq','100976aPdveM','read','98FsSARk','custom-list','react','appCode','page','1683783TNrFRa','menus','66thWhgM','12cQHELF','270baicnT','No\x20Custom\x20Pages\x20found.','label','20369wkeiWO','1434710wmkqgc','flatMap','35505379VqLMQo','436JTujxT','82MeZWLf','type','pageId','\x20Custom\x20Page(s).','length','44865CYgjvM'];a145_0x2388=function(){return _0x44507f;};return a145_0x2388();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a145_0x4e7d52(0x189),'command':a145_0x4e7d52(0x186),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a145_0x4e7d52(0x184),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5bbef0){const _0x537264=a145_0x4e7d52,_0x5af601=(await fetchMenuSnapshot(_0x5bbef0[_0x537264(0x188)],_0x5bbef0['cookie']))[_0x537264(0x18b)][_0x537264(0x193)](_0x32260c=>{const _0x1f3280=_0x537264;if(_0x32260c[_0x1f3280(0x197)]!==_0x1f3280(0x187)||_0x32260c[_0x1f3280(0x198)]==null)return[];const _0x3b15a3=buildCustomPageDevelopmentUrl(_0x5bbef0['appCode'],_0x32260c['path']),_0x59d9f1=buildCustomPageEditUrl(_0x5bbef0[_0x1f3280(0x188)],_0x32260c['pageId']);return[{'pageId':_0x32260c[_0x1f3280(0x198)],'label':_0x32260c[_0x1f3280(0x190)],..._0x3b15a3?{'pageUrl':_0x3b15a3}:{},..._0x59d9f1?{'editPageUrl':_0x59d9f1}:{}}];});return{'ok':!![],'data':{'pages':_0x5af601},'message':_0x5af601['length']===0x0?_0x537264(0x18f):'Found\x20'+_0x5af601[_0x537264(0x180)]+_0x537264(0x17f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x8cfbde=a146_0x343a;(function(_0x85628,_0x7e7c14){const _0x2aa027=a146_0x343a,_0x48dd09=_0x85628();while(!![]){try{const _0x34877d=-parseInt(_0x2aa027(0x181))/0x1+-parseInt(_0x2aa027(0x17a))/0x2*(parseInt(_0x2aa027(0x199))/0x3)+-parseInt(_0x2aa027(0x17d))/0x4*(parseInt(_0x2aa027(0x176))/0x5)+parseInt(_0x2aa027(0x18d))/0x6*(parseInt(_0x2aa027(0x17e))/0x7)+-parseInt(_0x2aa027(0x19b))/0x8+-parseInt(_0x2aa027(0x17f))/0x9+parseInt(_0x2aa027(0x195))/0xa*(parseInt(_0x2aa027(0x197))/0xb);if(_0x34877d===_0x7e7c14)break;else _0x48dd09['push'](_0x48dd09['shift']());}catch(_0x4659a7){_0x48dd09['push'](_0x48dd09['shift']());}}}(a146_0x2c4f,0xaabc6));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a146_0x8cfbde(0x188),'command':a146_0x8cfbde(0x18b),'description':a146_0x8cfbde(0x186),'risk':'write','defaultOutputFormat':a146_0x8cfbde(0x177),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a146_0x8cfbde(0x17c)},{'name':a146_0x8cfbde(0x190),'type':a146_0x8cfbde(0x184),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x2e0c8e){readCustomPageId(_0x2e0c8e);},async 'dryRun'(_0x53e6cf){const _0x336ec7=a146_0x8cfbde,_0x40d081=readInput(_0x53e6cf);return{'method':_0x336ec7(0x19a),'url':_0x336ec7(0x19d),'body':{'id':_0x40d081[_0x336ec7(0x179)],..._0x40d081[_0x336ec7(0x190)]?{'remark':_0x40d081[_0x336ec7(0x190)]}:{}},'description':_0x336ec7(0x193)+_0x40d081['pageId']+'.'};},async 'execute'(_0x8c689f){const _0x12057e=a146_0x8cfbde,_0x364d7b=readInput(_0x8c689f);await getCustomPageSource(_0x364d7b['pageId']);const _0x5b6f6d=await publishCustomPage(_0x364d7b);if(!Number[_0x12057e(0x180)](_0x5b6f6d)||_0x5b6f6d!==_0x364d7b[_0x12057e(0x179)])throw CliErrors[_0x12057e(0x187)](_0x12057e(0x191));const _0x22661a=await getCustomPageSource(_0x364d7b[_0x12057e(0x179)]);if(_0x22661a[_0x12057e(0x196)]!=='FORMAL')throw CliErrors['apiError'](_0x12057e(0x18c)+(_0x22661a[_0x12057e(0x196)]??_0x12057e(0x185))+'.');const _0x58f999=_0x22661a[_0x12057e(0x18f)]?.[_0x12057e(0x183)](),_0x4f1133=buildCustomPageEditUrl(_0x58f999,_0x364d7b[_0x12057e(0x179)]),_0x584a7a=await resolveCustomPageDevelopmentUrl(_0x58f999,_0x364d7b[_0x12057e(0x179)],_0x8c689f[_0x12057e(0x178)]),_0x330930=buildMutationData(_0x364d7b,!![],_0x584a7a,_0x4f1133);_0x58f999&&!_0x584a7a&&_0x330930['warnings']['push'](_0x12057e(0x182));const _0xe6a9c7=buildCustomPageRuntimeUrl(_0x22661a['appCode'],_0x22661a[_0x12057e(0x192)]);return _0xe6a9c7?_0x330930[_0x12057e(0x18e)]=_0xe6a9c7:_0x330930[_0x12057e(0x194)][_0x12057e(0x18a)](_0x12057e(0x189)),{'ok':!![],'data':_0x330930,'message':'Published\x20Custom\x20Page\x20'+_0x364d7b[_0x12057e(0x179)]+'.'};}};function a146_0x343a(_0x4c7c6a,_0x263b7e){_0x4c7c6a=_0x4c7c6a-0x176;const _0x2c4fe8=a146_0x2c4f();let _0x343a44=_0x2c4fe8[_0x4c7c6a];return _0x343a44;}function readInput(_0x2badae){const _0x5be732=a146_0x8cfbde,_0x3aab0e=readCustomPageId(_0x2badae),_0xdd3ed=_0x2badae[_0x5be732(0x17b)](_0x5be732(0x190))[_0x5be732(0x183)]();return{'pageId':_0x3aab0e,..._0xdd3ed?{'remark':_0xdd3ed}:{}};}function a146_0x2c4f(){const _0x35e25e=['apiError','page','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','push','custom-publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','84qqURDo','runtimePageUrl','appCode','remark','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','pageCode','Would\x20publish\x20Custom\x20Page\x20','warnings','58270UdCwgK','status','6809JgYZuu','FORMAL','567612yuLyzX','POST','409072VxDxMe','page.custom-publish','/smartapi/webcode/file/publish','8290vyLQYl','compress','cookie','pageId','4RXzlUV','str','Custom\x20Page\x20ID','2984QZuvpm','76727LVYSxP','4209075rtdLcw','isInteger','926948ZwORwV','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','string','unknown','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a146_0x2c4f=function(){return _0x35e25e;};return a146_0x2c4f();}function buildMutationData(_0xe4dcd2,_0x511b87=![],_0x1754a9,_0x4238a9){const _0xf00a6a=a146_0x8cfbde;return{'operation':_0xf00a6a(0x19c),'selector':{'pageId':_0xe4dcd2['pageId']},'before':null,'after':{'pageId':_0xe4dcd2['pageId'],'status':_0xf00a6a(0x198)},'dryRun':!_0x511b87,'request':_0xe4dcd2,..._0x1754a9?{'pageUrl':_0x1754a9}:{},..._0x4238a9?{'editPageUrl':_0x4238a9}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a1826,_0x2cc655){const _0x2208a1=a147_0xe4c1,_0x1a7c10=_0x1a1826();while(!![]){try{const _0x58cffb=-parseInt(_0x2208a1(0x77))/0x1+-parseInt(_0x2208a1(0x76))/0x2+parseInt(_0x2208a1(0x91))/0x3+parseInt(_0x2208a1(0x93))/0x4*(-parseInt(_0x2208a1(0x7d))/0x5)+-parseInt(_0x2208a1(0x88))/0x6*(parseInt(_0x2208a1(0x7a))/0x7)+-parseInt(_0x2208a1(0x79))/0x8*(parseInt(_0x2208a1(0x90))/0x9)+parseInt(_0x2208a1(0x73))/0xa*(parseInt(_0x2208a1(0x7f))/0xb);if(_0x58cffb===_0x2cc655)break;else _0x1a7c10['push'](_0x1a7c10['shift']());}catch(_0xbf8146){_0x1a7c10['push'](_0x1a7c10['shift']());}}}(a147_0x13c9,0x699df));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';function a147_0x13c9(){const _0x41da06=['type','string','object','page-content','Invalid\x20Custom\x20Page\x20content:\x20','map','/ide/','2471772irMyOz','message','isInteger','values','validation','num','--id\x20must\x20be\x20a\x20positive\x20integer.','menus','9QEpdpJ','1598064lvADFI','length','2345788GYvSTl','some','isArray','file','/pages/','85970BybsHI','path','flagMissing','997426gQBJWg','852555oIUQJB','parse','6011608eTrQHp','14gBxOZB','trim','--page-content\x20must\x20be\x20valid\x20JSON.','5KbfJsK','join','4367oyYRSg','find'];a147_0x13c9=function(){return _0x41da06;};return a147_0x13c9();}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x2da7aa){const _0x3cea8b=a147_0xe4c1;return _0x2da7aa?.[_0x3cea8b(0x7b)]()||undefined;}function a147_0xe4c1(_0x28330a,_0x51ba62){_0x28330a=_0x28330a-0x70;const _0x13c96a=a147_0x13c9();let _0xe4c1ee=_0x13c96a[_0x28330a];return _0xe4c1ee;}export function buildCustomPageRuntimeUrl(_0x32da56,_0x37ffda){const _0x1bd008=trimOptional(_0x32da56),_0xfff6ee=trimOptional(_0x37ffda);if(!_0x1bd008||!_0xfff6ee)return undefined;return getPublishedAppDomain(_0x1bd008)+'/'+encodeURIComponent(_0xfff6ee);}export function buildCustomPageDevelopmentUrl(_0x143c4e,_0x10104e){const _0x8debfa=a147_0xe4c1,_0x231eef=trimOptional(_0x143c4e),_0x49c1d4=trimOptional(_0x10104e);if(!_0x231eef||!_0x49c1d4)return undefined;return getAppBaseUrl(_0x231eef)+_0x8debfa(0x72)+encodeURIComponent(_0x49c1d4);}export async function resolveCustomPageDevelopmentUrl(_0x47d44b,_0xb06ff0,_0x2f407f){const _0x2e6bde=a147_0xe4c1,_0x44f8b7=trimOptional(_0x47d44b);if(!_0x44f8b7)return undefined;try{const _0x27bf8f=(await fetchMenuSnapshot(_0x44f8b7,_0x2f407f))[_0x2e6bde(0x8f)][_0x2e6bde(0x80)](_0x125d45=>_0x125d45[_0x2e6bde(0x81)]==='react'&&_0x125d45['pageId']===_0xb06ff0);return buildCustomPageDevelopmentUrl(_0x44f8b7,_0x27bf8f?.[_0x2e6bde(0x74)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x3ee804,_0x245585){const _0x23c7bb=a147_0xe4c1,_0xe60704=trimOptional(_0x3ee804);if(!_0xe60704)return;const _0x482909=trimOptional(_0x245585==null?undefined:String(_0x245585));if(!_0x482909)return;return getAppBaseUrl(_0xe60704)+_0x23c7bb(0x87)+encodeURIComponent(_0x482909);}export function parseCustomPageContent(_0x21546d){const _0x358093=a147_0xe4c1;if(!_0x21546d[_0x358093(0x7b)]())throw CliErrors[_0x358093(0x75)](_0x358093(0x84));let _0x50975e;try{_0x50975e=JSON[_0x358093(0x78)](_0x21546d);}catch{throw CliErrors[_0x358093(0x8c)](_0x358093(0x7c));}if(typeof _0x50975e!==_0x358093(0x83)||_0x50975e===null||Array[_0x358093(0x70)](_0x50975e)||Object[_0x358093(0x8b)](_0x50975e)[_0x358093(0x94)](_0x15cf57=>typeof _0x15cf57!==_0x358093(0x82)))throw CliErrors[_0x358093(0x8c)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x50975e;}export async function validateCustomPageContent(_0x2663c3){const _0x51c43b=a147_0xe4c1,_0x18269a=await validateCustomPageSourceFiles(_0x2663c3);if(_0x18269a[_0x51c43b(0x92)]>0x0)throw CliErrors[_0x51c43b(0x8c)](_0x51c43b(0x85)+_0x18269a[_0x51c43b(0x86)](_0x143950=>_0x143950[_0x51c43b(0x71)]+':\x20'+_0x143950[_0x51c43b(0x89)])[_0x51c43b(0x7e)](';\x20'));}export function readCustomPageId(_0x5c2c04){const _0x464c12=a147_0xe4c1,_0x4e081d=_0x5c2c04[_0x464c12(0x8d)]('id');if(!Number[_0x464c12(0x8a)](_0x4e081d)||_0x4e081d<=0x0)throw CliErrors[_0x464c12(0x8c)](_0x464c12(0x8e));return _0x4e081d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a148_0x885996=a148_0x15bb;(function(_0x103dc1,_0x382546){const _0x3b3156=a148_0x15bb,_0x26b22f=_0x103dc1();while(!![]){try{const _0x5c6a7d=-parseInt(_0x3b3156(0x10c))/0x1*(-parseInt(_0x3b3156(0x10b))/0x2)+-parseInt(_0x3b3156(0x104))/0x3+-parseInt(_0x3b3156(0x10e))/0x4+-parseInt(_0x3b3156(0x108))/0x5+-parseInt(_0x3b3156(0x107))/0x6+parseInt(_0x3b3156(0x10f))/0x7+parseInt(_0x3b3156(0x111))/0x8;if(_0x5c6a7d===_0x382546)break;else _0x26b22f['push'](_0x26b22f['shift']());}catch(_0x59e06c){_0x26b22f['push'](_0x26b22f['shift']());}}}(a148_0x336b,0xcc338));function a148_0x336b(){const _0x2bfcd3=['4979852sedZBg','3479553WzhvzA','babel','25069864BfDiem','toLowerCase','some','trim','filter','page-content','.jsx','message','.tsx','1322760mlydIx','entries','find','7584378eaXTEc','4926925ygGcxb','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','typescript','2qfSloZ','1140927mKgijm','all'];a148_0x336b=function(){return _0x2bfcd3;};return a148_0x336b();}import{format}from'prettier';function a148_0x15bb(_0x1d1266,_0x4cf0d0){_0x1d1266=_0x1d1266-0xfd;const _0x336bcd=a148_0x336b();let _0x15bb55=_0x336bcd[_0x1d1266];return _0x15bb55;}const SOURCE_PARSERS={'.js':'babel','.jsx':a148_0x885996(0x110),'.ts':'typescript','.tsx':a148_0x885996(0x10a)},CUSTOM_PAGE_EXTENSIONS=[a148_0x885996(0x101),a148_0x885996(0x103)];export async function validateCustomPageSourceFiles(_0x3436fe){const _0x9ad6fa=a148_0x885996,_0x51eea5=Object[_0x9ad6fa(0x105)](_0x3436fe)[_0x9ad6fa(0xff)](([_0x376967])=>getParser(_0x376967));if(!_0x51eea5['some'](([_0x5df294])=>isReactSourceFile(_0x5df294)))return[{'file':_0x9ad6fa(0x100),'message':_0x9ad6fa(0x109)}];const _0x3d2e8d=await Promise[_0x9ad6fa(0x10d)](_0x51eea5['map'](async([_0x2cbd2a,_0x44cacf])=>{const _0x5b5f53=_0x9ad6fa;try{return await format(_0x44cacf,{'parser':getParser(_0x2cbd2a)}),undefined;}catch(_0x4655e6){return{'file':_0x2cbd2a,'message':_0x4655e6 instanceof Error?_0x4655e6[_0x5b5f53(0x102)]:String(_0x4655e6)};}}));return _0x3d2e8d[_0x9ad6fa(0xff)](_0x5dcb2b=>_0x5dcb2b!==undefined);}function getParser(_0x403d45){const _0x1bd941=a148_0x885996,_0x2c6366=_0x403d45[_0x1bd941(0xfe)]()[_0x1bd941(0x112)]();return Object[_0x1bd941(0x105)](SOURCE_PARSERS)[_0x1bd941(0x106)](([_0x84e068])=>_0x2c6366['endsWith'](_0x84e068))?.[0x1];}function isReactSourceFile(_0x3aef3e){const _0x513773=a148_0x885996,_0x407fd0=_0x3aef3e[_0x513773(0xfe)]()[_0x513773(0x112)]();return CUSTOM_PAGE_EXTENSIONS[_0x513773(0xfd)](_0x381cf9=>_0x407fd0['endsWith'](_0x381cf9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a149_0x2fb9(){const _0x3c4868=['2809330xMOgsR','2239MMjPVf','16RsGETq','stringify','export\x20const\x20locales\x20=\x20{\x0a','486UjvFQK','8978688XiBqaQ','1457358GzTqwm','1932180rVNiPU','}</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a','join','392259hExFUj','2411226EnBkLU','en-US','ja-JP','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.',',\x0a\x20\x20}','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>{','zh-CN',':\x20{\x0a\x20\x20\x20\x20','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。'];a149_0x2fb9=function(){return _0x3c4868;};return a149_0x2fb9();}(function(_0x45d582,_0x4aa69c){const _0x385492=a149_0x5559,_0x4607a0=_0x45d582();while(!![]){try{const _0x2ae065=-parseInt(_0x385492(0x142))/0x1*(parseInt(_0x385492(0x146))/0x2)+parseInt(_0x385492(0x134))/0x3+parseInt(_0x385492(0x131))/0x4+-parseInt(_0x385492(0x141))/0x5+parseInt(_0x385492(0x135))/0x6+-parseInt(_0x385492(0x130))/0x7*(parseInt(_0x385492(0x143))/0x8)+parseInt(_0x385492(0x147))/0x9;if(_0x2ae065===_0x4aa69c)break;else _0x4607a0['push'](_0x4607a0['shift']());}catch(_0xde538f){_0x4607a0['push'](_0x4607a0['shift']());}}}(a149_0x2fb9,0x77dda));function a149_0x5559(_0x2f70f7,_0x1fb016){_0x2f70f7=_0x2f70f7-0x130;const _0x2fb93d=a149_0x2fb9();let _0x555931=_0x2fb93d[_0x2f70f7];return _0x555931;}function buildIndexFile(_0xdcf7b0){const _0x5c398c=a149_0x5559;return _0x5c398c(0x13c)+JSON[_0x5c398c(0x144)](_0xdcf7b0)+_0x5c398c(0x132);}function buildStyleFile(){const _0x483f5c=a149_0x5559;return _0x483f5c(0x13f);}function buildLocalesFile(_0x43420a){const _0x8cd6df=a149_0x5559,_0xf38f6c=_0x43420a['map'](_0x9d1084=>{const _0x572568=a149_0x5559;let _0x166d43='';switch(_0x9d1084){case _0x572568(0x13d):_0x166d43='这是一个基础页面模板,你可以在此基础上进行开发。';break;case _0x572568(0x136):_0x166d43=_0x572568(0x13a);break;case _0x572568(0x137):_0x166d43=_0x572568(0x140);break;case'tr-TR':_0x166d43=_0x572568(0x13b);break;case'id-ID':_0x166d43=_0x572568(0x138);break;default:_0x166d43=_0x572568(0x13a);}return'\x20\x20'+JSON[_0x572568(0x144)](_0x9d1084)+_0x572568(0x13e)+JSON[_0x572568(0x144)]('pageDescription')+':\x20'+JSON['stringify'](_0x166d43)+_0x572568(0x139);})[_0x8cd6df(0x133)](',\x0a');return _0x8cd6df(0x145)+_0xf38f6c+'\x0a};\x0a';}export function buildInitialFiles(_0x12aebe,_0x1511f9){return{'src/app/index.jsx':buildIndexFile(_0x12aebe),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x1511f9)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x34c7c1=a150_0x11bd;(function(_0x2d0612,_0x67890){const _0x2d44a9=a150_0x11bd,_0x5203d5=_0x2d0612();while(!![]){try{const _0x237509=-parseInt(_0x2d44a9(0x7c))/0x1+parseInt(_0x2d44a9(0x80))/0x2+-parseInt(_0x2d44a9(0x91))/0x3+-parseInt(_0x2d44a9(0x8c))/0x4+parseInt(_0x2d44a9(0x92))/0x5+parseInt(_0x2d44a9(0x8e))/0x6+parseInt(_0x2d44a9(0x85))/0x7;if(_0x237509===_0x67890)break;else _0x5203d5['push'](_0x5203d5['shift']());}catch(_0xf7032e){_0x5203d5['push'](_0x5203d5['shift']());}}}(a150_0xa32f,0x5a239));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a150_0xa32f(){const _0x212477=['Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','Complete\x20page\x20files\x20as\x20JSON','664620gkEzsG','179830rFZAng','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','POST','cookie','compress','page-content','page','newVersion','206069NRwleE','write','str','pageId','59884gEwtKH','validation','Custom\x20Page\x20ID','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','3292247oOUspN','appcode','Updated\x20Custom\x20Page\x20','isInteger','trim','/smartapi/webcode/page/update/content','appCode','1691428DwauOY','pageContent','4100676nByGmx'];a150_0xa32f=function(){return _0x212477;};return a150_0xa32f();}function a150_0x11bd(_0x2ad0a1,_0xda4a4d){_0x2ad0a1=_0x2ad0a1-0x77;const _0xa32f53=a150_0xa32f();let _0x11bd99=_0xa32f53[_0x2ad0a1];return _0x11bd99;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a150_0x34c7c1(0x7a),'command':'custom-update','description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a150_0x34c7c1(0x7d),'defaultOutputFormat':a150_0x34c7c1(0x78),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a150_0x34c7c1(0x82)},{'name':a150_0x34c7c1(0x79),'type':'string','required':!![],'description':a150_0x34c7c1(0x90)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e0b27){const _0x4b2063=a150_0x34c7c1;readCustomPageId(_0x1e0b27),await validateCustomPageContent(parseCustomPageContent(_0x1e0b27['str'](_0x4b2063(0x79))));},async 'dryRun'(_0x1040ef){const _0x166b16=a150_0x34c7c1,_0x4dfd85=await readInput(_0x1040ef);return{'method':_0x166b16(0x94),'url':_0x166b16(0x8a),'body':{'id':_0x4dfd85[_0x166b16(0x7f)],'codeContent':_0x4dfd85[_0x166b16(0x8d)]},'description':_0x166b16(0x8f)+_0x4dfd85[_0x166b16(0x7f)]+'.'};},async 'execute'(_0x58f868){const _0x2d5acd=a150_0x34c7c1,_0x36b034=await readInput(_0x58f868),_0x2760a9=await updateCustomPageContent({'pageId':_0x36b034['pageId'],'pageContent':_0x36b034[_0x2d5acd(0x8d)]});if(!Number[_0x2d5acd(0x88)](_0x2760a9['newVersion'])||_0x2760a9[_0x2d5acd(0x7b)]<=0x0)throw CliErrors['apiError'](_0x2d5acd(0x93));const _0x5a34ae=buildCustomPageEditUrl(_0x36b034[_0x2d5acd(0x8b)],_0x36b034[_0x2d5acd(0x7f)]),_0x6c71b9=await resolveCustomPageDevelopmentUrl(_0x36b034[_0x2d5acd(0x8b)],_0x36b034['pageId'],_0x58f868[_0x2d5acd(0x77)]);return{'ok':!![],'data':buildMutationData(_0x36b034,_0x2760a9,_0x6c71b9,_0x5a34ae,_0x6c71b9?[]:[_0x2d5acd(0x83)]),'message':_0x2d5acd(0x87)+_0x36b034[_0x2d5acd(0x7f)]+'.'};}};async function readInput(_0x1b6786){const _0x1bb39f=a150_0x34c7c1,_0x543435=readCustomPageId(_0x1b6786),_0x46a5fc=_0x1b6786[_0x1bb39f(0x7e)](_0x1bb39f(0x86))[_0x1bb39f(0x89)]()||(await getCustomPageSource(_0x543435))[_0x1bb39f(0x8b)]?.['trim']();if(!_0x46a5fc)throw CliErrors[_0x1bb39f(0x81)](_0x1bb39f(0x84)+_0x543435+'.');return{'appCode':_0x46a5fc,'pageId':_0x543435,'pageContent':parseCustomPageContent(_0x1b6786[_0x1bb39f(0x7e)]('page-content'))};}function buildMutationData(_0x99b31,_0x1d1a24,_0x43c7ac,_0x2a495a,_0x175c42=[]){const _0x2e926e=a150_0x34c7c1;return{'operation':'page.custom-update','selector':{'appCode':_0x99b31[_0x2e926e(0x8b)],'pageId':_0x99b31[_0x2e926e(0x7f)]},'before':null,'after':{'pageId':_0x1d1a24?.[_0x2e926e(0x7f)]??_0x99b31['pageId'],'version':_0x1d1a24?.[_0x2e926e(0x7b)]??null,'pageContent':_0x99b31[_0x2e926e(0x8d)]},'dryRun':_0x1d1a24===undefined,'request':_0x99b31,..._0x43c7ac?{'pageUrl':_0x43c7ac}:{},..._0x2a495a?{'editPageUrl':_0x2a495a}:{},'warnings':_0x175c42};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a151_0x8c18(_0x4308a3,_0x6072fa){_0x4308a3=_0x4308a3-0x150;const _0x5136d8=a151_0x5136();let _0x8c1810=_0x5136d8[_0x4308a3];return _0x8c1810;}const a151_0x439e1c=a151_0x8c18;(function(_0x46e4f6,_0x224620){const _0x578acc=a151_0x8c18,_0x37569d=_0x46e4f6();while(!![]){try{const _0x35191b=-parseInt(_0x578acc(0x151))/0x1*(-parseInt(_0x578acc(0x168))/0x2)+-parseInt(_0x578acc(0x167))/0x3*(-parseInt(_0x578acc(0x15e))/0x4)+parseInt(_0x578acc(0x15b))/0x5+parseInt(_0x578acc(0x161))/0x6+-parseInt(_0x578acc(0x154))/0x7+parseInt(_0x578acc(0x157))/0x8+-parseInt(_0x578acc(0x160))/0x9*(parseInt(_0x578acc(0x156))/0xa);if(_0x35191b===_0x224620)break;else _0x37569d['push'](_0x37569d['shift']());}catch(_0x5b4ddb){_0x37569d['push'](_0x37569d['shift']());}}}(a151_0x5136,0x24610));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':a151_0x439e1c(0x159),'command':'data-list-status','description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a151_0x439e1c(0x163),'defaultOutputFormat':a151_0x439e1c(0x152),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a151_0x439e1c(0x162),'type':a151_0x439e1c(0x165),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x20436a){validateDatasetSelector(_0x20436a);},async 'dryRun'(_0x71b55b){const _0xef571=a151_0x439e1c,_0x37a5e2=await loadDatasetDetailForPage(_0x71b55b);return{'method':_0xef571(0x153),'url':_0xef571(0x15c)+_0x37a5e2[_0xef571(0x158)]+'/standard-page-status?appCode='+encodeURIComponent(_0x71b55b[_0xef571(0x164)]),'description':serializeDryRunDescription({'dataset':{'id':_0x37a5e2['id'],'code':_0x37a5e2['code'],'name':_0x37a5e2[_0xef571(0x150)]},'action':_0xef571(0x15d)})};},async 'execute'(_0x3e17d4){const _0x29039e=a151_0x439e1c,_0x50eee3=await loadDatasetDetailForPage(_0x3e17d4),_0x69052f=await loadDataListPageStatusForGenerate(_0x3e17d4,_0x50eee3[_0x29039e(0x158)]),_0x35807e=getUndeletedRelatedPages(_0x50eee3),_0x2a0d84=assessDataListPageState(_0x50eee3[_0x29039e(0x158)],_0x69052f,{'fallbackUndeletedPages':_0x35807e});return{'ok':!![],'data':{'datasetCode':_0x50eee3[_0x29039e(0x158)],'precheckSource':_0x69052f?.[_0x29039e(0x166)]??_0x29039e(0x15a),'status':_0x2a0d84['status'],'manualResolutionRequired':_0x2a0d84['manualResolutionRequired'],'nextAction':_0x2a0d84['nextAction'],'dataListPageStatus':_0x69052f,'relatedPages':{'total':_0x50eee3[_0x29039e(0x15f)][_0x29039e(0x155)],'undeletedCount':_0x35807e[_0x29039e(0x155)]}}};}};function a151_0x5136(){const _0x351e5f=['query-data-list-status','5384EyyOAh','relatedPages','9846ydqjCy','249888HNdBQF','alias','read','appCode','string','source','33CYKaEn','6DucwfI','name','86230vGskiu','compress','GET','288470wHAaIC','length','4450wXjOhs','2176008AGYiOO','code','page','related-pages-fallback','449515Xdsvfn','/smartapi/lovrabet/dataset/'];a151_0x5136=function(){return _0x351e5f;};return a151_0x5136();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a152_0x2cb193=a152_0x1eb5;(function(_0x41955e,_0x55efea){const _0x620dd1=a152_0x1eb5,_0x339b38=_0x41955e();while(!![]){try{const _0x6d98b2=-parseInt(_0x620dd1(0xb2))/0x1*(-parseInt(_0x620dd1(0x88))/0x2)+parseInt(_0x620dd1(0xb1))/0x3*(parseInt(_0x620dd1(0x8a))/0x4)+-parseInt(_0x620dd1(0x91))/0x5+-parseInt(_0x620dd1(0x8d))/0x6+parseInt(_0x620dd1(0x82))/0x7*(-parseInt(_0x620dd1(0x83))/0x8)+-parseInt(_0x620dd1(0xa2))/0x9+parseInt(_0x620dd1(0xab))/0xa;if(_0x6d98b2===_0x55efea)break;else _0x339b38['push'](_0x339b38['shift']());}catch(_0x27fc9a){_0x339b38['push'](_0x339b38['shift']());}}}(a152_0x4d24,0xa973c));function a152_0x4d24(){const _0x5df1b3=['page-type','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','Submitted\x20a\x20generate\x20task','PARTIAL_SUCCESS','4385550tPCtzc','Reusing\x20an\x20existing\x20generate\x20task','page','write','reused','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','2782209GtmWWJ','2FLLZJX','compress','code','related-pages-fallback','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','SUCCESS','7XnYbTL','7061048blyEli','manualResolutionRequired','currentStep','number','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','1056426LXOiDG','precheck','4sarYuW','fieldCount','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','601428rWBzCQ','status','dataset','DATA_LIST','181550UivuYI','nextAction','progressRate','/generate-standard-pages/start','message','appCode','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','page-pattern','taskId','CRUD_PAGE_SET','clientOperationId','allowGenerate','string','alias','operationId','source','POST','6382161bkTTzt','name','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','apply','generate-start'];a152_0x4d24=function(){return _0x5df1b3;};return a152_0x4d24();}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':a152_0x2cb193(0xad),'command':a152_0x2cb193(0xa6),'description':a152_0x2cb193(0x87),'risk':a152_0x2cb193(0xae),'defaultOutputFormat':a152_0x2cb193(0xb3),'rejectedFlags':[{'name':a152_0x2cb193(0xa7),'message':a152_0x2cb193(0x8c),'hint':a152_0x2cb193(0xa4)},{'name':a152_0x2cb193(0x98),'message':a152_0x2cb193(0xb0),'hint':a152_0x2cb193(0x80)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a152_0x2cb193(0x9e),'type':a152_0x2cb193(0x9d),'description':a152_0x2cb193(0x97)},{'name':a152_0x2cb193(0xa5),'type':'boolean','description':a152_0x2cb193(0xa8)}],async 'validate'(_0x4200a4){validateDatasetSelector(_0x4200a4);},async 'dryRun'(_0x39632a){const _0x34a38d=a152_0x2cb193,_0x28f20=await prepare(_0x39632a);return{'method':_0x34a38d(0xa1),'url':'/smartapi/lovrabet/dataset/'+_0x28f20[_0x34a38d(0x8f)]['code']+_0x34a38d(0x94),'body':{'appCode':_0x39632a[_0x34a38d(0x96)],'clientOperationId':_0x28f20[_0x34a38d(0x9b)]},'description':serializeDryRunDescription({'dataset':{'id':_0x28f20[_0x34a38d(0x8f)]['id'],'code':_0x28f20['dataset'][_0x34a38d(0xb4)],'name':_0x28f20[_0x34a38d(0x8f)][_0x34a38d(0xa3)],'fieldCount':_0x28f20[_0x34a38d(0x8f)][_0x34a38d(0x8b)]},'precheckSource':_0x28f20['dataListPageStatus']?.[_0x34a38d(0xa0)]??_0x34a38d(0xb5),'action':'generate-start','clientOperationId':_0x28f20[_0x34a38d(0x9b)],'plannedStatus':_0x28f20['precheck'][_0x34a38d(0x8e)],'reason':_0x28f20[_0x34a38d(0x89)][_0x34a38d(0x95)]})};},async 'execute'(_0x48bfb9){const _0x10ca18=a152_0x2cb193;if(!_0x48bfb9['bool']('apply')){const _0x393636=await pageGenerateStart['dryRun'](_0x48bfb9);return{'ok':!![],'message':_0x10ca18(0x7f),'data':_0x393636};}const _0x1d2aab=await prepare(_0x48bfb9);if(!_0x1d2aab[_0x10ca18(0x89)][_0x10ca18(0x9c)])return{'ok':![],'message':_0x1d2aab[_0x10ca18(0x89)]['message'],'data':{'datasetCode':_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],'pageType':'DATA_LIST','pagePattern':_0x10ca18(0x9a),'clientOperationId':_0x1d2aab['clientOperationId'],'precheckSource':_0x1d2aab['dataListPageStatus']?.[_0x10ca18(0xa0)]??'related-pages-fallback','status':_0x1d2aab['precheck']['status'],'manualResolutionRequired':_0x1d2aab['precheck']['manualResolutionRequired'],'nextAction':_0x1d2aab[_0x10ca18(0x89)][_0x10ca18(0x92)],'query':{'command':buildDataListPageStatusQueryCommand(_0x1d2aab[_0x10ca18(0x8f)]['code'],_0x48bfb9[_0x10ca18(0x96)])},'dataListPageStatus':_0x1d2aab['dataListPageStatus']}};const _0x56e43e=await startGenerateDataListPages(_0x48bfb9[_0x10ca18(0x96)],_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],{'clientOperationId':_0x1d2aab[_0x10ca18(0x9b)]}),_0x27cb84=_0x56e43e['status']===_0x10ca18(0x81)||_0x56e43e['status']===_0x10ca18(0xaa)?await loadDataListPageStatusForGenerate(_0x48bfb9,_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)]):null,_0x186b83=assessGenerateOperationState(_0x1d2aab[_0x10ca18(0x8f)]['code'],_0x56e43e[_0x10ca18(0x8e)],_0x27cb84);return{'ok':!![],'message':_0x56e43e[_0x10ca18(0xaf)]?_0x10ca18(0xac):_0x10ca18(0xa9),'data':{'datasetCode':_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],'appCode':_0x48bfb9[_0x10ca18(0x96)],'pageType':_0x10ca18(0x90),'pagePattern':_0x10ca18(0x9a),'taskId':_0x56e43e[_0x10ca18(0x99)]??null,'operationId':_0x56e43e[_0x10ca18(0x9f)]??null,'clientOperationId':_0x1d2aab[_0x10ca18(0x9b)],'jobStatus':_0x56e43e[_0x10ca18(0x8e)]??null,'progressRate':typeof _0x56e43e[_0x10ca18(0x93)]===_0x10ca18(0x86)?_0x56e43e[_0x10ca18(0x93)]:null,'currentStep':_0x56e43e[_0x10ca18(0x85)]??null,'reused':_0x56e43e[_0x10ca18(0xaf)]===!![],'status':_0x186b83['status'],'manualResolutionRequired':_0x186b83[_0x10ca18(0x84)],'nextAction':_0x186b83[_0x10ca18(0x92)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],{'appCode':_0x48bfb9[_0x10ca18(0x96)],'taskId':_0x56e43e[_0x10ca18(0x99)],'operationId':_0x56e43e[_0x10ca18(0x9f)],'clientOperationId':_0x1d2aab[_0x10ca18(0x9b)]})},'dataListPageStatus':_0x27cb84}};}};function a152_0x1eb5(_0x3cdcf7,_0x4d5db3){_0x3cdcf7=_0x3cdcf7-0x7f;const _0x4d245c=a152_0x4d24();let _0x1eb56b=_0x4d245c[_0x3cdcf7];return _0x1eb56b;}async function prepare(_0x5c3b1b){const _0x571e40=a152_0x2cb193,_0x178171=await loadDatasetDetailForPage(_0x5c3b1b),_0x1803e6=await loadDataListPageStatusForGenerate(_0x5c3b1b,_0x178171[_0x571e40(0xb4)]),_0x5bdff3=getUndeletedRelatedPages(_0x178171);return{'dataset':_0x178171,'dataListPageStatus':_0x1803e6,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x178171[_0x571e40(0xb4)],_0x1803e6,{'fallbackUndeletedPages':_0x5bdff3})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a153_0x14a0(_0x521bbb,_0xdd358e){_0x521bbb=_0x521bbb-0xda;const _0x1611cc=a153_0x1611();let _0x14a01f=_0x1611cc[_0x521bbb];return _0x14a01f;}const a153_0x39a07d=a153_0x14a0;(function(_0x8d1824,_0x3e0992){const _0x11f231=a153_0x14a0,_0x314041=_0x8d1824();while(!![]){try{const _0x4062da=parseInt(_0x11f231(0xeb))/0x1+parseInt(_0x11f231(0xf0))/0x2+-parseInt(_0x11f231(0xef))/0x3*(-parseInt(_0x11f231(0xfd))/0x4)+parseInt(_0x11f231(0xf8))/0x5+-parseInt(_0x11f231(0xda))/0x6*(-parseInt(_0x11f231(0xf6))/0x7)+-parseInt(_0x11f231(0xdb))/0x8+-parseInt(_0x11f231(0xe4))/0x9*(parseInt(_0x11f231(0xfe))/0xa);if(_0x4062da===_0x3e0992)break;else _0x314041['push'](_0x314041['shift']());}catch(_0x500395){_0x314041['push'](_0x314041['shift']());}}}(a153_0x1611,0x5e262));function a153_0x1611(){const _0x20c146=['appCode','client-operation-id','manualResolutionRequired','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','str','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','/generate-standard-pages/status?','read','9qXsuPN','progressRate','number','status','taskId','SUCCESS','set','189932HYSAHp','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','operationId','44898nstTda','120516kkzxAg','string','page','clientOperationId','PARTIAL_SUCCESS','toString','4621946FJIJWN','errorMsg','1345650SgUgXf','code','name','compress','message','32NysCiM','6434030GobWuT','generate-status','query-generate-operation-status','task-id','GET','6Oexfyf','2162312AGkWJT'];a153_0x1611=function(){return _0x20c146;};return a153_0x1611();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a153_0x39a07d(0xf2),'command':a153_0x39a07d(0xff),'description':a153_0x39a07d(0xed),'risk':a153_0x39a07d(0xe3),'defaultOutputFormat':a153_0x39a07d(0xfb),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a153_0x39a07d(0x101),'type':a153_0x39a07d(0xf1),'description':a153_0x39a07d(0xdf)},{'name':'operation-id','type':a153_0x39a07d(0xf1),'description':a153_0x39a07d(0xe1)},{'name':a153_0x39a07d(0xdd),'type':a153_0x39a07d(0xf1),'description':a153_0x39a07d(0xec)}],async 'validate'(_0x257ed4){validateDatasetSelector(_0x257ed4),validateGenerateOperationSelector(_0x257ed4);},async 'dryRun'(_0x596a3a){const _0x5e8e32=a153_0x39a07d,_0x3f0f7c=await loadDatasetDetailForPage(_0x596a3a),_0x58891d=_0x596a3a[_0x5e8e32(0xe0)](_0x5e8e32(0x101)),_0x53febd=_0x596a3a[_0x5e8e32(0xe0)]('operation-id'),_0x128153=_0x596a3a[_0x5e8e32(0xe0)](_0x5e8e32(0xdd)),_0x4ed1e0=new URLSearchParams({'appCode':_0x596a3a[_0x5e8e32(0xdc)]});return _0x58891d&&_0x4ed1e0['set'](_0x5e8e32(0xe8),_0x58891d),_0x53febd&&_0x4ed1e0['set']('operationId',_0x53febd),_0x128153&&_0x4ed1e0[_0x5e8e32(0xea)](_0x5e8e32(0xf3),_0x128153),{'method':_0x5e8e32(0x102),'url':'/smartapi/lovrabet/dataset/'+_0x3f0f7c[_0x5e8e32(0xf9)]+_0x5e8e32(0xe2)+_0x4ed1e0[_0x5e8e32(0xf5)](),'description':serializeDryRunDescription({'dataset':{'id':_0x3f0f7c['id'],'code':_0x3f0f7c['code'],'name':_0x3f0f7c[_0x5e8e32(0xfa)]},'action':_0x5e8e32(0x100),'taskId':_0x58891d||undefined,'operationId':_0x53febd||undefined,'clientOperationId':_0x128153||undefined})};},async 'execute'(_0x5a14b5){const _0x1bdfbd=a153_0x39a07d,_0x1fde23=await loadDatasetDetailForPage(_0x5a14b5),_0x49bae5=_0x5a14b5[_0x1bdfbd(0xe0)](_0x1bdfbd(0x101)),_0x2967dd=_0x5a14b5[_0x1bdfbd(0xe0)]('operation-id'),_0x446fc2=_0x5a14b5[_0x1bdfbd(0xe0)]('client-operation-id'),_0x3b1e89=await getGenerateDataListPagesStatus(_0x5a14b5[_0x1bdfbd(0xdc)],_0x1fde23[_0x1bdfbd(0xf9)],{'taskId':_0x49bae5||undefined,'operationId':_0x2967dd||undefined,'clientOperationId':_0x446fc2||undefined}),_0x2c2a10=_0x3b1e89[_0x1bdfbd(0xe7)]===_0x1bdfbd(0xe9)||_0x3b1e89[_0x1bdfbd(0xe7)]===_0x1bdfbd(0xf4),_0x4b881a=_0x2c2a10?await loadDataListPageStatusForGenerate(_0x5a14b5,_0x1fde23[_0x1bdfbd(0xf9)]):null,_0xf9faec=assessGenerateOperationState(_0x1fde23[_0x1bdfbd(0xf9)],_0x3b1e89[_0x1bdfbd(0xe7)],_0x4b881a),_0xf29d74=_0x3b1e89[_0x1bdfbd(0xe8)]??_0x49bae5??undefined,_0xab6957=_0x3b1e89[_0x1bdfbd(0xee)]??_0x2967dd??undefined,_0x32293e=_0x3b1e89[_0x1bdfbd(0xf3)]??_0x446fc2??undefined;return{'ok':!![],'message':_0xf9faec['status']==='operation_failed'?_0x3b1e89[_0x1bdfbd(0xf7)]||_0xf9faec[_0x1bdfbd(0xfc)]:_0xf9faec[_0x1bdfbd(0xfc)],'data':{'datasetCode':_0x1fde23[_0x1bdfbd(0xf9)],'appCode':_0x5a14b5[_0x1bdfbd(0xdc)],'taskId':_0xf29d74,'operationId':_0xab6957,'clientOperationId':_0x32293e,'jobStatus':_0x3b1e89[_0x1bdfbd(0xe7)]??null,'progressRate':typeof _0x3b1e89[_0x1bdfbd(0xe5)]===_0x1bdfbd(0xe6)?_0x3b1e89[_0x1bdfbd(0xe5)]:null,'currentStep':_0x3b1e89['currentStep']??null,'errorMsg':_0x3b1e89[_0x1bdfbd(0xf7)]??null,'status':_0xf9faec[_0x1bdfbd(0xe7)],'manualResolutionRequired':_0xf9faec[_0x1bdfbd(0xde)],'nextAction':_0xf9faec['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1fde23[_0x1bdfbd(0xf9)],{'appCode':_0x5a14b5[_0x1bdfbd(0xdc)],'taskId':_0xf29d74,'operationId':_0xab6957,'clientOperationId':_0x32293e})},'dataListPageStatus':_0x4b881a,'result':_0x3b1e89['result']??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x483068,_0x558d8f){const _0x241fb6=a154_0x5c2b,_0x21ed83=_0x483068();while(!![]){try{const _0x4e3cce=-parseInt(_0x241fb6(0xa1))/0x1+parseInt(_0x241fb6(0xa8))/0x2*(-parseInt(_0x241fb6(0xa5))/0x3)+-parseInt(_0x241fb6(0xa4))/0x4+parseInt(_0x241fb6(0xa6))/0x5*(parseInt(_0x241fb6(0xa9))/0x6)+parseInt(_0x241fb6(0xa7))/0x7+parseInt(_0x241fb6(0xa2))/0x8*(parseInt(_0x241fb6(0xa3))/0x9)+parseInt(_0x241fb6(0xa0))/0xa;if(_0x4e3cce===_0x558d8f)break;else _0x21ed83['push'](_0x21ed83['shift']());}catch(_0x3c1b55){_0x21ed83['push'](_0x21ed83['shift']());}}}(a154_0x4ed0,0x62b01));function a154_0x5c2b(_0x812574,_0x247fb5){_0x812574=_0x812574-0xa0;const _0x4ed097=a154_0x4ed0();let _0x5c2b5a=_0x4ed097[_0x812574];return _0x5c2b5a;}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';import{pageCustomUpdate}from'../../commands/page/custom/update.js';function a154_0x4ed0(){const _0x203246=['279160dnigLc','2FVxEZr','1072158tUqDys','11640000VHtHVU','782553sNtiDc','64lvvySk','127584xQuAiS','1267600ymqXsI','1585146jOHySo','20OeAqBF'];a154_0x4ed0=function(){return _0x203246;};return a154_0x4ed0();}export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0x4f55db=a155_0xeacd;(function(_0xbad42c,_0x48eff5){const _0x5db60a=a155_0xeacd,_0x38ca63=_0xbad42c();while(!![]){try{const _0x3d6508=parseInt(_0x5db60a(0x112))/0x1+parseInt(_0x5db60a(0x115))/0x2*(-parseInt(_0x5db60a(0xfd))/0x3)+parseInt(_0x5db60a(0x128))/0x4+-parseInt(_0x5db60a(0x111))/0x5*(parseInt(_0x5db60a(0x127))/0x6)+parseInt(_0x5db60a(0x118))/0x7*(parseInt(_0x5db60a(0xff))/0x8)+-parseInt(_0x5db60a(0x102))/0x9+parseInt(_0x5db60a(0xf8))/0xa*(-parseInt(_0x5db60a(0x106))/0xb);if(_0x3d6508===_0x48eff5)break;else _0x38ca63['push'](_0x38ca63['shift']());}catch(_0x2ca613){_0x38ca63['push'](_0x38ca63['shift']());}}}(a155_0x18c5,0x5f67c));import{writeFile}from'node:fs/promises';function a155_0xeacd(_0x160014,_0x4b506a){_0x160014=_0x160014-0xf8;const _0x18c5be=a155_0x18c5();let _0xeacd9=_0x18c5be[_0x160014];return _0xeacd9;}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':a155_0x4f55db(0x124),'command':a155_0x4f55db(0xfb),'description':a155_0x4f55db(0x123),'risk':a155_0x4f55db(0x100),'defaultOutputFormat':a155_0x4f55db(0x117),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':a155_0x4f55db(0x131)},DATASETCODE_FLAG_OPTIONAL,{'name':a155_0x4f55db(0x107),'type':a155_0x4f55db(0x110),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a155_0x4f55db(0x108),'type':a155_0x4f55db(0x110),'description':'Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)'},{'name':a155_0x4f55db(0x126),'type':a155_0x4f55db(0xfa),'description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x41d6b1){validatePageTargetSelector(_0x41d6b1);},async 'dryRun'(_0xc1b81b){const _0x27c0b3=a155_0x4f55db,_0x1ffe31=await buildPullPlan(_0xc1b81b);return{'method':_0x27c0b3(0x12e),'url':_0x1ffe31['mode']==='single'?'/smartapi/lovrabet/detail?pageId='+(_0x1ffe31[_0x27c0b3(0x105)][0x0]?.['detail']['pageId']??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0xc1b81b['appCode'],'mode':_0x1ffe31[_0x27c0b3(0x11e)],'targetDatasetCode':_0x1ffe31[_0x27c0b3(0x130)]??null,'pages':_0x1ffe31[_0x27c0b3(0x105)]['map'](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x1ffe31[_0x27c0b3(0x11e)],'datasetCode':_0x1ffe31[_0x27c0b3(0x130)]??null,'totalCandidates':_0x1ffe31['items'][_0x27c0b3(0x116)],'totalWouldPull':_0x1ffe31[_0x27c0b3(0x105)][_0x27c0b3(0x10e)](_0x3785fe=>_0x3785fe[_0x27c0b3(0x134)]===_0x27c0b3(0x11a))[_0x27c0b3(0x116)],'totalConflicts':_0x1ffe31[_0x27c0b3(0x105)][_0x27c0b3(0x10e)](_0x2496c2=>_0x2496c2[_0x27c0b3(0x134)]===_0x27c0b3(0x11c))[_0x27c0b3(0x116)]})};},async 'execute'(_0x3b04db){const _0x2bd9ab=a155_0x4f55db,_0x2f1b86=loadPageProjectConfig(_0x3b04db[_0x2bd9ab(0x119)]),_0x9f19f9=await readPageLockFile(_0x2f1b86['lockFilePath']),{lockData:_0x21345f,appLock:_0x35a1b1}=ensurePageLockScope(_0x9f19f9??createEmptyPageLock(),_0x3b04db[_0x2bd9ab(0x119)]),_0x569475=await buildPullPlan(_0x3b04db),_0x1e5b18=_0x3b04db['bool'](_0x2bd9ab(0x126));if(_0x569475['mode']==='single'&&_0x569475[_0x2bd9ab(0x105)][0x0]?.[_0x2bd9ab(0x134)]==='conflict'&&!_0x1e5b18)throw CliErrors[_0x2bd9ab(0x11b)]('Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20'+_0x569475[_0x2bd9ab(0x105)][0x0][_0x2bd9ab(0xfc)],_0x2bd9ab(0x10f));const _0x4a5475=[],_0x2aaacc=[];for(const _0x5d16a9 of _0x569475[_0x2bd9ab(0x105)]){if(_0x5d16a9[_0x2bd9ab(0x134)]===_0x2bd9ab(0x11c)&&!_0x1e5b18){_0x2aaacc[_0x2bd9ab(0x12a)]({'pageId':_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x125)],'type':_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x11f)],'title':_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x122)],'localPath':_0x5d16a9[_0x2bd9ab(0xfc)],'reason':_0x5d16a9[_0x2bd9ab(0x11d)]??_0x2bd9ab(0x133)});continue;}await ensureParentDirectory(_0x5d16a9[_0x2bd9ab(0xfc)]);const _0x40998d=serializePageSchemaForFile(_0x5d16a9[_0x2bd9ab(0x12b)]['code']);await writeFile(_0x5d16a9[_0x2bd9ab(0xfc)],_0x40998d,_0x2bd9ab(0x12d)),_0x35a1b1[_0x2bd9ab(0xfe)][String(_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x125)])]=buildLockEntry(_0x5d16a9['detail'],_0x40998d),_0x4a5475['push']({'pageId':_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x125)],'type':_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x11f)],'title':_0x5d16a9[_0x2bd9ab(0x12b)][_0x2bd9ab(0x122)],'localPath':_0x5d16a9[_0x2bd9ab(0xfc)]});}return _0x35a1b1[_0x2bd9ab(0x104)]=new Date()[_0x2bd9ab(0x10b)](),await writePageLockFile(_0x2f1b86[_0x2bd9ab(0x10c)],_0x21345f),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x4a5475['length']+_0x2bd9ab(0x132)+_0x2aaacc[_0x2bd9ab(0x116)]+_0x2bd9ab(0x12c),'data':{'appCode':_0x3b04db[_0x2bd9ab(0x119)],'pulledPages':_0x4a5475,'skippedPages':_0x2aaacc,'totalPulled':_0x4a5475[_0x2bd9ab(0x116)],'totalSkipped':_0x2aaacc[_0x2bd9ab(0x116)]}};}};async function buildPullPlan(_0x3a884c){const _0x42006e=a155_0x4f55db,_0x4ed63a=loadPageProjectConfig(_0x3a884c[_0x42006e(0x119)]),_0x2becd=await readPageLockFile(_0x4ed63a[_0x42006e(0x10c)]),{appLock:_0x254e64}=ensurePageLockScope(_0x2becd??createEmptyPageLock(),_0x3a884c[_0x42006e(0x119)]),_0x4b7240=getPageIdFlag(_0x3a884c);if(_0x4b7240!==undefined){const _0x261bd6=await loadPageDetailForPage(_0x3a884c,_0x4b7240);return{'mode':'single','items':[await inspectPullTarget(_0x4ed63a,_0x254e64[_0x42006e(0xfe)][String(_0x261bd6[_0x42006e(0x125)])],_0x261bd6)]};}const _0x5a91df=await loadDatasetDetailForPage(_0x3a884c),_0x4b2fa9=_0x5a91df[_0x42006e(0x121)][_0x42006e(0x10e)](_0x469120=>!_0x469120[_0x42006e(0x10a)]);if(_0x4b2fa9[_0x42006e(0x116)]===0x0)throw CliErrors[_0x42006e(0x11b)](_0x42006e(0x120)+_0x5a91df['code']+_0x42006e(0x113));const _0x5d18f5=await Promise['all'](_0x4b2fa9['map'](_0x980968=>loadPageDetailForPage(_0x3a884c,_0x980968['id']))),_0x3cefc7=selectVersionTagGroup(_0x5d18f5,_0x2d8a40=>_0x2d8a40[_0x42006e(0x101)],_0x3a884c['str']('version-tag'));return{'mode':_0x42006e(0x103),'datasetCode':_0x5a91df[_0x42006e(0xf9)],'items':await Promise[_0x42006e(0x12f)](_0x3cefc7[_0x42006e(0x105)][_0x42006e(0x129)](_0x2f2042=>inspectPullTarget(_0x4ed63a,_0x254e64['pages'][String(_0x2f2042['pageId'])],_0x2f2042)))};}async function inspectPullTarget(_0x1dff0e,_0x2a2a0e,_0x4b2400){const _0x100508=a155_0x4f55db,_0x295006=resolvePageFilePath(_0x1dff0e,_0x4b2400[_0x100508(0x125)],_0x4b2400[_0x100508(0x11f)]),_0x4dab63=await fileExists(_0x295006);if(!_0x4dab63){const _0x53f163=serializePageSchemaForFile(_0x4b2400[_0x100508(0xf9)]);return{'detail':_0x4b2400,'localPath':_0x295006,'localHash':computePageContentHash(_0x53f163),'status':_0x100508(0x11a)};}const _0x363ec6=await computePageFileHash(_0x295006);if(!_0x2a2a0e||_0x363ec6!==_0x2a2a0e[_0x100508(0x109)])return{'detail':_0x4b2400,'localPath':_0x295006,'localHash':_0x363ec6,'status':'conflict','reason':_0x100508(0x133)};return{'detail':_0x4b2400,'localPath':_0x295006,'localHash':_0x363ec6,'status':_0x100508(0x11a)};}function a155_0x18c5(){const _0x29c9fa=['code','boolean','pull','localPath','21ewSJxP','pages','8UavuhN','read','versionTag','3306447omrIrU','batch','lastSync','items','102619arHCGA','alias','version-tag','hash','deleted','toISOString','lockFilePath','datasetIds','filter','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','string','3798145lXsUpJ','781519nUmhDh','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','pageVersion','17202bvWbnJ','length','compress','4166246VxBOjI','appCode','would_pull','validation','conflict','reason','mode','type','Dataset\x20\x22','relatedPages','name','Pull\x20page\x20schema\x20to\x20local\x20files','page','pageId','force','6hBuchU','2969536paLncC','map','push','detail','\x20skipped','utf8','GET','all','datasetCode','Page\x20ID','\x20pulled,\x20','local\x20unsynced\x20changes','status','580fCfhmV'];a155_0x18c5=function(){return _0x29c9fa;};return a155_0x18c5();}function buildLockEntry(_0xed66b2,_0x16fe2d){const _0x18f833=a155_0x4f55db;return{'hash':computePageContentHash(_0x16fe2d),'pageId':_0xed66b2[_0x18f833(0x125)],'pageVersion':_0xed66b2[_0x18f833(0x114)],'type':_0xed66b2[_0x18f833(0x11f)],'title':_0xed66b2[_0x18f833(0x122)],'datasetIds':_0xed66b2[_0x18f833(0x10d)],'versionTag':_0xed66b2[_0x18f833(0x101)]};}function toPreviewItem(_0x4ca62c){const _0x44a03f=a155_0x4f55db;return{'pageId':_0x4ca62c[_0x44a03f(0x12b)][_0x44a03f(0x125)],'type':_0x4ca62c['detail']['type'],'title':_0x4ca62c[_0x44a03f(0x12b)][_0x44a03f(0x122)],'localPath':_0x4ca62c[_0x44a03f(0xfc)],'status':_0x4ca62c[_0x44a03f(0x134)],..._0x4ca62c[_0x44a03f(0x11d)]?{'reason':_0x4ca62c[_0x44a03f(0x11d)]}:{}};}
|