@lovrabet/rabetbase-cli 2.5.2-beta.1 → 2.5.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.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.d.ts +2 -0
- package/lib/commands/deployment/sync-all.js +1 -0
- package/lib/commands/deployment/sync-jobs.d.ts +2 -0
- package/lib/commands/deployment/sync-jobs.js +1 -0
- package/lib/commands/deployment/sync-status.d.ts +2 -0
- package/lib/commands/deployment/sync-status.js +1 -0
- 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.d.ts +2 -0
- package/lib/commands/instant-api-policy/current.js +1 -0
- package/lib/commands/instant-api-policy/index.d.ts +2 -0
- package/lib/commands/instant-api-policy/index.js +1 -0
- package/lib/commands/instant-api-policy/init.d.ts +2 -0
- package/lib/commands/instant-api-policy/init.js +1 -0
- package/lib/commands/instant-api-policy/publish.d.ts +2 -0
- package/lib/commands/instant-api-policy/publish.js +1 -0
- package/lib/commands/instant-api-policy/pull.d.ts +2 -0
- package/lib/commands/instant-api-policy/pull.js +1 -0
- package/lib/commands/instant-api-policy/revision.d.ts +2 -0
- package/lib/commands/instant-api-policy/revision.js +1 -0
- package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
- package/lib/commands/instant-api-policy/revisions.js +1 -0
- package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
- package/lib/commands/instant-api-policy/rollback.js +1 -0
- package/lib/commands/instant-api-policy/shared.d.ts +82 -0
- package/lib/commands/instant-api-policy/shared.js +1 -0
- package/lib/commands/instant-api-policy/validate.d.ts +2 -0
- package/lib/commands/instant-api-policy/validate.js +1 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/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 +113 -0
- 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.d.ts +23 -0
- package/lib/core/instant-api-policy/config.js +1 -0
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/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 +1 -1
- package/skills/rabetbase/SKILL.md +11 -5
- package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x130b4b,_0x1d50b0){const _0x5c51e3=a147_0x487e,_0x370333=_0x130b4b();while(!![]){try{const _0xac53fc=parseInt(_0x5c51e3(0x1bd))/0x1+parseInt(_0x5c51e3(0x1d7))/0x2*(parseInt(_0x5c51e3(0x1da))/0x3)+-parseInt(_0x5c51e3(0x1b8))/0x4*(-parseInt(_0x5c51e3(0x1ba))/0x5)+parseInt(_0x5c51e3(0x1be))/0x6*(-parseInt(_0x5c51e3(0x1d8))/0x7)+-parseInt(_0x5c51e3(0x1b5))/0x8*(parseInt(_0x5c51e3(0x1c2))/0x9)+parseInt(_0x5c51e3(0x1ca))/0xa*(parseInt(_0x5c51e3(0x1d4))/0xb)+parseInt(_0x5c51e3(0x1cc))/0xc*(-parseInt(_0x5c51e3(0x1bb))/0xd);if(_0xac53fc===_0x1d50b0)break;else _0x370333['push'](_0x370333['shift']());}catch(_0x152a63){_0x370333['push'](_0x370333['shift']());}}}(a147_0x3b4e,0x7f59b));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_0x4ad27f,updateMenuRecord}from'../../../core/api-client.js';function a147_0x487e(_0x49f59c,_0x2c22ea){_0x49f59c=_0x49f59c-0x1b2;const _0x3b4ea5=a147_0x3b4e();let _0x487e63=_0x3b4ea5[_0x49f59c];return _0x487e63;}export async function getOnlineMenuList(_0x12d254,_0x1132cf){const _0x1c90bf=a147_0x487e,_0x3245ff=getEnv();logger[_0x1c90bf(0x1ce)]('get-online-menu-list',isProduction(_0x3245ff)?_0x1c90bf(0x1d9)+_0x12d254+')':_0x1c90bf(0x1bc)+_0x12d254+')');const _0x2c7d97=await fetchMenuSnapshot(_0x12d254,_0x1132cf,{'verbose':!![]});return logger[_0x1c90bf(0x1ce)](_0x1c90bf(0x1c5),_0x1c90bf(0x1b7)+_0x2c7d97[_0x1c90bf(0x1d3)]+_0x1c90bf(0x1d1)),_0x2c7d97['menus'][_0x1c90bf(0x1db)](toProcessedMenuItem);}export async function createMenu(_0x58f42a,_0x292a3c,_0x300eae){const _0x117299=a147_0x487e;logger['info'](_0x117299(0x1c7),'Creating\x20menu:\x20'+_0x300eae[_0x117299(0x1c8)]+'\x20('+_0x300eae[_0x117299(0x1d0)]+')');const _0x45f3ef={'appCode':_0x58f42a,'type':_0x117299(0x1c3),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x300eae[_0x117299(0x1b2)]?JSON['stringify'](_0x300eae[_0x117299(0x1b2)]):undefined},..._0x300eae},_0xbbccb3=await createMenuRecord(_0x45f3ef,_0x292a3c,_0x117299(0x1d5)+_0x300eae['label']+'\x22');return logger[_0x117299(0x1ce)](_0x117299(0x1c7),_0x117299(0x1c9)+_0x300eae[_0x117299(0x1c8)]),_0xbbccb3;}async function createSingleMenu(_0x205a74,_0x32a8b5,_0x1dd08b,_0x1dd297){const _0x37e9e1=a147_0x487e,_0x705a7e={'appCode':_0x205a74,'type':_0x37e9e1(0x1c3),'sort':0x0,'extend':{'loadScriptMode':_0x37e9e1(0x1b3),'resources':_0x1dd297?JSON[_0x37e9e1(0x1c6)](_0x1dd297):undefined},'label':_0x1dd08b[_0x37e9e1(0x1c8)],'path':_0x1dd08b['path']},_0x3a42a2=await createMenuRecord(_0x705a7e,_0x32a8b5,_0x37e9e1(0x1d5)+_0x1dd08b['label']+'\x22');return logger[_0x37e9e1(0x1ce)](_0x37e9e1(0x1c7),'Menu\x20created\x20successfully:\x20'+_0x1dd08b['label']),_0x3a42a2;}export async function createMenus(_0x109fe5,_0x5ce8e9,_0x578378,_0x18a76e){const _0x5de6be=a147_0x487e;logger[_0x5de6be(0x1ce)](_0x5de6be(0x1c4),_0x5de6be(0x1d2)+_0x578378[_0x5de6be(0x1cb)]);const _0xa312f8=await Promise[_0x5de6be(0x1c1)](_0x578378[_0x5de6be(0x1db)](_0x538603=>createSingleMenu(_0x109fe5,_0x5ce8e9,_0x538603,_0x18a76e)));return logger[_0x5de6be(0x1ce)](_0x5de6be(0x1c4),'Batch\x20menu\x20creation\x20completed,\x20total\x20'+_0x578378[_0x5de6be(0x1cb)]),_0xa312f8;}export async function updateMenuCdnUrl(_0x2c645f,_0x11f3d3,_0x57c686){const _0x3cec74=a147_0x487e;logger[_0x3cec74(0x1ce)]('update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20'+_0x57c686[_0x3cec74(0x1c8)]+'\x20('+_0x57c686['path']+')');const _0x4346fe={'id':_0x57c686['id'],'appCode':_0x2c645f,'extend':{..._0x57c686[_0x3cec74(0x1b4)]??{},..._0x57c686['loadScriptMode']?{'loadScriptMode':_0x57c686[_0x3cec74(0x1bf)]}:{},'resources':_0x57c686[_0x3cec74(0x1b2)]?JSON[_0x3cec74(0x1c6)](_0x57c686[_0x3cec74(0x1b2)]):undefined}},_0x36ca9a=await updateMenuRecord(_0x4346fe,_0x11f3d3,_0x3cec74(0x1d6)+_0x57c686[_0x3cec74(0x1c8)]+'\x22');return logger[_0x3cec74(0x1ce)]('update-menu-cdn-url',_0x3cec74(0x1b9)+_0x57c686[_0x3cec74(0x1c8)],undefined),_0x36ca9a;}export async function createMenuEntity(_0x236595,_0x1ef2da,_0x53d97a){const _0x145385=a147_0x487e;return createMenuRecord({'appCode':_0x236595,..._0x53d97a},_0x1ef2da,_0x145385(0x1d5)+_0x53d97a[_0x145385(0x1c8)]+'\x22');}export async function updateMenuEntity(_0x1e26a5,_0x4e7351,_0x33a051){const _0x49901d=a147_0x487e;return updateMenuRecord({'appCode':_0x1e26a5,..._0x33a051},_0x4e7351,_0x49901d(0x1cd)+_0x33a051['id']);}function a147_0x3b4e(){const _0x125759=['Menu\x20created\x20successfully:\x20','370AhNuvL','length','402660JjaBko','Update\x20menu\x20','info','\x20menu','path','\x20online\x20menus\x20successfully','Start\x20batch\x20menu\x20creation,\x20total\x20','total','230791kKqCMC','Create\x20menu\x20\x22','Update\x20menu\x20assets\x20\x22','2330VEuIoG','4886679CFFScD','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','1842biwhzN','map','resources','import','extend','6695816Zkflco','Regroup\x20','Fetched\x20','2956MnzRBR','Menu\x20assets\x20synced:\x20','1545wTyhQa','169DPkRVt','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','772958qBgNnB','6EmtaHG','loadScriptMode','menuGroups','all','9rJRHId','procode','create-menus','get-online-menu-list','stringify','create-menu','label'];a147_0x3b4e=function(){return _0x125759;};return a147_0x3b4e();}export async function batchDeleteMenuEntities(_0x5b3b9a,_0x2777da){const _0x5f1781=a147_0x487e;return batchDeleteMenuRecords(_0x2777da,_0x5b3b9a,'Delete\x20'+_0x2777da[_0x5f1781(0x1cb)]+_0x5f1781(0x1cf)+(_0x2777da[_0x5f1781(0x1cb)]===0x1?'':'s'));}export async function startMenuRegroup(_0x971616,_0x3ba59a){const _0x4aa730=a147_0x487e;return a147_0x4ad27f(_0x3ba59a,_0x971616,_0x4aa730(0x1b6)+_0x3ba59a[_0x4aa730(0x1c0)]['length']+'\x20menu\x20group(s)');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a148_0x4592(_0x4e1e92,_0x259fb7){_0x4e1e92=_0x4e1e92-0x1a1;const _0x5cfb63=a148_0x5cfb();let _0x4592a2=_0x5cfb63[_0x4e1e92];return _0x4592a2;}const a148_0x37c78d=a148_0x4592;(function(_0x1a74b8,_0x22cfd2){const _0x1faaac=a148_0x4592,_0x8cbb83=_0x1a74b8();while(!![]){try{const _0x433b0a=-parseInt(_0x1faaac(0x1bf))/0x1+parseInt(_0x1faaac(0x1cb))/0x2*(-parseInt(_0x1faaac(0x1aa))/0x3)+-parseInt(_0x1faaac(0x1a2))/0x4+-parseInt(_0x1faaac(0x1af))/0x5+-parseInt(_0x1faaac(0x1c5))/0x6+parseInt(_0x1faaac(0x1b0))/0x7*(-parseInt(_0x1faaac(0x1b7))/0x8)+parseInt(_0x1faaac(0x1c7))/0x9;if(_0x433b0a===_0x22cfd2)break;else _0x8cbb83['push'](_0x8cbb83['shift']());}catch(_0xaa471b){_0x8cbb83['push'](_0x8cbb83['shift']());}}}(a148_0x5cfb,0x9d4c8));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a148_0x5cfb(){const _0x3ad08c=['filter','3019288UIBTzu','pages',':\x20expected\x20a\x20non-empty\x20string.','length','parse','has','--params.','Menu\x20sync\x20completed','579801iIEvtZ','CSS\x20URL\x20is\x20unreachable:\x20','map','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','object','1078640pKLABx','175iBehsa','push','path','dryRun','cssUrl','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','Invalid\x20--params\x20fields:\x20','241096yvdrYw','isArray','message','No\x20local\x20pages\x20matched\x20paths:\x20','jsUrl','import','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','881141tECQxB','info','string','Invalid\x20--params:\x20','hasOwn','Invalid\x20--params\x20JSON.','5728542LhGDoN','get','44795133GNPWnR','setLogPath','trim','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','8nCjlNR','join','\x0a\x20\x20Available\x20local\x20paths:\x20','label','Start\x20non-interactive\x20menu\x20sync'];a148_0x5cfb=function(){return _0x3ad08c;};return a148_0x5cfb();}import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set([a148_0x37c78d(0x1bb),a148_0x37c78d(0x1b4)]);function validateParams(_0x149084){const _0x12d245=a148_0x37c78d,_0xa8a644=[];return _0x149084['jsUrl']&&!isValidJsHttpsUrl(_0x149084['jsUrl'])&&_0xa8a644[_0x12d245(0x1b1)]({'field':_0x12d245(0x1bb),'message':_0x12d245(0x1bd)}),_0x149084[_0x12d245(0x1b4)]&&!isValidCssHttpsUrl(_0x149084['cssUrl'])&&_0xa8a644[_0x12d245(0x1b1)]({'field':_0x12d245(0x1b4),'message':_0x12d245(0x1ca)}),_0xa8a644;}export async function runMenuSyncCore(_0x258512,_0x2bef44,_0xd86c8f=[],_0x3bfab2,_0x2ca9ed={}){const _0xbab78d=a148_0x37c78d,_0x4b8cf9=parseMenuSyncParams(_0x3bfab2),_0x3944ab=[...new Set(_0xd86c8f[_0xbab78d(0x1ac)](_0x9b9a3c=>_0x9b9a3c[_0xbab78d(0x1c9)]())[_0xbab78d(0x1a1)](Boolean))],_0x137d74=_0x4b8cf9[_0xbab78d(0x1bb)],_0x2cfde8=_0x4b8cf9[_0xbab78d(0x1b4)],_0x3a4dd4=[];if(_0x137d74)_0x3a4dd4['push'](_0x137d74);if(_0x2cfde8)_0x3a4dd4[_0xbab78d(0x1b1)](_0x2cfde8);const _0x11775c=validateParams(_0x4b8cf9);if(_0x11775c[_0xbab78d(0x1a5)]>0x0){const _0x55d845=_0x11775c[_0xbab78d(0x1ac)](_0xd64c48=>_0xbab78d(0x1a8)+_0xd64c48['field']+':\x20'+_0xd64c48[_0xbab78d(0x1b9)])[_0xbab78d(0x1cc)](';\x20');throw new Error(_0xbab78d(0x1c2)+_0x55d845);}logger[_0xbab78d(0x1c8)](process['cwd']()),logger[_0xbab78d(0x1c0)]('menu-sync',_0xbab78d(0x1cf),{'appCode':_0x258512,'selectedCount':_0x3944ab[_0xbab78d(0x1a5)],'jsUrl':_0x137d74,'cssUrl':_0x2cfde8});if(_0x137d74){const _0x3f7a85=await isUrlReachable(_0x137d74);if(!_0x3f7a85)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x137d74);}if(_0x2cfde8){const _0x23681a=await isUrlReachable(_0x2cfde8);if(!_0x23681a)throw new Error(_0xbab78d(0x1ab)+_0x2cfde8);}const _0x403e0c=getLocalPages();if(_0x403e0c['length']===0x0){if(_0x3944ab[_0xbab78d(0x1a5)]>0x0)throw new Error(_0xbab78d(0x1ba)+_0x3944ab['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x2ca9ed[_0xbab78d(0x1b3)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x4c9710=await getOnlineMenuList(_0x258512,_0x2bef44),_0x278731=new Set(_0x4c9710[_0xbab78d(0x1ac)](_0x21c6cb=>_0x21c6cb['path']));let _0xa10e04;if(_0x3944ab['length']>0x0){const _0x3b6231=new Map(_0x403e0c[_0xbab78d(0x1ac)](_0x382487=>[_0x382487['path'],_0x382487])),_0x875a0a=_0x3944ab['filter'](_0xf44a8e=>!_0x3b6231[_0xbab78d(0x1a7)](_0xf44a8e));if(_0x875a0a[_0xbab78d(0x1a5)]>0x0){const _0x5485f9=_0x403e0c['map'](_0x119420=>_0x119420['path'])[_0xbab78d(0x1cc)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x875a0a[_0xbab78d(0x1cc)](',\x20')+_0xbab78d(0x1cd)+_0x5485f9);}const _0x34bdc8=_0x3944ab[_0xbab78d(0x1a1)](_0x555f33=>_0x278731[_0xbab78d(0x1a7)](_0x555f33));if(_0x34bdc8[_0xbab78d(0x1a5)]>0x0)throw new Error(_0xbab78d(0x1ad)+_0x34bdc8[_0xbab78d(0x1cc)](',\x20'));_0xa10e04=_0x3944ab[_0xbab78d(0x1ac)](_0xb14871=>_0x3b6231[_0xbab78d(0x1c6)](_0xb14871));}else _0xa10e04=_0x403e0c[_0xbab78d(0x1a1)](_0x58ccef=>!_0x278731[_0xbab78d(0x1a7)](_0x58ccef[_0xbab78d(0x1b2)]));if(_0xa10e04['length']===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x2ca9ed[_0xbab78d(0x1b3)]===!![],'targetPages':[],'plannedMenus':[]};const _0x567457=_0xa10e04['map'](_0x1f8be2=>({'type':'procode','path':_0x1f8be2[_0xbab78d(0x1b2)],'label':_0x1f8be2[_0xbab78d(0x1ce)],'loadScriptMode':_0xbab78d(0x1bc),'resources':[..._0x3a4dd4]}));if(_0x2ca9ed['dryRun'])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0xa10e04,'plannedMenus':_0x567457};const _0x56b8a3=await createMenus(_0x258512,_0x2bef44,_0xa10e04,_0x3a4dd4[_0xbab78d(0x1a5)]>0x0?_0x3a4dd4:undefined);return logger[_0xbab78d(0x1c0)]('menu-sync',_0xbab78d(0x1a9),{'count':_0xa10e04[_0xbab78d(0x1a5)],'resources':_0x3a4dd4}),{'created':_0x56b8a3['length'],'skipped':![],'dryRun':![],'targetPages':_0xa10e04,'plannedMenus':_0x567457,'menus':_0x56b8a3};}export function parseMenuSyncParams(_0x89440d){const _0x3a704d=a148_0x37c78d;if(!_0x89440d||typeof _0x89440d!==_0x3a704d(0x1c1))return{};let _0x5f12b7;try{_0x5f12b7=JSON[_0x3a704d(0x1a6)](_0x89440d);}catch{throw new Error(_0x3a704d(0x1c4));}if(typeof _0x5f12b7!==_0x3a704d(0x1ae)||_0x5f12b7===null||Array[_0x3a704d(0x1b8)](_0x5f12b7))throw new Error(_0x3a704d(0x1be));const _0x583f65=_0x5f12b7;if(Object[_0x3a704d(0x1c3)](_0x583f65,_0x3a704d(0x1a3)))throw new Error(_0x3a704d(0x1b5));const _0x1263f3=Object['keys'](_0x583f65)[_0x3a704d(0x1a1)](_0x544bdf=>!MENU_SYNC_PARAM_KEYS[_0x3a704d(0x1a7)](_0x544bdf));if(_0x1263f3[_0x3a704d(0x1a5)]>0x0)throw new Error(_0x3a704d(0x1b6)+_0x1263f3[_0x3a704d(0x1cc)](',\x20')+'.');for(const _0x5a1587 of MENU_SYNC_PARAM_KEYS){const _0x13c9b8=_0x583f65[_0x5a1587];if(_0x13c9b8!==undefined&&(typeof _0x13c9b8!==_0x3a704d(0x1c1)||_0x13c9b8[_0x3a704d(0x1c9)]()===''))throw new Error('Invalid\x20--params.'+_0x5a1587+_0x3a704d(0x1a4));}return{'jsUrl':typeof _0x583f65['jsUrl']===_0x3a704d(0x1c1)?_0x583f65[_0x3a704d(0x1bb)][_0x3a704d(0x1c9)]():undefined,'cssUrl':typeof _0x583f65[_0x3a704d(0x1b4)]===_0x3a704d(0x1c1)?_0x583f65[_0x3a704d(0x1b4)][_0x3a704d(0x1c9)]():undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x18aea4,_0x40ec8c){const _0x4520fa=a137_0xb78d,_0x3285b9=_0x18aea4();while(!![]){try{const _0x5c1fcb=parseInt(_0x4520fa(0x16e))/0x1+-parseInt(_0x4520fa(0x15e))/0x2*(-parseInt(_0x4520fa(0x187))/0x3)+parseInt(_0x4520fa(0x160))/0x4*(parseInt(_0x4520fa(0x155))/0x5)+parseInt(_0x4520fa(0x179))/0x6*(-parseInt(_0x4520fa(0x186))/0x7)+parseInt(_0x4520fa(0x16a))/0x8*(-parseInt(_0x4520fa(0x158))/0x9)+parseInt(_0x4520fa(0x169))/0xa*(-parseInt(_0x4520fa(0x156))/0xb)+parseInt(_0x4520fa(0x17e))/0xc;if(_0x5c1fcb===_0x40ec8c)break;else _0x3285b9['push'](_0x3285b9['shift']());}catch(_0x1262bf){_0x3285b9['push'](_0x3285b9['shift']());}}}(a137_0x283a,0xe189d));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 validateParams(_0x4024bb){const _0x596285=a137_0xb78d,_0x4b290f=[];return _0x4024bb[_0x596285(0x168)]&&!isValidJsHttpsUrl(_0x4024bb[_0x596285(0x168)])&&_0x4b290f[_0x596285(0x15c)]({'field':'jsUrl','message':_0x596285(0x17f)}),_0x4024bb['cssUrl']&&!isValidCssHttpsUrl(_0x4024bb[_0x596285(0x17d)])&&_0x4b290f[_0x596285(0x15c)]({'field':_0x596285(0x17d),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x4b290f;}export async function runMenuUpdateCore(_0x5aa07c,_0x4f1bb7,_0x1796b5,_0x4084f1={}){const _0x46c7a0=a137_0xb78d,_0x5206be=parseUpdateParamsFlag(_0x1796b5),_0x4403d3=normalizeMode(_0x4084f1[_0x46c7a0(0x14a)]);validateSelection(_0x4084f1['selection']);const _0x1b39de=[];if(_0x5206be[_0x46c7a0(0x168)])_0x1b39de[_0x46c7a0(0x15c)](_0x5206be['jsUrl']);if(_0x5206be[_0x46c7a0(0x17d)])_0x1b39de[_0x46c7a0(0x15c)](_0x5206be['cssUrl']);const _0x2d325e=validateParams(_0x5206be);if(_0x2d325e['length']>0x0){const _0x35cb32=_0x2d325e[_0x46c7a0(0x17a)](_0x274dbc=>_0x46c7a0(0x175)+_0x274dbc['field']+':\x20'+_0x274dbc[_0x46c7a0(0x173)])['join'](';\x20');throw new Error(_0x46c7a0(0x146)+_0x35cb32);}if(_0x1b39de[_0x46c7a0(0x14f)]===0x0)throw new Error(_0x46c7a0(0x163)+_0x46c7a0(0x185));logger[_0x46c7a0(0x16c)](process['cwd']()),logger[_0x46c7a0(0x171)](_0x46c7a0(0x15b),_0x46c7a0(0x18e),{'appCode':_0x5aa07c,'jsUrl':_0x5206be['jsUrl'],'cssUrl':_0x5206be[_0x46c7a0(0x17d)],'mode':_0x4403d3,'dryRun':_0x4084f1[_0x46c7a0(0x170)]===!![]});if(_0x5206be[_0x46c7a0(0x168)]){const _0x4482f7=await isUrlReachable(_0x5206be[_0x46c7a0(0x168)]);if(!_0x4482f7)throw new Error(_0x46c7a0(0x152)+_0x5206be[_0x46c7a0(0x168)]);}if(_0x5206be[_0x46c7a0(0x17d)]){const _0x5070c2=await isUrlReachable(_0x5206be[_0x46c7a0(0x17d)]);if(!_0x5070c2)throw new Error(_0x46c7a0(0x183)+_0x5206be[_0x46c7a0(0x17d)]);}const _0x353c75=await getOnlineMenuList(_0x5aa07c,_0x4f1bb7),_0x23c9ff=_0x353c75[_0x46c7a0(0x144)](_0x2172dd=>_0x2172dd[_0x46c7a0(0x174)]['length']>0x0),_0x28c2be=selectMenusForUpdate(_0x23c9ff,_0x4084f1['selection']);if(_0x28c2be[_0x46c7a0(0x14f)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4084f1[_0x46c7a0(0x170)]===!![]};const _0x46c81e=_0x28c2be[_0x46c7a0(0x17a)](_0x1d3c7a=>buildMenuUpdateDiff(_0x1d3c7a,_0x5206be,_0x4403d3,_0x4084f1[_0x46c7a0(0x16f)]===!![],_0x4084f1[_0x46c7a0(0x153)]));if(_0x4084f1['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x46c81e};const _0x270463=await Promise[_0x46c7a0(0x145)](_0x28c2be[_0x46c7a0(0x17a)]((_0x5ce60c,_0x11c932)=>updateMenuCdnUrl(_0x5aa07c,_0x4f1bb7,{'id':_0x5ce60c['id'],'label':_0x5ce60c[_0x46c7a0(0x184)],'path':_0x5ce60c[_0x46c7a0(0x181)],'resources':_0x46c81e[_0x11c932][_0x46c7a0(0x189)][_0x46c7a0(0x174)],'extend':_0x5ce60c[_0x46c7a0(0x172)]??null,'loadScriptMode':_0x4084f1[_0x46c7a0(0x153)]}))),_0x404ac9=_0x270463[_0x46c7a0(0x144)](_0x362feb=>_0x362feb[_0x46c7a0(0x14b)]===_0x46c7a0(0x15f))['map'](_0x855d86=>_0x855d86[_0x46c7a0(0x188)]),_0x225f57=_0x270463[_0x46c7a0(0x144)](_0x2e7278=>_0x2e7278[_0x46c7a0(0x14b)]===_0x46c7a0(0x148))[_0x46c7a0(0x14f)];return logger[_0x46c7a0(0x171)](_0x46c7a0(0x15b),_0x46c7a0(0x14e),{'count':_0x28c2be['length'],'resources':_0x1b39de}),{'updated':_0x404ac9[_0x46c7a0(0x14f)],'failed':_0x225f57,'skipped':![],'menus':_0x404ac9};}function a137_0xb78d(_0x3bee05,_0x422958){_0x3bee05=_0x3bee05-0x144;const _0x283acc=a137_0x283a();let _0xb78d27=_0x283acc[_0x3bee05];return _0xb78d27;}function a137_0x283a(){const _0x576a12=[').\x20','all','menu\x20asset-update\x20cannot\x20patch\x20','jsUrl','1850eSbRjG','16pzLZhn','join','setLogPath','split','1449602FCPhYd','force','dryRun','info','extend','message','resources','--params.','Invalid\x20--mode:\x20','.\x20Allowed\x20values:\x20replace,\x20patch','paths','132tnUOVY','map','menuIds','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','cssUrl','28513188ONmNPy','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20existing\x20JS\x20resources\x20for\x20\x22','path','.css','CSS\x20URL\x20is\x20unreachable:\x20','label','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','413441sShGZg','174CtlwKH','value','after','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','has','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','Start\x20non-interactive\x20menu\x20asset\x20update','some','filter','allSettled','Invalid\x20--params:\x20','string','rejected','patch','mode','status','toLowerCase','\x22\x20(','Menu\x20asset\x20update\x20completed','length','trim','\x20existing\x20CSS\x20resources\x20for\x20\x22','JS\x20URL\x20is\x20unreachable:\x20','loadScriptMode','.js','30bWjHBz','28996uBqlVQ','endsWith','8072433IYZCOT','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','isArray','menu-asset-update','push','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','23294oMhwef','fulfilled','2332aJXLfL','parse','replace','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','object'];a137_0x283a=function(){return _0x576a12;};return a137_0x283a();}function validateSelection(_0x12995d){const _0x23e409=a137_0xb78d;if(!_0x12995d)throw new Error(_0x23e409(0x18d));if(_0x12995d['all']&&(_0x12995d['menuIds'][_0x23e409(0x14f)]>0x0||_0x12995d['paths']['length']>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0x12995d[_0x23e409(0x166)]&&_0x12995d[_0x23e409(0x17b)]['length']===0x0&&_0x12995d[_0x23e409(0x178)][_0x23e409(0x14f)]===0x0)throw new Error(_0x23e409(0x18d));}export function selectMenusForUpdate(_0x559896,_0x52e025){const _0x4c248f=a137_0xb78d;validateSelection(_0x52e025);if(_0x52e025['all'])return _0x559896;const _0x1d91f8=new Set(_0x559896[_0x4c248f(0x17a)](_0xc22904=>_0xc22904['id'])),_0x32aa97=new Set(_0x559896['map'](_0x5941bc=>_0x5941bc[_0x4c248f(0x181)])),_0xa8baaf=_0x52e025[_0x4c248f(0x17b)]['filter'](_0x188680=>!_0x1d91f8[_0x4c248f(0x18c)](_0x188680)),_0x5af726=_0x52e025[_0x4c248f(0x178)][_0x4c248f(0x144)](_0x20413b=>!_0x32aa97[_0x4c248f(0x18c)](_0x20413b));if(_0xa8baaf[_0x4c248f(0x14f)]>0x0||_0x5af726[_0x4c248f(0x14f)]>0x0){const _0x105f97=[..._0xa8baaf[_0x4c248f(0x17a)](_0x335a00=>String(_0x335a00)),..._0x5af726][_0x4c248f(0x16b)](',\x20');throw new Error(_0x4c248f(0x17c)+_0x105f97);}const _0xa15f98=new Set(_0x52e025[_0x4c248f(0x17b)]),_0x12dcce=new Set(_0x52e025[_0x4c248f(0x178)]);return _0x559896[_0x4c248f(0x144)](_0x2688ca=>_0xa15f98[_0x4c248f(0x18c)](_0x2688ca['id'])||_0x12dcce[_0x4c248f(0x18c)](_0x2688ca[_0x4c248f(0x181)]));}function normalizeMode(_0xb40fad){const _0xfb5486=a137_0xb78d;if(!_0xb40fad)return _0xfb5486(0x149);if(_0xb40fad===_0xfb5486(0x162)||_0xb40fad===_0xfb5486(0x149))return _0xb40fad;throw new Error(_0xfb5486(0x176)+_0xb40fad+_0xfb5486(0x177));}function buildMenuUpdateDiff(_0x574265,_0x281bfc,_0x30258c,_0x5ea958,_0x3c8ee4){const _0x132366=a137_0xb78d,_0x22fb01=[..._0x574265['resources']];_0x30258c===_0x132366(0x149)&&assertUnambiguousPatchResources(_0x574265,_0x22fb01,_0x281bfc);const _0x5634db=_0x30258c===_0x132366(0x149)?patchResources(_0x22fb01,_0x281bfc):replaceResources(_0x281bfc),_0x1c95ec=[],_0x3b65d5=_0x22fb01[_0x132366(0x18f)](isJsResource),_0xd957a=_0x5634db[_0x132366(0x18f)](isJsResource);if(_0x3b65d5&&!_0xd957a){const _0x5f5938=_0x132366(0x159)+_0x574265[_0x132366(0x184)]+_0x132366(0x14d)+_0x574265[_0x132366(0x181)]+_0x132366(0x165)+_0x132366(0x18b);if(!_0x5ea958)throw new Error(_0x5f5938);_0x1c95ec[_0x132366(0x15c)](_0x5f5938);}const _0x523301=_0x22fb01[_0x132366(0x18f)](isCssResource),_0x55590d=_0x5634db[_0x132366(0x18f)](isCssResource);_0x523301&&!_0x55590d&&_0x1c95ec['push'](_0x132366(0x15d)+_0x574265[_0x132366(0x184)]+_0x132366(0x14d)+_0x574265[_0x132366(0x181)]+').');const _0x1aa758=typeof _0x574265['extend']?.['loadScriptMode']===_0x132366(0x147)?_0x574265['extend'][_0x132366(0x153)]:null,_0x59b839=_0x3c8ee4?{'loadScriptMode':_0x1aa758}:{},_0x318d6b=_0x3c8ee4?{'loadScriptMode':_0x3c8ee4}:{};return{'id':_0x574265['id'],'label':_0x574265[_0x132366(0x184)],'path':_0x574265['path'],'mode':_0x30258c,'before':{'resources':_0x22fb01,..._0x59b839},'after':{'resources':_0x5634db,..._0x318d6b},'warnings':_0x1c95ec};}function replaceResources(_0x628c97){const _0x1da0d9=a137_0xb78d;return[_0x628c97[_0x1da0d9(0x168)],_0x628c97[_0x1da0d9(0x17d)]]['filter'](_0x29c71c=>!!_0x29c71c);}function assertUnambiguousPatchResources(_0x556b76,_0x176429,_0x382c30){const _0x44f793=a137_0xb78d,_0x44eecf=_0x176429[_0x44f793(0x144)](isJsResource)['length'];if(_0x382c30[_0x44f793(0x168)]&&_0x44eecf>0x1)throw new Error(_0x44f793(0x167)+_0x44eecf+_0x44f793(0x180)+_0x556b76[_0x44f793(0x184)]+'\x22\x20('+_0x556b76['path']+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x1b2ba4=_0x176429[_0x44f793(0x144)](isCssResource)[_0x44f793(0x14f)];if(_0x382c30[_0x44f793(0x17d)]&&_0x1b2ba4>0x1)throw new Error(_0x44f793(0x167)+_0x1b2ba4+_0x44f793(0x151)+_0x556b76[_0x44f793(0x184)]+_0x44f793(0x14d)+_0x556b76[_0x44f793(0x181)]+')\x20'+_0x44f793(0x18a));}function patchResources(_0x2b35a7,_0x37928e){const _0x3f5dae=a137_0xb78d;let _0x41c4d5=![],_0x459a62=![];const _0x2630ea=[];for(const _0x354610 of _0x2b35a7){if(isJsResource(_0x354610)){if(_0x37928e[_0x3f5dae(0x168)]&&!_0x41c4d5)_0x2630ea[_0x3f5dae(0x15c)](_0x37928e[_0x3f5dae(0x168)]),_0x41c4d5=!![];else!_0x37928e['jsUrl']&&_0x2630ea['push'](_0x354610);continue;}if(isCssResource(_0x354610)){if(_0x37928e[_0x3f5dae(0x17d)]&&!_0x459a62)_0x2630ea[_0x3f5dae(0x15c)](_0x37928e['cssUrl']),_0x459a62=!![];else!_0x37928e['cssUrl']&&_0x2630ea[_0x3f5dae(0x15c)](_0x354610);continue;}_0x2630ea['push'](_0x354610);}return _0x37928e[_0x3f5dae(0x168)]&&!_0x41c4d5&&_0x2630ea['unshift'](_0x37928e[_0x3f5dae(0x168)]),_0x37928e['cssUrl']&&!_0x459a62&&_0x2630ea['push'](_0x37928e[_0x3f5dae(0x17d)]),_0x2630ea;}function isJsResource(_0x2e420c){const _0x475b02=a137_0xb78d;return stripQuery(_0x2e420c)['toLowerCase']()['endsWith'](_0x475b02(0x154));}function isCssResource(_0x364241){const _0x113068=a137_0xb78d;return stripQuery(_0x364241)[_0x113068(0x14c)]()[_0x113068(0x157)](_0x113068(0x182));}function stripQuery(_0x3b4f70){const _0x23489b=a137_0xb78d;return _0x3b4f70[_0x23489b(0x16d)]('?')[0x0]??_0x3b4f70;}function parseUpdateParamsFlag(_0x5a0454){const _0x50d4af=a137_0xb78d;if(!_0x5a0454||typeof _0x5a0454!==_0x50d4af(0x147))return{};try{const _0x3e1514=JSON[_0x50d4af(0x161)](_0x5a0454);if(typeof _0x3e1514!==_0x50d4af(0x164)||_0x3e1514===null||Array[_0x50d4af(0x15a)](_0x3e1514))return{};return{'jsUrl':typeof _0x3e1514['jsUrl']==='string'?_0x3e1514[_0x50d4af(0x168)][_0x50d4af(0x150)]():undefined,'cssUrl':typeof _0x3e1514[_0x50d4af(0x17d)]===_0x50d4af(0x147)?_0x3e1514[_0x50d4af(0x17d)]['trim']():undefined};}catch{return{};}}
|
|
1
|
+
(function(_0x433259,_0x3ee0df){const _0x129da2=a150_0x5ae3,_0x3e32de=_0x433259();while(!![]){try{const _0x78cbd1=parseInt(_0x129da2(0x191))/0x1+-parseInt(_0x129da2(0x194))/0x2*(parseInt(_0x129da2(0x15f))/0x3)+parseInt(_0x129da2(0x175))/0x4+parseInt(_0x129da2(0x15b))/0x5+parseInt(_0x129da2(0x18e))/0x6*(-parseInt(_0x129da2(0x151))/0x7)+-parseInt(_0x129da2(0x189))/0x8*(-parseInt(_0x129da2(0x171))/0x9)+parseInt(_0x129da2(0x182))/0xa;if(_0x78cbd1===_0x3ee0df)break;else _0x3e32de['push'](_0x3e32de['shift']());}catch(_0x2e07f1){_0x3e32de['push'](_0x3e32de['shift']());}}}(a150_0x575d,0x27616));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 validateParams(_0x51f5a0){const _0x1dfd55=a150_0x5ae3,_0x2e0404=[];return _0x51f5a0['jsUrl']&&!isValidJsHttpsUrl(_0x51f5a0[_0x1dfd55(0x178)])&&_0x2e0404[_0x1dfd55(0x15c)]({'field':'jsUrl','message':_0x1dfd55(0x188)}),_0x51f5a0[_0x1dfd55(0x180)]&&!isValidCssHttpsUrl(_0x51f5a0[_0x1dfd55(0x180)])&&_0x2e0404[_0x1dfd55(0x15c)]({'field':_0x1dfd55(0x180),'message':_0x1dfd55(0x16a)}),_0x2e0404;}export async function runMenuUpdateCore(_0x1bdfac,_0x4f26c9,_0x277279,_0x4e4eee={}){const _0xad8db8=a150_0x5ae3,_0x3c750f=parseUpdateParamsFlag(_0x277279),_0x1fcd65=normalizeMode(_0x4e4eee[_0xad8db8(0x183)]);validateSelection(_0x4e4eee[_0xad8db8(0x16c)]);const _0x57a394=[];if(_0x3c750f[_0xad8db8(0x178)])_0x57a394['push'](_0x3c750f[_0xad8db8(0x178)]);if(_0x3c750f['cssUrl'])_0x57a394['push'](_0x3c750f['cssUrl']);const _0x44a51e=validateParams(_0x3c750f);if(_0x44a51e['length']>0x0){const _0x477086=_0x44a51e['map'](_0xad21ba=>_0xad8db8(0x16f)+_0xad21ba[_0xad8db8(0x190)]+':\x20'+_0xad21ba[_0xad8db8(0x169)])['join'](';\x20');throw new Error(_0xad8db8(0x174)+_0x477086);}if(_0x57a394[_0xad8db8(0x15e)]===0x0)throw new Error(_0xad8db8(0x157)+_0xad8db8(0x168));logger[_0xad8db8(0x170)](process[_0xad8db8(0x18b)]()),logger[_0xad8db8(0x18f)](_0xad8db8(0x186),'Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0x1bdfac,'jsUrl':_0x3c750f[_0xad8db8(0x178)],'cssUrl':_0x3c750f['cssUrl'],'mode':_0x1fcd65,'dryRun':_0x4e4eee['dryRun']===!![]});if(_0x3c750f['jsUrl']){const _0x499c54=await isUrlReachable(_0x3c750f[_0xad8db8(0x178)]);if(!_0x499c54)throw new Error(_0xad8db8(0x192)+_0x3c750f[_0xad8db8(0x178)]);}if(_0x3c750f['cssUrl']){const _0x3d4917=await isUrlReachable(_0x3c750f['cssUrl']);if(!_0x3d4917)throw new Error(_0xad8db8(0x17b)+_0x3c750f[_0xad8db8(0x180)]);}const _0x3b64c0=await getOnlineMenuList(_0x1bdfac,_0x4f26c9),_0x24a46f=_0x3b64c0[_0xad8db8(0x173)](_0x18b54e=>_0x18b54e[_0xad8db8(0x176)]['length']>0x0),_0x3f8cf3=selectMenusForUpdate(_0x24a46f,_0x4e4eee[_0xad8db8(0x16c)]);if(_0x3f8cf3['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4e4eee[_0xad8db8(0x17a)]===!![]};const _0x49ca2b=_0x3f8cf3[_0xad8db8(0x167)](_0x4da9b2=>buildMenuUpdateDiff(_0x4da9b2,_0x3c750f,_0x1fcd65,_0x4e4eee[_0xad8db8(0x17d)]===!![],_0x4e4eee[_0xad8db8(0x17e)]));if(_0x4e4eee[_0xad8db8(0x17a)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x49ca2b};const _0x19d4b9=await Promise[_0xad8db8(0x17f)](_0x3f8cf3['map']((_0x2f45b5,_0x10e2a6)=>updateMenuCdnUrl(_0x1bdfac,_0x4f26c9,{'id':_0x2f45b5['id'],'label':_0x2f45b5[_0xad8db8(0x185)],'path':_0x2f45b5[_0xad8db8(0x161)],'resources':_0x49ca2b[_0x10e2a6][_0xad8db8(0x150)][_0xad8db8(0x176)],'extend':_0x2f45b5[_0xad8db8(0x18a)]??null,'loadScriptMode':_0x4e4eee[_0xad8db8(0x17e)]}))),_0x2e6837=_0x19d4b9[_0xad8db8(0x173)](_0x48bbad=>_0x48bbad['status']===_0xad8db8(0x163))['map'](_0x6d5dd=>_0x6d5dd['value']),_0x4426cb=_0x19d4b9[_0xad8db8(0x173)](_0x2fe964=>_0x2fe964[_0xad8db8(0x197)]===_0xad8db8(0x16d))[_0xad8db8(0x15e)];return logger[_0xad8db8(0x18f)](_0xad8db8(0x186),_0xad8db8(0x17c),{'count':_0x3f8cf3[_0xad8db8(0x15e)],'resources':_0x57a394}),{'updated':_0x2e6837['length'],'failed':_0x4426cb,'skipped':![],'menus':_0x2e6837};}function a150_0x5ae3(_0x40c4ea,_0x1aa121){_0x40c4ea=_0x40c4ea-0x14f;const _0x575de1=a150_0x575d();let _0x5ae3af=_0x575de1[_0x40c4ea];return _0x5ae3af;}function validateSelection(_0x81dbeb){const _0x1cd4c9=a150_0x5ae3;if(!_0x81dbeb)throw new Error(_0x1cd4c9(0x18d));if(_0x81dbeb[_0x1cd4c9(0x160)]&&(_0x81dbeb[_0x1cd4c9(0x15a)][_0x1cd4c9(0x15e)]>0x0||_0x81dbeb[_0x1cd4c9(0x166)][_0x1cd4c9(0x15e)]>0x0))throw new Error(_0x1cd4c9(0x193));if(!_0x81dbeb['all']&&_0x81dbeb['menuIds'][_0x1cd4c9(0x15e)]===0x0&&_0x81dbeb[_0x1cd4c9(0x166)][_0x1cd4c9(0x15e)]===0x0)throw new Error(_0x1cd4c9(0x18d));}export function selectMenusForUpdate(_0x6e810e,_0x3ecc4e){const _0x5ecbc7=a150_0x5ae3;validateSelection(_0x3ecc4e);if(_0x3ecc4e[_0x5ecbc7(0x160)])return _0x6e810e;const _0x41317b=new Set(_0x6e810e[_0x5ecbc7(0x167)](_0x311807=>_0x311807['id'])),_0x2278a7=new Set(_0x6e810e[_0x5ecbc7(0x167)](_0x3151c8=>_0x3151c8[_0x5ecbc7(0x161)])),_0x244312=_0x3ecc4e[_0x5ecbc7(0x15a)][_0x5ecbc7(0x173)](_0x42444b=>!_0x41317b[_0x5ecbc7(0x18c)](_0x42444b)),_0x2b2c70=_0x3ecc4e[_0x5ecbc7(0x166)][_0x5ecbc7(0x173)](_0x2c1960=>!_0x2278a7['has'](_0x2c1960));if(_0x244312['length']>0x0||_0x2b2c70[_0x5ecbc7(0x15e)]>0x0){const _0x5710fe=[..._0x244312[_0x5ecbc7(0x167)](_0x3e788f=>String(_0x3e788f)),..._0x2b2c70][_0x5ecbc7(0x162)](',\x20');throw new Error(_0x5ecbc7(0x159)+_0x5710fe);}const _0x2863d0=new Set(_0x3ecc4e['menuIds']),_0x35ee4d=new Set(_0x3ecc4e[_0x5ecbc7(0x166)]);return _0x6e810e[_0x5ecbc7(0x173)](_0x5bdd44=>_0x2863d0[_0x5ecbc7(0x18c)](_0x5bdd44['id'])||_0x35ee4d[_0x5ecbc7(0x18c)](_0x5bdd44[_0x5ecbc7(0x161)]));}function a150_0x575d(){const _0x4d5733=['.js','isArray','after','1804201wfcqez','patch','.css','menu\x20asset-update\x20cannot\x20patch\x20','split','some','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','string','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','menuIds','35180BQUOBk','push','Invalid\x20--mode:\x20','length','173067RUVYET','all','path','join','fulfilled','\x20existing\x20JS\x20resources\x20for\x20\x22','toLowerCase','paths','map','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','message','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x22\x20(','selection','rejected','endsWith','--params.','setLogPath','288syectC','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','filter','Invalid\x20--params:\x20','152760cyXzDR','resources','unshift','jsUrl','parse','dryRun','CSS\x20URL\x20is\x20unreachable:\x20','Menu\x20asset\x20update\x20completed','force','loadScriptMode','allSettled','cssUrl','replace','2142540VfgXtc','mode','trim','label','menu-asset-update','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','71752cgBCFq','extend','cwd','has','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','6GqawgI','info','field','161002jAziqS','JS\x20URL\x20is\x20unreachable:\x20','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','10Ieirmt',').\x20','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','status'];a150_0x575d=function(){return _0x4d5733;};return a150_0x575d();}function normalizeMode(_0x13ac86){const _0x52447a=a150_0x5ae3;if(!_0x13ac86)return _0x52447a(0x152);if(_0x13ac86===_0x52447a(0x181)||_0x13ac86===_0x52447a(0x152))return _0x13ac86;throw new Error(_0x52447a(0x15d)+_0x13ac86+'.\x20Allowed\x20values:\x20replace,\x20patch');}function buildMenuUpdateDiff(_0x579b52,_0x586c30,_0x460dca,_0xaca9f0,_0x3c61f0){const _0xfe6d79=a150_0x5ae3,_0x497b87=[..._0x579b52['resources']];_0x460dca===_0xfe6d79(0x152)&&assertUnambiguousPatchResources(_0x579b52,_0x497b87,_0x586c30);const _0x6ab3f=_0x460dca==='patch'?patchResources(_0x497b87,_0x586c30):replaceResources(_0x586c30),_0x429f74=[],_0x3bd18c=_0x497b87[_0xfe6d79(0x156)](isJsResource),_0x30b09a=_0x6ab3f['some'](isJsResource);if(_0x3bd18c&&!_0x30b09a){const _0x4ce589='menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x579b52[_0xfe6d79(0x185)]+_0xfe6d79(0x16b)+_0x579b52[_0xfe6d79(0x161)]+_0xfe6d79(0x195)+_0xfe6d79(0x196);if(!_0xaca9f0)throw new Error(_0x4ce589);_0x429f74['push'](_0x4ce589);}const _0x4c8d79=_0x497b87[_0xfe6d79(0x156)](isCssResource),_0xad7be7=_0x6ab3f['some'](isCssResource);_0x4c8d79&&!_0xad7be7&&_0x429f74['push'](_0xfe6d79(0x172)+_0x579b52[_0xfe6d79(0x185)]+'\x22\x20('+_0x579b52[_0xfe6d79(0x161)]+').');const _0x31f06b=typeof _0x579b52[_0xfe6d79(0x18a)]?.[_0xfe6d79(0x17e)]===_0xfe6d79(0x158)?_0x579b52[_0xfe6d79(0x18a)][_0xfe6d79(0x17e)]:null,_0x474b19=_0x3c61f0?{'loadScriptMode':_0x31f06b}:{},_0x5a6e4c=_0x3c61f0?{'loadScriptMode':_0x3c61f0}:{};return{'id':_0x579b52['id'],'label':_0x579b52[_0xfe6d79(0x185)],'path':_0x579b52['path'],'mode':_0x460dca,'before':{'resources':_0x497b87,..._0x474b19},'after':{'resources':_0x6ab3f,..._0x5a6e4c},'warnings':_0x429f74};}function replaceResources(_0x95f24b){const _0x51d5f1=a150_0x5ae3;return[_0x95f24b[_0x51d5f1(0x178)],_0x95f24b[_0x51d5f1(0x180)]][_0x51d5f1(0x173)](_0x180192=>!!_0x180192);}function assertUnambiguousPatchResources(_0x38ab6c,_0x55534d,_0x36350a){const _0x596d2c=a150_0x5ae3,_0x24941f=_0x55534d[_0x596d2c(0x173)](isJsResource)[_0x596d2c(0x15e)];if(_0x36350a[_0x596d2c(0x178)]&&_0x24941f>0x1)throw new Error(_0x596d2c(0x154)+_0x24941f+_0x596d2c(0x164)+_0x38ab6c[_0x596d2c(0x185)]+'\x22\x20('+_0x38ab6c[_0x596d2c(0x161)]+')\x20'+_0x596d2c(0x187));const _0x2506d0=_0x55534d['filter'](isCssResource)[_0x596d2c(0x15e)];if(_0x36350a[_0x596d2c(0x180)]&&_0x2506d0>0x1)throw new Error(_0x596d2c(0x154)+_0x2506d0+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x38ab6c[_0x596d2c(0x185)]+_0x596d2c(0x16b)+_0x38ab6c[_0x596d2c(0x161)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x3e2c34,_0x5b5804){const _0x383e2d=a150_0x5ae3;let _0x55631c=![],_0x27981e=![];const _0x5bffa5=[];for(const _0x2fc348 of _0x3e2c34){if(isJsResource(_0x2fc348)){if(_0x5b5804['jsUrl']&&!_0x55631c)_0x5bffa5[_0x383e2d(0x15c)](_0x5b5804['jsUrl']),_0x55631c=!![];else!_0x5b5804[_0x383e2d(0x178)]&&_0x5bffa5['push'](_0x2fc348);continue;}if(isCssResource(_0x2fc348)){if(_0x5b5804[_0x383e2d(0x180)]&&!_0x27981e)_0x5bffa5[_0x383e2d(0x15c)](_0x5b5804[_0x383e2d(0x180)]),_0x27981e=!![];else!_0x5b5804['cssUrl']&&_0x5bffa5['push'](_0x2fc348);continue;}_0x5bffa5['push'](_0x2fc348);}return _0x5b5804[_0x383e2d(0x178)]&&!_0x55631c&&_0x5bffa5[_0x383e2d(0x177)](_0x5b5804[_0x383e2d(0x178)]),_0x5b5804['cssUrl']&&!_0x27981e&&_0x5bffa5['push'](_0x5b5804[_0x383e2d(0x180)]),_0x5bffa5;}function isJsResource(_0xff0659){const _0x3185bc=a150_0x5ae3;return stripQuery(_0xff0659)['toLowerCase']()[_0x3185bc(0x16e)](_0x3185bc(0x198));}function isCssResource(_0x3f8423){const _0xf9f87e=a150_0x5ae3;return stripQuery(_0x3f8423)[_0xf9f87e(0x165)]()['endsWith'](_0xf9f87e(0x153));}function stripQuery(_0x345bb4){const _0x6672e=a150_0x5ae3;return _0x345bb4[_0x6672e(0x155)]('?')[0x0]??_0x345bb4;}function parseUpdateParamsFlag(_0x85cd25){const _0x505f58=a150_0x5ae3;if(!_0x85cd25||typeof _0x85cd25!=='string')return{};try{const _0x11c74a=JSON[_0x505f58(0x179)](_0x85cd25);if(typeof _0x11c74a!=='object'||_0x11c74a===null||Array[_0x505f58(0x14f)](_0x11c74a))return{};return{'jsUrl':typeof _0x11c74a[_0x505f58(0x178)]===_0x505f58(0x158)?_0x11c74a[_0x505f58(0x178)]['trim']():undefined,'cssUrl':typeof _0x11c74a[_0x505f58(0x180)]===_0x505f58(0x158)?_0x11c74a['cssUrl'][_0x505f58(0x184)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ef939,_0x26a28f){const _0x54ea98=a151_0x6223,_0x3e07b0=_0x5ef939();while(!![]){try{const _0x3d4388=-parseInt(_0x54ea98(0xdc))/0x1+parseInt(_0x54ea98(0xdf))/0x2+parseInt(_0x54ea98(0xdb))/0x3*(-parseInt(_0x54ea98(0xdd))/0x4)+-parseInt(_0x54ea98(0xe3))/0x5+parseInt(_0x54ea98(0xe2))/0x6*(-parseInt(_0x54ea98(0xde))/0x7)+-parseInt(_0x54ea98(0xe4))/0x8+-parseInt(_0x54ea98(0xda))/0x9*(-parseInt(_0x54ea98(0xe1))/0xa);if(_0x3d4388===_0x26a28f)break;else _0x3e07b0['push'](_0x3e07b0['shift']());}catch(_0x4da6c4){_0x3e07b0['push'](_0x3e07b0['shift']());}}}(a151_0x2810,0xa9715));export function isValidJsHttpsUrl(_0x2427c1){const _0x113af1=a151_0x6223;return/^https:\/\/.+\.js(\?.*)?$/[_0x113af1(0xe0)](_0x2427c1['trim']());}function a151_0x2810(){const _0x22d1fd=['4183300QilJek','3557264PaovFt','trim','134271EoyPZp','608703qLNPKd','863192pHBDRo','4XhxowI','380121JcWapE','661872lqYeoR','test','2290cAAeKt','78SKDptX'];a151_0x2810=function(){return _0x22d1fd;};return a151_0x2810();}function a151_0x6223(_0xf6a079,_0x5e39e1){_0xf6a079=_0xf6a079-0xd9;const _0x28108f=a151_0x2810();let _0x622330=_0x28108f[_0xf6a079];return _0x622330;}export function isValidCssHttpsUrl(_0x5bd428){const _0x537672=a151_0x6223;return/^https:\/\/.+\.css(\?.*)?$/['test'](_0x5bd428[_0x537672(0xd9)]());}export async function isUrlReachable(_0xb20adc){try{const _0x11efe3=await fetch(_0xb20adc,{'method':'HEAD'});return _0x11efe3['ok'];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a152_0x25c5(_0x5eb9aa,_0x4540e5){_0x5eb9aa=_0x5eb9aa-0xbd;const _0x1be284=a152_0x1be2();let _0x25c50a=_0x1be284[_0x5eb9aa];return _0x25c50a;}const a152_0x10dcff=a152_0x25c5;function a152_0x1be2(){const _0x59b1fa=['message','skipped','selectedAppName','Menu\x20sync\x20skipped','jsUrl','\x20created.','failed','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','validation','8XFQHmJ','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','\x20\x20Continue\x20with\x20creation?','cyan','params','\x20failed.','yes','length','Creating\x20','created','sync','3273372AdWZXB','trim','28415898eRSIHk','916114HZSmMA','Pre-fill\x20JS/CSS\x20URLs.\x20','map','\x20\x20✓\x20Selected:\x20','onlineMenuList','str','cookie','\x20page(s)','appCode','\x20menu(s)\x20with\x20JS:\x20','menu','Sync\x20local\x20pages\x20as\x20platform\x20menus','appcode','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','flag','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','yellow','\x20\x20Cancelled.','36364QTguEY','1607290ZrPIvW','Menu\x20sync\x20completed:\x20','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','\x20local\x20microfrontend\x20menu(s).','Online\x20menu\x20list\x20fetched','size','paths','boolean','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','123uMluAG','localPages','\x20\x20Create\x20','7992495YPoJNW','✓\x20Menu\x20sync\x20completed:\x20','rawFlags','Menu\x20creation\x20failed','Would\x20create\x20','cssUrl','2571445eyyDvL','write','POST','filter','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.'];a152_0x1be2=function(){return _0x59b1fa;};return a152_0x1be2();}(function(_0x3bdab1,_0x5a869f){const _0x21ff91=a152_0x25c5,_0x4cc6c7=_0x3bdab1();while(!![]){try{const _0x4f78d9=parseInt(_0x21ff91(0xea))/0x1+-parseInt(_0x21ff91(0xff))/0x2+-parseInt(_0x21ff91(0xc4))/0x3*(parseInt(_0x21ff91(0xfe))/0x4)+-parseInt(_0x21ff91(0xcd))/0x5+-parseInt(_0x21ff91(0xe7))/0x6+-parseInt(_0x21ff91(0xc7))/0x7+-parseInt(_0x21ff91(0xdb))/0x8*(-parseInt(_0x21ff91(0xe9))/0x9);if(_0x4f78d9===_0x5a869f)break;else _0x4cc6c7['push'](_0x4cc6c7['shift']());}catch(_0x57c4aa){_0x4cc6c7['push'](_0x4cc6c7['shift']());}}}(a152_0x1be2,0xa9c80));import a152_0x4a1603 from'chalk';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';export const menuSync={'service':a152_0x10dcff(0xf4),'command':a152_0x10dcff(0xe6),'description':a152_0x10dcff(0xf5),'risk':a152_0x10dcff(0xce),'flags':[{'name':a152_0x10dcff(0xe0),'type':'string','description':a152_0x10dcff(0xeb)+a152_0x10dcff(0xc3)},{'name':a152_0x10dcff(0xc1),'type':'string','description':a152_0x10dcff(0xbd)},{'name':a152_0x10dcff(0xe2),'type':a152_0x10dcff(0xc2),'description':'Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages'}],async 'dryRun'(_0x13071a){const _0x53e354=a152_0x10dcff;ensureRunnableContext(_0x13071a['rawFlags'],_0x13071a[_0x53e354(0xd4)]);const _0x2c0a53=await runMenuSyncCore(_0x13071a[_0x53e354(0xf2)],_0x13071a[_0x53e354(0xf0)],parsePaths(_0x13071a[_0x53e354(0xef)](_0x53e354(0xc1))),_0x13071a['str']('params'),{'dryRun':!![]});return{'method':_0x53e354(0xcf),'url':'/smartapi/menu/create','body':_0x2c0a53,'description':_0x2c0a53['skipped']?_0x53e354(0xf9):_0x53e354(0xcb)+_0x2c0a53['targetPages']['length']+_0x53e354(0xbe)};},async 'execute'(_0x48c3e1){const _0x4c6d50=a152_0x10dcff;ensureRunnableContext(_0x48c3e1[_0x4c6d50(0xc9)],_0x48c3e1[_0x4c6d50(0xd4)]);const _0x3cc6f9=_0x48c3e1[_0x4c6d50(0xfa)](_0x4c6d50(0xe2)),_0xc89caf=_0x48c3e1['str'](_0x4c6d50(0xe0)),_0x18b5b6=parsePaths(_0x48c3e1['str']('paths')),_0x491613=parseMenuSyncParams(_0xc89caf);if(_0x3cc6f9){const _0x337ff7=await runMenuSyncCore(_0x48c3e1[_0x4c6d50(0xf2)],_0x48c3e1[_0x4c6d50(0xf0)],_0x18b5b6,_0xc89caf);if(_0x337ff7['skipped']){const _0x2fa760=getLocalPages();_0x2fa760[_0x4c6d50(0xe3)]===0x0?writeCliSideChannelLine(_0x4c6d50(0xdd)):writeCliSideChannelLine(_0x4c6d50(0xd9));}else writeCliSideChannelLine(_0x4c6d50(0xc8)+_0x337ff7['created']+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x337ff7,'message':_0x337ff7[_0x4c6d50(0xd3)]?_0x4c6d50(0xd5):'Menu\x20sync\x20completed:\x20'+_0x337ff7['created']+_0x4c6d50(0xd7)};}if(_0x18b5b6[_0x4c6d50(0xe3)]>0x0)throw CliErrors[_0x4c6d50(0xda)]('menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.',_0x4c6d50(0xf7));if(!isInteractive()&&_0xc89caf)throw CliErrors[_0x4c6d50(0xda)](_0x4c6d50(0xfb),_0x4c6d50(0xf7));requireInteractive();const _0x38c301=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x251f9b,_0x5d4b45,_0x42bc88;try{const _0x11bba8=await fetchMenuData(_0x48c3e1[_0x4c6d50(0xf2)],_0x48c3e1[_0x4c6d50(0xf0)]);_0x251f9b=_0x11bba8[_0x4c6d50(0xc5)],_0x5d4b45=_0x11bba8['onlinePaths'],_0x42bc88=_0x11bba8[_0x4c6d50(0xee)],stopSpinner(_0x38c301,_0x4c6d50(0xbf),!![]);}catch(_0x4a33d6){stopSpinner(_0x38c301,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x4c6d50(0xda)](_0x4a33d6 instanceof Error?_0x4a33d6[_0x4c6d50(0xd2)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}if(_0x251f9b['length']===0x0)return writeCliSideChannelLine(a152_0x4a1603[_0x4c6d50(0xfc)](_0x4c6d50(0xf8))),{'ok':!![]};const _0x2d2b45=buildCompareRows(_0x251f9b,_0x5d4b45);writeCliSideChannelLine(renderCompareTable(_0x2d2b45)),writeCliSideChannelLine('');const _0x17881e=await selectPages(_0x251f9b,_0x5d4b45);writeCliSideChannelLine(''),writeCliSideChannelLine(a152_0x4a1603[_0x4c6d50(0xdf)](_0x4c6d50(0xed)+_0x17881e[_0x4c6d50(0xe3)]+_0x4c6d50(0xf1)));const _0xfc20f5=_0x491613[_0x4c6d50(0xd6)]&&_0x491613[_0x4c6d50(0xcc)];if(!_0xfc20f5){writeCliSideChannelLine(renderSyncSummary(_0x17881e,_0x5d4b45[_0x4c6d50(0xc0)]>0x0));const _0x2d1bfb=await askConfirm(_0x4c6d50(0xde));if(!_0x2d1bfb)return writeCliSideChannelLine(a152_0x4a1603['gray'](_0x4c6d50(0xfd))),{'ok':!![]};}let _0x1163d6=_0x491613[_0x4c6d50(0xd6)],_0x2d6fc6=_0x491613['cssUrl'];!_0x1163d6&&(_0x1163d6=await askJsUrl());!_0x2d6fc6&&(_0x2d6fc6=await askCssUrl());const _0x27742d=await askConfirm(_0x4c6d50(0xc6)+_0x17881e[_0x4c6d50(0xe3)]+_0x4c6d50(0xf3)+_0x1163d6+'\x20and\x20CSS:\x20'+_0x2d6fc6+'?');if(!_0x27742d)return writeCliSideChannelLine(a152_0x4a1603['gray']('\x20\x20Cancelled.')),{'ok':!![]};const _0x588579=[_0x1163d6,_0x2d6fc6],_0x14d3ff=startSpinner(_0x4c6d50(0xe4)+_0x17881e[_0x4c6d50(0xe3)]+'\x20menu(s)...');try{const _0x426c71=await doCreateMenus(_0x48c3e1[_0x4c6d50(0xf2)],_0x48c3e1['cookie'],_0x17881e,_0x588579);return stopSpinner(_0x14d3ff,'Created\x20'+_0x426c71[_0x4c6d50(0xe5)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x426c71,'message':_0x4c6d50(0x100)+_0x426c71[_0x4c6d50(0xe5)]+'\x20created,\x20'+_0x426c71[_0x4c6d50(0xd8)]+_0x4c6d50(0xe1)};}catch(_0x44720a){stopSpinner(_0x14d3ff,_0x4c6d50(0xca),![]);throw CliErrors[_0x4c6d50(0xda)](_0x44720a instanceof Error?_0x44720a[_0x4c6d50(0xd2)]:_0x4c6d50(0xca));}}};function ensureRunnableContext(_0x450ccd,_0x1735d0){const _0x56acc0=a152_0x10dcff,_0x9a2704=_0x450ccd['appcode']?String(_0x450ccd[_0x56acc0(0xf6)])[_0x56acc0(0xe8)]():'';if(!isInProject()&&!_0x1735d0&&!_0x9a2704)throw CliErrors['validation'](_0x56acc0(0xdc)+_0x56acc0(0xd1));}function parsePaths(_0x438666){const _0x1c6711=a152_0x10dcff;return[...new Set(_0x438666['split'](',')[_0x1c6711(0xec)](_0x2161fa=>_0x2161fa[_0x1c6711(0xe8)]())[_0x1c6711(0xd0)](Boolean))];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0x564b38=a140_0x1a27;(function(_0x2ca418,_0x2bef85){const _0x409a1f=a140_0x1a27,_0x1f2f78=_0x2ca418();while(!![]){try{const _0x42d06e=parseInt(_0x409a1f(0x1e4))/0x1+-parseInt(_0x409a1f(0x1e1))/0x2+-parseInt(_0x409a1f(0x21f))/0x3*(-parseInt(_0x409a1f(0x1ef))/0x4)+-parseInt(_0x409a1f(0x232))/0x5+-parseInt(_0x409a1f(0x1f3))/0x6+-parseInt(_0x409a1f(0x236))/0x7+-parseInt(_0x409a1f(0x1c2))/0x8*(-parseInt(_0x409a1f(0x1de))/0x9);if(_0x42d06e===_0x2bef85)break;else _0x1f2f78['push'](_0x1f2f78['shift']());}catch(_0x32e0db){_0x1f2f78['push'](_0x1f2f78['shift']());}}}(a140_0x358e,0x23c15));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':a140_0x564b38(0x1ce),'path':a140_0x564b38(0x1fb)}];export const menuVisibilityUpdate={'service':'menu','command':a140_0x564b38(0x209),'description':a140_0x564b38(0x1e7),'risk':a140_0x564b38(0x1f0),'structuredErrors':!![],'flags':[{'name':a140_0x564b38(0x21c),'type':a140_0x564b38(0x1f1),'description':a140_0x564b38(0x1d4)},{'name':'paths','type':a140_0x564b38(0x1f1),'description':a140_0x564b38(0x20f)},{'name':a140_0x564b38(0x1eb),'type':a140_0x564b38(0x22c),'required':!![],'description':a140_0x564b38(0x22b)},{'name':'expect-visible','type':a140_0x564b38(0x22c),'description':a140_0x564b38(0x1ee)},{'name':a140_0x564b38(0x1c4),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x304194){parseInput(_0x304194),requireExplicitYes(_0x304194);},async 'dryRun'(_0x202596){const _0x3ea5e3=a140_0x564b38,_0x5e32b8=await buildPlan(_0x202596,!![]),_0x5790c8=_0x5e32b8[_0x3ea5e3(0x216)][_0x3ea5e3(0x206)]?.[_0x3ea5e3(0x1d8)]??0x0,_0x5e855f=_0x5e32b8[_0x3ea5e3(0x216)][_0x3ea5e3(0x1d5)][_0x3ea5e3(0x1d8)]-_0x5790c8;return menuDryRunResult(_0x5e32b8[_0x3ea5e3(0x216)],{'method':_0x3ea5e3(0x1ce),'url':'/smartapi/menu/update','body':{'updates':_0x5e32b8[_0x3ea5e3(0x216)]['plannedActions']?.[_0x3ea5e3(0x204)](_0x489927=>_0x489927['body'])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x5790c8+_0x3ea5e3(0x1be)+_0x5e855f+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x4fb306){const _0x596fe2=a140_0x564b38;requireExplicitYes(_0x4fb306);const _0x295b8e=await buildPlan(_0x4fb306,![]);await recheckMutationSnapshot(_0x4fb306,_0x295b8e['plan'],_0x596fe2(0x1ed));const _0x2d3c9e=[],_0x3e64b5=[],_0x2a4ea5=[];for(const _0x3c2e2b of _0x295b8e[_0x596fe2(0x216)]['targets']){if(_0x3c2e2b[_0x596fe2(0x234)][_0x596fe2(0x1eb)]===_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]){_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x4fb306['appCode'],_0x4fb306['cookie'],{'id':_0x3c2e2b['id'],'visible':_0x295b8e['plan'][_0x596fe2(0x207)]}),_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'updated':!![],'skipped':![]});}catch(_0x2c988d){const _0xce0566=mapMenuApiError(_0x2c988d,_0x596fe2(0x1e6),_0x3c2e2b['id']);if(isMenuResponseLoss(_0x2c988d)&&_0xce0566[_0x596fe2(0x1d7)]!==_0x596fe2(0x22d)){_0x2a4ea5[_0x596fe2(0x1cb)](_0x3c2e2b['id']);continue;}_0x3e64b5[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'stage':_0x596fe2(0x1d6),'code':_0xce0566[_0x596fe2(0x1d7)],'message':_0xce0566['message']});}}let _0x4d5893;try{_0x4d5893=await fetchMenuSnapshot(_0x4fb306['appCode'],_0x4fb306[_0x596fe2(0x226)]);}catch(_0x1364eb){const _0x6956a7=describeMenuErrorCause(_0x1364eb,_0x596fe2(0x21b)),_0x1354b5=_0x2a4ea5['map'](_0x25b447=>({'id':_0x25b447,'stage':_0x596fe2(0x1c1),'code':_0x596fe2(0x1dc),'message':_0x596fe2(0x230)+_0x25b447+_0x596fe2(0x1fa),'requestedStateConfirmed':![],'recovered':![]})),_0x34d77f={'stage':'verification','code':_0x596fe2(0x1dc),'message':_0x596fe2(0x208),'targetIds':_0x295b8e['plan'][_0x596fe2(0x1d5)][_0x596fe2(0x204)](_0x2a9348=>_0x2a9348['id']),'requestedStateConfirmed':![],..._0x6956a7};throw menuFailure(asVerificationError(_0x1364eb,_0x596fe2(0x1c6)),_0x295b8e[_0x596fe2(0x216)],{'stage':_0x596fe2(0x1c3),'succeeded':_0x2d3c9e,'failedRecords':[..._0x3e64b5,..._0x1354b5,_0x34d77f],'warnings':[_0x596fe2(0x1f8)],'verification':{'status':_0x596fe2(0x20c),'recoveredCount':0x0,'lookupCommand':_0x596fe2(0x223)}});}const _0x599a1e=[];for(const _0x3038f2 of _0x2d3c9e){const _0x2e8136=Number(_0x3038f2['id']),_0x1d5813=_0x295b8e[_0x596fe2(0x224)][_0x596fe2(0x1f6)](_0x2e8136),_0x4f9735=_0x4d5893[_0x596fe2(0x1f7)][_0x596fe2(0x1f6)](_0x2e8136);try{verifyVisibilityUpdate(_0x1d5813,_0x4f9735,_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]);}catch(_0x21d7fb){const _0x4b8949=asVerificationError(_0x21d7fb,'Menu\x20'+_0x2e8136+_0x596fe2(0x217));_0x599a1e[_0x596fe2(0x1cb)]({'id':_0x2e8136,'stage':_0x596fe2(0x1c3),'code':_0x4b8949['code'],'message':_0x4b8949[_0x596fe2(0x1cc)],'requestedStateConfirmed':![]});}}for(const _0x30e42a of _0x2a4ea5){const _0x7437a7=_0x295b8e[_0x596fe2(0x224)][_0x596fe2(0x1f6)](_0x30e42a),_0x196255=_0x4d5893[_0x596fe2(0x1f7)][_0x596fe2(0x1f6)](_0x30e42a);try{verifyVisibilityUpdate(_0x7437a7,_0x196255,_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]),_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x30e42a,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x50df2){const _0x9397dc=asVerificationError(_0x50df2,_0x596fe2(0x1f5)+_0x30e42a+_0x596fe2(0x20b));_0x599a1e[_0x596fe2(0x1cb)]({'id':_0x30e42a,'stage':_0x596fe2(0x1c1),'code':_0x9397dc[_0x596fe2(0x1d7)],'message':_0x9397dc[_0x596fe2(0x1cc)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x599a1e[_0x596fe2(0x1d8)]>0x0){const _0x124c7e=_0x599a1e[_0x596fe2(0x204)](_0x11578d=>Number(_0x11578d['id'])),_0xd792b2=_0x2d3c9e[_0x596fe2(0x1bf)](_0x27b0b2=>_0x27b0b2[_0x596fe2(0x22e)]===!![])['length'],_0x5212e8=menuError(_0x596fe2(0x1dc),_0x596fe2(0x1da)+_0x124c7e[_0x596fe2(0x1ea)](',\x20')+'.',_0x596fe2(0x22f));throw menuFailure(_0x5212e8,_0x295b8e['plan'],{'stage':_0x596fe2(0x1c3),'succeeded':_0x2d3c9e,'failedRecords':[..._0x3e64b5,..._0x599a1e],'warnings':[_0x596fe2(0x222)],'verification':{'status':_0x596fe2(0x20c),..._0x124c7e[_0x596fe2(0x1d8)]===0x1?{'targetId':_0x124c7e[0x0]}:{'targetIds':_0x124c7e},'recoveredCount':_0xd792b2,'lookupCommand':_0x596fe2(0x223)}});}const _0x519438=_0x2d3c9e[_0x596fe2(0x1bf)](_0x45eb77=>_0x45eb77[_0x596fe2(0x1c9)]===!![])[_0x596fe2(0x1d8)],_0x1bc7f7=_0x2d3c9e[_0x596fe2(0x1d8)]-_0x519438,_0x16a356={..._0x295b8e[_0x596fe2(0x216)],'succeeded':_0x2d3c9e,'failed':_0x3e64b5,'warnings':_0x3e64b5[_0x596fe2(0x1d8)]>0x0?[..._0x295b8e['plan'][_0x596fe2(0x1ca)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x295b8e['plan']['warnings'],'verification':{'checkedBy':_0x596fe2(0x20e),'snapshotHash':_0x4d5893[_0x596fe2(0x22a)],'matchesRequestedState':_0x3e64b5[_0x596fe2(0x1d8)]===0x0,'recoveredCount':_0x2a4ea5[_0x596fe2(0x1d8)]}};return{'ok':_0x3e64b5[_0x596fe2(0x1d8)]===0x0,'data':_0x16a356,'message':_0x3e64b5[_0x596fe2(0x1d8)]===0x0?_0x596fe2(0x227)+_0x519438+_0x596fe2(0x1fd)+_0x1bc7f7+'\x20unchanged\x20menu(s).':_0x596fe2(0x1e0)+_0x519438+_0x596fe2(0x221)+_0x1bc7f7+_0x596fe2(0x21a)+_0x3e64b5[_0x596fe2(0x1d8)]+_0x596fe2(0x1ff)};}};function parseInput(_0x50cfa0){const _0x46e9f0=a140_0x564b38,_0x3f6d5a=parseMenuIds(_0x50cfa0['str'](_0x46e9f0(0x21c))),_0x5870e6=parseCsv(_0x50cfa0[_0x46e9f0(0x1d0)](_0x46e9f0(0x1f2)));if(_0x3f6d5a[_0x46e9f0(0x1d8)]===0x0&&_0x5870e6[_0x46e9f0(0x1d8)]===0x0)throw CliErrors[_0x46e9f0(0x21e)](_0x46e9f0(0x21d));const _0x24612b=parseBooleanFlag(_0x50cfa0,_0x46e9f0(0x1eb),!![]),_0x709b6b=parseBooleanFlag(_0x50cfa0,_0x46e9f0(0x1bc),![]);let _0x514da4;if(hasFlag(_0x50cfa0,_0x46e9f0(0x1c4))){_0x514da4=_0x50cfa0['num'](_0x46e9f0(0x1c4));if(!Number['isSafeInteger'](_0x514da4)||_0x514da4<0x0)throw CliErrors['validation'](_0x46e9f0(0x225));}return{'menuIds':_0x3f6d5a,'paths':_0x5870e6,'visible':_0x24612b,'expectVisible':_0x709b6b,'expectedCount':_0x514da4};}async function buildPlan(_0x49802f,_0x2c1725){const _0x524806=a140_0x564b38,_0x149b42=parseInput(_0x49802f),_0x50b05c=await fetchMutationSnapshot(_0x49802f,_0x524806(0x1ed)),_0x4d5128=selectTargets(_0x50b05c[_0x524806(0x1e5)],_0x149b42['menuIds'],_0x149b42[_0x524806(0x1f2)]);if(_0x149b42[_0x524806(0x1ec)]!==undefined&&_0x4d5128[_0x524806(0x1d8)]!==_0x149b42[_0x524806(0x1ec)])throw menuError(_0x524806(0x1bd),_0x524806(0x210)+_0x4d5128[_0x524806(0x1d8)]+'\x20menu(s),\x20expected\x20'+_0x149b42[_0x524806(0x1ec)]+'.',_0x524806(0x1c7));if(_0x149b42['expectVisible']!==undefined){const _0x59a9a4=_0x4d5128[_0x524806(0x1bf)](_0x5e455d=>_0x5e455d[_0x524806(0x1eb)]!==_0x149b42[_0x524806(0x201)]);if(_0x59a9a4[_0x524806(0x1d8)]>0x0)throw menuError('menu_state_drift',_0x524806(0x233)+_0x59a9a4[_0x524806(0x204)](_0x152a93=>_0x152a93['id'])[_0x524806(0x1ea)](',\x20')+'.',_0x524806(0x1e8));}const _0x4a1ac4=_0x4d5128[_0x524806(0x204)](_0x4a134a=>({'id':_0x4a134a['id'],'label':_0x4a134a[_0x524806(0x1d2)],'path':_0x4a134a[_0x524806(0x237)],'before':{'visible':_0x4a134a[_0x524806(0x1eb)]},'after':{'visible':_0x149b42[_0x524806(0x1eb)]}})),_0x309fe0=_0x4a1ac4[_0x524806(0x1bf)](_0x13e343=>_0x13e343['before'][_0x524806(0x1eb)]!==_0x149b42[_0x524806(0x1eb)])['map'](_0x1b5b7c=>({'stage':_0x524806(0x231),'method':'POST','path':_0x524806(0x1fb),'body':{'appCode':_0x49802f[_0x524806(0x215)],'id':_0x1b5b7c['id'],'visible':_0x149b42[_0x524806(0x1eb)]}})),_0x31cbe1=mutationResult({'operation':_0x524806(0x209),'selector':{'menuIds':_0x149b42[_0x524806(0x212)],'paths':_0x149b42[_0x524806(0x1f2)]},'before':{'menus':_0x4d5128[_0x524806(0x204)](_0x163325=>({'id':_0x163325['id'],'path':_0x163325[_0x524806(0x237)],'visible':_0x163325[_0x524806(0x1eb)]}))},'after':{'menus':_0x4d5128[_0x524806(0x204)](_0x2188e3=>({'id':_0x2188e3['id'],'path':_0x2188e3[_0x524806(0x237)],'visible':_0x149b42[_0x524806(0x1eb)]}))},'dryRun':_0x2c1725,'backend':[...BACKEND],'plannedActions':_0x309fe0,'snapshotHash':_0x50b05c[_0x524806(0x22a)],'warnings':_0x309fe0['length']===0x0?[_0x524806(0x1df)]:[]});return{'plan':{..._0x31cbe1,'requestedVisible':_0x149b42['visible'],'targets':_0x4a1ac4},'beforeById':new Map(_0x4d5128[_0x524806(0x204)](_0x91efb5=>[_0x91efb5['id'],_0x91efb5]))};}function selectTargets(_0x316522,_0x336815,_0xa205b3){const _0x2b670d=a140_0x564b38,_0x5bf3d6=new Map(_0x316522[_0x2b670d(0x204)](_0x5f3419=>[_0x5f3419['id'],_0x5f3419])),_0x3bff6c=new Map(),_0x1aad63=_0x336815[_0x2b670d(0x1bf)](_0x26dd6c=>!_0x5bf3d6['has'](_0x26dd6c));if(_0x1aad63[_0x2b670d(0x1d8)]>0x0)throw menuError(_0x2b670d(0x218),_0x2b670d(0x229)+_0x1aad63[_0x2b670d(0x1ea)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0xe53b10 of _0x336815){_0x3bff6c[_0x2b670d(0x1c0)](_0xe53b10,_0x5bf3d6['get'](_0xe53b10));}for(const _0x5d332f of _0xa205b3){const _0x43a684=_0x316522['filter'](_0x4e2690=>_0x4e2690[_0x2b670d(0x237)]===_0x5d332f);if(_0x43a684[_0x2b670d(0x1d8)]===0x0)throw menuError('menu_selector_not_found',_0x2b670d(0x205)+JSON['stringify'](_0x5d332f)+'.',_0x2b670d(0x1db));if(_0x43a684['length']>0x1)throw menuError(_0x2b670d(0x200),_0x2b670d(0x1fc)+JSON[_0x2b670d(0x214)](_0x5d332f)+'.',_0x2b670d(0x1c5)+_0x43a684['map'](_0xd0db32=>_0xd0db32['id'])[_0x2b670d(0x1ea)](',\x20')+'.');const _0x405ba3=_0x43a684[0x0];_0x3bff6c[_0x2b670d(0x1c0)](_0x405ba3['id'],_0x405ba3);}return[..._0x3bff6c[_0x2b670d(0x1d3)]()];}function a140_0x1a27(_0x4ce665,_0x2d1928){_0x4ce665=_0x4ce665-0x1bc;const _0x358ed9=a140_0x358e();let _0x1a2736=_0x358ed9[_0x4ce665];return _0x1a2736;}function parseMenuIds(_0x3b72e7){const _0x4cbc7d=a140_0x564b38,_0x6a199a=parseCsv(_0x3b72e7),_0x404bd7=_0x6a199a['map'](Number);if(_0x404bd7[_0x4cbc7d(0x220)](_0x308187=>!Number[_0x4cbc7d(0x20a)](_0x308187)||_0x308187<=0x0))throw CliErrors[_0x4cbc7d(0x21e)](_0x4cbc7d(0x228));return[...new Set(_0x404bd7)];}function parseCsv(_0x28f018){const _0x25f561=a140_0x564b38;return[...new Set(_0x28f018['split'](',')[_0x25f561(0x204)](_0x5a69e5=>_0x5a69e5[_0x25f561(0x1d9)]())['filter'](Boolean))];}function parseBooleanFlag(_0x3cb5f0,_0x6b21a7,_0x555a0c){const _0x4310da=a140_0x564b38;if(!hasFlag(_0x3cb5f0,_0x6b21a7)){if(_0x555a0c)throw CliErrors[_0x4310da(0x235)](_0x6b21a7);return undefined;}const _0x32908a=_0x3cb5f0['rawFlags'][_0x6b21a7];if(_0x32908a===!![]||_0x32908a===![])return _0x32908a;if(_0x32908a===_0x4310da(0x1f4))return!![];if(_0x32908a===_0x4310da(0x1f9))return![];throw CliErrors[_0x4310da(0x21e)]('--'+_0x6b21a7+'\x20must\x20be\x20true\x20or\x20false.');}function verifyVisibilityUpdate(_0x3b8ddc,_0x3d9055,_0x2ffa6a){const _0x5a8235=a140_0x564b38;assertVerified(!!_0x3d9055,_0x5a8235(0x1cf)+_0x3b8ddc['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x3d9055[_0x5a8235(0x1eb)]===_0x2ffa6a,'Menu\x20'+_0x3b8ddc['id']+_0x5a8235(0x213));const _0x115246=[['id',_0x3d9055['id'],_0x3b8ddc['id']],['parentId',_0x3d9055['parentId'],_0x3b8ddc['parentId']],['depth',_0x3d9055['depth'],_0x3b8ddc[_0x5a8235(0x1fe)]],[_0x5a8235(0x1d2),_0x3d9055[_0x5a8235(0x1d2)],_0x3b8ddc[_0x5a8235(0x1d2)]],['path',_0x3d9055[_0x5a8235(0x237)],_0x3b8ddc['path']],[_0x5a8235(0x1c8),_0x3d9055[_0x5a8235(0x1c8)],_0x3b8ddc[_0x5a8235(0x1c8)]],[_0x5a8235(0x203),_0x3d9055['type'],_0x3b8ddc[_0x5a8235(0x203)]],[_0x5a8235(0x20d),_0x3d9055['sort'],_0x3b8ddc[_0x5a8235(0x20d)]],[_0x5a8235(0x1e2),_0x3d9055['resources'],_0x3b8ddc['resources']],[_0x5a8235(0x1e9),_0x3d9055['resourcesValid'],_0x3b8ddc[_0x5a8235(0x1e9)]],[_0x5a8235(0x238),_0x3d9055[_0x5a8235(0x238)],_0x3b8ddc['childrenIds']],[_0x5a8235(0x1cd),_0x3d9055[_0x5a8235(0x1cd)],_0x3b8ddc[_0x5a8235(0x1cd)]],[_0x5a8235(0x1d1),_0x3d9055['pageId'],_0x3b8ddc[_0x5a8235(0x1d1)]],['pageType',_0x3d9055[_0x5a8235(0x211)],_0x3b8ddc[_0x5a8235(0x211)]],['modelType',_0x3d9055['modelType'],_0x3b8ddc['modelType']],[_0x5a8235(0x219),_0x3d9055[_0x5a8235(0x219)],_0x3b8ddc[_0x5a8235(0x219)]],[_0x5a8235(0x1dd),_0x3d9055[_0x5a8235(0x1dd)],_0x3b8ddc[_0x5a8235(0x1dd)]]];for(const [_0x3b330e,_0x2e8f81,_0xc6bf5e]of _0x115246){assertVerified(sameValue(_0x2e8f81,_0xc6bf5e),_0x5a8235(0x1cf)+_0x3b8ddc['id']+'\x20'+_0x3b330e+_0x5a8235(0x202));}}function sameValue(_0x41fc9d,_0x1efb10){const _0x19c8fd=a140_0x564b38;if(Array['isArray'](_0x41fc9d)||Array[_0x19c8fd(0x1e3)](_0x1efb10))return JSON['stringify'](_0x41fc9d)===JSON[_0x19c8fd(0x214)](_0x1efb10);return _0x41fc9d===_0x1efb10;}function a140_0x358e(){const _0x59f857=['filter','set','update-recovery','2621096HZccto','verification','expected-count','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','url','updated','warnings','push','message','childrenCount','POST','Menu\x20','str','pageId','label','values','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','targets','update','code','length','trim','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','menu_verification_failed','datasetCode','18iDywNU','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','Menu\x20visibility\x20update\x20completed:\x20','513494tKvwRk','resources','isArray','218498ZUcTOj','menus','update\x20visibility\x20for','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','resourcesValid','join','visible','expectedCount','update\x20menu\x20visibility','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','7636wZhJVj','high-risk-write','string','paths','1445652NYUBpf','true','Response\x20was\x20lost\x20and\x20menu\x20','get','byId','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','false','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','/smartapi/menu/update','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','\x20menu(s);\x20skipped\x20','depth','\x20failed.','menu_selector_ambiguous','expectVisible','\x20changed\x20unexpectedly.','type','map','Menu\x20path\x20selector\x20not\x20found:\x20','plannedActions','requestedVisible','Final\x20menu\x20visibility\x20readback\x20failed.','visibility-update','isSafeInteger','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','failed','sort','menu\x20list','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','Selected\x20','pageType','menuIds','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','stringify','appCode','plan','\x20visibility\x20update\x20could\x20not\x20be\x20verified','menu_selector_not_found','datasetId','\x20skipped,\x20','verify\x20menu\x20visibility\x20update','menu-ids','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','validation','243EIohNB','some','\x20updated,\x20','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','rabetbase\x20menu\x20list\x20--format\x20compress','beforeById','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','cookie','Updated\x20visibility\x20for\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','Menu\x20id\x20selector(s)\x20not\x20found:\x20','hash','Requested\x20menu\x20visibility','boolean','menu_permission_denied','recovered','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','Response\x20was\x20lost\x20for\x20menu\x20','update-menu-visibility','813930chbLvA','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','before','flagMissing','1550311phksMF','path','childrenIds','expect-visible','menu_expected_count_mismatch','\x20menu(s);\x20skip\x20'];a140_0x358e=function(){return _0x59f857;};return a140_0x358e();}
|
|
1
|
+
const a153_0x5b19ef=a153_0x1fde;(function(_0x2bd5d1,_0x57d71b){const _0x40a7e9=a153_0x1fde,_0x2261c4=_0x2bd5d1();while(!![]){try{const _0x155355=parseInt(_0x40a7e9(0xa6))/0x1*(parseInt(_0x40a7e9(0xa9))/0x2)+-parseInt(_0x40a7e9(0xbc))/0x3*(parseInt(_0x40a7e9(0x77))/0x4)+-parseInt(_0x40a7e9(0xd0))/0x5*(parseInt(_0x40a7e9(0xaf))/0x6)+parseInt(_0x40a7e9(0x94))/0x7*(-parseInt(_0x40a7e9(0x7f))/0x8)+parseInt(_0x40a7e9(0xd1))/0x9+-parseInt(_0x40a7e9(0xe8))/0xa*(-parseInt(_0x40a7e9(0xe1))/0xb)+-parseInt(_0x40a7e9(0xdd))/0xc*(-parseInt(_0x40a7e9(0xed))/0xd);if(_0x155355===_0x57d71b)break;else _0x2261c4['push'](_0x2261c4['shift']());}catch(_0x6b56e0){_0x2261c4['push'](_0x2261c4['shift']());}}}(a153_0x4b63,0xeae0f));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':'POST','path':a153_0x5b19ef(0x96)}];function a153_0x4b63(){const _0x3961ac=['16291869EnqEvI','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','byId','false','label','message','stringify','10PpaWWm','menu_selector_not_found','push','Menu\x20id\x20selector(s)\x20not\x20found:\x20','Response\x20was\x20lost\x20and\x20menu\x20','121615CYSYgZ','Menu\x20','has','\x20menu(s);\x20skip\x20','expectedCount','isArray','modelType','expectVisible','8XWYaLT','requestedVisible','menu\x20list','map','\x20visibility\x20update\x20could\x20not\x20be\x20verified','before','paths','str','2910280AGlEqm','url','Would\x20update\x20visibility\x20for\x20','expected-count','datasetId','filter','high-risk-write','verify\x20menu\x20visibility\x20update','update\x20menu\x20visibility','resourcesValid','beforeById','failed','targets','appCode','update','some','depth','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','num','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','\x20unchanged\x20menu(s).','21gNtNqK','\x20menu(s);\x20skipped\x20','/smartapi/menu/update','Selected\x20','\x20failed.','update-recovery','pageType','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','menuIds','plan','Menu\x20visibility\x20update\x20completed:\x20','join','verification','Updated\x20visibility\x20for\x20','parentId','isSafeInteger','sort','datasetCode','2MbadxJ','values','menu_permission_denied','628856GJOLGB','childrenCount','rabetbase\x20menu\x20list\x20--format\x20compress','update-menu-visibility','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','56508spVZNA','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','\x20changed\x20unexpectedly.','type','number','string','flagMissing','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','code','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','cookie','pageId','visibility-update','1246521TWhenE','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','trim','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','menu_state_drift','menu-ids','plannedActions','split','recovered','path','visible','hash','\x20must\x20be\x20true\x20or\x20false.','true','updated','menu_expected_count_mismatch','\x20skipped,\x20','\x20menu(s),\x20expected\x20','menu','105hIYYmp','2856825QxYHaG','Menu\x20path\x20selector\x20not\x20found:\x20','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','Final\x20menu\x20visibility\x20readback\x20failed.','get','warnings','length','menu_verification_failed','body','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','resources','POST','840JgsQcY','validation','expect-visible','childrenIds'];a153_0x4b63=function(){return _0x3961ac;};return a153_0x4b63();}export const menuVisibilityUpdate={'service':a153_0x5b19ef(0xcf),'command':'visibility-update','description':a153_0x5b19ef(0xad),'risk':a153_0x5b19ef(0x85),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':a153_0x5b19ef(0xb4),'description':a153_0x5b19ef(0x92)},{'name':'paths','type':a153_0x5b19ef(0xb4),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':a153_0x5b19ef(0xc7),'type':'boolean','required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a153_0x5b19ef(0xdf),'type':'boolean','description':a153_0x5b19ef(0xb8)},{'name':'expected-count','type':a153_0x5b19ef(0xb3),'description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x57107e){parseInput(_0x57107e),requireExplicitYes(_0x57107e);},async 'dryRun'(_0x35b127){const _0x58c586=a153_0x5b19ef,_0xc0fc06=await buildPlan(_0x35b127,!![]),_0x465dc9=_0xc0fc06['plan'][_0x58c586(0xc3)]?.[_0x58c586(0xd7)]??0x0,_0x219c35=_0xc0fc06['plan'][_0x58c586(0x8b)][_0x58c586(0xd7)]-_0x465dc9;return menuDryRunResult(_0xc0fc06[_0x58c586(0x9d)],{'method':_0x58c586(0xdc),'url':_0x58c586(0x96),'body':{'updates':_0xc0fc06[_0x58c586(0x9d)][_0x58c586(0xc3)]?.[_0x58c586(0x7a)](_0x383200=>_0x383200[_0x58c586(0xd9)])??[]},'description':_0x58c586(0x81)+_0x465dc9+_0x58c586(0xf0)+_0x219c35+_0x58c586(0x93)});},async 'execute'(_0xb257d){const _0x8292a6=a153_0x5b19ef;requireExplicitYes(_0xb257d);const _0x3fc988=await buildPlan(_0xb257d,![]);await recheckMutationSnapshot(_0xb257d,_0x3fc988[_0x8292a6(0x9d)],_0x8292a6(0x87));const _0x314dbc=[],_0x367019=[],_0x3fe645=[];for(const _0x3e2cc9 of _0x3fc988[_0x8292a6(0x9d)][_0x8292a6(0x8b)]){if(_0x3e2cc9['before']['visible']===_0x3fc988['plan']['requestedVisible']){_0x314dbc[_0x8292a6(0xea)]({'id':_0x3e2cc9['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0xb257d['appCode'],_0xb257d[_0x8292a6(0xb9)],{'id':_0x3e2cc9['id'],'visible':_0x3fc988[_0x8292a6(0x9d)][_0x8292a6(0x78)]}),_0x314dbc[_0x8292a6(0xea)]({'id':_0x3e2cc9['id'],'updated':!![],'skipped':![]});}catch(_0x35d2fd){const _0x2b4eed=mapMenuApiError(_0x35d2fd,'update\x20visibility\x20for',_0x3e2cc9['id']);if(isMenuResponseLoss(_0x35d2fd)&&_0x2b4eed[_0x8292a6(0xb7)]!==_0x8292a6(0xa8)){_0x3fe645[_0x8292a6(0xea)](_0x3e2cc9['id']);continue;}_0x367019[_0x8292a6(0xea)]({'id':_0x3e2cc9['id'],'stage':_0x8292a6(0x8d),'code':_0x2b4eed[_0x8292a6(0xb7)],'message':_0x2b4eed[_0x8292a6(0xe6)]});}}let _0x1adaf5;try{_0x1adaf5=await fetchMenuSnapshot(_0xb257d[_0x8292a6(0x8c)],_0xb257d[_0x8292a6(0xb9)]);}catch(_0x332f34){const _0x22690d=describeMenuErrorCause(_0x332f34,_0x8292a6(0x86)),_0x5de0d5=_0x3fe645[_0x8292a6(0x7a)](_0x29dda5=>({'id':_0x29dda5,'stage':_0x8292a6(0x99),'code':_0x8292a6(0xd8),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x29dda5+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x40f090={'stage':'verification','code':'menu_verification_failed','message':_0x8292a6(0xd4),'targetIds':_0x3fc988[_0x8292a6(0x9d)][_0x8292a6(0x8b)][_0x8292a6(0x7a)](_0x31d8bc=>_0x31d8bc['id']),'requestedStateConfirmed':![],..._0x22690d};throw menuFailure(asVerificationError(_0x332f34,'Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state'),_0x3fc988[_0x8292a6(0x9d)],{'stage':_0x8292a6(0xa0),'succeeded':_0x314dbc,'failedRecords':[..._0x367019,..._0x5de0d5,_0x40f090],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x8292a6(0x8a),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x3c17ab=[];for(const _0x5498aa of _0x314dbc){const _0x4a04fc=Number(_0x5498aa['id']),_0x2cdad3=_0x3fc988[_0x8292a6(0x89)][_0x8292a6(0xd5)](_0x4a04fc),_0x38e35d=_0x1adaf5['byId'][_0x8292a6(0xd5)](_0x4a04fc);try{verifyVisibilityUpdate(_0x2cdad3,_0x38e35d,_0x3fc988[_0x8292a6(0x9d)]['requestedVisible']);}catch(_0x22ab38){const _0x4e673d=asVerificationError(_0x22ab38,'Menu\x20'+_0x4a04fc+_0x8292a6(0x7b));_0x3c17ab[_0x8292a6(0xea)]({'id':_0x4a04fc,'stage':_0x8292a6(0xa0),'code':_0x4e673d['code'],'message':_0x4e673d[_0x8292a6(0xe6)],'requestedStateConfirmed':![]});}}for(const _0x13932c of _0x3fe645){const _0x2a9891=_0x3fc988[_0x8292a6(0x89)][_0x8292a6(0xd5)](_0x13932c),_0x267163=_0x1adaf5[_0x8292a6(0xe3)][_0x8292a6(0xd5)](_0x13932c);try{verifyVisibilityUpdate(_0x2a9891,_0x267163,_0x3fc988[_0x8292a6(0x9d)][_0x8292a6(0x78)]),_0x314dbc['push']({'id':_0x13932c,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x37989d){const _0x23bca6=asVerificationError(_0x37989d,_0x8292a6(0xec)+_0x13932c+_0x8292a6(0xb0));_0x3c17ab[_0x8292a6(0xea)]({'id':_0x13932c,'stage':_0x8292a6(0x99),'code':_0x23bca6['code'],'message':_0x23bca6[_0x8292a6(0xe6)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x3c17ab[_0x8292a6(0xd7)]>0x0){const _0x566717=_0x3c17ab[_0x8292a6(0x7a)](_0x2a2280=>Number(_0x2a2280['id'])),_0x4b93c3=_0x314dbc[_0x8292a6(0x84)](_0x507ed6=>_0x507ed6[_0x8292a6(0xc5)]===!![])['length'],_0xc4d94d=menuError(_0x8292a6(0xd8),_0x8292a6(0xda)+_0x566717[_0x8292a6(0x9f)](',\x20')+'.',_0x8292a6(0xae));throw menuFailure(_0xc4d94d,_0x3fc988['plan'],{'stage':_0x8292a6(0xa0),'succeeded':_0x314dbc,'failedRecords':[..._0x367019,..._0x3c17ab],'warnings':[_0x8292a6(0xc0)],'verification':{'status':_0x8292a6(0x8a),..._0x566717[_0x8292a6(0xd7)]===0x1?{'targetId':_0x566717[0x0]}:{'targetIds':_0x566717},'recoveredCount':_0x4b93c3,'lookupCommand':_0x8292a6(0xab)}});}const _0x1b788f=_0x314dbc[_0x8292a6(0x84)](_0x285e1d=>_0x285e1d[_0x8292a6(0xcb)]===!![])['length'],_0x15734c=_0x314dbc[_0x8292a6(0xd7)]-_0x1b788f,_0x42f514={..._0x3fc988[_0x8292a6(0x9d)],'succeeded':_0x314dbc,'failed':_0x367019,'warnings':_0x367019['length']>0x0?[..._0x3fc988['plan'][_0x8292a6(0xd6)],_0x8292a6(0xb6)]:_0x3fc988[_0x8292a6(0x9d)][_0x8292a6(0xd6)],'verification':{'checkedBy':_0x8292a6(0x79),'snapshotHash':_0x1adaf5['hash'],'matchesRequestedState':_0x367019[_0x8292a6(0xd7)]===0x0,'recoveredCount':_0x3fe645[_0x8292a6(0xd7)]}};return{'ok':_0x367019[_0x8292a6(0xd7)]===0x0,'data':_0x42f514,'message':_0x367019[_0x8292a6(0xd7)]===0x0?_0x8292a6(0xa1)+_0x1b788f+_0x8292a6(0x95)+_0x15734c+_0x8292a6(0x93):_0x8292a6(0x9e)+_0x1b788f+'\x20updated,\x20'+_0x15734c+_0x8292a6(0xcd)+_0x367019[_0x8292a6(0xd7)]+_0x8292a6(0x98)};}};function parseInput(_0x38cdc0){const _0x429576=a153_0x5b19ef,_0xecbc47=parseMenuIds(_0x38cdc0['str'](_0x429576(0xc2))),_0x31928c=parseCsv(_0x38cdc0[_0x429576(0x7e)](_0x429576(0x7d)));if(_0xecbc47[_0x429576(0xd7)]===0x0&&_0x31928c[_0x429576(0xd7)]===0x0)throw CliErrors[_0x429576(0xde)]('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x4fb74f=parseBooleanFlag(_0x38cdc0,'visible',!![]),_0x1672b1=parseBooleanFlag(_0x38cdc0,_0x429576(0xdf),![]);let _0x56b4f6;if(hasFlag(_0x38cdc0,_0x429576(0x82))){_0x56b4f6=_0x38cdc0[_0x429576(0x91)](_0x429576(0x82));if(!Number['isSafeInteger'](_0x56b4f6)||_0x56b4f6<0x0)throw CliErrors[_0x429576(0xde)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0xecbc47,'paths':_0x31928c,'visible':_0x4fb74f,'expectVisible':_0x1672b1,'expectedCount':_0x56b4f6};}async function buildPlan(_0x118795,_0x25aedb){const _0x102332=a153_0x5b19ef,_0x8e8bc8=parseInput(_0x118795),_0x373230=await fetchMutationSnapshot(_0x118795,_0x102332(0x87)),_0x421e8f=selectTargets(_0x373230['menus'],_0x8e8bc8[_0x102332(0x9c)],_0x8e8bc8[_0x102332(0x7d)]);if(_0x8e8bc8[_0x102332(0xf1)]!==undefined&&_0x421e8f[_0x102332(0xd7)]!==_0x8e8bc8['expectedCount'])throw menuError(_0x102332(0xcc),_0x102332(0x97)+_0x421e8f[_0x102332(0xd7)]+_0x102332(0xce)+_0x8e8bc8[_0x102332(0xf1)]+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x8e8bc8[_0x102332(0xf4)]!==undefined){const _0x4bf31f=_0x421e8f[_0x102332(0x84)](_0x35ab7b=>_0x35ab7b[_0x102332(0xc7)]!==_0x8e8bc8['expectVisible']);if(_0x4bf31f['length']>0x0)throw menuError(_0x102332(0xc1),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x4bf31f[_0x102332(0x7a)](_0x46e77e=>_0x46e77e['id'])[_0x102332(0x9f)](',\x20')+'.',_0x102332(0xbf));}const _0x1992b2=_0x421e8f[_0x102332(0x7a)](_0x53da96=>({'id':_0x53da96['id'],'label':_0x53da96['label'],'path':_0x53da96[_0x102332(0xc6)],'before':{'visible':_0x53da96[_0x102332(0xc7)]},'after':{'visible':_0x8e8bc8[_0x102332(0xc7)]}})),_0x14144a=_0x1992b2[_0x102332(0x84)](_0x4e0737=>_0x4e0737[_0x102332(0x7c)][_0x102332(0xc7)]!==_0x8e8bc8[_0x102332(0xc7)])[_0x102332(0x7a)](_0x59fe06=>({'stage':_0x102332(0xac),'method':'POST','path':'/smartapi/menu/update','body':{'appCode':_0x118795[_0x102332(0x8c)],'id':_0x59fe06['id'],'visible':_0x8e8bc8[_0x102332(0xc7)]}})),_0x2acf93=mutationResult({'operation':_0x102332(0xbb),'selector':{'menuIds':_0x8e8bc8[_0x102332(0x9c)],'paths':_0x8e8bc8[_0x102332(0x7d)]},'before':{'menus':_0x421e8f[_0x102332(0x7a)](_0x45baf8=>({'id':_0x45baf8['id'],'path':_0x45baf8[_0x102332(0xc6)],'visible':_0x45baf8[_0x102332(0xc7)]}))},'after':{'menus':_0x421e8f[_0x102332(0x7a)](_0x2606f2=>({'id':_0x2606f2['id'],'path':_0x2606f2['path'],'visible':_0x8e8bc8[_0x102332(0xc7)]}))},'dryRun':_0x25aedb,'backend':[...BACKEND],'plannedActions':_0x14144a,'snapshotHash':_0x373230[_0x102332(0xc8)],'warnings':_0x14144a['length']===0x0?[_0x102332(0x9b)]:[]});return{'plan':{..._0x2acf93,'requestedVisible':_0x8e8bc8[_0x102332(0xc7)],'targets':_0x1992b2},'beforeById':new Map(_0x421e8f['map'](_0x5486ea=>[_0x5486ea['id'],_0x5486ea]))};}function a153_0x1fde(_0x32ec06,_0x5e4cc7){_0x32ec06=_0x32ec06-0x77;const _0x4b638f=a153_0x4b63();let _0x1fdeef=_0x4b638f[_0x32ec06];return _0x1fdeef;}function selectTargets(_0x3c0b42,_0xcf8b27,_0x2ff4e2){const _0x3db6d4=a153_0x5b19ef,_0x310581=new Map(_0x3c0b42[_0x3db6d4(0x7a)](_0x53c9ab=>[_0x53c9ab['id'],_0x53c9ab])),_0x5d7c4b=new Map(),_0x1b389d=_0xcf8b27[_0x3db6d4(0x84)](_0x547745=>!_0x310581[_0x3db6d4(0xef)](_0x547745));if(_0x1b389d[_0x3db6d4(0xd7)]>0x0)throw menuError(_0x3db6d4(0xe9),_0x3db6d4(0xeb)+_0x1b389d['join'](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x489d34 of _0xcf8b27){_0x5d7c4b['set'](_0x489d34,_0x310581[_0x3db6d4(0xd5)](_0x489d34));}for(const _0x49db93 of _0x2ff4e2){const _0x579043=_0x3c0b42[_0x3db6d4(0x84)](_0x1b6a55=>_0x1b6a55['path']===_0x49db93);if(_0x579043[_0x3db6d4(0xd7)]===0x0)throw menuError('menu_selector_not_found',_0x3db6d4(0xd2)+JSON[_0x3db6d4(0xe7)](_0x49db93)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x579043[_0x3db6d4(0xd7)]>0x1)throw menuError('menu_selector_ambiguous',_0x3db6d4(0xbd)+JSON[_0x3db6d4(0xe7)](_0x49db93)+'.',_0x3db6d4(0xe2)+_0x579043[_0x3db6d4(0x7a)](_0x466e3d=>_0x466e3d['id'])[_0x3db6d4(0x9f)](',\x20')+'.');const _0x1ceb5d=_0x579043[0x0];_0x5d7c4b['set'](_0x1ceb5d['id'],_0x1ceb5d);}return[..._0x5d7c4b[_0x3db6d4(0xa7)]()];}function parseMenuIds(_0x4fe44d){const _0xf19bfc=a153_0x5b19ef,_0x2e40ee=parseCsv(_0x4fe44d),_0x258cf6=_0x2e40ee[_0xf19bfc(0x7a)](Number);if(_0x258cf6[_0xf19bfc(0x8e)](_0x590f11=>!Number[_0xf19bfc(0xa3)](_0x590f11)||_0x590f11<=0x0))throw CliErrors['validation'](_0xf19bfc(0x90));return[...new Set(_0x258cf6)];}function parseCsv(_0x8485d9){const _0x48b635=a153_0x5b19ef;return[...new Set(_0x8485d9[_0x48b635(0xc4)](',')[_0x48b635(0x7a)](_0x4b2c09=>_0x4b2c09[_0x48b635(0xbe)]())[_0x48b635(0x84)](Boolean))];}function parseBooleanFlag(_0x264273,_0x48c6e4,_0x3d579a){const _0x136c43=a153_0x5b19ef;if(!hasFlag(_0x264273,_0x48c6e4)){if(_0x3d579a)throw CliErrors[_0x136c43(0xb5)](_0x48c6e4);return undefined;}const _0x1556c4=_0x264273['rawFlags'][_0x48c6e4];if(_0x1556c4===!![]||_0x1556c4===![])return _0x1556c4;if(_0x1556c4===_0x136c43(0xca))return!![];if(_0x1556c4===_0x136c43(0xe4))return![];throw CliErrors['validation']('--'+_0x48c6e4+_0x136c43(0xc9));}function verifyVisibilityUpdate(_0x22da82,_0x1b76eb,_0x10a042){const _0x289628=a153_0x5b19ef;assertVerified(!!_0x1b76eb,_0x289628(0xee)+_0x22da82['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x1b76eb[_0x289628(0xc7)]===_0x10a042,_0x289628(0xee)+_0x22da82['id']+_0x289628(0xd3));const _0x5a0cf8=[['id',_0x1b76eb['id'],_0x22da82['id']],[_0x289628(0xa2),_0x1b76eb[_0x289628(0xa2)],_0x22da82[_0x289628(0xa2)]],[_0x289628(0x8f),_0x1b76eb[_0x289628(0x8f)],_0x22da82[_0x289628(0x8f)]],[_0x289628(0xe5),_0x1b76eb[_0x289628(0xe5)],_0x22da82[_0x289628(0xe5)]],[_0x289628(0xc6),_0x1b76eb[_0x289628(0xc6)],_0x22da82[_0x289628(0xc6)]],[_0x289628(0x80),_0x1b76eb['url'],_0x22da82[_0x289628(0x80)]],[_0x289628(0xb2),_0x1b76eb[_0x289628(0xb2)],_0x22da82['type']],[_0x289628(0xa4),_0x1b76eb[_0x289628(0xa4)],_0x22da82[_0x289628(0xa4)]],[_0x289628(0xdb),_0x1b76eb[_0x289628(0xdb)],_0x22da82[_0x289628(0xdb)]],[_0x289628(0x88),_0x1b76eb[_0x289628(0x88)],_0x22da82['resourcesValid']],[_0x289628(0xe0),_0x1b76eb['childrenIds'],_0x22da82[_0x289628(0xe0)]],['childrenCount',_0x1b76eb['childrenCount'],_0x22da82[_0x289628(0xaa)]],[_0x289628(0xba),_0x1b76eb['pageId'],_0x22da82[_0x289628(0xba)]],[_0x289628(0x9a),_0x1b76eb[_0x289628(0x9a)],_0x22da82[_0x289628(0x9a)]],[_0x289628(0xf3),_0x1b76eb['modelType'],_0x22da82[_0x289628(0xf3)]],[_0x289628(0x83),_0x1b76eb['datasetId'],_0x22da82[_0x289628(0x83)]],[_0x289628(0xa5),_0x1b76eb['datasetCode'],_0x22da82[_0x289628(0xa5)]]];for(const [_0xe642d8,_0x5ea26b,_0x3836c1]of _0x5a0cf8){assertVerified(sameValue(_0x5ea26b,_0x3836c1),_0x289628(0xee)+_0x22da82['id']+'\x20'+_0xe642d8+_0x289628(0xb1));}}function sameValue(_0x4cbb92,_0x1cab14){const _0x36548f=a153_0x5b19ef;if(Array[_0x36548f(0xf2)](_0x4cbb92)||Array[_0x36548f(0xf2)](_0x1cab14))return JSON[_0x36548f(0xe7)](_0x4cbb92)===JSON[_0x36548f(0xe7)](_0x1cab14);return _0x4cbb92===_0x1cab14;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a154_0x5e16(_0x5226c9,_0x20fe4e){_0x5226c9=_0x5226c9-0x1a8;const _0x3db21f=a154_0x3db2();let _0x5e166e=_0x3db21f[_0x5226c9];return _0x5e166e;}const a154_0x3a4d14=a154_0x5e16;function a154_0x3db2(){const _0x235826=['330104PleOde','63nxYesU','/notification/channel-config/create','write','readTimeout','Inspect\x20with\x20','channelType','1192004TFQCBY','input','verified','create','notification_config_create_outcome_unknown','90LIEdUt','appCode',';\x20do\x20not\x20resubmit.','mutation','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','verification','notification','configCode','Created\x20notification\x20config\x20','planned','115554OLTKXS','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','10482NEVoUd','59575xiZBGD','POST','document',';\x20do\x20not\x20resubmit\x20automatically.','configName','connectTimeout','description','6mrlDHD',';\x20no\x20automatic\x20retry\x20was\x20attempted.','573246pcOqwj','isSafeInteger','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','52068rwoAmu'];a154_0x3db2=function(){return _0x235826;};return a154_0x3db2();}(function(_0x3c3777,_0x1d250d){const _0x3317f9=a154_0x5e16,_0x403ca0=_0x3c3777();while(!![]){try{const _0x398e9d=parseInt(_0x3317f9(0x1b6))/0x1+parseInt(_0x3317f9(0x1b8))/0x2+-parseInt(_0x3317f9(0x1c5))/0x3+parseInt(_0x3317f9(0x1cd))/0x4+-parseInt(_0x3317f9(0x1b9))/0x5*(parseInt(_0x3317f9(0x1c0))/0x6)+-parseInt(_0x3317f9(0x1c7))/0x7*(-parseInt(_0x3317f9(0x1c6))/0x8)+-parseInt(_0x3317f9(0x1c2))/0x9*(parseInt(_0x3317f9(0x1ac))/0xa);if(_0x398e9d===_0x1d250d)break;else _0x403ca0['push'](_0x403ca0['shift']());}catch(_0x2722e9){_0x403ca0['push'](_0x403ca0['shift']());}}}(a154_0x3db2,0x2dcfe));import{asDryRunResult}from'../../commands/common/dry-run.js';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';const CREATE_PATH=a154_0x3a4d14(0x1c8);async function prepareCreate(_0x4f6043){const _0x49ecd8=a154_0x3a4d14,_0x136b47=await readNotificationDocument(_0x4f6043,'create'),_0x167ed7=createMutationInput(_0x4f6043[_0x49ecd8(0x1ad)],_0x136b47);return{'document':_0x136b47,'input':_0x167ed7,'planned':projectNotificationConfig({'appCode':_0x4f6043[_0x49ecd8(0x1ad)],'configName':_0x136b47[_0x49ecd8(0x1bd)],'channelType':_0x136b47[_0x49ecd8(0x1cc)],'endpointUrl':_0x136b47['endpointUrl'],'channelConfig':_0x136b47['channelConfig'],'description':_0x136b47[_0x49ecd8(0x1bf)],'connectTimeout':_0x136b47[_0x49ecd8(0x1be)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x136b47[_0x49ecd8(0x1ca)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a154_0x3a4d14(0x1b2),'command':'config-create','description':a154_0x3a4d14(0x1b0),'risk':a154_0x3a4d14(0x1c9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x301c51){assertSingleNotificationSource(_0x301c51);},async 'dryRun'(_0x2782af){const _0x3c84bc=a154_0x3a4d14,_0x17d586=await prepareCreate(_0x2782af),_0x1a1423=notificationLookupCommand(_0x2782af[_0x3c84bc(0x1ad)],_0x17d586[_0x3c84bc(0x1bb)]['channelType']);return asDryRunResult({'operation':'create','selector':{'appCode':_0x2782af[_0x3c84bc(0x1ad)],'configName':_0x17d586[_0x3c84bc(0x1bb)][_0x3c84bc(0x1bd)],'channelType':_0x17d586[_0x3c84bc(0x1bb)][_0x3c84bc(0x1cc)]},'before':null,'after':_0x17d586[_0x3c84bc(0x1b5)],'dryRun':!![],'backend':{'method':_0x3c84bc(0x1ba),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3c84bc(0x1b5),'lookupCommand':_0x1a1423}},{'method':_0x3c84bc(0x1ba),'url':CREATE_PATH});},async 'execute'(_0x168cf9){const _0x41ef4d=a154_0x3a4d14,_0x414237=await prepareCreate(_0x168cf9),_0x16e0bf=notificationLookupCommand(_0x168cf9[_0x41ef4d(0x1ad)],_0x414237[_0x41ef4d(0x1bb)]['channelType']);let _0x3698cb;try{_0x3698cb=await createNotificationChannelConfig(_0x414237[_0x41ef4d(0x1a8)]);}catch(_0x1a9460){if(isPlatformTransportFailure(_0x1a9460))throw notificationError('notification_config_create_outcome_unknown',_0x41ef4d(0x1c4),_0x41ef4d(0x1cb)+_0x16e0bf+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x41ef4d(0x1aa),_0x41ef4d(0x1af),'Inspect\x20with\x20'+_0x16e0bf+_0x41ef4d(0x1c1));}if(!Number[_0x41ef4d(0x1c3)](_0x3698cb)||_0x3698cb<=0x0)throw notificationError(_0x41ef4d(0x1ab),_0x41ef4d(0x1b7),_0x41ef4d(0x1cb)+_0x16e0bf+_0x41ef4d(0x1ae));let _0x57d395;try{const _0x4b91de=await getNotificationChannelConfig(_0x3698cb,_0x168cf9[_0x41ef4d(0x1ad)]);_0x57d395=normalizeExactNotificationConfig(_0x4b91de,_0x3698cb,_0x168cf9[_0x41ef4d(0x1ad)]);}catch{throw safeApiFailure(_0x41ef4d(0x1aa),_0x41ef4d(0x1b1),_0x41ef4d(0x1cb)+_0x16e0bf+_0x41ef4d(0x1bc));}return{'ok':!![],'data':{'operation':_0x41ef4d(0x1aa),'selector':{'appCode':_0x57d395[_0x41ef4d(0x1ad)],'id':_0x57d395['id'],'configCode':_0x57d395[_0x41ef4d(0x1b3)],'configName':_0x57d395[_0x41ef4d(0x1bd)],'channelType':_0x57d395['channelType']},'before':null,'after':projectNotificationConfig(_0x57d395),'dryRun':![],'backend':{'method':_0x41ef4d(0x1ba),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x41ef4d(0x1a9),'lookupCommand':_0x16e0bf}},'message':_0x41ef4d(0x1b4)+_0x57d395['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a155_0x36ea(_0x3651eb,_0xeb0ace){_0x3651eb=_0x3651eb-0xee;const _0xf0e61a=a155_0xf0e6();let _0x36ea32=_0xf0e61a[_0x3651eb];return _0x36ea32;}const a155_0x56acc0=a155_0x36ea;(function(_0x113678,_0x47272c){const _0x54e729=a155_0x36ea,_0x25ec94=_0x113678();while(!![]){try{const _0x28dab5=-parseInt(_0x54e729(0xf0))/0x1+-parseInt(_0x54e729(0xfc))/0x2+parseInt(_0x54e729(0xfe))/0x3*(-parseInt(_0x54e729(0xf3))/0x4)+-parseInt(_0x54e729(0xf4))/0x5+parseInt(_0x54e729(0x10a))/0x6*(-parseInt(_0x54e729(0x100))/0x7)+parseInt(_0x54e729(0x105))/0x8+parseInt(_0x54e729(0xf8))/0x9;if(_0x28dab5===_0x47272c)break;else _0x25ec94['push'](_0x25ec94['shift']());}catch(_0x3aa23e){_0x25ec94['push'](_0x25ec94['shift']());}}}(a155_0xf0e6,0x66d7d));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_0x56acc0(0xf6),REFERENCE_WARNING=a155_0x56acc0(0xf9);async function prepareDelete(_0x2aca8c){const _0x2bb89b=a155_0x56acc0,_0x345571=readNotificationId(_0x2aca8c),_0x493563=await requireExactNotificationConfig(_0x2aca8c[_0x2bb89b(0x101)],_0x345571,_0x2bb89b(0xf2));return{'id':_0x345571,'before':_0x493563};}export const notificationConfigDelete={'service':'notification','command':'config-delete','description':a155_0x56acc0(0xf1),'risk':a155_0x56acc0(0xfa),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x42fa82){readNotificationId(_0x42fa82),requireNotificationExplicitYes(_0x42fa82);},async 'dryRun'(_0x52f6a9){const _0x1bd7b7=a155_0x56acc0,_0x58ce11=await prepareDelete(_0x52f6a9),_0x586881=notificationLookupCommand(_0x52f6a9[_0x1bd7b7(0x101)],_0x58ce11[_0x1bd7b7(0xf5)][_0x1bd7b7(0xff)]);return asDryRunResult({'operation':_0x1bd7b7(0xf2),'selector':notificationSelector(_0x58ce11['before']),'before':projectNotificationConfig(_0x58ce11[_0x1bd7b7(0xf5)]),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x1bd7b7(0x109),'lookupCommand':_0x586881}},{'method':_0x1bd7b7(0xf7),'url':DELETE_PATH});},async 'execute'(_0x1ad41f){const _0x1a6125=a155_0x56acc0;requireNotificationExplicitYes(_0x1ad41f);const _0x2537f5=await prepareDelete(_0x1ad41f),_0x5242d3=notificationLookupCommand(_0x1ad41f[_0x1a6125(0x101)],_0x2537f5[_0x1a6125(0xf5)][_0x1a6125(0xff)]);let _0x1357e3=![];try{await deleteNotificationChannelConfig(_0x2537f5['id'],_0x1ad41f[_0x1a6125(0x101)]);}catch(_0x36e3e5){if(!isPlatformTransportFailure(_0x36e3e5))throw safeApiFailure(_0x1a6125(0xf2),_0x1a6125(0x107),'Inspect\x20with\x20'+_0x5242d3+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1357e3=!![];}let _0x4ee679;try{_0x4ee679=await listNotificationChannelConfigs(_0x1ad41f[_0x1a6125(0x101)],_0x2537f5[_0x1a6125(0xf5)][_0x1a6125(0xff)]),validateNotificationDeleteReadback(_0x4ee679,_0x1ad41f['appCode'],_0x2537f5[_0x1a6125(0xf5)][_0x1a6125(0xff)]);}catch{throw notificationError(_0x1357e3?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x1a6125(0x104)+_0x2537f5['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x1a6125(0x103)+_0x5242d3+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x4ee679['some'](_0x4ee7c6=>_0x4ee7c6['id']===_0x2537f5['id']))throw notificationError(_0x1357e3?_0x1a6125(0xfb):_0x1a6125(0x102),_0x1a6125(0x104)+_0x2537f5['id']+_0x1a6125(0xee),_0x1a6125(0x103)+_0x5242d3+_0x1a6125(0xfd));const _0x377074=[REFERENCE_WARNING];return _0x1357e3&&_0x377074[_0x1a6125(0x108)](_0x1a6125(0x10b)),{'ok':!![],'data':{'operation':_0x1a6125(0xf2),'selector':notificationSelector(_0x2537f5[_0x1a6125(0xf5)]),'before':projectNotificationConfig(_0x2537f5['before']),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x377074,'verification':{'status':_0x1a6125(0xef),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1357e3,'lookupCommand':_0x5242d3}},'message':_0x1a6125(0x106)+_0x2537f5['id']};}};function a155_0xf0e6(){const _0x32d7dc=['Inspect\x20with\x20','Notification\x20config\x20','5031800xwJDhw','Deleted\x20notification\x20config\x20','mutation','unshift','planned','390PSuciB','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','\x20remains\x20present\x20after\x20delete.','verified','242877IPtzNN','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','delete','32452rJBOza','186580ZrHgLJ','before','/notification/channel-config/delete','POST','18584244LHMbuD','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','high-risk-write','notification_config_delete_outcome_unknown','1455972ISsBKY',';\x20do\x20not\x20resubmit\x20automatically.','222YEapzM','channelType','71519pCEhfo','appCode','notification_config_delete_verification_failed'];a155_0xf0e6=function(){return _0x32d7dc;};return a155_0xf0e6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a156_0x228939=a156_0x2643;(function(_0x596434,_0x54377f){const _0x16126a=a156_0x2643,_0x47cbe9=_0x596434();while(!![]){try{const _0x2db9da=-parseInt(_0x16126a(0x15f))/0x1+-parseInt(_0x16126a(0x15b))/0x2+parseInt(_0x16126a(0x156))/0x3*(-parseInt(_0x16126a(0x15d))/0x4)+-parseInt(_0x16126a(0x154))/0x5*(-parseInt(_0x16126a(0x155))/0x6)+parseInt(_0x16126a(0x15a))/0x7+parseInt(_0x16126a(0x159))/0x8+parseInt(_0x16126a(0x14e))/0x9*(parseInt(_0x16126a(0x14f))/0xa);if(_0x2db9da===_0x54377f)break;else _0x47cbe9['push'](_0x47cbe9['shift']());}catch(_0x3900fb){_0x47cbe9['push'](_0x47cbe9['shift']());}}}(a156_0x535f,0x65988));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a156_0x2643(_0x3f4249,_0xbf0f2f){_0x3f4249=_0x3f4249-0x14e;const _0x535ffe=a156_0x535f();let _0x2643c6=_0x535ffe[_0x3f4249];return _0x2643c6;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a156_0x228939(0x152),'command':'config-list','description':a156_0x228939(0x157),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a156_0x228939(0x151),'description':a156_0x228939(0x158),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x140d3d){readNotificationChannelType(_0x140d3d);},async 'execute'(_0x274c3f){const _0x102238=a156_0x228939,_0x38c585=readNotificationChannelType(_0x274c3f),_0x29b070=await listNotificationChannelConfigs(_0x274c3f[_0x102238(0x150)],_0x38c585),_0x47ce4a=_0x29b070[_0x102238(0x15e)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x274c3f[_0x102238(0x150)],'channelType':_0x38c585,'count':_0x47ce4a[_0x102238(0x153)],'configs':_0x47ce4a},'message':_0x102238(0x15c)+_0x47ce4a[_0x102238(0x153)]+'\x20'+_0x38c585+'\x20notification\x20config(s)'};}};function a156_0x535f(){const _0x10c686=['10ALfhEs','1145346JoqHOb','136269dugdTs','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','Notification\x20channel\x20type','35848WXQlje','2223305IBivoq','1603434grYHrY','Found\x20','72DSNiKS','map','379907IhEaNW','7701732ZTcdbj','20llMxZY','appCode','string','notification','length'];a156_0x535f=function(){return _0x10c686;};return a156_0x535f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a157_0x4e7d(){const _0x5bd1e9=['appCode','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Updated\x20notification\x20config\x20','channelType','4229064TIRLuX','7jwHkZU','39091vXHomm','1514616RaQAsx','POST','payload','Inspect\x20ID\x20','1007622EmfioA','notification','4018239xkCCAp','20ZxrkkW','before','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','\x20via\x20','mutation','verified','Notification\x20config\x20','patch','provesChange','2231805uVNDBm','update','428024lPyRLP','10pUnuPi','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','config-update','Inspect\x20with\x20--id\x20','notification_config_update_outcome_unknown'];a157_0x4e7d=function(){return _0x5bd1e9;};return a157_0x4e7d();}const a157_0x76994a=a157_0x5242;(function(_0x239a93,_0x30a8a1){const _0x14ed3e=a157_0x5242,_0x5dc0af=_0x239a93();while(!![]){try{const _0x5397d3=parseInt(_0x14ed3e(0x15e))/0x1*(-parseInt(_0x14ed3e(0x166))/0x2)+parseInt(_0x14ed3e(0x15f))/0x3+-parseInt(_0x14ed3e(0x171))/0x4+parseInt(_0x14ed3e(0x16f))/0x5+-parseInt(_0x14ed3e(0x163))/0x6+parseInt(_0x14ed3e(0x15d))/0x7*(parseInt(_0x14ed3e(0x15c))/0x8)+parseInt(_0x14ed3e(0x165))/0x9*(-parseInt(_0x14ed3e(0x153))/0xa);if(_0x5397d3===_0x30a8a1)break;else _0x5dc0af['push'](_0x5dc0af['shift']());}catch(_0x2a1f40){_0x5dc0af['push'](_0x5dc0af['shift']());}}}(a157_0x4e7d,0x59bb6));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a157_0x5242(_0x19c1a0,_0x47f4c8){_0x19c1a0=_0x19c1a0-0x153;const _0x4e7df3=a157_0x4e7d();let _0x524238=_0x4e7df3[_0x19c1a0];return _0x524238;}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='/notification/channel-config/update';async function prepareUpdate(_0x3efed1){const _0x454323=a157_0x5242,_0x39bdf2=readNotificationId(_0x3efed1),_0x530e6c=await readNotificationDocument(_0x3efed1,'update'),_0xc6fd4d=await requireExactNotificationConfig(_0x3efed1[_0x454323(0x158)],_0x39bdf2,_0x454323(0x170));return{'id':_0x39bdf2,'patch':_0x530e6c,'before':_0xc6fd4d,'payload':mergeUpdateInput(_0xc6fd4d,_0x530e6c),'planned':plannedUpdateProjection(_0xc6fd4d,_0x530e6c)};}export const notificationConfigUpdate={'service':a157_0x76994a(0x164),'command':a157_0x76994a(0x155),'description':a157_0x76994a(0x159),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3cd9bb){readNotificationId(_0x3cd9bb),assertSingleNotificationSource(_0x3cd9bb),requireNotificationExplicitYes(_0x3cd9bb);},async 'dryRun'(_0x5309ec){const _0x4a49fd=a157_0x76994a,_0x9b43cd=await prepareUpdate(_0x5309ec),_0x4a65bf=notificationLookupCommand(_0x5309ec[_0x4a49fd(0x158)],_0x9b43cd[_0x4a49fd(0x167)][_0x4a49fd(0x15b)]);return asDryRunResult({'operation':_0x4a49fd(0x170),'selector':notificationSelector(_0x9b43cd['before']),'before':projectNotificationConfig(_0x9b43cd[_0x4a49fd(0x167)]),'after':_0x9b43cd['planned'],'dryRun':!![],'backend':{'method':_0x4a49fd(0x160),'path':UPDATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x4a65bf}},{'method':_0x4a49fd(0x160),'url':UPDATE_PATH});},async 'execute'(_0x29aa1e){const _0x3f11ea=a157_0x76994a;requireNotificationExplicitYes(_0x29aa1e);const _0x169f82=await prepareUpdate(_0x29aa1e),_0x133518=notificationLookupCommand(_0x29aa1e[_0x3f11ea(0x158)],_0x169f82[_0x3f11ea(0x167)][_0x3f11ea(0x15b)]);let _0x41085d=![];try{await updateNotificationChannelConfig(_0x169f82[_0x3f11ea(0x161)]);}catch(_0x1baaeb){if(!isPlatformTransportFailure(_0x1baaeb))throw safeApiFailure('update',_0x3f11ea(0x16a),_0x3f11ea(0x162)+_0x169f82['id']+'\x20with\x20'+_0x133518+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x41085d=!![];}let _0x3312aa;try{const _0x5a28b7=await getNotificationChannelConfig(_0x169f82['id'],_0x29aa1e['appCode']);_0x3312aa=normalizeExactNotificationConfig(_0x5a28b7,_0x169f82['id'],_0x29aa1e[_0x3f11ea(0x158)]);}catch{throw notificationError(_0x41085d?_0x3f11ea(0x157):'notification_config_update_verification_unavailable',_0x3f11ea(0x16c)+_0x169f82['id']+_0x3f11ea(0x168),_0x3f11ea(0x156)+_0x169f82['id']+_0x3f11ea(0x169)+_0x133518+';\x20do\x20not\x20resubmit\x20automatically.');}const _0x2bfb76=requestedSafeFieldsMatch(_0x169f82[_0x3f11ea(0x167)],_0x3312aa,_0x169f82[_0x3f11ea(0x16d)]);if(!_0x2bfb76['allMatch']||_0x41085d&&!_0x2bfb76[_0x3f11ea(0x16e)])throw notificationError(_0x41085d?'notification_config_update_outcome_unknown':'notification_config_update_verification_failed',_0x3f11ea(0x16c)+_0x169f82['id']+_0x3f11ea(0x154),_0x3f11ea(0x156)+_0x169f82['id']+_0x3f11ea(0x169)+_0x133518+';\x20do\x20not\x20resubmit\x20automatically.');const _0x389654=_0x41085d?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x3f11ea(0x170),'selector':notificationSelector(_0x3312aa),'before':projectNotificationConfig(_0x169f82[_0x3f11ea(0x167)]),'after':projectNotificationConfig(_0x3312aa),'dryRun':![],'backend':{'method':_0x3f11ea(0x160),'path':UPDATE_PATH},'warnings':_0x389654,'verification':{'status':_0x3f11ea(0x16b),'recoveredAfterUnknownResponse':_0x41085d,'verifiedFields':_0x2bfb76['verifiedFields'],'lookupCommand':_0x133518}},'message':_0x3f11ea(0x15a)+_0x3312aa['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xcae715,_0x5aa477){const _0x41d26b=a158_0x401f,_0x484665=_0xcae715();while(!![]){try{const _0x3880e3=parseInt(_0x41d26b(0xcf))/0x1*(-parseInt(_0x41d26b(0xce))/0x2)+parseInt(_0x41d26b(0xcd))/0x3+-parseInt(_0x41d26b(0xc7))/0x4+parseInt(_0x41d26b(0xc8))/0x5*(-parseInt(_0x41d26b(0xc6))/0x6)+-parseInt(_0x41d26b(0xcb))/0x7+parseInt(_0x41d26b(0xcc))/0x8+-parseInt(_0x41d26b(0xc9))/0x9*(-parseInt(_0x41d26b(0xca))/0xa);if(_0x3880e3===_0x5aa477)break;else _0x484665['push'](_0x484665['shift']());}catch(_0x54c45f){_0x484665['push'](_0x484665['shift']());}}}(a158_0x44c2,0x2e701));import{notificationConfigList}from'../../commands/notification/config-list.js';function a158_0x401f(_0x20fc2f,_0x4bb9bb){_0x20fc2f=_0x20fc2f-0xc6;const _0x44c238=a158_0x44c2();let _0x401fa4=_0x44c238[_0x20fc2f];return _0x401fa4;}function a158_0x44c2(){const _0x4e1e5e=['1366638XwDmYh','485024KcEZqE','929169ppVuwK','20eKJEvi','18624wrOHTd','12YWyBbG','1335332xYiTll','755455SawYZr','333rTpkOp','226310EsJrYf'];a158_0x44c2=function(){return _0x4e1e5e;};return a158_0x44c2();}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];
|