@lovrabet/rabetbase-cli 2.5.1-beta.1 → 2.5.1-beta.3

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.
Files changed (326) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.d.ts +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-restore.d.ts +107 -0
  67. package/lib/commands/dataset/field-restore.js +1 -0
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  82. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/table-diff-shared.js +1 -1
  98. package/lib/commands/db/tables.js +1 -1
  99. package/lib/commands/db/test.js +1 -1
  100. package/lib/commands/db/update.js +1 -1
  101. package/lib/commands/deployment/auto-sync.d.ts +28 -0
  102. package/lib/commands/deployment/auto-sync.js +1 -0
  103. package/lib/commands/deployment/index.d.ts +2 -0
  104. package/lib/commands/deployment/index.js +1 -0
  105. package/lib/commands/deployment/sync.d.ts +2 -0
  106. package/lib/commands/deployment/sync.js +1 -0
  107. package/lib/commands/doctor.js +1 -1
  108. package/lib/commands/file/index.js +1 -1
  109. package/lib/commands/issue/index.js +1 -1
  110. package/lib/commands/issue/nudge.js +1 -1
  111. package/lib/commands/issue/report.js +1 -1
  112. package/lib/commands/issue/shared.js +1 -1
  113. package/lib/commands/kb/create.js +1 -1
  114. package/lib/commands/kb/delete.js +1 -1
  115. package/lib/commands/kb/detail.js +1 -1
  116. package/lib/commands/kb/index.js +1 -1
  117. package/lib/commands/kb/list.js +1 -1
  118. package/lib/commands/kb/search.js +1 -1
  119. package/lib/commands/kb/shared.js +1 -1
  120. package/lib/commands/kb/update.js +1 -1
  121. package/lib/commands/logs/index.js +1 -1
  122. package/lib/commands/menu/asset-update.js +1 -1
  123. package/lib/commands/menu/delete.js +1 -1
  124. package/lib/commands/menu/external-link-create.js +1 -1
  125. package/lib/commands/menu/external-link-update.js +1 -1
  126. package/lib/commands/menu/group-create.js +1 -1
  127. package/lib/commands/menu/group-update.js +1 -1
  128. package/lib/commands/menu/index.js +1 -1
  129. package/lib/commands/menu/list.js +1 -1
  130. package/lib/commands/menu/move.js +1 -1
  131. package/lib/commands/menu/regroup-start.js +1 -1
  132. package/lib/commands/menu/rename.js +1 -1
  133. package/lib/commands/menu/shared/compare-table.js +1 -1
  134. package/lib/commands/menu/shared/delete-plan.js +1 -1
  135. package/lib/commands/menu/shared/facts.js +1 -1
  136. package/lib/commands/menu/shared/index.js +1 -1
  137. package/lib/commands/menu/shared/inquirer.js +1 -1
  138. package/lib/commands/menu/shared/local-pages.js +1 -1
  139. package/lib/commands/menu/shared/logic.js +1 -1
  140. package/lib/commands/menu/shared/mutations.js +1 -1
  141. package/lib/commands/menu/shared/service.js +1 -1
  142. package/lib/commands/menu/shared/sync-core.js +1 -1
  143. package/lib/commands/menu/shared/update-core.js +1 -1
  144. package/lib/commands/menu/shared/valid-url.js +1 -1
  145. package/lib/commands/menu/sync.js +1 -1
  146. package/lib/commands/menu/visibility-update.js +1 -1
  147. package/lib/commands/notification/config-create.js +1 -1
  148. package/lib/commands/notification/config-delete.js +1 -1
  149. package/lib/commands/notification/config-list.js +1 -1
  150. package/lib/commands/notification/config-update.js +1 -1
  151. package/lib/commands/notification/index.js +1 -1
  152. package/lib/commands/notification/shared.js +1 -1
  153. package/lib/commands/ocr/index.js +1 -1
  154. package/lib/commands/page/create.js +1 -1
  155. package/lib/commands/page/custom/detail.js +1 -1
  156. package/lib/commands/page/custom/list.js +1 -1
  157. package/lib/commands/page/custom/publish.js +1 -1
  158. package/lib/commands/page/custom/shared.js +1 -1
  159. package/lib/commands/page/custom/syntax.js +1 -1
  160. package/lib/commands/page/custom/template.js +1 -1
  161. package/lib/commands/page/custom/update.js +1 -1
  162. package/lib/commands/page/data-list-status.js +1 -1
  163. package/lib/commands/page/generate-start.js +1 -1
  164. package/lib/commands/page/generate-status.js +1 -1
  165. package/lib/commands/page/index.js +1 -1
  166. package/lib/commands/page/pull.js +1 -1
  167. package/lib/commands/page/push.js +1 -1
  168. package/lib/commands/page/relation-audit.js +1 -1
  169. package/lib/commands/page/restore.js +1 -1
  170. package/lib/commands/page/shared.js +1 -1
  171. package/lib/commands/page/sync.js +1 -1
  172. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  173. package/lib/commands/project/create/format-elapsed.js +1 -1
  174. package/lib/commands/project/create/main.js +1 -1
  175. package/lib/commands/project/create/materialize-project-template.js +1 -1
  176. package/lib/commands/project/create/project-name.js +1 -1
  177. package/lib/commands/project/create/project-template-archive.js +1 -1
  178. package/lib/commands/project/create/project-template-path.js +1 -1
  179. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  180. package/lib/commands/project/create/use-format-code.js +1 -1
  181. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  182. package/lib/commands/project/index.js +1 -1
  183. package/lib/commands/project/upgrade.js +1 -1
  184. package/lib/commands/registry.js +1 -1
  185. package/lib/commands/role/delete.js +1 -1
  186. package/lib/commands/role/detail.js +1 -1
  187. package/lib/commands/role/index.js +1 -1
  188. package/lib/commands/role/list.js +1 -1
  189. package/lib/commands/role/shared.js +1 -1
  190. package/lib/commands/role/update.js +1 -1
  191. package/lib/commands/role/user-add.js +1 -1
  192. package/lib/commands/role/user-remove.js +1 -1
  193. package/lib/commands/role/user-resolve.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.d.ts +10 -0
  218. package/lib/config/deployment-sync.js +1 -0
  219. package/lib/config/domain-config.d.ts +1 -1
  220. package/lib/config/domain-config.js +1 -1
  221. package/lib/config/project-routing.js +1 -1
  222. package/lib/config/schema.d.ts +1 -1
  223. package/lib/config/schema.js +1 -1
  224. package/lib/constant/cdn.js +1 -1
  225. package/lib/constant/cli.js +1 -1
  226. package/lib/constant/defaults.js +1 -1
  227. package/lib/constant/domain.d.ts +2 -0
  228. package/lib/constant/domain.js +1 -1
  229. package/lib/constant/env.js +1 -1
  230. package/lib/constant/output.js +1 -1
  231. package/lib/constant/paths.js +1 -1
  232. package/lib/constant/region.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/constant/routing-profile.js +1 -1
  235. package/lib/context/app-resolver.d.ts +2 -0
  236. package/lib/context/app-resolver.js +1 -1
  237. package/lib/context/auth-resolver.js +1 -1
  238. package/lib/context/config-loader.js +1 -1
  239. package/lib/context.js +1 -1
  240. package/lib/core/alias-resolver.js +1 -1
  241. package/lib/core/api-client.d.ts +35 -16
  242. package/lib/core/api-client.js +1 -1
  243. package/lib/core/bff/config.js +1 -1
  244. package/lib/core/bff/file-system.js +1 -1
  245. package/lib/core/bff/hash.js +1 -1
  246. package/lib/core/bff/lock.js +1 -1
  247. package/lib/core/bff/utils.js +1 -1
  248. package/lib/core/db-resolver.js +1 -1
  249. package/lib/core/kb-search-client.d.ts +30 -0
  250. package/lib/core/kb-search-client.js +1 -0
  251. package/lib/core/page/file-system.js +1 -1
  252. package/lib/core/page/hash.js +1 -1
  253. package/lib/core/page/lock.js +1 -1
  254. package/lib/core/sql-index-auditor.js +1 -1
  255. package/lib/core/sql-sync/config.js +1 -1
  256. package/lib/core/sql-sync/file-system.js +1 -1
  257. package/lib/core/sql-sync/hash.js +1 -1
  258. package/lib/core/sql-sync/lock.js +1 -1
  259. package/lib/core/sql-sync/utils.js +1 -1
  260. package/lib/core/sql-validator.js +1 -1
  261. package/lib/errors.js +1 -1
  262. package/lib/framework/build-all-flags.js +1 -1
  263. package/lib/framework/error-output.js +1 -1
  264. package/lib/framework/explicit-yes.js +1 -1
  265. package/lib/framework/flags.js +1 -1
  266. package/lib/framework/help.js +1 -1
  267. package/lib/framework/index.js +1 -1
  268. package/lib/framework/output.js +1 -1
  269. package/lib/framework/response.js +1 -1
  270. package/lib/framework/runner-alias.js +1 -1
  271. package/lib/framework/runner.js +1 -1
  272. package/lib/framework/schema-export.js +1 -1
  273. package/lib/framework/types.d.ts +5 -0
  274. package/lib/framework/types.js +1 -1
  275. package/lib/generated/build-info.d.ts +4 -4
  276. package/lib/generated/build-info.js +1 -1
  277. package/lib/help.js +1 -1
  278. package/lib/postinstall.js +1 -1
  279. package/lib/runtime/confirmation.js +1 -1
  280. package/lib/runtime/event.js +1 -1
  281. package/lib/runtime/index.js +1 -1
  282. package/lib/runtime/queue.js +1 -1
  283. package/lib/runtime/resolve.js +1 -1
  284. package/lib/skills/builtin-skill.js +1 -1
  285. package/lib/skills/main.js +1 -1
  286. package/lib/skills/npx-skills-add.js +1 -1
  287. package/lib/skills/skill-presence.js +1 -1
  288. package/lib/telemetry/cli-command-trace.js +1 -1
  289. package/lib/telemetry/cli-help-trace.js +1 -1
  290. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  291. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  292. package/lib/telemetry/send-cli-trace-log.js +1 -1
  293. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  294. package/lib/utils/ai_config.js +1 -1
  295. package/lib/utils/apply-jq-filter.js +1 -1
  296. package/lib/utils/cdn-config.js +1 -1
  297. package/lib/utils/check-sdk-version.js +1 -1
  298. package/lib/utils/cli-version-check.js +1 -1
  299. package/lib/utils/cli-version-policy.js +1 -1
  300. package/lib/utils/config.js +1 -1
  301. package/lib/utils/entity-with-id.js +1 -1
  302. package/lib/utils/file-utils.js +1 -1
  303. package/lib/utils/guides-cdn.js +1 -1
  304. package/lib/utils/http-client.js +1 -1
  305. package/lib/utils/is-non-interactive.js +1 -1
  306. package/lib/utils/logger.js +1 -1
  307. package/lib/utils/params.js +1 -1
  308. package/lib/utils/platform.js +1 -1
  309. package/lib/utils/sleep.js +1 -1
  310. package/lib/utils/template-replacer.js +1 -1
  311. package/lib/utils/update-notice.js +1 -1
  312. package/lib/utils/version.js +1 -1
  313. package/lib/utils/with-active-cookie.js +1 -1
  314. package/lib/utils/write-cli-side-channel.js +1 -1
  315. package/package.json +1 -1
  316. package/skills/rabetbase/SKILL.md +12 -6
  317. package/skills/rabetbase/references/rabetbase-config.md +4 -1
  318. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  319. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  320. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  321. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  322. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  323. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  324. package/skills/rabetbase/references/rabetbase-init.md +2 -0
  325. package/skills/rabetbase/references/rabetbase-kb.md +7 -7
  326. package/skills/rabetbase.manifest.json +6 -3
@@ -1 +1 @@
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
+ function a141_0x2f76(){const _0x4413c6=['1021299JcAgSX','522614lFrKFq','input','config-create','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','POST','isSafeInteger','Created\x20notification\x20config\x20','connectTimeout','6305820HDrTqI',';\x20do\x20not\x20resubmit.','write','create','mutation','279YktKJM','planned','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','configCode','document','endpointUrl','configName','4kgIsZJ','channelConfig','5ChlGAk','notification_config_create_outcome_unknown','172192pmsBxA','Inspect\x20with\x20','readTimeout',';\x20no\x20automatic\x20retry\x20was\x20attempted.','channelType','11197949wLazcl','description','verification','1070802ndSKpU','/notification/channel-config/create','26740lkmvCh','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','verified','appCode','notification'];a141_0x2f76=function(){return _0x4413c6;};return a141_0x2f76();}const a141_0xb2489a=a141_0x177d;(function(_0x575156,_0x328ecd){const _0x20c333=a141_0x177d,_0x27ac08=_0x575156();while(!![]){try{const _0x202cbc=parseInt(_0x20c333(0x194))/0x1+-parseInt(_0x20c333(0x19c))/0x2+-parseInt(_0x20c333(0x19b))/0x3*(parseInt(_0x20c333(0x188))/0x4)+parseInt(_0x20c333(0x18a))/0x5*(-parseInt(_0x20c333(0x17c))/0x6)+parseInt(_0x20c333(0x191))/0x7+parseInt(_0x20c333(0x18c))/0x8+parseInt(_0x20c333(0x181))/0x9*(-parseInt(_0x20c333(0x196))/0xa);if(_0x202cbc===_0x328ecd)break;else _0x27ac08['push'](_0x27ac08['shift']());}catch(_0x325b87){_0x27ac08['push'](_0x27ac08['shift']());}}}(a141_0x2f76,0xe980d));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';function a141_0x177d(_0x4b3ceb,_0x39ef22){_0x4b3ceb=_0x4b3ceb-0x178;const _0x2f7670=a141_0x2f76();let _0x177d0c=_0x2f7670[_0x4b3ceb];return _0x177d0c;}const CREATE_PATH=a141_0xb2489a(0x195);async function prepareCreate(_0x1e59e3){const _0x54f3bd=a141_0xb2489a,_0xcda5a9=await readNotificationDocument(_0x1e59e3,_0x54f3bd(0x17f)),_0x4a25b5=createMutationInput(_0x1e59e3[_0x54f3bd(0x199)],_0xcda5a9);return{'document':_0xcda5a9,'input':_0x4a25b5,'planned':projectNotificationConfig({'appCode':_0x1e59e3[_0x54f3bd(0x199)],'configName':_0xcda5a9[_0x54f3bd(0x187)],'channelType':_0xcda5a9[_0x54f3bd(0x190)],'endpointUrl':_0xcda5a9[_0x54f3bd(0x186)],'channelConfig':_0xcda5a9[_0x54f3bd(0x189)],'description':_0xcda5a9[_0x54f3bd(0x192)],'connectTimeout':_0xcda5a9[_0x54f3bd(0x17b)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0xcda5a9[_0x54f3bd(0x18e)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0xb2489a(0x19a),'command':a141_0xb2489a(0x19e),'description':a141_0xb2489a(0x197),'risk':a141_0xb2489a(0x17e),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2f1da4){assertSingleNotificationSource(_0x2f1da4);},async 'dryRun'(_0x10fb3a){const _0x4282f6=a141_0xb2489a,_0x16543f=await prepareCreate(_0x10fb3a),_0x8b8ce2=notificationLookupCommand(_0x10fb3a['appCode'],_0x16543f[_0x4282f6(0x185)][_0x4282f6(0x190)]);return asDryRunResult({'operation':_0x4282f6(0x17f),'selector':{'appCode':_0x10fb3a[_0x4282f6(0x199)],'configName':_0x16543f[_0x4282f6(0x185)][_0x4282f6(0x187)],'channelType':_0x16543f[_0x4282f6(0x185)]['channelType']},'before':null,'after':_0x16543f[_0x4282f6(0x182)],'dryRun':!![],'backend':{'method':_0x4282f6(0x178),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x8b8ce2}},{'method':_0x4282f6(0x178),'url':CREATE_PATH});},async 'execute'(_0x47cd4d){const _0xa0e273=a141_0xb2489a,_0xea58e5=await prepareCreate(_0x47cd4d),_0x399ad9=notificationLookupCommand(_0x47cd4d['appCode'],_0xea58e5[_0xa0e273(0x185)]['channelType']);let _0x508ac7;try{_0x508ac7=await createNotificationChannelConfig(_0xea58e5[_0xa0e273(0x19d)]);}catch(_0x527828){if(isPlatformTransportFailure(_0x527828))throw notificationError(_0xa0e273(0x18b),_0xa0e273(0x19f),'Inspect\x20with\x20'+_0x399ad9+_0xa0e273(0x17d));throw safeApiFailure(_0xa0e273(0x17f),_0xa0e273(0x180),_0xa0e273(0x18d)+_0x399ad9+_0xa0e273(0x18f));}if(!Number[_0xa0e273(0x179)](_0x508ac7)||_0x508ac7<=0x0)throw notificationError(_0xa0e273(0x18b),_0xa0e273(0x183),_0xa0e273(0x18d)+_0x399ad9+_0xa0e273(0x17d));let _0x50b775;try{const _0x1f40aa=await getNotificationChannelConfig(_0x508ac7,_0x47cd4d[_0xa0e273(0x199)]);_0x50b775=normalizeExactNotificationConfig(_0x1f40aa,_0x508ac7,_0x47cd4d[_0xa0e273(0x199)]);}catch{throw safeApiFailure(_0xa0e273(0x17f),_0xa0e273(0x193),_0xa0e273(0x18d)+_0x399ad9+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0xa0e273(0x17f),'selector':{'appCode':_0x50b775[_0xa0e273(0x199)],'id':_0x50b775['id'],'configCode':_0x50b775[_0xa0e273(0x184)],'configName':_0x50b775[_0xa0e273(0x187)],'channelType':_0x50b775[_0xa0e273(0x190)]},'before':null,'after':projectNotificationConfig(_0x50b775),'dryRun':![],'backend':{'method':_0xa0e273(0x178),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0xa0e273(0x198),'lookupCommand':_0x399ad9}},'message':_0xa0e273(0x17a)+_0x50b775['id']};}};
@@ -1 +1 @@
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
+ const a142_0x2899d0=a142_0x195a;(function(_0x3ce3ae,_0x267846){const _0x4f21a6=a142_0x195a,_0x308b75=_0x3ce3ae();while(!![]){try{const _0x155296=-parseInt(_0x4f21a6(0x160))/0x1+-parseInt(_0x4f21a6(0x157))/0x2*(-parseInt(_0x4f21a6(0x16a))/0x3)+parseInt(_0x4f21a6(0x168))/0x4*(parseInt(_0x4f21a6(0x161))/0x5)+parseInt(_0x4f21a6(0x154))/0x6*(-parseInt(_0x4f21a6(0x15c))/0x7)+parseInt(_0x4f21a6(0x15d))/0x8*(-parseInt(_0x4f21a6(0x165))/0x9)+-parseInt(_0x4f21a6(0x166))/0xa+parseInt(_0x4f21a6(0x15a))/0xb*(parseInt(_0x4f21a6(0x167))/0xc);if(_0x155296===_0x267846)break;else _0x308b75['push'](_0x308b75['shift']());}catch(_0x224dfe){_0x308b75['push'](_0x308b75['shift']());}}}(a142_0x396e,0x3a547));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a142_0x195a(_0x9fa9dd,_0x27cab6){_0x9fa9dd=_0x9fa9dd-0x151;const _0x396e9a=a142_0x396e();let _0x195ad2=_0x396e9a[_0x9fa9dd];return _0x195ad2;}import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a142_0x396e(){const _0x40c5d5=['unshift','appCode','verified','6Wjfwet','notification_config_delete_verification_failed','planned','229344ndQAZh','\x20remains\x20present\x20after\x20delete.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','169147WtWGIs','mutation','2945243nZdvKM','1151704GnCkQQ','Notification\x20config\x20','Inspect\x20with\x20','462937uMoSAc','10KIFyHg','POST','config-delete','high-risk-write','9PLBNVC','447880lREKpG','456dDemOH','766028PsNieZ','notification_config_delete_verification_unavailable','9NAnCqy','notification','before',';\x20do\x20not\x20resubmit\x20automatically.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','notification_config_delete_outcome_unknown','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','\x20delete\x20could\x20not\x20be\x20verified.','channelType','delete'];a142_0x396e=function(){return _0x40c5d5;};return a142_0x396e();}const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING=a142_0x2899d0(0x170);async function prepareDelete(_0x5b1adb){const _0x50fec6=a142_0x2899d0,_0x21c387=readNotificationId(_0x5b1adb),_0x27c450=await requireExactNotificationConfig(_0x5b1adb[_0x50fec6(0x152)],_0x21c387,_0x50fec6(0x173));return{'id':_0x21c387,'before':_0x27c450};}export const notificationConfigDelete={'service':a142_0x2899d0(0x16b),'command':a142_0x2899d0(0x163),'description':a142_0x2899d0(0x16e),'risk':a142_0x2899d0(0x164),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x5c161d){readNotificationId(_0x5c161d),requireNotificationExplicitYes(_0x5c161d);},async 'dryRun'(_0x33e93b){const _0x2d597b=a142_0x2899d0,_0x156bdc=await prepareDelete(_0x33e93b),_0x59c600=notificationLookupCommand(_0x33e93b[_0x2d597b(0x152)],_0x156bdc[_0x2d597b(0x16c)][_0x2d597b(0x172)]);return asDryRunResult({'operation':_0x2d597b(0x173),'selector':notificationSelector(_0x156bdc[_0x2d597b(0x16c)]),'before':projectNotificationConfig(_0x156bdc[_0x2d597b(0x16c)]),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2d597b(0x156),'lookupCommand':_0x59c600}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x1a2497){const _0x5f24c9=a142_0x2899d0;requireNotificationExplicitYes(_0x1a2497);const _0x162aee=await prepareDelete(_0x1a2497),_0x10f9d2=notificationLookupCommand(_0x1a2497[_0x5f24c9(0x152)],_0x162aee['before']['channelType']);let _0x41a8aa=![];try{await deleteNotificationChannelConfig(_0x162aee['id'],_0x1a2497[_0x5f24c9(0x152)]);}catch(_0x274dd8){if(!isPlatformTransportFailure(_0x274dd8))throw safeApiFailure('delete',_0x5f24c9(0x15b),_0x5f24c9(0x15f)+_0x10f9d2+_0x5f24c9(0x159));_0x41a8aa=!![];}let _0x3db16d;try{_0x3db16d=await listNotificationChannelConfigs(_0x1a2497[_0x5f24c9(0x152)],_0x162aee[_0x5f24c9(0x16c)][_0x5f24c9(0x172)]),validateNotificationDeleteReadback(_0x3db16d,_0x1a2497[_0x5f24c9(0x152)],_0x162aee[_0x5f24c9(0x16c)][_0x5f24c9(0x172)]);}catch{throw notificationError(_0x41a8aa?_0x5f24c9(0x16f):_0x5f24c9(0x169),_0x5f24c9(0x15e)+_0x162aee['id']+_0x5f24c9(0x171),'Inspect\x20with\x20'+_0x10f9d2+_0x5f24c9(0x16d));}if(_0x3db16d['some'](_0x37fb48=>_0x37fb48['id']===_0x162aee['id']))throw notificationError(_0x41a8aa?_0x5f24c9(0x16f):_0x5f24c9(0x155),_0x5f24c9(0x15e)+_0x162aee['id']+_0x5f24c9(0x158),_0x5f24c9(0x15f)+_0x10f9d2+_0x5f24c9(0x16d));const _0xed95ff=[REFERENCE_WARNING];return _0x41a8aa&&_0xed95ff[_0x5f24c9(0x151)]('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x5f24c9(0x173),'selector':notificationSelector(_0x162aee[_0x5f24c9(0x16c)]),'before':projectNotificationConfig(_0x162aee[_0x5f24c9(0x16c)]),'after':null,'dryRun':![],'backend':{'method':_0x5f24c9(0x162),'path':DELETE_PATH},'warnings':_0xed95ff,'verification':{'status':_0x5f24c9(0x153),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x41a8aa,'lookupCommand':_0x10f9d2}},'message':'Deleted\x20notification\x20config\x20'+_0x162aee['id']};}};
@@ -1 +1 @@
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
+ const a143_0x281d30=a143_0x2da7;(function(_0x147f22,_0x426a0a){const _0xc08ad5=a143_0x2da7,_0x143845=_0x147f22();while(!![]){try{const _0x562593=parseInt(_0xc08ad5(0xde))/0x1+parseInt(_0xc08ad5(0xd1))/0x2*(-parseInt(_0xc08ad5(0xd9))/0x3)+parseInt(_0xc08ad5(0xd7))/0x4+-parseInt(_0xc08ad5(0xda))/0x5+parseInt(_0xc08ad5(0xd8))/0x6+-parseInt(_0xc08ad5(0xcf))/0x7*(parseInt(_0xc08ad5(0xce))/0x8)+-parseInt(_0xc08ad5(0xd5))/0x9*(-parseInt(_0xc08ad5(0xd0))/0xa);if(_0x562593===_0x426a0a)break;else _0x143845['push'](_0x143845['shift']());}catch(_0x4eb97f){_0x143845['push'](_0x143845['shift']());}}}(a143_0x5659,0xe5aeb));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a143_0x2da7(_0x416596,_0x407cb4){_0x416596=_0x416596-0xcd;const _0x56597a=a143_0x5659();let _0x2da705=_0x56597a[_0x416596];return _0x2da705;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a143_0x5659(){const _0x542960=['2137780YBFpCN','2717202KxcWon','1074555sdLluo','6655000oYKpTG','read','EMAIL','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','36503ERvBxw','string','Found\x20','54344hihruK','1442tSbHkb','10RJxjFT','2LCbvFM','map','appCode','notification','27049563XuDgkf','length'];a143_0x5659=function(){return _0x542960;};return a143_0x5659();}export const notificationConfigList={'service':a143_0x281d30(0xd4),'command':'config-list','description':a143_0x281d30(0xdd),'risk':a143_0x281d30(0xdb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a143_0x281d30(0xdf),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':a143_0x281d30(0xdc)}],async 'validate'(_0x3d4cff){readNotificationChannelType(_0x3d4cff);},async 'execute'(_0x2984b3){const _0x426ac8=a143_0x281d30,_0x117088=readNotificationChannelType(_0x2984b3),_0x449343=await listNotificationChannelConfigs(_0x2984b3['appCode'],_0x117088),_0x2c14cb=_0x449343[_0x426ac8(0xd2)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2984b3[_0x426ac8(0xd3)],'channelType':_0x117088,'count':_0x2c14cb[_0x426ac8(0xd6)],'configs':_0x2c14cb},'message':_0x426ac8(0xcd)+_0x2c14cb['length']+'\x20'+_0x117088+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
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
+ const a144_0x856433=a144_0x4861;(function(_0x2c5a3c,_0x5d4fb5){const _0x465e9d=a144_0x4861,_0x51d8dc=_0x2c5a3c();while(!![]){try{const _0x306ce1=-parseInt(_0x465e9d(0x7d))/0x1+parseInt(_0x465e9d(0x6c))/0x2*(parseInt(_0x465e9d(0x85))/0x3)+parseInt(_0x465e9d(0x70))/0x4*(parseInt(_0x465e9d(0x87))/0x5)+parseInt(_0x465e9d(0x88))/0x6*(parseInt(_0x465e9d(0x74))/0x7)+-parseInt(_0x465e9d(0x8e))/0x8+parseInt(_0x465e9d(0x73))/0x9*(parseInt(_0x465e9d(0x72))/0xa)+parseInt(_0x465e9d(0x84))/0xb*(parseInt(_0x465e9d(0x89))/0xc);if(_0x306ce1===_0x5d4fb5)break;else _0x51d8dc['push'](_0x51d8dc['shift']());}catch(_0x35a926){_0x51d8dc['push'](_0x51d8dc['shift']());}}}(a144_0x5afd,0xc918f));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';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=a144_0x856433(0x7c);function a144_0x5afd(){const _0x25cbb2=['notification_config_update_outcome_unknown','notification_config_update_verification_failed','70851xvQHND','2913WIxKzq','appCode','95SrqmBx','12ENnlGD','828fDCBFt','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','planned','config-update',';\x20no\x20automatic\x20retry\x20was\x20attempted.','10459208dppSGe','notification',';\x20do\x20not\x20resubmit\x20automatically.','\x20via\x20','before','2174ajvyFf','Updated\x20notification\x20config\x20','allMatch','channelType','97220OAwHcd','high-risk-write','10tuOfhS','2818467tVnIVg','5047357unXICd','update','POST','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','patch','Inspect\x20with\x20--id\x20','verifiedFields','/notification/channel-config/update','1585870jMsWVv','notification_config_update_verification_unavailable','payload','Notification\x20config\x20','provesChange'];a144_0x5afd=function(){return _0x25cbb2;};return a144_0x5afd();}function a144_0x4861(_0x420f05,_0x10d9c5){_0x420f05=_0x420f05-0x6b;const _0x5afd65=a144_0x5afd();let _0x486153=_0x5afd65[_0x420f05];return _0x486153;}async function prepareUpdate(_0x25cfad){const _0x538cfc=a144_0x856433,_0x2ef0a8=readNotificationId(_0x25cfad),_0x2c72c2=await readNotificationDocument(_0x25cfad,_0x538cfc(0x75)),_0x3cb672=await requireExactNotificationConfig(_0x25cfad['appCode'],_0x2ef0a8,_0x538cfc(0x75));return{'id':_0x2ef0a8,'patch':_0x2c72c2,'before':_0x3cb672,'payload':mergeUpdateInput(_0x3cb672,_0x2c72c2),'planned':plannedUpdateProjection(_0x3cb672,_0x2c72c2)};}export const notificationConfigUpdate={'service':a144_0x856433(0x8f),'command':a144_0x856433(0x8c),'description':a144_0x856433(0x77),'risk':a144_0x856433(0x71),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x12c789){readNotificationId(_0x12c789),assertSingleNotificationSource(_0x12c789),requireNotificationExplicitYes(_0x12c789);},async 'dryRun'(_0x442c96){const _0xb13bd2=a144_0x856433,_0x431cce=await prepareUpdate(_0x442c96),_0x2be955=notificationLookupCommand(_0x442c96[_0xb13bd2(0x86)],_0x431cce[_0xb13bd2(0x6b)][_0xb13bd2(0x6f)]);return asDryRunResult({'operation':_0xb13bd2(0x75),'selector':notificationSelector(_0x431cce['before']),'before':projectNotificationConfig(_0x431cce[_0xb13bd2(0x6b)]),'after':_0x431cce[_0xb13bd2(0x8b)],'dryRun':!![],'backend':{'method':_0xb13bd2(0x76),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0xb13bd2(0x8b),'lookupCommand':_0x2be955}},{'method':_0xb13bd2(0x76),'url':UPDATE_PATH});},async 'execute'(_0x86e3a){const _0x5eba00=a144_0x856433;requireNotificationExplicitYes(_0x86e3a);const _0x285629=await prepareUpdate(_0x86e3a),_0x1b6f7e=notificationLookupCommand(_0x86e3a[_0x5eba00(0x86)],_0x285629[_0x5eba00(0x6b)][_0x5eba00(0x6f)]);let _0x211d0d=![];try{await updateNotificationChannelConfig(_0x285629[_0x5eba00(0x7f)]);}catch(_0x249e3b){if(!isPlatformTransportFailure(_0x249e3b))throw safeApiFailure('update','mutation','Inspect\x20ID\x20'+_0x285629['id']+'\x20with\x20'+_0x1b6f7e+_0x5eba00(0x8d));_0x211d0d=!![];}let _0x1231ea;try{const _0x5aba27=await getNotificationChannelConfig(_0x285629['id'],_0x86e3a[_0x5eba00(0x86)]);_0x1231ea=normalizeExactNotificationConfig(_0x5aba27,_0x285629['id'],_0x86e3a['appCode']);}catch{throw notificationError(_0x211d0d?_0x5eba00(0x82):_0x5eba00(0x7e),_0x5eba00(0x80)+_0x285629['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x5eba00(0x7a)+_0x285629['id']+_0x5eba00(0x91)+_0x1b6f7e+_0x5eba00(0x90));}const _0x34c05b=requestedSafeFieldsMatch(_0x285629[_0x5eba00(0x6b)],_0x1231ea,_0x285629[_0x5eba00(0x79)]);if(!_0x34c05b[_0x5eba00(0x6e)]||_0x211d0d&&!_0x34c05b[_0x5eba00(0x81)])throw notificationError(_0x211d0d?_0x5eba00(0x82):_0x5eba00(0x83),_0x5eba00(0x80)+_0x285629['id']+_0x5eba00(0x8a),_0x5eba00(0x7a)+_0x285629['id']+_0x5eba00(0x91)+_0x1b6f7e+_0x5eba00(0x90));const _0x48eac5=_0x211d0d?[_0x5eba00(0x78)]:[];return{'ok':!![],'data':{'operation':'update','selector':notificationSelector(_0x1231ea),'before':projectNotificationConfig(_0x285629[_0x5eba00(0x6b)]),'after':projectNotificationConfig(_0x1231ea),'dryRun':![],'backend':{'method':_0x5eba00(0x76),'path':UPDATE_PATH},'warnings':_0x48eac5,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x211d0d,'verifiedFields':_0x34c05b[_0x5eba00(0x7b)],'lookupCommand':_0x1b6f7e}},'message':_0x5eba00(0x6d)+_0x1231ea['id']};}};
@@ -1 +1 @@
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];
1
+ (function(_0x54bd4c,_0x3d7fbe){const _0x3b07d7=a145_0xd16e,_0x4edb31=_0x54bd4c();while(!![]){try{const _0x55f1ba=parseInt(_0x3b07d7(0x92))/0x1+-parseInt(_0x3b07d7(0x91))/0x2*(-parseInt(_0x3b07d7(0x8f))/0x3)+parseInt(_0x3b07d7(0x8d))/0x4+parseInt(_0x3b07d7(0x8c))/0x5*(-parseInt(_0x3b07d7(0x90))/0x6)+-parseInt(_0x3b07d7(0x8b))/0x7+parseInt(_0x3b07d7(0x8e))/0x8+-parseInt(_0x3b07d7(0x8a))/0x9;if(_0x55f1ba===_0x3d7fbe)break;else _0x4edb31['push'](_0x4edb31['shift']());}catch(_0x24684b){_0x4edb31['push'](_0x4edb31['shift']());}}}(a145_0x6d89,0x8f82f));import{notificationConfigList}from'../../commands/notification/config-list.js';function a145_0x6d89(){const _0x4887c5=['329121RgRDZL','375714HtLuuX','16BMplTY','954902AhJgJl','18844209DbroMH','1568553XZjWjT','10fNCpAq','1974664CyCEnO','5637736VscZaq'];a145_0x6d89=function(){return _0x4887c5;};return a145_0x6d89();}import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a145_0xd16e(_0x138fdc,_0x15093a){_0x138fdc=_0x138fdc-0x8a;const _0x6d89aa=a145_0x6d89();let _0xd16e3b=_0x6d89aa[_0x138fdc];return _0xd16e3b;}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
@@ -1 +1 @@
1
- const a141_0x3ddf3f=a141_0x457c;(function(_0x132de8,_0x384ab1){const _0x13b511=a141_0x457c,_0x4df2e0=_0x132de8();while(!![]){try{const _0x35fc38=parseInt(_0x13b511(0x17e))/0x1+parseInt(_0x13b511(0x175))/0x2*(parseInt(_0x13b511(0x1bb))/0x3)+-parseInt(_0x13b511(0x1a8))/0x4+parseInt(_0x13b511(0x179))/0x5*(-parseInt(_0x13b511(0x1bd))/0x6)+parseInt(_0x13b511(0x173))/0x7*(-parseInt(_0x13b511(0x1d8))/0x8)+-parseInt(_0x13b511(0x1cc))/0x9+parseInt(_0x13b511(0x1d4))/0xa;if(_0x35fc38===_0x384ab1)break;else _0x4df2e0['push'](_0x4df2e0['shift']());}catch(_0x56896b){_0x4df2e0['push'](_0x4df2e0['shift']());}}}(a141_0x2ce0,0x77a63));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a141_0x3ddf3f(0x180),a141_0x3ddf3f(0x1dc),a141_0x3ddf3f(0x1ca),a141_0x3ddf3f(0x19d),a141_0x3ddf3f(0x183)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;function a141_0x457c(_0x1cee39,_0x3cdf75){_0x1cee39=_0x1cee39-0x16c;const _0x2ce056=a141_0x2ce0();let _0x457c53=_0x2ce056[_0x1cee39];return _0x457c53;}export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a141_0x3ddf3f(0x1b6),a141_0x3ddf3f(0x19c),'endpointUrl',a141_0x3ddf3f(0x1e4),a141_0x3ddf3f(0x189),'connectTimeout',a141_0x3ddf3f(0x1d6)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a141_0x3ddf3f(0x18d),a141_0x3ddf3f(0x192),a141_0x3ddf3f(0x193)]),EMAIL_RECIPIENT_FIELDS=new Set([a141_0x3ddf3f(0x16f),'recipients',a141_0x3ddf3f(0x1b9),a141_0x3ddf3f(0x1e0),a141_0x3ddf3f(0x16c),'subjectPrefix',a141_0x3ddf3f(0x1cb),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a141_0x3ddf3f(0x1b3),'required':![],'description':a141_0x3ddf3f(0x188)},{'name':a141_0x3ddf3f(0x187),'type':'boolean','required':![],'default':![],'description':a141_0x3ddf3f(0x1c3)},{'name':a141_0x3ddf3f(0x1c2),'type':a141_0x3ddf3f(0x1b3),'required':![],'description':a141_0x3ddf3f(0x195)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a141_0x3ddf3f(0x1ae),'required':!![],'description':'Application-level\x20notification\x20config\x20ID'};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x22bbc2,_0x657123,_0x329852){return new CliError(_0x22bbc2,0x1,_0x657123,_0x329852);}export function readNotificationId(_0xb663b5){const _0xf50abd=a141_0x3ddf3f,_0x57505d=_0xb663b5['num']('id');if(!Number[_0xf50abd(0x1da)](_0x57505d)||_0x57505d<=0x0)throw notificationError(_0xf50abd(0x1a0),'--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x57505d;}export function requireNotificationExplicitYes(_0x1aeaae){const _0x53db62=a141_0x3ddf3f;if(_0x1aeaae[_0x53db62(0x18e)](_0x53db62(0x190))||_0x1aeaae[_0x53db62(0x18e)]('yes'))return;throw notificationError('notification_config_confirmation_required',_0x53db62(0x199),_0x53db62(0x1b5));}export function readNotificationChannelType(_0x3c4ac2,_0x4315db=a141_0x3ddf3f(0x1ec),_0x546c43='EMAIL'){const _0x582083=a141_0x3ddf3f,_0x5307f6=_0x3c4ac2['str'](_0x4315db)[_0x582083(0x17d)]()||_0x546c43;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x5307f6))throw CliErrors[_0x582083(0x1e1)]('Invalid\x20--'+_0x4315db+':\x20'+_0x5307f6,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x582083(0x1d9)](',\x20')+'.');return _0x5307f6;}export function assertSingleNotificationSource(_0x5d32c4){const _0xbb7645=a141_0x3ddf3f,_0x1cccf1=[],_0x5f376e=_0x5d32c4['str'](_0xbb7645(0x1ad))[_0xbb7645(0x17d)]();if(_0x5f376e)_0x1cccf1[_0xbb7645(0x1b1)]({'kind':_0xbb7645(0x1ad),'path':_0x5f376e});if(_0x5d32c4[_0xbb7645(0x18e)](_0xbb7645(0x187)))_0x1cccf1[_0xbb7645(0x1b1)]({'kind':_0xbb7645(0x187)});const _0x533f81=_0x5d32c4[_0xbb7645(0x17a)](_0xbb7645(0x1c2))[_0xbb7645(0x17d)]();if(_0x533f81)_0x1cccf1[_0xbb7645(0x1b1)]({'kind':_0xbb7645(0x1e8),'name':_0x533f81});if(_0x1cccf1['length']===0x0)throw CliErrors[_0xbb7645(0x1e1)]('Missing\x20notification\x20JSON\x20source.',_0xbb7645(0x1d3));if(_0x1cccf1[_0xbb7645(0x185)]>0x1)throw CliErrors[_0xbb7645(0x1e1)](_0xbb7645(0x197),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');return _0x1cccf1[0x0];}export async function readNotificationDocument(_0x2f76d2,_0x3acf56){const _0x2c68ce=a141_0x3ddf3f,_0x2f226d=assertSingleNotificationSource(_0x2f76d2),_0x140187=_0x2f226d[_0x2c68ce(0x1e5)]===_0x2c68ce(0x1ad)?'file\x20'+_0x2f226d['path']:_0x2f226d[_0x2c68ce(0x1e5)]===_0x2c68ce(0x1e8)?_0x2c68ce(0x18a)+_0x2f226d[_0x2c68ce(0x19f)]:_0x2c68ce(0x187);let _0x1fe1b9;try{if(_0x2f226d['kind']===_0x2c68ce(0x1ad))_0x1fe1b9=await readFile(_0x2f226d[_0x2c68ce(0x1ee)],_0x2c68ce(0x1d7));else{if(_0x2f226d[_0x2c68ce(0x1e5)]===_0x2c68ce(0x1e8)){if(!(_0x2f226d[_0x2c68ce(0x19f)]in process.env))throw notificationError(_0x2c68ce(0x1c9),_0x2c68ce(0x1a1)+_0x2f226d['name']);_0x1fe1b9=process.env[_0x2f226d.name]??'';}else _0x1fe1b9=await readStdin();}}catch(_0x1a6bac){if(_0x1a6bac instanceof CliError)throw _0x1a6bac;throw notificationError('notification_config_source_unavailable',_0x2c68ce(0x1a7)+_0x140187+'.');}let _0x5a339b;try{_0x5a339b=JSON[_0x2c68ce(0x1c6)](_0x1fe1b9);}catch{throw notificationError(_0x2c68ce(0x1de),_0x2c68ce(0x1c0)+_0x140187+'\x20is\x20invalid.',_0x2c68ce(0x196));}if(!isJsonObject(_0x5a339b))throw notificationError(_0x2c68ce(0x1de),_0x2c68ce(0x1c0)+_0x140187+_0x2c68ce(0x1ea));return validateNotificationDocument(_0x5a339b,_0x3acf56);}export function projectNotificationListConfig(_0x284598,_0x375003){const _0x671e8d=a141_0x3ddf3f;return{'id':typeof _0x284598['id']===_0x671e8d(0x1ae)?_0x284598['id']:null,'configCode':requireResponseString(_0x284598[_0x671e8d(0x192)],'configCode',_0x375003),'configName':requireResponseString(_0x284598[_0x671e8d(0x1b6)],_0x671e8d(0x1b6),_0x375003),'channelType':requireResponseString(_0x284598[_0x671e8d(0x19c)],'channelType',_0x375003),'description':normalizeNullableString(_0x284598['description']),'createTime':normalizeNullableString(_0x284598[_0x671e8d(0x1e2)]),'updateTime':normalizeNullableString(_0x284598[_0x671e8d(0x1ba)])};}export function normalizeExactNotificationConfig(_0x24f549,_0xfce77e,_0x49838f){const _0x5c6839=a141_0x3ddf3f;if(!Number['isSafeInteger'](_0x24f549['id'])||_0x24f549['id']!==_0xfce77e)throw notificationError(_0x5c6839(0x1a5),_0x5c6839(0x1d1)+_0xfce77e+'.');if(_0x24f549['appCode']!==_0x49838f)throw notificationError(_0x5c6839(0x1a5),_0x5c6839(0x17b)+_0xfce77e+_0x5c6839(0x174));const _0x56ab1e=requireExactString(_0x24f549[_0x5c6839(0x1b6)],'configName',_0xfce77e),_0x29f454=requireExactString(_0x24f549[_0x5c6839(0x192)],_0x5c6839(0x192),_0xfce77e),_0x1de247=requireExactString(_0x24f549[_0x5c6839(0x19c)],_0x5c6839(0x19c),_0xfce77e);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x1de247))throw notificationError(_0x5c6839(0x1a5),_0x5c6839(0x17b)+_0xfce77e+_0x5c6839(0x1eb));const _0x497256=responseNullableString(_0x24f549['endpointUrl'],_0x5c6839(0x1af),_0xfce77e),_0xd7b905=responseNullableString(_0x24f549[_0x5c6839(0x1e4)],_0x5c6839(0x1e4),_0xfce77e),_0x2e3e71=responseNullableString(_0x24f549[_0x5c6839(0x189)],_0x5c6839(0x189),_0xfce77e),_0x394fee=responseNullableTimeout(_0x24f549['connectTimeout'],_0x5c6839(0x1b2),_0xfce77e),_0x47ed81=responseNullableTimeout(_0x24f549[_0x5c6839(0x1d6)],'readTimeout',_0xfce77e);return{'id':_0xfce77e,'appCode':_0x49838f,'configCode':_0x29f454,'configName':_0x56ab1e,'channelType':_0x1de247,'endpointUrl':redactSensitive(_0x497256),'channelConfig':redactSensitive(_0xd7b905),'description':_0x2e3e71,'connectTimeout':_0x394fee,'readTimeout':_0x47ed81,'endpointUrlRaw':_0x497256,'channelConfigRaw':_0xd7b905};}export async function requireExactNotificationConfig(_0x326783,_0x41e296,_0x1c6225){const _0x3f1a79=a141_0x3ddf3f;let _0xfd425;try{_0xfd425=await getNotificationChannelConfig(_0x41e296,_0x326783);}catch{throw safeApiFailure(_0x1c6225,_0x3f1a79(0x1aa),_0x3f1a79(0x1a2)+_0x326783+_0x3f1a79(0x178));}return normalizeExactNotificationConfig(_0xfd425,_0x41e296,_0x326783);}export function projectNotificationConfig(_0x1a018e){const _0x53bd8b=a141_0x3ddf3f;return{'id':_0x1a018e['id']??null,'appCode':_0x1a018e[_0x53bd8b(0x18d)],'configCode':_0x1a018e[_0x53bd8b(0x192)]??null,'configName':_0x1a018e[_0x53bd8b(0x1b6)],'channelType':_0x1a018e[_0x53bd8b(0x19c)],'endpointUrl':redactSensitive(_0x1a018e[_0x53bd8b(0x1af)]),'channelConfig':redactSensitive(_0x1a018e[_0x53bd8b(0x1e4)]),'description':_0x1a018e[_0x53bd8b(0x189)]??null,'connectTimeout':_0x1a018e[_0x53bd8b(0x1b2)]??null,'readTimeout':_0x1a018e[_0x53bd8b(0x1d6)]??null};}export function notificationSelector(_0xb57d95){const _0x455a5c=a141_0x3ddf3f;return{'appCode':_0xb57d95[_0x455a5c(0x18d)],'id':_0xb57d95['id'],'configCode':_0xb57d95['configCode'],'configName':_0xb57d95[_0x455a5c(0x1b6)],'channelType':_0xb57d95[_0x455a5c(0x19c)]};}export function createMutationInput(_0x2e6076,_0x4cba70){const _0x49aa06=a141_0x3ddf3f;return{'appCode':_0x2e6076,'configName':_0x4cba70[_0x49aa06(0x1b6)],'channelType':_0x4cba70[_0x49aa06(0x19c)],...hasOwn(_0x4cba70,_0x49aa06(0x1af))?{'endpointUrl':_0x4cba70[_0x49aa06(0x1af)]}:{},...hasOwn(_0x4cba70,_0x49aa06(0x1e4))?{'channelConfig':serializeChannelConfig(_0x4cba70[_0x49aa06(0x1e4)])}:{},...hasOwn(_0x4cba70,_0x49aa06(0x189))?{'description':_0x4cba70[_0x49aa06(0x189)]}:{},...hasOwn(_0x4cba70,_0x49aa06(0x1b2))?{'connectTimeout':_0x4cba70[_0x49aa06(0x1b2)]}:{},...hasOwn(_0x4cba70,_0x49aa06(0x1d6))?{'readTimeout':_0x4cba70[_0x49aa06(0x1d6)]}:{}};}export function mergeUpdateInput(_0x2f640f,_0x3b1e43){const _0x38f9d3=a141_0x3ddf3f;return{'id':_0x2f640f['id'],'appCode':_0x2f640f[_0x38f9d3(0x18d)],'configName':_0x3b1e43['configName']??_0x2f640f[_0x38f9d3(0x1b6)],'channelType':_0x3b1e43['channelType']??_0x2f640f['channelType'],'endpointUrl':hasOwn(_0x3b1e43,_0x38f9d3(0x1af))?_0x3b1e43['endpointUrl']:_0x2f640f[_0x38f9d3(0x19a)],'channelConfig':hasOwn(_0x3b1e43,_0x38f9d3(0x1e4))?serializeChannelConfig(_0x3b1e43[_0x38f9d3(0x1e4)]):_0x2f640f[_0x38f9d3(0x1c5)],'description':hasOwn(_0x3b1e43,'description')?_0x3b1e43[_0x38f9d3(0x189)]:_0x2f640f[_0x38f9d3(0x189)],'connectTimeout':hasOwn(_0x3b1e43,_0x38f9d3(0x1b2))?_0x3b1e43[_0x38f9d3(0x1b2)]:_0x2f640f[_0x38f9d3(0x1b2)],'readTimeout':hasOwn(_0x3b1e43,'readTimeout')?_0x3b1e43['readTimeout']:_0x2f640f['readTimeout']};}export function plannedUpdateProjection(_0x44aa4a,_0x33e0be){const _0x4e118f=a141_0x3ddf3f;return projectNotificationConfig({'id':_0x44aa4a['id'],'appCode':_0x44aa4a[_0x4e118f(0x18d)],'configCode':_0x44aa4a['configCode'],'configName':_0x33e0be[_0x4e118f(0x1b6)]??_0x44aa4a[_0x4e118f(0x1b6)],'channelType':_0x33e0be[_0x4e118f(0x19c)]??_0x44aa4a['channelType'],'endpointUrl':hasOwn(_0x33e0be,'endpointUrl')?_0x33e0be[_0x4e118f(0x1af)]:_0x44aa4a[_0x4e118f(0x19a)],'channelConfig':hasOwn(_0x33e0be,_0x4e118f(0x1e4))?_0x33e0be[_0x4e118f(0x1e4)]:_0x44aa4a['channelConfigRaw'],'description':hasOwn(_0x33e0be,_0x4e118f(0x189))?_0x33e0be[_0x4e118f(0x189)]:_0x44aa4a[_0x4e118f(0x189)],'connectTimeout':hasOwn(_0x33e0be,'connectTimeout')?_0x33e0be[_0x4e118f(0x1b2)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x44aa4a[_0x4e118f(0x1b2)],'readTimeout':hasOwn(_0x33e0be,_0x4e118f(0x1d6))?_0x33e0be[_0x4e118f(0x1d6)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x44aa4a[_0x4e118f(0x1d6)]});}export function requestedSafeFieldsMatch(_0x49f769,_0xe30008,_0x21cea0){const _0xff1574=a141_0x3ddf3f,_0x22cc28=[],_0x17b21e=[],_0x130452=[];for(const _0x4ca658 of[_0xff1574(0x1b6),_0xff1574(0x19c),_0xff1574(0x189)]){if(!hasOwn(_0x21cea0,_0x4ca658))continue;_0x130452['push'](_0x4ca658),_0x22cc28[_0xff1574(0x1b1)](_0xe30008[_0x4ca658]===_0x21cea0[_0x4ca658]),_0x17b21e[_0xff1574(0x1b1)](_0x49f769[_0x4ca658]!==_0x21cea0[_0x4ca658]&&_0xe30008[_0x4ca658]===_0x21cea0[_0x4ca658]);}for(const _0x462250 of['connectTimeout',_0xff1574(0x1d6)]){if(!hasOwn(_0x21cea0,_0x462250))continue;const _0x5c9528=_0x21cea0[_0x462250]??(_0x462250===_0xff1574(0x1b2)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x130452[_0xff1574(0x1b1)](_0x462250),_0x22cc28[_0xff1574(0x1b1)](_0xe30008[_0x462250]===_0x5c9528),_0x17b21e[_0xff1574(0x1b1)](_0x49f769[_0x462250]!==_0x5c9528&&_0xe30008[_0x462250]===_0x5c9528);}return hasOwn(_0x21cea0,_0xff1574(0x1af))&&_0x21cea0[_0xff1574(0x1af)]===null&&(_0x130452[_0xff1574(0x1b1)](_0xff1574(0x1e3)),_0x22cc28[_0xff1574(0x1b1)](_0xe30008[_0xff1574(0x19a)]===null||_0xe30008[_0xff1574(0x19a)]===''),_0x17b21e[_0xff1574(0x1b1)](_0x49f769[_0xff1574(0x19a)]!==null&&_0x49f769[_0xff1574(0x19a)]!==''&&(_0xe30008[_0xff1574(0x19a)]===null||_0xe30008[_0xff1574(0x19a)]===''))),{'allMatch':_0x22cc28[_0xff1574(0x171)](Boolean),'provesChange':_0x17b21e[_0xff1574(0x18c)](Boolean),'verifiedFields':_0x130452};}export function validateNotificationDeleteReadback(_0x5c0f1c,_0x336059,_0x5cac76){const _0x76035b=a141_0x3ddf3f;for(const [_0x2e0169,_0x50631a]of _0x5c0f1c[_0x76035b(0x1cd)]()){if(!Number[_0x76035b(0x1da)](_0x50631a['id'])||_0x50631a['id']<=0x0)throw notificationError(_0x76035b(0x1a5),_0x76035b(0x1c8)+(_0x2e0169+0x1)+_0x76035b(0x1a9));if(_0x50631a['appCode']!==_0x336059)throw notificationError(_0x76035b(0x1a5),_0x76035b(0x1c8)+(_0x2e0169+0x1)+_0x76035b(0x1b7));if(_0x50631a['channelType']!==_0x5cac76)throw notificationError(_0x76035b(0x1a5),'Notification\x20config\x20list\x20item\x20'+(_0x2e0169+0x1)+_0x76035b(0x1c1));}}export function safeApiFailure(_0x35310d,_0x403247,_0x1e4719){const _0x4789b9=a141_0x3ddf3f;return notificationError('notification_config_'+_0x35310d+'_'+(_0x403247==='mutation'?_0x4789b9(0x1a6):_0x403247+_0x4789b9(0x182)),_0x4789b9(0x17b)+_0x35310d+'\x20'+_0x403247+_0x4789b9(0x177),_0x1e4719);}export function notificationLookupCommand(_0x11cfbd,_0x351baf){const _0x2af9de=a141_0x3ddf3f;return'rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x11cfbd+_0x2af9de(0x1d0)+_0x351baf+_0x2af9de(0x1ed);}function validateNotificationDocument(_0x568969,_0x392af7){const _0x3f052c=a141_0x3ddf3f;for(const _0x1b306e of Object[_0x3f052c(0x1dd)](_0x568969)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x1b306e))throw notificationError(_0x3f052c(0x194),_0x3f052c(0x1a3)+_0x1b306e+'\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.');if(!ALLOWED_INPUT_FIELDS[_0x3f052c(0x1e6)](_0x1b306e))throw notificationError(_0x3f052c(0x1d2),_0x3f052c(0x19b)+_0x1b306e+'\x22.');}if(_0x392af7===_0x3f052c(0x1c4)&&Object[_0x3f052c(0x1dd)](_0x568969)[_0x3f052c(0x185)]===0x0)throw notificationError(_0x3f052c(0x181),'Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.');const _0x51a370={};if(hasOwn(_0x568969,'configName'))_0x51a370[_0x3f052c(0x1b6)]=validateRequiredString(_0x568969[_0x3f052c(0x1b6)],_0x3f052c(0x1b6),0x80);else{if(_0x392af7===_0x3f052c(0x1ce))throw notificationError('notification_config_field_required',_0x3f052c(0x176)+_0x3f052c(0x1bf));}if(hasOwn(_0x568969,_0x3f052c(0x19c))){if(typeof _0x568969[_0x3f052c(0x19c)]!=='string')throw invalidFieldType(_0x3f052c(0x19c),_0x3f052c(0x1ac));const _0x1d9a51=_0x568969[_0x3f052c(0x19c)]['trim']();if(!NOTIFICATION_CHANNEL_TYPES[_0x3f052c(0x1be)](_0x1d9a51))throw notificationError('notification_config_field_invalid',_0x3f052c(0x186),_0x3f052c(0x1e9)+NOTIFICATION_CHANNEL_TYPES[_0x3f052c(0x1d9)](',\x20')+'.');_0x51a370[_0x3f052c(0x19c)]=_0x1d9a51;}else{if(_0x392af7===_0x3f052c(0x1ce))throw notificationError(_0x3f052c(0x16d),_0x3f052c(0x176)+_0x3f052c(0x1a4));}for(const [_0x36ff04,_0x582456]of[[_0x3f052c(0x1af),0x200],[_0x3f052c(0x189),0x100]]){if(!hasOwn(_0x568969,_0x36ff04))continue;const _0x2ac6ec=_0x568969[_0x36ff04];if(_0x2ac6ec!==null&&typeof _0x2ac6ec!==_0x3f052c(0x1b3))throw invalidFieldType(_0x36ff04,_0x3f052c(0x1cf));if(typeof _0x2ac6ec===_0x3f052c(0x1b3)&&_0x2ac6ec[_0x3f052c(0x185)]>_0x582456)throw notificationError(_0x3f052c(0x1bc),_0x3f052c(0x1a3)+_0x36ff04+'\x22\x20cannot\x20exceed\x20'+_0x582456+_0x3f052c(0x1b0));_0x51a370[_0x36ff04]=_0x2ac6ec;}if(hasOwn(_0x568969,_0x3f052c(0x1e4))){const _0x368eac=_0x568969[_0x3f052c(0x1e4)];if(_0x368eac===null&&_0x392af7==='create')throw invalidFieldType('channelConfig',_0x3f052c(0x191));if(_0x368eac!==null&&!isJsonObject(_0x368eac))throw invalidFieldType('channelConfig',_0x392af7==='update'?_0x3f052c(0x172):_0x3f052c(0x191));_0x368eac!==null&&validateChannelConfigFields(_0x51a370[_0x3f052c(0x19c)],_0x368eac),_0x51a370[_0x3f052c(0x1e4)]=_0x368eac;}for(const _0x39bdac of['connectTimeout',_0x3f052c(0x1d6)]){if(!hasOwn(_0x568969,_0x39bdac))continue;const _0x5362da=_0x568969[_0x39bdac];if(_0x5362da!==null&&(!Number[_0x3f052c(0x1da)](_0x5362da)||_0x5362da<0x0))throw notificationError('notification_config_field_invalid',_0x3f052c(0x1a3)+_0x39bdac+_0x3f052c(0x16e));_0x51a370[_0x39bdac]=_0x5362da;}return _0x51a370;}function validateRequiredString(_0x48a1ac,_0x1fbfab,_0x483b1c){const _0x5e44f7=a141_0x3ddf3f;if(typeof _0x48a1ac!==_0x5e44f7(0x1b3))throw invalidFieldType(_0x1fbfab,_0x5e44f7(0x170));const _0x5ab845=_0x48a1ac[_0x5e44f7(0x17d)]();if(!_0x5ab845)throw notificationError(_0x5e44f7(0x1bc),_0x5e44f7(0x1a3)+_0x1fbfab+_0x5e44f7(0x18f));if(_0x5ab845[_0x5e44f7(0x185)]>_0x483b1c)throw notificationError('notification_config_field_invalid',_0x5e44f7(0x1a3)+_0x1fbfab+_0x5e44f7(0x184)+_0x483b1c+_0x5e44f7(0x1b0));return _0x5ab845;}function validateChannelConfigFields(_0x1bcdbe,_0x481f0f){const _0x6ad1b2=a141_0x3ddf3f;if(hasOwn(_0x481f0f,_0x6ad1b2(0x1e7)))throw forbiddenChannelConfigField(_0x6ad1b2(0x1e7));if(_0x1bcdbe===_0x6ad1b2(0x180))for(const _0x14ff70 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x481f0f,_0x14ff70))throw forbiddenChannelConfigField(_0x14ff70);}}function forbiddenChannelConfigField(_0x3c4ab0){const _0x5283d2=a141_0x3ddf3f;return notificationError('notification_config_channel_field_forbidden',_0x5283d2(0x17c)+_0x3c4ab0+_0x5283d2(0x1db));}function invalidFieldType(_0x597431,_0x5170a7){const _0x2597bb=a141_0x3ddf3f;return notificationError('notification_config_field_invalid',_0x2597bb(0x1a3)+_0x597431+_0x2597bb(0x1c7)+_0x5170a7+'.');}function serializeChannelConfig(_0x1d3436){return _0x1d3436===null||_0x1d3436===undefined?null:JSON['stringify'](_0x1d3436);}function redactSensitive(_0x4a6a20){const _0x1ce5f7=a141_0x3ddf3f;return _0x4a6a20===null||_0x4a6a20===undefined||_0x4a6a20===''?null:_0x1ce5f7(0x19e);}function requireResponseString(_0x498f3d,_0x3e8b2a,_0x3565a0){const _0xa60565=a141_0x3ddf3f;if(typeof _0x498f3d!==_0xa60565(0x1b3)||_0x498f3d[_0xa60565(0x17d)]()==='')throw CliErrors[_0xa60565(0x18b)](_0xa60565(0x1d5),_0xa60565(0x1b8)+(_0x3565a0+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x3e8b2a+'\x22.');return _0x498f3d['trim']();}function requireExactString(_0x480bee,_0x4faf3d,_0x2d113f){const _0x3a087b=a141_0x3ddf3f;if(typeof _0x480bee!==_0x3a087b(0x1b3)||_0x480bee[_0x3a087b(0x17d)]()==='')throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x2d113f+_0x3a087b(0x17f)+_0x4faf3d+'\x22.');return _0x480bee['trim']();}function responseNullableString(_0x34c969,_0x3f1f80,_0x521c7e){const _0x8ef68e=a141_0x3ddf3f;if(_0x34c969===undefined||_0x34c969===null)return null;if(typeof _0x34c969!=='string')throw notificationError(_0x8ef68e(0x1a5),_0x8ef68e(0x17b)+_0x521c7e+'\x20has\x20invalid\x20field\x20\x22'+_0x3f1f80+'\x22.');return _0x34c969;}function responseNullableTimeout(_0x3a3378,_0x6cc81b,_0x268654){const _0x35bada=a141_0x3ddf3f;if(_0x3a3378===undefined||_0x3a3378===null)return null;if(!Number['isSafeInteger'](_0x3a3378)||_0x3a3378<0x0)throw notificationError(_0x35bada(0x1a5),_0x35bada(0x17b)+_0x268654+'\x20has\x20invalid\x20field\x20\x22'+_0x6cc81b+'\x22.');return _0x3a3378;}function normalizeNullableString(_0xd7160d){const _0x578c34=a141_0x3ddf3f;return typeof _0xd7160d===_0x578c34(0x1b3)?_0xd7160d:null;}function isJsonObject(_0x167e6f){const _0x33c0a3=a141_0x3ddf3f;return _0x167e6f!==null&&typeof _0x167e6f===_0x33c0a3(0x1ab)&&!Array['isArray'](_0x167e6f);}function hasOwn(_0x26c022,_0x4af721){const _0x318c6f=a141_0x3ddf3f;return Object[_0x318c6f(0x1b4)]['hasOwnProperty'][_0x318c6f(0x198)](_0x26c022,_0x4af721);}function a141_0x2ce0(){const _0x28fb15=['23814810CEiLrs','Invalid\x20notification\x20config\x20response.','readTimeout','utf8','2177264dfPTyZ','join','isSafeInteger','\x22\x20is\x20forbidden.','FEISHU','keys','notification_config_json_invalid','setEncoding','bccList','validation','createTime','endpointUrl:null','channelConfig','kind','has','messageTemplate','env','Allowed\x20values:\x20','\x20must\x20be\x20an\x20object.','\x20has\x20an\x20unsupported\x20channelType.','type','\x20--format\x20compress','path','replyTo','notification_config_field_required','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','emailTargets','a\x20non-empty\x20string','every','a\x20JSON\x20object\x20or\x20null','7ghvhbJ','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','62014BqmeVp','Create\x20JSON\x20requires\x20field\x20','\x20failed.','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','190425rtkNEG','str','Notification\x20config\x20','Notification\x20JSON\x20channelConfig\x20field\x20\x22','trim','188585WhgfLC','\x20is\x20missing\x20required\x20field\x20\x22','EMAIL','notification_config_update_empty','_unavailable','WEBHOOK','\x22\x20cannot\x20exceed\x20','length','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','stdin','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','description','environment\x20variable\x20','apiError','some','appCode','bool','\x22\x20must\x20be\x20a\x20non-empty\x20string.','dry-run','a\x20JSON\x20object','configCode','channelCode','notification_config_field_forbidden','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','Notification\x20JSON\x20source\x20is\x20ambiguous.','call','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','endpointUrlRaw','Unknown\x20notification\x20JSON\x20field\x20\x22','channelType','WECOM','<redacted>','name','notification_config_id_invalid','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','Notification\x20JSON\x20field\x20\x22','\x22channelType\x22.','notification_config_response_invalid','failed','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','2172300cJTXqT','\x20has\x20an\x20invalid\x20id.','preflight','object','a\x20supported\x20string','file','number','endpointUrl','\x20characters.','push','connectTimeout','string','prototype','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','configName','\x20has\x20an\x20invalid\x20appCode.','Item\x20','ccList','updateTime','33Kfddqq','notification_config_field_invalid','102hDUsgS','includes','\x22configName\x22.','Notification\x20JSON\x20from\x20','\x20has\x20an\x20invalid\x20channelType.','from-env','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','update','channelConfigRaw','parse','\x22\x20must\x20be\x20','Notification\x20config\x20list\x20item\x20','notification_config_source_unavailable','DINGTALK','fromName','8625438yVHttR','entries','create','a\x20string\x20or\x20null','\x20--type\x20','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','notification_config_field_unknown','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.'];a141_0x2ce0=function(){return _0x28fb15;};return a141_0x2ce0();}async function readStdin(){const _0x3aecaf=a141_0x3ddf3f;let _0x2805f0='';process[_0x3aecaf(0x187)][_0x3aecaf(0x1df)](_0x3aecaf(0x1d7));for await(const _0x40d9f2 of process[_0x3aecaf(0x187)])_0x2805f0+=_0x40d9f2;return _0x2805f0;}
1
+ const a146_0x5eb608=a146_0x37c8;(function(_0x5c20ac,_0x5461a7){const _0x1d1368=a146_0x37c8,_0x34896c=_0x5c20ac();while(!![]){try{const _0xcdd189=-parseInt(_0x1d1368(0x15b))/0x1+-parseInt(_0x1d1368(0x16a))/0x2+parseInt(_0x1d1368(0x143))/0x3+parseInt(_0x1d1368(0x16d))/0x4+parseInt(_0x1d1368(0x18b))/0x5+-parseInt(_0x1d1368(0x145))/0x6*(-parseInt(_0x1d1368(0x11d))/0x7)+parseInt(_0x1d1368(0x168))/0x8*(-parseInt(_0x1d1368(0x156))/0x9);if(_0xcdd189===_0x5461a7)break;else _0x34896c['push'](_0x34896c['shift']());}catch(_0x427995){_0x34896c['push'](_0x34896c['shift']());}}}(a146_0x4bb2,0xb0706));function a146_0x4bb2(){const _0x4b86f5=['environment\x20variable\x20','appCode','Allowed\x20values:\x20','includes','notification_config_','bool','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','call','a\x20non-empty\x20string','3760812kNLTXD','\x20characters.','stdin','notification_config_source_unavailable','recipients','947601VHapje','\x20has\x20an\x20invalid\x20appCode.','update','path','\x20has\x20an\x20unsupported\x20channelType.','notification_config_field_required','Notification\x20config\x20list\x20item\x20','Missing\x20notification\x20JSON\x20source.','EMAIL','messageTemplate','has','object','a\x20string\x20or\x20null','8owxMcH','emailTargets','1432770vrvPuE','mutation','replyTo','4786252rnRJbj','isArray','join','\x20--type\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Notification\x20JSON\x20field\x20\x22','endpointUrl','WEBHOOK','isSafeInteger','notification_config_channel_field_forbidden','number','str','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','apiError','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','configName','some','channelConfigRaw','\x22\x20cannot\x20exceed\x20','notification_config_confirmation_required','Create\x20JSON\x20requires\x20field\x20','push','Notification\x20JSON\x20from\x20','length','yes','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','\x22configName\x22.','_unavailable','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','687555RUlGxT','\x20is\x20invalid.','notification_config_json_invalid','endpointUrl:null','connectTimeout','a\x20JSON\x20object','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','name','create','a\x20JSON\x20object\x20or\x20null','\x22\x20must\x20be\x20','ccList','configCode','string','failed','validation','preflight','notification_config_field_invalid','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','channelType','fromName','\x20must\x20be\x20an\x20object.','notification_config_id_invalid','Notification\x20JSON\x20channelConfig\x20field\x20\x22','5644807PcBOhF','\x20has\x20an\x20invalid\x20id.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','kind','from-env','env','\x20has\x20invalid\x20field\x20\x22','notification_config_response_invalid','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','DINGTALK','num','notification_config_field_unknown','hasOwnProperty','utf8','\x20has\x20an\x20invalid\x20channelType.','readTimeout','notification_config_update_empty','channelConfig','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','subjectPrefix','bccList','\x20is\x20missing\x20required\x20field\x20\x22','FEISHU','setEncoding','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','endpointUrlRaw','keys','Unknown\x20notification\x20JSON\x20field\x20\x22','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','file\x20','trim','WECOM','Invalid\x20--','entries','description','Notification\x20config\x20','dry-run','1992219hdpXbH','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','6WaOtpQ','rabetbase\x20notification\x20config-list\x20--appcode\x20','updateTime','file','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','Application-level\x20notification\x20config\x20ID','Item\x20'];a146_0x4bb2=function(){return _0x4b86f5;};return a146_0x4bb2();}import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x5eb608(0x163),a146_0x5eb608(0x134),a146_0x5eb608(0x127),a146_0x5eb608(0x13d),a146_0x5eb608(0x175)];function a146_0x37c8(_0x40e7ec,_0x57f5d0){_0x40e7ec=_0x40e7ec-0x115;const _0x4bb21e=a146_0x4bb2();let _0x37c81d=_0x4bb21e[_0x40e7ec];return _0x37c81d;}export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x5eb608(0x17d),'channelType','endpointUrl','channelConfig',a146_0x5eb608(0x140),'connectTimeout',a146_0x5eb608(0x12d)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id','appCode',a146_0x5eb608(0x197),'channelCode']),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x5eb608(0x169),a146_0x5eb608(0x15a),a146_0x5eb608(0x196),a146_0x5eb608(0x132),a146_0x5eb608(0x16c),a146_0x5eb608(0x131),a146_0x5eb608(0x119),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x5eb608(0x148),'type':'string','required':![],'description':a146_0x5eb608(0x152)},{'name':a146_0x5eb608(0x158),'type':'boolean','required':![],'default':![],'description':a146_0x5eb608(0x120)},{'name':a146_0x5eb608(0x122),'type':a146_0x5eb608(0x198),'required':![],'description':a146_0x5eb608(0x153)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x5eb608(0x178),'required':!![],'description':a146_0x5eb608(0x14a)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x5904ef,_0x491fb4,_0x2cf014){return new CliError(_0x5904ef,0x1,_0x491fb4,_0x2cf014);}export function readNotificationId(_0x2abada){const _0xbf9070=a146_0x5eb608,_0x37236a=_0x2abada[_0xbf9070(0x128)]('id');if(!Number[_0xbf9070(0x176)](_0x37236a)||_0x37236a<=0x0)throw notificationError(_0xbf9070(0x11b),_0xbf9070(0x144));return _0x37236a;}export function requireNotificationExplicitYes(_0x53b08){const _0x1865aa=a146_0x5eb608;if(_0x53b08[_0x1865aa(0x151)](_0x1865aa(0x142))||_0x53b08['bool'](_0x1865aa(0x186)))return;throw notificationError(_0x1865aa(0x181),_0x1865aa(0x17c),_0x1865aa(0x17a));}export function readNotificationChannelType(_0x2696f5,_0x36432c='type',_0x494aab=a146_0x5eb608(0x163)){const _0x42766f=a146_0x5eb608,_0x55e400=_0x2696f5[_0x42766f(0x179)](_0x36432c)[_0x42766f(0x13c)]()||_0x494aab;if(!NOTIFICATION_CHANNEL_TYPES[_0x42766f(0x14f)](_0x55e400))throw CliErrors[_0x42766f(0x19a)](_0x42766f(0x13e)+_0x36432c+':\x20'+_0x55e400,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x42766f(0x16f)](',\x20')+'.');return _0x55e400;}export function assertSingleNotificationSource(_0x2aaef1){const _0x40fd66=a146_0x5eb608,_0xb0d1e9=[],_0x36f4d2=_0x2aaef1['str'](_0x40fd66(0x148))[_0x40fd66(0x13c)]();if(_0x36f4d2)_0xb0d1e9[_0x40fd66(0x183)]({'kind':'file','path':_0x36f4d2});if(_0x2aaef1['bool'](_0x40fd66(0x158)))_0xb0d1e9[_0x40fd66(0x183)]({'kind':'stdin'});const _0x3dc5e9=_0x2aaef1[_0x40fd66(0x179)](_0x40fd66(0x122))[_0x40fd66(0x13c)]();if(_0x3dc5e9)_0xb0d1e9[_0x40fd66(0x183)]({'kind':_0x40fd66(0x123),'name':_0x3dc5e9});if(_0xb0d1e9['length']===0x0)throw CliErrors[_0x40fd66(0x19a)](_0x40fd66(0x162),_0x40fd66(0x149));if(_0xb0d1e9['length']>0x1)throw CliErrors[_0x40fd66(0x19a)](_0x40fd66(0x171),_0x40fd66(0x149));return _0xb0d1e9[0x0];}export async function readNotificationDocument(_0x5c115a,_0x2d0643){const _0x3ded30=a146_0x5eb608,_0x1ec958=assertSingleNotificationSource(_0x5c115a),_0x1dcae5=_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x148)?_0x3ded30(0x13b)+_0x1ec958[_0x3ded30(0x15e)]:_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x123)?_0x3ded30(0x14c)+_0x1ec958[_0x3ded30(0x192)]:_0x3ded30(0x158);let _0x445638;try{if(_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x148))_0x445638=await readFile(_0x1ec958['path'],_0x3ded30(0x12b));else{if(_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x123)){if(!(_0x1ec958[_0x3ded30(0x192)]in process.env))throw notificationError('notification_config_source_unavailable',_0x3ded30(0x136)+_0x1ec958[_0x3ded30(0x192)]);_0x445638=process.env[_0x1ec958.name]??'';}else _0x445638=await readStdin();}}catch(_0x4c6447){if(_0x4c6447 instanceof CliError)throw _0x4c6447;throw notificationError(_0x3ded30(0x159),_0x3ded30(0x117)+_0x1dcae5+'.');}let _0x754811;try{_0x754811=JSON['parse'](_0x445638);}catch{throw notificationError(_0x3ded30(0x18d),_0x3ded30(0x184)+_0x1dcae5+_0x3ded30(0x18c),_0x3ded30(0x13a));}if(!isJsonObject(_0x754811))throw notificationError(_0x3ded30(0x18d),_0x3ded30(0x184)+_0x1dcae5+_0x3ded30(0x11a));return validateNotificationDocument(_0x754811,_0x2d0643);}export function projectNotificationListConfig(_0x24e361,_0x1f3b3a){const _0xd26937=a146_0x5eb608;return{'id':typeof _0x24e361['id']==='number'?_0x24e361['id']:null,'configCode':requireResponseString(_0x24e361[_0xd26937(0x197)],_0xd26937(0x197),_0x1f3b3a),'configName':requireResponseString(_0x24e361[_0xd26937(0x17d)],_0xd26937(0x17d),_0x1f3b3a),'channelType':requireResponseString(_0x24e361[_0xd26937(0x118)],_0xd26937(0x118),_0x1f3b3a),'description':normalizeNullableString(_0x24e361[_0xd26937(0x140)]),'createTime':normalizeNullableString(_0x24e361['createTime']),'updateTime':normalizeNullableString(_0x24e361[_0xd26937(0x147)])};}export function normalizeExactNotificationConfig(_0x28575e,_0x5430dc,_0x13f3d2){const _0x40498a=a146_0x5eb608;if(!Number[_0x40498a(0x176)](_0x28575e['id'])||_0x28575e['id']!==_0x5430dc)throw notificationError(_0x40498a(0x125),_0x40498a(0x187)+_0x5430dc+'.');if(_0x28575e[_0x40498a(0x14d)]!==_0x13f3d2)throw notificationError(_0x40498a(0x125),_0x40498a(0x141)+_0x5430dc+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x16d626=requireExactString(_0x28575e[_0x40498a(0x17d)],'configName',_0x5430dc),_0x3d6e32=requireExactString(_0x28575e[_0x40498a(0x197)],_0x40498a(0x197),_0x5430dc),_0x757bb0=requireExactString(_0x28575e[_0x40498a(0x118)],_0x40498a(0x118),_0x5430dc);if(!NOTIFICATION_CHANNEL_TYPES[_0x40498a(0x14f)](_0x757bb0))throw notificationError(_0x40498a(0x125),_0x40498a(0x141)+_0x5430dc+_0x40498a(0x15f));const _0x11301f=responseNullableString(_0x28575e[_0x40498a(0x174)],'endpointUrl',_0x5430dc),_0x44d608=responseNullableString(_0x28575e['channelConfig'],_0x40498a(0x12f),_0x5430dc),_0x1067a7=responseNullableString(_0x28575e[_0x40498a(0x140)],'description',_0x5430dc),_0x4d6e24=responseNullableTimeout(_0x28575e[_0x40498a(0x18f)],_0x40498a(0x18f),_0x5430dc),_0x2cc943=responseNullableTimeout(_0x28575e[_0x40498a(0x12d)],'readTimeout',_0x5430dc);return{'id':_0x5430dc,'appCode':_0x13f3d2,'configCode':_0x3d6e32,'configName':_0x16d626,'channelType':_0x757bb0,'endpointUrl':redactSensitive(_0x11301f),'channelConfig':redactSensitive(_0x44d608),'description':_0x1067a7,'connectTimeout':_0x4d6e24,'readTimeout':_0x2cc943,'endpointUrlRaw':_0x11301f,'channelConfigRaw':_0x44d608};}export async function requireExactNotificationConfig(_0x59721f,_0x1acd29,_0x549742){const _0x167e98=a146_0x5eb608;let _0x39d7d6;try{_0x39d7d6=await getNotificationChannelConfig(_0x1acd29,_0x59721f);}catch{throw safeApiFailure(_0x549742,_0x167e98(0x115),_0x167e98(0x126)+_0x59721f+_0x167e98(0x130));}return normalizeExactNotificationConfig(_0x39d7d6,_0x1acd29,_0x59721f);}export function projectNotificationConfig(_0x22274f){const _0x3a82f8=a146_0x5eb608;return{'id':_0x22274f['id']??null,'appCode':_0x22274f[_0x3a82f8(0x14d)],'configCode':_0x22274f[_0x3a82f8(0x197)]??null,'configName':_0x22274f['configName'],'channelType':_0x22274f[_0x3a82f8(0x118)],'endpointUrl':redactSensitive(_0x22274f[_0x3a82f8(0x174)]),'channelConfig':redactSensitive(_0x22274f[_0x3a82f8(0x12f)]),'description':_0x22274f[_0x3a82f8(0x140)]??null,'connectTimeout':_0x22274f[_0x3a82f8(0x18f)]??null,'readTimeout':_0x22274f[_0x3a82f8(0x12d)]??null};}export function notificationSelector(_0x3c2b30){const _0x1993cf=a146_0x5eb608;return{'appCode':_0x3c2b30[_0x1993cf(0x14d)],'id':_0x3c2b30['id'],'configCode':_0x3c2b30[_0x1993cf(0x197)],'configName':_0x3c2b30[_0x1993cf(0x17d)],'channelType':_0x3c2b30[_0x1993cf(0x118)]};}export function createMutationInput(_0x2a581c,_0x3355c9){const _0x42b2ef=a146_0x5eb608;return{'appCode':_0x2a581c,'configName':_0x3355c9['configName'],'channelType':_0x3355c9[_0x42b2ef(0x118)],...hasOwn(_0x3355c9,_0x42b2ef(0x174))?{'endpointUrl':_0x3355c9['endpointUrl']}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x12f))?{'channelConfig':serializeChannelConfig(_0x3355c9[_0x42b2ef(0x12f)])}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x140))?{'description':_0x3355c9[_0x42b2ef(0x140)]}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x18f))?{'connectTimeout':_0x3355c9[_0x42b2ef(0x18f)]}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x12d))?{'readTimeout':_0x3355c9[_0x42b2ef(0x12d)]}:{}};}export function mergeUpdateInput(_0x1fcca9,_0x220a8f){const _0x42b461=a146_0x5eb608;return{'id':_0x1fcca9['id'],'appCode':_0x1fcca9[_0x42b461(0x14d)],'configName':_0x220a8f[_0x42b461(0x17d)]??_0x1fcca9[_0x42b461(0x17d)],'channelType':_0x220a8f[_0x42b461(0x118)]??_0x1fcca9[_0x42b461(0x118)],'endpointUrl':hasOwn(_0x220a8f,'endpointUrl')?_0x220a8f[_0x42b461(0x174)]:_0x1fcca9['endpointUrlRaw'],'channelConfig':hasOwn(_0x220a8f,_0x42b461(0x12f))?serializeChannelConfig(_0x220a8f[_0x42b461(0x12f)]):_0x1fcca9[_0x42b461(0x17f)],'description':hasOwn(_0x220a8f,'description')?_0x220a8f[_0x42b461(0x140)]:_0x1fcca9[_0x42b461(0x140)],'connectTimeout':hasOwn(_0x220a8f,_0x42b461(0x18f))?_0x220a8f[_0x42b461(0x18f)]:_0x1fcca9['connectTimeout'],'readTimeout':hasOwn(_0x220a8f,'readTimeout')?_0x220a8f[_0x42b461(0x12d)]:_0x1fcca9[_0x42b461(0x12d)]};}export function plannedUpdateProjection(_0x3d03b9,_0x5647ef){const _0x5f3096=a146_0x5eb608;return projectNotificationConfig({'id':_0x3d03b9['id'],'appCode':_0x3d03b9[_0x5f3096(0x14d)],'configCode':_0x3d03b9[_0x5f3096(0x197)],'configName':_0x5647ef[_0x5f3096(0x17d)]??_0x3d03b9[_0x5f3096(0x17d)],'channelType':_0x5647ef[_0x5f3096(0x118)]??_0x3d03b9[_0x5f3096(0x118)],'endpointUrl':hasOwn(_0x5647ef,_0x5f3096(0x174))?_0x5647ef[_0x5f3096(0x174)]:_0x3d03b9[_0x5f3096(0x137)],'channelConfig':hasOwn(_0x5647ef,'channelConfig')?_0x5647ef['channelConfig']:_0x3d03b9[_0x5f3096(0x17f)],'description':hasOwn(_0x5647ef,'description')?_0x5647ef[_0x5f3096(0x140)]:_0x3d03b9[_0x5f3096(0x140)],'connectTimeout':hasOwn(_0x5647ef,_0x5f3096(0x18f))?_0x5647ef[_0x5f3096(0x18f)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3d03b9[_0x5f3096(0x18f)],'readTimeout':hasOwn(_0x5647ef,'readTimeout')?_0x5647ef['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3d03b9[_0x5f3096(0x12d)]});}export function requestedSafeFieldsMatch(_0x347a88,_0x3e97a5,_0x40f0c6){const _0xd363c7=a146_0x5eb608,_0x781b0b=[],_0x13e7b5=[],_0x3dddd4=[];for(const _0x473c10 of[_0xd363c7(0x17d),'channelType',_0xd363c7(0x140)]){if(!hasOwn(_0x40f0c6,_0x473c10))continue;_0x3dddd4[_0xd363c7(0x183)](_0x473c10),_0x781b0b['push'](_0x3e97a5[_0x473c10]===_0x40f0c6[_0x473c10]),_0x13e7b5[_0xd363c7(0x183)](_0x347a88[_0x473c10]!==_0x40f0c6[_0x473c10]&&_0x3e97a5[_0x473c10]===_0x40f0c6[_0x473c10]);}for(const _0x22b72e of[_0xd363c7(0x18f),_0xd363c7(0x12d)]){if(!hasOwn(_0x40f0c6,_0x22b72e))continue;const _0x20f3b1=_0x40f0c6[_0x22b72e]??(_0x22b72e===_0xd363c7(0x18f)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x3dddd4[_0xd363c7(0x183)](_0x22b72e),_0x781b0b[_0xd363c7(0x183)](_0x3e97a5[_0x22b72e]===_0x20f3b1),_0x13e7b5[_0xd363c7(0x183)](_0x347a88[_0x22b72e]!==_0x20f3b1&&_0x3e97a5[_0x22b72e]===_0x20f3b1);}return hasOwn(_0x40f0c6,_0xd363c7(0x174))&&_0x40f0c6[_0xd363c7(0x174)]===null&&(_0x3dddd4['push'](_0xd363c7(0x18e)),_0x781b0b[_0xd363c7(0x183)](_0x3e97a5[_0xd363c7(0x137)]===null||_0x3e97a5['endpointUrlRaw']===''),_0x13e7b5[_0xd363c7(0x183)](_0x347a88['endpointUrlRaw']!==null&&_0x347a88[_0xd363c7(0x137)]!==''&&(_0x3e97a5['endpointUrlRaw']===null||_0x3e97a5[_0xd363c7(0x137)]===''))),{'allMatch':_0x781b0b['every'](Boolean),'provesChange':_0x13e7b5[_0xd363c7(0x17e)](Boolean),'verifiedFields':_0x3dddd4};}export function validateNotificationDeleteReadback(_0x33a52c,_0x2465fc,_0x25631f){const _0x275423=a146_0x5eb608;for(const [_0x5c0e34,_0x5ecc7c]of _0x33a52c[_0x275423(0x13f)]()){if(!Number[_0x275423(0x176)](_0x5ecc7c['id'])||_0x5ecc7c['id']<=0x0)throw notificationError(_0x275423(0x125),'Notification\x20config\x20list\x20item\x20'+(_0x5c0e34+0x1)+_0x275423(0x11e));if(_0x5ecc7c['appCode']!==_0x2465fc)throw notificationError(_0x275423(0x125),_0x275423(0x161)+(_0x5c0e34+0x1)+_0x275423(0x15c));if(_0x5ecc7c[_0x275423(0x118)]!==_0x25631f)throw notificationError('notification_config_response_invalid',_0x275423(0x161)+(_0x5c0e34+0x1)+_0x275423(0x12c));}}export function safeApiFailure(_0x4a506a,_0x317524,_0x3891a7){const _0x2d20b0=a146_0x5eb608;return notificationError(_0x2d20b0(0x150)+_0x4a506a+'_'+(_0x317524===_0x2d20b0(0x16b)?_0x2d20b0(0x199):_0x317524+_0x2d20b0(0x189)),_0x2d20b0(0x141)+_0x4a506a+'\x20'+_0x317524+'\x20failed.',_0x3891a7);}export function notificationLookupCommand(_0xea0d3,_0xea83b3){const _0x31230c=a146_0x5eb608;return _0x31230c(0x146)+_0xea0d3+_0x31230c(0x170)+_0xea83b3+'\x20--format\x20compress';}function validateNotificationDocument(_0x454a5d,_0x136c87){const _0x5d9f25=a146_0x5eb608;for(const _0x211854 of Object[_0x5d9f25(0x138)](_0x454a5d)){if(FORBIDDEN_IDENTITY_FIELDS[_0x5d9f25(0x165)](_0x211854))throw notificationError('notification_config_field_forbidden',_0x5d9f25(0x173)+_0x211854+_0x5d9f25(0x191));if(!ALLOWED_INPUT_FIELDS[_0x5d9f25(0x165)](_0x211854))throw notificationError(_0x5d9f25(0x129),_0x5d9f25(0x139)+_0x211854+'\x22.');}if(_0x136c87===_0x5d9f25(0x15d)&&Object[_0x5d9f25(0x138)](_0x454a5d)[_0x5d9f25(0x185)]===0x0)throw notificationError(_0x5d9f25(0x12e),_0x5d9f25(0x18a));const _0x36c6f1={};if(hasOwn(_0x454a5d,_0x5d9f25(0x17d)))_0x36c6f1[_0x5d9f25(0x17d)]=validateRequiredString(_0x454a5d['configName'],_0x5d9f25(0x17d),0x80);else{if(_0x136c87==='create')throw notificationError('notification_config_field_required','Create\x20JSON\x20requires\x20field\x20'+_0x5d9f25(0x188));}if(hasOwn(_0x454a5d,_0x5d9f25(0x118))){if(typeof _0x454a5d['channelType']!==_0x5d9f25(0x198))throw invalidFieldType(_0x5d9f25(0x118),'a\x20supported\x20string');const _0x3f4792=_0x454a5d[_0x5d9f25(0x118)][_0x5d9f25(0x13c)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x3f4792))throw notificationError(_0x5d9f25(0x116),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x5d9f25(0x14e)+NOTIFICATION_CHANNEL_TYPES[_0x5d9f25(0x16f)](',\x20')+'.');_0x36c6f1['channelType']=_0x3f4792;}else{if(_0x136c87===_0x5d9f25(0x193))throw notificationError(_0x5d9f25(0x160),_0x5d9f25(0x182)+'\x22channelType\x22.');}for(const [_0x448653,_0x4a9ebf]of[[_0x5d9f25(0x174),0x200],[_0x5d9f25(0x140),0x100]]){if(!hasOwn(_0x454a5d,_0x448653))continue;const _0x403ee9=_0x454a5d[_0x448653];if(_0x403ee9!==null&&typeof _0x403ee9!==_0x5d9f25(0x198))throw invalidFieldType(_0x448653,_0x5d9f25(0x167));if(typeof _0x403ee9===_0x5d9f25(0x198)&&_0x403ee9[_0x5d9f25(0x185)]>_0x4a9ebf)throw notificationError(_0x5d9f25(0x116),_0x5d9f25(0x173)+_0x448653+_0x5d9f25(0x180)+_0x4a9ebf+_0x5d9f25(0x157));_0x36c6f1[_0x448653]=_0x403ee9;}if(hasOwn(_0x454a5d,_0x5d9f25(0x12f))){const _0x48afc9=_0x454a5d[_0x5d9f25(0x12f)];if(_0x48afc9===null&&_0x136c87===_0x5d9f25(0x193))throw invalidFieldType(_0x5d9f25(0x12f),_0x5d9f25(0x190));if(_0x48afc9!==null&&!isJsonObject(_0x48afc9))throw invalidFieldType('channelConfig',_0x136c87===_0x5d9f25(0x15d)?_0x5d9f25(0x194):_0x5d9f25(0x190));_0x48afc9!==null&&validateChannelConfigFields(_0x36c6f1[_0x5d9f25(0x118)],_0x48afc9),_0x36c6f1[_0x5d9f25(0x12f)]=_0x48afc9;}for(const _0xb005ea of['connectTimeout','readTimeout']){if(!hasOwn(_0x454a5d,_0xb005ea))continue;const _0x27be70=_0x454a5d[_0xb005ea];if(_0x27be70!==null&&(!Number[_0x5d9f25(0x176)](_0x27be70)||_0x27be70<0x0))throw notificationError(_0x5d9f25(0x116),_0x5d9f25(0x173)+_0xb005ea+_0x5d9f25(0x11f));_0x36c6f1[_0xb005ea]=_0x27be70;}return _0x36c6f1;}function validateRequiredString(_0x17c7f5,_0x401976,_0x529af3){const _0x266c7d=a146_0x5eb608;if(typeof _0x17c7f5!==_0x266c7d(0x198))throw invalidFieldType(_0x401976,_0x266c7d(0x155));const _0x407f82=_0x17c7f5[_0x266c7d(0x13c)]();if(!_0x407f82)throw notificationError(_0x266c7d(0x116),_0x266c7d(0x173)+_0x401976+_0x266c7d(0x172));if(_0x407f82['length']>_0x529af3)throw notificationError(_0x266c7d(0x116),_0x266c7d(0x173)+_0x401976+_0x266c7d(0x180)+_0x529af3+_0x266c7d(0x157));return _0x407f82;}function validateChannelConfigFields(_0x3a6f77,_0x2160f8){const _0x47eafb=a146_0x5eb608;if(hasOwn(_0x2160f8,_0x47eafb(0x164)))throw forbiddenChannelConfigField(_0x47eafb(0x164));if(_0x3a6f77===_0x47eafb(0x163))for(const _0x191177 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x2160f8,_0x191177))throw forbiddenChannelConfigField(_0x191177);}}function forbiddenChannelConfigField(_0x2772f2){const _0x5c3a81=a146_0x5eb608;return notificationError(_0x5c3a81(0x177),_0x5c3a81(0x11c)+_0x2772f2+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x15c582,_0x4a2103){const _0x44e3fc=a146_0x5eb608;return notificationError('notification_config_field_invalid',_0x44e3fc(0x173)+_0x15c582+_0x44e3fc(0x195)+_0x4a2103+'.');}function serializeChannelConfig(_0x3e9c09){return _0x3e9c09===null||_0x3e9c09===undefined?null:JSON['stringify'](_0x3e9c09);}function redactSensitive(_0x39af80){return _0x39af80===null||_0x39af80===undefined||_0x39af80===''?null:'<redacted>';}function requireResponseString(_0x3cdf08,_0x3e3f55,_0x56ed06){const _0x1bbf6f=a146_0x5eb608;if(typeof _0x3cdf08!==_0x1bbf6f(0x198)||_0x3cdf08[_0x1bbf6f(0x13c)]()==='')throw CliErrors[_0x1bbf6f(0x17b)]('Invalid\x20notification\x20config\x20response.',_0x1bbf6f(0x14b)+(_0x56ed06+0x1)+_0x1bbf6f(0x133)+_0x3e3f55+'\x22.');return _0x3cdf08[_0x1bbf6f(0x13c)]();}function requireExactString(_0x3af499,_0x58b82e,_0xae0ef4){const _0x315a99=a146_0x5eb608;if(typeof _0x3af499!=='string'||_0x3af499[_0x315a99(0x13c)]()==='')throw notificationError(_0x315a99(0x125),_0x315a99(0x141)+_0xae0ef4+_0x315a99(0x133)+_0x58b82e+'\x22.');return _0x3af499[_0x315a99(0x13c)]();}function responseNullableString(_0x444a8a,_0x5af848,_0x24e09a){const _0x44b93a=a146_0x5eb608;if(_0x444a8a===undefined||_0x444a8a===null)return null;if(typeof _0x444a8a!==_0x44b93a(0x198))throw notificationError(_0x44b93a(0x125),_0x44b93a(0x141)+_0x24e09a+_0x44b93a(0x124)+_0x5af848+'\x22.');return _0x444a8a;}function responseNullableTimeout(_0x5642b6,_0x3a5ae8,_0x470fbe){const _0x540a90=a146_0x5eb608;if(_0x5642b6===undefined||_0x5642b6===null)return null;if(!Number[_0x540a90(0x176)](_0x5642b6)||_0x5642b6<0x0)throw notificationError(_0x540a90(0x125),_0x540a90(0x141)+_0x470fbe+_0x540a90(0x124)+_0x3a5ae8+'\x22.');return _0x5642b6;}function normalizeNullableString(_0x4b8166){const _0x93a67b=a146_0x5eb608;return typeof _0x4b8166===_0x93a67b(0x198)?_0x4b8166:null;}function isJsonObject(_0xed2418){const _0x312ceb=a146_0x5eb608;return _0xed2418!==null&&typeof _0xed2418===_0x312ceb(0x166)&&!Array[_0x312ceb(0x16e)](_0xed2418);}function hasOwn(_0x4521b8,_0x3bd80e){const _0x1f1a94=a146_0x5eb608;return Object['prototype'][_0x1f1a94(0x12a)][_0x1f1a94(0x154)](_0x4521b8,_0x3bd80e);}async function readStdin(){const _0x3395b4=a146_0x5eb608;let _0xc5a6d7='';process[_0x3395b4(0x158)][_0x3395b4(0x135)](_0x3395b4(0x12b));for await(const _0x4a5533 of process[_0x3395b4(0x158)])_0xc5a6d7+=_0x4a5533;return _0xc5a6d7;}
@@ -1 +1 @@
1
- function a142_0x5789(_0x3dd138,_0x1365f7){_0x3dd138=_0x3dd138-0x1a0;const _0x48a41e=a142_0x48a4();let _0x578945=_0x48a41e[_0x3dd138];return _0x578945;}const a142_0x5da126=a142_0x5789;function a142_0x48a4(){const _0x47d2b0=['<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','fileUrl','invoice','Publicly\x20accessible\x20image\x20or\x20file\x20URL','418216NNHikJ','imageFile','toString','\x20OCR','General','image-url','File\x20upload\x20response\x20missing\x20filePath.','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','.\x20Supported\x20scenes:\x20','Invoice','21ivGuoR','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','form','7190jrcuwp','Preview:\x20recognize\x20','string','idcard','/smartapi/ocr/recognize-text?','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','1013322dRTeuo','length','filePath','/smartapi/common/uploadFile','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','13574BiofYD','/smartapi/ocr/recognize-text','idCard','read','image-file','GET','1646559ZtWUpq','POST','1mTipTJ','764056vgiNIW','recognize','425695oQQOye','imageUrl','6dWsVYB','validation','path','scene','general','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','Table','ocr','585912WizHXP','trim','appCode','str','File\x20URL\x20response\x20missing\x20fileUrl.'];a142_0x48a4=function(){return _0x47d2b0;};return a142_0x48a4();}(function(_0x5a5a4d,_0x1eb82a){const _0x3d9021=a142_0x5789,_0x34612b=_0x5a5a4d();while(!![]){try{const _0x3ed5bf=parseInt(_0x3d9021(0x1b4))/0x1*(parseInt(_0x3d9021(0x1b5))/0x2)+parseInt(_0x3d9021(0x1a7))/0x3+-parseInt(_0x3d9021(0x1ca))/0x4+parseInt(_0x3d9021(0x1b7))/0x5*(parseInt(_0x3d9021(0x1b9))/0x6)+parseInt(_0x3d9021(0x1d4))/0x7*(parseInt(_0x3d9021(0x1c1))/0x8)+parseInt(_0x3d9021(0x1b2))/0x9+-parseInt(_0x3d9021(0x1a1))/0xa*(parseInt(_0x3d9021(0x1ac))/0xb);if(_0x3ed5bf===_0x1eb82a)break;else _0x34612b['push'](_0x34612b['shift']());}catch(_0x4083dd){_0x34612b['push'](_0x34612b['shift']());}}}(a142_0x48a4,0x34b01));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a142_0x5da126(0x1c8),'general',a142_0x5da126(0x1a0),a142_0x5da126(0x1ae)],SCENE_TO_LEGACY_TYPE={'invoice':a142_0x5da126(0x1d3),'general':a142_0x5da126(0x1ce),'form':a142_0x5da126(0x1bf),'idCard':'IdCard'},SCENE_FLAG={'name':'scene','type':a142_0x5da126(0x1a3),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a142_0x5da126(0x1d5)},IMAGE_FILE_FLAG={'name':'image-file','type':a142_0x5da126(0x1a3),'description':a142_0x5da126(0x1d1)},IMAGE_URL_FLAG={'name':a142_0x5da126(0x1cf),'type':a142_0x5da126(0x1a3),'description':a142_0x5da126(0x1c9)};function normalizeScene(_0x3f123d){const _0x3c0829=a142_0x5da126,_0xd80ee7=_0x3f123d[_0x3c0829(0x1c2)]()['toLowerCase']();if(_0xd80ee7===_0x3c0829(0x1a4))return'idCard';if(_0xd80ee7===_0x3c0829(0x1c8)||_0xd80ee7===_0x3c0829(0x1bd)||_0xd80ee7===_0x3c0829(0x1a0))return _0xd80ee7;throw CliErrors['validation']('Unsupported\x20OCR\x20scene:\x20'+_0x3f123d+_0x3c0829(0x1d2)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x395310){const _0x8fb5ae=a142_0x5da126,_0x5cd216=_0x395310[_0x8fb5ae(0x1c4)](_0x8fb5ae(0x1b0))[_0x8fb5ae(0x1c2)](),_0x3927e6=_0x395310[_0x8fb5ae(0x1c4)](_0x8fb5ae(0x1cf))[_0x8fb5ae(0x1c2)]();return{'imageFile':_0x5cd216,'imageUrl':_0x3927e6,'count':[_0x5cd216,_0x3927e6]['filter'](Boolean)[_0x8fb5ae(0x1a8)]};}function validateInputSelection(_0x41e498){const _0x371009=a142_0x5da126,_0x3cf37b=selectedInputs(_0x41e498);if(_0x3cf37b['count']!==0x1)throw CliErrors[_0x371009(0x1ba)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x3cf37b;}function withScene(_0x5b46d3,_0x4170a5,_0x16962e){const _0x4f94f=a142_0x5da126;return{..._0x5b46d3,'scene':_0x4170a5,..._0x16962e?{'sourceFile':{'fileName':_0x16962e['fileName'],'filePath':_0x16962e[_0x4f94f(0x1a9)]}}:{}};}const ocrRecognize={'service':a142_0x5da126(0x1c0),'command':a142_0x5da126(0x1b6),'description':a142_0x5da126(0x1a6),'risk':a142_0x5da126(0x1af),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x8c6f2){const _0x10c1e8=a142_0x5da126,_0x347293=normalizeScene(_0x8c6f2['str'](_0x10c1e8(0x1bc))),_0xa3e90f=SCENE_TO_LEGACY_TYPE[_0x347293],_0x39bdcc=validateInputSelection(_0x8c6f2);if(_0x39bdcc[_0x10c1e8(0x1b8)]){const _0x433696=new URLSearchParams({'url':_0x39bdcc[_0x10c1e8(0x1b8)],'type':_0xa3e90f,'appCode':_0x8c6f2[_0x10c1e8(0x1c3)]});return{'method':_0x10c1e8(0x1b1),'url':_0x10c1e8(0x1a5)+_0x433696[_0x10c1e8(0x1cc)](),'description':_0x10c1e8(0x1a2)+_0x347293+'\x20OCR\x20from\x20URL'};}const _0x49a7f5=requireDevelopmentUploadFile(_0x39bdcc[_0x10c1e8(0x1cb)],'image-file');return{'method':_0x10c1e8(0x1b3),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':_0x10c1e8(0x1aa),'body':{'appCode':_0x8c6f2['appCode'],'multipart':{'file':_0x49a7f5}}},{'method':_0x10c1e8(0x1b3),'url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x10c1e8(0x1be),'downloadFlag':![]}},{'method':_0x10c1e8(0x1b1),'url':_0x10c1e8(0x1ad),'query':{'appCode':_0x8c6f2[_0x10c1e8(0x1c3)],'url':_0x10c1e8(0x1c6),'type':_0xa3e90f}}]},'description':_0x10c1e8(0x1ab)+_0x347293+_0x10c1e8(0x1cd)};},async 'execute'(_0x34dcf0){const _0xe19ecd=a142_0x5da126,_0x528f20=normalizeScene(_0x34dcf0['str']('scene')),_0x21fd89=SCENE_TO_LEGACY_TYPE[_0x528f20],_0x1fecd2=validateInputSelection(_0x34dcf0);if(_0x1fecd2[_0xe19ecd(0x1b8)]){const _0x42ac80=await recognizeDevelopmentOcr(_0x34dcf0[_0xe19ecd(0x1c3)],{'url':_0x1fecd2['imageUrl'],'type':_0x21fd89});return{'ok':!![],'data':withScene(_0x42ac80,_0x528f20)};}const _0x2d842d=requireDevelopmentUploadFile(_0x1fecd2[_0xe19ecd(0x1cb)],_0xe19ecd(0x1b0)),_0x30feb6=await uploadDevelopmentFile(_0x34dcf0[_0xe19ecd(0x1c3)],_0x2d842d[_0xe19ecd(0x1bb)]);if(!_0x30feb6[_0xe19ecd(0x1a9)])throw CliErrors['apiError'](_0xe19ecd(0x1d0));const _0xad2519=await queryDevelopmentFileUrl(_0x30feb6[_0xe19ecd(0x1a9)],{'download':![]});if(!_0xad2519['fileUrl'])throw CliErrors['apiError'](_0xe19ecd(0x1c5));const _0x2b10ca=await recognizeDevelopmentOcr(_0x34dcf0['appCode'],{'url':_0xad2519[_0xe19ecd(0x1c7)],'type':_0x21fd89});return{'ok':!![],'data':withScene(_0x2b10ca,_0x528f20,_0x30feb6)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a147_0xb8d769=a147_0x4ce6;(function(_0x3d34f6,_0x33e854){const _0x488f84=a147_0x4ce6,_0x5d9809=_0x3d34f6();while(!![]){try{const _0x524067=parseInt(_0x488f84(0x1de))/0x1*(parseInt(_0x488f84(0x1d5))/0x2)+parseInt(_0x488f84(0x1c5))/0x3+parseInt(_0x488f84(0x1e2))/0x4*(-parseInt(_0x488f84(0x1e6))/0x5)+parseInt(_0x488f84(0x1c0))/0x6+-parseInt(_0x488f84(0x1e0))/0x7*(parseInt(_0x488f84(0x1f3))/0x8)+-parseInt(_0x488f84(0x1cf))/0x9+parseInt(_0x488f84(0x1d0))/0xa;if(_0x524067===_0x33e854)break;else _0x5d9809['push'](_0x5d9809['shift']());}catch(_0x145b79){_0x5d9809['push'](_0x5d9809['shift']());}}}(a147_0x25fd,0xc26f5));function a147_0x4ce6(_0x32fd27,_0x383d88){_0x32fd27=_0x32fd27-0x1bf;const _0x25fd1d=a147_0x25fd();let _0x4ce641=_0x25fd1d[_0x32fd27];return _0x4ce641;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=['invoice','general',a147_0xb8d769(0x1f2),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a147_0xb8d769(0x1d1),'general':a147_0xb8d769(0x1d4),'form':a147_0xb8d769(0x1c1),'idCard':a147_0xb8d769(0x1f1)},SCENE_FLAG={'name':a147_0xb8d769(0x1ce),'type':a147_0xb8d769(0x1c6),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0xb8d769(0x1d9)},IMAGE_FILE_FLAG={'name':'image-file','type':'string','description':a147_0xb8d769(0x1ea)},IMAGE_URL_FLAG={'name':a147_0xb8d769(0x1c4),'type':a147_0xb8d769(0x1c6),'description':a147_0xb8d769(0x1ef)};function normalizeScene(_0x3e78cc){const _0x4c22a7=a147_0xb8d769,_0x1ee16f=_0x3e78cc[_0x4c22a7(0x1e8)]()[_0x4c22a7(0x1cb)]();if(_0x1ee16f===_0x4c22a7(0x1dc))return _0x4c22a7(0x1d6);if(_0x1ee16f===_0x4c22a7(0x1e9)||_0x1ee16f==='general'||_0x1ee16f==='form')return _0x1ee16f;throw CliErrors[_0x4c22a7(0x1d8)]('Unsupported\x20OCR\x20scene:\x20'+_0x3e78cc+_0x4c22a7(0x1c8)+SUPPORTED_SCENES[_0x4c22a7(0x1d7)](',\x20'));}function a147_0x25fd(){const _0x58401f=['string','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','.\x20Supported\x20scenes:\x20','filePath','toString','toLowerCase','read','count','scene','8998029DFIRFO','7271020GYAUvG','Invoice','\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','General','766EqtoDm','idCard','join','validation','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Preview:\x20recognize\x20','/smartapi/common/queryFileUrl','idcard','ocr','3579EBzbgP','fileName','63MpRJxq','POST','32UkAkhO','/smartapi/ocr/recognize-text','str','length','448870dQTyXg','appCode','trim','invoice','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','imageUrl','fileUrl','/smartapi/common/uploadFile','GET','Publicly\x20accessible\x20image\x20or\x20file\x20URL','imageFile','IdCard','form','1135752QGcbOB','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','4667100PCCaqh','Table','path','image-file','image-url','2749170BUMaat'];a147_0x25fd=function(){return _0x58401f;};return a147_0x25fd();}function selectedInputs(_0x270df8){const _0x5a17ee=a147_0xb8d769,_0x454bea=_0x270df8[_0x5a17ee(0x1e4)](_0x5a17ee(0x1c3))[_0x5a17ee(0x1e8)](),_0x64fd82=_0x270df8['str'](_0x5a17ee(0x1c4))[_0x5a17ee(0x1e8)]();return{'imageFile':_0x454bea,'imageUrl':_0x64fd82,'count':[_0x454bea,_0x64fd82]['filter'](Boolean)[_0x5a17ee(0x1e5)]};}function validateInputSelection(_0x2603e0){const _0x124ccb=a147_0xb8d769,_0x2deac0=selectedInputs(_0x2603e0);if(_0x2deac0[_0x124ccb(0x1cd)]!==0x1)throw CliErrors[_0x124ccb(0x1d8)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x2deac0;}function withScene(_0x5d288b,_0x1dcda4,_0x89f3da){const _0x53733b=a147_0xb8d769;return{..._0x5d288b,'scene':_0x1dcda4,..._0x89f3da?{'sourceFile':{'fileName':_0x89f3da[_0x53733b(0x1df)],'filePath':_0x89f3da[_0x53733b(0x1c9)]}}:{}};}const ocrRecognize={'service':a147_0xb8d769(0x1dd),'command':'recognize','description':a147_0xb8d769(0x1bf),'risk':a147_0xb8d769(0x1cc),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x18bad1){const _0x3b0db4=a147_0xb8d769,_0x3d94d7=normalizeScene(_0x18bad1[_0x3b0db4(0x1e4)]('scene')),_0x21a961=SCENE_TO_LEGACY_TYPE[_0x3d94d7],_0x39f6a2=validateInputSelection(_0x18bad1);if(_0x39f6a2[_0x3b0db4(0x1eb)]){const _0x4a39e2=new URLSearchParams({'url':_0x39f6a2[_0x3b0db4(0x1eb)],'type':_0x21a961,'appCode':_0x18bad1[_0x3b0db4(0x1e7)]});return{'method':_0x3b0db4(0x1ee),'url':'/smartapi/ocr/recognize-text?'+_0x4a39e2[_0x3b0db4(0x1ca)](),'description':_0x3b0db4(0x1da)+_0x3d94d7+'\x20OCR\x20from\x20URL'};}const _0x10339c=requireDevelopmentUploadFile(_0x39f6a2[_0x3b0db4(0x1f0)],_0x3b0db4(0x1c3));return{'method':_0x3b0db4(0x1e1),'url':_0x3b0db4(0x1ed),'body':{'steps':[{'method':_0x3b0db4(0x1e1),'url':_0x3b0db4(0x1ed),'body':{'appCode':_0x18bad1[_0x3b0db4(0x1e7)],'multipart':{'file':_0x10339c}}},{'method':'POST','url':_0x3b0db4(0x1db),'body':{'filePath':'<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','downloadFlag':![]}},{'method':_0x3b0db4(0x1ee),'url':_0x3b0db4(0x1e3),'query':{'appCode':_0x18bad1[_0x3b0db4(0x1e7)],'url':'<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','type':_0x21a961}}]},'description':_0x3b0db4(0x1c7)+_0x3d94d7+_0x3b0db4(0x1d2)};},async 'execute'(_0x2757f7){const _0x2046f8=a147_0xb8d769,_0x2798c2=normalizeScene(_0x2757f7['str'](_0x2046f8(0x1ce))),_0x3ff76f=SCENE_TO_LEGACY_TYPE[_0x2798c2],_0xd20d4d=validateInputSelection(_0x2757f7);if(_0xd20d4d[_0x2046f8(0x1eb)]){const _0x2de920=await recognizeDevelopmentOcr(_0x2757f7[_0x2046f8(0x1e7)],{'url':_0xd20d4d['imageUrl'],'type':_0x3ff76f});return{'ok':!![],'data':withScene(_0x2de920,_0x2798c2)};}const _0x387017=requireDevelopmentUploadFile(_0xd20d4d[_0x2046f8(0x1f0)],'image-file'),_0x313f86=await uploadDevelopmentFile(_0x2757f7[_0x2046f8(0x1e7)],_0x387017[_0x2046f8(0x1c2)]);if(!_0x313f86['filePath'])throw CliErrors['apiError'](_0x2046f8(0x1d3));const _0x5466c2=await queryDevelopmentFileUrl(_0x313f86['filePath'],{'download':![]});if(!_0x5466c2[_0x2046f8(0x1ec)])throw CliErrors['apiError']('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x1ebd6c=await recognizeDevelopmentOcr(_0x2757f7[_0x2046f8(0x1e7)],{'url':_0x5466c2['fileUrl'],'type':_0x3ff76f});return{'ok':!![],'data':withScene(_0x1ebd6c,_0x2798c2,_0x313f86)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a143_0x41d9af=a143_0x14dd;function a143_0x17a3(){const _0x21a72f=['files','2047038NgdthF','CUSTOM','465528QrwEbt','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','\x20and\x20its\x20menu\x20entry.','stringify','length','BLANK','trim','page\x20create\x20does\x20not\x20accept\x20--page-type.','menuPath','page-content','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','87WQRMNB','Created\x20Custom\x20Page\x20','number','isNaN','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','appCode','version','pageName','string','895244dklNDg','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','452785ArQZOk','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','apiError','page-pattern','name','parent-menu-id','Would\x20create\x20Custom\x20Page\x20','input','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','Custom_page_','isInteger','keys','compress','menuId','zh-CN','page-type','614112Hyihxm','str','parentMenuId','4730KQBbhk','page','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','pagePattern','validation','langs','POST','pageId','page.create','2971640maJMtH','now','warnings','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.'];a143_0x17a3=function(){return _0x21a72f;};return a143_0x17a3();}(function(_0x23b36f,_0x2d3d48){const _0x1dab07=a143_0x14dd,_0x5a1cef=_0x23b36f();while(!![]){try{const _0x15aed9=parseInt(_0x1dab07(0x10c))/0x1*(-parseInt(_0x1dab07(0x12a))/0x2)+parseInt(_0x1dab07(0x138))/0x3+parseInt(_0x1dab07(0x127))/0x4+-parseInt(_0x1dab07(0x117))/0x5+parseInt(_0x1dab07(0x101))/0x6+parseInt(_0x1dab07(0x115))/0x7+-parseInt(_0x1dab07(0x133))/0x8;if(_0x15aed9===_0x2d3d48)break;else _0x5a1cef['push'](_0x5a1cef['shift']());}catch(_0x3574a1){_0x5a1cef['push'](_0x5a1cef['shift']());}}}(a143_0x17a3,0x5b353));function a143_0x14dd(_0x3468cd,_0x2db795){_0x3468cd=_0x3468cd-0x101;const _0x17a3ac=a143_0x17a3();let _0x14ddb5=_0x17a3ac[_0x3468cd];return _0x14ddb5;}import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a143_0x41d9af(0x125),'en-US'];export const pageCreate={'service':a143_0x41d9af(0x12b),'command':'create','description':a143_0x41d9af(0x11f),'risk':'write','defaultOutputFormat':a143_0x41d9af(0x123),'structuredErrors':!![],'rejectedFlags':[{'name':a143_0x41d9af(0x126),'message':a143_0x41d9af(0x108),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':'name','type':a143_0x41d9af(0x114),'description':a143_0x41d9af(0x10b)},{'name':a143_0x41d9af(0x11c),'type':a143_0x41d9af(0x10e),'description':a143_0x41d9af(0x102)},{'name':a143_0x41d9af(0x11a),'type':a143_0x41d9af(0x114),'description':'Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','enum':['BLANK']},{'name':a143_0x41d9af(0x10a),'type':a143_0x41d9af(0x114),'description':a143_0x41d9af(0x110)},APPCODE_FLAG],async 'validate'(_0x4fb791){const _0x9efbac=a143_0x41d9af,_0x5063a1=readPagePattern(_0x4fb791);await validateCustomPageContent(readInput(_0x4fb791,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5063a1)[_0x9efbac(0x137)]);},async 'dryRun'(_0x5994f4){const _0x6f76e9=a143_0x41d9af,{input:_0x3d1dc1}=await prepare(_0x5994f4);return{'method':_0x6f76e9(0x130),'url':'/smartapi/webcode/page/create','body':{'appCode':_0x3d1dc1['appCode'],'pageName':_0x3d1dc1[_0x6f76e9(0x113)],..._0x3d1dc1[_0x6f76e9(0x129)]!=null?{'parentMenuId':_0x3d1dc1[_0x6f76e9(0x129)]}:{},'createMenu':_0x3d1dc1['createMenu'],'codeContent':_0x3d1dc1[_0x6f76e9(0x137)]},'description':_0x6f76e9(0x11d)+JSON[_0x6f76e9(0x104)](_0x3d1dc1[_0x6f76e9(0x113)])+_0x6f76e9(0x103)};},async 'execute'(_0x4aeae4){const _0x45616d=a143_0x41d9af,_0x58d422=await prepare(_0x4aeae4),_0x5816d2=await createCustomPage(_0x58d422[_0x45616d(0x11e)]);if(!Number[_0x45616d(0x121)](_0x5816d2[_0x45616d(0x131)])||_0x5816d2[_0x45616d(0x131)]<=0x0)throw CliErrors[_0x45616d(0x119)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');return{'ok':!![],'data':buildMutationData(_0x58d422,_0x5816d2),'message':_0x45616d(0x10d)+_0x5816d2['pageId']+'.'};}};async function prepare(_0x3f19a4){const _0x90674c=a143_0x41d9af,_0x1f6ae8=readPagePattern(_0x3f19a4);if(_0x1f6ae8===null)return{'input':readInput(_0x3f19a4,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1f6ae8),'warnings':[],'pagePattern':_0x1f6ae8};let _0x593da4=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x51e623=[];try{const _0x315261=await getI18nInfo(_0x3f19a4['appCode']);_0x315261['enableI18n']&&_0x315261[_0x90674c(0x12f)]?.['length']&&(_0x593da4=_0x315261[_0x90674c(0x12f)]);}catch{_0x51e623=[_0x90674c(0x118)];}return{'input':readInput(_0x3f19a4,_0x593da4,_0x1f6ae8),'warnings':_0x51e623,'pagePattern':_0x1f6ae8};}function readPagePattern(_0x4d7b7c){const _0x1c683d=a143_0x41d9af,_0x49b175=_0x4d7b7c[_0x1c683d(0x128)](_0x1c683d(0x11a))['trim'](),_0x2e34d1=_0x4d7b7c[_0x1c683d(0x128)](_0x1c683d(0x10a))[_0x1c683d(0x107)]()[_0x1c683d(0x105)]>0x0;if(_0x49b175&&_0x2e34d1)throw CliErrors[_0x1c683d(0x12e)](_0x1c683d(0x136));if(_0x2e34d1)return null;if(!_0x49b175)throw CliErrors['validation'](_0x1c683d(0x12c));if(_0x49b175!==_0x1c683d(0x106))throw CliErrors[_0x1c683d(0x12e)]('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x49b175;}function readInput(_0x56506e,_0x513cbd=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x24dd19=readPagePattern(_0x56506e)){const _0x4dd3db=a143_0x41d9af,_0x3c6af8=_0x56506e[_0x4dd3db(0x128)](_0x4dd3db(0x11b))[_0x4dd3db(0x107)]()||_0x4dd3db(0x120)+Date[_0x4dd3db(0x134)]();if(_0x3c6af8['length']>0x64)throw CliErrors[_0x4dd3db(0x12e)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x39c781=_0x56506e['num'](_0x4dd3db(0x11c),NaN),_0x1bca74=!Number[_0x4dd3db(0x10f)](_0x39c781);if(_0x1bca74&&(!Number[_0x4dd3db(0x121)](_0x39c781)||_0x39c781<=0x0))throw CliErrors[_0x4dd3db(0x12e)](_0x4dd3db(0x116));return{'appCode':_0x56506e[_0x4dd3db(0x111)],'pageName':_0x3c6af8,..._0x1bca74?{'parentMenuId':_0x39c781}:{},'createMenu':!![],'files':_0x24dd19===null?parseCustomPageContent(_0x56506e[_0x4dd3db(0x128)](_0x4dd3db(0x10a))):buildInitialFiles(_0x3c6af8,_0x513cbd)};}function buildMutationData(_0x483eb1,_0x2c6d4b){const _0x5e5643=a143_0x41d9af,{input:_0x314210}=_0x483eb1,_0x3567e0=_0x2c6d4b&&buildCustomPageDevelopmentUrl(_0x314210['appCode'],_0x2c6d4b[_0x5e5643(0x109)]),_0xd4df0b=_0x2c6d4b&&buildCustomPageEditUrl(_0x314210[_0x5e5643(0x111)],_0x2c6d4b['pageId']);return{'operation':_0x5e5643(0x132),'pageType':_0x5e5643(0x139),'pagePattern':_0x483eb1[_0x5e5643(0x12d)],'selector':{'appCode':_0x314210[_0x5e5643(0x111)],'pageName':_0x314210[_0x5e5643(0x113)]},'before':null,'after':{'pageId':_0x2c6d4b?.['pageId']??null,'pageName':_0x2c6d4b?.[_0x5e5643(0x113)]??_0x314210['pageName'],'appCode':_0x2c6d4b?.['appCode']??_0x314210[_0x5e5643(0x111)],'version':_0x2c6d4b?.[_0x5e5643(0x112)]??null,'menuId':_0x2c6d4b?.[_0x5e5643(0x124)]??null,'menuPath':_0x2c6d4b?.[_0x5e5643(0x109)]??null,'files':_0x2c6d4b?.[_0x5e5643(0x137)]??Object[_0x5e5643(0x122)](_0x314210[_0x5e5643(0x137)])},'dryRun':_0x2c6d4b===undefined,'request':_0x314210,..._0x3567e0?{'pageUrl':_0x3567e0}:{},..._0xd4df0b?{'editPageUrl':_0xd4df0b}:{},'warnings':[..._0x483eb1[_0x5e5643(0x135)],..._0x2c6d4b&&!_0x3567e0?['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']:[]]};}
1
+ const a148_0xcd25ed=a148_0xf028;(function(_0x5b31cd,_0x5b21a1){const _0x23ac63=a148_0xf028,_0x3a629e=_0x5b31cd();while(!![]){try{const _0x1af4d1=-parseInt(_0x23ac63(0x120))/0x1+-parseInt(_0x23ac63(0x11f))/0x2*(-parseInt(_0x23ac63(0xf0))/0x3)+parseInt(_0x23ac63(0xf7))/0x4*(-parseInt(_0x23ac63(0x112))/0x5)+parseInt(_0x23ac63(0xee))/0x6+parseInt(_0x23ac63(0x114))/0x7+parseInt(_0x23ac63(0x10e))/0x8*(-parseInt(_0x23ac63(0x10b))/0x9)+parseInt(_0x23ac63(0x111))/0xa;if(_0x1af4d1===_0x5b21a1)break;else _0x3a629e['push'](_0x3a629e['shift']());}catch(_0x571c17){_0x3a629e['push'](_0x3a629e['shift']());}}}(a148_0x5a4f,0xda50d));function a148_0x5a4f(){const _0x2bb233=['create','parent-menu-id','langs','en-US','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','1214uWbVjd','502804rWGyMc','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','\x20and\x20its\x20menu\x20entry.','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','menuPath','version','warnings','createMenu','page-type','appCode','521574MiSWZh','page-pattern','3561HKLLCA','Custom_page_','name','page\x20create\x20does\x20not\x20accept\x20--page-type.','validation','keys','Would\x20create\x20Custom\x20Page\x20','4084kjdjbS','isInteger','length','pageName','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','CUSTOM','apiError','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','compress','zh-CN','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','str','page','pagePattern','string','/smartapi/webcode/page/create','pageName\x20cannot\x20exceed\x20100\x20characters.','parentMenuId','files','page-content','156654VfhwAp','pageId','input','352qotzAp','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','14843280rWqeoU','5675BgdJaV','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','7209706NyXgCt','page.create','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','POST','trim','now'];a148_0x5a4f=function(){return _0x2bb233;};return a148_0x5a4f();}import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a148_0xf028(_0x5de4f3,_0x144935){_0x5de4f3=_0x5de4f3-0xe6;const _0x5a4fb8=a148_0x5a4f();let _0xf02834=_0x5a4fb8[_0x5de4f3];return _0xf02834;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a148_0xcd25ed(0x100),a148_0xcd25ed(0x11d)];export const pageCreate={'service':a148_0xcd25ed(0x103),'command':a148_0xcd25ed(0x11a),'description':a148_0xcd25ed(0x113),'risk':'write','defaultOutputFormat':a148_0xcd25ed(0xff),'structuredErrors':!![],'rejectedFlags':[{'name':a148_0xcd25ed(0xec),'message':a148_0xcd25ed(0xf3),'hint':a148_0xcd25ed(0xfe)}],'flags':[{'name':'name','type':'string','description':a148_0xcd25ed(0xe7)},{'name':a148_0xcd25ed(0x11b),'type':'number','description':a148_0xcd25ed(0x10f)},{'name':a148_0xcd25ed(0xef),'type':'string','description':a148_0xcd25ed(0x121),'enum':['BLANK']},{'name':a148_0xcd25ed(0x10a),'type':a148_0xcd25ed(0x105),'description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x34f86a){const _0x1ef331=a148_0xcd25ed,_0x381658=readPagePattern(_0x34f86a);await validateCustomPageContent(readInput(_0x34f86a,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x381658)[_0x1ef331(0x109)]);},async 'dryRun'(_0x5b49e7){const _0x2e22db=a148_0xcd25ed,{input:_0x3fb24f}=await prepare(_0x5b49e7);return{'method':_0x2e22db(0x117),'url':_0x2e22db(0x106),'body':{'appCode':_0x3fb24f[_0x2e22db(0xed)],'pageName':_0x3fb24f['pageName'],..._0x3fb24f[_0x2e22db(0x108)]!=null?{'parentMenuId':_0x3fb24f[_0x2e22db(0x108)]}:{},'createMenu':_0x3fb24f[_0x2e22db(0xeb)],'codeContent':_0x3fb24f[_0x2e22db(0x109)]},'description':_0x2e22db(0xf6)+JSON['stringify'](_0x3fb24f['pageName'])+_0x2e22db(0x122)};},async 'execute'(_0x435c20){const _0x39829d=a148_0xcd25ed,_0x81ca7d=await prepare(_0x435c20),_0x2ee3d5=await createCustomPage(_0x81ca7d[_0x39829d(0x10d)]);if(!Number['isInteger'](_0x2ee3d5[_0x39829d(0x10c)])||_0x2ee3d5['pageId']<=0x0)throw CliErrors[_0x39829d(0xfd)](_0x39829d(0x116));return{'ok':!![],'data':buildMutationData(_0x81ca7d,_0x2ee3d5),'message':'Created\x20Custom\x20Page\x20'+_0x2ee3d5['pageId']+'.'};}};async function prepare(_0x15fbf0){const _0x554d33=a148_0xcd25ed,_0x5e758e=readPagePattern(_0x15fbf0);if(_0x5e758e===null)return{'input':readInput(_0x15fbf0,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5e758e),'warnings':[],'pagePattern':_0x5e758e};let _0x10501e=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x24e712=[];try{const _0x1a6579=await getI18nInfo(_0x15fbf0[_0x554d33(0xed)]);_0x1a6579['enableI18n']&&_0x1a6579['langs']?.[_0x554d33(0xf9)]&&(_0x10501e=_0x1a6579[_0x554d33(0x11c)]);}catch{_0x24e712=[_0x554d33(0x101)];}return{'input':readInput(_0x15fbf0,_0x10501e,_0x5e758e),'warnings':_0x24e712,'pagePattern':_0x5e758e};}function readPagePattern(_0x3e7ef0){const _0x372ec1=a148_0xcd25ed,_0x414630=_0x3e7ef0[_0x372ec1(0x102)]('page-pattern')[_0x372ec1(0x118)](),_0x56755d=_0x3e7ef0[_0x372ec1(0x102)](_0x372ec1(0x10a))[_0x372ec1(0x118)]()[_0x372ec1(0xf9)]>0x0;if(_0x414630&&_0x56755d)throw CliErrors[_0x372ec1(0xf4)]('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x56755d)return null;if(!_0x414630)throw CliErrors[_0x372ec1(0xf4)](_0x372ec1(0xe6));if(_0x414630!=='BLANK')throw CliErrors['validation'](_0x372ec1(0xfb));return _0x414630;}function readInput(_0xb7d7e4,_0x54e0db=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5b6182=readPagePattern(_0xb7d7e4)){const _0x414dfb=a148_0xcd25ed,_0x24684f=_0xb7d7e4[_0x414dfb(0x102)](_0x414dfb(0xf2))[_0x414dfb(0x118)]()||_0x414dfb(0xf1)+Date[_0x414dfb(0x119)]();if(_0x24684f['length']>0x64)throw CliErrors[_0x414dfb(0xf4)](_0x414dfb(0x107));const _0x2cb80f=_0xb7d7e4['num'](_0x414dfb(0x11b),NaN),_0x5bbdd5=!Number['isNaN'](_0x2cb80f);if(_0x5bbdd5&&(!Number[_0x414dfb(0xf8)](_0x2cb80f)||_0x2cb80f<=0x0))throw CliErrors[_0x414dfb(0xf4)](_0x414dfb(0x110));return{'appCode':_0xb7d7e4['appCode'],'pageName':_0x24684f,..._0x5bbdd5?{'parentMenuId':_0x2cb80f}:{},'createMenu':!![],'files':_0x5b6182===null?parseCustomPageContent(_0xb7d7e4['str']('page-content')):buildInitialFiles(_0x24684f,_0x54e0db)};}function buildMutationData(_0x2d18a2,_0x4c02f0){const _0x47786f=a148_0xcd25ed,{input:_0x20b1f3}=_0x2d18a2,_0x450892=_0x4c02f0&&buildCustomPageDevelopmentUrl(_0x20b1f3['appCode'],_0x4c02f0[_0x47786f(0xe8)]),_0x50f4d1=_0x4c02f0&&buildCustomPageEditUrl(_0x20b1f3[_0x47786f(0xed)],_0x4c02f0['pageId']);return{'operation':_0x47786f(0x115),'pageType':_0x47786f(0xfc),'pagePattern':_0x2d18a2[_0x47786f(0x104)],'selector':{'appCode':_0x20b1f3[_0x47786f(0xed)],'pageName':_0x20b1f3[_0x47786f(0xfa)]},'before':null,'after':{'pageId':_0x4c02f0?.[_0x47786f(0x10c)]??null,'pageName':_0x4c02f0?.['pageName']??_0x20b1f3[_0x47786f(0xfa)],'appCode':_0x4c02f0?.[_0x47786f(0xed)]??_0x20b1f3[_0x47786f(0xed)],'version':_0x4c02f0?.[_0x47786f(0xe9)]??null,'menuId':_0x4c02f0?.['menuId']??null,'menuPath':_0x4c02f0?.[_0x47786f(0xe8)]??null,'files':_0x4c02f0?.[_0x47786f(0x109)]??Object[_0x47786f(0xf5)](_0x20b1f3[_0x47786f(0x109)])},'dryRun':_0x4c02f0===undefined,'request':_0x20b1f3,..._0x450892?{'pageUrl':_0x450892}:{},..._0x50f4d1?{'editPageUrl':_0x50f4d1}:{},'warnings':[..._0x2d18a2[_0x47786f(0xea)],..._0x4c02f0&&!_0x450892?[_0x47786f(0x11e)]:[]]};}
@@ -1 +1 @@
1
- const a144_0x3bc9b1=a144_0x8d08;(function(_0x157a18,_0x448cde){const _0x299d16=a144_0x8d08,_0x587c33=_0x157a18();while(!![]){try{const _0x1d654e=-parseInt(_0x299d16(0x10e))/0x1*(-parseInt(_0x299d16(0xf7))/0x2)+parseInt(_0x299d16(0x110))/0x3+-parseInt(_0x299d16(0xfb))/0x4*(parseInt(_0x299d16(0xfc))/0x5)+-parseInt(_0x299d16(0xf9))/0x6*(-parseInt(_0x299d16(0xfa))/0x7)+parseInt(_0x299d16(0x109))/0x8*(parseInt(_0x299d16(0x10a))/0x9)+-parseInt(_0x299d16(0x10c))/0xa+parseInt(_0x299d16(0x106))/0xb*(-parseInt(_0x299d16(0x100))/0xc);if(_0x1d654e===_0x448cde)break;else _0x587c33['push'](_0x587c33['shift']());}catch(_0x444697){_0x587c33['push'](_0x587c33['shift']());}}}(a144_0x3edf,0x88f06));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';function a144_0x8d08(_0x240e5b,_0x54e600){_0x240e5b=_0x240e5b-0xf7;const _0x3edf01=a144_0x3edf();let _0x8d08c1=_0x3edf01[_0x240e5b];return _0x8d08c1;}function a144_0x3edf(){const _0x5d6280=['2264748JKPchR','getHours','getFullYear','page','getSeconds','isNaN','55Canbpl','appcode','getMinutes','120fIfDOf','612306GmCCZV','pageCode','4006130Fwgbjv','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','374300JSLZjS','join','2762910ItBcZh','trim','getTime','Retrieved\x20Custom\x20Page\x20','getMonth','2ZdMiMz','number','2672430bmMlAB','7nRCdLS','388MTRozc','44125uzEFRu','appCode','str','padStart'];a144_0x3edf=function(){return _0x5d6280;};return a144_0x3edf();}export const pageCustomDetail={'service':a144_0x3bc9b1(0x103),'command':'custom-detail','description':a144_0x3bc9b1(0x10d),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x3bc9b1(0xf8),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fa9db){readCustomPageId(_0x2fa9db);},async 'execute'(_0x1a8273){const _0xe3e472=a144_0x3bc9b1,_0x2184a8=readCustomPageId(_0x1a8273),_0x1d092b=await getCustomPageSource(_0x2184a8),{bundle:_0x181eff,createTime:_0x2a14fa,updateTime:_0x246f29,..._0x2ac19f}=_0x1d092b,_0x1a902e=_0x1d092b['id']??_0x2184a8,_0x260335=_0x1d092b[_0xe3e472(0xfd)]?.[_0xe3e472(0x111)]()||_0x1a8273[_0xe3e472(0xfe)](_0xe3e472(0x107))['trim'](),_0x4e2b26=buildCustomPageRuntimeUrl(_0x260335,_0x1d092b[_0xe3e472(0x10b)]),_0x3dea8e=buildCustomPageEditUrl(_0x260335,_0x1a902e),_0x8088a6=await resolveCustomPageDevelopmentUrl(_0x260335,_0x1a902e,_0x1a8273['cookie']);return{'ok':!![],'data':{..._0x2ac19f,..._0x4e2b26?{'runtimePageUrl':_0x4e2b26}:{},..._0x8088a6?{'pageUrl':_0x8088a6}:{},..._0x3dea8e?{'editPageUrl':_0x3dea8e}:{},..._0x2a14fa==null?{}:{'createTime':formatTime(_0x2a14fa)},..._0x246f29==null?{}:{'updateTime':formatTime(_0x246f29)}},'message':_0xe3e472(0x113)+_0x2184a8+'.'};}};function formatTime(_0x5b341c){const _0x4eb34d=a144_0x3bc9b1,_0x2293bd=new Date(_0x5b341c);if(Number[_0x4eb34d(0x105)](_0x2293bd[_0x4eb34d(0x112)]()))return String(_0x5b341c);const _0x126be2=[_0x2293bd[_0x4eb34d(0x102)](),String(_0x2293bd[_0x4eb34d(0x114)]()+0x1)[_0x4eb34d(0xff)](0x2,'0'),String(_0x2293bd['getDate']())[_0x4eb34d(0xff)](0x2,'0')]['join']('-'),_0x34044e=[String(_0x2293bd[_0x4eb34d(0x101)]())['padStart'](0x2,'0'),String(_0x2293bd[_0x4eb34d(0x108)]())[_0x4eb34d(0xff)](0x2,'0'),String(_0x2293bd[_0x4eb34d(0x104)]())[_0x4eb34d(0xff)](0x2,'0')][_0x4eb34d(0x10f)](':');return _0x126be2+'\x20'+_0x34044e;}
1
+ const a149_0x547bb0=a149_0x6d8e;(function(_0x3b8ebe,_0x4d1603){const _0x10baff=a149_0x6d8e,_0x3cc49a=_0x3b8ebe();while(!![]){try{const _0x4bb767=-parseInt(_0x10baff(0x115))/0x1+parseInt(_0x10baff(0x111))/0x2+-parseInt(_0x10baff(0x11c))/0x3*(-parseInt(_0x10baff(0x116))/0x4)+parseInt(_0x10baff(0x10e))/0x5*(parseInt(_0x10baff(0x121))/0x6)+-parseInt(_0x10baff(0x11e))/0x7*(parseInt(_0x10baff(0x118))/0x8)+-parseInt(_0x10baff(0x10b))/0x9*(-parseInt(_0x10baff(0x10c))/0xa)+-parseInt(_0x10baff(0x120))/0xb;if(_0x4bb767===_0x4d1603)break;else _0x3cc49a['push'](_0x3cc49a['shift']());}catch(_0x5100ce){_0x3cc49a['push'](_0x3cc49a['shift']());}}}(a149_0x3444,0x2b5b4));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a149_0x547bb0(0x11b),'command':a149_0x547bb0(0x112),'description':a149_0x547bb0(0x11d),'risk':'read','defaultOutputFormat':a149_0x547bb0(0x110),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x547bb0(0x123),'required':!![],'description':a149_0x547bb0(0x113)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x8d3978){readCustomPageId(_0x8d3978);},async 'execute'(_0x23fbbc){const _0x242b5a=a149_0x547bb0,_0x3edf03=readCustomPageId(_0x23fbbc),_0x727bc7=await getCustomPageSource(_0x3edf03),{bundle:_0x8d5b3c,createTime:_0x2885b3,updateTime:_0x55b9b7,..._0x1ba50d}=_0x727bc7,_0x22e1e7=_0x727bc7['id']??_0x3edf03,_0x531656=_0x727bc7[_0x242b5a(0x11a)]?.['trim']()||_0x23fbbc['str']('appcode')['trim'](),_0x3d3140=buildCustomPageRuntimeUrl(_0x531656,_0x727bc7[_0x242b5a(0x119)]),_0x47b5a2=buildCustomPageEditUrl(_0x531656,_0x22e1e7),_0x333cba=await resolveCustomPageDevelopmentUrl(_0x531656,_0x22e1e7,_0x23fbbc[_0x242b5a(0x114)]);return{'ok':!![],'data':{..._0x1ba50d,..._0x3d3140?{'runtimePageUrl':_0x3d3140}:{},..._0x333cba?{'pageUrl':_0x333cba}:{},..._0x47b5a2?{'editPageUrl':_0x47b5a2}:{},..._0x2885b3==null?{}:{'createTime':formatTime(_0x2885b3)},..._0x55b9b7==null?{}:{'updateTime':formatTime(_0x55b9b7)}},'message':_0x242b5a(0x127)+_0x3edf03+'.'};}};function a149_0x6d8e(_0xc288b0,_0x2cd7b7){_0xc288b0=_0xc288b0-0x10b;const _0x344477=a149_0x3444();let _0x6d8e6a=_0x344477[_0xc288b0];return _0x6d8e6a;}function a149_0x3444(){const _0x4e6e96=['3ILxYqi','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','959PWVCaB','getHours','3583789SwlOjK','764538UpsGnH','padStart','number','join','getTime','getMonth','Retrieved\x20Custom\x20Page\x20','9EeyeIY','374830HieLwh','getSeconds','10rxJOSn','getDate','compress','537346gjGnBO','custom-detail','Custom\x20Page\x20ID','cookie','69730hSLlRk','243548WVumsI','getFullYear','2848mRkKGf','pageCode','appCode','page'];a149_0x3444=function(){return _0x4e6e96;};return a149_0x3444();}function formatTime(_0x1cb253){const _0x498084=a149_0x547bb0,_0x116849=new Date(_0x1cb253);if(Number['isNaN'](_0x116849[_0x498084(0x125)]()))return String(_0x1cb253);const _0x4689ea=[_0x116849[_0x498084(0x117)](),String(_0x116849[_0x498084(0x126)]()+0x1)[_0x498084(0x122)](0x2,'0'),String(_0x116849[_0x498084(0x10f)]())['padStart'](0x2,'0')][_0x498084(0x124)]('-'),_0x24a1d8=[String(_0x116849[_0x498084(0x11f)]())[_0x498084(0x122)](0x2,'0'),String(_0x116849['getMinutes']())[_0x498084(0x122)](0x2,'0'),String(_0x116849[_0x498084(0x10d)]())[_0x498084(0x122)](0x2,'0')]['join'](':');return _0x4689ea+'\x20'+_0x24a1d8;}
@@ -1 +1 @@
1
- const a145_0x2bc05a=a145_0xbd0d;(function(_0xf30e17,_0x16d4ad){const _0x5a6a74=a145_0xbd0d,_0x11b83c=_0xf30e17();while(!![]){try{const _0x253593=-parseInt(_0x5a6a74(0x112))/0x1*(parseInt(_0x5a6a74(0xfc))/0x2)+-parseInt(_0x5a6a74(0x115))/0x3+-parseInt(_0x5a6a74(0x10b))/0x4+parseInt(_0x5a6a74(0x10d))/0x5*(parseInt(_0x5a6a74(0x106))/0x6)+parseInt(_0x5a6a74(0x107))/0x7*(-parseInt(_0x5a6a74(0x108))/0x8)+parseInt(_0x5a6a74(0x113))/0x9*(parseInt(_0x5a6a74(0xfd))/0xa)+-parseInt(_0x5a6a74(0xff))/0xb*(-parseInt(_0x5a6a74(0x109))/0xc);if(_0x253593===_0x16d4ad)break;else _0x11b83c['push'](_0x11b83c['shift']());}catch(_0x26bd4d){_0x11b83c['push'](_0x11b83c['shift']());}}}(a145_0x12c2,0x7cf9a));function a145_0x12c2(){const _0x425f5d=['2456855cusVmn','path','label','pageId','Found\x20','2407gaaBlp','9DCuaUy','type','947715hpnksP','294DlhLlb','2434270WPnpsa','No\x20Custom\x20Pages\x20found.','6512OUPJpq','menus','length','cookie','compress','appCode','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','12ZanpcX','70mtwHrx','65368GrSGHr','10668lBgTJn','custom-list','1956460yiJoYM','flatMap'];a145_0x12c2=function(){return _0x425f5d;};return a145_0x12c2();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a145_0xbd0d(_0x1b8a4f,_0x13958e){_0x1b8a4f=_0x1b8a4f-0xfc;const _0x12c25a=a145_0x12c2();let _0xbd0d67=_0x12c25a[_0x1b8a4f];return _0xbd0d67;}export const pageCustomList={'service':'page','command':a145_0x2bc05a(0x10a),'description':a145_0x2bc05a(0x105),'risk':'read','defaultOutputFormat':a145_0x2bc05a(0x103),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x33dbb6){const _0x4ab214=a145_0x2bc05a,_0x98a021=(await fetchMenuSnapshot(_0x33dbb6['appCode'],_0x33dbb6[_0x4ab214(0x102)]))[_0x4ab214(0x100)][_0x4ab214(0x10c)](_0x4d3b8b=>{const _0x3bdfe8=_0x4ab214;if(_0x4d3b8b[_0x3bdfe8(0x114)]!=='react'||_0x4d3b8b[_0x3bdfe8(0x110)]==null)return[];const _0x136585=buildCustomPageDevelopmentUrl(_0x33dbb6[_0x3bdfe8(0x104)],_0x4d3b8b[_0x3bdfe8(0x10e)]),_0x421ea0=buildCustomPageEditUrl(_0x33dbb6[_0x3bdfe8(0x104)],_0x4d3b8b['pageId']);return[{'pageId':_0x4d3b8b[_0x3bdfe8(0x110)],'label':_0x4d3b8b[_0x3bdfe8(0x10f)],..._0x136585?{'pageUrl':_0x136585}:{},..._0x421ea0?{'editPageUrl':_0x421ea0}:{}}];});return{'ok':!![],'data':{'pages':_0x98a021},'message':_0x98a021[_0x4ab214(0x101)]===0x0?_0x4ab214(0xfe):_0x4ab214(0x111)+_0x98a021[_0x4ab214(0x101)]+'\x20Custom\x20Page(s).'};}};
1
+ const a150_0x244b2b=a150_0x3801;(function(_0x1a0075,_0x28f611){const _0x2a7f7f=a150_0x3801,_0x3c0314=_0x1a0075();while(!![]){try{const _0x334a85=-parseInt(_0x2a7f7f(0x1ce))/0x1+-parseInt(_0x2a7f7f(0x1d9))/0x2*(parseInt(_0x2a7f7f(0x1e4))/0x3)+-parseInt(_0x2a7f7f(0x1db))/0x4+-parseInt(_0x2a7f7f(0x1e5))/0x5*(-parseInt(_0x2a7f7f(0x1cf))/0x6)+-parseInt(_0x2a7f7f(0x1dd))/0x7+-parseInt(_0x2a7f7f(0x1cd))/0x8+-parseInt(_0x2a7f7f(0x1d3))/0x9*(-parseInt(_0x2a7f7f(0x1d5))/0xa);if(_0x334a85===_0x28f611)break;else _0x3c0314['push'](_0x3c0314['shift']());}catch(_0x3f416f){_0x3c0314['push'](_0x3c0314['shift']());}}}(a150_0x1a2a,0x6bd17));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a150_0x244b2b(0x1cb),'command':a150_0x244b2b(0x1df),'description':a150_0x244b2b(0x1e1),'risk':a150_0x244b2b(0x1d7),'defaultOutputFormat':a150_0x244b2b(0x1d2),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1afdc6){const _0x5afdd2=a150_0x244b2b,_0x30bb1c=(await fetchMenuSnapshot(_0x1afdc6[_0x5afdd2(0x1d4)],_0x1afdc6[_0x5afdd2(0x1d1)]))[_0x5afdd2(0x1de)][_0x5afdd2(0x1dc)](_0x33c217=>{const _0x412e9e=_0x5afdd2;if(_0x33c217[_0x412e9e(0x1da)]!==_0x412e9e(0x1e0)||_0x33c217[_0x412e9e(0x1cc)]==null)return[];const _0x5a7d1e=buildCustomPageDevelopmentUrl(_0x1afdc6[_0x412e9e(0x1d4)],_0x33c217[_0x412e9e(0x1d6)]),_0x5a16b4=buildCustomPageEditUrl(_0x1afdc6['appCode'],_0x33c217[_0x412e9e(0x1cc)]);return[{'pageId':_0x33c217[_0x412e9e(0x1cc)],'label':_0x33c217['label'],..._0x5a7d1e?{'pageUrl':_0x5a7d1e}:{},..._0x5a16b4?{'editPageUrl':_0x5a16b4}:{}}];});return{'ok':!![],'data':{'pages':_0x30bb1c},'message':_0x30bb1c[_0x5afdd2(0x1e2)]===0x0?_0x5afdd2(0x1d0):_0x5afdd2(0x1d8)+_0x30bb1c[_0x5afdd2(0x1e2)]+_0x5afdd2(0x1e3)};}};function a150_0x3801(_0x3b15f5,_0xa19063){_0x3b15f5=_0x3b15f5-0x1cb;const _0x1a2aa8=a150_0x1a2a();let _0x38011d=_0x1a2aa8[_0x3b15f5];return _0x38011d;}function a150_0x1a2a(){const _0x4fbd32=['6RejAed','No\x20Custom\x20Pages\x20found.','cookie','compress','11232jWRHRx','appCode','23150dAbMvc','path','read','Found\x20','1695142DsxwZP','type','415756lRmujV','flatMap','1235325RgGSQo','menus','custom-list','react','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','length','\x20Custom\x20Page(s).','3tboqiy','148795kpdapa','page','pageId','6001408JSoIFh','599095OlVESk'];a150_0x1a2a=function(){return _0x4fbd32;};return a150_0x1a2a();}
@@ -1 +1 @@
1
- const a146_0x47922d=a146_0x599b;(function(_0x14724d,_0xca7170){const _0x4f6e1c=a146_0x599b,_0x1d0561=_0x14724d();while(!![]){try{const _0x4ce749=-parseInt(_0x4f6e1c(0xc3))/0x1*(parseInt(_0x4f6e1c(0xbc))/0x2)+-parseInt(_0x4f6e1c(0xba))/0x3*(-parseInt(_0x4f6e1c(0xbf))/0x4)+parseInt(_0x4f6e1c(0xb4))/0x5*(-parseInt(_0x4f6e1c(0xb5))/0x6)+parseInt(_0x4f6e1c(0xdb))/0x7+parseInt(_0x4f6e1c(0xd6))/0x8*(parseInt(_0x4f6e1c(0xca))/0x9)+-parseInt(_0x4f6e1c(0xbb))/0xa*(-parseInt(_0x4f6e1c(0xd4))/0xb)+-parseInt(_0x4f6e1c(0xd3))/0xc;if(_0x4ce749===_0xca7170)break;else _0x1d0561['push'](_0x1d0561['shift']());}catch(_0x14fbec){_0x1d0561['push'](_0x1d0561['shift']());}}}(a146_0x1477,0x3dc45));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a146_0x599b(_0x468c84,_0x59b319){_0x468c84=_0x468c84-0xb3;const _0x147727=a146_0x1477();let _0x599b36=_0x147727[_0x468c84];return _0x599b36;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a146_0x47922d(0xb6),'command':a146_0x47922d(0xc6),'description':a146_0x47922d(0xb7),'risk':a146_0x47922d(0xcb),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a146_0x47922d(0xcd),'required':!![],'description':a146_0x47922d(0xc1)},{'name':a146_0x47922d(0xbd),'type':a146_0x47922d(0xc9),'description':a146_0x47922d(0xcf)}],async 'validate'(_0x4289d2){readCustomPageId(_0x4289d2);},async 'dryRun'(_0x789891){const _0x4a7aad=a146_0x47922d,_0x37dc2b=readInput(_0x789891);return{'method':_0x4a7aad(0xd9),'url':_0x4a7aad(0xd2),'body':{'id':_0x37dc2b[_0x4a7aad(0xb9)],..._0x37dc2b[_0x4a7aad(0xbd)]?{'remark':_0x37dc2b['remark']}:{}},'description':_0x4a7aad(0xc4)+_0x37dc2b[_0x4a7aad(0xb9)]+'.'};},async 'execute'(_0x30d545){const _0x15066b=a146_0x47922d,_0x8a1766=readInput(_0x30d545);await getCustomPageSource(_0x8a1766[_0x15066b(0xb9)]);const _0xee2342=await publishCustomPage(_0x8a1766);if(!Number['isInteger'](_0xee2342)||_0xee2342!==_0x8a1766[_0x15066b(0xb9)])throw CliErrors[_0x15066b(0xce)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x2902ef=await getCustomPageSource(_0x8a1766[_0x15066b(0xb9)]);if(_0x2902ef[_0x15066b(0xd1)]!==_0x15066b(0xc0))throw CliErrors[_0x15066b(0xce)](_0x15066b(0xc8)+(_0x2902ef[_0x15066b(0xd1)]??_0x15066b(0xd8))+'.');const _0xda40a9=_0x2902ef[_0x15066b(0xd7)]?.[_0x15066b(0xb8)](),_0x58b37e=buildCustomPageEditUrl(_0xda40a9,_0x8a1766['pageId']),_0x248065=await resolveCustomPageDevelopmentUrl(_0xda40a9,_0x8a1766[_0x15066b(0xb9)],_0x30d545[_0x15066b(0xc2)]),_0x49bf35=buildMutationData(_0x8a1766,!![],_0x248065,_0x58b37e);_0xda40a9&&!_0x248065&&_0x49bf35[_0x15066b(0xd0)][_0x15066b(0xda)](_0x15066b(0xb3));const _0x499ac1=buildCustomPageRuntimeUrl(_0x2902ef[_0x15066b(0xd7)],_0x2902ef[_0x15066b(0xbe)]);return _0x499ac1?_0x49bf35[_0x15066b(0xc5)]=_0x499ac1:_0x49bf35[_0x15066b(0xd0)]['push'](_0x15066b(0xcc)),{'ok':!![],'data':_0x49bf35,'message':'Published\x20Custom\x20Page\x20'+_0x8a1766['pageId']+'.'};}};function readInput(_0x128d59){const _0xc648ef=a146_0x47922d,_0x4ff4cb=readCustomPageId(_0x128d59),_0x4e9bc3=_0x128d59[_0xc648ef(0xd5)](_0xc648ef(0xbd))[_0xc648ef(0xb8)]();return{'pageId':_0x4ff4cb,..._0x4e9bc3?{'remark':_0x4e9bc3}:{}};}function buildMutationData(_0x3fab7c,_0x1420a7=![],_0xbd0838,_0x4e1c3d){const _0x1546b7=a146_0x47922d;return{'operation':_0x1546b7(0xc7),'selector':{'pageId':_0x3fab7c[_0x1546b7(0xb9)]},'before':null,'after':{'pageId':_0x3fab7c[_0x1546b7(0xb9)],'status':_0x1546b7(0xc0)},'dryRun':!_0x1420a7,'request':_0x3fab7c,..._0xbd0838?{'pageUrl':_0xbd0838}:{},..._0x4e1c3d?{'editPageUrl':_0x4e1c3d}:{},'warnings':[]};}function a146_0x1477(){const _0x501c4c=['Custom\x20Page\x20ID','cookie','30yCflLy','Would\x20publish\x20Custom\x20Page\x20','runtimePageUrl','custom-publish','page.custom-publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','string','9egeWrU','write','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','number','apiError','Optional\x20publish\x20remark','warnings','status','/smartapi/webcode/file/publish','3698556veNWsw','11ZNGBlz','str','1132408lIZWKg','appCode','unknown','POST','push','2032849XKHOMU','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','2440gWKilA','4320ORvYrH','page','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','trim','pageId','3yxWail','3498130kflmGQ','1294fIldah','remark','pageCode','600836HviefD','FORMAL'];a146_0x1477=function(){return _0x501c4c;};return a146_0x1477();}
1
+ function a151_0x2e22(){const _0x5d5a4c=['415CaYDZg','write','push','page','isInteger','apiError','1259658xPaQxk','warnings','cookie','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','7049320JTiGGH','remark','848207OwWtWV','52098WkEyAd','698504tXdkId','POST','compress','4554660EEMHzj','number','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','custom-publish','986274xSMGnd','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','status','appCode','pageId','page.custom-publish','63ObIhAQ','string','pageCode','str','Custom\x20Page\x20ID','Published\x20Custom\x20Page\x20','trim'];a151_0x2e22=function(){return _0x5d5a4c;};return a151_0x2e22();}const a151_0x41ced7=a151_0x1b9f;(function(_0x10529b,_0x22ee31){const _0x525cf3=a151_0x1b9f,_0x3f0f29=_0x10529b();while(!![]){try{const _0x3a95b9=parseInt(_0x525cf3(0x112))/0x1+parseInt(_0x525cf3(0x11b))/0x2+parseInt(_0x525cf3(0x117))/0x3+-parseInt(_0x525cf3(0x110))/0x4+-parseInt(_0x525cf3(0x106))/0x5*(-parseInt(_0x525cf3(0x113))/0x6)+parseInt(_0x525cf3(0x121))/0x7*(-parseInt(_0x525cf3(0x114))/0x8)+-parseInt(_0x525cf3(0x10c))/0x9;if(_0x3a95b9===_0x22ee31)break;else _0x3f0f29['push'](_0x3f0f29['shift']());}catch(_0x5dcda4){_0x3f0f29['push'](_0x3f0f29['shift']());}}}(a151_0x2e22,0xd9cf0));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a151_0x1b9f(_0x348eb6,_0xb5b386){_0x348eb6=_0x348eb6-0x103;const _0x2e22fa=a151_0x2e22();let _0x1b9f3a=_0x2e22fa[_0x348eb6];return _0x1b9f3a;}export const pageCustomPublish={'service':a151_0x41ced7(0x109),'command':a151_0x41ced7(0x11a),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a151_0x41ced7(0x107),'defaultOutputFormat':a151_0x41ced7(0x116),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a151_0x41ced7(0x118),'required':!![],'description':a151_0x41ced7(0x103)},{'name':a151_0x41ced7(0x111),'type':a151_0x41ced7(0x122),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x4476fc){readCustomPageId(_0x4476fc);},async 'dryRun'(_0x165d33){const _0x4446af=a151_0x41ced7,_0x2e0520=readInput(_0x165d33);return{'method':_0x4446af(0x115),'url':'/smartapi/webcode/file/publish','body':{'id':_0x2e0520[_0x4446af(0x11f)],..._0x2e0520[_0x4446af(0x111)]?{'remark':_0x2e0520['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x2e0520['pageId']+'.'};},async 'execute'(_0x4c33a8){const _0x27e934=a151_0x41ced7,_0x4f8e9a=readInput(_0x4c33a8);await getCustomPageSource(_0x4f8e9a[_0x27e934(0x11f)]);const _0x56d76d=await publishCustomPage(_0x4f8e9a);if(!Number[_0x27e934(0x10a)](_0x56d76d)||_0x56d76d!==_0x4f8e9a[_0x27e934(0x11f)])throw CliErrors['apiError'](_0x27e934(0x119));const _0x2d0067=await getCustomPageSource(_0x4f8e9a[_0x27e934(0x11f)]);if(_0x2d0067[_0x27e934(0x11d)]!=='FORMAL')throw CliErrors[_0x27e934(0x10b)](_0x27e934(0x10f)+(_0x2d0067['status']??'unknown')+'.');const _0x3897ac=_0x2d0067['appCode']?.[_0x27e934(0x105)](),_0x31bbf9=buildCustomPageEditUrl(_0x3897ac,_0x4f8e9a[_0x27e934(0x11f)]),_0x30ec9e=await resolveCustomPageDevelopmentUrl(_0x3897ac,_0x4f8e9a[_0x27e934(0x11f)],_0x4c33a8[_0x27e934(0x10e)]),_0x338a06=buildMutationData(_0x4f8e9a,!![],_0x30ec9e,_0x31bbf9);_0x3897ac&&!_0x30ec9e&&_0x338a06['warnings']['push']('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x10d588=buildCustomPageRuntimeUrl(_0x2d0067[_0x27e934(0x11e)],_0x2d0067[_0x27e934(0x123)]);return _0x10d588?_0x338a06['runtimePageUrl']=_0x10d588:_0x338a06[_0x27e934(0x10d)][_0x27e934(0x108)](_0x27e934(0x11c)),{'ok':!![],'data':_0x338a06,'message':_0x27e934(0x104)+_0x4f8e9a[_0x27e934(0x11f)]+'.'};}};function readInput(_0x11bc6a){const _0x2624d6=a151_0x41ced7,_0x2b53c9=readCustomPageId(_0x11bc6a),_0x382497=_0x11bc6a[_0x2624d6(0x124)](_0x2624d6(0x111))[_0x2624d6(0x105)]();return{'pageId':_0x2b53c9,..._0x382497?{'remark':_0x382497}:{}};}function buildMutationData(_0x453a7c,_0x34480e=![],_0x3a3893,_0x4078de){const _0x3dcda3=a151_0x41ced7;return{'operation':_0x3dcda3(0x120),'selector':{'pageId':_0x453a7c['pageId']},'before':null,'after':{'pageId':_0x453a7c['pageId'],'status':'FORMAL'},'dryRun':!_0x34480e,'request':_0x453a7c,..._0x3a3893?{'pageUrl':_0x3a3893}:{},..._0x4078de?{'editPageUrl':_0x4078de}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a147_0x53f576=a147_0x1c15;(function(_0x2f10ad,_0x3f415c){const _0x1373be=a147_0x1c15,_0x13bb35=_0x2f10ad();while(!![]){try{const _0x544887=parseInt(_0x1373be(0x185))/0x1+parseInt(_0x1373be(0x184))/0x2+-parseInt(_0x1373be(0x172))/0x3+-parseInt(_0x1373be(0x174))/0x4*(-parseInt(_0x1373be(0x170))/0x5)+-parseInt(_0x1373be(0x179))/0x6*(-parseInt(_0x1373be(0x16b))/0x7)+-parseInt(_0x1373be(0x176))/0x8*(-parseInt(_0x1373be(0x183))/0x9)+-parseInt(_0x1373be(0x171))/0xa;if(_0x544887===_0x3f415c)break;else _0x13bb35['push'](_0x13bb35['shift']());}catch(_0x14e9fc){_0x13bb35['push'](_0x13bb35['shift']());}}}(a147_0x5d04,0x35e28));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a147_0x53f576(0x17f)};function trimOptional(_0xf83553){const _0x2fd93e=a147_0x53f576;return _0xf83553?.[_0x2fd93e(0x188)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x2b03f7,_0x4e9ba8){const _0xd1b3c2=trimOptional(_0x2b03f7),_0x48c5a2=trimOptional(_0x4e9ba8);if(!_0xd1b3c2||!_0x48c5a2)return undefined;return getPublishedAppDomain(_0xd1b3c2)+'/'+encodeURIComponent(_0x48c5a2);}function a147_0x1c15(_0x4c42ee,_0x17b378){_0x4c42ee=_0x4c42ee-0x169;const _0x5d0491=a147_0x5d04();let _0x1c15a0=_0x5d0491[_0x4c42ee];return _0x1c15a0;}export function buildCustomPageDevelopmentUrl(_0x5f335c,_0x35b7e8){const _0x13ad9f=a147_0x53f576,_0x409ba8=trimOptional(_0x5f335c),_0x4a28db=trimOptional(_0x35b7e8);if(!_0x409ba8||!_0x4a28db)return undefined;return getAppBaseUrl(_0x409ba8)+_0x13ad9f(0x16a)+encodeURIComponent(_0x4a28db);}export async function resolveCustomPageDevelopmentUrl(_0x1f771a,_0x35c0a3,_0x29ba4a){const _0x10270c=a147_0x53f576,_0x55c295=trimOptional(_0x1f771a);if(!_0x55c295)return undefined;try{const _0x3b7f5b=(await fetchMenuSnapshot(_0x55c295,_0x29ba4a))[_0x10270c(0x17d)]['find'](_0x30a9aa=>_0x30a9aa[_0x10270c(0x189)]==='react'&&_0x30a9aa[_0x10270c(0x16c)]===_0x35c0a3);return buildCustomPageDevelopmentUrl(_0x55c295,_0x3b7f5b?.[_0x10270c(0x17e)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x151d8d,_0xd3bd8f){const _0x189b91=a147_0x53f576,_0xdbbf75=trimOptional(_0x151d8d);if(!_0xdbbf75)return;const _0x3691ba=trimOptional(_0xd3bd8f==null?undefined:String(_0xd3bd8f));if(!_0x3691ba)return;return getAppBaseUrl(_0xdbbf75)+_0x189b91(0x177)+encodeURIComponent(_0x3691ba);}export function parseCustomPageContent(_0x17f750){const _0x386cbb=a147_0x53f576;if(!_0x17f750[_0x386cbb(0x188)]())throw CliErrors[_0x386cbb(0x178)](_0x386cbb(0x182));let _0x572075;try{_0x572075=JSON['parse'](_0x17f750);}catch{throw CliErrors[_0x386cbb(0x16f)](_0x386cbb(0x16d));}if(typeof _0x572075!=='object'||_0x572075===null||Array[_0x386cbb(0x187)](_0x572075)||Object[_0x386cbb(0x17a)](_0x572075)[_0x386cbb(0x17c)](_0x50dcb2=>typeof _0x50dcb2!==_0x386cbb(0x17b)))throw CliErrors['validation'](_0x386cbb(0x175));return _0x572075;}export async function validateCustomPageContent(_0x1677fc){const _0x571737=a147_0x53f576,_0xcd64ad=await validateCustomPageSourceFiles(_0x1677fc);if(_0xcd64ad['length']>0x0)throw CliErrors[_0x571737(0x16f)](_0x571737(0x180)+_0xcd64ad[_0x571737(0x169)](_0x140481=>_0x140481[_0x571737(0x16e)]+':\x20'+_0x140481['message'])[_0x571737(0x181)](';\x20'));}function a147_0x5d04(){const _0x18de7b=['777114zyMDgW','num','33228TWPfvs','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','859584Jonsxw','/ide/','flagMissing','12NNqUns','values','string','some','menus','path','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','Invalid\x20Custom\x20Page\x20content:\x20','join','page-content','27wdkkhW','628876nGxVyU','20717EpoWqL','isInteger','isArray','trim','type','map','/pages/','1512259qgJvSE','pageId','--page-content\x20must\x20be\x20valid\x20JSON.','file','validation','15wVzRZf','6347440ledyKZ'];a147_0x5d04=function(){return _0x18de7b;};return a147_0x5d04();}export function readCustomPageId(_0x2659ee){const _0x21d54f=a147_0x53f576,_0xa37704=_0x2659ee[_0x21d54f(0x173)]('id');if(!Number[_0x21d54f(0x186)](_0xa37704)||_0xa37704<=0x0)throw CliErrors[_0x21d54f(0x16f)]('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0xa37704;}
1
+ const a152_0x30764c=a152_0x6ccd;(function(_0x4dbc94,_0xf29870){const _0x5687a1=a152_0x6ccd,_0x5bd81d=_0x4dbc94();while(!![]){try{const _0x51f091=-parseInt(_0x5687a1(0x8a))/0x1*(-parseInt(_0x5687a1(0x93))/0x2)+parseInt(_0x5687a1(0x96))/0x3*(-parseInt(_0x5687a1(0x7c))/0x4)+-parseInt(_0x5687a1(0x89))/0x5*(-parseInt(_0x5687a1(0x87))/0x6)+-parseInt(_0x5687a1(0x86))/0x7+-parseInt(_0x5687a1(0x9a))/0x8+-parseInt(_0x5687a1(0x7a))/0x9*(parseInt(_0x5687a1(0x8e))/0xa)+parseInt(_0x5687a1(0x97))/0xb;if(_0x51f091===_0xf29870)break;else _0x5bd81d['push'](_0x5bd81d['shift']());}catch(_0x2248cf){_0x5bd81d['push'](_0x5bd81d['shift']());}}}(a152_0x27ce,0xa1502));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';function a152_0x6ccd(_0x655ec,_0x1556e5){_0x655ec=_0x655ec-0x79;const _0x27ce9c=a152_0x27ce();let _0x6ccdb4=_0x27ce9c[_0x655ec];return _0x6ccdb4;}import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a152_0x30764c(0x95)};function trimOptional(_0xef0a9f){const _0xa0ff81=a152_0x30764c;return _0xef0a9f?.[_0xa0ff81(0x83)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x58b2f0,_0x50a86e){const _0x1052e9=trimOptional(_0x58b2f0),_0x4c5012=trimOptional(_0x50a86e);if(!_0x1052e9||!_0x4c5012)return undefined;return getPublishedAppDomain(_0x1052e9)+'/'+encodeURIComponent(_0x4c5012);}export function buildCustomPageDevelopmentUrl(_0x53bee0,_0x4daf84){const _0x193911=trimOptional(_0x53bee0),_0xaf93c2=trimOptional(_0x4daf84);if(!_0x193911||!_0xaf93c2)return undefined;return getAppBaseUrl(_0x193911)+'/pages/'+encodeURIComponent(_0xaf93c2);}export async function resolveCustomPageDevelopmentUrl(_0x510b47,_0x1f8b3c,_0x498d95){const _0x5d9e68=a152_0x30764c,_0x500558=trimOptional(_0x510b47);if(!_0x500558)return undefined;try{const _0x203d4f=(await fetchMenuSnapshot(_0x500558,_0x498d95))[_0x5d9e68(0x8d)][_0x5d9e68(0x82)](_0x3e201b=>_0x3e201b[_0x5d9e68(0x7f)]===_0x5d9e68(0x8c)&&_0x3e201b[_0x5d9e68(0x80)]===_0x1f8b3c);return buildCustomPageDevelopmentUrl(_0x500558,_0x203d4f?.[_0x5d9e68(0x8f)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x1c8670,_0x5e6e3a){const _0x5e9b23=a152_0x30764c,_0x50f95d=trimOptional(_0x1c8670);if(!_0x50f95d)return;const _0x41ec90=trimOptional(_0x5e6e3a==null?undefined:String(_0x5e6e3a));if(!_0x41ec90)return;return getAppBaseUrl(_0x50f95d)+_0x5e9b23(0x7b)+encodeURIComponent(_0x41ec90);}export function parseCustomPageContent(_0x433c7c){const _0x4721d3=a152_0x30764c;if(!_0x433c7c[_0x4721d3(0x83)]())throw CliErrors[_0x4721d3(0x7d)]('page-content');let _0x2cce82;try{_0x2cce82=JSON['parse'](_0x433c7c);}catch{throw CliErrors['validation'](_0x4721d3(0x81));}if(typeof _0x2cce82!==_0x4721d3(0x84)||_0x2cce82===null||Array['isArray'](_0x2cce82)||Object[_0x4721d3(0x94)](_0x2cce82)[_0x4721d3(0x91)](_0x135662=>typeof _0x135662!==_0x4721d3(0x98)))throw CliErrors[_0x4721d3(0x99)](_0x4721d3(0x85));return _0x2cce82;}function a152_0x27ce(){const _0xf238f8=['10557576oepTrv','length','481797EiIFYe','/ide/','1036916oeGRda','flagMissing','message','type','pageId','--page-content\x20must\x20be\x20valid\x20JSON.','find','trim','object','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','6672218qTgDsN','12iCNFUs','isInteger','921825sxbsSg','4TrWbnW','file','react','menus','50ENBWUh','path','Invalid\x20Custom\x20Page\x20content:\x20','some','map','344706TtTgox','values','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','3kumtKY','26425971lipttG','string','validation'];a152_0x27ce=function(){return _0xf238f8;};return a152_0x27ce();}export async function validateCustomPageContent(_0x35962f){const _0x1073f0=a152_0x30764c,_0xe8faf8=await validateCustomPageSourceFiles(_0x35962f);if(_0xe8faf8[_0x1073f0(0x79)]>0x0)throw CliErrors[_0x1073f0(0x99)](_0x1073f0(0x90)+_0xe8faf8[_0x1073f0(0x92)](_0x5a4ab6=>_0x5a4ab6[_0x1073f0(0x8b)]+':\x20'+_0x5a4ab6[_0x1073f0(0x7e)])['join'](';\x20'));}export function readCustomPageId(_0x1377ee){const _0x203aca=a152_0x30764c,_0x4554e5=_0x1377ee['num']('id');if(!Number[_0x203aca(0x88)](_0x4554e5)||_0x4554e5<=0x0)throw CliErrors[_0x203aca(0x99)]('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x4554e5;}