@lovrabet/rabetbase-cli 2.5.2-beta.3 → 2.5.2-beta.4
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/README.md +1 -1
- 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-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.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/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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/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.d.ts +0 -8
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.d.ts +4 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.d.ts +5 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +0 -26
- 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/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.d.ts +43 -0
- 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/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/skills/rabetbase/SKILL.md +5 -5
- package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
- package/skills/rabetbase/guides/page-development-workflow.md +1 -1
- package/skills/rabetbase/knowledge/components.md +292 -0
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
- package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
- package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
- package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
- package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
- package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
- package/skills/rabetbase/references/rabetbase-run.md +1 -0
- package/skills/rabetbase.manifest.json +5 -4
- package/templates/README.md +10 -4
- package/templates/custom-pages/blank.json +5 -0
- package/templates/custom-pages/dashboard.json +5 -0
- package/templates/custom-pages/onepage.json +5 -0
- package/templates/generate-api/api.ts.tpl +1 -1
- package/lib/commands/page/custom/template.d.ts +0 -8
- package/lib/commands/page/custom/template.js +0 -1
- package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a147_0x3b91(){const _0x45ad8e=['8xSlSMa','stringify','8140020qjFXur','Create\x20menu\x20\x22','\x20menu\x20group(s)','update-menu-cdn-url','info','Update\x20menu\x20','1784699WAPWBb','length','path','menus','Menu\x20assets\x20synced:\x20','extend','Updating\x20menu\x20asset\x20links:\x20','total','692293iarhOC','33PNCSFY','\x20menu','22005xiaDRz','get-online-menu-list','procode','1950egkeRF','Update\x20menu\x20assets\x20\x22','4owiboh','map','Creating\x20menu:\x20','Menu\x20created\x20successfully:\x20','label','Batch\x20menu\x20creation\x20completed,\x20total\x20','558864kUAJhq','resources','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','loadScriptMode','all','332TzovWp','Start\x20batch\x20menu\x20creation,\x20total\x20','1886769JESPBL','import','Fetched\x20','4075njGzXZ','create-menu'];a147_0x3b91=function(){return _0x45ad8e;};return a147_0x3b91();}(function(_0x1191d5,_0x5a54dd){const _0x43422f=a147_0x1df0,_0x2c9020=_0x1191d5();while(!![]){try{const _0x4cb256=parseInt(_0x43422f(0xc0))/0x1*(parseInt(_0x43422f(0x9e))/0x2)+-parseInt(_0x43422f(0xc3))/0x3*(-parseInt(_0x43422f(0xa9))/0x4)+parseInt(_0x43422f(0xae))/0x5*(-parseInt(_0x43422f(0x9c))/0x6)+parseInt(_0x43422f(0xb8))/0x7*(parseInt(_0x43422f(0xb0))/0x8)+-parseInt(_0x43422f(0xab))/0x9+-parseInt(_0x43422f(0xb2))/0xa+parseInt(_0x43422f(0xc1))/0xb*(-parseInt(_0x43422f(0xa4))/0xc);if(_0x4cb256===_0x5a54dd)break;else _0x2c9020['push'](_0x2c9020['shift']());}catch(_0x4d4fea){_0x2c9020['push'](_0x2c9020['shift']());}}}(a147_0x3b91,0xc8392));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{fetchMenuSnapshot,toProcessedMenuItem}from'../../../commands/menu/shared/facts.js';import{batchDeleteMenuRecords,createMenuRecord,startMenuRegroup as a147_0x7298c9,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x3680d6,_0x195be5){const _0x31202b=a147_0x1df0,_0x12b18b=getEnv();logger[_0x31202b(0xb6)](_0x31202b(0x9a),isProduction(_0x12b18b)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x3680d6+')':_0x31202b(0xa6)+_0x3680d6+')');const _0x5089cc=await fetchMenuSnapshot(_0x3680d6,_0x195be5,{'verbose':!![]});return logger[_0x31202b(0xb6)](_0x31202b(0x9a),_0x31202b(0xad)+_0x5089cc[_0x31202b(0xbf)]+'\x20online\x20menus\x20successfully'),_0x5089cc[_0x31202b(0xbb)][_0x31202b(0x9f)](toProcessedMenuItem);}export async function createMenu(_0x589fd6,_0x10d776,_0x25f207){const _0x4a830d=a147_0x1df0;logger[_0x4a830d(0xb6)](_0x4a830d(0xaf),_0x4a830d(0xa0)+_0x25f207[_0x4a830d(0xa2)]+'\x20('+_0x25f207[_0x4a830d(0xba)]+')');const _0x273195={'appCode':_0x589fd6,'type':'procode','sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x25f207['resources']?JSON['stringify'](_0x25f207[_0x4a830d(0xa5)]):undefined},..._0x25f207},_0x349fc9=await createMenuRecord(_0x273195,_0x10d776,'Create\x20menu\x20\x22'+_0x25f207[_0x4a830d(0xa2)]+'\x22');return logger['info'](_0x4a830d(0xaf),_0x4a830d(0xa1)+_0x25f207[_0x4a830d(0xa2)]),_0x349fc9;}async function createSingleMenu(_0x45563c,_0x1cb21e,_0x463c12,_0x22e9ac){const _0x38f53b=a147_0x1df0,_0x19e2c6={'appCode':_0x45563c,'type':_0x38f53b(0x9b),'sort':0x0,'extend':{'loadScriptMode':_0x38f53b(0xac),'resources':_0x22e9ac?JSON[_0x38f53b(0xb1)](_0x22e9ac):undefined},'label':_0x463c12['label'],'path':_0x463c12[_0x38f53b(0xba)]},_0x463acd=await createMenuRecord(_0x19e2c6,_0x1cb21e,'Create\x20menu\x20\x22'+_0x463c12['label']+'\x22');return logger[_0x38f53b(0xb6)](_0x38f53b(0xaf),_0x38f53b(0xa1)+_0x463c12['label']),_0x463acd;}export async function createMenus(_0x493ce8,_0x3ce240,_0x466eed,_0x485b37){const _0x24dcac=a147_0x1df0;logger[_0x24dcac(0xb6)]('create-menus',_0x24dcac(0xaa)+_0x466eed[_0x24dcac(0xb9)]);const _0x339b93=await Promise[_0x24dcac(0xa8)](_0x466eed[_0x24dcac(0x9f)](_0x324277=>createSingleMenu(_0x493ce8,_0x3ce240,_0x324277,_0x485b37)));return logger['info']('create-menus',_0x24dcac(0xa3)+_0x466eed[_0x24dcac(0xb9)]),_0x339b93;}export async function updateMenuCdnUrl(_0x95211f,_0x41fef8,_0x3fdb83){const _0x59177d=a147_0x1df0;logger['info'](_0x59177d(0xb5),_0x59177d(0xbe)+_0x3fdb83[_0x59177d(0xa2)]+'\x20('+_0x3fdb83['path']+')');const _0xfe8b56={'id':_0x3fdb83['id'],'appCode':_0x95211f,'extend':{..._0x3fdb83[_0x59177d(0xbd)]??{},..._0x3fdb83[_0x59177d(0xa7)]?{'loadScriptMode':_0x3fdb83[_0x59177d(0xa7)]}:{},'resources':_0x3fdb83[_0x59177d(0xa5)]?JSON[_0x59177d(0xb1)](_0x3fdb83[_0x59177d(0xa5)]):undefined}},_0x30f3e2=await updateMenuRecord(_0xfe8b56,_0x41fef8,_0x59177d(0x9d)+_0x3fdb83['label']+'\x22');return logger[_0x59177d(0xb6)](_0x59177d(0xb5),_0x59177d(0xbc)+_0x3fdb83[_0x59177d(0xa2)],undefined),_0x30f3e2;}function a147_0x1df0(_0x9e9bf3,_0x35bb2a){_0x9e9bf3=_0x9e9bf3-0x9a;const _0x3b91d4=a147_0x3b91();let _0x1df023=_0x3b91d4[_0x9e9bf3];return _0x1df023;}export async function createMenuEntity(_0x53a391,_0xc2d03f,_0x3c4aee){const _0x481a4e=a147_0x1df0;return createMenuRecord({'appCode':_0x53a391,..._0x3c4aee},_0xc2d03f,_0x481a4e(0xb3)+_0x3c4aee['label']+'\x22');}export async function updateMenuEntity(_0xe119e3,_0x75958d,_0x33854d){const _0x2e5562=a147_0x1df0;return updateMenuRecord({'appCode':_0xe119e3,..._0x33854d},_0x75958d,_0x2e5562(0xb7)+_0x33854d['id']);}export async function batchDeleteMenuEntities(_0x5df07a,_0x49605c){const _0x4ae645=a147_0x1df0;return batchDeleteMenuRecords(_0x49605c,_0x5df07a,'Delete\x20'+_0x49605c[_0x4ae645(0xb9)]+_0x4ae645(0xc2)+(_0x49605c['length']===0x1?'':'s'));}export async function startMenuRegroup(_0x1b6ac3,_0x704a3a){const _0x10e537=a147_0x1df0;return a147_0x7298c9(_0x704a3a,_0x1b6ac3,'Regroup\x20'+_0x704a3a['menuGroups'][_0x10e537(0xb9)]+_0x10e537(0xb4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x4a8640=a148_0x3b90;(function(_0x1dac36,_0x2b2225){const _0x52073c=a148_0x3b90,_0x154b44=_0x1dac36();while(!![]){try{const _0x1b7eb8=parseInt(_0x52073c(0xba))/0x1*(-parseInt(_0x52073c(0x96))/0x2)+parseInt(_0x52073c(0x9d))/0x3+parseInt(_0x52073c(0xa3))/0x4*(-parseInt(_0x52073c(0xa4))/0x5)+-parseInt(_0x52073c(0xbe))/0x6*(parseInt(_0x52073c(0xc0))/0x7)+-parseInt(_0x52073c(0x9c))/0x8*(parseInt(_0x52073c(0x99))/0x9)+-parseInt(_0x52073c(0xa2))/0xa*(-parseInt(_0x52073c(0xbb))/0xb)+parseInt(_0x52073c(0xab))/0xc*(parseInt(_0x52073c(0xbf))/0xd);if(_0x1b7eb8===_0x2b2225)break;else _0x154b44['push'](_0x154b44['shift']());}catch(_0x51ee47){_0x154b44['push'](_0x154b44['shift']());}}}(a148_0x5291,0x93ef0));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a148_0x3b90(_0x1a1319,_0x1a85ca){_0x1a1319=_0x1a1319-0x91;const _0x52911c=a148_0x5291();let _0x3b90a9=_0x52911c[_0x1a1319];return _0x3b90a9;}import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set([a148_0x4a8640(0x92),a148_0x4a8640(0x97)]);function a148_0x5291(){const _0x2202ce=['847620VewBVo','--params.','info','setLogPath','message','3790ziUaSO','20bezJFb','620285WfGxhp','map','has','Invalid\x20--params.','trim','object','field','1284mJzOMa','JS\x20URL\x20is\x20unreachable:\x20','label','No\x20local\x20pages\x20matched\x20paths:\x20','CSS\x20URL\x20is\x20unreachable:\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','parse','Menu\x20sync\x20completed','string','import','Start\x20non-interactive\x20menu\x20sync','menu-sync','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','pages','join','3vIepMc','10329sQTYcr','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','12EABlVN','280293kgkzLt','3119102dMRJqp','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','hasOwn','keys','isArray','dryRun','path','length','jsUrl','Invalid\x20--params:\x20','cwd','Invalid\x20--params\x20fields:\x20','405906jQluXb','cssUrl','procode','9ABKorK','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','push','1753568EuPwtr'];a148_0x5291=function(){return _0x2202ce;};return a148_0x5291();}function validateParams(_0x2517c1){const _0xfcee6=a148_0x4a8640,_0x5b6857=[];return _0x2517c1[_0xfcee6(0x92)]&&!isValidJsHttpsUrl(_0x2517c1[_0xfcee6(0x92)])&&_0x5b6857[_0xfcee6(0x9b)]({'field':'jsUrl','message':_0xfcee6(0xb0)}),_0x2517c1[_0xfcee6(0x97)]&&!isValidCssHttpsUrl(_0x2517c1['cssUrl'])&&_0x5b6857[_0xfcee6(0x9b)]({'field':_0xfcee6(0x97),'message':_0xfcee6(0xbc)}),_0x5b6857;}export async function runMenuSyncCore(_0x33ac63,_0x26c019,_0x2de4b2=[],_0x1bf6ac,_0x1fbb17={}){const _0x569b96=a148_0x4a8640,_0x3f0ada=parseMenuSyncParams(_0x1bf6ac),_0x16ec41=[...new Set(_0x2de4b2[_0x569b96(0xa5)](_0x3280be=>_0x3280be[_0x569b96(0xa8)]())['filter'](Boolean))],_0x27638f=_0x3f0ada[_0x569b96(0x92)],_0x589c11=_0x3f0ada[_0x569b96(0x97)],_0xb2d82c=[];if(_0x27638f)_0xb2d82c[_0x569b96(0x9b)](_0x27638f);if(_0x589c11)_0xb2d82c[_0x569b96(0x9b)](_0x589c11);const _0x59191c=validateParams(_0x3f0ada);if(_0x59191c[_0x569b96(0x91)]>0x0){const _0x1183c7=_0x59191c[_0x569b96(0xa5)](_0x3d3952=>_0x569b96(0x9e)+_0x3d3952[_0x569b96(0xaa)]+':\x20'+_0x3d3952[_0x569b96(0xa1)])[_0x569b96(0xb9)](';\x20');throw new Error(_0x569b96(0x93)+_0x1183c7);}logger[_0x569b96(0xa0)](process[_0x569b96(0x94)]()),logger[_0x569b96(0x9f)](_0x569b96(0xb6),_0x569b96(0xb5),{'appCode':_0x33ac63,'selectedCount':_0x16ec41[_0x569b96(0x91)],'jsUrl':_0x27638f,'cssUrl':_0x589c11});if(_0x27638f){const _0x29fba6=await isUrlReachable(_0x27638f);if(!_0x29fba6)throw new Error(_0x569b96(0xac)+_0x27638f);}if(_0x589c11){const _0x57de4a=await isUrlReachable(_0x589c11);if(!_0x57de4a)throw new Error(_0x569b96(0xaf)+_0x589c11);}const _0x5468ec=getLocalPages();if(_0x5468ec['length']===0x0){if(_0x16ec41[_0x569b96(0x91)]>0x0)throw new Error(_0x569b96(0xae)+_0x16ec41['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x1fbb17['dryRun']===!![],'targetPages':[],'plannedMenus':[]};}const _0x40d309=await getOnlineMenuList(_0x33ac63,_0x26c019),_0x28fcef=new Set(_0x40d309['map'](_0x3289bc=>_0x3289bc[_0x569b96(0xc6)]));let _0x591d54;if(_0x16ec41[_0x569b96(0x91)]>0x0){const _0x55d8c=new Map(_0x5468ec[_0x569b96(0xa5)](_0x134898=>[_0x134898[_0x569b96(0xc6)],_0x134898])),_0xd045ab=_0x16ec41[_0x569b96(0xbd)](_0xd01061=>!_0x55d8c[_0x569b96(0xa6)](_0xd01061));if(_0xd045ab[_0x569b96(0x91)]>0x0){const _0x11b5de=_0x5468ec[_0x569b96(0xa5)](_0x4bae39=>_0x4bae39['path'])[_0x569b96(0xb9)](',\x20');throw new Error(_0x569b96(0xae)+_0xd045ab[_0x569b96(0xb9)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x11b5de);}const _0xd633bf=_0x16ec41[_0x569b96(0xbd)](_0x498f7c=>_0x28fcef['has'](_0x498f7c));if(_0xd633bf['length']>0x0)throw new Error(_0x569b96(0x9a)+_0xd633bf[_0x569b96(0xb9)](',\x20'));_0x591d54=_0x16ec41[_0x569b96(0xa5)](_0x387c2d=>_0x55d8c['get'](_0x387c2d));}else _0x591d54=_0x5468ec[_0x569b96(0xbd)](_0x27cc77=>!_0x28fcef['has'](_0x27cc77[_0x569b96(0xc6)]));if(_0x591d54[_0x569b96(0x91)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x1fbb17[_0x569b96(0xc5)]===!![],'targetPages':[],'plannedMenus':[]};const _0x27f45e=_0x591d54['map'](_0x53efbb=>({'type':_0x569b96(0x98),'path':_0x53efbb[_0x569b96(0xc6)],'label':_0x53efbb[_0x569b96(0xad)],'loadScriptMode':_0x569b96(0xb4),'resources':[..._0xb2d82c]}));if(_0x1fbb17['dryRun'])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x591d54,'plannedMenus':_0x27f45e};const _0xd104ee=await createMenus(_0x33ac63,_0x26c019,_0x591d54,_0xb2d82c['length']>0x0?_0xb2d82c:undefined);return logger[_0x569b96(0x9f)](_0x569b96(0xb6),_0x569b96(0xb2),{'count':_0x591d54[_0x569b96(0x91)],'resources':_0xb2d82c}),{'created':_0xd104ee[_0x569b96(0x91)],'skipped':![],'dryRun':![],'targetPages':_0x591d54,'plannedMenus':_0x27f45e,'menus':_0xd104ee};}export function parseMenuSyncParams(_0x335b75){const _0x53e186=a148_0x4a8640;if(!_0x335b75||typeof _0x335b75!==_0x53e186(0xb3))return{};let _0x58d428;try{_0x58d428=JSON[_0x53e186(0xb1)](_0x335b75);}catch{throw new Error('Invalid\x20--params\x20JSON.');}if(typeof _0x58d428!==_0x53e186(0xa9)||_0x58d428===null||Array[_0x53e186(0xc4)](_0x58d428))throw new Error(_0x53e186(0xb7));const _0x1b582f=_0x58d428;if(Object[_0x53e186(0xc2)](_0x1b582f,_0x53e186(0xb8)))throw new Error(_0x53e186(0xc1));const _0x193f7a=Object[_0x53e186(0xc3)](_0x1b582f)[_0x53e186(0xbd)](_0x4e6174=>!MENU_SYNC_PARAM_KEYS[_0x53e186(0xa6)](_0x4e6174));if(_0x193f7a['length']>0x0)throw new Error(_0x53e186(0x95)+_0x193f7a['join'](',\x20')+'.');for(const _0x376727 of MENU_SYNC_PARAM_KEYS){const _0x21d591=_0x1b582f[_0x376727];if(_0x21d591!==undefined&&(typeof _0x21d591!=='string'||_0x21d591[_0x53e186(0xa8)]()===''))throw new Error(_0x53e186(0xa7)+_0x376727+':\x20expected\x20a\x20non-empty\x20string.');}return{'jsUrl':typeof _0x1b582f[_0x53e186(0x92)]===_0x53e186(0xb3)?_0x1b582f['jsUrl'][_0x53e186(0xa8)]():undefined,'cssUrl':typeof _0x1b582f['cssUrl']===_0x53e186(0xb3)?_0x1b582f[_0x53e186(0x97)][_0x53e186(0xa8)]():undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3d0522,_0x568f98){const _0x1e92d8=a150_0x5ca0,_0x5a5e5b=_0x3d0522();while(!![]){try{const _0x1a4849=-parseInt(_0x1e92d8(0x96))/0x1+-parseInt(_0x1e92d8(0xb6))/0x2*(-parseInt(_0x1e92d8(0x9a))/0x3)+-parseInt(_0x1e92d8(0x84))/0x4*(-parseInt(_0x1e92d8(0x7d))/0x5)+parseInt(_0x1e92d8(0x93))/0x6*(-parseInt(_0x1e92d8(0xb3))/0x7)+parseInt(_0x1e92d8(0x8c))/0x8+parseInt(_0x1e92d8(0x7e))/0x9+-parseInt(_0x1e92d8(0x9c))/0xa;if(_0x1a4849===_0x568f98)break;else _0x5a5e5b['push'](_0x5a5e5b['shift']());}catch(_0x5af225){_0x5a5e5b['push'](_0x5a5e5b['shift']());}}}(a150_0x3193,0x2b3bc));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';function a150_0x5ca0(_0x565057,_0x299f0d){_0x565057=_0x565057-0x7c;const _0x319328=a150_0x3193();let _0x5ca003=_0x319328[_0x565057];return _0x5ca003;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x573ba7){const _0x5db820=a150_0x5ca0,_0x49b7d6=[];return _0x573ba7['jsUrl']&&!isValidJsHttpsUrl(_0x573ba7[_0x5db820(0x8d)])&&_0x49b7d6[_0x5db820(0xa4)]({'field':_0x5db820(0x8d),'message':_0x5db820(0x95)}),_0x573ba7[_0x5db820(0xbd)]&&!isValidCssHttpsUrl(_0x573ba7[_0x5db820(0xbd)])&&_0x49b7d6['push']({'field':_0x5db820(0xbd),'message':_0x5db820(0xab)}),_0x49b7d6;}export async function runMenuUpdateCore(_0x30a4dc,_0x4b9b54,_0x464579,_0x4fb2fb={}){const _0x3ec712=a150_0x5ca0,_0x803608=parseUpdateParamsFlag(_0x464579),_0x1cdc13=normalizeMode(_0x4fb2fb[_0x3ec712(0xbb)]);validateSelection(_0x4fb2fb[_0x3ec712(0x85)]);const _0x38a266=[];if(_0x803608['jsUrl'])_0x38a266['push'](_0x803608['jsUrl']);if(_0x803608[_0x3ec712(0xbd)])_0x38a266[_0x3ec712(0xa4)](_0x803608['cssUrl']);const _0x32f693=validateParams(_0x803608);if(_0x32f693[_0x3ec712(0xbe)]>0x0){const _0x18c847=_0x32f693[_0x3ec712(0x87)](_0x33928d=>_0x3ec712(0x90)+_0x33928d[_0x3ec712(0xba)]+':\x20'+_0x33928d[_0x3ec712(0x81)])[_0x3ec712(0xb1)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x18c847);}if(_0x38a266[_0x3ec712(0xbe)]===0x0)throw new Error(_0x3ec712(0xa3)+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x3ec712(0x8e)](process[_0x3ec712(0x80)]()),logger[_0x3ec712(0x99)]('menu-asset-update','Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0x30a4dc,'jsUrl':_0x803608['jsUrl'],'cssUrl':_0x803608[_0x3ec712(0xbd)],'mode':_0x1cdc13,'dryRun':_0x4fb2fb[_0x3ec712(0xaa)]===!![]});if(_0x803608[_0x3ec712(0x8d)]){const _0x3b8a79=await isUrlReachable(_0x803608['jsUrl']);if(!_0x3b8a79)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x803608[_0x3ec712(0x8d)]);}if(_0x803608[_0x3ec712(0xbd)]){const _0x2d5ec5=await isUrlReachable(_0x803608['cssUrl']);if(!_0x2d5ec5)throw new Error(_0x3ec712(0xae)+_0x803608['cssUrl']);}const _0x9a8028=await getOnlineMenuList(_0x30a4dc,_0x4b9b54),_0x2721bc=_0x9a8028['filter'](_0x5ccbef=>_0x5ccbef[_0x3ec712(0xb4)][_0x3ec712(0xbe)]>0x0),_0x4691d0=selectMenusForUpdate(_0x2721bc,_0x4fb2fb['selection']);if(_0x4691d0['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4fb2fb[_0x3ec712(0xaa)]===!![]};const _0x549f44=_0x4691d0[_0x3ec712(0x87)](_0x39f75c=>buildMenuUpdateDiff(_0x39f75c,_0x803608,_0x1cdc13,_0x4fb2fb['force']===!![],_0x4fb2fb[_0x3ec712(0xad)]));if(_0x4fb2fb['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x549f44};const _0x597974=await Promise['allSettled'](_0x4691d0[_0x3ec712(0x87)]((_0x24f27c,_0x1246ee)=>updateMenuCdnUrl(_0x30a4dc,_0x4b9b54,{'id':_0x24f27c['id'],'label':_0x24f27c[_0x3ec712(0x7c)],'path':_0x24f27c[_0x3ec712(0xbf)],'resources':_0x549f44[_0x1246ee][_0x3ec712(0xa9)][_0x3ec712(0xb4)],'extend':_0x24f27c[_0x3ec712(0xa2)]??null,'loadScriptMode':_0x4fb2fb[_0x3ec712(0xad)]}))),_0x13e503=_0x597974[_0x3ec712(0x92)](_0x2c1ffa=>_0x2c1ffa[_0x3ec712(0xac)]===_0x3ec712(0xa0))[_0x3ec712(0x87)](_0x54b404=>_0x54b404[_0x3ec712(0xa1)]),_0x2091ed=_0x597974[_0x3ec712(0x92)](_0x4c306f=>_0x4c306f[_0x3ec712(0xac)]==='rejected')[_0x3ec712(0xbe)];return logger[_0x3ec712(0x99)](_0x3ec712(0x9b),'Menu\x20asset\x20update\x20completed',{'count':_0x4691d0[_0x3ec712(0xbe)],'resources':_0x38a266}),{'updated':_0x13e503[_0x3ec712(0xbe)],'failed':_0x2091ed,'skipped':![],'menus':_0x13e503};}function validateSelection(_0x18e6db){const _0x4ab94c=a150_0x5ca0;if(!_0x18e6db)throw new Error(_0x4ab94c(0x98));if(_0x18e6db[_0x4ab94c(0x7f)]&&(_0x18e6db[_0x4ab94c(0xbc)][_0x4ab94c(0xbe)]>0x0||_0x18e6db[_0x4ab94c(0x88)][_0x4ab94c(0xbe)]>0x0))throw new Error(_0x4ab94c(0x97));if(!_0x18e6db[_0x4ab94c(0x7f)]&&_0x18e6db[_0x4ab94c(0xbc)][_0x4ab94c(0xbe)]===0x0&&_0x18e6db[_0x4ab94c(0x88)][_0x4ab94c(0xbe)]===0x0)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');}export function selectMenusForUpdate(_0x3ded97,_0x3640a0){const _0x12eb46=a150_0x5ca0;validateSelection(_0x3640a0);if(_0x3640a0[_0x12eb46(0x7f)])return _0x3ded97;const _0x51906a=new Set(_0x3ded97[_0x12eb46(0x87)](_0x3b0a11=>_0x3b0a11['id'])),_0x5a8219=new Set(_0x3ded97[_0x12eb46(0x87)](_0x4d9adc=>_0x4d9adc[_0x12eb46(0xbf)])),_0x5500bf=_0x3640a0[_0x12eb46(0xbc)][_0x12eb46(0x92)](_0x5dfb9e=>!_0x51906a[_0x12eb46(0x8f)](_0x5dfb9e)),_0x10397e=_0x3640a0[_0x12eb46(0x88)][_0x12eb46(0x92)](_0x2aed5c=>!_0x5a8219[_0x12eb46(0x8f)](_0x2aed5c));if(_0x5500bf[_0x12eb46(0xbe)]>0x0||_0x10397e[_0x12eb46(0xbe)]>0x0){const _0x1d0055=[..._0x5500bf[_0x12eb46(0x87)](_0x24c040=>String(_0x24c040)),..._0x10397e]['join'](',\x20');throw new Error(_0x12eb46(0xb2)+_0x1d0055);}const _0x579cc8=new Set(_0x3640a0[_0x12eb46(0xbc)]),_0x36d2f7=new Set(_0x3640a0[_0x12eb46(0x88)]);return _0x3ded97[_0x12eb46(0x92)](_0xc8d6c2=>_0x579cc8['has'](_0xc8d6c2['id'])||_0x36d2f7[_0x12eb46(0x8f)](_0xc8d6c2['path']));}function normalizeMode(_0x48380f){const _0x4d5516=a150_0x5ca0;if(!_0x48380f)return _0x4d5516(0x82);if(_0x48380f===_0x4d5516(0xb0)||_0x48380f===_0x4d5516(0x82))return _0x48380f;throw new Error(_0x4d5516(0x86)+_0x48380f+_0x4d5516(0xb7));}function a150_0x3193(){const _0x5e4f9f=['1238485JjckQB','2723508nLPLXG','all','cwd','message','patch','\x20existing\x20JS\x20resources\x20for\x20\x22','4dtmXTv','selection','Invalid\x20--mode:\x20','map','paths','parse','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','1706768iXAWwk','jsUrl','setLogPath','has','--params.','toLowerCase','filter','3648ErPIjZ',').\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','50295wpiaxb','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','info','142179QKgztN','menu-asset-update','5629660iofzRu','\x22\x20(','unshift','string','fulfilled','value','extend','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','push','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','trim','isArray','.css','after','dryRun','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','status','loadScriptMode','CSS\x20URL\x20is\x20unreachable:\x20','object','replace','join','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','784AyeEem','resources','menu\x20asset-update\x20cannot\x20patch\x20','4gpCFmZ','.\x20Allowed\x20values:\x20replace,\x20patch','some','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','field','mode','menuIds','cssUrl','length','path','label'];a150_0x3193=function(){return _0x5e4f9f;};return a150_0x3193();}function buildMenuUpdateDiff(_0x3b713d,_0x4f564b,_0x88d348,_0x23e0b7,_0x5c890a){const _0x228979=a150_0x5ca0,_0x2db23a=[..._0x3b713d[_0x228979(0xb4)]];_0x88d348==='patch'&&assertUnambiguousPatchResources(_0x3b713d,_0x2db23a,_0x4f564b);const _0x144f1f=_0x88d348===_0x228979(0x82)?patchResources(_0x2db23a,_0x4f564b):replaceResources(_0x4f564b),_0x5a0428=[],_0x76a9e0=_0x2db23a[_0x228979(0xb8)](isJsResource),_0x1da47a=_0x144f1f[_0x228979(0xb8)](isJsResource);if(_0x76a9e0&&!_0x1da47a){const _0x265b85=_0x228979(0xa5)+_0x3b713d[_0x228979(0x7c)]+_0x228979(0x9d)+_0x3b713d[_0x228979(0xbf)]+_0x228979(0x94)+_0x228979(0xb9);if(!_0x23e0b7)throw new Error(_0x265b85);_0x5a0428[_0x228979(0xa4)](_0x265b85);}const _0x4a4a6f=_0x2db23a[_0x228979(0xb8)](isCssResource),_0x497439=_0x144f1f['some'](isCssResource);_0x4a4a6f&&!_0x497439&&_0x5a0428[_0x228979(0xa4)]('menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x3b713d[_0x228979(0x7c)]+_0x228979(0x9d)+_0x3b713d[_0x228979(0xbf)]+').');const _0x6db238=typeof _0x3b713d[_0x228979(0xa2)]?.[_0x228979(0xad)]==='string'?_0x3b713d[_0x228979(0xa2)][_0x228979(0xad)]:null,_0x5cede5=_0x5c890a?{'loadScriptMode':_0x6db238}:{},_0xcceea0=_0x5c890a?{'loadScriptMode':_0x5c890a}:{};return{'id':_0x3b713d['id'],'label':_0x3b713d['label'],'path':_0x3b713d['path'],'mode':_0x88d348,'before':{'resources':_0x2db23a,..._0x5cede5},'after':{'resources':_0x144f1f,..._0xcceea0},'warnings':_0x5a0428};}function replaceResources(_0x15b3e4){const _0x663cd=a150_0x5ca0;return[_0x15b3e4[_0x663cd(0x8d)],_0x15b3e4[_0x663cd(0xbd)]][_0x663cd(0x92)](_0x16d82c=>!!_0x16d82c);}function assertUnambiguousPatchResources(_0x23f5b7,_0xf98236,_0x3fa7d2){const _0x356198=a150_0x5ca0,_0x5baae3=_0xf98236[_0x356198(0x92)](isJsResource)[_0x356198(0xbe)];if(_0x3fa7d2[_0x356198(0x8d)]&&_0x5baae3>0x1)throw new Error(_0x356198(0xb5)+_0x5baae3+_0x356198(0x83)+_0x23f5b7[_0x356198(0x7c)]+_0x356198(0x9d)+_0x23f5b7[_0x356198(0xbf)]+')\x20'+_0x356198(0x8b));const _0x2f7ac1=_0xf98236[_0x356198(0x92)](isCssResource)[_0x356198(0xbe)];if(_0x3fa7d2[_0x356198(0xbd)]&&_0x2f7ac1>0x1)throw new Error(_0x356198(0xb5)+_0x2f7ac1+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x23f5b7[_0x356198(0x7c)]+_0x356198(0x9d)+_0x23f5b7[_0x356198(0xbf)]+')\x20'+_0x356198(0x8a));}function patchResources(_0x1271d6,_0x529348){const _0x17826f=a150_0x5ca0;let _0x2e61d5=![],_0x5b83ab=![];const _0x4336cb=[];for(const _0x4e9a8f of _0x1271d6){if(isJsResource(_0x4e9a8f)){if(_0x529348['jsUrl']&&!_0x2e61d5)_0x4336cb[_0x17826f(0xa4)](_0x529348[_0x17826f(0x8d)]),_0x2e61d5=!![];else!_0x529348[_0x17826f(0x8d)]&&_0x4336cb['push'](_0x4e9a8f);continue;}if(isCssResource(_0x4e9a8f)){if(_0x529348[_0x17826f(0xbd)]&&!_0x5b83ab)_0x4336cb['push'](_0x529348[_0x17826f(0xbd)]),_0x5b83ab=!![];else!_0x529348[_0x17826f(0xbd)]&&_0x4336cb[_0x17826f(0xa4)](_0x4e9a8f);continue;}_0x4336cb[_0x17826f(0xa4)](_0x4e9a8f);}return _0x529348[_0x17826f(0x8d)]&&!_0x2e61d5&&_0x4336cb[_0x17826f(0x9e)](_0x529348[_0x17826f(0x8d)]),_0x529348['cssUrl']&&!_0x5b83ab&&_0x4336cb[_0x17826f(0xa4)](_0x529348[_0x17826f(0xbd)]),_0x4336cb;}function isJsResource(_0x5135b8){const _0x529434=a150_0x5ca0;return stripQuery(_0x5135b8)[_0x529434(0x91)]()['endsWith']('.js');}function isCssResource(_0x1a2a10){const _0x4a4327=a150_0x5ca0;return stripQuery(_0x1a2a10)[_0x4a4327(0x91)]()['endsWith'](_0x4a4327(0xa8));}function stripQuery(_0x177767){return _0x177767['split']('?')[0x0]??_0x177767;}function parseUpdateParamsFlag(_0x28946b){const _0x311ffe=a150_0x5ca0;if(!_0x28946b||typeof _0x28946b!==_0x311ffe(0x9f))return{};try{const _0x148255=JSON[_0x311ffe(0x89)](_0x28946b);if(typeof _0x148255!==_0x311ffe(0xaf)||_0x148255===null||Array[_0x311ffe(0xa7)](_0x148255))return{};return{'jsUrl':typeof _0x148255[_0x311ffe(0x8d)]===_0x311ffe(0x9f)?_0x148255[_0x311ffe(0x8d)][_0x311ffe(0xa6)]():undefined,'cssUrl':typeof _0x148255[_0x311ffe(0xbd)]===_0x311ffe(0x9f)?_0x148255[_0x311ffe(0xbd)][_0x311ffe(0xa6)]():undefined};}catch{return{};}}
|
|
1
|
+
(function(_0x33bb29,_0x5ac990){const _0x5c8977=a150_0x406c,_0x2e2664=_0x33bb29();while(!![]){try{const _0x175d74=parseInt(_0x5c8977(0x20f))/0x1+parseInt(_0x5c8977(0x1e1))/0x2*(parseInt(_0x5c8977(0x1f0))/0x3)+parseInt(_0x5c8977(0x1e9))/0x4+-parseInt(_0x5c8977(0x1e6))/0x5*(parseInt(_0x5c8977(0x216))/0x6)+parseInt(_0x5c8977(0x202))/0x7*(parseInt(_0x5c8977(0x207))/0x8)+-parseInt(_0x5c8977(0x1f3))/0x9*(-parseInt(_0x5c8977(0x1fd))/0xa)+parseInt(_0x5c8977(0x214))/0xb*(-parseInt(_0x5c8977(0x1fa))/0xc);if(_0x175d74===_0x5ac990)break;else _0x2e2664['push'](_0x2e2664['shift']());}catch(_0xb06457){_0x2e2664['push'](_0x2e2664['shift']());}}}(a150_0x2fb3,0xb99a1));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a150_0x406c(_0x4ade77,_0x2b97db){_0x4ade77=_0x4ade77-0x1d3;const _0x2fb32a=a150_0x2fb3();let _0x406cea=_0x2fb32a[_0x4ade77];return _0x406cea;}function validateParams(_0x86258f){const _0xb1540e=a150_0x406c,_0x23b8dc=[];return _0x86258f[_0xb1540e(0x1e8)]&&!isValidJsHttpsUrl(_0x86258f[_0xb1540e(0x1e8)])&&_0x23b8dc[_0xb1540e(0x1ea)]({'field':_0xb1540e(0x1e8),'message':_0xb1540e(0x1fc)}),_0x86258f[_0xb1540e(0x1f6)]&&!isValidCssHttpsUrl(_0x86258f[_0xb1540e(0x1f6)])&&_0x23b8dc[_0xb1540e(0x1ea)]({'field':_0xb1540e(0x1f6),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x23b8dc;}function a150_0x2fb3(){const _0x50b99a=['menu-asset-update','\x20existing\x20CSS\x20resources\x20for\x20\x22','resources','paths','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','label','has','value','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','isArray','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','loadScriptMode','toLowerCase','94ciRPNz','menuIds','cwd','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','force','10egWeCd','dryRun','jsUrl','2629276MfDMXB','push','\x22\x20(','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','parse','--params.','map','5955ZYzExw','object','.css','405VLzXrR','some','join','cssUrl','Start\x20non-interactive\x20menu\x20asset\x20update','patch','info','96PDtbEB','mode','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','20860HODMFT','JS\x20URL\x20is\x20unreachable:\x20','filter','trim','status','49FhejKT','all','rejected','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','string','1107688vtHWXY','field','menu\x20asset-update\x20cannot\x20patch\x20','length','Invalid\x20--params:\x20','extend','Menu\x20asset\x20update\x20completed','CSS\x20URL\x20is\x20unreachable:\x20','561386sYLzcP','message','after','endsWith','selection','862411rUMaHH','.js','2962992WXMkCo','.\x20Allowed\x20values:\x20replace,\x20patch','allSettled','path'];a150_0x2fb3=function(){return _0x50b99a;};return a150_0x2fb3();}export async function runMenuUpdateCore(_0x522183,_0x326f5b,_0x31e195,_0x4e1b8e={}){const _0x20389a=a150_0x406c,_0x43cc42=parseUpdateParamsFlag(_0x31e195),_0x53442e=normalizeMode(_0x4e1b8e[_0x20389a(0x1fb)]);validateSelection(_0x4e1b8e[_0x20389a(0x213)]);const _0x556584=[];if(_0x43cc42[_0x20389a(0x1e8)])_0x556584[_0x20389a(0x1ea)](_0x43cc42[_0x20389a(0x1e8)]);if(_0x43cc42[_0x20389a(0x1f6)])_0x556584['push'](_0x43cc42[_0x20389a(0x1f6)]);const _0xd23e76=validateParams(_0x43cc42);if(_0xd23e76[_0x20389a(0x20a)]>0x0){const _0x3dd817=_0xd23e76[_0x20389a(0x1ef)](_0x10a2dc=>_0x20389a(0x1ee)+_0x10a2dc[_0x20389a(0x208)]+':\x20'+_0x10a2dc[_0x20389a(0x210)])[_0x20389a(0x1f5)](';\x20');throw new Error(_0x20389a(0x20b)+_0x3dd817);}if(_0x556584['length']===0x0)throw new Error(_0x20389a(0x1de)+_0x20389a(0x1d8));logger['setLogPath'](process[_0x20389a(0x1e3)]()),logger[_0x20389a(0x1f9)](_0x20389a(0x1d4),_0x20389a(0x1f7),{'appCode':_0x522183,'jsUrl':_0x43cc42[_0x20389a(0x1e8)],'cssUrl':_0x43cc42[_0x20389a(0x1f6)],'mode':_0x53442e,'dryRun':_0x4e1b8e[_0x20389a(0x1e7)]===!![]});if(_0x43cc42[_0x20389a(0x1e8)]){const _0x14584a=await isUrlReachable(_0x43cc42[_0x20389a(0x1e8)]);if(!_0x14584a)throw new Error(_0x20389a(0x1fe)+_0x43cc42[_0x20389a(0x1e8)]);}if(_0x43cc42['cssUrl']){const _0x55b354=await isUrlReachable(_0x43cc42[_0x20389a(0x1f6)]);if(!_0x55b354)throw new Error(_0x20389a(0x20e)+_0x43cc42[_0x20389a(0x1f6)]);}const _0x3f46c9=await getOnlineMenuList(_0x522183,_0x326f5b),_0xb50377=_0x3f46c9['filter'](_0x2d81f=>_0x2d81f[_0x20389a(0x1d6)]['length']>0x0),_0x36c273=selectMenusForUpdate(_0xb50377,_0x4e1b8e[_0x20389a(0x213)]);if(_0x36c273[_0x20389a(0x20a)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4e1b8e[_0x20389a(0x1e7)]===!![]};const _0x3780b0=_0x36c273['map'](_0x5aeb8b=>buildMenuUpdateDiff(_0x5aeb8b,_0x43cc42,_0x53442e,_0x4e1b8e[_0x20389a(0x1e5)]===!![],_0x4e1b8e[_0x20389a(0x1df)]));if(_0x4e1b8e[_0x20389a(0x1e7)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x3780b0};const _0x25055e=await Promise[_0x20389a(0x218)](_0x36c273[_0x20389a(0x1ef)]((_0x21dacb,_0x55cd99)=>updateMenuCdnUrl(_0x522183,_0x326f5b,{'id':_0x21dacb['id'],'label':_0x21dacb[_0x20389a(0x1d9)],'path':_0x21dacb['path'],'resources':_0x3780b0[_0x55cd99][_0x20389a(0x211)]['resources'],'extend':_0x21dacb[_0x20389a(0x20c)]??null,'loadScriptMode':_0x4e1b8e['loadScriptMode']}))),_0x52e503=_0x25055e[_0x20389a(0x1ff)](_0x1c8ce6=>_0x1c8ce6[_0x20389a(0x201)]==='fulfilled')[_0x20389a(0x1ef)](_0x6bbbba=>_0x6bbbba[_0x20389a(0x1db)]),_0x2ad0ec=_0x25055e['filter'](_0x5b23ff=>_0x5b23ff['status']===_0x20389a(0x204))[_0x20389a(0x20a)];return logger['info']('menu-asset-update',_0x20389a(0x20d),{'count':_0x36c273[_0x20389a(0x20a)],'resources':_0x556584}),{'updated':_0x52e503[_0x20389a(0x20a)],'failed':_0x2ad0ec,'skipped':![],'menus':_0x52e503};}function validateSelection(_0x239229){const _0xd41e55=a150_0x406c;if(!_0x239229)throw new Error(_0xd41e55(0x1dc));if(_0x239229[_0xd41e55(0x203)]&&(_0x239229[_0xd41e55(0x1e2)][_0xd41e55(0x20a)]>0x0||_0x239229['paths'][_0xd41e55(0x20a)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0x239229[_0xd41e55(0x203)]&&_0x239229[_0xd41e55(0x1e2)][_0xd41e55(0x20a)]===0x0&&_0x239229[_0xd41e55(0x1d7)][_0xd41e55(0x20a)]===0x0)throw new Error(_0xd41e55(0x1dc));}export function selectMenusForUpdate(_0x181d23,_0x31cad5){const _0x45a295=a150_0x406c;validateSelection(_0x31cad5);if(_0x31cad5[_0x45a295(0x203)])return _0x181d23;const _0x5423b6=new Set(_0x181d23[_0x45a295(0x1ef)](_0x5b5a5b=>_0x5b5a5b['id'])),_0x5b9f7b=new Set(_0x181d23[_0x45a295(0x1ef)](_0x5520f4=>_0x5520f4[_0x45a295(0x1d3)])),_0xcd3cbd=_0x31cad5['menuIds']['filter'](_0xc8c6b1=>!_0x5423b6[_0x45a295(0x1da)](_0xc8c6b1)),_0x481a16=_0x31cad5['paths']['filter'](_0xed2e80=>!_0x5b9f7b['has'](_0xed2e80));if(_0xcd3cbd['length']>0x0||_0x481a16[_0x45a295(0x20a)]>0x0){const _0xaea89d=[..._0xcd3cbd[_0x45a295(0x1ef)](_0x4e016a=>String(_0x4e016a)),..._0x481a16][_0x45a295(0x1f5)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0xaea89d);}const _0x248701=new Set(_0x31cad5[_0x45a295(0x1e2)]),_0x2eb898=new Set(_0x31cad5[_0x45a295(0x1d7)]);return _0x181d23['filter'](_0x585093=>_0x248701[_0x45a295(0x1da)](_0x585093['id'])||_0x2eb898[_0x45a295(0x1da)](_0x585093[_0x45a295(0x1d3)]));}function normalizeMode(_0x5a9492){const _0x5c89e4=a150_0x406c;if(!_0x5a9492)return _0x5c89e4(0x1f8);if(_0x5a9492==='replace'||_0x5a9492==='patch')return _0x5a9492;throw new Error('Invalid\x20--mode:\x20'+_0x5a9492+_0x5c89e4(0x217));}function buildMenuUpdateDiff(_0x12a084,_0x31f62b,_0x4a729a,_0x3b9533,_0x3dcfd4){const _0x27251a=a150_0x406c,_0x26cd5f=[..._0x12a084[_0x27251a(0x1d6)]];_0x4a729a===_0x27251a(0x1f8)&&assertUnambiguousPatchResources(_0x12a084,_0x26cd5f,_0x31f62b);const _0x1e406b=_0x4a729a===_0x27251a(0x1f8)?patchResources(_0x26cd5f,_0x31f62b):replaceResources(_0x31f62b),_0x1749ba=[],_0x353791=_0x26cd5f[_0x27251a(0x1f4)](isJsResource),_0x5ad90f=_0x1e406b['some'](isJsResource);if(_0x353791&&!_0x5ad90f){const _0x27ab0='menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x12a084[_0x27251a(0x1d9)]+_0x27251a(0x1eb)+_0x12a084[_0x27251a(0x1d3)]+').\x20'+_0x27251a(0x1e4);if(!_0x3b9533)throw new Error(_0x27ab0);_0x1749ba[_0x27251a(0x1ea)](_0x27ab0);}const _0x528a7e=_0x26cd5f[_0x27251a(0x1f4)](isCssResource),_0x31c837=_0x1e406b[_0x27251a(0x1f4)](isCssResource);_0x528a7e&&!_0x31c837&&_0x1749ba[_0x27251a(0x1ea)](_0x27251a(0x1ec)+_0x12a084[_0x27251a(0x1d9)]+'\x22\x20('+_0x12a084[_0x27251a(0x1d3)]+').');const _0x380828=typeof _0x12a084['extend']?.[_0x27251a(0x1df)]===_0x27251a(0x206)?_0x12a084['extend'][_0x27251a(0x1df)]:null,_0x4cb626=_0x3dcfd4?{'loadScriptMode':_0x380828}:{},_0x286449=_0x3dcfd4?{'loadScriptMode':_0x3dcfd4}:{};return{'id':_0x12a084['id'],'label':_0x12a084[_0x27251a(0x1d9)],'path':_0x12a084[_0x27251a(0x1d3)],'mode':_0x4a729a,'before':{'resources':_0x26cd5f,..._0x4cb626},'after':{'resources':_0x1e406b,..._0x286449},'warnings':_0x1749ba};}function replaceResources(_0x29e216){const _0x42cd79=a150_0x406c;return[_0x29e216['jsUrl'],_0x29e216['cssUrl']][_0x42cd79(0x1ff)](_0x57f3cd=>!!_0x57f3cd);}function assertUnambiguousPatchResources(_0x36045b,_0x34518c,_0x410b23){const _0x1c63a8=a150_0x406c,_0x4136e6=_0x34518c[_0x1c63a8(0x1ff)](isJsResource)['length'];if(_0x410b23['jsUrl']&&_0x4136e6>0x1)throw new Error(_0x1c63a8(0x209)+_0x4136e6+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x36045b[_0x1c63a8(0x1d9)]+_0x1c63a8(0x1eb)+_0x36045b['path']+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x3aebfc=_0x34518c['filter'](isCssResource)[_0x1c63a8(0x20a)];if(_0x410b23['cssUrl']&&_0x3aebfc>0x1)throw new Error(_0x1c63a8(0x209)+_0x3aebfc+_0x1c63a8(0x1d5)+_0x36045b[_0x1c63a8(0x1d9)]+_0x1c63a8(0x1eb)+_0x36045b[_0x1c63a8(0x1d3)]+')\x20'+_0x1c63a8(0x205));}function patchResources(_0x383044,_0x463281){const _0x478579=a150_0x406c;let _0x5c221c=![],_0x4f764a=![];const _0x69482e=[];for(const _0x21624f of _0x383044){if(isJsResource(_0x21624f)){if(_0x463281['jsUrl']&&!_0x5c221c)_0x69482e[_0x478579(0x1ea)](_0x463281[_0x478579(0x1e8)]),_0x5c221c=!![];else!_0x463281[_0x478579(0x1e8)]&&_0x69482e[_0x478579(0x1ea)](_0x21624f);continue;}if(isCssResource(_0x21624f)){if(_0x463281[_0x478579(0x1f6)]&&!_0x4f764a)_0x69482e[_0x478579(0x1ea)](_0x463281['cssUrl']),_0x4f764a=!![];else!_0x463281['cssUrl']&&_0x69482e[_0x478579(0x1ea)](_0x21624f);continue;}_0x69482e['push'](_0x21624f);}return _0x463281['jsUrl']&&!_0x5c221c&&_0x69482e['unshift'](_0x463281['jsUrl']),_0x463281[_0x478579(0x1f6)]&&!_0x4f764a&&_0x69482e[_0x478579(0x1ea)](_0x463281[_0x478579(0x1f6)]),_0x69482e;}function isJsResource(_0x3a33a0){const _0xd2c1cf=a150_0x406c;return stripQuery(_0x3a33a0)[_0xd2c1cf(0x1e0)]()[_0xd2c1cf(0x212)](_0xd2c1cf(0x215));}function isCssResource(_0x4526c9){const _0x4fec5b=a150_0x406c;return stripQuery(_0x4526c9)[_0x4fec5b(0x1e0)]()[_0x4fec5b(0x212)](_0x4fec5b(0x1f2));}function stripQuery(_0x7923f5){return _0x7923f5['split']('?')[0x0]??_0x7923f5;}function parseUpdateParamsFlag(_0xd7a209){const _0x182831=a150_0x406c;if(!_0xd7a209||typeof _0xd7a209!=='string')return{};try{const _0x724f6d=JSON[_0x182831(0x1ed)](_0xd7a209);if(typeof _0x724f6d!==_0x182831(0x1f1)||_0x724f6d===null||Array[_0x182831(0x1dd)](_0x724f6d))return{};return{'jsUrl':typeof _0x724f6d[_0x182831(0x1e8)]==='string'?_0x724f6d[_0x182831(0x1e8)]['trim']():undefined,'cssUrl':typeof _0x724f6d[_0x182831(0x1f6)]===_0x182831(0x206)?_0x724f6d[_0x182831(0x1f6)][_0x182831(0x200)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e44cd,_0x44afea){const _0x58bf59=a151_0x22f1,_0x2ef37f=_0x5e44cd();while(!![]){try{const _0x461ea7=parseInt(_0x58bf59(0x148))/0x1*(-parseInt(_0x58bf59(0x13e))/0x2)+parseInt(_0x58bf59(0x149))/0x3+-parseInt(_0x58bf59(0x140))/0x4*(-parseInt(_0x58bf59(0x13f))/0x5)+-parseInt(_0x58bf59(0x145))/0x6*(parseInt(_0x58bf59(0x144))/0x7)+-parseInt(_0x58bf59(0x13d))/0x8+-parseInt(_0x58bf59(0x141))/0x9+parseInt(_0x58bf59(0x142))/0xa;if(_0x461ea7===_0x44afea)break;else _0x2ef37f['push'](_0x2ef37f['shift']());}catch(_0x4e46d3){_0x2ef37f['push'](_0x2ef37f['shift']());}}}(a151_0x1c39,0xac312));export function isValidJsHttpsUrl(_0xd02861){const _0xd06579=a151_0x22f1;return/^https:\/\/.+\.js(\?.*)?$/[_0xd06579(0x143)](_0xd02861[_0xd06579(0x146)]());}function a151_0x22f1(_0xe4c9bd,_0x233992){_0xe4c9bd=_0xe4c9bd-0x13d;const _0x1c392f=a151_0x1c39();let _0x22f103=_0x1c392f[_0xe4c9bd];return _0x22f103;}export function isValidCssHttpsUrl(_0x3e0a88){const _0x43626c=a151_0x22f1;return/^https:\/\/.+\.css(\?.*)?$/[_0x43626c(0x143)](_0x3e0a88[_0x43626c(0x146)]());}export async function isUrlReachable(_0x32e6d7){const _0x81ae97=a151_0x22f1;try{const _0x5ec474=await fetch(_0x32e6d7,{'method':_0x81ae97(0x147)});return _0x5ec474['ok'];}catch{return![];}}function a151_0x1c39(){const _0x41c5ca=['1mkYDkM','3116961MArbGA','4412192YHekkJ','971206ssTHwn','67345cbzHut','288pNLLXQ','11046690WNvloJ','20255710Kvamrf','test','7wNibFO','6386946mTfVAd','trim','HEAD'];a151_0x1c39=function(){return _0x41c5ca;};return a151_0x1c39();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a152_0x442635=a152_0x3ff1;(function(_0x22ccd8,_0x28c43f){const _0x977b1d=a152_0x3ff1,_0x5839c1=_0x22ccd8();while(!![]){try{const _0x269beb=-parseInt(_0x977b1d(0x1be))/0x1*(parseInt(_0x977b1d(0x1e9))/0x2)+-parseInt(_0x977b1d(0x1b7))/0x3*(-parseInt(_0x977b1d(0x1aa))/0x4)+-parseInt(_0x977b1d(0x1e1))/0x5+-parseInt(_0x977b1d(0x1ab))/0x6+parseInt(_0x977b1d(0x1b4))/0x7+-parseInt(_0x977b1d(0x1e7))/0x8+parseInt(_0x977b1d(0x1cf))/0x9;if(_0x269beb===_0x28c43f)break;else _0x5839c1['push'](_0x5839c1['shift']());}catch(_0xb9e44e){_0x5839c1['push'](_0x5839c1['shift']());}}}(a152_0x5dd9,0x2bcb1));import a152_0x591a9c from'chalk';function a152_0x5dd9(){const _0x119d78=['3OoKzoi','targetPages','str','validation','params','rawFlags','sync','1BctAOZ','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','failed','trim','cookie','\x20\x20Continue\x20with\x20creation?','localPages','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','filter','\x20\x20✓\x20Selected:\x20','jsUrl','appcode','split','onlineMenuList','\x20menu(s)','yellow','\x20page(s)','3324231fRaixu','Menu\x20sync\x20completed:\x20','paths','created','write','\x20menu(s)\x20created','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','✓\x20Menu\x20sync\x20completed:\x20','string','cssUrl','/smartapi/menu/create','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20menu(s)\x20with\x20JS:\x20','length','Would\x20create\x20','\x20menu(s)...','\x20and\x20CSS:\x20','1679125LyjFvx','onlinePaths','\x20created,\x20','size','Menu\x20sync\x20skipped','Pre-fill\x20JS/CSS\x20URLs.\x20','513072MFogOi','skipped','246814HwDIFw','\x20\x20Create\x20','Created\x20','gray','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20\x20Cancelled.','yes','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','1340116BWxPOy','344478QkmRJE','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','\x20created.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','appCode','selectedAppName','cyan','Sync\x20local\x20pages\x20as\x20platform\x20menus','390376YWakvS','flag','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.'];a152_0x5dd9=function(){return _0x119d78;};return a152_0x5dd9();}import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';function a152_0x3ff1(_0x2288b8,_0x4c88fe){_0x2288b8=_0x2288b8-0x1a4;const _0x5dd9dd=a152_0x5dd9();let _0x3ff1e1=_0x5dd9dd[_0x2288b8];return _0x3ff1e1;}export const menuSync={'service':'menu','command':a152_0x442635(0x1bd),'description':a152_0x442635(0x1b3),'risk':a152_0x442635(0x1d3),'flags':[{'name':a152_0x442635(0x1bb),'type':'string','description':a152_0x442635(0x1e6)+a152_0x442635(0x1d5)},{'name':a152_0x442635(0x1d1),'type':a152_0x442635(0x1d8),'description':a152_0x442635(0x1bf)},{'name':'yes','type':'boolean','description':a152_0x442635(0x1af)}],async 'dryRun'(_0x3c0645){const _0x4de05f=a152_0x442635;ensureRunnableContext(_0x3c0645[_0x4de05f(0x1bc)],_0x3c0645[_0x4de05f(0x1b1)]);const _0x26800d=await runMenuSyncCore(_0x3c0645['appCode'],_0x3c0645['cookie'],parsePaths(_0x3c0645['str']('paths')),_0x3c0645['str'](_0x4de05f(0x1bb)),{'dryRun':!![]});return{'method':'POST','url':_0x4de05f(0x1da),'body':_0x26800d,'description':_0x26800d[_0x4de05f(0x1e8)]?_0x4de05f(0x1ac):_0x4de05f(0x1de)+_0x26800d[_0x4de05f(0x1b8)][_0x4de05f(0x1dd)]+'\x20local\x20microfrontend\x20menu(s).'};},async 'execute'(_0x514d4c){const _0x2db5f3=a152_0x442635;ensureRunnableContext(_0x514d4c[_0x2db5f3(0x1bc)],_0x514d4c[_0x2db5f3(0x1b1)]);const _0x4b2a75=_0x514d4c[_0x2db5f3(0x1b5)](_0x2db5f3(0x1a8)),_0x511534=_0x514d4c[_0x2db5f3(0x1b9)]('params'),_0x490ecf=parsePaths(_0x514d4c[_0x2db5f3(0x1b9)](_0x2db5f3(0x1d1))),_0x38c796=parseMenuSyncParams(_0x511534);if(_0x4b2a75){const _0x5a7c3f=await runMenuSyncCore(_0x514d4c[_0x2db5f3(0x1b0)],_0x514d4c[_0x2db5f3(0x1c2)],_0x490ecf,_0x511534);if(_0x5a7c3f[_0x2db5f3(0x1e8)]){const _0x185437=getLocalPages();_0x185437[_0x2db5f3(0x1dd)]===0x0?writeCliSideChannelLine(_0x2db5f3(0x1a9)):writeCliSideChannelLine(_0x2db5f3(0x1ae));}else writeCliSideChannelLine(_0x2db5f3(0x1d7)+_0x5a7c3f[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1d4));return{'ok':!![],'data':_0x5a7c3f,'message':_0x5a7c3f[_0x2db5f3(0x1e8)]?_0x2db5f3(0x1e5):_0x2db5f3(0x1d0)+_0x5a7c3f[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1ad)};}if(_0x490ecf[_0x2db5f3(0x1dd)]>0x0)throw CliErrors[_0x2db5f3(0x1ba)]('menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.',_0x2db5f3(0x1b6));if(!isInteractive()&&_0x511534)throw CliErrors[_0x2db5f3(0x1ba)](_0x2db5f3(0x1d6),_0x2db5f3(0x1b6));requireInteractive();const _0x5f098f=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x27aae9,_0x4c37d2,_0x5e81da;try{const _0x2af6f0=await fetchMenuData(_0x514d4c[_0x2db5f3(0x1b0)],_0x514d4c[_0x2db5f3(0x1c2)]);_0x27aae9=_0x2af6f0[_0x2db5f3(0x1c4)],_0x4c37d2=_0x2af6f0[_0x2db5f3(0x1e2)],_0x5e81da=_0x2af6f0[_0x2db5f3(0x1cb)],stopSpinner(_0x5f098f,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x36a91d){stopSpinner(_0x5f098f,_0x2db5f3(0x1a6),![]);throw CliErrors[_0x2db5f3(0x1ba)](_0x36a91d instanceof Error?_0x36a91d['message']:_0x2db5f3(0x1a6));}if(_0x27aae9[_0x2db5f3(0x1dd)]===0x0)return writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1cd)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x38fa56=buildCompareRows(_0x27aae9,_0x4c37d2);writeCliSideChannelLine(renderCompareTable(_0x38fa56)),writeCliSideChannelLine('');const _0x5b65a0=await selectPages(_0x27aae9,_0x4c37d2);writeCliSideChannelLine(''),writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1b2)](_0x2db5f3(0x1c7)+_0x5b65a0['length']+_0x2db5f3(0x1ce)));const _0xa472e2=_0x38c796[_0x2db5f3(0x1c8)]&&_0x38c796[_0x2db5f3(0x1d9)];if(!_0xa472e2){writeCliSideChannelLine(renderSyncSummary(_0x5b65a0,_0x4c37d2[_0x2db5f3(0x1e4)]>0x0));const _0x5c71b6=await askConfirm(_0x2db5f3(0x1c3));if(!_0x5c71b6)return writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1a5)](_0x2db5f3(0x1a7))),{'ok':!![]};}let _0x550f5e=_0x38c796['jsUrl'],_0x13c6f1=_0x38c796[_0x2db5f3(0x1d9)];!_0x550f5e&&(_0x550f5e=await askJsUrl());!_0x13c6f1&&(_0x13c6f1=await askCssUrl());const _0x503567=await askConfirm(_0x2db5f3(0x1ea)+_0x5b65a0['length']+_0x2db5f3(0x1dc)+_0x550f5e+_0x2db5f3(0x1e0)+_0x13c6f1+'?');if(!_0x503567)return writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1a5)]('\x20\x20Cancelled.')),{'ok':!![]};const _0xca44da=[_0x550f5e,_0x13c6f1],_0x29e37d=startSpinner('Creating\x20'+_0x5b65a0[_0x2db5f3(0x1dd)]+_0x2db5f3(0x1df));try{const _0x2f0a44=await doCreateMenus(_0x514d4c[_0x2db5f3(0x1b0)],_0x514d4c['cookie'],_0x5b65a0,_0xca44da);return stopSpinner(_0x29e37d,_0x2db5f3(0x1a4)+_0x2f0a44[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1cc),!![]),{'ok':!![],'data':_0x2f0a44,'message':_0x2db5f3(0x1d0)+_0x2f0a44[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1e3)+_0x2f0a44[_0x2db5f3(0x1c0)]+'\x20failed.'};}catch(_0x363e5b){stopSpinner(_0x29e37d,'Menu\x20creation\x20failed',![]);throw CliErrors['validation'](_0x363e5b instanceof Error?_0x363e5b['message']:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0x26ee30,_0x41ab3e){const _0x987b6c=a152_0x442635,_0xedf0d9=_0x26ee30[_0x987b6c(0x1c9)]?String(_0x26ee30[_0x987b6c(0x1c9)])[_0x987b6c(0x1c1)]():'';if(!isInProject()&&!_0x41ab3e&&!_0xedf0d9)throw CliErrors[_0x987b6c(0x1ba)](_0x987b6c(0x1c5)+_0x987b6c(0x1db));}function parsePaths(_0x524866){const _0x30a359=a152_0x442635;return[...new Set(_0x524866[_0x30a359(0x1ca)](',')['map'](_0x414494=>_0x414494['trim']())[_0x30a359(0x1c6)](Boolean))];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a153_0x4f42a4=a153_0x467a;(function(_0x1c29dd,_0x373aad){const _0xccd606=a153_0x467a,_0x1afbfa=_0x1c29dd();while(!![]){try{const _0xbd4d5b=-parseInt(_0xccd606(0x21d))/0x1*(parseInt(_0xccd606(0x1fd))/0x2)+-parseInt(_0xccd606(0x1f2))/0x3*(-parseInt(_0xccd606(0x205))/0x4)+-parseInt(_0xccd606(0x1c2))/0x5*(parseInt(_0xccd606(0x208))/0x6)+parseInt(_0xccd606(0x22a))/0x7+-parseInt(_0xccd606(0x218))/0x8*(parseInt(_0xccd606(0x1cb))/0x9)+-parseInt(_0xccd606(0x1e8))/0xa*(parseInt(_0xccd606(0x200))/0xb)+parseInt(_0xccd606(0x1e2))/0xc;if(_0xbd4d5b===_0x373aad)break;else _0x1afbfa['push'](_0x1afbfa['shift']());}catch(_0x492359){_0x1afbfa['push'](_0x1afbfa['shift']());}}}(a153_0x464e,0xf12ec));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a153_0x4f42a4(0x23d),'path':a153_0x4f42a4(0x203)}];function a153_0x464e(){const _0x1aaa2f=['before','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','expectedCount','menu_permission_denied','recovered','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','datasetId','body','string','split','POST','verify\x20menu\x20visibility\x20update','true','get','\x20menu(s),\x20expected\x20','childrenCount','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','2870DSHhJj','update','values','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','appCode','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','number','\x20failed.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','143307vZuwqR','cookie','\x20unchanged\x20menu(s).','childrenIds','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','plan','menu\x20list','rabetbase\x20menu\x20list\x20--format\x20compress','Menu\x20','visibility-update','label','hash','menu','boolean','\x20menu(s);\x20skip\x20','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','sort','menu_expected_count_mismatch','\x20updated,\x20','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','type','push','29613228hxTbEg','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','updated','verification','visible','\x20must\x20be\x20true\x20or\x20false.','50PLjCrZ','update\x20menu\x20visibility','filter','\x20visibility\x20update\x20could\x20not\x20be\x20verified','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','menus','set','validation','\x20menu(s);\x20skipped\x20','Would\x20update\x20visibility\x20for\x20','1392rFdoCf','modelType','length','expect-visible','isSafeInteger','paths','menu_selector_not_found','menu_verification_failed','update-recovery','stringify','pageId','10QbxsrU','Response\x20was\x20lost\x20for\x20menu\x20','menu_selector_ambiguous','2870087rCGBfu','expectVisible','resources','/smartapi/menu/update','targets','12308MXlCTk','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','join','14676ayYQSm','update\x20visibility\x20for','path','Menu\x20path\x20selector\x20not\x20found:\x20','resourcesValid','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','str','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','datasetCode','Selected\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','url','failed','warnings','plannedActions','rawFlags','528vOAlEt','message','flagMissing','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','beforeById','204871vAckSY','code','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','num','requestedVisible','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','update-menu-visibility','expected-count','menu_state_drift','menuIds','trim','13133743Xmhfpq','pageType','depth','byId','Requested\x20menu\x20visibility','parentId','isArray','menu-ids','map'];a153_0x464e=function(){return _0x1aaa2f;};return a153_0x464e();}export const menuVisibilityUpdate={'service':a153_0x4f42a4(0x1d7),'command':a153_0x4f42a4(0x1d4),'description':a153_0x4f42a4(0x206),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a153_0x4f42a4(0x231),'type':a153_0x4f42a4(0x23b),'description':a153_0x4f42a4(0x1c5)},{'name':a153_0x4f42a4(0x1f7),'type':a153_0x4f42a4(0x23b),'description':a153_0x4f42a4(0x21f)},{'name':'visible','type':'boolean','required':!![],'description':a153_0x4f42a4(0x22e)},{'name':'expect-visible','type':a153_0x4f42a4(0x1d8),'description':a153_0x4f42a4(0x223)},{'name':a153_0x4f42a4(0x226),'type':a153_0x4f42a4(0x1c8),'description':a153_0x4f42a4(0x222)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cc4cd){parseInput(_0x3cc4cd),requireExplicitYes(_0x3cc4cd);},async 'dryRun'(_0x2a3910){const _0x448173=a153_0x4f42a4,_0x114dc9=await buildPlan(_0x2a3910,!![]),_0x320782=_0x114dc9[_0x448173(0x1d0)][_0x448173(0x216)]?.[_0x448173(0x1f4)]??0x0,_0x9c075a=_0x114dc9[_0x448173(0x1d0)][_0x448173(0x204)][_0x448173(0x1f4)]-_0x320782;return menuDryRunResult(_0x114dc9[_0x448173(0x1d0)],{'method':_0x448173(0x23d),'url':_0x448173(0x203),'body':{'updates':_0x114dc9[_0x448173(0x1d0)]['plannedActions']?.[_0x448173(0x232)](_0x32b744=>_0x32b744[_0x448173(0x23a)])??[]},'description':_0x448173(0x1f1)+_0x320782+_0x448173(0x1d9)+_0x9c075a+_0x448173(0x1cd)});},async 'execute'(_0x57ecdd){const _0x350cad=a153_0x4f42a4;requireExplicitYes(_0x57ecdd);const _0x3be9fa=await buildPlan(_0x57ecdd,![]);await recheckMutationSnapshot(_0x57ecdd,_0x3be9fa[_0x350cad(0x1d0)],_0x350cad(0x1e9));const _0x6e311a=[],_0x8a0a40=[],_0x1ab6c8=[];for(const _0x359e3b of _0x3be9fa[_0x350cad(0x1d0)]['targets']){if(_0x359e3b[_0x350cad(0x233)][_0x350cad(0x1e6)]===_0x3be9fa['plan'][_0x350cad(0x221)]){_0x6e311a[_0x350cad(0x1e1)]({'id':_0x359e3b['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x57ecdd[_0x350cad(0x1c6)],_0x57ecdd[_0x350cad(0x1cc)],{'id':_0x359e3b['id'],'visible':_0x3be9fa[_0x350cad(0x1d0)][_0x350cad(0x221)]}),_0x6e311a[_0x350cad(0x1e1)]({'id':_0x359e3b['id'],'updated':!![],'skipped':![]});}catch(_0x44757d){const _0x46b9c8=mapMenuApiError(_0x44757d,_0x350cad(0x209),_0x359e3b['id']);if(isMenuResponseLoss(_0x44757d)&&_0x46b9c8[_0x350cad(0x21e)]!==_0x350cad(0x236)){_0x1ab6c8[_0x350cad(0x1e1)](_0x359e3b['id']);continue;}_0x8a0a40[_0x350cad(0x1e1)]({'id':_0x359e3b['id'],'stage':_0x350cad(0x1c3),'code':_0x46b9c8[_0x350cad(0x21e)],'message':_0x46b9c8[_0x350cad(0x219)]});}}let _0x5b722e;try{_0x5b722e=await fetchMenuSnapshot(_0x57ecdd['appCode'],_0x57ecdd[_0x350cad(0x1cc)]);}catch(_0x473e4d){const _0x38ae0a=describeMenuErrorCause(_0x473e4d,_0x350cad(0x23e)),_0x5dc8b8=_0x1ab6c8[_0x350cad(0x232)](_0x14e4a2=>({'id':_0x14e4a2,'stage':_0x350cad(0x1fa),'code':_0x350cad(0x1f9),'message':_0x350cad(0x1fe)+_0x14e4a2+_0x350cad(0x1df),'requestedStateConfirmed':![],'recovered':![]})),_0x35dddb={'stage':_0x350cad(0x1e5),'code':'menu_verification_failed','message':'Final\x20menu\x20visibility\x20readback\x20failed.','targetIds':_0x3be9fa[_0x350cad(0x1d0)][_0x350cad(0x204)]['map'](_0xb8f1b5=>_0xb8f1b5['id']),'requestedStateConfirmed':![],..._0x38ae0a};throw menuFailure(asVerificationError(_0x473e4d,_0x350cad(0x212)),_0x3be9fa['plan'],{'stage':_0x350cad(0x1e5),'succeeded':_0x6e311a,'failedRecords':[..._0x8a0a40,..._0x5dc8b8,_0x35dddb],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x350cad(0x214),'recoveredCount':0x0,'lookupCommand':_0x350cad(0x1d2)}});}const _0x4b837e=[];for(const _0x3f50f3 of _0x6e311a){const _0x47f5ee=Number(_0x3f50f3['id']),_0x11ef59=_0x3be9fa[_0x350cad(0x21c)][_0x350cad(0x240)](_0x47f5ee),_0x400867=_0x5b722e[_0x350cad(0x22d)][_0x350cad(0x240)](_0x47f5ee);try{verifyVisibilityUpdate(_0x11ef59,_0x400867,_0x3be9fa[_0x350cad(0x1d0)][_0x350cad(0x221)]);}catch(_0x1013af){const _0x39129e=asVerificationError(_0x1013af,'Menu\x20'+_0x47f5ee+_0x350cad(0x1eb));_0x4b837e[_0x350cad(0x1e1)]({'id':_0x47f5ee,'stage':_0x350cad(0x1e5),'code':_0x39129e['code'],'message':_0x39129e[_0x350cad(0x219)],'requestedStateConfirmed':![]});}}for(const _0x2d59a8 of _0x1ab6c8){const _0x4a65e6=_0x3be9fa[_0x350cad(0x21c)]['get'](_0x2d59a8),_0x2d3bcc=_0x5b722e['byId'][_0x350cad(0x240)](_0x2d59a8);try{verifyVisibilityUpdate(_0x4a65e6,_0x2d3bcc,_0x3be9fa['plan'][_0x350cad(0x221)]),_0x6e311a[_0x350cad(0x1e1)]({'id':_0x2d59a8,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x3f0868){const _0xc4fbeb=asVerificationError(_0x3f0868,'Response\x20was\x20lost\x20and\x20menu\x20'+_0x2d59a8+_0x350cad(0x238));_0x4b837e['push']({'id':_0x2d59a8,'stage':'update-recovery','code':_0xc4fbeb[_0x350cad(0x21e)],'message':_0xc4fbeb['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x4b837e[_0x350cad(0x1f4)]>0x0){const _0x1f5f94=_0x4b837e[_0x350cad(0x232)](_0x224843=>Number(_0x224843['id'])),_0x56648d=_0x6e311a[_0x350cad(0x1ea)](_0x388b71=>_0x388b71[_0x350cad(0x237)]===!![])[_0x350cad(0x1f4)],_0x777638=menuError(_0x350cad(0x1f9),'Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20'+_0x1f5f94[_0x350cad(0x207)](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x777638,_0x3be9fa[_0x350cad(0x1d0)],{'stage':_0x350cad(0x1e5),'succeeded':_0x6e311a,'failedRecords':[..._0x8a0a40,..._0x4b837e],'warnings':[_0x350cad(0x234)],'verification':{'status':_0x350cad(0x214),..._0x1f5f94[_0x350cad(0x1f4)]===0x1?{'targetId':_0x1f5f94[0x0]}:{'targetIds':_0x1f5f94},'recoveredCount':_0x56648d,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x350fab=_0x6e311a[_0x350cad(0x1ea)](_0x3033a6=>_0x3033a6[_0x350cad(0x1e4)]===!![])[_0x350cad(0x1f4)],_0x1e19b4=_0x6e311a['length']-_0x350fab,_0x1b45d8={..._0x3be9fa['plan'],'succeeded':_0x6e311a,'failed':_0x8a0a40,'warnings':_0x8a0a40[_0x350cad(0x1f4)]>0x0?[..._0x3be9fa['plan'][_0x350cad(0x215)],_0x350cad(0x1db)]:_0x3be9fa['plan'][_0x350cad(0x215)],'verification':{'checkedBy':_0x350cad(0x1d1),'snapshotHash':_0x5b722e[_0x350cad(0x1d6)],'matchesRequestedState':_0x8a0a40['length']===0x0,'recoveredCount':_0x1ab6c8['length']}};return{'ok':_0x8a0a40[_0x350cad(0x1f4)]===0x0,'data':_0x1b45d8,'message':_0x8a0a40[_0x350cad(0x1f4)]===0x0?'Updated\x20visibility\x20for\x20'+_0x350fab+_0x350cad(0x1f0)+_0x1e19b4+'\x20unchanged\x20menu(s).':'Menu\x20visibility\x20update\x20completed:\x20'+_0x350fab+_0x350cad(0x1de)+_0x1e19b4+'\x20skipped,\x20'+_0x8a0a40['length']+_0x350cad(0x1c9)};}};function parseInput(_0x156964){const _0x5b28a9=a153_0x4f42a4,_0x49c622=parseMenuIds(_0x156964[_0x5b28a9(0x20e)](_0x5b28a9(0x231))),_0x49ed3d=parseCsv(_0x156964['str'](_0x5b28a9(0x1f7)));if(_0x49c622['length']===0x0&&_0x49ed3d['length']===0x0)throw CliErrors[_0x5b28a9(0x1ef)](_0x5b28a9(0x20f));const _0x5d1479=parseBooleanFlag(_0x156964,_0x5b28a9(0x1e6),!![]),_0x20d646=parseBooleanFlag(_0x156964,_0x5b28a9(0x1f5),![]);let _0x2e0b6e;if(hasFlag(_0x156964,_0x5b28a9(0x226))){_0x2e0b6e=_0x156964[_0x5b28a9(0x220)]('expected-count');if(!Number[_0x5b28a9(0x1f6)](_0x2e0b6e)||_0x2e0b6e<0x0)throw CliErrors['validation'](_0x5b28a9(0x1c7));}return{'menuIds':_0x49c622,'paths':_0x49ed3d,'visible':_0x5d1479,'expectVisible':_0x20d646,'expectedCount':_0x2e0b6e};}function a153_0x467a(_0x438e9f,_0x4d8621){_0x438e9f=_0x438e9f-0x1c2;const _0x464e7f=a153_0x464e();let _0x467acb=_0x464e7f[_0x438e9f];return _0x467acb;}async function buildPlan(_0x54b7df,_0x5f4d2e){const _0x532569=a153_0x4f42a4,_0xfa9b0a=parseInput(_0x54b7df),_0x2dbc03=await fetchMutationSnapshot(_0x54b7df,_0x532569(0x1e9)),_0xf32b5b=selectTargets(_0x2dbc03[_0x532569(0x1ed)],_0xfa9b0a[_0x532569(0x228)],_0xfa9b0a[_0x532569(0x1f7)]);if(_0xfa9b0a[_0x532569(0x235)]!==undefined&&_0xf32b5b[_0x532569(0x1f4)]!==_0xfa9b0a[_0x532569(0x235)])throw menuError(_0x532569(0x1dd),_0x532569(0x211)+_0xf32b5b[_0x532569(0x1f4)]+_0x532569(0x241)+_0xfa9b0a[_0x532569(0x235)]+'.',_0x532569(0x243));if(_0xfa9b0a[_0x532569(0x201)]!==undefined){const _0x2d2b59=_0xf32b5b['filter'](_0xd3ddb8=>_0xd3ddb8[_0x532569(0x1e6)]!==_0xfa9b0a[_0x532569(0x201)]);if(_0x2d2b59[_0x532569(0x1f4)]>0x0)throw menuError(_0x532569(0x227),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x2d2b59['map'](_0x599820=>_0x599820['id'])[_0x532569(0x207)](',\x20')+'.',_0x532569(0x1ec));}const _0x46d666=_0xf32b5b[_0x532569(0x232)](_0x3ee676=>({'id':_0x3ee676['id'],'label':_0x3ee676[_0x532569(0x1d5)],'path':_0x3ee676[_0x532569(0x20a)],'before':{'visible':_0x3ee676[_0x532569(0x1e6)]},'after':{'visible':_0xfa9b0a[_0x532569(0x1e6)]}})),_0xcfc035=_0x46d666[_0x532569(0x1ea)](_0x1567e0=>_0x1567e0[_0x532569(0x233)][_0x532569(0x1e6)]!==_0xfa9b0a[_0x532569(0x1e6)])['map'](_0x4f4aed=>({'stage':_0x532569(0x225),'method':'POST','path':_0x532569(0x203),'body':{'appCode':_0x54b7df[_0x532569(0x1c6)],'id':_0x4f4aed['id'],'visible':_0xfa9b0a[_0x532569(0x1e6)]}})),_0x2039d1=mutationResult({'operation':_0x532569(0x1d4),'selector':{'menuIds':_0xfa9b0a[_0x532569(0x228)],'paths':_0xfa9b0a[_0x532569(0x1f7)]},'before':{'menus':_0xf32b5b['map'](_0x5c7d3b=>({'id':_0x5c7d3b['id'],'path':_0x5c7d3b[_0x532569(0x20a)],'visible':_0x5c7d3b['visible']}))},'after':{'menus':_0xf32b5b[_0x532569(0x232)](_0x44b488=>({'id':_0x44b488['id'],'path':_0x44b488[_0x532569(0x20a)],'visible':_0xfa9b0a[_0x532569(0x1e6)]}))},'dryRun':_0x5f4d2e,'backend':[...BACKEND],'plannedActions':_0xcfc035,'snapshotHash':_0x2dbc03['hash'],'warnings':_0xcfc035[_0x532569(0x1f4)]===0x0?[_0x532569(0x20d)]:[]});return{'plan':{..._0x2039d1,'requestedVisible':_0xfa9b0a[_0x532569(0x1e6)],'targets':_0x46d666},'beforeById':new Map(_0xf32b5b[_0x532569(0x232)](_0x2fed74=>[_0x2fed74['id'],_0x2fed74]))};}function selectTargets(_0x153f7f,_0x596d86,_0xddc7f3){const _0x364b3b=a153_0x4f42a4,_0x3c05e9=new Map(_0x153f7f[_0x364b3b(0x232)](_0x5d40c9=>[_0x5d40c9['id'],_0x5d40c9])),_0x2e6084=new Map(),_0x4bc7fb=_0x596d86[_0x364b3b(0x1ea)](_0x9b7016=>!_0x3c05e9['has'](_0x9b7016));if(_0x4bc7fb[_0x364b3b(0x1f4)]>0x0)throw menuError('menu_selector_not_found','Menu\x20id\x20selector(s)\x20not\x20found:\x20'+_0x4bc7fb[_0x364b3b(0x207)](',\x20')+'.',_0x364b3b(0x1e3));for(const _0x3c37a5 of _0x596d86){_0x2e6084[_0x364b3b(0x1ee)](_0x3c37a5,_0x3c05e9[_0x364b3b(0x240)](_0x3c37a5));}for(const _0x572554 of _0xddc7f3){const _0x4f4e8c=_0x153f7f[_0x364b3b(0x1ea)](_0x49de6e=>_0x49de6e[_0x364b3b(0x20a)]===_0x572554);if(_0x4f4e8c[_0x364b3b(0x1f4)]===0x0)throw menuError(_0x364b3b(0x1f8),_0x364b3b(0x20b)+JSON[_0x364b3b(0x1fb)](_0x572554)+'.',_0x364b3b(0x1ca));if(_0x4f4e8c[_0x364b3b(0x1f4)]>0x1)throw menuError(_0x364b3b(0x1ff),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x364b3b(0x1fb)](_0x572554)+'.',_0x364b3b(0x1da)+_0x4f4e8c['map'](_0x5c509f=>_0x5c509f['id'])[_0x364b3b(0x207)](',\x20')+'.');const _0x4f097d=_0x4f4e8c[0x0];_0x2e6084[_0x364b3b(0x1ee)](_0x4f097d['id'],_0x4f097d);}return[..._0x2e6084[_0x364b3b(0x1c4)]()];}function parseMenuIds(_0x44d151){const _0x19e471=a153_0x4f42a4,_0x261d10=parseCsv(_0x44d151),_0x28eeb0=_0x261d10[_0x19e471(0x232)](Number);if(_0x28eeb0['some'](_0x54e615=>!Number[_0x19e471(0x1f6)](_0x54e615)||_0x54e615<=0x0))throw CliErrors[_0x19e471(0x1ef)](_0x19e471(0x21b));return[...new Set(_0x28eeb0)];}function parseCsv(_0x448359){const _0x5f5301=a153_0x4f42a4;return[...new Set(_0x448359[_0x5f5301(0x23c)](',')[_0x5f5301(0x232)](_0x443a81=>_0x443a81[_0x5f5301(0x229)]())[_0x5f5301(0x1ea)](Boolean))];}function parseBooleanFlag(_0x521ff8,_0x54fddc,_0x53af4f){const _0x1bf7cd=a153_0x4f42a4;if(!hasFlag(_0x521ff8,_0x54fddc)){if(_0x53af4f)throw CliErrors[_0x1bf7cd(0x21a)](_0x54fddc);return undefined;}const _0xfdbdaa=_0x521ff8[_0x1bf7cd(0x217)][_0x54fddc];if(_0xfdbdaa===!![]||_0xfdbdaa===![])return _0xfdbdaa;if(_0xfdbdaa===_0x1bf7cd(0x23f))return!![];if(_0xfdbdaa==='false')return![];throw CliErrors['validation']('--'+_0x54fddc+_0x1bf7cd(0x1e7));}function verifyVisibilityUpdate(_0x5eaa4e,_0x3e4690,_0x2909e4){const _0x130480=a153_0x4f42a4;assertVerified(!!_0x3e4690,'Menu\x20'+_0x5eaa4e['id']+_0x130480(0x1cf)),assertVerified(_0x3e4690[_0x130480(0x1e6)]===_0x2909e4,_0x130480(0x1d3)+_0x5eaa4e['id']+_0x130480(0x224));const _0x76dc22=[['id',_0x3e4690['id'],_0x5eaa4e['id']],['parentId',_0x3e4690[_0x130480(0x22f)],_0x5eaa4e[_0x130480(0x22f)]],[_0x130480(0x22c),_0x3e4690[_0x130480(0x22c)],_0x5eaa4e['depth']],[_0x130480(0x1d5),_0x3e4690[_0x130480(0x1d5)],_0x5eaa4e[_0x130480(0x1d5)]],[_0x130480(0x20a),_0x3e4690[_0x130480(0x20a)],_0x5eaa4e[_0x130480(0x20a)]],[_0x130480(0x213),_0x3e4690[_0x130480(0x213)],_0x5eaa4e[_0x130480(0x213)]],[_0x130480(0x1e0),_0x3e4690[_0x130480(0x1e0)],_0x5eaa4e[_0x130480(0x1e0)]],[_0x130480(0x1dc),_0x3e4690[_0x130480(0x1dc)],_0x5eaa4e[_0x130480(0x1dc)]],[_0x130480(0x202),_0x3e4690[_0x130480(0x202)],_0x5eaa4e[_0x130480(0x202)]],[_0x130480(0x20c),_0x3e4690[_0x130480(0x20c)],_0x5eaa4e['resourcesValid']],[_0x130480(0x1ce),_0x3e4690[_0x130480(0x1ce)],_0x5eaa4e[_0x130480(0x1ce)]],[_0x130480(0x242),_0x3e4690[_0x130480(0x242)],_0x5eaa4e[_0x130480(0x242)]],[_0x130480(0x1fc),_0x3e4690[_0x130480(0x1fc)],_0x5eaa4e['pageId']],[_0x130480(0x22b),_0x3e4690[_0x130480(0x22b)],_0x5eaa4e[_0x130480(0x22b)]],[_0x130480(0x1f3),_0x3e4690['modelType'],_0x5eaa4e[_0x130480(0x1f3)]],['datasetId',_0x3e4690[_0x130480(0x239)],_0x5eaa4e[_0x130480(0x239)]],[_0x130480(0x210),_0x3e4690[_0x130480(0x210)],_0x5eaa4e['datasetCode']]];for(const [_0x294f2c,_0x27ab73,_0x6df2f3]of _0x76dc22){assertVerified(sameValue(_0x27ab73,_0x6df2f3),_0x130480(0x1d3)+_0x5eaa4e['id']+'\x20'+_0x294f2c+'\x20changed\x20unexpectedly.');}}function sameValue(_0x34affc,_0x1d0dfd){const _0x287612=a153_0x4f42a4;if(Array[_0x287612(0x230)](_0x34affc)||Array[_0x287612(0x230)](_0x1d0dfd))return JSON[_0x287612(0x1fb)](_0x34affc)===JSON['stringify'](_0x1d0dfd);return _0x34affc===_0x1d0dfd;}
|
|
1
|
+
const a153_0x78a82f=a153_0xf1cd;(function(_0x598b08,_0x209e96){const _0x576b3a=a153_0xf1cd,_0x50b7a4=_0x598b08();while(!![]){try{const _0x224ffa=parseInt(_0x576b3a(0x122))/0x1*(parseInt(_0x576b3a(0x154))/0x2)+-parseInt(_0x576b3a(0x103))/0x3*(-parseInt(_0x576b3a(0xf9))/0x4)+-parseInt(_0x576b3a(0xe4))/0x5*(parseInt(_0x576b3a(0x164))/0x6)+-parseInt(_0x576b3a(0x11f))/0x7*(-parseInt(_0x576b3a(0xfc))/0x8)+-parseInt(_0x576b3a(0x153))/0x9+-parseInt(_0x576b3a(0x10b))/0xa*(parseInt(_0x576b3a(0x132))/0xb)+-parseInt(_0x576b3a(0x139))/0xc*(-parseInt(_0x576b3a(0x121))/0xd);if(_0x224ffa===_0x209e96)break;else _0x50b7a4['push'](_0x50b7a4['shift']());}catch(_0x3c2748){_0x50b7a4['push'](_0x50b7a4['shift']());}}}(a153_0x3bf9,0x5d7b2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a153_0x3bf9(){const _0x137555=['plan','beforeById','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','split','Updated\x20visibility\x20for\x20','datasetCode','rawFlags','pageId','menu-ids','string','appCode','\x20menu(s),\x20expected\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','get','12otAQZK','menu_selector_not_found','visible','childrenCount','1831985dtfQks','menu','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','update-menu-visibility','datasetId','expect-visible','visibility-update','Menu\x20path\x20selector\x20not\x20found:\x20','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','depth','parentId','byId','requestedVisible','expectVisible','\x20changed\x20unexpectedly.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','expectedCount','number','filter','some','values','8868gyGEwo','\x20failed.','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','8xJYQTm','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Menu\x20visibility\x20update\x20completed:\x20','targets','POST','isSafeInteger','menu_selector_ambiguous','921EAFXKL','Response\x20was\x20lost\x20for\x20menu\x20','expected-count','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','cookie','\x20menu(s);\x20skip\x20','num','hash','40xGLGvx','paths','Would\x20update\x20visibility\x20for\x20','Selected\x20','\x20must\x20be\x20true\x20or\x20false.','isArray','trim','label','false','Final\x20menu\x20visibility\x20readback\x20failed.','rabetbase\x20menu\x20list\x20--format\x20compress','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','path','type','Response\x20was\x20lost\x20and\x20menu\x20','str','map','failed','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','1528394pzHgZK','sort','102453GssEGb','126QqmwCB','menu_verification_failed','update\x20visibility\x20for','menuIds','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','warnings','resources','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','\x20unchanged\x20menu(s).','push','Menu\x20','verify\x20menu\x20visibility\x20update','/smartapi/menu/update','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageType','1163932hnXKRI','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','menu_state_drift','set','code','has','\x20skipped,\x20','1296xCBkWO','\x20updated,\x20','resourcesValid','validation','modelType','childrenIds','flagMissing','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','verification','length','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','message','menu\x20list','url','stringify','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','join','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','menus','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','menu_permission_denied','\x20visibility\x20update\x20could\x20not\x20be\x20verified','update-recovery','update\x20menu\x20visibility','before','4205943MyOXXm','4066yKmLiQ','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state'];a153_0x3bf9=function(){return _0x137555;};return a153_0x3bf9();}import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a153_0xf1cd(_0x2e6ed5,_0x4fa790){_0x2e6ed5=_0x2e6ed5-0xe2;const _0x3bf904=a153_0x3bf9();let _0xf1cd69=_0x3bf904[_0x2e6ed5];return _0xf1cd69;}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a153_0x78a82f(0x100),'path':a153_0x78a82f(0x12e)}];export const menuVisibilityUpdate={'service':a153_0x78a82f(0xe5),'command':'visibility-update','description':a153_0x78a82f(0x148),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a153_0x78a82f(0x15e),'type':a153_0x78a82f(0x15f),'description':a153_0x78a82f(0x126)},{'name':a153_0x78a82f(0x10c),'type':a153_0x78a82f(0x15f),'description':a153_0x78a82f(0x14a)},{'name':'visible','type':'boolean','required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a153_0x78a82f(0xe9),'type':'boolean','description':a153_0x78a82f(0x14d)},{'name':a153_0x78a82f(0x105),'type':a153_0x78a82f(0xf5),'description':a153_0x78a82f(0x11e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xfbd2e6){parseInput(_0xfbd2e6),requireExplicitYes(_0xfbd2e6);},async 'dryRun'(_0xff268d){const _0xd5ad50=a153_0x78a82f,_0x19c073=await buildPlan(_0xff268d,!![]),_0x138833=_0x19c073['plan']['plannedActions']?.[_0xd5ad50(0x142)]??0x0,_0xe98581=_0x19c073['plan'][_0xd5ad50(0xff)][_0xd5ad50(0x142)]-_0x138833;return menuDryRunResult(_0x19c073['plan'],{'method':_0xd5ad50(0x100),'url':_0xd5ad50(0x12e),'body':{'updates':_0x19c073['plan']['plannedActions']?.[_0xd5ad50(0x11c)](_0x3d58ef=>_0x3d58ef['body'])??[]},'description':_0xd5ad50(0x10d)+_0x138833+_0xd5ad50(0x108)+_0xe98581+_0xd5ad50(0x12a)});},async 'execute'(_0x13c42d){const _0x1e5ce6=a153_0x78a82f;requireExplicitYes(_0x13c42d);const _0x5023e3=await buildPlan(_0x13c42d,![]);await recheckMutationSnapshot(_0x13c42d,_0x5023e3[_0x1e5ce6(0x156)],'update\x20menu\x20visibility');const _0x5a3f77=[],_0x1f8afb=[],_0x23fdd8=[];for(const _0x8dd8d0 of _0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xff)]){if(_0x8dd8d0[_0x1e5ce6(0x152)][_0x1e5ce6(0xe2)]===_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]){_0x5a3f77['push']({'id':_0x8dd8d0['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x13c42d['appCode'],_0x13c42d[_0x1e5ce6(0x107)],{'id':_0x8dd8d0['id'],'visible':_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]}),_0x5a3f77[_0x1e5ce6(0x12b)]({'id':_0x8dd8d0['id'],'updated':!![],'skipped':![]});}catch(_0x3c82af){const _0x34bfaf=mapMenuApiError(_0x3c82af,_0x1e5ce6(0x124),_0x8dd8d0['id']);if(isMenuResponseLoss(_0x3c82af)&&_0x34bfaf[_0x1e5ce6(0x136)]!==_0x1e5ce6(0x14e)){_0x23fdd8[_0x1e5ce6(0x12b)](_0x8dd8d0['id']);continue;}_0x1f8afb['push']({'id':_0x8dd8d0['id'],'stage':'update','code':_0x34bfaf[_0x1e5ce6(0x136)],'message':_0x34bfaf[_0x1e5ce6(0x144)]});}}let _0x5c54bb;try{_0x5c54bb=await fetchMenuSnapshot(_0x13c42d[_0x1e5ce6(0x160)],_0x13c42d[_0x1e5ce6(0x107)]);}catch(_0x159771){const _0x395295=describeMenuErrorCause(_0x159771,_0x1e5ce6(0x12d)),_0xbeb795=_0x23fdd8[_0x1e5ce6(0x11c)](_0x26c106=>({'id':_0x26c106,'stage':_0x1e5ce6(0x150),'code':_0x1e5ce6(0x123),'message':_0x1e5ce6(0x104)+_0x26c106+_0x1e5ce6(0xe6),'requestedStateConfirmed':![],'recovered':![]})),_0x335012={'stage':'verification','code':_0x1e5ce6(0x123),'message':_0x1e5ce6(0x114),'targetIds':_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xff)]['map'](_0x4d79e1=>_0x4d79e1['id']),'requestedStateConfirmed':![],..._0x395295};throw menuFailure(asVerificationError(_0x159771,_0x1e5ce6(0x155)),_0x5023e3[_0x1e5ce6(0x156)],{'stage':_0x1e5ce6(0x141),'succeeded':_0x5a3f77,'failedRecords':[..._0x1f8afb,..._0xbeb795,_0x335012],'warnings':[_0x1e5ce6(0x162)],'verification':{'status':_0x1e5ce6(0x11d),'recoveredCount':0x0,'lookupCommand':_0x1e5ce6(0x115)}});}const _0x2da106=[];for(const _0x9800c3 of _0x5a3f77){const _0x42b9c=Number(_0x9800c3['id']),_0x29f6a9=_0x5023e3[_0x1e5ce6(0x157)][_0x1e5ce6(0x163)](_0x42b9c),_0x57ed20=_0x5c54bb[_0x1e5ce6(0xef)]['get'](_0x42b9c);try{verifyVisibilityUpdate(_0x29f6a9,_0x57ed20,_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]);}catch(_0x24be5e){const _0x33fbdf=asVerificationError(_0x24be5e,_0x1e5ce6(0x12c)+_0x42b9c+_0x1e5ce6(0x14f));_0x2da106[_0x1e5ce6(0x12b)]({'id':_0x42b9c,'stage':_0x1e5ce6(0x141),'code':_0x33fbdf[_0x1e5ce6(0x136)],'message':_0x33fbdf['message'],'requestedStateConfirmed':![]});}}for(const _0x1ea7b9 of _0x23fdd8){const _0x321db6=_0x5023e3[_0x1e5ce6(0x157)]['get'](_0x1ea7b9),_0x38e175=_0x5c54bb[_0x1e5ce6(0xef)]['get'](_0x1ea7b9);try{verifyVisibilityUpdate(_0x321db6,_0x38e175,_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]),_0x5a3f77[_0x1e5ce6(0x12b)]({'id':_0x1ea7b9,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x3b557c){const _0xd4b803=asVerificationError(_0x3b557c,_0x1e5ce6(0x11a)+_0x1ea7b9+_0x1e5ce6(0x158));_0x2da106['push']({'id':_0x1ea7b9,'stage':_0x1e5ce6(0x150),'code':_0xd4b803[_0x1e5ce6(0x136)],'message':_0xd4b803['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2da106[_0x1e5ce6(0x142)]>0x0){const _0x2be24a=_0x2da106[_0x1e5ce6(0x11c)](_0xcb4b6a=>Number(_0xcb4b6a['id'])),_0x5a316a=_0x5a3f77[_0x1e5ce6(0xf6)](_0x46aa5d=>_0x46aa5d['recovered']===!![])['length'],_0x5858e7=menuError(_0x1e5ce6(0x123),_0x1e5ce6(0x143)+_0x2be24a['join'](',\x20')+'.',_0x1e5ce6(0xf3));throw menuFailure(_0x5858e7,_0x5023e3[_0x1e5ce6(0x156)],{'stage':'verification','succeeded':_0x5a3f77,'failedRecords':[..._0x1f8afb,..._0x2da106],'warnings':[_0x1e5ce6(0xfb)],'verification':{'status':_0x1e5ce6(0x11d),..._0x2be24a[_0x1e5ce6(0x142)]===0x1?{'targetId':_0x2be24a[0x0]}:{'targetIds':_0x2be24a},'recoveredCount':_0x5a316a,'lookupCommand':_0x1e5ce6(0x115)}});}const _0x292c30=_0x5a3f77[_0x1e5ce6(0xf6)](_0x121bd3=>_0x121bd3['updated']===!![])[_0x1e5ce6(0x142)],_0x1439b7=_0x5a3f77[_0x1e5ce6(0x142)]-_0x292c30,_0x279ed6={..._0x5023e3['plan'],'succeeded':_0x5a3f77,'failed':_0x1f8afb,'warnings':_0x1f8afb[_0x1e5ce6(0x142)]>0x0?[..._0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0x127)],_0x1e5ce6(0x133)]:_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0x127)],'verification':{'checkedBy':_0x1e5ce6(0x145),'snapshotHash':_0x5c54bb[_0x1e5ce6(0x10a)],'matchesRequestedState':_0x1f8afb[_0x1e5ce6(0x142)]===0x0,'recoveredCount':_0x23fdd8[_0x1e5ce6(0x142)]}};return{'ok':_0x1f8afb[_0x1e5ce6(0x142)]===0x0,'data':_0x279ed6,'message':_0x1f8afb[_0x1e5ce6(0x142)]===0x0?_0x1e5ce6(0x15a)+_0x292c30+'\x20menu(s);\x20skipped\x20'+_0x1439b7+_0x1e5ce6(0x12a):_0x1e5ce6(0xfe)+_0x292c30+_0x1e5ce6(0x13a)+_0x1439b7+_0x1e5ce6(0x138)+_0x1f8afb['length']+_0x1e5ce6(0xfa)};}};function parseInput(_0x402792){const _0xc67635=a153_0x78a82f,_0x3109cf=parseMenuIds(_0x402792['str'](_0xc67635(0x15e))),_0x21e7f7=parseCsv(_0x402792[_0xc67635(0x11b)](_0xc67635(0x10c)));if(_0x3109cf[_0xc67635(0x142)]===0x0&&_0x21e7f7[_0xc67635(0x142)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x4609ff=parseBooleanFlag(_0x402792,_0xc67635(0xe2),!![]),_0x3efc28=parseBooleanFlag(_0x402792,_0xc67635(0xe9),![]);let _0x46b14b;if(hasFlag(_0x402792,_0xc67635(0x105))){_0x46b14b=_0x402792[_0xc67635(0x109)](_0xc67635(0x105));if(!Number[_0xc67635(0x101)](_0x46b14b)||_0x46b14b<0x0)throw CliErrors[_0xc67635(0x13c)](_0xc67635(0xec));}return{'menuIds':_0x3109cf,'paths':_0x21e7f7,'visible':_0x4609ff,'expectVisible':_0x3efc28,'expectedCount':_0x46b14b};}async function buildPlan(_0x5dfd61,_0x344c53){const _0x5dd53c=a153_0x78a82f,_0x288a97=parseInput(_0x5dfd61),_0x21ccc0=await fetchMutationSnapshot(_0x5dfd61,_0x5dd53c(0x151)),_0x567e8e=selectTargets(_0x21ccc0[_0x5dd53c(0x14b)],_0x288a97[_0x5dd53c(0x125)],_0x288a97[_0x5dd53c(0x10c)]);if(_0x288a97['expectedCount']!==undefined&&_0x567e8e[_0x5dd53c(0x142)]!==_0x288a97[_0x5dd53c(0xf4)])throw menuError('menu_expected_count_mismatch',_0x5dd53c(0x10e)+_0x567e8e[_0x5dd53c(0x142)]+_0x5dd53c(0x161)+_0x288a97['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x288a97[_0x5dd53c(0xf1)]!==undefined){const _0x3f1bb3=_0x567e8e[_0x5dd53c(0xf6)](_0x3c8ca6=>_0x3c8ca6['visible']!==_0x288a97[_0x5dd53c(0xf1)]);if(_0x3f1bb3[_0x5dd53c(0x142)]>0x0)throw menuError(_0x5dd53c(0x134),_0x5dd53c(0xfd)+_0x3f1bb3['map'](_0x39b36a=>_0x39b36a['id'])[_0x5dd53c(0x149)](',\x20')+'.',_0x5dd53c(0x12f));}const _0x2e108f=_0x567e8e[_0x5dd53c(0x11c)](_0x1c8279=>({'id':_0x1c8279['id'],'label':_0x1c8279[_0x5dd53c(0x112)],'path':_0x1c8279[_0x5dd53c(0x118)],'before':{'visible':_0x1c8279[_0x5dd53c(0xe2)]},'after':{'visible':_0x288a97['visible']}})),_0x1e2472=_0x2e108f[_0x5dd53c(0xf6)](_0x3fdd5a=>_0x3fdd5a[_0x5dd53c(0x152)][_0x5dd53c(0xe2)]!==_0x288a97[_0x5dd53c(0xe2)])['map'](_0x53336c=>({'stage':_0x5dd53c(0xe7),'method':_0x5dd53c(0x100),'path':_0x5dd53c(0x12e),'body':{'appCode':_0x5dfd61['appCode'],'id':_0x53336c['id'],'visible':_0x288a97[_0x5dd53c(0xe2)]}})),_0x2b9263=mutationResult({'operation':_0x5dd53c(0xea),'selector':{'menuIds':_0x288a97[_0x5dd53c(0x125)],'paths':_0x288a97[_0x5dd53c(0x10c)]},'before':{'menus':_0x567e8e[_0x5dd53c(0x11c)](_0x3e538d=>({'id':_0x3e538d['id'],'path':_0x3e538d[_0x5dd53c(0x118)],'visible':_0x3e538d[_0x5dd53c(0xe2)]}))},'after':{'menus':_0x567e8e[_0x5dd53c(0x11c)](_0x491871=>({'id':_0x491871['id'],'path':_0x491871[_0x5dd53c(0x118)],'visible':_0x288a97[_0x5dd53c(0xe2)]}))},'dryRun':_0x344c53,'backend':[...BACKEND],'plannedActions':_0x1e2472,'snapshotHash':_0x21ccc0['hash'],'warnings':_0x1e2472[_0x5dd53c(0x142)]===0x0?[_0x5dd53c(0x117)]:[]});return{'plan':{..._0x2b9263,'requestedVisible':_0x288a97[_0x5dd53c(0xe2)],'targets':_0x2e108f},'beforeById':new Map(_0x567e8e[_0x5dd53c(0x11c)](_0x52b364=>[_0x52b364['id'],_0x52b364]))};}function selectTargets(_0x7a9108,_0x1a1f31,_0x497e62){const _0x3b56e1=a153_0x78a82f,_0x22a85c=new Map(_0x7a9108[_0x3b56e1(0x11c)](_0x66cd35=>[_0x66cd35['id'],_0x66cd35])),_0x85c219=new Map(),_0x51d7fd=_0x1a1f31[_0x3b56e1(0xf6)](_0x195c1b=>!_0x22a85c[_0x3b56e1(0x137)](_0x195c1b));if(_0x51d7fd[_0x3b56e1(0x142)]>0x0)throw menuError(_0x3b56e1(0x165),_0x3b56e1(0x130)+_0x51d7fd['join'](',\x20')+'.',_0x3b56e1(0x129));for(const _0x107775 of _0x1a1f31){_0x85c219[_0x3b56e1(0x135)](_0x107775,_0x22a85c['get'](_0x107775));}for(const _0x5553e7 of _0x497e62){const _0x440f8e=_0x7a9108[_0x3b56e1(0xf6)](_0x5edc5e=>_0x5edc5e[_0x3b56e1(0x118)]===_0x5553e7);if(_0x440f8e['length']===0x0)throw menuError(_0x3b56e1(0x165),_0x3b56e1(0xeb)+JSON['stringify'](_0x5553e7)+'.',_0x3b56e1(0x14c));if(_0x440f8e[_0x3b56e1(0x142)]>0x1)throw menuError(_0x3b56e1(0x102),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x3b56e1(0x147)](_0x5553e7)+'.',_0x3b56e1(0x106)+_0x440f8e[_0x3b56e1(0x11c)](_0x3b16c6=>_0x3b16c6['id'])[_0x3b56e1(0x149)](',\x20')+'.');const _0x47ee12=_0x440f8e[0x0];_0x85c219[_0x3b56e1(0x135)](_0x47ee12['id'],_0x47ee12);}return[..._0x85c219[_0x3b56e1(0xf8)]()];}function parseMenuIds(_0x1e42d2){const _0x478a22=a153_0x78a82f,_0x40211d=parseCsv(_0x1e42d2),_0x2c8050=_0x40211d[_0x478a22(0x11c)](Number);if(_0x2c8050[_0x478a22(0xf7)](_0x39241c=>!Number['isSafeInteger'](_0x39241c)||_0x39241c<=0x0))throw CliErrors[_0x478a22(0x13c)](_0x478a22(0x140));return[...new Set(_0x2c8050)];}function parseCsv(_0x504c08){const _0x4321a7=a153_0x78a82f;return[...new Set(_0x504c08[_0x4321a7(0x159)](',')[_0x4321a7(0x11c)](_0x365be6=>_0x365be6[_0x4321a7(0x111)]())['filter'](Boolean))];}function parseBooleanFlag(_0x32b558,_0x531a00,_0x29ab3d){const _0x55abe9=a153_0x78a82f;if(!hasFlag(_0x32b558,_0x531a00)){if(_0x29ab3d)throw CliErrors[_0x55abe9(0x13f)](_0x531a00);return undefined;}const _0x262ce0=_0x32b558[_0x55abe9(0x15c)][_0x531a00];if(_0x262ce0===!![]||_0x262ce0===![])return _0x262ce0;if(_0x262ce0==='true')return!![];if(_0x262ce0===_0x55abe9(0x113))return![];throw CliErrors[_0x55abe9(0x13c)]('--'+_0x531a00+_0x55abe9(0x10f));}function verifyVisibilityUpdate(_0x34201e,_0x4e61b6,_0x4ffce2){const _0x569309=a153_0x78a82f;assertVerified(!!_0x4e61b6,_0x569309(0x12c)+_0x34201e['id']+_0x569309(0x116)),assertVerified(_0x4e61b6[_0x569309(0xe2)]===_0x4ffce2,_0x569309(0x12c)+_0x34201e['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x376b2c=[['id',_0x4e61b6['id'],_0x34201e['id']],['parentId',_0x4e61b6[_0x569309(0xee)],_0x34201e[_0x569309(0xee)]],[_0x569309(0xed),_0x4e61b6['depth'],_0x34201e[_0x569309(0xed)]],['label',_0x4e61b6['label'],_0x34201e[_0x569309(0x112)]],[_0x569309(0x118),_0x4e61b6['path'],_0x34201e[_0x569309(0x118)]],[_0x569309(0x146),_0x4e61b6[_0x569309(0x146)],_0x34201e['url']],[_0x569309(0x119),_0x4e61b6['type'],_0x34201e[_0x569309(0x119)]],[_0x569309(0x120),_0x4e61b6[_0x569309(0x120)],_0x34201e[_0x569309(0x120)]],[_0x569309(0x128),_0x4e61b6[_0x569309(0x128)],_0x34201e[_0x569309(0x128)]],[_0x569309(0x13b),_0x4e61b6['resourcesValid'],_0x34201e[_0x569309(0x13b)]],[_0x569309(0x13e),_0x4e61b6[_0x569309(0x13e)],_0x34201e[_0x569309(0x13e)]],[_0x569309(0xe3),_0x4e61b6[_0x569309(0xe3)],_0x34201e[_0x569309(0xe3)]],[_0x569309(0x15d),_0x4e61b6[_0x569309(0x15d)],_0x34201e['pageId']],[_0x569309(0x131),_0x4e61b6[_0x569309(0x131)],_0x34201e[_0x569309(0x131)]],[_0x569309(0x13d),_0x4e61b6[_0x569309(0x13d)],_0x34201e[_0x569309(0x13d)]],[_0x569309(0xe8),_0x4e61b6[_0x569309(0xe8)],_0x34201e[_0x569309(0xe8)]],[_0x569309(0x15b),_0x4e61b6[_0x569309(0x15b)],_0x34201e[_0x569309(0x15b)]]];for(const [_0x1c9d50,_0x38c895,_0x19c0b6]of _0x376b2c){assertVerified(sameValue(_0x38c895,_0x19c0b6),_0x569309(0x12c)+_0x34201e['id']+'\x20'+_0x1c9d50+_0x569309(0xf2));}}function sameValue(_0x4d2f18,_0x43ef1e){const _0xddf263=a153_0x78a82f;if(Array['isArray'](_0x4d2f18)||Array[_0xddf263(0x110)](_0x43ef1e))return JSON['stringify'](_0x4d2f18)===JSON['stringify'](_0x43ef1e);return _0x4d2f18===_0x43ef1e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x16f1db=a154_0xa804;(function(_0x374a26,_0x560c38){const _0x1ff071=a154_0xa804,_0x4328a1=_0x374a26();while(!![]){try{const _0x4dc7d5=parseInt(_0x1ff071(0x100))/0x1+parseInt(_0x1ff071(0x104))/0x2+parseInt(_0x1ff071(0xf2))/0x3*(parseInt(_0x1ff071(0xec))/0x4)+-parseInt(_0x1ff071(0x106))/0x5+-parseInt(_0x1ff071(0xf4))/0x6+-parseInt(_0x1ff071(0xf5))/0x7*(-parseInt(_0x1ff071(0xfa))/0x8)+parseInt(_0x1ff071(0x10b))/0x9*(-parseInt(_0x1ff071(0xf0))/0xa);if(_0x4dc7d5===_0x560c38)break;else _0x4328a1['push'](_0x4328a1['shift']());}catch(_0x2bbb35){_0x4328a1['push'](_0x4328a1['shift']());}}}(a154_0x4567,0xa8456));import{asDryRunResult}from'../../commands/common/dry-run.js';function a154_0xa804(_0x26b804,_0x18e6c2){_0x26b804=_0x26b804-0xec;const _0x456730=a154_0x4567();let _0xa8048f=_0x456730[_0x26b804];return _0xa8048f;}import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';function a154_0x4567(){const _0x2712ae=['Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','channelType','document','2120332jYWiej','POST','2003165wkugbG','Inspect\x20with\x20',';\x20do\x20not\x20resubmit\x20automatically.','Created\x20notification\x20config\x20','create','225qvbSLU','32BZStiH','input','isSafeInteger',';\x20do\x20not\x20resubmit.','472130DIfOzx','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','309561TmBLHY','verified','123204kfFoHj','7CAXQLC','appCode','config-create',';\x20no\x20automatic\x20retry\x20was\x20attempted.','description','1731792zOBhdH','channelConfig','planned','notification','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','readTimeout','188594LEtpsx'];a154_0x4567=function(){return _0x2712ae;};return a154_0x4567();}const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0x3ca203){const _0xd3388a=a154_0xa804,_0x273846=await readNotificationDocument(_0x3ca203,_0xd3388a(0x10a)),_0x136d72=createMutationInput(_0x3ca203[_0xd3388a(0xf6)],_0x273846);return{'document':_0x273846,'input':_0x136d72,'planned':projectNotificationConfig({'appCode':_0x3ca203[_0xd3388a(0xf6)],'configName':_0x273846['configName'],'channelType':_0x273846[_0xd3388a(0x102)],'endpointUrl':_0x273846['endpointUrl'],'channelConfig':_0x273846[_0xd3388a(0xfb)],'description':_0x273846[_0xd3388a(0xf9)],'connectTimeout':_0x273846['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x273846[_0xd3388a(0xff)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a154_0x16f1db(0xfd),'command':a154_0x16f1db(0xf7),'description':a154_0x16f1db(0xf1),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x33a2ba){assertSingleNotificationSource(_0x33a2ba);},async 'dryRun'(_0x2f0fe1){const _0x2e0054=a154_0x16f1db,_0x3b7c78=await prepareCreate(_0x2f0fe1),_0x44df36=notificationLookupCommand(_0x2f0fe1['appCode'],_0x3b7c78[_0x2e0054(0x103)][_0x2e0054(0x102)]);return asDryRunResult({'operation':_0x2e0054(0x10a),'selector':{'appCode':_0x2f0fe1[_0x2e0054(0xf6)],'configName':_0x3b7c78[_0x2e0054(0x103)]['configName'],'channelType':_0x3b7c78[_0x2e0054(0x103)][_0x2e0054(0x102)]},'before':null,'after':_0x3b7c78[_0x2e0054(0xfc)],'dryRun':!![],'backend':{'method':_0x2e0054(0x105),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2e0054(0xfc),'lookupCommand':_0x44df36}},{'method':_0x2e0054(0x105),'url':CREATE_PATH});},async 'execute'(_0x118e51){const _0x2a0c16=a154_0x16f1db,_0x1065d4=await prepareCreate(_0x118e51),_0x5d5d98=notificationLookupCommand(_0x118e51[_0x2a0c16(0xf6)],_0x1065d4[_0x2a0c16(0x103)]['channelType']);let _0x14a838;try{_0x14a838=await createNotificationChannelConfig(_0x1065d4[_0x2a0c16(0xed)]);}catch(_0x5be590){if(isPlatformTransportFailure(_0x5be590))throw notificationError('notification_config_create_outcome_unknown',_0x2a0c16(0xfe),_0x2a0c16(0x107)+_0x5d5d98+_0x2a0c16(0xef));throw safeApiFailure(_0x2a0c16(0x10a),'mutation',_0x2a0c16(0x107)+_0x5d5d98+_0x2a0c16(0xf8));}if(!Number[_0x2a0c16(0xee)](_0x14a838)||_0x14a838<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x2a0c16(0x101),_0x2a0c16(0x107)+_0x5d5d98+';\x20do\x20not\x20resubmit.');let _0x5a4e1a;try{const _0x3cc505=await getNotificationChannelConfig(_0x14a838,_0x118e51[_0x2a0c16(0xf6)]);_0x5a4e1a=normalizeExactNotificationConfig(_0x3cc505,_0x14a838,_0x118e51[_0x2a0c16(0xf6)]);}catch{throw safeApiFailure('create','verification',_0x2a0c16(0x107)+_0x5d5d98+_0x2a0c16(0x108));}return{'ok':!![],'data':{'operation':_0x2a0c16(0x10a),'selector':{'appCode':_0x5a4e1a[_0x2a0c16(0xf6)],'id':_0x5a4e1a['id'],'configCode':_0x5a4e1a['configCode'],'configName':_0x5a4e1a['configName'],'channelType':_0x5a4e1a['channelType']},'before':null,'after':projectNotificationConfig(_0x5a4e1a),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2a0c16(0xf3),'lookupCommand':_0x5d5d98}},'message':_0x2a0c16(0x109)+_0x5a4e1a['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0xda553e=a155_0x4b18;(function(_0x116113,_0x3f9e94){const _0x5716dc=a155_0x4b18,_0x411767=_0x116113();while(!![]){try{const _0xf0c470=parseInt(_0x5716dc(0x180))/0x1+parseInt(_0x5716dc(0x187))/0x2*(-parseInt(_0x5716dc(0x16f))/0x3)+parseInt(_0x5716dc(0x182))/0x4+parseInt(_0x5716dc(0x186))/0x5*(parseInt(_0x5716dc(0x174))/0x6)+-parseInt(_0x5716dc(0x175))/0x7+-parseInt(_0x5716dc(0x18a))/0x8+parseInt(_0x5716dc(0x17c))/0x9;if(_0xf0c470===_0x3f9e94)break;else _0x411767['push'](_0x411767['shift']());}catch(_0x3e5066){_0x411767['push'](_0x411767['shift']());}}}(a155_0x1158,0xb8290));function a155_0x4b18(_0x2dad61,_0x1113fe){_0x2dad61=_0x2dad61-0x16f;const _0x115887=a155_0x1158();let _0x4b184e=_0x115887[_0x2dad61];return _0x4b184e;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a155_0xda553e(0x181),REFERENCE_WARNING=a155_0xda553e(0x18c);async function prepareDelete(_0x5b49f0){const _0x135e04=a155_0xda553e,_0x1d95f5=readNotificationId(_0x5b49f0),_0xe5ed4b=await requireExactNotificationConfig(_0x5b49f0['appCode'],_0x1d95f5,_0x135e04(0x173));return{'id':_0x1d95f5,'before':_0xe5ed4b};}export const notificationConfigDelete={'service':a155_0xda553e(0x179),'command':'config-delete','description':a155_0xda553e(0x176),'risk':a155_0xda553e(0x185),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x1e49e8){readNotificationId(_0x1e49e8),requireNotificationExplicitYes(_0x1e49e8);},async 'dryRun'(_0x215af7){const _0x3bbc05=a155_0xda553e,_0x3f450d=await prepareDelete(_0x215af7),_0x5f0a97=notificationLookupCommand(_0x215af7[_0x3bbc05(0x170)],_0x3f450d[_0x3bbc05(0x171)][_0x3bbc05(0x18e)]);return asDryRunResult({'operation':_0x3bbc05(0x173),'selector':notificationSelector(_0x3f450d[_0x3bbc05(0x171)]),'before':projectNotificationConfig(_0x3f450d['before']),'after':null,'dryRun':!![],'backend':{'method':_0x3bbc05(0x189),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x3bbc05(0x17b),'lookupCommand':_0x5f0a97}},{'method':_0x3bbc05(0x189),'url':DELETE_PATH});},async 'execute'(_0x3fc516){const _0x4d8de3=a155_0xda553e;requireNotificationExplicitYes(_0x3fc516);const _0x71b461=await prepareDelete(_0x3fc516),_0x4bbe4a=notificationLookupCommand(_0x3fc516[_0x4d8de3(0x170)],_0x71b461['before']['channelType']);let _0x2d07d6=![];try{await deleteNotificationChannelConfig(_0x71b461['id'],_0x3fc516[_0x4d8de3(0x170)]);}catch(_0x1f11a9){if(!isPlatformTransportFailure(_0x1f11a9))throw safeApiFailure(_0x4d8de3(0x173),_0x4d8de3(0x18d),_0x4d8de3(0x183)+_0x4bbe4a+_0x4d8de3(0x177));_0x2d07d6=!![];}let _0x1f348f;try{_0x1f348f=await listNotificationChannelConfigs(_0x3fc516['appCode'],_0x71b461[_0x4d8de3(0x171)][_0x4d8de3(0x18e)]),validateNotificationDeleteReadback(_0x1f348f,_0x3fc516[_0x4d8de3(0x170)],_0x71b461[_0x4d8de3(0x171)][_0x4d8de3(0x18e)]);}catch{throw notificationError(_0x2d07d6?_0x4d8de3(0x178):_0x4d8de3(0x17d),'Notification\x20config\x20'+_0x71b461['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x4d8de3(0x183)+_0x4bbe4a+_0x4d8de3(0x17a));}if(_0x1f348f[_0x4d8de3(0x188)](_0x5a7495=>_0x5a7495['id']===_0x71b461['id']))throw notificationError(_0x2d07d6?_0x4d8de3(0x178):_0x4d8de3(0x17f),'Notification\x20config\x20'+_0x71b461['id']+_0x4d8de3(0x17e),'Inspect\x20with\x20'+_0x4bbe4a+_0x4d8de3(0x17a));const _0xb57ae=[REFERENCE_WARNING];return _0x2d07d6&&_0xb57ae['unshift'](_0x4d8de3(0x18b)),{'ok':!![],'data':{'operation':_0x4d8de3(0x173),'selector':notificationSelector(_0x71b461['before']),'before':projectNotificationConfig(_0x71b461['before']),'after':null,'dryRun':![],'backend':{'method':_0x4d8de3(0x189),'path':DELETE_PATH},'warnings':_0xb57ae,'verification':{'status':_0x4d8de3(0x184),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x2d07d6,'lookupCommand':_0x4bbe4a}},'message':_0x4d8de3(0x172)+_0x71b461['id']};}};function a155_0x1158(){const _0x565e9d=['before','Deleted\x20notification\x20config\x20','delete','22332elbAiH','1340353gJYlyP','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_delete_outcome_unknown','notification',';\x20do\x20not\x20resubmit\x20automatically.','planned','3881655xyteWX','notification_config_delete_verification_unavailable','\x20remains\x20present\x20after\x20delete.','notification_config_delete_verification_failed','765213GFhyFo','/notification/channel-config/delete','1392952IXBkEn','Inspect\x20with\x20','verified','high-risk-write','635WUvKNT','26PIGVNH','some','POST','5361504ZflJCX','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','mutation','channelType','92643nAMaEV','appCode'];a155_0x1158=function(){return _0x565e9d;};return a155_0x1158();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a156_0x4ec8(){const _0x328221=['config-list','\x20notification\x20config(s)','Found\x20','19723693dqvRVh','length','6445089xAqeQu','Notification\x20channel\x20type','2554956kGhJla','265552oycYkR','12jvunfU','2773820IffMPl','2335vnWtVW','map','appCode','1bbGFIo','1138996VVaOhY','9042JrofNQ','119RgvhfN','10aEhuGZ'];a156_0x4ec8=function(){return _0x328221;};return a156_0x4ec8();}const a156_0x523e0d=a156_0x4daf;(function(_0x2f2e70,_0xa81cde){const _0x24db4c=a156_0x4daf,_0x784abc=_0x2f2e70();while(!![]){try{const _0x383c47=-parseInt(_0x24db4c(0x1f3))/0x1*(parseInt(_0x24db4c(0x1f4))/0x2)+parseInt(_0x24db4c(0x1ec))/0x3+-parseInt(_0x24db4c(0x1ef))/0x4+-parseInt(_0x24db4c(0x1f0))/0x5*(parseInt(_0x24db4c(0x1f5))/0x6)+parseInt(_0x24db4c(0x1f6))/0x7*(parseInt(_0x24db4c(0x1ed))/0x8)+-parseInt(_0x24db4c(0x1ea))/0x9*(parseInt(_0x24db4c(0x1f7))/0xa)+parseInt(_0x24db4c(0x1e8))/0xb*(parseInt(_0x24db4c(0x1ee))/0xc);if(_0x383c47===_0xa81cde)break;else _0x784abc['push'](_0x784abc['shift']());}catch(_0x31b9fc){_0x784abc['push'](_0x784abc['shift']());}}}(a156_0x4ec8,0x8075a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a156_0x4daf(_0x399659,_0xcba601){_0x399659=_0x399659-0x1e8;const _0x4ec809=a156_0x4ec8();let _0x4dafcf=_0x4ec809[_0x399659];return _0x4dafcf;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a156_0x523e0d(0x1f8),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':'string','description':a156_0x523e0d(0x1eb),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x52a734){readNotificationChannelType(_0x52a734);},async 'execute'(_0x5e7649){const _0x22c9ac=a156_0x523e0d,_0x2202cc=readNotificationChannelType(_0x5e7649),_0x43efd0=await listNotificationChannelConfigs(_0x5e7649[_0x22c9ac(0x1f2)],_0x2202cc),_0x289d80=_0x43efd0[_0x22c9ac(0x1f1)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5e7649[_0x22c9ac(0x1f2)],'channelType':_0x2202cc,'count':_0x289d80[_0x22c9ac(0x1e9)],'configs':_0x289d80},'message':_0x22c9ac(0x1fa)+_0x289d80[_0x22c9ac(0x1e9)]+'\x20'+_0x2202cc+_0x22c9ac(0x1f9)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a157_0x1baa2d=a157_0x2839;(function(_0x209ac0,_0x301f24){const _0x2aeaf6=a157_0x2839,_0x237df4=_0x209ac0();while(!![]){try{const _0x44b67e=-parseInt(_0x2aeaf6(0x1cd))/0x1+-parseInt(_0x2aeaf6(0x1c2))/0x2+-parseInt(_0x2aeaf6(0x1c1))/0x3+-parseInt(_0x2aeaf6(0x1bc))/0x4+-parseInt(_0x2aeaf6(0x1dd))/0x5+parseInt(_0x2aeaf6(0x1c5))/0x6+-parseInt(_0x2aeaf6(0x1ce))/0x7*(-parseInt(_0x2aeaf6(0x1cb))/0x8);if(_0x44b67e===_0x301f24)break;else _0x237df4['push'](_0x237df4['shift']());}catch(_0x3f7046){_0x237df4['push'](_0x237df4['shift']());}}}(a157_0x258b,0xe6de6));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a157_0x2839(_0x3623f0,_0x2e8fcc){_0x3623f0=_0x3623f0-0x1bc;const _0x258b08=a157_0x258b();let _0x283984=_0x258b08[_0x3623f0];return _0x283984;}import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a157_0x1baa2d(0x1c0);async function prepareUpdate(_0x174845){const _0x5411a5=a157_0x1baa2d,_0x474150=readNotificationId(_0x174845),_0x568485=await readNotificationDocument(_0x174845,_0x5411a5(0x1ca)),_0x2246d6=await requireExactNotificationConfig(_0x174845[_0x5411a5(0x1db)],_0x474150,_0x5411a5(0x1ca));return{'id':_0x474150,'patch':_0x568485,'before':_0x2246d6,'payload':mergeUpdateInput(_0x2246d6,_0x568485),'planned':plannedUpdateProjection(_0x2246d6,_0x568485)};}export const notificationConfigUpdate={'service':'notification','command':a157_0x1baa2d(0x1c3),'description':a157_0x1baa2d(0x1bd),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4497f7){readNotificationId(_0x4497f7),assertSingleNotificationSource(_0x4497f7),requireNotificationExplicitYes(_0x4497f7);},async 'dryRun'(_0x1dde15){const _0x58b584=a157_0x1baa2d,_0x33566c=await prepareUpdate(_0x1dde15),_0x446a2f=notificationLookupCommand(_0x1dde15[_0x58b584(0x1db)],_0x33566c[_0x58b584(0x1c8)][_0x58b584(0x1c9)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x33566c[_0x58b584(0x1c8)]),'before':projectNotificationConfig(_0x33566c[_0x58b584(0x1c8)]),'after':_0x33566c[_0x58b584(0x1cc)],'dryRun':!![],'backend':{'method':_0x58b584(0x1d3),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x58b584(0x1cc),'lookupCommand':_0x446a2f}},{'method':_0x58b584(0x1d3),'url':UPDATE_PATH});},async 'execute'(_0x27c859){const _0x3e9b10=a157_0x1baa2d;requireNotificationExplicitYes(_0x27c859);const _0x3a0247=await prepareUpdate(_0x27c859),_0x40b0a5=notificationLookupCommand(_0x27c859[_0x3e9b10(0x1db)],_0x3a0247[_0x3e9b10(0x1c8)]['channelType']);let _0x1e31d0=![];try{await updateNotificationChannelConfig(_0x3a0247[_0x3e9b10(0x1d4)]);}catch(_0xe4e4b1){if(!isPlatformTransportFailure(_0xe4e4b1))throw safeApiFailure(_0x3e9b10(0x1ca),_0x3e9b10(0x1c7),_0x3e9b10(0x1bf)+_0x3a0247['id']+_0x3e9b10(0x1d8)+_0x40b0a5+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1e31d0=!![];}let _0x103345;try{const _0x26bc23=await getNotificationChannelConfig(_0x3a0247['id'],_0x27c859['appCode']);_0x103345=normalizeExactNotificationConfig(_0x26bc23,_0x3a0247['id'],_0x27c859[_0x3e9b10(0x1db)]);}catch{throw notificationError(_0x1e31d0?_0x3e9b10(0x1cf):'notification_config_update_verification_unavailable',_0x3e9b10(0x1c6)+_0x3a0247['id']+_0x3e9b10(0x1d0),_0x3e9b10(0x1d6)+_0x3a0247['id']+_0x3e9b10(0x1d9)+_0x40b0a5+';\x20do\x20not\x20resubmit\x20automatically.');}const _0x584c3d=requestedSafeFieldsMatch(_0x3a0247[_0x3e9b10(0x1c8)],_0x103345,_0x3a0247[_0x3e9b10(0x1d7)]);if(!_0x584c3d[_0x3e9b10(0x1c4)]||_0x1e31d0&&!_0x584c3d[_0x3e9b10(0x1dc)])throw notificationError(_0x1e31d0?_0x3e9b10(0x1cf):'notification_config_update_verification_failed','Notification\x20config\x20'+_0x3a0247['id']+_0x3e9b10(0x1de),_0x3e9b10(0x1d6)+_0x3a0247['id']+_0x3e9b10(0x1d9)+_0x40b0a5+_0x3e9b10(0x1da));const _0x4ace9a=_0x1e31d0?[_0x3e9b10(0x1d1)]:[];return{'ok':!![],'data':{'operation':_0x3e9b10(0x1ca),'selector':notificationSelector(_0x103345),'before':projectNotificationConfig(_0x3a0247[_0x3e9b10(0x1c8)]),'after':projectNotificationConfig(_0x103345),'dryRun':![],'backend':{'method':_0x3e9b10(0x1d3),'path':UPDATE_PATH},'warnings':_0x4ace9a,'verification':{'status':_0x3e9b10(0x1d5),'recoveredAfterUnknownResponse':_0x1e31d0,'verifiedFields':_0x584c3d[_0x3e9b10(0x1d2)],'lookupCommand':_0x40b0a5}},'message':_0x3e9b10(0x1be)+_0x103345['id']};}};function a157_0x258b(){const _0x3e9c0e=['\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','5259240lUzuQt','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Updated\x20notification\x20config\x20','Inspect\x20ID\x20','/notification/channel-config/update','4765524jmXZyH','1022490vRyESR','config-update','allMatch','7550856sDVBxi','Notification\x20config\x20','mutation','before','channelType','update','104WFapOO','planned','851958BzByOW','2736965eMQSVu','notification_config_update_outcome_unknown','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','verifiedFields','POST','payload','verified','Inspect\x20with\x20--id\x20','patch','\x20with\x20','\x20via\x20',';\x20do\x20not\x20resubmit\x20automatically.','appCode','provesChange','5646260sZMTWh'];a157_0x258b=function(){return _0x3e9c0e;};return a157_0x258b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x389335,_0x3ac507){const _0x3e7488=a158_0x2321,_0x313761=_0x389335();while(!![]){try{const _0x495022=parseInt(_0x3e7488(0xb4))/0x1+parseInt(_0x3e7488(0xb2))/0x2+-parseInt(_0x3e7488(0xb8))/0x3+parseInt(_0x3e7488(0xb3))/0x4+parseInt(_0x3e7488(0xb5))/0x5+parseInt(_0x3e7488(0xb9))/0x6*(parseInt(_0x3e7488(0xb7))/0x7)+-parseInt(_0x3e7488(0xba))/0x8*(parseInt(_0x3e7488(0xb6))/0x9);if(_0x495022===_0x3ac507)break;else _0x313761['push'](_0x313761['shift']());}catch(_0x5253c2){_0x313761['push'](_0x313761['shift']());}}}(a158_0x3619,0xf15b0));import{notificationConfigList}from'../../commands/notification/config-list.js';function a158_0x2321(_0x3cb2f3,_0x40b67f){_0x3cb2f3=_0x3cb2f3-0xb2;const _0x361977=a158_0x3619();let _0x23212e=_0x361977[_0x3cb2f3];return _0x23212e;}import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a158_0x3619(){const _0x5df3d6=['273092VWXXry','11329tEutWO','919525TmGDhS','12447ngGApe','28PZShAf','2208594PBBtaf','1387662XEQbJS','6632BZbtDe','3365364Rkprea'];a158_0x3619=function(){return _0x5df3d6;};return a158_0x3619();}
|