@lovrabet/rabetbase-cli 2.5.0 → 2.5.1-beta.1
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.d.ts +7 -0
- 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.d.ts +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-routing.d.ts +30 -0
- package/lib/config/project-routing.js +1 -0
- package/lib/config/schema.d.ts +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.d.ts +7 -2
- 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.d.ts +2 -2
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +115 -0
- package/lib/constant/routing-profile.js +1 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -2
- package/skills/rabetbase/SKILL.md +10 -5
- package/skills/rabetbase/guides/frontend-development.md +2 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
- package/skills/rabetbase/guides/typescript-sdk.md +42 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
- package/skills/rabetbase/references/rabetbase-config.md +9 -5
- package/skills/rabetbase/references/rabetbase-init.md +11 -5
- package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/README.md +13 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29bba7,_0x5a6a14){const _0x5cc3b5=a129_0x542a,_0x4e133d=_0x29bba7();while(!![]){try{const _0x17a20b=parseInt(_0x5cc3b5(0xe6))/0x1*(-parseInt(_0x5cc3b5(0xd0))/0x2)+-parseInt(_0x5cc3b5(0xc6))/0x3*(parseInt(_0x5cc3b5(0xd3))/0x4)+-parseInt(_0x5cc3b5(0xd6))/0x5+parseInt(_0x5cc3b5(0xe5))/0x6*(parseInt(_0x5cc3b5(0xd9))/0x7)+parseInt(_0x5cc3b5(0xda))/0x8*(parseInt(_0x5cc3b5(0xc7))/0x9)+parseInt(_0x5cc3b5(0xbd))/0xa*(parseInt(_0x5cc3b5(0xd4))/0xb)+-parseInt(_0x5cc3b5(0xc8))/0xc;if(_0x17a20b===_0x5a6a14)break;else _0x4e133d['push'](_0x4e133d['shift']());}catch(_0x279b85){_0x4e133d['push'](_0x4e133d['shift']());}}}(a129_0x3abb,0x664bf));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 a129_0x588f1d,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x3b202c,_0x2df684){const _0x305517=a129_0x542a,_0x264bd8=getEnv();logger[_0x305517(0xe4)](_0x305517(0xe0),isProduction(_0x264bd8)?_0x305517(0xca)+_0x3b202c+')':_0x305517(0xc2)+_0x3b202c+')');const _0x3e776d=await fetchMenuSnapshot(_0x3b202c,_0x2df684,{'verbose':!![]});return logger[_0x305517(0xe4)](_0x305517(0xe0),_0x305517(0xd1)+_0x3e776d[_0x305517(0xc0)]+_0x305517(0xde)),_0x3e776d[_0x305517(0xe1)][_0x305517(0xc3)](toProcessedMenuItem);}export async function createMenu(_0x24ed42,_0x149589,_0x2301ce){const _0x5954e1=a129_0x542a;logger[_0x5954e1(0xe4)](_0x5954e1(0xd5),_0x5954e1(0xbe)+_0x2301ce[_0x5954e1(0xcd)]+'\x20('+_0x2301ce[_0x5954e1(0xbb)]+')');const _0x52d7af={'appCode':_0x24ed42,'type':_0x5954e1(0xcc),'sort':0x0,'extend':{'loadScriptMode':_0x5954e1(0xcb),'resources':_0x2301ce[_0x5954e1(0xe7)]?JSON[_0x5954e1(0xc5)](_0x2301ce[_0x5954e1(0xe7)]):undefined},..._0x2301ce},_0xf5f978=await createMenuRecord(_0x52d7af,_0x149589,_0x5954e1(0xc9)+_0x2301ce[_0x5954e1(0xcd)]+'\x22');return logger[_0x5954e1(0xe4)](_0x5954e1(0xd5),_0x5954e1(0xd2)+_0x2301ce['label']),_0xf5f978;}async function createSingleMenu(_0x26d5a1,_0x5007d9,_0x2b468b,_0x30f68f){const _0x19d104=a129_0x542a,_0x540302={'appCode':_0x26d5a1,'type':_0x19d104(0xcc),'sort':0x0,'extend':{'loadScriptMode':_0x19d104(0xcb),'resources':_0x30f68f?JSON[_0x19d104(0xc5)](_0x30f68f):undefined},'label':_0x2b468b[_0x19d104(0xcd)],'path':_0x2b468b[_0x19d104(0xbb)]},_0x456c73=await createMenuRecord(_0x540302,_0x5007d9,'Create\x20menu\x20\x22'+_0x2b468b[_0x19d104(0xcd)]+'\x22');return logger[_0x19d104(0xe4)](_0x19d104(0xd5),'Menu\x20created\x20successfully:\x20'+_0x2b468b[_0x19d104(0xcd)]),_0x456c73;}export async function createMenus(_0x5eeb98,_0x1d7ab7,_0xb28de5,_0x24c5d9){const _0x9bca57=a129_0x542a;logger[_0x9bca57(0xe4)](_0x9bca57(0xbc),_0x9bca57(0xdf)+_0xb28de5[_0x9bca57(0xd7)]);const _0x22e3d9=await Promise['all'](_0xb28de5[_0x9bca57(0xc3)](_0x399954=>createSingleMenu(_0x5eeb98,_0x1d7ab7,_0x399954,_0x24c5d9)));return logger[_0x9bca57(0xe4)]('create-menus',_0x9bca57(0xbf)+_0xb28de5[_0x9bca57(0xd7)]),_0x22e3d9;}export async function updateMenuCdnUrl(_0x1a292f,_0x24da20,_0x1d5440){const _0x36144b=a129_0x542a;logger[_0x36144b(0xe4)](_0x36144b(0xcf),_0x36144b(0xdd)+_0x1d5440[_0x36144b(0xcd)]+'\x20('+_0x1d5440[_0x36144b(0xbb)]+')');const _0x5e7a9e={'id':_0x1d5440['id'],'appCode':_0x1a292f,'extend':{..._0x1d5440[_0x36144b(0xce)]??{},..._0x1d5440[_0x36144b(0xc1)]?{'loadScriptMode':_0x1d5440['loadScriptMode']}:{},'resources':_0x1d5440[_0x36144b(0xe7)]?JSON[_0x36144b(0xc5)](_0x1d5440[_0x36144b(0xe7)]):undefined}},_0x497555=await updateMenuRecord(_0x5e7a9e,_0x24da20,'Update\x20menu\x20assets\x20\x22'+_0x1d5440[_0x36144b(0xcd)]+'\x22');return logger['info'](_0x36144b(0xcf),_0x36144b(0xe2)+_0x1d5440['label'],undefined),_0x497555;}export async function createMenuEntity(_0xb9ea2d,_0x48bbd4,_0x64129d){const _0x1f78ad=a129_0x542a;return createMenuRecord({'appCode':_0xb9ea2d,..._0x64129d},_0x48bbd4,'Create\x20menu\x20\x22'+_0x64129d[_0x1f78ad(0xcd)]+'\x22');}function a129_0x3abb(){const _0x498dc1=['6SszwSt','1535pajQOY','resources','\x20menu','path','create-menus','1308100FFRQkr','Creating\x20menu:\x20','Batch\x20menu\x20creation\x20completed,\x20total\x20','total','loadScriptMode','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','map','\x20menu\x20group(s)','stringify','6gNoTdP','9kmIkUp','763740KDokWi','Create\x20menu\x20\x22','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','import','procode','label','extend','update-menu-cdn-url','122VBLBfW','Fetched\x20','Menu\x20created\x20successfully:\x20','742964lMawLv','33puywsR','create-menu','1452375wDyRGC','length','Update\x20menu\x20','812931AaTMZF','5837448UxcJSa','Delete\x20','Regroup\x20','Updating\x20menu\x20asset\x20links:\x20','\x20online\x20menus\x20successfully','Start\x20batch\x20menu\x20creation,\x20total\x20','get-online-menu-list','menus','Menu\x20assets\x20synced:\x20','menuGroups','info'];a129_0x3abb=function(){return _0x498dc1;};return a129_0x3abb();}export async function updateMenuEntity(_0x42d7d6,_0xf65029,_0x16a18c){const _0x30b711=a129_0x542a;return updateMenuRecord({'appCode':_0x42d7d6,..._0x16a18c},_0xf65029,_0x30b711(0xd8)+_0x16a18c['id']);}export async function batchDeleteMenuEntities(_0x4f2c8a,_0x52558b){const _0xb19783=a129_0x542a;return batchDeleteMenuRecords(_0x52558b,_0x4f2c8a,_0xb19783(0xdb)+_0x52558b[_0xb19783(0xd7)]+_0xb19783(0xe8)+(_0x52558b['length']===0x1?'':'s'));}function a129_0x542a(_0x15fa4c,_0x3a6429){_0x15fa4c=_0x15fa4c-0xbb;const _0x3abb12=a129_0x3abb();let _0x542a4a=_0x3abb12[_0x15fa4c];return _0x542a4a;}export async function startMenuRegroup(_0x104441,_0x428cd0){const _0x532e2e=a129_0x542a;return a129_0x588f1d(_0x428cd0,_0x104441,_0x532e2e(0xdc)+_0x428cd0[_0x532e2e(0xe3)][_0x532e2e(0xd7)]+_0x532e2e(0xc4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b9acb,_0x4b9621){const _0x54992c=a130_0x2d15,_0x561094=_0x5b9acb();while(!![]){try{const _0x598d47=-parseInt(_0x54992c(0x85))/0x1*(parseInt(_0x54992c(0xa1))/0x2)+-parseInt(_0x54992c(0xa5))/0x3*(parseInt(_0x54992c(0x8a))/0x4)+-parseInt(_0x54992c(0x88))/0x5+-parseInt(_0x54992c(0x9b))/0x6+parseInt(_0x54992c(0x86))/0x7+parseInt(_0x54992c(0x9c))/0x8+parseInt(_0x54992c(0x97))/0x9;if(_0x598d47===_0x4b9621)break;else _0x561094['push'](_0x561094['shift']());}catch(_0x4a55dd){_0x561094['push'](_0x561094['shift']());}}}(a130_0x35d7,0x5f18a));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';function a130_0x2d15(_0x13db5d,_0xed9ae0){_0x13db5d=_0x13db5d-0x7a;const _0x35d79a=a130_0x35d7();let _0x2d151a=_0x35d79a[_0x13db5d];return _0x2d151a;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set(['jsUrl','cssUrl']);function validateParams(_0x4a1602){const _0x4147f8=a130_0x2d15,_0x176769=[];return _0x4a1602[_0x4147f8(0x90)]&&!isValidJsHttpsUrl(_0x4a1602[_0x4147f8(0x90)])&&_0x176769[_0x4147f8(0x7b)]({'field':'jsUrl','message':_0x4147f8(0x94)}),_0x4a1602[_0x4147f8(0x8e)]&&!isValidCssHttpsUrl(_0x4a1602[_0x4147f8(0x8e)])&&_0x176769['push']({'field':_0x4147f8(0x8e),'message':_0x4147f8(0x8b)}),_0x176769;}function a130_0x35d7(){const _0x214a02=['cwd','jsUrl','parse','info','Invalid\x20--params:\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','dryRun','hasOwn','8302239JUebFV','join','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','No\x20local\x20pages\x20matched\x20paths:\x20','1878024kDogsa','5899816fkbjTn','message','Invalid\x20--params.','CSS\x20URL\x20is\x20unreachable:\x20','map','8KPtrUI','isArray','Start\x20non-interactive\x20menu\x20sync','trim','7563WBrOhT','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','filter','menu-sync','has','push','path','pages','string','JS\x20URL\x20is\x20unreachable:\x20','\x0a\x20\x20Available\x20local\x20paths:\x20','get','Menu\x20sync\x20completed','object','--params.','115142ZdfVVv','1627731bucefa','length','205810JidGPv',':\x20expected\x20a\x20non-empty\x20string.','1092YlOest','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','keys','field','cssUrl'];a130_0x35d7=function(){return _0x214a02;};return a130_0x35d7();}export async function runMenuSyncCore(_0x1e7cbd,_0x1a2f3c,_0x38ea3e=[],_0xded714,_0x4f9f00={}){const _0x2cab2f=a130_0x2d15,_0x3fa443=parseMenuSyncParams(_0xded714),_0x5b435e=[...new Set(_0x38ea3e[_0x2cab2f(0xa0)](_0x463b27=>_0x463b27[_0x2cab2f(0xa4)]())[_0x2cab2f(0xa7)](Boolean))],_0x5008ab=_0x3fa443[_0x2cab2f(0x90)],_0x5cf7db=_0x3fa443[_0x2cab2f(0x8e)],_0x58faea=[];if(_0x5008ab)_0x58faea[_0x2cab2f(0x7b)](_0x5008ab);if(_0x5cf7db)_0x58faea['push'](_0x5cf7db);const _0x2f50b4=validateParams(_0x3fa443);if(_0x2f50b4['length']>0x0){const _0x38e36c=_0x2f50b4['map'](_0x3ecdaf=>_0x2cab2f(0x84)+_0x3ecdaf[_0x2cab2f(0x8d)]+':\x20'+_0x3ecdaf[_0x2cab2f(0x9d)])[_0x2cab2f(0x98)](';\x20');throw new Error(_0x2cab2f(0x93)+_0x38e36c);}logger['setLogPath'](process[_0x2cab2f(0x8f)]()),logger[_0x2cab2f(0x92)](_0x2cab2f(0xa8),_0x2cab2f(0xa3),{'appCode':_0x1e7cbd,'selectedCount':_0x5b435e[_0x2cab2f(0x87)],'jsUrl':_0x5008ab,'cssUrl':_0x5cf7db});if(_0x5008ab){const _0x578290=await isUrlReachable(_0x5008ab);if(!_0x578290)throw new Error(_0x2cab2f(0x7f)+_0x5008ab);}if(_0x5cf7db){const _0x3a4ee9=await isUrlReachable(_0x5cf7db);if(!_0x3a4ee9)throw new Error(_0x2cab2f(0x9f)+_0x5cf7db);}const _0x58389f=getLocalPages();if(_0x58389f[_0x2cab2f(0x87)]===0x0){if(_0x5b435e[_0x2cab2f(0x87)]>0x0)throw new Error(_0x2cab2f(0x9a)+_0x5b435e[_0x2cab2f(0x98)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x4f9f00[_0x2cab2f(0x95)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x17ecd4=await getOnlineMenuList(_0x1e7cbd,_0x1a2f3c),_0x4d8262=new Set(_0x17ecd4[_0x2cab2f(0xa0)](_0xba8dbb=>_0xba8dbb['path']));let _0x25f58f;if(_0x5b435e['length']>0x0){const _0x3e536c=new Map(_0x58389f['map'](_0x56e7c8=>[_0x56e7c8[_0x2cab2f(0x7c)],_0x56e7c8])),_0x5a463e=_0x5b435e[_0x2cab2f(0xa7)](_0x36f279=>!_0x3e536c['has'](_0x36f279));if(_0x5a463e[_0x2cab2f(0x87)]>0x0){const _0x48372b=_0x58389f['map'](_0xb8885c=>_0xb8885c[_0x2cab2f(0x7c)])[_0x2cab2f(0x98)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x5a463e[_0x2cab2f(0x98)](',\x20')+_0x2cab2f(0x80)+_0x48372b);}const _0x65e382=_0x5b435e[_0x2cab2f(0xa7)](_0x3e2232=>_0x4d8262[_0x2cab2f(0x7a)](_0x3e2232));if(_0x65e382[_0x2cab2f(0x87)]>0x0)throw new Error('Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20'+_0x65e382[_0x2cab2f(0x98)](',\x20'));_0x25f58f=_0x5b435e['map'](_0x5e7cdc=>_0x3e536c[_0x2cab2f(0x81)](_0x5e7cdc));}else _0x25f58f=_0x58389f[_0x2cab2f(0xa7)](_0x530346=>!_0x4d8262[_0x2cab2f(0x7a)](_0x530346[_0x2cab2f(0x7c)]));if(_0x25f58f[_0x2cab2f(0x87)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x4f9f00[_0x2cab2f(0x95)]===!![],'targetPages':[],'plannedMenus':[]};const _0x1d5250=_0x25f58f['map'](_0x34c7a7=>({'type':'procode','path':_0x34c7a7[_0x2cab2f(0x7c)],'label':_0x34c7a7['label'],'loadScriptMode':'import','resources':[..._0x58faea]}));if(_0x4f9f00[_0x2cab2f(0x95)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x25f58f,'plannedMenus':_0x1d5250};const _0x527d74=await createMenus(_0x1e7cbd,_0x1a2f3c,_0x25f58f,_0x58faea[_0x2cab2f(0x87)]>0x0?_0x58faea:undefined);return logger[_0x2cab2f(0x92)]('menu-sync',_0x2cab2f(0x82),{'count':_0x25f58f[_0x2cab2f(0x87)],'resources':_0x58faea}),{'created':_0x527d74[_0x2cab2f(0x87)],'skipped':![],'dryRun':![],'targetPages':_0x25f58f,'plannedMenus':_0x1d5250,'menus':_0x527d74};}export function parseMenuSyncParams(_0x231ec5){const _0x543a92=a130_0x2d15;if(!_0x231ec5||typeof _0x231ec5!=='string')return{};let _0x29ea98;try{_0x29ea98=JSON[_0x543a92(0x91)](_0x231ec5);}catch{throw new Error('Invalid\x20--params\x20JSON.');}if(typeof _0x29ea98!==_0x543a92(0x83)||_0x29ea98===null||Array[_0x543a92(0xa2)](_0x29ea98))throw new Error(_0x543a92(0x99));const _0x45253b=_0x29ea98;if(Object[_0x543a92(0x96)](_0x45253b,_0x543a92(0x7d)))throw new Error(_0x543a92(0xa6));const _0x501f1e=Object[_0x543a92(0x8c)](_0x45253b)['filter'](_0x5b2352=>!MENU_SYNC_PARAM_KEYS[_0x543a92(0x7a)](_0x5b2352));if(_0x501f1e['length']>0x0)throw new Error('Invalid\x20--params\x20fields:\x20'+_0x501f1e[_0x543a92(0x98)](',\x20')+'.');for(const _0x130529 of MENU_SYNC_PARAM_KEYS){const _0xd0e3e7=_0x45253b[_0x130529];if(_0xd0e3e7!==undefined&&(typeof _0xd0e3e7!==_0x543a92(0x7e)||_0xd0e3e7[_0x543a92(0xa4)]()===''))throw new Error(_0x543a92(0x9e)+_0x130529+_0x543a92(0x89));}return{'jsUrl':typeof _0x45253b['jsUrl']==='string'?_0x45253b[_0x543a92(0x90)][_0x543a92(0xa4)]():undefined,'cssUrl':typeof _0x45253b['cssUrl']===_0x543a92(0x7e)?_0x45253b['cssUrl']['trim']():undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x35ca54,_0x4acfb7){const _0x29b558=a132_0x2213,_0x188e3c=_0x35ca54();while(!![]){try{const _0x13c4a5=parseInt(_0x29b558(0x12e))/0x1*(-parseInt(_0x29b558(0x11d))/0x2)+parseInt(_0x29b558(0x140))/0x3*(-parseInt(_0x29b558(0x128))/0x4)+-parseInt(_0x29b558(0x130))/0x5*(-parseInt(_0x29b558(0x113))/0x6)+parseInt(_0x29b558(0x13c))/0x7*(parseInt(_0x29b558(0x114))/0x8)+-parseInt(_0x29b558(0x148))/0x9+parseInt(_0x29b558(0x10c))/0xa*(parseInt(_0x29b558(0x12b))/0xb)+-parseInt(_0x29b558(0x134))/0xc*(parseInt(_0x29b558(0x111))/0xd);if(_0x13c4a5===_0x4acfb7)break;else _0x188e3c['push'](_0x188e3c['shift']());}catch(_0x37b96e){_0x188e3c['push'](_0x188e3c['shift']());}}}(a132_0x5973,0x8c217));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(_0x42f3bb){const _0x288aa9=a132_0x2213,_0x4ea1fb=[];return _0x42f3bb['jsUrl']&&!isValidJsHttpsUrl(_0x42f3bb[_0x288aa9(0x14f)])&&_0x4ea1fb['push']({'field':_0x288aa9(0x14f),'message':_0x288aa9(0x12d)}),_0x42f3bb[_0x288aa9(0x14a)]&&!isValidCssHttpsUrl(_0x42f3bb['cssUrl'])&&_0x4ea1fb[_0x288aa9(0x126)]({'field':'cssUrl','message':_0x288aa9(0x117)}),_0x4ea1fb;}export async function runMenuUpdateCore(_0x4645a1,_0x556931,_0xbe0c83,_0x877ad4={}){const _0x564b36=a132_0x2213,_0xa77859=parseUpdateParamsFlag(_0xbe0c83),_0x1fac29=normalizeMode(_0x877ad4['mode']);validateSelection(_0x877ad4[_0x564b36(0x133)]);const _0x3147e8=[];if(_0xa77859[_0x564b36(0x14f)])_0x3147e8[_0x564b36(0x126)](_0xa77859[_0x564b36(0x14f)]);if(_0xa77859[_0x564b36(0x14a)])_0x3147e8['push'](_0xa77859['cssUrl']);const _0x438ff0=validateParams(_0xa77859);if(_0x438ff0[_0x564b36(0x110)]>0x0){const _0x36674a=_0x438ff0[_0x564b36(0x12f)](_0x23263a=>_0x564b36(0x13e)+_0x23263a['field']+':\x20'+_0x23263a[_0x564b36(0x14e)])[_0x564b36(0x121)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x36674a);}if(_0x3147e8['length']===0x0)throw new Error('Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20'+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x564b36(0x109)](process[_0x564b36(0x13d)]()),logger['info'](_0x564b36(0x112),'Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0x4645a1,'jsUrl':_0xa77859[_0x564b36(0x14f)],'cssUrl':_0xa77859[_0x564b36(0x14a)],'mode':_0x1fac29,'dryRun':_0x877ad4[_0x564b36(0x10b)]===!![]});if(_0xa77859['jsUrl']){const _0x24c403=await isUrlReachable(_0xa77859[_0x564b36(0x14f)]);if(!_0x24c403)throw new Error(_0x564b36(0x10d)+_0xa77859[_0x564b36(0x14f)]);}if(_0xa77859[_0x564b36(0x14a)]){const _0x4d779c=await isUrlReachable(_0xa77859['cssUrl']);if(!_0x4d779c)throw new Error(_0x564b36(0x127)+_0xa77859[_0x564b36(0x14a)]);}const _0x181744=await getOnlineMenuList(_0x4645a1,_0x556931),_0x2e335f=_0x181744[_0x564b36(0x135)](_0x69b0f8=>_0x69b0f8[_0x564b36(0x142)][_0x564b36(0x110)]>0x0),_0x4ff0d1=selectMenusForUpdate(_0x2e335f,_0x877ad4['selection']);if(_0x4ff0d1[_0x564b36(0x110)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x877ad4[_0x564b36(0x10b)]===!![]};const _0x36e6ad=_0x4ff0d1[_0x564b36(0x12f)](_0x26678d=>buildMenuUpdateDiff(_0x26678d,_0xa77859,_0x1fac29,_0x877ad4['force']===!![],_0x877ad4[_0x564b36(0x11f)]));if(_0x877ad4[_0x564b36(0x10b)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x36e6ad};const _0x569c92=await Promise[_0x564b36(0x143)](_0x4ff0d1['map']((_0x1d91f3,_0xe33140)=>updateMenuCdnUrl(_0x4645a1,_0x556931,{'id':_0x1d91f3['id'],'label':_0x1d91f3[_0x564b36(0x14b)],'path':_0x1d91f3[_0x564b36(0x137)],'resources':_0x36e6ad[_0xe33140][_0x564b36(0x141)][_0x564b36(0x142)],'extend':_0x1d91f3[_0x564b36(0x129)]??null,'loadScriptMode':_0x877ad4['loadScriptMode']}))),_0x5325ff=_0x569c92[_0x564b36(0x135)](_0x3b8594=>_0x3b8594[_0x564b36(0x12c)]===_0x564b36(0x10f))[_0x564b36(0x12f)](_0x23f6da=>_0x23f6da[_0x564b36(0x146)]),_0x19be01=_0x569c92['filter'](_0x27f7c6=>_0x27f7c6[_0x564b36(0x12c)]===_0x564b36(0x138))[_0x564b36(0x110)];return logger['info'](_0x564b36(0x112),'Menu\x20asset\x20update\x20completed',{'count':_0x4ff0d1[_0x564b36(0x110)],'resources':_0x3147e8}),{'updated':_0x5325ff[_0x564b36(0x110)],'failed':_0x19be01,'skipped':![],'menus':_0x5325ff};}function validateSelection(_0xbfa8b8){const _0x5ecbdd=a132_0x2213;if(!_0xbfa8b8)throw new Error(_0x5ecbdd(0x14c));if(_0xbfa8b8[_0x5ecbdd(0x124)]&&(_0xbfa8b8[_0x5ecbdd(0x11e)]['length']>0x0||_0xbfa8b8[_0x5ecbdd(0x136)]['length']>0x0))throw new Error(_0x5ecbdd(0x120));if(!_0xbfa8b8[_0x5ecbdd(0x124)]&&_0xbfa8b8[_0x5ecbdd(0x11e)][_0x5ecbdd(0x110)]===0x0&&_0xbfa8b8[_0x5ecbdd(0x136)][_0x5ecbdd(0x110)]===0x0)throw new Error(_0x5ecbdd(0x14c));}export function selectMenusForUpdate(_0x185429,_0x3379dd){const _0xffbefb=a132_0x2213;validateSelection(_0x3379dd);if(_0x3379dd['all'])return _0x185429;const _0x59597b=new Set(_0x185429[_0xffbefb(0x12f)](_0x1a456e=>_0x1a456e['id'])),_0x1b9155=new Set(_0x185429[_0xffbefb(0x12f)](_0x5288a7=>_0x5288a7[_0xffbefb(0x137)])),_0x20053f=_0x3379dd[_0xffbefb(0x11e)][_0xffbefb(0x135)](_0x12e92a=>!_0x59597b[_0xffbefb(0x147)](_0x12e92a)),_0x3966b3=_0x3379dd['paths']['filter'](_0x4ed253=>!_0x1b9155[_0xffbefb(0x147)](_0x4ed253));if(_0x20053f[_0xffbefb(0x110)]>0x0||_0x3966b3[_0xffbefb(0x110)]>0x0){const _0x3e0e45=[..._0x20053f['map'](_0x3b4a08=>String(_0x3b4a08)),..._0x3966b3][_0xffbefb(0x121)](',\x20');throw new Error(_0xffbefb(0x13f)+_0x3e0e45);}const _0x4addeb=new Set(_0x3379dd[_0xffbefb(0x11e)]),_0x5d2c8d=new Set(_0x3379dd['paths']);return _0x185429['filter'](_0x40fb85=>_0x4addeb[_0xffbefb(0x147)](_0x40fb85['id'])||_0x5d2c8d[_0xffbefb(0x147)](_0x40fb85['path']));}function normalizeMode(_0x2d4e08){const _0x21544c=a132_0x2213;if(!_0x2d4e08)return _0x21544c(0x11b);if(_0x2d4e08==='replace'||_0x2d4e08==='patch')return _0x2d4e08;throw new Error(_0x21544c(0x119)+_0x2d4e08+_0x21544c(0x132));}function buildMenuUpdateDiff(_0x2ad06c,_0x30fe22,_0x185d4b,_0x400c31,_0x2d9387){const _0x2a9825=a132_0x2213,_0x3a0e31=[..._0x2ad06c[_0x2a9825(0x142)]];_0x185d4b===_0x2a9825(0x11b)&&assertUnambiguousPatchResources(_0x2ad06c,_0x3a0e31,_0x30fe22);const _0x4443c6=_0x185d4b===_0x2a9825(0x11b)?patchResources(_0x3a0e31,_0x30fe22):replaceResources(_0x30fe22),_0x3fa52f=[],_0x3e9e06=_0x3a0e31[_0x2a9825(0x14d)](isJsResource),_0x99fe0b=_0x4443c6[_0x2a9825(0x14d)](isJsResource);if(_0x3e9e06&&!_0x99fe0b){const _0x1ff177=_0x2a9825(0x131)+_0x2ad06c[_0x2a9825(0x14b)]+_0x2a9825(0x123)+_0x2ad06c['path']+_0x2a9825(0x12a)+_0x2a9825(0x139);if(!_0x400c31)throw new Error(_0x1ff177);_0x3fa52f[_0x2a9825(0x126)](_0x1ff177);}const _0x4c034f=_0x3a0e31[_0x2a9825(0x14d)](isCssResource),_0x3eef26=_0x4443c6[_0x2a9825(0x14d)](isCssResource);_0x4c034f&&!_0x3eef26&&_0x3fa52f[_0x2a9825(0x126)]('menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x2ad06c[_0x2a9825(0x14b)]+_0x2a9825(0x123)+_0x2ad06c[_0x2a9825(0x137)]+').');const _0x125aff=typeof _0x2ad06c['extend']?.[_0x2a9825(0x11f)]===_0x2a9825(0x115)?_0x2ad06c[_0x2a9825(0x129)][_0x2a9825(0x11f)]:null,_0x3bd30a=_0x2d9387?{'loadScriptMode':_0x125aff}:{},_0x1d8ebd=_0x2d9387?{'loadScriptMode':_0x2d9387}:{};return{'id':_0x2ad06c['id'],'label':_0x2ad06c['label'],'path':_0x2ad06c['path'],'mode':_0x185d4b,'before':{'resources':_0x3a0e31,..._0x3bd30a},'after':{'resources':_0x4443c6,..._0x1d8ebd},'warnings':_0x3fa52f};}function replaceResources(_0x56ec2b){const _0xae6c17=a132_0x2213;return[_0x56ec2b[_0xae6c17(0x14f)],_0x56ec2b[_0xae6c17(0x14a)]]['filter'](_0x2555fc=>!!_0x2555fc);}function assertUnambiguousPatchResources(_0x25ea62,_0x25c6ff,_0x22d4c7){const _0x3b7b36=a132_0x2213,_0x1481eb=_0x25c6ff[_0x3b7b36(0x135)](isJsResource)[_0x3b7b36(0x110)];if(_0x22d4c7[_0x3b7b36(0x14f)]&&_0x1481eb>0x1)throw new Error(_0x3b7b36(0x125)+_0x1481eb+_0x3b7b36(0x149)+_0x25ea62[_0x3b7b36(0x14b)]+_0x3b7b36(0x123)+_0x25ea62[_0x3b7b36(0x137)]+')\x20'+_0x3b7b36(0x145));const _0x2391f7=_0x25c6ff['filter'](isCssResource)[_0x3b7b36(0x110)];if(_0x22d4c7[_0x3b7b36(0x14a)]&&_0x2391f7>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x2391f7+_0x3b7b36(0x13a)+_0x25ea62[_0x3b7b36(0x14b)]+_0x3b7b36(0x123)+_0x25ea62['path']+')\x20'+_0x3b7b36(0x13b));}function patchResources(_0x5547fa,_0x4f95d9){const _0x2b6155=a132_0x2213;let _0x12d0c1=![],_0x5355d9=![];const _0x31bb47=[];for(const _0x125d93 of _0x5547fa){if(isJsResource(_0x125d93)){if(_0x4f95d9[_0x2b6155(0x14f)]&&!_0x12d0c1)_0x31bb47[_0x2b6155(0x126)](_0x4f95d9[_0x2b6155(0x14f)]),_0x12d0c1=!![];else!_0x4f95d9[_0x2b6155(0x14f)]&&_0x31bb47[_0x2b6155(0x126)](_0x125d93);continue;}if(isCssResource(_0x125d93)){if(_0x4f95d9[_0x2b6155(0x14a)]&&!_0x5355d9)_0x31bb47[_0x2b6155(0x126)](_0x4f95d9[_0x2b6155(0x14a)]),_0x5355d9=!![];else!_0x4f95d9['cssUrl']&&_0x31bb47['push'](_0x125d93);continue;}_0x31bb47['push'](_0x125d93);}return _0x4f95d9['jsUrl']&&!_0x12d0c1&&_0x31bb47[_0x2b6155(0x10a)](_0x4f95d9[_0x2b6155(0x14f)]),_0x4f95d9['cssUrl']&&!_0x5355d9&&_0x31bb47[_0x2b6155(0x126)](_0x4f95d9[_0x2b6155(0x14a)]),_0x31bb47;}function a132_0x5973(){const _0x54ec23=['patch','object','495266HwdZTv','menuIds','loadScriptMode','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','join','.js','\x22\x20(','all','menu\x20asset-update\x20cannot\x20patch\x20','push','CSS\x20URL\x20is\x20unreachable:\x20','4lpJoSI','extend',').\x20','760133QWxzgd','status','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','1RpArbK','map','50gIQPHL','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','.\x20Allowed\x20values:\x20replace,\x20patch','selection','2102460reSXWv','filter','paths','path','rejected','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','\x20existing\x20CSS\x20resources\x20for\x20\x22','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','7385PDKsVd','cwd','--params.','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','221196xoONRz','after','resources','allSettled','split','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','value','has','3291633QlNkKK','\x20existing\x20JS\x20resources\x20for\x20\x22','cssUrl','label','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','some','message','jsUrl','parse','isArray','setLogPath','unshift','dryRun','90lDAFGJ','JS\x20URL\x20is\x20unreachable:\x20','trim','fulfilled','length','39wZRbtj','menu-asset-update','177900KkIqfG','6584qrIpzv','string','endsWith','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','toLowerCase','Invalid\x20--mode:\x20','.css'];a132_0x5973=function(){return _0x54ec23;};return a132_0x5973();}function a132_0x2213(_0x588c2a,_0x4884a5){_0x588c2a=_0x588c2a-0x109;const _0x597390=a132_0x5973();let _0x221302=_0x597390[_0x588c2a];return _0x221302;}function isJsResource(_0x196fbb){const _0x40b64e=a132_0x2213;return stripQuery(_0x196fbb)[_0x40b64e(0x118)]()[_0x40b64e(0x116)](_0x40b64e(0x122));}function isCssResource(_0x5a541e){const _0x119507=a132_0x2213;return stripQuery(_0x5a541e)[_0x119507(0x118)]()[_0x119507(0x116)](_0x119507(0x11a));}function stripQuery(_0x50b7df){const _0x235f69=a132_0x2213;return _0x50b7df[_0x235f69(0x144)]('?')[0x0]??_0x50b7df;}function parseUpdateParamsFlag(_0x34f12f){const _0x2a2c18=a132_0x2213;if(!_0x34f12f||typeof _0x34f12f!==_0x2a2c18(0x115))return{};try{const _0x6aa3eb=JSON[_0x2a2c18(0x150)](_0x34f12f);if(typeof _0x6aa3eb!==_0x2a2c18(0x11c)||_0x6aa3eb===null||Array[_0x2a2c18(0x151)](_0x6aa3eb))return{};return{'jsUrl':typeof _0x6aa3eb[_0x2a2c18(0x14f)]==='string'?_0x6aa3eb[_0x2a2c18(0x14f)]['trim']():undefined,'cssUrl':typeof _0x6aa3eb[_0x2a2c18(0x14a)]===_0x2a2c18(0x115)?_0x6aa3eb[_0x2a2c18(0x14a)][_0x2a2c18(0x10e)]():undefined};}catch{return{};}}
|
|
1
|
+
(function(_0x153d3a,_0x950da7){const _0x14a52b=a132_0x21dc,_0x2bcf8c=_0x153d3a();while(!![]){try{const _0x26f563=-parseInt(_0x14a52b(0x8e))/0x1*(parseInt(_0x14a52b(0x84))/0x2)+parseInt(_0x14a52b(0x81))/0x3*(parseInt(_0x14a52b(0x7d))/0x4)+parseInt(_0x14a52b(0x72))/0x5+-parseInt(_0x14a52b(0x8c))/0x6+-parseInt(_0x14a52b(0x8d))/0x7+-parseInt(_0x14a52b(0x7f))/0x8+parseInt(_0x14a52b(0x70))/0x9*(parseInt(_0x14a52b(0x75))/0xa);if(_0x26f563===_0x950da7)break;else _0x2bcf8c['push'](_0x2bcf8c['shift']());}catch(_0x149b74){_0x2bcf8c['push'](_0x2bcf8c['shift']());}}}(a132_0x5ce5,0x718c5));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(_0x305db0){const _0x3ed3b9=a132_0x21dc,_0x317f4c=[];return _0x305db0[_0x3ed3b9(0xa0)]&&!isValidJsHttpsUrl(_0x305db0['jsUrl'])&&_0x317f4c[_0x3ed3b9(0xad)]({'field':'jsUrl','message':_0x3ed3b9(0x87)}),_0x305db0[_0x3ed3b9(0xa1)]&&!isValidCssHttpsUrl(_0x305db0['cssUrl'])&&_0x317f4c[_0x3ed3b9(0xad)]({'field':_0x3ed3b9(0xa1),'message':_0x3ed3b9(0x77)}),_0x317f4c;}export async function runMenuUpdateCore(_0x262ccf,_0x225eef,_0x4f3799,_0x39f9d9={}){const _0x416f2d=a132_0x21dc,_0x49d067=parseUpdateParamsFlag(_0x4f3799),_0x1a6d0e=normalizeMode(_0x39f9d9[_0x416f2d(0x94)]);validateSelection(_0x39f9d9[_0x416f2d(0x80)]);const _0x208310=[];if(_0x49d067[_0x416f2d(0xa0)])_0x208310[_0x416f2d(0xad)](_0x49d067['jsUrl']);if(_0x49d067['cssUrl'])_0x208310[_0x416f2d(0xad)](_0x49d067[_0x416f2d(0xa1)]);const _0x57a5a4=validateParams(_0x49d067);if(_0x57a5a4['length']>0x0){const _0x57015c=_0x57a5a4['map'](_0x53fd0b=>_0x416f2d(0x6b)+_0x53fd0b[_0x416f2d(0x89)]+':\x20'+_0x53fd0b['message'])[_0x416f2d(0x79)](';\x20');throw new Error(_0x416f2d(0xac)+_0x57015c);}if(_0x208310[_0x416f2d(0x7b)]===0x0)throw new Error(_0x416f2d(0x6c)+_0x416f2d(0xb2));logger[_0x416f2d(0x98)](process['cwd']()),logger[_0x416f2d(0xa8)](_0x416f2d(0x6f),_0x416f2d(0x95),{'appCode':_0x262ccf,'jsUrl':_0x49d067[_0x416f2d(0xa0)],'cssUrl':_0x49d067[_0x416f2d(0xa1)],'mode':_0x1a6d0e,'dryRun':_0x39f9d9['dryRun']===!![]});if(_0x49d067[_0x416f2d(0xa0)]){const _0x5a76e2=await isUrlReachable(_0x49d067[_0x416f2d(0xa0)]);if(!_0x5a76e2)throw new Error(_0x416f2d(0x9d)+_0x49d067[_0x416f2d(0xa0)]);}if(_0x49d067[_0x416f2d(0xa1)]){const _0x44da5d=await isUrlReachable(_0x49d067['cssUrl']);if(!_0x44da5d)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x49d067[_0x416f2d(0xa1)]);}const _0x1dc400=await getOnlineMenuList(_0x262ccf,_0x225eef),_0x98738d=_0x1dc400[_0x416f2d(0x97)](_0x51cde7=>_0x51cde7[_0x416f2d(0x71)][_0x416f2d(0x7b)]>0x0),_0x272e5f=selectMenusForUpdate(_0x98738d,_0x39f9d9[_0x416f2d(0x80)]);if(_0x272e5f['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x39f9d9[_0x416f2d(0x9e)]===!![]};const _0xfdf874=_0x272e5f[_0x416f2d(0x78)](_0x55a0d9=>buildMenuUpdateDiff(_0x55a0d9,_0x49d067,_0x1a6d0e,_0x39f9d9[_0x416f2d(0x7e)]===!![],_0x39f9d9['loadScriptMode']));if(_0x39f9d9['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0xfdf874};const _0x3bc843=await Promise[_0x416f2d(0x73)](_0x272e5f[_0x416f2d(0x78)]((_0x227a3e,_0x40afab)=>updateMenuCdnUrl(_0x262ccf,_0x225eef,{'id':_0x227a3e['id'],'label':_0x227a3e['label'],'path':_0x227a3e[_0x416f2d(0x7a)],'resources':_0xfdf874[_0x40afab][_0x416f2d(0xa9)][_0x416f2d(0x71)],'extend':_0x227a3e['extend']??null,'loadScriptMode':_0x39f9d9[_0x416f2d(0x88)]}))),_0x1dd9ba=_0x3bc843[_0x416f2d(0x97)](_0xf158b4=>_0xf158b4[_0x416f2d(0x8b)]==='fulfilled')[_0x416f2d(0x78)](_0x138d77=>_0x138d77[_0x416f2d(0xb0)]),_0x340c4e=_0x3bc843[_0x416f2d(0x97)](_0x1a1ab5=>_0x1a1ab5[_0x416f2d(0x8b)]===_0x416f2d(0x85))[_0x416f2d(0x7b)];return logger[_0x416f2d(0xa8)](_0x416f2d(0x6f),_0x416f2d(0xa4),{'count':_0x272e5f[_0x416f2d(0x7b)],'resources':_0x208310}),{'updated':_0x1dd9ba[_0x416f2d(0x7b)],'failed':_0x340c4e,'skipped':![],'menus':_0x1dd9ba};}function validateSelection(_0xe95751){const _0x426c49=a132_0x21dc;if(!_0xe95751)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');if(_0xe95751[_0x426c49(0x6e)]&&(_0xe95751[_0x426c49(0x83)][_0x426c49(0x7b)]>0x0||_0xe95751[_0x426c49(0x96)][_0x426c49(0x7b)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0xe95751[_0x426c49(0x6e)]&&_0xe95751[_0x426c49(0x83)][_0x426c49(0x7b)]===0x0&&_0xe95751[_0x426c49(0x96)][_0x426c49(0x7b)]===0x0)throw new Error(_0x426c49(0xa7));}function a132_0x5ce5(){const _0xb7f944=['length','.css','48896toChWa','force','4189680ZpRwlO','selection','174LQoKPn',').\x20','menuIds','2VYERLr','rejected','trim','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','loadScriptMode','field','menu\x20asset-update\x20cannot\x20patch\x20','status','2364gzwAeV','4309466VVVDlj','540907vioRHF','extend','label','endsWith','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','mode','Start\x20non-interactive\x20menu\x20asset\x20update','paths','filter','setLogPath','.\x20Allowed\x20values:\x20replace,\x20patch','replace','some','patch','JS\x20URL\x20is\x20unreachable:\x20','dryRun','isArray','jsUrl','cssUrl','Invalid\x20--mode:\x20','split','Menu\x20asset\x20update\x20completed','\x20existing\x20JS\x20resources\x20for\x20\x22','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','info','after','string','has','Invalid\x20--params:\x20','push','\x22\x20(','.js','value','toLowerCase','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','--params.','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','parse','all','menu-asset-update','1142082vuPeLD','resources','1473340ZBbsAX','allSettled','unshift','90auiFmx','\x20existing\x20CSS\x20resources\x20for\x20\x22','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','map','join','path'];a132_0x5ce5=function(){return _0xb7f944;};return a132_0x5ce5();}export function selectMenusForUpdate(_0x5252c6,_0x548469){const _0x1c3b2e=a132_0x21dc;validateSelection(_0x548469);if(_0x548469[_0x1c3b2e(0x6e)])return _0x5252c6;const _0x31868c=new Set(_0x5252c6[_0x1c3b2e(0x78)](_0xefbfaf=>_0xefbfaf['id'])),_0x2d7e4f=new Set(_0x5252c6[_0x1c3b2e(0x78)](_0x304ca6=>_0x304ca6[_0x1c3b2e(0x7a)])),_0x3168b2=_0x548469[_0x1c3b2e(0x83)][_0x1c3b2e(0x97)](_0x437ea9=>!_0x31868c[_0x1c3b2e(0xab)](_0x437ea9)),_0x2715e9=_0x548469[_0x1c3b2e(0x96)][_0x1c3b2e(0x97)](_0x1babe2=>!_0x2d7e4f[_0x1c3b2e(0xab)](_0x1babe2));if(_0x3168b2[_0x1c3b2e(0x7b)]>0x0||_0x2715e9[_0x1c3b2e(0x7b)]>0x0){const _0x208b0e=[..._0x3168b2[_0x1c3b2e(0x78)](_0x5e06e7=>String(_0x5e06e7)),..._0x2715e9][_0x1c3b2e(0x79)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x208b0e);}const _0x231d43=new Set(_0x548469[_0x1c3b2e(0x83)]),_0x178a3c=new Set(_0x548469[_0x1c3b2e(0x96)]);return _0x5252c6['filter'](_0x166cd5=>_0x231d43[_0x1c3b2e(0xab)](_0x166cd5['id'])||_0x178a3c[_0x1c3b2e(0xab)](_0x166cd5[_0x1c3b2e(0x7a)]));}function a132_0x21dc(_0x2dce49,_0x4f31b8){_0x2dce49=_0x2dce49-0x6b;const _0x5ce5f2=a132_0x5ce5();let _0x21dcdb=_0x5ce5f2[_0x2dce49];return _0x21dcdb;}function normalizeMode(_0x5cb7c0){const _0x201787=a132_0x21dc;if(!_0x5cb7c0)return _0x201787(0x9c);if(_0x5cb7c0===_0x201787(0x9a)||_0x5cb7c0===_0x201787(0x9c))return _0x5cb7c0;throw new Error(_0x201787(0xa2)+_0x5cb7c0+_0x201787(0x99));}function buildMenuUpdateDiff(_0x2cb592,_0x1dcb7e,_0x3ff1f9,_0xf1c7fb,_0x19ed51){const _0xe8ddbe=a132_0x21dc,_0x1afbba=[..._0x2cb592[_0xe8ddbe(0x71)]];_0x3ff1f9===_0xe8ddbe(0x9c)&&assertUnambiguousPatchResources(_0x2cb592,_0x1afbba,_0x1dcb7e);const _0x458455=_0x3ff1f9===_0xe8ddbe(0x9c)?patchResources(_0x1afbba,_0x1dcb7e):replaceResources(_0x1dcb7e),_0x4866cb=[],_0x5518fa=_0x1afbba['some'](isJsResource),_0xa5ae3c=_0x458455[_0xe8ddbe(0x9b)](isJsResource);if(_0x5518fa&&!_0xa5ae3c){const _0x4ea07d=_0xe8ddbe(0x92)+_0x2cb592[_0xe8ddbe(0x90)]+'\x22\x20('+_0x2cb592['path']+_0xe8ddbe(0x82)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0xf1c7fb)throw new Error(_0x4ea07d);_0x4866cb[_0xe8ddbe(0xad)](_0x4ea07d);}const _0x53b779=_0x1afbba['some'](isCssResource),_0xf6f8ce=_0x458455[_0xe8ddbe(0x9b)](isCssResource);_0x53b779&&!_0xf6f8ce&&_0x4866cb[_0xe8ddbe(0xad)](_0xe8ddbe(0x93)+_0x2cb592['label']+_0xe8ddbe(0xae)+_0x2cb592['path']+').');const _0x5ec862=typeof _0x2cb592[_0xe8ddbe(0x8f)]?.['loadScriptMode']===_0xe8ddbe(0xaa)?_0x2cb592[_0xe8ddbe(0x8f)][_0xe8ddbe(0x88)]:null,_0x2c3b49=_0x19ed51?{'loadScriptMode':_0x5ec862}:{},_0x5c89af=_0x19ed51?{'loadScriptMode':_0x19ed51}:{};return{'id':_0x2cb592['id'],'label':_0x2cb592['label'],'path':_0x2cb592[_0xe8ddbe(0x7a)],'mode':_0x3ff1f9,'before':{'resources':_0x1afbba,..._0x2c3b49},'after':{'resources':_0x458455,..._0x5c89af},'warnings':_0x4866cb};}function replaceResources(_0x2a8673){const _0x4202ac=a132_0x21dc;return[_0x2a8673[_0x4202ac(0xa0)],_0x2a8673[_0x4202ac(0xa1)]][_0x4202ac(0x97)](_0x3f0cfa=>!!_0x3f0cfa);}function assertUnambiguousPatchResources(_0x5af401,_0x3e7c5c,_0x1d3d14){const _0x3f0fb6=a132_0x21dc,_0x4106e4=_0x3e7c5c[_0x3f0fb6(0x97)](isJsResource)['length'];if(_0x1d3d14[_0x3f0fb6(0xa0)]&&_0x4106e4>0x1)throw new Error(_0x3f0fb6(0x8a)+_0x4106e4+_0x3f0fb6(0xa5)+_0x5af401[_0x3f0fb6(0x90)]+_0x3f0fb6(0xae)+_0x5af401['path']+')\x20'+_0x3f0fb6(0xa6));const _0x52e105=_0x3e7c5c['filter'](isCssResource)['length'];if(_0x1d3d14[_0x3f0fb6(0xa1)]&&_0x52e105>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x52e105+_0x3f0fb6(0x76)+_0x5af401[_0x3f0fb6(0x90)]+_0x3f0fb6(0xae)+_0x5af401[_0x3f0fb6(0x7a)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x491f12,_0x175c11){const _0x3900e3=a132_0x21dc;let _0x57f2d8=![],_0x11e686=![];const _0x478846=[];for(const _0x4ddc1b of _0x491f12){if(isJsResource(_0x4ddc1b)){if(_0x175c11['jsUrl']&&!_0x57f2d8)_0x478846[_0x3900e3(0xad)](_0x175c11['jsUrl']),_0x57f2d8=!![];else!_0x175c11[_0x3900e3(0xa0)]&&_0x478846[_0x3900e3(0xad)](_0x4ddc1b);continue;}if(isCssResource(_0x4ddc1b)){if(_0x175c11['cssUrl']&&!_0x11e686)_0x478846[_0x3900e3(0xad)](_0x175c11[_0x3900e3(0xa1)]),_0x11e686=!![];else!_0x175c11[_0x3900e3(0xa1)]&&_0x478846[_0x3900e3(0xad)](_0x4ddc1b);continue;}_0x478846['push'](_0x4ddc1b);}return _0x175c11[_0x3900e3(0xa0)]&&!_0x57f2d8&&_0x478846[_0x3900e3(0x74)](_0x175c11[_0x3900e3(0xa0)]),_0x175c11[_0x3900e3(0xa1)]&&!_0x11e686&&_0x478846['push'](_0x175c11[_0x3900e3(0xa1)]),_0x478846;}function isJsResource(_0x51f482){const _0x214119=a132_0x21dc;return stripQuery(_0x51f482)[_0x214119(0xb1)]()[_0x214119(0x91)](_0x214119(0xaf));}function isCssResource(_0x4a91fc){const _0x71f381=a132_0x21dc;return stripQuery(_0x4a91fc)[_0x71f381(0xb1)]()[_0x71f381(0x91)](_0x71f381(0x7c));}function stripQuery(_0x1f4f24){const _0x354dc4=a132_0x21dc;return _0x1f4f24[_0x354dc4(0xa3)]('?')[0x0]??_0x1f4f24;}function parseUpdateParamsFlag(_0x52ef60){const _0x729e18=a132_0x21dc;if(!_0x52ef60||typeof _0x52ef60!==_0x729e18(0xaa))return{};try{const _0x1ac332=JSON[_0x729e18(0x6d)](_0x52ef60);if(typeof _0x1ac332!=='object'||_0x1ac332===null||Array[_0x729e18(0x9f)](_0x1ac332))return{};return{'jsUrl':typeof _0x1ac332[_0x729e18(0xa0)]===_0x729e18(0xaa)?_0x1ac332['jsUrl'][_0x729e18(0x86)]():undefined,'cssUrl':typeof _0x1ac332[_0x729e18(0xa1)]===_0x729e18(0xaa)?_0x1ac332['cssUrl'][_0x729e18(0x86)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x132856,_0x39e76c){const _0x2e13da=a133_0x6d77,_0x46c749=_0x132856();while(!![]){try{const _0x337984=-parseInt(_0x2e13da(0x112))/0x1+parseInt(_0x2e13da(0x11b))/0x2*(parseInt(_0x2e13da(0x113))/0x3)+parseInt(_0x2e13da(0x111))/0x4*(-parseInt(_0x2e13da(0x11d))/0x5)+-parseInt(_0x2e13da(0x119))/0x6+-parseInt(_0x2e13da(0x11c))/0x7+-parseInt(_0x2e13da(0x11a))/0x8*(-parseInt(_0x2e13da(0x11e))/0x9)+parseInt(_0x2e13da(0x115))/0xa*(parseInt(_0x2e13da(0x117))/0xb);if(_0x337984===_0x39e76c)break;else _0x46c749['push'](_0x46c749['shift']());}catch(_0x2cc180){_0x46c749['push'](_0x46c749['shift']());}}}(a133_0x2264,0x62ac3));export function isValidJsHttpsUrl(_0x2aa0fb){const _0xa4e8b9=a133_0x6d77;return/^https:\/\/.+\.js(\?.*)?$/[_0xa4e8b9(0x118)](_0x2aa0fb[_0xa4e8b9(0x116)]());}export function isValidCssHttpsUrl(_0x29edaf){const _0x37d948=a133_0x6d77;return/^https:\/\/.+\.css(\?.*)?$/[_0x37d948(0x118)](_0x29edaf[_0x37d948(0x116)]());}export async function isUrlReachable(_0x11fc5e){const _0x40a19a=a133_0x6d77;try{const _0x44bddb=await fetch(_0x11fc5e,{'method':_0x40a19a(0x114)});return _0x44bddb['ok'];}catch{return![];}}function a133_0x6d77(_0x55b5b9,_0x7c9056){_0x55b5b9=_0x55b5b9-0x111;const _0x2264a4=a133_0x2264();let _0x6d776e=_0x2264a4[_0x55b5b9];return _0x6d776e;}function a133_0x2264(){const _0x16c314=['trim','561zrWINu','test','1617120URfiNv','133576jguHgM','4vabicr','3135846xABzuL','5oHgace','18rAHDTR','2183624tDoFhR','148420MihQCc','384933FSPLqC','HEAD','299210lmAYlm'];a133_0x2264=function(){return _0x16c314;};return a133_0x2264();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a134_0x241447=a134_0x4008;(function(_0x72119e,_0x427171){const _0x4b772c=a134_0x4008,_0x2aa627=_0x72119e();while(!![]){try{const _0x115f2f=-parseInt(_0x4b772c(0xe6))/0x1+parseInt(_0x4b772c(0x126))/0x2*(-parseInt(_0x4b772c(0xec))/0x3)+-parseInt(_0x4b772c(0xfd))/0x4+parseInt(_0x4b772c(0xf9))/0x5+parseInt(_0x4b772c(0x105))/0x6*(-parseInt(_0x4b772c(0x124))/0x7)+parseInt(_0x4b772c(0x107))/0x8*(-parseInt(_0x4b772c(0x117))/0x9)+parseInt(_0x4b772c(0x11a))/0xa;if(_0x115f2f===_0x427171)break;else _0x2aa627['push'](_0x2aa627['shift']());}catch(_0x243c79){_0x2aa627['push'](_0x2aa627['shift']());}}}(a134_0x2d63,0xdd872));import a134_0x129a98 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';function a134_0x2d63(){const _0x166f7a=['5959272LsidrR','selectedAppName','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20\x20Cancelled.','onlineMenuList','\x20menu(s)','size','cookie','6JmrtmW','Menu\x20creation\x20failed','776GHVInk','yellow','filter','failed','appCode','\x20\x20Continue\x20with\x20creation?','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','length','gray','Created\x20','str','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','cssUrl','\x20local\x20microfrontend\x20menu(s).','\x20\x20Create\x20','40023bqNulz','flag','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','52544350neFuWp','\x20page(s)','localPages','split','✓\x20Menu\x20sync\x20completed:\x20','\x20created.','Menu\x20sync\x20completed:\x20','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','Would\x20create\x20','Sync\x20local\x20pages\x20as\x20platform\x20menus','4756906vrxTgn','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','3742IOGEyr','string','menu','POST','yes','/smartapi/menu/create','params','683620tjpEKi','Creating\x20','appcode','\x20created,\x20','validation','Pre-fill\x20JS/CSS\x20URLs.\x20','2178jwarpM','rawFlags','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','trim','\x20menu(s)...','message','created','paths','\x20menu(s)\x20with\x20JS:\x20','skipped','targetPages','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','\x20menu(s)\x20created','1478220NXsAiI','boolean','Online\x20menu\x20list\x20fetched','cyan'];a134_0x2d63=function(){return _0x166f7a;};return a134_0x2d63();}function a134_0x4008(_0x24b503,_0x33cd25){_0x24b503=_0x24b503-0xe3;const _0x2d6376=a134_0x2d63();let _0x4008b5=_0x2d6376[_0x24b503];return _0x4008b5;}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':a134_0x241447(0x128),'command':'sync','description':a134_0x241447(0x123),'risk':'write','flags':[{'name':a134_0x241447(0xe5),'type':a134_0x241447(0x127),'description':a134_0x241447(0xeb)+a134_0x241447(0x119)},{'name':a134_0x241447(0xf3),'type':a134_0x241447(0x127),'description':'Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync'},{'name':a134_0x241447(0xe3),'type':a134_0x241447(0xfa),'description':'Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages'}],async 'dryRun'(_0x5de46b){const _0xb2d763=a134_0x241447;ensureRunnableContext(_0x5de46b[_0xb2d763(0xed)],_0x5de46b[_0xb2d763(0xfe)]);const _0x2f5679=await runMenuSyncCore(_0x5de46b[_0xb2d763(0x10b)],_0x5de46b[_0xb2d763(0x104)],parsePaths(_0x5de46b['str'](_0xb2d763(0xf3))),_0x5de46b[_0xb2d763(0x111)](_0xb2d763(0xe5)),{'dryRun':!![]});return{'method':_0xb2d763(0x129),'url':_0xb2d763(0xe4),'body':_0x2f5679,'description':_0x2f5679[_0xb2d763(0xf5)]?'No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.':_0xb2d763(0x122)+_0x2f5679[_0xb2d763(0xf6)]['length']+_0xb2d763(0x115)};},async 'execute'(_0x2f5db1){const _0x481ecd=a134_0x241447;ensureRunnableContext(_0x2f5db1[_0x481ecd(0xed)],_0x2f5db1[_0x481ecd(0xfe)]);const _0x2f5f02=_0x2f5db1[_0x481ecd(0x118)](_0x481ecd(0xe3)),_0xa5bae8=_0x2f5db1[_0x481ecd(0x111)](_0x481ecd(0xe5)),_0x42089f=parsePaths(_0x2f5db1[_0x481ecd(0x111)](_0x481ecd(0xf3))),_0x5cc032=parseMenuSyncParams(_0xa5bae8);if(_0x2f5f02){const _0x5f0afc=await runMenuSyncCore(_0x2f5db1[_0x481ecd(0x10b)],_0x2f5db1[_0x481ecd(0x104)],_0x42089f,_0xa5bae8);if(_0x5f0afc[_0x481ecd(0xf5)]){const _0x574c0e=getLocalPages();_0x574c0e[_0x481ecd(0x10e)]===0x0?writeCliSideChannelLine(_0x481ecd(0xee)):writeCliSideChannelLine(_0x481ecd(0x113));}else writeCliSideChannelLine(_0x481ecd(0x11e)+_0x5f0afc[_0x481ecd(0xf2)]+_0x481ecd(0xf8));return{'ok':!![],'data':_0x5f0afc,'message':_0x5f0afc['skipped']?'Menu\x20sync\x20skipped':_0x481ecd(0x120)+_0x5f0afc[_0x481ecd(0xf2)]+_0x481ecd(0x11f)};}if(_0x42089f[_0x481ecd(0x10e)]>0x0)throw CliErrors[_0x481ecd(0xea)](_0x481ecd(0x125),_0x481ecd(0x112));if(!isInteractive()&&_0xa5bae8)throw CliErrors['validation']('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x481ecd(0x112));requireInteractive();const _0x41884e=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x22c397,_0x47aba1,_0x4b15f6;try{const _0x6dc904=await fetchMenuData(_0x2f5db1[_0x481ecd(0x10b)],_0x2f5db1[_0x481ecd(0x104)]);_0x22c397=_0x6dc904[_0x481ecd(0x11c)],_0x47aba1=_0x6dc904['onlinePaths'],_0x4b15f6=_0x6dc904[_0x481ecd(0x101)],stopSpinner(_0x41884e,_0x481ecd(0xfb),!![]);}catch(_0x7d75e4){stopSpinner(_0x41884e,_0x481ecd(0xff),![]);throw CliErrors['validation'](_0x7d75e4 instanceof Error?_0x7d75e4[_0x481ecd(0xf1)]:_0x481ecd(0xff));}if(_0x22c397[_0x481ecd(0x10e)]===0x0)return writeCliSideChannelLine(a134_0x129a98[_0x481ecd(0x108)](_0x481ecd(0x121))),{'ok':!![]};const _0x23cccc=buildCompareRows(_0x22c397,_0x47aba1);writeCliSideChannelLine(renderCompareTable(_0x23cccc)),writeCliSideChannelLine('');const _0x2152c2=await selectPages(_0x22c397,_0x47aba1);writeCliSideChannelLine(''),writeCliSideChannelLine(a134_0x129a98[_0x481ecd(0xfc)]('\x20\x20✓\x20Selected:\x20'+_0x2152c2[_0x481ecd(0x10e)]+_0x481ecd(0x11b)));const _0x5cf5ba=_0x5cc032['jsUrl']&&_0x5cc032[_0x481ecd(0x114)];if(!_0x5cf5ba){writeCliSideChannelLine(renderSyncSummary(_0x2152c2,_0x47aba1[_0x481ecd(0x103)]>0x0));const _0x54f6d3=await askConfirm(_0x481ecd(0x10c));if(!_0x54f6d3)return writeCliSideChannelLine(a134_0x129a98[_0x481ecd(0x10f)](_0x481ecd(0x100))),{'ok':!![]};}let _0x1e4af7=_0x5cc032['jsUrl'],_0x564c78=_0x5cc032[_0x481ecd(0x114)];!_0x1e4af7&&(_0x1e4af7=await askJsUrl());!_0x564c78&&(_0x564c78=await askCssUrl());const _0x30b617=await askConfirm(_0x481ecd(0x116)+_0x2152c2[_0x481ecd(0x10e)]+_0x481ecd(0xf4)+_0x1e4af7+'\x20and\x20CSS:\x20'+_0x564c78+'?');if(!_0x30b617)return writeCliSideChannelLine(a134_0x129a98[_0x481ecd(0x10f)]('\x20\x20Cancelled.')),{'ok':!![]};const _0x54e01a=[_0x1e4af7,_0x564c78],_0x199529=startSpinner(_0x481ecd(0xe7)+_0x2152c2[_0x481ecd(0x10e)]+_0x481ecd(0xf0));try{const _0xa00d6=await doCreateMenus(_0x2f5db1[_0x481ecd(0x10b)],_0x2f5db1['cookie'],_0x2152c2,_0x54e01a);return stopSpinner(_0x199529,_0x481ecd(0x110)+_0xa00d6[_0x481ecd(0xf2)]+_0x481ecd(0x102),!![]),{'ok':!![],'data':_0xa00d6,'message':_0x481ecd(0x120)+_0xa00d6[_0x481ecd(0xf2)]+_0x481ecd(0xe9)+_0xa00d6[_0x481ecd(0x10a)]+'\x20failed.'};}catch(_0x1fe3c8){stopSpinner(_0x199529,'Menu\x20creation\x20failed',![]);throw CliErrors[_0x481ecd(0xea)](_0x1fe3c8 instanceof Error?_0x1fe3c8[_0x481ecd(0xf1)]:_0x481ecd(0x106));}}};function ensureRunnableContext(_0x240675,_0x59f2b8){const _0x2e7897=a134_0x241447,_0x30c2d2=_0x240675[_0x2e7897(0xe8)]?String(_0x240675['appcode'])[_0x2e7897(0xef)]():'';if(!isInProject()&&!_0x59f2b8&&!_0x30c2d2)throw CliErrors[_0x2e7897(0xea)](_0x2e7897(0xf7)+_0x2e7897(0x10d));}function parsePaths(_0x55b2b4){const _0x3560e6=a134_0x241447;return[...new Set(_0x55b2b4[_0x3560e6(0x11d)](',')['map'](_0x504ab3=>_0x504ab3['trim']())[_0x3560e6(0x109)](Boolean))];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a135_0x4a82ce=a135_0x5e37;(function(_0x264136,_0x44e43a){const _0x5c6dee=a135_0x5e37,_0x59fdd7=_0x264136();while(!![]){try{const _0x110cff=-parseInt(_0x5c6dee(0x162))/0x1*(parseInt(_0x5c6dee(0x16d))/0x2)+-parseInt(_0x5c6dee(0x113))/0x3+-parseInt(_0x5c6dee(0x171))/0x4+-parseInt(_0x5c6dee(0x170))/0x5+-parseInt(_0x5c6dee(0x12a))/0x6*(-parseInt(_0x5c6dee(0x168))/0x7)+-parseInt(_0x5c6dee(0x12c))/0x8+parseInt(_0x5c6dee(0x13b))/0x9;if(_0x110cff===_0x44e43a)break;else _0x59fdd7['push'](_0x59fdd7['shift']());}catch(_0x25f05d){_0x59fdd7['push'](_0x59fdd7['shift']());}}}(a135_0x5796,0x5f51c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a135_0x5796(){const _0x562586=['\x20menu(s);\x20skipped\x20','resourcesValid','verify\x20menu\x20visibility\x20update','failed','638910kiZsRj','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','expectVisible','flagMissing','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','menu\x20list','expectedCount','pageType','Updated\x20visibility\x20for\x20','Response\x20was\x20lost\x20and\x20menu\x20','datasetCode','expected-count','menu_expected_count_mismatch','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','type','Response\x20was\x20lost\x20for\x20menu\x20','recovered','hash','\x20changed\x20unexpectedly.','Final\x20menu\x20visibility\x20readback\x20failed.','menu_selector_not_found','12CcIDuY','boolean','1626408nfGoqq','join','childrenIds','stringify','set','path','byId','Menu\x20path\x20selector\x20not\x20found:\x20','expect-visible','plannedActions','update\x20visibility\x20for','updated','get','warnings','Menu\x20id\x20selector(s)\x20not\x20found:\x20','17533800FCzvJC','sort','update-recovery','\x20unchanged\x20menu(s).','code','rawFlags','pageId','visibility-update','message','string','resources','modelType','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','menuIds','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','POST','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','\x20skipped,\x20','\x20updated,\x20','before','childrenCount','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','isSafeInteger','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','number','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','update','rabetbase\x20menu\x20list\x20--format\x20compress','plan','label','targets','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','has','\x20must\x20be\x20true\x20or\x20false.','paths','Requested\x20menu\x20visibility','appCode','update\x20menu\x20visibility','27539aMpTNN','verification','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','true','menu-ids','filter','280063PVDZha','datasetId','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','body','length','28MdBtaB','visible','push','884870Muicpc','2635996jAaDkx','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','\x20failed.','/smartapi/menu/update','menu_verification_failed','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','Menu\x20','map','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','Selected\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','validation','false','requestedVisible','parentId','isArray','depth','Menu\x20visibility\x20update\x20completed:\x20','cookie','url','beforeById','Would\x20update\x20visibility\x20for\x20','values','some'];a135_0x5796=function(){return _0x562586;};return a135_0x5796();}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':a135_0x4a82ce(0x14b),'path':a135_0x4a82ce(0x174)}];export const menuVisibilityUpdate={'service':'menu','command':a135_0x4a82ce(0x142),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a135_0x4a82ce(0x166),'type':'string','description':a135_0x4a82ce(0x153)},{'name':a135_0x4a82ce(0x15e),'type':a135_0x4a82ce(0x144),'description':a135_0x4a82ce(0x119)},{'name':a135_0x4a82ce(0x16e),'type':a135_0x4a82ce(0x12b),'required':!![],'description':a135_0x4a82ce(0x15f)},{'name':'expect-visible','type':'boolean','description':a135_0x4a82ce(0x15b)},{'name':a135_0x4a82ce(0x120),'type':a135_0x4a82ce(0x154),'description':a135_0x4a82ce(0x151)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1f6f00){parseInput(_0x1f6f00),requireExplicitYes(_0x1f6f00);},async 'dryRun'(_0x32282e){const _0x16d57d=a135_0x4a82ce,_0x3c0dd9=await buildPlan(_0x32282e,!![]),_0x48feac=_0x3c0dd9[_0x16d57d(0x158)][_0x16d57d(0x135)]?.[_0x16d57d(0x16c)]??0x0,_0x5a86f4=_0x3c0dd9[_0x16d57d(0x158)]['targets'][_0x16d57d(0x16c)]-_0x48feac;return menuDryRunResult(_0x3c0dd9['plan'],{'method':_0x16d57d(0x14b),'url':'/smartapi/menu/update','body':{'updates':_0x3c0dd9[_0x16d57d(0x158)][_0x16d57d(0x135)]?.[_0x16d57d(0x178)](_0x111d82=>_0x111d82[_0x16d57d(0x16b)])??[]},'description':_0x16d57d(0x186)+_0x48feac+'\x20menu(s);\x20skip\x20'+_0x5a86f4+_0x16d57d(0x13e)});},async 'execute'(_0x2ba8d3){const _0x590615=a135_0x4a82ce;requireExplicitYes(_0x2ba8d3);const _0x46106f=await buildPlan(_0x2ba8d3,![]);await recheckMutationSnapshot(_0x2ba8d3,_0x46106f[_0x590615(0x158)],'update\x20menu\x20visibility');const _0x1348b6=[],_0x3c6aba=[],_0x1e83ae=[];for(const _0x214e08 of _0x46106f[_0x590615(0x158)][_0x590615(0x15a)]){if(_0x214e08[_0x590615(0x14f)][_0x590615(0x16e)]===_0x46106f[_0x590615(0x158)]['requestedVisible']){_0x1348b6[_0x590615(0x16f)]({'id':_0x214e08['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x2ba8d3[_0x590615(0x160)],_0x2ba8d3[_0x590615(0x183)],{'id':_0x214e08['id'],'visible':_0x46106f[_0x590615(0x158)]['requestedVisible']}),_0x1348b6[_0x590615(0x16f)]({'id':_0x214e08['id'],'updated':!![],'skipped':![]});}catch(_0x31c4da){const _0x2ab59c=mapMenuApiError(_0x31c4da,_0x590615(0x136),_0x214e08['id']);if(isMenuResponseLoss(_0x31c4da)&&_0x2ab59c[_0x590615(0x13f)]!=='menu_permission_denied'){_0x1e83ae['push'](_0x214e08['id']);continue;}_0x3c6aba[_0x590615(0x16f)]({'id':_0x214e08['id'],'stage':_0x590615(0x156),'code':_0x2ab59c[_0x590615(0x13f)],'message':_0x2ab59c['message']});}}let _0x473d5e;try{_0x473d5e=await fetchMenuSnapshot(_0x2ba8d3['appCode'],_0x2ba8d3['cookie']);}catch(_0x166291){const _0x27bced=describeMenuErrorCause(_0x166291,_0x590615(0x111)),_0xd42b3b=_0x1e83ae[_0x590615(0x178)](_0x58255c=>({'id':_0x58255c,'stage':_0x590615(0x13d),'code':_0x590615(0x175),'message':_0x590615(0x124)+_0x58255c+_0x590615(0x114),'requestedStateConfirmed':![],'recovered':![]})),_0x3fe776={'stage':_0x590615(0x163),'code':_0x590615(0x175),'message':_0x590615(0x128),'targetIds':_0x46106f[_0x590615(0x158)]['targets'][_0x590615(0x178)](_0x4f943b=>_0x4f943b['id']),'requestedStateConfirmed':![],..._0x27bced};throw menuFailure(asVerificationError(_0x166291,_0x590615(0x17b)),_0x46106f[_0x590615(0x158)],{'stage':'verification','succeeded':_0x1348b6,'failedRecords':[..._0x3c6aba,..._0xd42b3b,_0x3fe776],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':'failed','recoveredCount':0x0,'lookupCommand':_0x590615(0x157)}});}const _0x255bf5=[];for(const _0x310f7c of _0x1348b6){const _0x43adce=Number(_0x310f7c['id']),_0x577bf1=_0x46106f[_0x590615(0x185)][_0x590615(0x138)](_0x43adce),_0x4c5a1e=_0x473d5e['byId'][_0x590615(0x138)](_0x43adce);try{verifyVisibilityUpdate(_0x577bf1,_0x4c5a1e,_0x46106f['plan'][_0x590615(0x17e)]);}catch(_0x4b8378){const _0x572653=asVerificationError(_0x4b8378,_0x590615(0x177)+_0x43adce+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x255bf5['push']({'id':_0x43adce,'stage':_0x590615(0x163),'code':_0x572653[_0x590615(0x13f)],'message':_0x572653[_0x590615(0x143)],'requestedStateConfirmed':![]});}}for(const _0x10d6f8 of _0x1e83ae){const _0x5028ba=_0x46106f[_0x590615(0x185)][_0x590615(0x138)](_0x10d6f8),_0x1ed8cd=_0x473d5e[_0x590615(0x132)]['get'](_0x10d6f8);try{verifyVisibilityUpdate(_0x5028ba,_0x1ed8cd,_0x46106f['plan']['requestedVisible']),_0x1348b6['push']({'id':_0x10d6f8,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4adab2){const _0x3b433d=asVerificationError(_0x4adab2,_0x590615(0x11e)+_0x10d6f8+_0x590615(0x148));_0x255bf5['push']({'id':_0x10d6f8,'stage':'update-recovery','code':_0x3b433d['code'],'message':_0x3b433d[_0x590615(0x143)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x255bf5['length']>0x0){const _0x57b2d3=_0x255bf5[_0x590615(0x178)](_0x3ed0ea=>Number(_0x3ed0ea['id'])),_0x4c8d4a=_0x1348b6['filter'](_0x62f161=>_0x62f161[_0x590615(0x125)]===!![])[_0x590615(0x16c)],_0x3a59c1=menuError('menu_verification_failed',_0x590615(0x172)+_0x57b2d3[_0x590615(0x12d)](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x3a59c1,_0x46106f[_0x590615(0x158)],{'stage':'verification','succeeded':_0x1348b6,'failedRecords':[..._0x3c6aba,..._0x255bf5],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x590615(0x112),..._0x57b2d3[_0x590615(0x16c)]===0x1?{'targetId':_0x57b2d3[0x0]}:{'targetIds':_0x57b2d3},'recoveredCount':_0x4c8d4a,'lookupCommand':_0x590615(0x157)}});}const _0x426379=_0x1348b6[_0x590615(0x167)](_0x2786b8=>_0x2786b8[_0x590615(0x137)]===!![])[_0x590615(0x16c)],_0x17031e=_0x1348b6[_0x590615(0x16c)]-_0x426379,_0xc8355f={..._0x46106f[_0x590615(0x158)],'succeeded':_0x1348b6,'failed':_0x3c6aba,'warnings':_0x3c6aba[_0x590615(0x16c)]>0x0?[..._0x46106f['plan'][_0x590615(0x139)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x46106f[_0x590615(0x158)][_0x590615(0x139)],'verification':{'checkedBy':_0x590615(0x11a),'snapshotHash':_0x473d5e[_0x590615(0x126)],'matchesRequestedState':_0x3c6aba['length']===0x0,'recoveredCount':_0x1e83ae['length']}};return{'ok':_0x3c6aba[_0x590615(0x16c)]===0x0,'data':_0xc8355f,'message':_0x3c6aba[_0x590615(0x16c)]===0x0?_0x590615(0x11d)+_0x426379+_0x590615(0x10f)+_0x17031e+_0x590615(0x13e):_0x590615(0x182)+_0x426379+_0x590615(0x14e)+_0x17031e+_0x590615(0x14d)+_0x3c6aba[_0x590615(0x16c)]+_0x590615(0x173)};}};function parseInput(_0xba331e){const _0x46a639=a135_0x4a82ce,_0x38c75e=parseMenuIds(_0xba331e['str']('menu-ids')),_0x552a11=parseCsv(_0xba331e['str'](_0x46a639(0x15e)));if(_0x38c75e[_0x46a639(0x16c)]===0x0&&_0x552a11[_0x46a639(0x16c)]===0x0)throw CliErrors['validation'](_0x46a639(0x122));const _0x47934c=parseBooleanFlag(_0xba331e,'visible',!![]),_0x45b719=parseBooleanFlag(_0xba331e,_0x46a639(0x134),![]);let _0x57cb49;if(hasFlag(_0xba331e,_0x46a639(0x120))){_0x57cb49=_0xba331e['num']('expected-count');if(!Number[_0x46a639(0x152)](_0x57cb49)||_0x57cb49<0x0)throw CliErrors['validation'](_0x46a639(0x155));}return{'menuIds':_0x38c75e,'paths':_0x552a11,'visible':_0x47934c,'expectVisible':_0x45b719,'expectedCount':_0x57cb49};}function a135_0x5e37(_0x472bca,_0x5f48b1){_0x472bca=_0x472bca-0x10e;const _0x579665=a135_0x5796();let _0x5e3765=_0x579665[_0x472bca];return _0x5e3765;}async function buildPlan(_0x184f54,_0x2aef55){const _0x310045=a135_0x4a82ce,_0x10e575=parseInput(_0x184f54),_0x397ee0=await fetchMutationSnapshot(_0x184f54,_0x310045(0x161)),_0x797518=selectTargets(_0x397ee0['menus'],_0x10e575['menuIds'],_0x10e575['paths']);if(_0x10e575[_0x310045(0x11b)]!==undefined&&_0x797518[_0x310045(0x16c)]!==_0x10e575[_0x310045(0x11b)])throw menuError(_0x310045(0x121),_0x310045(0x17a)+_0x797518['length']+'\x20menu(s),\x20expected\x20'+_0x10e575[_0x310045(0x11b)]+'.',_0x310045(0x176));if(_0x10e575[_0x310045(0x117)]!==undefined){const _0x552ccf=_0x797518['filter'](_0x5a18ef=>_0x5a18ef[_0x310045(0x16e)]!==_0x10e575[_0x310045(0x117)]);if(_0x552ccf[_0x310045(0x16c)]>0x0)throw menuError('menu_state_drift',_0x310045(0x115)+_0x552ccf[_0x310045(0x178)](_0xebbf8f=>_0xebbf8f['id'])[_0x310045(0x12d)](',\x20')+'.',_0x310045(0x179));}const _0x1a371a=_0x797518[_0x310045(0x178)](_0x3d9edc=>({'id':_0x3d9edc['id'],'label':_0x3d9edc[_0x310045(0x159)],'path':_0x3d9edc['path'],'before':{'visible':_0x3d9edc['visible']},'after':{'visible':_0x10e575[_0x310045(0x16e)]}})),_0x3e6777=_0x1a371a[_0x310045(0x167)](_0x20722e=>_0x20722e[_0x310045(0x14f)]['visible']!==_0x10e575[_0x310045(0x16e)])['map'](_0x132aab=>({'stage':'update-menu-visibility','method':_0x310045(0x14b),'path':'/smartapi/menu/update','body':{'appCode':_0x184f54['appCode'],'id':_0x132aab['id'],'visible':_0x10e575[_0x310045(0x16e)]}})),_0x4d0eb0=mutationResult({'operation':_0x310045(0x142),'selector':{'menuIds':_0x10e575[_0x310045(0x149)],'paths':_0x10e575[_0x310045(0x15e)]},'before':{'menus':_0x797518[_0x310045(0x178)](_0x1bac84=>({'id':_0x1bac84['id'],'path':_0x1bac84['path'],'visible':_0x1bac84[_0x310045(0x16e)]}))},'after':{'menus':_0x797518[_0x310045(0x178)](_0x17c8a1=>({'id':_0x17c8a1['id'],'path':_0x17c8a1['path'],'visible':_0x10e575[_0x310045(0x16e)]}))},'dryRun':_0x2aef55,'backend':[...BACKEND],'plannedActions':_0x3e6777,'snapshotHash':_0x397ee0[_0x310045(0x126)],'warnings':_0x3e6777[_0x310045(0x16c)]===0x0?[_0x310045(0x16a)]:[]});return{'plan':{..._0x4d0eb0,'requestedVisible':_0x10e575[_0x310045(0x16e)],'targets':_0x1a371a},'beforeById':new Map(_0x797518[_0x310045(0x178)](_0x4c9d4a=>[_0x4c9d4a['id'],_0x4c9d4a]))};}function selectTargets(_0xa0d7ee,_0x5407a5,_0x3a4384){const _0x3aa99c=a135_0x4a82ce,_0x3c6547=new Map(_0xa0d7ee['map'](_0x5971be=>[_0x5971be['id'],_0x5971be])),_0x283ace=new Map(),_0x2bbdda=_0x5407a5[_0x3aa99c(0x167)](_0x4de4c3=>!_0x3c6547[_0x3aa99c(0x15c)](_0x4de4c3));if(_0x2bbdda[_0x3aa99c(0x16c)]>0x0)throw menuError(_0x3aa99c(0x129),_0x3aa99c(0x13a)+_0x2bbdda['join'](',\x20')+'.',_0x3aa99c(0x14c));for(const _0x165096 of _0x5407a5){_0x283ace[_0x3aa99c(0x130)](_0x165096,_0x3c6547[_0x3aa99c(0x138)](_0x165096));}for(const _0x251a4a of _0x3a4384){const _0x5053ed=_0xa0d7ee[_0x3aa99c(0x167)](_0x478f25=>_0x478f25[_0x3aa99c(0x131)]===_0x251a4a);if(_0x5053ed[_0x3aa99c(0x16c)]===0x0)throw menuError('menu_selector_not_found',_0x3aa99c(0x133)+JSON[_0x3aa99c(0x12f)](_0x251a4a)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x5053ed[_0x3aa99c(0x16c)]>0x1)throw menuError('menu_selector_ambiguous','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON['stringify'](_0x251a4a)+'.',_0x3aa99c(0x116)+_0x5053ed[_0x3aa99c(0x178)](_0x235f13=>_0x235f13['id'])[_0x3aa99c(0x12d)](',\x20')+'.');const _0x506791=_0x5053ed[0x0];_0x283ace[_0x3aa99c(0x130)](_0x506791['id'],_0x506791);}return[..._0x283ace[_0x3aa99c(0x187)]()];}function parseMenuIds(_0x241550){const _0x488be4=a135_0x4a82ce,_0x4284c4=parseCsv(_0x241550),_0x17441f=_0x4284c4[_0x488be4(0x178)](Number);if(_0x17441f[_0x488be4(0x10e)](_0x2ffa85=>!Number[_0x488be4(0x152)](_0x2ffa85)||_0x2ffa85<=0x0))throw CliErrors[_0x488be4(0x17c)](_0x488be4(0x164));return[...new Set(_0x17441f)];}function parseCsv(_0x226884){const _0x590005=a135_0x4a82ce;return[...new Set(_0x226884['split'](',')[_0x590005(0x178)](_0x3758b0=>_0x3758b0['trim']())[_0x590005(0x167)](Boolean))];}function parseBooleanFlag(_0xe89bfa,_0x98b108,_0x3047bf){const _0x141148=a135_0x4a82ce;if(!hasFlag(_0xe89bfa,_0x98b108)){if(_0x3047bf)throw CliErrors[_0x141148(0x118)](_0x98b108);return undefined;}const _0x522580=_0xe89bfa[_0x141148(0x140)][_0x98b108];if(_0x522580===!![]||_0x522580===![])return _0x522580;if(_0x522580===_0x141148(0x165))return!![];if(_0x522580===_0x141148(0x17d))return![];throw CliErrors[_0x141148(0x17c)]('--'+_0x98b108+_0x141148(0x15d));}function verifyVisibilityUpdate(_0x31473f,_0x13dad7,_0x5a0ee9){const _0x25d9bc=a135_0x4a82ce;assertVerified(!!_0x13dad7,'Menu\x20'+_0x31473f['id']+_0x25d9bc(0x147)),assertVerified(_0x13dad7[_0x25d9bc(0x16e)]===_0x5a0ee9,'Menu\x20'+_0x31473f['id']+_0x25d9bc(0x14a));const _0x1ef185=[['id',_0x13dad7['id'],_0x31473f['id']],[_0x25d9bc(0x17f),_0x13dad7[_0x25d9bc(0x17f)],_0x31473f[_0x25d9bc(0x17f)]],[_0x25d9bc(0x181),_0x13dad7[_0x25d9bc(0x181)],_0x31473f[_0x25d9bc(0x181)]],['label',_0x13dad7[_0x25d9bc(0x159)],_0x31473f['label']],['path',_0x13dad7[_0x25d9bc(0x131)],_0x31473f[_0x25d9bc(0x131)]],[_0x25d9bc(0x184),_0x13dad7[_0x25d9bc(0x184)],_0x31473f[_0x25d9bc(0x184)]],[_0x25d9bc(0x123),_0x13dad7[_0x25d9bc(0x123)],_0x31473f[_0x25d9bc(0x123)]],[_0x25d9bc(0x13c),_0x13dad7[_0x25d9bc(0x13c)],_0x31473f['sort']],[_0x25d9bc(0x145),_0x13dad7[_0x25d9bc(0x145)],_0x31473f[_0x25d9bc(0x145)]],[_0x25d9bc(0x110),_0x13dad7['resourcesValid'],_0x31473f['resourcesValid']],[_0x25d9bc(0x12e),_0x13dad7[_0x25d9bc(0x12e)],_0x31473f['childrenIds']],[_0x25d9bc(0x150),_0x13dad7['childrenCount'],_0x31473f[_0x25d9bc(0x150)]],['pageId',_0x13dad7[_0x25d9bc(0x141)],_0x31473f[_0x25d9bc(0x141)]],[_0x25d9bc(0x11c),_0x13dad7[_0x25d9bc(0x11c)],_0x31473f[_0x25d9bc(0x11c)]],['modelType',_0x13dad7['modelType'],_0x31473f[_0x25d9bc(0x146)]],[_0x25d9bc(0x169),_0x13dad7[_0x25d9bc(0x169)],_0x31473f[_0x25d9bc(0x169)]],[_0x25d9bc(0x11f),_0x13dad7[_0x25d9bc(0x11f)],_0x31473f[_0x25d9bc(0x11f)]]];for(const [_0x3bafa4,_0x285c0c,_0x2d91d5]of _0x1ef185){assertVerified(sameValue(_0x285c0c,_0x2d91d5),_0x25d9bc(0x177)+_0x31473f['id']+'\x20'+_0x3bafa4+_0x25d9bc(0x127));}}function sameValue(_0x4f6420,_0x45dd3d){const _0x52ca35=a135_0x4a82ce;if(Array[_0x52ca35(0x180)](_0x4f6420)||Array[_0x52ca35(0x180)](_0x45dd3d))return JSON['stringify'](_0x4f6420)===JSON[_0x52ca35(0x12f)](_0x45dd3d);return _0x4f6420===_0x45dd3d;}
|
|
1
|
+
function a135_0x3e97(_0x36fde9,_0x44b47b){_0x36fde9=_0x36fde9-0xef;const _0x38307e=a135_0x3830();let _0x3e97d7=_0x38307e[_0x36fde9];return _0x3e97d7;}function a135_0x3830(){const _0xcd8246=['update-recovery','menus','string','\x20updated,\x20','true','isSafeInteger','menuIds','filter','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','updated','beforeById','pageType','update\x20visibility\x20for','label','Menu\x20visibility\x20update\x20completed:\x20','validation','push','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','split','Would\x20update\x20visibility\x20for\x20','expected-count','body','code','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','recovered','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','menu_expected_count_mismatch','plannedActions','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','Menu\x20','60002FDKAED','appCode','failed','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','targets','menu_verification_failed','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','depth','values','resources','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','childrenCount','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','2faclTM','message','has','false','47070acQKhp','expect-visible','Response\x20was\x20lost\x20for\x20menu\x20','datasetId','requestedVisible','12282090aWmGvR','Selected\x20','trim','stringify','some','high-risk-write','902084dFCIIg','1174011GdAyLH','5WFjvBc','verification','byId','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','warnings','childrenIds','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','Response\x20was\x20lost\x20and\x20menu\x20','url','menu_selector_not_found','update\x20menu\x20visibility','visible','Updated\x20visibility\x20for\x20','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','menu\x20list','rabetbase\x20menu\x20list\x20--format\x20compress','path','boolean','visibility-update','pageId','\x20menu(s),\x20expected\x20','update-menu-visibility','Requested\x20menu\x20visibility','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','map','set','get','str','length','modelType','175HsenPC','menu_permission_denied','/smartapi/menu/update','\x20menu(s);\x20skip\x20','\x20skipped,\x20','expectVisible','\x20unchanged\x20menu(s).','3008556TstpxX','hash','Final\x20menu\x20visibility\x20readback\x20failed.','Menu\x20id\x20selector(s)\x20not\x20found:\x20','\x20changed\x20unexpectedly.','join','paths','isArray','cookie','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','type','plan','parentId','verify\x20menu\x20visibility\x20update','menu-ids','number','27032zthBXd','resourcesValid','\x20failed.','expectedCount','sort'];a135_0x3830=function(){return _0xcd8246;};return a135_0x3830();}const a135_0x183e3c=a135_0x3e97;(function(_0x2283ce,_0x4010ae){const _0x36ba00=a135_0x3e97,_0x48c0de=_0x2283ce();while(!![]){try{const _0x4c3504=-parseInt(_0x36ba00(0x11b))/0x1*(-parseInt(_0x36ba00(0x10d))/0x2)+-parseInt(_0x36ba00(0x12b))/0x3+-parseInt(_0x36ba00(0x12a))/0x4*(parseInt(_0x36ba00(0x12c))/0x5)+-parseInt(_0x36ba00(0x11f))/0x6+parseInt(_0x36ba00(0x14b))/0x7*(-parseInt(_0x36ba00(0x162))/0x8)+-parseInt(_0x36ba00(0x152))/0x9+parseInt(_0x36ba00(0x124))/0xa;if(_0x4c3504===_0x4010ae)break;else _0x48c0de['push'](_0x48c0de['shift']());}catch(_0x47e703){_0x48c0de['push'](_0x48c0de['shift']());}}}(a135_0x3830,0x3bc0d));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':a135_0x183e3c(0x14d)}];export const menuVisibilityUpdate={'service':'menu','command':a135_0x183e3c(0x13f),'description':a135_0x183e3c(0xfe),'risk':a135_0x183e3c(0x129),'structuredErrors':!![],'flags':[{'name':a135_0x183e3c(0x160),'type':a135_0x183e3c(0xef),'description':a135_0x183e3c(0x107)},{'name':a135_0x183e3c(0x158),'type':a135_0x183e3c(0xef),'description':a135_0x183e3c(0x15b)},{'name':a135_0x183e3c(0x138),'type':a135_0x183e3c(0x13e),'required':!![],'description':a135_0x183e3c(0x143)},{'name':'expect-visible','type':'boolean','description':a135_0x183e3c(0x105)},{'name':'expected-count','type':a135_0x183e3c(0x161),'description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1fa4a8){parseInput(_0x1fa4a8),requireExplicitYes(_0x1fa4a8);},async 'dryRun'(_0x4666bb){const _0x38ab84=a135_0x183e3c,_0x7fcd8d=await buildPlan(_0x4666bb,!![]),_0xf1c8be=_0x7fcd8d[_0x38ab84(0x15d)]['plannedActions']?.[_0x38ab84(0x149)]??0x0,_0x3db38f=_0x7fcd8d['plan'][_0x38ab84(0x112)][_0x38ab84(0x149)]-_0xf1c8be;return menuDryRunResult(_0x7fcd8d['plan'],{'method':'POST','url':_0x38ab84(0x14d),'body':{'updates':_0x7fcd8d[_0x38ab84(0x15d)][_0x38ab84(0x109)]?.[_0x38ab84(0x145)](_0x446608=>_0x446608[_0x38ab84(0x102)])??[]},'description':_0x38ab84(0x100)+_0xf1c8be+_0x38ab84(0x14e)+_0x3db38f+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x13eab8){const _0x57adc=a135_0x183e3c;requireExplicitYes(_0x13eab8);const _0x4d59e3=await buildPlan(_0x13eab8,![]);await recheckMutationSnapshot(_0x13eab8,_0x4d59e3[_0x57adc(0x15d)],_0x57adc(0x137));const _0x4e165f=[],_0x3a0c53=[],_0x3d3dc6=[];for(const _0x5f2bd9 of _0x4d59e3[_0x57adc(0x15d)][_0x57adc(0x112)]){if(_0x5f2bd9['before'][_0x57adc(0x138)]===_0x4d59e3['plan'][_0x57adc(0x123)]){_0x4e165f[_0x57adc(0xfd)]({'id':_0x5f2bd9['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x13eab8[_0x57adc(0x10e)],_0x13eab8['cookie'],{'id':_0x5f2bd9['id'],'visible':_0x4d59e3[_0x57adc(0x15d)][_0x57adc(0x123)]}),_0x4e165f['push']({'id':_0x5f2bd9['id'],'updated':!![],'skipped':![]});}catch(_0x4a08c3){const _0x4bba68=mapMenuApiError(_0x4a08c3,_0x57adc(0xf9),_0x5f2bd9['id']);if(isMenuResponseLoss(_0x4a08c3)&&_0x4bba68[_0x57adc(0x103)]!==_0x57adc(0x14c)){_0x3d3dc6[_0x57adc(0xfd)](_0x5f2bd9['id']);continue;}_0x3a0c53[_0x57adc(0xfd)]({'id':_0x5f2bd9['id'],'stage':'update','code':_0x4bba68[_0x57adc(0x103)],'message':_0x4bba68[_0x57adc(0x11c)]});}}let _0x31f93d;try{_0x31f93d=await fetchMenuSnapshot(_0x13eab8[_0x57adc(0x10e)],_0x13eab8[_0x57adc(0x15a)]);}catch(_0x1b9e82){const _0x8dbd8a=describeMenuErrorCause(_0x1b9e82,_0x57adc(0x15f)),_0x55c70a=_0x3d3dc6[_0x57adc(0x145)](_0x23665d=>({'id':_0x23665d,'stage':_0x57adc(0x167),'code':_0x57adc(0x113),'message':_0x57adc(0x121)+_0x23665d+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0xa2097b={'stage':_0x57adc(0x12d),'code':_0x57adc(0x113),'message':_0x57adc(0x154),'targetIds':_0x4d59e3[_0x57adc(0x15d)][_0x57adc(0x112)]['map'](_0x1318d9=>_0x1318d9['id']),'requestedStateConfirmed':![],..._0x8dbd8a};throw menuFailure(asVerificationError(_0x1b9e82,_0x57adc(0x144)),_0x4d59e3['plan'],{'stage':_0x57adc(0x12d),'succeeded':_0x4e165f,'failedRecords':[..._0x3a0c53,..._0x55c70a,_0xa2097b],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x57adc(0x10f),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x2a337b=[];for(const _0x1ca405 of _0x4e165f){const _0x3cb318=Number(_0x1ca405['id']),_0x3c6da9=_0x4d59e3[_0x57adc(0xf7)][_0x57adc(0x147)](_0x3cb318),_0x51fcfa=_0x31f93d['byId'][_0x57adc(0x147)](_0x3cb318);try{verifyVisibilityUpdate(_0x3c6da9,_0x51fcfa,_0x4d59e3[_0x57adc(0x15d)]['requestedVisible']);}catch(_0x18975a){const _0x26f8bb=asVerificationError(_0x18975a,_0x57adc(0x10c)+_0x3cb318+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x2a337b[_0x57adc(0xfd)]({'id':_0x3cb318,'stage':_0x57adc(0x12d),'code':_0x26f8bb[_0x57adc(0x103)],'message':_0x26f8bb['message'],'requestedStateConfirmed':![]});}}for(const _0x2c40bc of _0x3d3dc6){const _0x2e9182=_0x4d59e3[_0x57adc(0xf7)]['get'](_0x2c40bc),_0x4f8831=_0x31f93d[_0x57adc(0x12e)][_0x57adc(0x147)](_0x2c40bc);try{verifyVisibilityUpdate(_0x2e9182,_0x4f8831,_0x4d59e3[_0x57adc(0x15d)][_0x57adc(0x123)]),_0x4e165f['push']({'id':_0x2c40bc,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x57eac7){const _0x4a4d32=asVerificationError(_0x57eac7,_0x57adc(0x134)+_0x2c40bc+_0x57adc(0x13a));_0x2a337b[_0x57adc(0xfd)]({'id':_0x2c40bc,'stage':'update-recovery','code':_0x4a4d32[_0x57adc(0x103)],'message':_0x4a4d32['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2a337b[_0x57adc(0x149)]>0x0){const _0x34f3e9=_0x2a337b[_0x57adc(0x145)](_0x4e764f=>Number(_0x4e764f['id'])),_0x596676=_0x4e165f[_0x57adc(0xf4)](_0x300389=>_0x300389[_0x57adc(0x106)]===!![])['length'],_0x46af62=menuError(_0x57adc(0x113),_0x57adc(0x118)+_0x34f3e9['join'](',\x20')+'.',_0x57adc(0x10a));throw menuFailure(_0x46af62,_0x4d59e3[_0x57adc(0x15d)],{'stage':_0x57adc(0x12d),'succeeded':_0x4e165f,'failedRecords':[..._0x3a0c53,..._0x2a337b],'warnings':[_0x57adc(0x114)],'verification':{'status':_0x57adc(0x10f),..._0x34f3e9[_0x57adc(0x149)]===0x1?{'targetId':_0x34f3e9[0x0]}:{'targetIds':_0x34f3e9},'recoveredCount':_0x596676,'lookupCommand':_0x57adc(0x13c)}});}const _0x29a464=_0x4e165f[_0x57adc(0xf4)](_0x1ff811=>_0x1ff811[_0x57adc(0xf6)]===!![])[_0x57adc(0x149)],_0x49296b=_0x4e165f[_0x57adc(0x149)]-_0x29a464,_0x58aaed={..._0x4d59e3[_0x57adc(0x15d)],'succeeded':_0x4e165f,'failed':_0x3a0c53,'warnings':_0x3a0c53[_0x57adc(0x149)]>0x0?[..._0x4d59e3[_0x57adc(0x15d)][_0x57adc(0x131)],_0x57adc(0x12f)]:_0x4d59e3[_0x57adc(0x15d)][_0x57adc(0x131)],'verification':{'checkedBy':_0x57adc(0x13b),'snapshotHash':_0x31f93d[_0x57adc(0x153)],'matchesRequestedState':_0x3a0c53['length']===0x0,'recoveredCount':_0x3d3dc6[_0x57adc(0x149)]}};return{'ok':_0x3a0c53['length']===0x0,'data':_0x58aaed,'message':_0x3a0c53['length']===0x0?_0x57adc(0x139)+_0x29a464+'\x20menu(s);\x20skipped\x20'+_0x49296b+_0x57adc(0x151):_0x57adc(0xfb)+_0x29a464+_0x57adc(0xf0)+_0x49296b+_0x57adc(0x14f)+_0x3a0c53[_0x57adc(0x149)]+_0x57adc(0x164)};}};function parseInput(_0xabd4a0){const _0x3ab468=a135_0x183e3c,_0x3eb0ac=parseMenuIds(_0xabd4a0[_0x3ab468(0x148)](_0x3ab468(0x160))),_0x580667=parseCsv(_0xabd4a0[_0x3ab468(0x148)](_0x3ab468(0x158)));if(_0x3eb0ac[_0x3ab468(0x149)]===0x0&&_0x580667[_0x3ab468(0x149)]===0x0)throw CliErrors['validation'](_0x3ab468(0x10b));const _0x193c5f=parseBooleanFlag(_0xabd4a0,_0x3ab468(0x138),!![]),_0x35aad6=parseBooleanFlag(_0xabd4a0,_0x3ab468(0x120),![]);let _0x5393cb;if(hasFlag(_0xabd4a0,_0x3ab468(0x101))){_0x5393cb=_0xabd4a0['num']('expected-count');if(!Number[_0x3ab468(0xf2)](_0x5393cb)||_0x5393cb<0x0)throw CliErrors[_0x3ab468(0xfc)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x3eb0ac,'paths':_0x580667,'visible':_0x193c5f,'expectVisible':_0x35aad6,'expectedCount':_0x5393cb};}async function buildPlan(_0x279f31,_0x40ff41){const _0x1c7fc1=a135_0x183e3c,_0x3d6170=parseInput(_0x279f31),_0x698d11=await fetchMutationSnapshot(_0x279f31,'update\x20menu\x20visibility'),_0x468a61=selectTargets(_0x698d11[_0x1c7fc1(0x168)],_0x3d6170[_0x1c7fc1(0xf3)],_0x3d6170[_0x1c7fc1(0x158)]);if(_0x3d6170[_0x1c7fc1(0x165)]!==undefined&&_0x468a61[_0x1c7fc1(0x149)]!==_0x3d6170[_0x1c7fc1(0x165)])throw menuError(_0x1c7fc1(0x108),_0x1c7fc1(0x125)+_0x468a61[_0x1c7fc1(0x149)]+_0x1c7fc1(0x141)+_0x3d6170[_0x1c7fc1(0x165)]+'.',_0x1c7fc1(0xf5));if(_0x3d6170[_0x1c7fc1(0x150)]!==undefined){const _0x4d140c=_0x468a61['filter'](_0x5a6423=>_0x5a6423[_0x1c7fc1(0x138)]!==_0x3d6170[_0x1c7fc1(0x150)]);if(_0x4d140c[_0x1c7fc1(0x149)]>0x0)throw menuError('menu_state_drift','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x4d140c[_0x1c7fc1(0x145)](_0x23f8bf=>_0x23f8bf['id'])[_0x1c7fc1(0x157)](',\x20')+'.',_0x1c7fc1(0x11a));}const _0x312783=_0x468a61['map'](_0x4fadab=>({'id':_0x4fadab['id'],'label':_0x4fadab[_0x1c7fc1(0xfa)],'path':_0x4fadab[_0x1c7fc1(0x13d)],'before':{'visible':_0x4fadab[_0x1c7fc1(0x138)]},'after':{'visible':_0x3d6170[_0x1c7fc1(0x138)]}})),_0x4011f6=_0x312783[_0x1c7fc1(0xf4)](_0x2ca53f=>_0x2ca53f['before']['visible']!==_0x3d6170[_0x1c7fc1(0x138)])[_0x1c7fc1(0x145)](_0x16dbd8=>({'stage':_0x1c7fc1(0x142),'method':'POST','path':'/smartapi/menu/update','body':{'appCode':_0x279f31[_0x1c7fc1(0x10e)],'id':_0x16dbd8['id'],'visible':_0x3d6170[_0x1c7fc1(0x138)]}})),_0x3e5f3b=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x3d6170['menuIds'],'paths':_0x3d6170[_0x1c7fc1(0x158)]},'before':{'menus':_0x468a61[_0x1c7fc1(0x145)](_0x1e3500=>({'id':_0x1e3500['id'],'path':_0x1e3500['path'],'visible':_0x1e3500[_0x1c7fc1(0x138)]}))},'after':{'menus':_0x468a61[_0x1c7fc1(0x145)](_0x23c857=>({'id':_0x23c857['id'],'path':_0x23c857[_0x1c7fc1(0x13d)],'visible':_0x3d6170[_0x1c7fc1(0x138)]}))},'dryRun':_0x40ff41,'backend':[...BACKEND],'plannedActions':_0x4011f6,'snapshotHash':_0x698d11['hash'],'warnings':_0x4011f6[_0x1c7fc1(0x149)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x3e5f3b,'requestedVisible':_0x3d6170[_0x1c7fc1(0x138)],'targets':_0x312783},'beforeById':new Map(_0x468a61['map'](_0x43d96c=>[_0x43d96c['id'],_0x43d96c]))};}function selectTargets(_0x1ab7b8,_0x1cbf97,_0x10cfd7){const _0x3b713c=a135_0x183e3c,_0x253bdb=new Map(_0x1ab7b8[_0x3b713c(0x145)](_0x48845a=>[_0x48845a['id'],_0x48845a])),_0x17b358=new Map(),_0x2e856c=_0x1cbf97[_0x3b713c(0xf4)](_0x550d93=>!_0x253bdb[_0x3b713c(0x11d)](_0x550d93));if(_0x2e856c[_0x3b713c(0x149)]>0x0)throw menuError(_0x3b713c(0x136),_0x3b713c(0x155)+_0x2e856c[_0x3b713c(0x157)](',\x20')+'.',_0x3b713c(0x104));for(const _0x480109 of _0x1cbf97){_0x17b358[_0x3b713c(0x146)](_0x480109,_0x253bdb[_0x3b713c(0x147)](_0x480109));}for(const _0x2783ce of _0x10cfd7){const _0x12c6f3=_0x1ab7b8[_0x3b713c(0xf4)](_0x8943ab=>_0x8943ab[_0x3b713c(0x13d)]===_0x2783ce);if(_0x12c6f3[_0x3b713c(0x149)]===0x0)throw menuError(_0x3b713c(0x136),'Menu\x20path\x20selector\x20not\x20found:\x20'+JSON[_0x3b713c(0x127)](_0x2783ce)+'.',_0x3b713c(0x111));if(_0x12c6f3[_0x3b713c(0x149)]>0x1)throw menuError('menu_selector_ambiguous',_0x3b713c(0x133)+JSON[_0x3b713c(0x127)](_0x2783ce)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0x12c6f3['map'](_0x5c86ae=>_0x5c86ae['id'])[_0x3b713c(0x157)](',\x20')+'.');const _0x2825d2=_0x12c6f3[0x0];_0x17b358[_0x3b713c(0x146)](_0x2825d2['id'],_0x2825d2);}return[..._0x17b358[_0x3b713c(0x116)]()];}function parseMenuIds(_0x5787f7){const _0x2c08fd=a135_0x183e3c,_0x26360d=parseCsv(_0x5787f7),_0x27bd94=_0x26360d[_0x2c08fd(0x145)](Number);if(_0x27bd94[_0x2c08fd(0x128)](_0x11f558=>!Number[_0x2c08fd(0xf2)](_0x11f558)||_0x11f558<=0x0))throw CliErrors[_0x2c08fd(0xfc)](_0x2c08fd(0x110));return[...new Set(_0x27bd94)];}function parseCsv(_0x2f5a4a){const _0x46f201=a135_0x183e3c;return[...new Set(_0x2f5a4a[_0x46f201(0xff)](',')[_0x46f201(0x145)](_0x467a3e=>_0x467a3e[_0x46f201(0x126)]())[_0x46f201(0xf4)](Boolean))];}function parseBooleanFlag(_0x150f0f,_0x356830,_0x47ef7c){const _0x396e20=a135_0x183e3c;if(!hasFlag(_0x150f0f,_0x356830)){if(_0x47ef7c)throw CliErrors['flagMissing'](_0x356830);return undefined;}const _0x496c63=_0x150f0f['rawFlags'][_0x356830];if(_0x496c63===!![]||_0x496c63===![])return _0x496c63;if(_0x496c63===_0x396e20(0xf1))return!![];if(_0x496c63===_0x396e20(0x11e))return![];throw CliErrors[_0x396e20(0xfc)]('--'+_0x356830+'\x20must\x20be\x20true\x20or\x20false.');}function verifyVisibilityUpdate(_0x490f32,_0x1e2937,_0x333fe4){const _0x35cc6b=a135_0x183e3c;assertVerified(!!_0x1e2937,_0x35cc6b(0x10c)+_0x490f32['id']+_0x35cc6b(0x130)),assertVerified(_0x1e2937['visible']===_0x333fe4,_0x35cc6b(0x10c)+_0x490f32['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x1ead47=[['id',_0x1e2937['id'],_0x490f32['id']],['parentId',_0x1e2937[_0x35cc6b(0x15e)],_0x490f32[_0x35cc6b(0x15e)]],[_0x35cc6b(0x115),_0x1e2937[_0x35cc6b(0x115)],_0x490f32[_0x35cc6b(0x115)]],['label',_0x1e2937['label'],_0x490f32[_0x35cc6b(0xfa)]],[_0x35cc6b(0x13d),_0x1e2937['path'],_0x490f32[_0x35cc6b(0x13d)]],[_0x35cc6b(0x135),_0x1e2937[_0x35cc6b(0x135)],_0x490f32[_0x35cc6b(0x135)]],[_0x35cc6b(0x15c),_0x1e2937[_0x35cc6b(0x15c)],_0x490f32[_0x35cc6b(0x15c)]],['sort',_0x1e2937['sort'],_0x490f32[_0x35cc6b(0x166)]],['resources',_0x1e2937['resources'],_0x490f32[_0x35cc6b(0x117)]],[_0x35cc6b(0x163),_0x1e2937[_0x35cc6b(0x163)],_0x490f32['resourcesValid']],[_0x35cc6b(0x132),_0x1e2937[_0x35cc6b(0x132)],_0x490f32[_0x35cc6b(0x132)]],['childrenCount',_0x1e2937[_0x35cc6b(0x119)],_0x490f32[_0x35cc6b(0x119)]],[_0x35cc6b(0x140),_0x1e2937[_0x35cc6b(0x140)],_0x490f32['pageId']],[_0x35cc6b(0xf8),_0x1e2937[_0x35cc6b(0xf8)],_0x490f32[_0x35cc6b(0xf8)]],[_0x35cc6b(0x14a),_0x1e2937['modelType'],_0x490f32[_0x35cc6b(0x14a)]],[_0x35cc6b(0x122),_0x1e2937[_0x35cc6b(0x122)],_0x490f32[_0x35cc6b(0x122)]],['datasetCode',_0x1e2937['datasetCode'],_0x490f32['datasetCode']]];for(const [_0x4e5c06,_0xbcbc2c,_0x1b661d]of _0x1ead47){assertVerified(sameValue(_0xbcbc2c,_0x1b661d),_0x35cc6b(0x10c)+_0x490f32['id']+'\x20'+_0x4e5c06+_0x35cc6b(0x156));}}function sameValue(_0x488faf,_0x1d57db){const _0x5f5421=a135_0x183e3c;if(Array[_0x5f5421(0x159)](_0x488faf)||Array[_0x5f5421(0x159)](_0x1d57db))return JSON[_0x5f5421(0x127)](_0x488faf)===JSON[_0x5f5421(0x127)](_0x1d57db);return _0x488faf===_0x1d57db;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a136_0x226c(){const _0x2d93e3=['configCode','mutation','8899176GFEbBL','channelType','30iYVJkc',';\x20no\x20automatic\x20retry\x20was\x20attempted.','connectTimeout','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','50488nFOzeT','Inspect\x20with\x20','Created\x20notification\x20config\x20','planned','readTimeout','16286ZSwsYP','629781bCRpAT','create','config-create','verification','678491OcuIdI','configName','2486372FSZSiE','appCode','POST','document','99Dzwcsr','channelConfig','1118805LUmrEZ','endpointUrl','17nBPiSk','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.',';\x20do\x20not\x20resubmit.','4uzUEAh','12EgwUaf','write'];a136_0x226c=function(){return _0x2d93e3;};return a136_0x226c();}const a136_0x41766d=a136_0x1045;(function(_0x55dee1,_0x4edb90){const _0x4d5118=a136_0x1045,_0x3cf614=_0x55dee1();while(!![]){try{const _0x16a262=-parseInt(_0x4d5118(0x1cf))/0x1*(parseInt(_0x4d5118(0x1e2))/0x2)+-parseInt(_0x4d5118(0x1e3))/0x3*(parseInt(_0x4d5118(0x1d2))/0x4)+parseInt(_0x4d5118(0x1cd))/0x5*(parseInt(_0x4d5118(0x1d3))/0x6)+-parseInt(_0x4d5118(0x1e9))/0x7+-parseInt(_0x4d5118(0x1dd))/0x8*(parseInt(_0x4d5118(0x1ed))/0x9)+-parseInt(_0x4d5118(0x1d9))/0xa*(parseInt(_0x4d5118(0x1e7))/0xb)+parseInt(_0x4d5118(0x1d7))/0xc;if(_0x16a262===_0x4edb90)break;else _0x3cf614['push'](_0x3cf614['shift']());}catch(_0x3a630c){_0x3cf614['push'](_0x3cf614['shift']());}}}(a136_0x226c,0x386be));function a136_0x1045(_0x1632e0,_0x44ac7b){_0x1632e0=_0x1632e0-0x1cd;const _0x226cbb=a136_0x226c();let _0x104536=_0x226cbb[_0x1632e0];return _0x104536;}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='/notification/channel-config/create';async function prepareCreate(_0x4c98b5){const _0x17de2e=a136_0x1045,_0x5c1f63=await readNotificationDocument(_0x4c98b5,'create'),_0x30ea2d=createMutationInput(_0x4c98b5[_0x17de2e(0x1ea)],_0x5c1f63);return{'document':_0x5c1f63,'input':_0x30ea2d,'planned':projectNotificationConfig({'appCode':_0x4c98b5['appCode'],'configName':_0x5c1f63[_0x17de2e(0x1e8)],'channelType':_0x5c1f63[_0x17de2e(0x1d8)],'endpointUrl':_0x5c1f63[_0x17de2e(0x1ce)],'channelConfig':_0x5c1f63[_0x17de2e(0x1ee)],'description':_0x5c1f63['description'],'connectTimeout':_0x5c1f63[_0x17de2e(0x1db)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x5c1f63[_0x17de2e(0x1e1)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':'notification','command':a136_0x41766d(0x1e5),'description':a136_0x41766d(0x1dc),'risk':a136_0x41766d(0x1d4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3e4237){assertSingleNotificationSource(_0x3e4237);},async 'dryRun'(_0xe18eef){const _0x406995=a136_0x41766d,_0x3d1598=await prepareCreate(_0xe18eef),_0x4953d2=notificationLookupCommand(_0xe18eef[_0x406995(0x1ea)],_0x3d1598[_0x406995(0x1ec)][_0x406995(0x1d8)]);return asDryRunResult({'operation':_0x406995(0x1e4),'selector':{'appCode':_0xe18eef[_0x406995(0x1ea)],'configName':_0x3d1598['document']['configName'],'channelType':_0x3d1598[_0x406995(0x1ec)][_0x406995(0x1d8)]},'before':null,'after':_0x3d1598[_0x406995(0x1e0)],'dryRun':!![],'backend':{'method':_0x406995(0x1eb),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x4953d2}},{'method':_0x406995(0x1eb),'url':CREATE_PATH});},async 'execute'(_0x16a68f){const _0x142eb4=a136_0x41766d,_0x390e36=await prepareCreate(_0x16a68f),_0x55918c=notificationLookupCommand(_0x16a68f['appCode'],_0x390e36[_0x142eb4(0x1ec)][_0x142eb4(0x1d8)]);let _0x2b22d8;try{_0x2b22d8=await createNotificationChannelConfig(_0x390e36['input']);}catch(_0x576523){if(isPlatformTransportFailure(_0x576523))throw notificationError('notification_config_create_outcome_unknown',_0x142eb4(0x1d0),_0x142eb4(0x1de)+_0x55918c+_0x142eb4(0x1d1));throw safeApiFailure(_0x142eb4(0x1e4),_0x142eb4(0x1d6),_0x142eb4(0x1de)+_0x55918c+_0x142eb4(0x1da));}if(!Number['isSafeInteger'](_0x2b22d8)||_0x2b22d8<=0x0)throw notificationError('notification_config_create_outcome_unknown','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','Inspect\x20with\x20'+_0x55918c+_0x142eb4(0x1d1));let _0xe2e93b;try{const _0x1c753b=await getNotificationChannelConfig(_0x2b22d8,_0x16a68f['appCode']);_0xe2e93b=normalizeExactNotificationConfig(_0x1c753b,_0x2b22d8,_0x16a68f[_0x142eb4(0x1ea)]);}catch{throw safeApiFailure(_0x142eb4(0x1e4),_0x142eb4(0x1e6),'Inspect\x20with\x20'+_0x55918c+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x142eb4(0x1e4),'selector':{'appCode':_0xe2e93b['appCode'],'id':_0xe2e93b['id'],'configCode':_0xe2e93b[_0x142eb4(0x1d5)],'configName':_0xe2e93b['configName'],'channelType':_0xe2e93b[_0x142eb4(0x1d8)]},'before':null,'after':projectNotificationConfig(_0xe2e93b),'dryRun':![],'backend':{'method':_0x142eb4(0x1eb),'path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0x55918c}},'message':_0x142eb4(0x1df)+_0xe2e93b['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137_0x358d08=a137_0x1605;(function(_0x3d78f2,_0x2d1505){const _0x4ced55=a137_0x1605,_0x563eec=_0x3d78f2();while(!![]){try{const _0x29e98e=parseInt(_0x4ced55(0x188))/0x1+-parseInt(_0x4ced55(0x19a))/0x2*(parseInt(_0x4ced55(0x195))/0x3)+-parseInt(_0x4ced55(0x186))/0x4+-parseInt(_0x4ced55(0x197))/0x5+-parseInt(_0x4ced55(0x19b))/0x6*(-parseInt(_0x4ced55(0x18e))/0x7)+parseInt(_0x4ced55(0x183))/0x8+parseInt(_0x4ced55(0x189))/0x9*(-parseInt(_0x4ced55(0x18c))/0xa);if(_0x29e98e===_0x2d1505)break;else _0x563eec['push'](_0x563eec['shift']());}catch(_0x39d219){_0x563eec['push'](_0x563eec['shift']());}}}(a137_0x2f25,0x96f29));function a137_0x1605(_0x44ecee,_0x2d9b9b){_0x44ecee=_0x44ecee-0x182;const _0x2f255b=a137_0x2f25();let _0x1605b7=_0x2f255b[_0x44ecee];return _0x1605b7;}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';function a137_0x2f25(){const _0x546e26=['1312680iaLKlb','/notification/channel-config/delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','940CaXaJj','726ZeXkea','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.',';\x20do\x20not\x20resubmit\x20automatically.','7748288uJxpwZ','POST',';\x20no\x20automatic\x20retry\x20was\x20attempted.','1346256xdAYOJ','some','322957DXJJRL','2240739scyZrk','before','delete','30kzFOoa','notification_config_delete_verification_unavailable','61327sutfcB','appCode','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','notification_config_delete_outcome_unknown','Inspect\x20with\x20','notification_config_delete_verification_failed','channelType','2472vZdVQw','high-risk-write'];a137_0x2f25=function(){return _0x546e26;};return a137_0x2f25();}const DELETE_PATH=a137_0x358d08(0x198),REFERENCE_WARNING=a137_0x358d08(0x19c);async function prepareDelete(_0x3883ac){const _0x57ea0d=a137_0x358d08,_0x46202e=readNotificationId(_0x3883ac),_0x389658=await requireExactNotificationConfig(_0x3883ac[_0x57ea0d(0x18f)],_0x46202e,_0x57ea0d(0x18b));return{'id':_0x46202e,'before':_0x389658};}export const notificationConfigDelete={'service':'notification','command':'config-delete','description':a137_0x358d08(0x190),'risk':a137_0x358d08(0x196),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x36eff8){readNotificationId(_0x36eff8),requireNotificationExplicitYes(_0x36eff8);},async 'dryRun'(_0x2dc6a5){const _0x3ca37b=a137_0x358d08,_0x169a87=await prepareDelete(_0x2dc6a5),_0x6e0a32=notificationLookupCommand(_0x2dc6a5['appCode'],_0x169a87['before'][_0x3ca37b(0x194)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x169a87[_0x3ca37b(0x18a)]),'before':projectNotificationConfig(_0x169a87[_0x3ca37b(0x18a)]),'after':null,'dryRun':!![],'backend':{'method':_0x3ca37b(0x184),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x6e0a32}},{'method':_0x3ca37b(0x184),'url':DELETE_PATH});},async 'execute'(_0x3a8e25){const _0x12b665=a137_0x358d08;requireNotificationExplicitYes(_0x3a8e25);const _0x577550=await prepareDelete(_0x3a8e25),_0x75ab8f=notificationLookupCommand(_0x3a8e25[_0x12b665(0x18f)],_0x577550['before'][_0x12b665(0x194)]);let _0x420a2d=![];try{await deleteNotificationChannelConfig(_0x577550['id'],_0x3a8e25['appCode']);}catch(_0xc47397){if(!isPlatformTransportFailure(_0xc47397))throw safeApiFailure('delete','mutation','Inspect\x20with\x20'+_0x75ab8f+_0x12b665(0x185));_0x420a2d=!![];}let _0x5a4cc1;try{_0x5a4cc1=await listNotificationChannelConfigs(_0x3a8e25['appCode'],_0x577550[_0x12b665(0x18a)]['channelType']),validateNotificationDeleteReadback(_0x5a4cc1,_0x3a8e25[_0x12b665(0x18f)],_0x577550['before'][_0x12b665(0x194)]);}catch{throw notificationError(_0x420a2d?_0x12b665(0x191):_0x12b665(0x18d),'Notification\x20config\x20'+_0x577550['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x75ab8f+_0x12b665(0x182));}if(_0x5a4cc1[_0x12b665(0x187)](_0x24cd99=>_0x24cd99['id']===_0x577550['id']))throw notificationError(_0x420a2d?_0x12b665(0x191):_0x12b665(0x193),'Notification\x20config\x20'+_0x577550['id']+'\x20remains\x20present\x20after\x20delete.',_0x12b665(0x192)+_0x75ab8f+_0x12b665(0x182));const _0x19a95a=[REFERENCE_WARNING];return _0x420a2d&&_0x19a95a['unshift'](_0x12b665(0x199)),{'ok':!![],'data':{'operation':_0x12b665(0x18b),'selector':notificationSelector(_0x577550[_0x12b665(0x18a)]),'before':projectNotificationConfig(_0x577550[_0x12b665(0x18a)]),'after':null,'dryRun':![],'backend':{'method':_0x12b665(0x184),'path':DELETE_PATH},'warnings':_0x19a95a,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x420a2d,'lookupCommand':_0x75ab8f}},'message':'Deleted\x20notification\x20config\x20'+_0x577550['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a138_0x94dabd=a138_0x2c29;(function(_0x163d63,_0x1f32f3){const _0x95a38b=a138_0x2c29,_0xe6e5de=_0x163d63();while(!![]){try{const _0x53fd4e=parseInt(_0x95a38b(0xe3))/0x1*(parseInt(_0x95a38b(0xf4))/0x2)+-parseInt(_0x95a38b(0xea))/0x3*(parseInt(_0x95a38b(0xf3))/0x4)+parseInt(_0x95a38b(0xf0))/0x5+parseInt(_0x95a38b(0xe9))/0x6+-parseInt(_0x95a38b(0xec))/0x7*(parseInt(_0x95a38b(0xed))/0x8)+-parseInt(_0x95a38b(0xf2))/0x9*(parseInt(_0x95a38b(0xef))/0xa)+parseInt(_0x95a38b(0xe5))/0xb;if(_0x53fd4e===_0x1f32f3)break;else _0xe6e5de['push'](_0xe6e5de['shift']());}catch(_0x3add19){_0xe6e5de['push'](_0xe6e5de['shift']());}}}(a138_0x30ea,0xd1172));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a138_0x2c29(_0x26da4e,_0x3db0b1){_0x26da4e=_0x26da4e-0xe1;const _0x30ea92=a138_0x30ea();let _0x2c2940=_0x30ea92[_0x26da4e];return _0x2c2940;}export const notificationConfigList={'service':'notification','command':a138_0x94dabd(0xe1),'description':a138_0x94dabd(0xf1),'risk':a138_0x94dabd(0xe7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a138_0x94dabd(0xee),'type':a138_0x94dabd(0xf5),'description':a138_0x94dabd(0xe4),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a138_0x94dabd(0xeb)}],async 'validate'(_0x2b8430){readNotificationChannelType(_0x2b8430);},async 'execute'(_0x1d3917){const _0x4b81af=a138_0x94dabd,_0x356da8=readNotificationChannelType(_0x1d3917),_0x32c223=await listNotificationChannelConfigs(_0x1d3917[_0x4b81af(0xe2)],_0x356da8),_0x967880=_0x32c223[_0x4b81af(0xe6)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x1d3917[_0x4b81af(0xe2)],'channelType':_0x356da8,'count':_0x967880[_0x4b81af(0xe8)],'configs':_0x967880},'message':'Found\x20'+_0x967880[_0x4b81af(0xe8)]+'\x20'+_0x356da8+'\x20notification\x20config(s)'};}};function a138_0x30ea(){const _0x458687=['53315rFGnak','Notification\x20channel\x20type','2201518JdeIBm','map','read','length','5348946MYzRCD','45GEwsim','EMAIL','91DAGaBt','101272qDTCYy','type','180wEqQXn','5052640WkULVI','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','413073HtRmGS','82220DMNyJC','2UjINcl','string','config-list','appCode'];a138_0x30ea=function(){return _0x458687;};return a138_0x30ea();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139_0x54bba3=a139_0x2e2b;(function(_0x4b7f1,_0x4417f1){const _0x1b2751=a139_0x2e2b,_0x4bb2b9=_0x4b7f1();while(!![]){try{const _0x1794e1=parseInt(_0x1b2751(0xc3))/0x1+-parseInt(_0x1b2751(0xc1))/0x2+parseInt(_0x1b2751(0xb7))/0x3*(parseInt(_0x1b2751(0xb9))/0x4)+-parseInt(_0x1b2751(0xa6))/0x5+parseInt(_0x1b2751(0xbf))/0x6+-parseInt(_0x1b2751(0xc2))/0x7*(parseInt(_0x1b2751(0xba))/0x8)+parseInt(_0x1b2751(0xae))/0x9*(parseInt(_0x1b2751(0xa8))/0xa);if(_0x1794e1===_0x4417f1)break;else _0x4bb2b9['push'](_0x4bb2b9['shift']());}catch(_0xf65b74){_0x4bb2b9['push'](_0x4bb2b9['shift']());}}}(a139_0x1ccd,0x523d9));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a139_0x2e2b(_0x3b413b,_0x5958a9){_0x3b413b=_0x3b413b-0xa5;const _0x1ccd92=a139_0x1ccd();let _0x2e2b6b=_0x1ccd92[_0x3b413b];return _0x2e2b6b;}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=a139_0x54bba3(0xb8);function a139_0x1ccd(){const _0x5200fc=['Inspect\x20with\x20--id\x20',';\x20do\x20not\x20resubmit\x20automatically.','\x20with\x20','planned','POST','\x20via\x20','provesChange','mutation','3MhzoPW','/notification/channel-config/update','2149556xstrJN','16520rVOsdP','notification_config_update_outcome_unknown','Inspect\x20ID\x20','update','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','1767300CQiFUR','notification','1092460UxjGUu','1967LAzGnr','584838JPnFjr','appCode','notification_config_update_verification_failed','Notification\x20config\x20','payload','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','high-risk-write','notification_config_update_verification_unavailable','2255845KKesbH','config-update','520ISeONR','verified','patch','Updated\x20notification\x20config\x20','before','verifiedFields','86148BjyaRX'];a139_0x1ccd=function(){return _0x5200fc;};return a139_0x1ccd();}async function prepareUpdate(_0x47d9f6){const _0x4c40f6=a139_0x54bba3,_0xb1a96e=readNotificationId(_0x47d9f6),_0x5bac03=await readNotificationDocument(_0x47d9f6,_0x4c40f6(0xbd)),_0x195b19=await requireExactNotificationConfig(_0x47d9f6[_0x4c40f6(0xc4)],_0xb1a96e,_0x4c40f6(0xbd));return{'id':_0xb1a96e,'patch':_0x5bac03,'before':_0x195b19,'payload':mergeUpdateInput(_0x195b19,_0x5bac03),'planned':plannedUpdateProjection(_0x195b19,_0x5bac03)};}export const notificationConfigUpdate={'service':a139_0x54bba3(0xc0),'command':a139_0x54bba3(0xa7),'description':a139_0x54bba3(0xc9),'risk':a139_0x54bba3(0xca),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x5875c9){readNotificationId(_0x5875c9),assertSingleNotificationSource(_0x5875c9),requireNotificationExplicitYes(_0x5875c9);},async 'dryRun'(_0xf780c3){const _0x1e7932=a139_0x54bba3,_0x462bfa=await prepareUpdate(_0xf780c3),_0x18ca64=notificationLookupCommand(_0xf780c3[_0x1e7932(0xc4)],_0x462bfa[_0x1e7932(0xac)]['channelType']);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x462bfa[_0x1e7932(0xac)]),'before':projectNotificationConfig(_0x462bfa[_0x1e7932(0xac)]),'after':_0x462bfa[_0x1e7932(0xb2)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1e7932(0xb2),'lookupCommand':_0x18ca64}},{'method':_0x1e7932(0xb3),'url':UPDATE_PATH});},async 'execute'(_0x22380b){const _0x5e1ac5=a139_0x54bba3;requireNotificationExplicitYes(_0x22380b);const _0x567e72=await prepareUpdate(_0x22380b),_0x13125a=notificationLookupCommand(_0x22380b[_0x5e1ac5(0xc4)],_0x567e72[_0x5e1ac5(0xac)]['channelType']);let _0x3ef6ef=![];try{await updateNotificationChannelConfig(_0x567e72[_0x5e1ac5(0xc7)]);}catch(_0x2116da){if(!isPlatformTransportFailure(_0x2116da))throw safeApiFailure(_0x5e1ac5(0xbd),_0x5e1ac5(0xb6),_0x5e1ac5(0xbc)+_0x567e72['id']+_0x5e1ac5(0xb1)+_0x13125a+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x3ef6ef=!![];}let _0x23c3f9;try{const _0x45cd3a=await getNotificationChannelConfig(_0x567e72['id'],_0x22380b[_0x5e1ac5(0xc4)]);_0x23c3f9=normalizeExactNotificationConfig(_0x45cd3a,_0x567e72['id'],_0x22380b[_0x5e1ac5(0xc4)]);}catch{throw notificationError(_0x3ef6ef?_0x5e1ac5(0xbb):_0x5e1ac5(0xa5),_0x5e1ac5(0xc6)+_0x567e72['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x5e1ac5(0xaf)+_0x567e72['id']+_0x5e1ac5(0xb4)+_0x13125a+_0x5e1ac5(0xb0));}const _0x1c1979=requestedSafeFieldsMatch(_0x567e72[_0x5e1ac5(0xac)],_0x23c3f9,_0x567e72[_0x5e1ac5(0xaa)]);if(!_0x1c1979['allMatch']||_0x3ef6ef&&!_0x1c1979[_0x5e1ac5(0xb5)])throw notificationError(_0x3ef6ef?_0x5e1ac5(0xbb):_0x5e1ac5(0xc5),_0x5e1ac5(0xc6)+_0x567e72['id']+_0x5e1ac5(0xc8),_0x5e1ac5(0xaf)+_0x567e72['id']+_0x5e1ac5(0xb4)+_0x13125a+_0x5e1ac5(0xb0));const _0xf7bff4=_0x3ef6ef?[_0x5e1ac5(0xbe)]:[];return{'ok':!![],'data':{'operation':_0x5e1ac5(0xbd),'selector':notificationSelector(_0x23c3f9),'before':projectNotificationConfig(_0x567e72[_0x5e1ac5(0xac)]),'after':projectNotificationConfig(_0x23c3f9),'dryRun':![],'backend':{'method':_0x5e1ac5(0xb3),'path':UPDATE_PATH},'warnings':_0xf7bff4,'verification':{'status':_0x5e1ac5(0xa9),'recoveredAfterUnknownResponse':_0x3ef6ef,'verifiedFields':_0x1c1979[_0x5e1ac5(0xad)],'lookupCommand':_0x13125a}},'message':_0x5e1ac5(0xab)+_0x23c3f9['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5dcb99,_0x2b3fff){const _0x364380=a140_0x256a,_0x23a51b=_0x5dcb99();while(!![]){try{const _0xfd88cf=-parseInt(_0x364380(0x6e))/0x1*(parseInt(_0x364380(0x6b))/0x2)+-parseInt(_0x364380(0x6a))/0x3*(-parseInt(_0x364380(0x71))/0x4)+parseInt(_0x364380(0x72))/0x5*(parseInt(_0x364380(0x6f))/0x6)+parseInt(_0x364380(0x69))/0x7+parseInt(_0x364380(0x70))/0x8+parseInt(_0x364380(0x6d))/0x9+-parseInt(_0x364380(0x6c))/0xa;if(_0xfd88cf===_0x2b3fff)break;else _0x23a51b['push'](_0x23a51b['shift']());}catch(_0x3f4c02){_0x23a51b['push'](_0x23a51b['shift']());}}}(a140_0x5131,0x6524d));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a140_0x256a(_0x39c87d,_0x4fac11){_0x39c87d=_0x39c87d-0x69;const _0x5131ec=a140_0x5131();let _0x256a88=_0x5131ec[_0x39c87d];return _0x256a88;}function a140_0x5131(){const _0x502f78=['95KJwwIM','1831529SrLskB','3837CKPFYk','4yWrNzt','11722330dcsPJC','3370869bPzbfg','192431vRLpFJ','222438KnEaPh','554592rQfLSP','1756ZoqcYd'];a140_0x5131=function(){return _0x502f78;};return a140_0x5131();}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
|