@lovrabet/rabetbase-cli 2.5.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.d.ts +3 -11
- 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.d.ts +0 -2
- 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 -2
- 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.d.ts +2 -0
- package/lib/framework/supported-flags.js +1 -0
- package/lib/framework/types.d.ts +2 -4
- 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 +12 -6
- package/skills/rabetbase/references/rabetbase-deployment-sync.md +51 -43
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
- package/skills/rabetbase.manifest.json +4 -3
- package/lib/config/deployment-sync.d.ts +0 -10
- package/lib/config/deployment-sync.js +0 -1
|
@@ -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
|
-
const
|
|
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(_0x4f6136,_0x36a7ea){const _0x558eed=a137_0x44c3,_0x2dd250=_0x4f6136();while(!![]){try{const _0x5a2777=parseInt(_0x558eed(0x203))/0x1+-parseInt(_0x558eed(0x213))/0x2+-parseInt(_0x558eed(0x229))/0x3*(parseInt(_0x558eed(0x200))/0x4)+-parseInt(_0x558eed(0x205))/0x5+-parseInt(_0x558eed(0x22f))/0x6*(-parseInt(_0x558eed(0x227))/0x7)+parseInt(_0x558eed(0x20c))/0x8*(parseInt(_0x558eed(0x230))/0x9)+parseInt(_0x558eed(0x1fb))/0xa;if(_0x5a2777===_0x36a7ea)break;else _0x2dd250['push'](_0x2dd250['shift']());}catch(_0x37f99b){_0x2dd250['push'](_0x2dd250['shift']());}}}(a137_0x437b,0xe5355));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(_0x53ede8){const _0x1f8cf4=a137_0x44c3,_0x513f1c=[];return _0x53ede8[_0x1f8cf4(0x1f1)]&&!isValidJsHttpsUrl(_0x53ede8['jsUrl'])&&_0x513f1c[_0x1f8cf4(0x1f2)]({'field':'jsUrl','message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x53ede8[_0x1f8cf4(0x233)]&&!isValidCssHttpsUrl(_0x53ede8[_0x1f8cf4(0x233)])&&_0x513f1c[_0x1f8cf4(0x1f2)]({'field':_0x1f8cf4(0x233),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x513f1c;}export async function runMenuUpdateCore(_0x5300c7,_0x1e40df,_0x20942b,_0x143a27={}){const _0x4d64f4=a137_0x44c3,_0x4c9b60=parseUpdateParamsFlag(_0x20942b),_0x4a4f9a=normalizeMode(_0x143a27[_0x4d64f4(0x1f3)]);validateSelection(_0x143a27[_0x4d64f4(0x225)]);const _0x1df203=[];if(_0x4c9b60[_0x4d64f4(0x1f1)])_0x1df203['push'](_0x4c9b60['jsUrl']);if(_0x4c9b60['cssUrl'])_0x1df203[_0x4d64f4(0x1f2)](_0x4c9b60[_0x4d64f4(0x233)]);const _0x50e827=validateParams(_0x4c9b60);if(_0x50e827['length']>0x0){const _0xe6579b=_0x50e827['map'](_0x3ac154=>_0x4d64f4(0x215)+_0x3ac154[_0x4d64f4(0x220)]+':\x20'+_0x3ac154[_0x4d64f4(0x224)])['join'](';\x20');throw new Error(_0x4d64f4(0x231)+_0xe6579b);}if(_0x1df203[_0x4d64f4(0x228)]===0x0)throw new Error(_0x4d64f4(0x211)+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x4d64f4(0x1fe)](process[_0x4d64f4(0x21e)]()),logger[_0x4d64f4(0x210)](_0x4d64f4(0x212),_0x4d64f4(0x209),{'appCode':_0x5300c7,'jsUrl':_0x4c9b60[_0x4d64f4(0x1f1)],'cssUrl':_0x4c9b60[_0x4d64f4(0x233)],'mode':_0x4a4f9a,'dryRun':_0x143a27[_0x4d64f4(0x219)]===!![]});if(_0x4c9b60[_0x4d64f4(0x1f1)]){const _0x25b276=await isUrlReachable(_0x4c9b60['jsUrl']);if(!_0x25b276)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x4c9b60[_0x4d64f4(0x1f1)]);}if(_0x4c9b60[_0x4d64f4(0x233)]){const _0x3cfd23=await isUrlReachable(_0x4c9b60[_0x4d64f4(0x233)]);if(!_0x3cfd23)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x4c9b60[_0x4d64f4(0x233)]);}const _0x5ed30f=await getOnlineMenuList(_0x5300c7,_0x1e40df),_0x4d44b2=_0x5ed30f['filter'](_0x1f057d=>_0x1f057d[_0x4d64f4(0x206)][_0x4d64f4(0x228)]>0x0),_0x2dfec5=selectMenusForUpdate(_0x4d44b2,_0x143a27[_0x4d64f4(0x225)]);if(_0x2dfec5[_0x4d64f4(0x228)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x143a27[_0x4d64f4(0x219)]===!![]};const _0x5ab47d=_0x2dfec5['map'](_0x23f953=>buildMenuUpdateDiff(_0x23f953,_0x4c9b60,_0x4a4f9a,_0x143a27['force']===!![],_0x143a27[_0x4d64f4(0x217)]));if(_0x143a27[_0x4d64f4(0x219)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x5ab47d};const _0x53c84c=await Promise[_0x4d64f4(0x20f)](_0x2dfec5[_0x4d64f4(0x214)]((_0x455bbf,_0x235bc5)=>updateMenuCdnUrl(_0x5300c7,_0x1e40df,{'id':_0x455bbf['id'],'label':_0x455bbf[_0x4d64f4(0x208)],'path':_0x455bbf['path'],'resources':_0x5ab47d[_0x235bc5][_0x4d64f4(0x21f)]['resources'],'extend':_0x455bbf['extend']??null,'loadScriptMode':_0x143a27['loadScriptMode']}))),_0x517ce2=_0x53c84c['filter'](_0x23159d=>_0x23159d['status']===_0x4d64f4(0x216))[_0x4d64f4(0x214)](_0x1fe736=>_0x1fe736[_0x4d64f4(0x204)]),_0x1759a1=_0x53c84c[_0x4d64f4(0x202)](_0x1a45a3=>_0x1a45a3[_0x4d64f4(0x22c)]===_0x4d64f4(0x1f5))['length'];return logger[_0x4d64f4(0x210)](_0x4d64f4(0x212),_0x4d64f4(0x20d),{'count':_0x2dfec5[_0x4d64f4(0x228)],'resources':_0x1df203}),{'updated':_0x517ce2[_0x4d64f4(0x228)],'failed':_0x1759a1,'skipped':![],'menus':_0x517ce2};}function validateSelection(_0x1a65c7){const _0x5af172=a137_0x44c3;if(!_0x1a65c7)throw new Error(_0x5af172(0x20b));if(_0x1a65c7['all']&&(_0x1a65c7[_0x5af172(0x207)][_0x5af172(0x228)]>0x0||_0x1a65c7['paths'][_0x5af172(0x228)]>0x0))throw new Error(_0x5af172(0x1f9));if(!_0x1a65c7[_0x5af172(0x21a)]&&_0x1a65c7[_0x5af172(0x207)][_0x5af172(0x228)]===0x0&&_0x1a65c7[_0x5af172(0x226)][_0x5af172(0x228)]===0x0)throw new Error(_0x5af172(0x20b));}export function selectMenusForUpdate(_0x184bf7,_0x5bee9c){const _0x2c3fd6=a137_0x44c3;validateSelection(_0x5bee9c);if(_0x5bee9c[_0x2c3fd6(0x21a)])return _0x184bf7;const _0x43fdbb=new Set(_0x184bf7[_0x2c3fd6(0x214)](_0x3b96f1=>_0x3b96f1['id'])),_0x279f37=new Set(_0x184bf7[_0x2c3fd6(0x214)](_0xdd8e32=>_0xdd8e32[_0x2c3fd6(0x20a)])),_0x5da672=_0x5bee9c['menuIds'][_0x2c3fd6(0x202)](_0x1bcad0=>!_0x43fdbb['has'](_0x1bcad0)),_0x365f47=_0x5bee9c[_0x2c3fd6(0x226)][_0x2c3fd6(0x202)](_0x45eadb=>!_0x279f37[_0x2c3fd6(0x22b)](_0x45eadb));if(_0x5da672['length']>0x0||_0x365f47['length']>0x0){const _0x14580c=[..._0x5da672[_0x2c3fd6(0x214)](_0x20720c=>String(_0x20720c)),..._0x365f47]['join'](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x14580c);}const _0x2e428b=new Set(_0x5bee9c[_0x2c3fd6(0x207)]),_0x4448e9=new Set(_0x5bee9c[_0x2c3fd6(0x226)]);return _0x184bf7[_0x2c3fd6(0x202)](_0x2a3ce6=>_0x2e428b[_0x2c3fd6(0x22b)](_0x2a3ce6['id'])||_0x4448e9['has'](_0x2a3ce6['path']));}function normalizeMode(_0x1d27de){const _0x457909=a137_0x44c3;if(!_0x1d27de)return _0x457909(0x22e);if(_0x1d27de==='replace'||_0x1d27de===_0x457909(0x22e))return _0x1d27de;throw new Error(_0x457909(0x1fa)+_0x1d27de+_0x457909(0x221));}function buildMenuUpdateDiff(_0xd87573,_0x4fcaa9,_0x346f36,_0x1ac196,_0x1c3aea){const _0x4dcfa5=a137_0x44c3,_0x4ba4d6=[..._0xd87573[_0x4dcfa5(0x206)]];_0x346f36===_0x4dcfa5(0x22e)&&assertUnambiguousPatchResources(_0xd87573,_0x4ba4d6,_0x4fcaa9);const _0x11a630=_0x346f36===_0x4dcfa5(0x22e)?patchResources(_0x4ba4d6,_0x4fcaa9):replaceResources(_0x4fcaa9),_0x53de7d=[],_0x16bf22=_0x4ba4d6['some'](isJsResource),_0x423b2f=_0x11a630[_0x4dcfa5(0x223)](isJsResource);if(_0x16bf22&&!_0x423b2f){const _0x16864e=_0x4dcfa5(0x20e)+_0xd87573[_0x4dcfa5(0x208)]+'\x22\x20('+_0xd87573[_0x4dcfa5(0x20a)]+_0x4dcfa5(0x218)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x1ac196)throw new Error(_0x16864e);_0x53de7d[_0x4dcfa5(0x1f2)](_0x16864e);}const _0x27d092=_0x4ba4d6['some'](isCssResource),_0x9398ad=_0x11a630['some'](isCssResource);_0x27d092&&!_0x9398ad&&_0x53de7d['push'](_0x4dcfa5(0x1f4)+_0xd87573[_0x4dcfa5(0x208)]+_0x4dcfa5(0x22d)+_0xd87573[_0x4dcfa5(0x20a)]+').');const _0x22b03c=typeof _0xd87573[_0x4dcfa5(0x1f8)]?.['loadScriptMode']===_0x4dcfa5(0x1f6)?_0xd87573[_0x4dcfa5(0x1f8)][_0x4dcfa5(0x217)]:null,_0x112304=_0x1c3aea?{'loadScriptMode':_0x22b03c}:{},_0x39a6a5=_0x1c3aea?{'loadScriptMode':_0x1c3aea}:{};return{'id':_0xd87573['id'],'label':_0xd87573[_0x4dcfa5(0x208)],'path':_0xd87573['path'],'mode':_0x346f36,'before':{'resources':_0x4ba4d6,..._0x112304},'after':{'resources':_0x11a630,..._0x39a6a5},'warnings':_0x53de7d};}function replaceResources(_0x35cfa6){const _0x2b1188=a137_0x44c3;return[_0x35cfa6[_0x2b1188(0x1f1)],_0x35cfa6[_0x2b1188(0x233)]][_0x2b1188(0x202)](_0x557041=>!!_0x557041);}function assertUnambiguousPatchResources(_0x2f5c35,_0x44bef2,_0x47182d){const _0x538229=a137_0x44c3,_0x1c013d=_0x44bef2[_0x538229(0x202)](isJsResource)[_0x538229(0x228)];if(_0x47182d[_0x538229(0x1f1)]&&_0x1c013d>0x1)throw new Error(_0x538229(0x234)+_0x1c013d+_0x538229(0x21b)+_0x2f5c35[_0x538229(0x208)]+_0x538229(0x22d)+_0x2f5c35['path']+')\x20'+_0x538229(0x1fd));const _0x497822=_0x44bef2[_0x538229(0x202)](isCssResource)['length'];if(_0x47182d[_0x538229(0x233)]&&_0x497822>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x497822+_0x538229(0x201)+_0x2f5c35[_0x538229(0x208)]+_0x538229(0x22d)+_0x2f5c35[_0x538229(0x20a)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x2eeaa5,_0x92a0e){const _0x4644f3=a137_0x44c3;let _0x4068e4=![],_0x281b12=![];const _0x1e43b8=[];for(const _0x378806 of _0x2eeaa5){if(isJsResource(_0x378806)){if(_0x92a0e[_0x4644f3(0x1f1)]&&!_0x4068e4)_0x1e43b8[_0x4644f3(0x1f2)](_0x92a0e[_0x4644f3(0x1f1)]),_0x4068e4=!![];else!_0x92a0e[_0x4644f3(0x1f1)]&&_0x1e43b8['push'](_0x378806);continue;}if(isCssResource(_0x378806)){if(_0x92a0e[_0x4644f3(0x233)]&&!_0x281b12)_0x1e43b8[_0x4644f3(0x1f2)](_0x92a0e[_0x4644f3(0x233)]),_0x281b12=!![];else!_0x92a0e[_0x4644f3(0x233)]&&_0x1e43b8[_0x4644f3(0x1f2)](_0x378806);continue;}_0x1e43b8[_0x4644f3(0x1f2)](_0x378806);}return _0x92a0e[_0x4644f3(0x1f1)]&&!_0x4068e4&&_0x1e43b8['unshift'](_0x92a0e[_0x4644f3(0x1f1)]),_0x92a0e[_0x4644f3(0x233)]&&!_0x281b12&&_0x1e43b8[_0x4644f3(0x1f2)](_0x92a0e[_0x4644f3(0x233)]),_0x1e43b8;}function isJsResource(_0x160011){const _0x1b680c=a137_0x44c3;return stripQuery(_0x160011)[_0x1b680c(0x21d)]()[_0x1b680c(0x1ff)](_0x1b680c(0x22a));}function a137_0x44c3(_0x1adc48,_0x4cd63d){_0x1adc48=_0x1adc48-0x1f1;const _0x437b80=a137_0x437b();let _0x44c3ad=_0x437b80[_0x1adc48];return _0x44c3ad;}function a137_0x437b(){const _0x3327aa=['extend','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','Invalid\x20--mode:\x20','9433390OyWMRR','.css','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','setLogPath','endsWith','1517204zsNhPq','\x20existing\x20CSS\x20resources\x20for\x20\x22','filter','1526406SUqaZA','value','8116315KuwJBQ','resources','menuIds','label','Start\x20non-interactive\x20menu\x20asset\x20update','path','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','8qxmDCx','Menu\x20asset\x20update\x20completed','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','allSettled','info','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','menu-asset-update','2524350paspsx','map','--params.','fulfilled','loadScriptMode',').\x20','dryRun','all','\x20existing\x20JS\x20resources\x20for\x20\x22','trim','toLowerCase','cwd','after','field','.\x20Allowed\x20values:\x20replace,\x20patch','object','some','message','selection','paths','3985471kkOdXS','length','6qLzYOO','.js','has','status','\x22\x20(','patch','18SnwJyt','3645657WkKqqX','Invalid\x20--params:\x20','parse','cssUrl','menu\x20asset-update\x20cannot\x20patch\x20','jsUrl','push','mode','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','rejected','string','split'];a137_0x437b=function(){return _0x3327aa;};return a137_0x437b();}function isCssResource(_0x2763f2){const _0x189c93=a137_0x44c3;return stripQuery(_0x2763f2)[_0x189c93(0x21d)]()[_0x189c93(0x1ff)](_0x189c93(0x1fc));}function stripQuery(_0x2b50d5){const _0x39da4e=a137_0x44c3;return _0x2b50d5[_0x39da4e(0x1f7)]('?')[0x0]??_0x2b50d5;}function parseUpdateParamsFlag(_0x3e95ee){const _0x3b0190=a137_0x44c3;if(!_0x3e95ee||typeof _0x3e95ee!==_0x3b0190(0x1f6))return{};try{const _0xf464af=JSON[_0x3b0190(0x232)](_0x3e95ee);if(typeof _0xf464af!==_0x3b0190(0x222)||_0xf464af===null||Array['isArray'](_0xf464af))return{};return{'jsUrl':typeof _0xf464af[_0x3b0190(0x1f1)]===_0x3b0190(0x1f6)?_0xf464af['jsUrl'][_0x3b0190(0x21c)]():undefined,'cssUrl':typeof _0xf464af[_0x3b0190(0x233)]===_0x3b0190(0x1f6)?_0xf464af[_0x3b0190(0x233)][_0x3b0190(0x21c)]():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
|
-
(function(
|
|
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
|
-
|
|
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_0x5bc500=a140_0x4ea8;(function(_0x1fd2d6,_0x3c72e6){const _0x507064=a140_0x4ea8,_0x1cd569=_0x1fd2d6();while(!![]){try{const _0x32373d=-parseInt(_0x507064(0x211))/0x1+parseInt(_0x507064(0x226))/0x2+parseInt(_0x507064(0x1da))/0x3+-parseInt(_0x507064(0x23c))/0x4+-parseInt(_0x507064(0x206))/0x5*(parseInt(_0x507064(0x1f0))/0x6)+parseInt(_0x507064(0x1fb))/0x7+parseInt(_0x507064(0x20a))/0x8*(parseInt(_0x507064(0x227))/0x9);if(_0x32373d===_0x3c72e6)break;else _0x1cd569['push'](_0x1cd569['shift']());}catch(_0x2a6209){_0x1cd569['push'](_0x1cd569['shift']());}}}(a140_0x43d2,0x21d97));function a140_0x4ea8(_0x1086f7,_0x118aab){_0x1086f7=_0x1086f7-0x1c9;const _0x43d264=a140_0x43d2();let _0x4ea828=_0x43d264[_0x1086f7];return _0x4ea828;}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':a140_0x5bc500(0x210)}];export const menuVisibilityUpdate={'service':'menu','command':a140_0x5bc500(0x23a),'description':a140_0x5bc500(0x20e),'risk':a140_0x5bc500(0x204),'structuredErrors':!![],'flags':[{'name':a140_0x5bc500(0x1d1),'type':a140_0x5bc500(0x207),'description':a140_0x5bc500(0x1ec)},{'name':a140_0x5bc500(0x1eb),'type':'string','description':a140_0x5bc500(0x231)},{'name':a140_0x5bc500(0x1cf),'type':a140_0x5bc500(0x1f7),'required':!![],'description':a140_0x5bc500(0x223)},{'name':a140_0x5bc500(0x1d2),'type':'boolean','description':a140_0x5bc500(0x1f5)},{'name':a140_0x5bc500(0x212),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x258cc2){parseInput(_0x258cc2),requireExplicitYes(_0x258cc2);},async 'dryRun'(_0x468905){const _0x494689=a140_0x5bc500,_0x34beb9=await buildPlan(_0x468905,!![]),_0xb09748=_0x34beb9[_0x494689(0x1d5)]['plannedActions']?.[_0x494689(0x1e1)]??0x0,_0x1dc268=_0x34beb9['plan']['targets'][_0x494689(0x1e1)]-_0xb09748;return menuDryRunResult(_0x34beb9[_0x494689(0x1d5)],{'method':_0x494689(0x1d4),'url':_0x494689(0x210),'body':{'updates':_0x34beb9[_0x494689(0x1d5)][_0x494689(0x1f6)]?.[_0x494689(0x237)](_0x34f09a=>_0x34f09a[_0x494689(0x1fe)])??[]},'description':_0x494689(0x1ed)+_0xb09748+_0x494689(0x1ce)+_0x1dc268+_0x494689(0x1df)});},async 'execute'(_0x1903a3){const _0x45063e=a140_0x5bc500;requireExplicitYes(_0x1903a3);const _0x450b40=await buildPlan(_0x1903a3,![]);await recheckMutationSnapshot(_0x1903a3,_0x450b40['plan'],_0x45063e(0x220));const _0x41459c=[],_0x4d2089=[],_0x34d492=[];for(const _0x1cedb0 of _0x450b40[_0x45063e(0x1d5)][_0x45063e(0x22b)]){if(_0x1cedb0['before'][_0x45063e(0x1cf)]===_0x450b40['plan'][_0x45063e(0x1ea)]){_0x41459c['push']({'id':_0x1cedb0['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x1903a3[_0x45063e(0x1d7)],_0x1903a3[_0x45063e(0x205)],{'id':_0x1cedb0['id'],'visible':_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x1ea)]}),_0x41459c[_0x45063e(0x214)]({'id':_0x1cedb0['id'],'updated':!![],'skipped':![]});}catch(_0x522172){const _0xc6b07f=mapMenuApiError(_0x522172,'update\x20visibility\x20for',_0x1cedb0['id']);if(isMenuResponseLoss(_0x522172)&&_0xc6b07f[_0x45063e(0x1dd)]!==_0x45063e(0x232)){_0x34d492['push'](_0x1cedb0['id']);continue;}_0x4d2089[_0x45063e(0x214)]({'id':_0x1cedb0['id'],'stage':_0x45063e(0x233),'code':_0xc6b07f[_0x45063e(0x1dd)],'message':_0xc6b07f[_0x45063e(0x22e)]});}}let _0x296ef2;try{_0x296ef2=await fetchMenuSnapshot(_0x1903a3[_0x45063e(0x1d7)],_0x1903a3['cookie']);}catch(_0x542ab3){const _0x19a91d=describeMenuErrorCause(_0x542ab3,_0x45063e(0x200)),_0x350f8a=_0x34d492[_0x45063e(0x237)](_0x225221=>({'id':_0x225221,'stage':_0x45063e(0x22a),'code':_0x45063e(0x1c9),'message':_0x45063e(0x1ee)+_0x225221+_0x45063e(0x1f2),'requestedStateConfirmed':![],'recovered':![]})),_0x569b19={'stage':'verification','code':_0x45063e(0x1c9),'message':_0x45063e(0x1e2),'targetIds':_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x22b)][_0x45063e(0x237)](_0x48abdc=>_0x48abdc['id']),'requestedStateConfirmed':![],..._0x19a91d};throw menuFailure(asVerificationError(_0x542ab3,_0x45063e(0x22f)),_0x450b40[_0x45063e(0x1d5)],{'stage':_0x45063e(0x236),'succeeded':_0x41459c,'failedRecords':[..._0x4d2089,..._0x350f8a,_0x569b19],'warnings':[_0x45063e(0x1fc)],'verification':{'status':_0x45063e(0x1e6),'recoveredCount':0x0,'lookupCommand':_0x45063e(0x1e5)}});}const _0x2efe78=[];for(const _0x5151ab of _0x41459c){const _0x9b8c03=Number(_0x5151ab['id']),_0x2b0199=_0x450b40[_0x45063e(0x1e3)][_0x45063e(0x1e7)](_0x9b8c03),_0x2e8919=_0x296ef2[_0x45063e(0x234)][_0x45063e(0x1e7)](_0x9b8c03);try{verifyVisibilityUpdate(_0x2b0199,_0x2e8919,_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x1ea)]);}catch(_0x5b89a1){const _0xe6334b=asVerificationError(_0x5b89a1,'Menu\x20'+_0x9b8c03+_0x45063e(0x20c));_0x2efe78[_0x45063e(0x214)]({'id':_0x9b8c03,'stage':_0x45063e(0x236),'code':_0xe6334b[_0x45063e(0x1dd)],'message':_0xe6334b[_0x45063e(0x22e)],'requestedStateConfirmed':![]});}}for(const _0x4c5694 of _0x34d492){const _0x837ef5=_0x450b40['beforeById'][_0x45063e(0x1e7)](_0x4c5694),_0x4a39e5=_0x296ef2['byId'][_0x45063e(0x1e7)](_0x4c5694);try{verifyVisibilityUpdate(_0x837ef5,_0x4a39e5,_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x1ea)]),_0x41459c[_0x45063e(0x214)]({'id':_0x4c5694,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x3ad714){const _0x1cb405=asVerificationError(_0x3ad714,'Response\x20was\x20lost\x20and\x20menu\x20'+_0x4c5694+_0x45063e(0x230));_0x2efe78['push']({'id':_0x4c5694,'stage':_0x45063e(0x22a),'code':_0x1cb405[_0x45063e(0x1dd)],'message':_0x1cb405[_0x45063e(0x22e)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2efe78[_0x45063e(0x1e1)]>0x0){const _0x48a72f=_0x2efe78['map'](_0x198f5f=>Number(_0x198f5f['id'])),_0x329c09=_0x41459c[_0x45063e(0x1ff)](_0x3e5d93=>_0x3e5d93[_0x45063e(0x1fd)]===!![])[_0x45063e(0x1e1)],_0x27eed2=menuError(_0x45063e(0x1c9),_0x45063e(0x1cc)+_0x48a72f[_0x45063e(0x1cd)](',\x20')+'.',_0x45063e(0x1de));throw menuFailure(_0x27eed2,_0x450b40[_0x45063e(0x1d5)],{'stage':_0x45063e(0x236),'succeeded':_0x41459c,'failedRecords':[..._0x4d2089,..._0x2efe78],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x45063e(0x1e6),..._0x48a72f[_0x45063e(0x1e1)]===0x1?{'targetId':_0x48a72f[0x0]}:{'targetIds':_0x48a72f},'recoveredCount':_0x329c09,'lookupCommand':_0x45063e(0x1e5)}});}const _0x5e49f1=_0x41459c['filter'](_0x53f939=>_0x53f939[_0x45063e(0x1e4)]===!![])[_0x45063e(0x1e1)],_0x4f7821=_0x41459c['length']-_0x5e49f1,_0x523620={..._0x450b40['plan'],'succeeded':_0x41459c,'failed':_0x4d2089,'warnings':_0x4d2089[_0x45063e(0x1e1)]>0x0?[..._0x450b40[_0x45063e(0x1d5)]['warnings'],_0x45063e(0x1cb)]:_0x450b40['plan']['warnings'],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x296ef2[_0x45063e(0x1f1)],'matchesRequestedState':_0x4d2089[_0x45063e(0x1e1)]===0x0,'recoveredCount':_0x34d492[_0x45063e(0x1e1)]}};return{'ok':_0x4d2089['length']===0x0,'data':_0x523620,'message':_0x4d2089[_0x45063e(0x1e1)]===0x0?_0x45063e(0x217)+_0x5e49f1+_0x45063e(0x1d8)+_0x4f7821+_0x45063e(0x1df):'Menu\x20visibility\x20update\x20completed:\x20'+_0x5e49f1+_0x45063e(0x215)+_0x4f7821+'\x20skipped,\x20'+_0x4d2089[_0x45063e(0x1e1)]+'\x20failed.'};}};function parseInput(_0x24c281){const _0x171019=a140_0x5bc500,_0xed16fd=parseMenuIds(_0x24c281[_0x171019(0x1dc)](_0x171019(0x1d1))),_0x27f430=parseCsv(_0x24c281[_0x171019(0x1dc)](_0x171019(0x1eb)));if(_0xed16fd[_0x171019(0x1e1)]===0x0&&_0x27f430[_0x171019(0x1e1)]===0x0)throw CliErrors[_0x171019(0x1d3)]('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x121cd6=parseBooleanFlag(_0x24c281,_0x171019(0x1cf),!![]),_0x5c8419=parseBooleanFlag(_0x24c281,'expect-visible',![]);let _0x4d0891;if(hasFlag(_0x24c281,_0x171019(0x212))){_0x4d0891=_0x24c281[_0x171019(0x21e)](_0x171019(0x212));if(!Number[_0x171019(0x21d)](_0x4d0891)||_0x4d0891<0x0)throw CliErrors['validation']('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0xed16fd,'paths':_0x27f430,'visible':_0x121cd6,'expectVisible':_0x5c8419,'expectedCount':_0x4d0891};}function a140_0x43d2(){const _0x1587b2=['body','filter','verify\x20menu\x20visibility\x20update','rawFlags','datasetCode','expectedCount','high-risk-write','cookie','505eVuIvI','string','pageId','menu_expected_count_mismatch','88848GoUzVC','datasetId','\x20visibility\x20update\x20could\x20not\x20be\x20verified','\x20menu(s),\x20expected\x20','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','resources','/smartapi/menu/update','35729YTffqI','expected-count','depth','push','\x20updated,\x20','some','Updated\x20visibility\x20for\x20','values','childrenCount','path','Menu\x20id\x20selector(s)\x20not\x20found:\x20','flagMissing','isSafeInteger','num','childrenIds','update\x20menu\x20visibility','parentId','stringify','Requested\x20menu\x20visibility','Selected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','47086cTsBry','99QOLMkw','sort','\x20must\x20be\x20true\x20or\x20false.','update-recovery','targets','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','true','message','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','menu_permission_denied','update','byId','menus','verification','map','resourcesValid','Menu\x20','visibility-update','has','971660IHirOa','menu_selector_ambiguous','menu_verification_failed','menuIds','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','join','\x20menu(s);\x20skip\x20','visible','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','menu-ids','expect-visible','validation','POST','plan','trim','appCode','\x20menu(s);\x20skipped\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','770496zUbhdD','set','str','code','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','\x20unchanged\x20menu(s).','pageType','length','Final\x20menu\x20visibility\x20readback\x20failed.','beforeById','updated','rabetbase\x20menu\x20list\x20--format\x20compress','failed','get','label','isArray','requestedVisible','paths','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','Would\x20update\x20visibility\x20for\x20','Response\x20was\x20lost\x20for\x20menu\x20','menu_selector_not_found','8130MCnLev','hash','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','false','split','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','plannedActions','boolean','type','Menu\x20path\x20selector\x20not\x20found:\x20','url','1061235ftBWUw','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','recovered'];a140_0x43d2=function(){return _0x1587b2;};return a140_0x43d2();}async function buildPlan(_0x3edd9c,_0x3f2d20){const _0x385403=a140_0x5bc500,_0x4703cd=parseInput(_0x3edd9c),_0x3dae59=await fetchMutationSnapshot(_0x3edd9c,_0x385403(0x220)),_0x14fc47=selectTargets(_0x3dae59[_0x385403(0x235)],_0x4703cd[_0x385403(0x1ca)],_0x4703cd[_0x385403(0x1eb)]);if(_0x4703cd[_0x385403(0x203)]!==undefined&&_0x14fc47[_0x385403(0x1e1)]!==_0x4703cd[_0x385403(0x203)])throw menuError(_0x385403(0x209),_0x385403(0x224)+_0x14fc47[_0x385403(0x1e1)]+_0x385403(0x20d)+_0x4703cd[_0x385403(0x203)]+'.',_0x385403(0x1d9));if(_0x4703cd['expectVisible']!==undefined){const _0x34bf49=_0x14fc47['filter'](_0x1dca98=>_0x1dca98[_0x385403(0x1cf)]!==_0x4703cd['expectVisible']);if(_0x34bf49['length']>0x0)throw menuError('menu_state_drift','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x34bf49[_0x385403(0x237)](_0x52c41b=>_0x52c41b['id'])[_0x385403(0x1cd)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x716f5e=_0x14fc47[_0x385403(0x237)](_0x8c9186=>({'id':_0x8c9186['id'],'label':_0x8c9186[_0x385403(0x1e8)],'path':_0x8c9186['path'],'before':{'visible':_0x8c9186[_0x385403(0x1cf)]},'after':{'visible':_0x4703cd[_0x385403(0x1cf)]}})),_0x3b5928=_0x716f5e[_0x385403(0x1ff)](_0x46b7cc=>_0x46b7cc['before'][_0x385403(0x1cf)]!==_0x4703cd[_0x385403(0x1cf)])['map'](_0x365996=>({'stage':'update-menu-visibility','method':_0x385403(0x1d4),'path':_0x385403(0x210),'body':{'appCode':_0x3edd9c[_0x385403(0x1d7)],'id':_0x365996['id'],'visible':_0x4703cd[_0x385403(0x1cf)]}})),_0x4fc05b=mutationResult({'operation':_0x385403(0x23a),'selector':{'menuIds':_0x4703cd[_0x385403(0x1ca)],'paths':_0x4703cd[_0x385403(0x1eb)]},'before':{'menus':_0x14fc47[_0x385403(0x237)](_0x911f4d=>({'id':_0x911f4d['id'],'path':_0x911f4d[_0x385403(0x21a)],'visible':_0x911f4d[_0x385403(0x1cf)]}))},'after':{'menus':_0x14fc47['map'](_0x45ad12=>({'id':_0x45ad12['id'],'path':_0x45ad12[_0x385403(0x21a)],'visible':_0x4703cd[_0x385403(0x1cf)]}))},'dryRun':_0x3f2d20,'backend':[...BACKEND],'plannedActions':_0x3b5928,'snapshotHash':_0x3dae59[_0x385403(0x1f1)],'warnings':_0x3b5928['length']===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x4fc05b,'requestedVisible':_0x4703cd[_0x385403(0x1cf)],'targets':_0x716f5e},'beforeById':new Map(_0x14fc47[_0x385403(0x237)](_0x56bf53=>[_0x56bf53['id'],_0x56bf53]))};}function selectTargets(_0x25a107,_0x52ee16,_0xbf798d){const _0x21b96e=a140_0x5bc500,_0x41f835=new Map(_0x25a107[_0x21b96e(0x237)](_0x1176b5=>[_0x1176b5['id'],_0x1176b5])),_0x241b62=new Map(),_0x325f67=_0x52ee16[_0x21b96e(0x1ff)](_0x3a785d=>!_0x41f835[_0x21b96e(0x23b)](_0x3a785d));if(_0x325f67['length']>0x0)throw menuError(_0x21b96e(0x1ef),_0x21b96e(0x21b)+_0x325f67[_0x21b96e(0x1cd)](',\x20')+'.',_0x21b96e(0x225));for(const _0x1354ef of _0x52ee16){_0x241b62[_0x21b96e(0x1db)](_0x1354ef,_0x41f835[_0x21b96e(0x1e7)](_0x1354ef));}for(const _0x3287aa of _0xbf798d){const _0x56b00c=_0x25a107[_0x21b96e(0x1ff)](_0x1475a8=>_0x1475a8[_0x21b96e(0x21a)]===_0x3287aa);if(_0x56b00c[_0x21b96e(0x1e1)]===0x0)throw menuError(_0x21b96e(0x1ef),_0x21b96e(0x1f9)+JSON[_0x21b96e(0x222)](_0x3287aa)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x56b00c[_0x21b96e(0x1e1)]>0x1)throw menuError(_0x21b96e(0x23d),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x21b96e(0x222)](_0x3287aa)+'.',_0x21b96e(0x1d0)+_0x56b00c['map'](_0x4d9411=>_0x4d9411['id'])['join'](',\x20')+'.');const _0x571ad4=_0x56b00c[0x0];_0x241b62['set'](_0x571ad4['id'],_0x571ad4);}return[..._0x241b62[_0x21b96e(0x218)]()];}function parseMenuIds(_0x26f0c5){const _0x7f3005=a140_0x5bc500,_0x38f4b0=parseCsv(_0x26f0c5),_0xad4dcc=_0x38f4b0[_0x7f3005(0x237)](Number);if(_0xad4dcc[_0x7f3005(0x216)](_0x5eaf82=>!Number[_0x7f3005(0x21d)](_0x5eaf82)||_0x5eaf82<=0x0))throw CliErrors[_0x7f3005(0x1d3)]('--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.');return[...new Set(_0xad4dcc)];}function parseCsv(_0x4b5747){const _0x5013c3=a140_0x5bc500;return[...new Set(_0x4b5747[_0x5013c3(0x1f4)](',')[_0x5013c3(0x237)](_0x342c7a=>_0x342c7a[_0x5013c3(0x1d6)]())[_0x5013c3(0x1ff)](Boolean))];}function parseBooleanFlag(_0x350b9f,_0x5b4150,_0x803a3c){const _0x5a3bf7=a140_0x5bc500;if(!hasFlag(_0x350b9f,_0x5b4150)){if(_0x803a3c)throw CliErrors[_0x5a3bf7(0x21c)](_0x5b4150);return undefined;}const _0x5949b2=_0x350b9f[_0x5a3bf7(0x201)][_0x5b4150];if(_0x5949b2===!![]||_0x5949b2===![])return _0x5949b2;if(_0x5949b2===_0x5a3bf7(0x22d))return!![];if(_0x5949b2===_0x5a3bf7(0x1f3))return![];throw CliErrors[_0x5a3bf7(0x1d3)]('--'+_0x5b4150+_0x5a3bf7(0x229));}function verifyVisibilityUpdate(_0x64d2f2,_0x4c3498,_0x9b81a5){const _0x563db6=a140_0x5bc500;assertVerified(!!_0x4c3498,_0x563db6(0x239)+_0x64d2f2['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x4c3498['visible']===_0x9b81a5,_0x563db6(0x239)+_0x64d2f2['id']+_0x563db6(0x22c));const _0x230598=[['id',_0x4c3498['id'],_0x64d2f2['id']],[_0x563db6(0x221),_0x4c3498[_0x563db6(0x221)],_0x64d2f2['parentId']],['depth',_0x4c3498[_0x563db6(0x213)],_0x64d2f2['depth']],['label',_0x4c3498[_0x563db6(0x1e8)],_0x64d2f2[_0x563db6(0x1e8)]],['path',_0x4c3498['path'],_0x64d2f2[_0x563db6(0x21a)]],[_0x563db6(0x1fa),_0x4c3498['url'],_0x64d2f2[_0x563db6(0x1fa)]],[_0x563db6(0x1f8),_0x4c3498[_0x563db6(0x1f8)],_0x64d2f2[_0x563db6(0x1f8)]],['sort',_0x4c3498['sort'],_0x64d2f2[_0x563db6(0x228)]],[_0x563db6(0x20f),_0x4c3498['resources'],_0x64d2f2[_0x563db6(0x20f)]],['resourcesValid',_0x4c3498[_0x563db6(0x238)],_0x64d2f2[_0x563db6(0x238)]],[_0x563db6(0x21f),_0x4c3498[_0x563db6(0x21f)],_0x64d2f2[_0x563db6(0x21f)]],['childrenCount',_0x4c3498[_0x563db6(0x219)],_0x64d2f2[_0x563db6(0x219)]],['pageId',_0x4c3498[_0x563db6(0x208)],_0x64d2f2[_0x563db6(0x208)]],['pageType',_0x4c3498[_0x563db6(0x1e0)],_0x64d2f2[_0x563db6(0x1e0)]],['modelType',_0x4c3498['modelType'],_0x64d2f2['modelType']],[_0x563db6(0x20b),_0x4c3498[_0x563db6(0x20b)],_0x64d2f2[_0x563db6(0x20b)]],['datasetCode',_0x4c3498[_0x563db6(0x202)],_0x64d2f2['datasetCode']]];for(const [_0x5c56ee,_0x5007d3,_0x2e452d]of _0x230598){assertVerified(sameValue(_0x5007d3,_0x2e452d),'Menu\x20'+_0x64d2f2['id']+'\x20'+_0x5c56ee+'\x20changed\x20unexpectedly.');}}function sameValue(_0x42c796,_0x440d2c){const _0x18c2b6=a140_0x5bc500;if(Array['isArray'](_0x42c796)||Array[_0x18c2b6(0x1e9)](_0x440d2c))return JSON[_0x18c2b6(0x222)](_0x42c796)===JSON['stringify'](_0x440d2c);return _0x42c796===_0x440d2c;}
|
|
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
|
-
function
|
|
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
|
-
|
|
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
|
-
|
|
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];
|