@lovrabet/rabetbase-cli 2.5.11 → 2.5.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.d.ts +1 -0
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-analysis.js +1 -1
  297. package/lib/core/cross-db-relation.js +1 -1
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/instant-api-policy/endpoints.js +1 -1
  302. package/lib/core/kb-management-client.js +1 -1
  303. package/lib/core/kb-search-client.js +1 -1
  304. package/lib/core/page/file-system.js +1 -1
  305. package/lib/core/page/hash.js +1 -1
  306. package/lib/core/page/lock.js +1 -1
  307. package/lib/core/page/lr-smart-jsx.js +1 -1
  308. package/lib/core/sql-index-auditor.js +1 -1
  309. package/lib/core/sql-sync/config.js +1 -1
  310. package/lib/core/sql-sync/file-system.js +1 -1
  311. package/lib/core/sql-sync/hash.js +1 -1
  312. package/lib/core/sql-sync/lock.js +1 -1
  313. package/lib/core/sql-sync/utils.js +1 -1
  314. package/lib/core/sql-validator.js +1 -1
  315. package/lib/errors.js +1 -1
  316. package/lib/framework/build-all-flags.js +1 -1
  317. package/lib/framework/error-output.js +1 -1
  318. package/lib/framework/explicit-yes.js +1 -1
  319. package/lib/framework/flags.js +1 -1
  320. package/lib/framework/help.js +1 -1
  321. package/lib/framework/index.js +1 -1
  322. package/lib/framework/output.js +1 -1
  323. package/lib/framework/response.js +1 -1
  324. package/lib/framework/runner-alias.js +1 -1
  325. package/lib/framework/runner.js +1 -1
  326. package/lib/framework/schema-export.js +1 -1
  327. package/lib/framework/supported-flags.js +1 -1
  328. package/lib/framework/types.js +1 -1
  329. package/lib/generated/build-info.d.ts +4 -4
  330. package/lib/generated/build-info.js +1 -1
  331. package/lib/generated/official-routing.d.ts +2 -1
  332. package/lib/generated/official-routing.js +1 -1
  333. package/lib/generated/routing-contract.js +1 -1
  334. package/lib/help.js +1 -1
  335. package/lib/postinstall.js +1 -1
  336. package/lib/runtime/confirmation.js +1 -1
  337. package/lib/runtime/event.js +1 -1
  338. package/lib/runtime/index.js +1 -1
  339. package/lib/runtime/queue.js +1 -1
  340. package/lib/runtime/resolve.js +1 -1
  341. package/lib/services/dataset-design/checkpoint.js +1 -1
  342. package/lib/services/dataset-design/commands.js +1 -1
  343. package/lib/services/dataset-design/contract.js +1 -1
  344. package/lib/skills/builtin-skill.js +1 -1
  345. package/lib/skills/main.js +1 -1
  346. package/lib/skills/npx-skills-add.js +1 -1
  347. package/lib/skills/skill-presence.js +1 -1
  348. package/lib/telemetry/cli-command-trace.js +1 -1
  349. package/lib/telemetry/cli-help-trace.js +1 -1
  350. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  351. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  352. package/lib/telemetry/send-cli-trace-log.js +1 -1
  353. package/lib/utils/ai_config.js +1 -1
  354. package/lib/utils/apply-jq-filter.js +1 -1
  355. package/lib/utils/cdn-config.js +1 -1
  356. package/lib/utils/check-sdk-version.js +1 -1
  357. package/lib/utils/cli-version-check.js +1 -1
  358. package/lib/utils/cli-version-policy.js +1 -1
  359. package/lib/utils/config.js +1 -1
  360. package/lib/utils/entity-with-id.js +1 -1
  361. package/lib/utils/file-utils.js +1 -1
  362. package/lib/utils/guides-cdn.js +1 -1
  363. package/lib/utils/http-client.js +1 -1
  364. package/lib/utils/is-non-interactive.js +1 -1
  365. package/lib/utils/logger.js +1 -1
  366. package/lib/utils/params.js +1 -1
  367. package/lib/utils/platform.js +1 -1
  368. package/lib/utils/sleep.js +1 -1
  369. package/lib/utils/template-replacer.js +1 -1
  370. package/lib/utils/update-notice.js +1 -1
  371. package/lib/utils/version.js +1 -1
  372. package/lib/utils/with-active-cookie.js +1 -1
  373. package/lib/utils/write-cli-side-channel.js +1 -1
  374. package/package.json +1 -1
  375. package/skills/rabetbase/SKILL.md +1 -1
  376. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  377. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  378. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a194_0x2a980e=a194_0x56e8;(function(_0x9972d7,_0x4d39fc){const _0x16aebe=a194_0x56e8,_0x345120=_0x9972d7();while(!![]){try{const _0x3b5b29=-parseInt(_0x16aebe(0x1ec))/0x1*(parseInt(_0x16aebe(0x1ed))/0x2)+parseInt(_0x16aebe(0x209))/0x3*(-parseInt(_0x16aebe(0x1f8))/0x4)+-parseInt(_0x16aebe(0x204))/0x5+-parseInt(_0x16aebe(0x1fb))/0x6*(parseInt(_0x16aebe(0x208))/0x7)+-parseInt(_0x16aebe(0x206))/0x8+-parseInt(_0x16aebe(0x205))/0x9+parseInt(_0x16aebe(0x1f7))/0xa*(parseInt(_0x16aebe(0x1fc))/0xb);if(_0x3b5b29===_0x4d39fc)break;else _0x345120['push'](_0x345120['shift']());}catch(_0x3a5dd6){_0x345120['push'](_0x345120['shift']());}}}(a194_0x1607,0x48b48));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a194_0x56e8(_0x40c83c,_0x1c2fa2){_0x40c83c=_0x40c83c-0x1eb;const _0x160761=a194_0x1607();let _0x56e889=_0x160761[_0x40c83c];return _0x56e889;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a194_0x1607(){const _0x2049a2=['22CHQZyS','all','config-list','read','map','length','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','validation','676175sBFfqf','4222899LRYgoa','2574000TfMZYr','flat','1427475mUTaAn','1649895UAnbwI','str','1LwKUlr','162324ydsQUH','appCode','string','trim','bool','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','notification','Notification\x20channel\x20type','\x20notification\x20config(s)','10295240lKMFhI','4gjxiIk','Found\x20','type','6WjGqcI'];a194_0x1607=function(){return _0x2049a2;};return a194_0x1607();}export const notificationConfigList={'service':a194_0x2a980e(0x1f4),'command':a194_0x2a980e(0x1fe),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a194_0x2a980e(0x1ff),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x2a980e(0x1fa),'type':a194_0x2a980e(0x1ef),'description':a194_0x2a980e(0x1f5),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':'all','type':'boolean','default':![],'description':a194_0x2a980e(0x202)}],async 'validate'(_0x620c3e){const _0x167b31=a194_0x2a980e;if(_0x620c3e[_0x167b31(0x1f1)]('all')&&_0x620c3e[_0x167b31(0x1eb)]('type')[_0x167b31(0x1f0)]())throw CliErrors[_0x167b31(0x203)](_0x167b31(0x1f2),'Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.');if(_0x620c3e[_0x167b31(0x1f1)](_0x167b31(0x1fd)))return;readNotificationChannelType(_0x620c3e);},async 'execute'(_0x265d27){const _0x37d328=a194_0x2a980e;if(_0x265d27[_0x37d328(0x1f1)](_0x37d328(0x1fd))){const _0x36b4f7=await Promise['all'](NOTIFICATION_CHANNEL_TYPES[_0x37d328(0x200)](_0x255deb=>listNotificationChannelConfigs(_0x265d27[_0x37d328(0x1ee)],_0x255deb))),_0x532147=_0x36b4f7[_0x37d328(0x207)]()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x265d27[_0x37d328(0x1ee)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x532147[_0x37d328(0x201)],'configs':_0x532147},'message':'Found\x20'+_0x532147[_0x37d328(0x201)]+_0x37d328(0x1f3)};}const _0x685f5a=readNotificationChannelType(_0x265d27),_0x15a836=await listNotificationChannelConfigs(_0x265d27['appCode'],_0x685f5a),_0x248a5c=_0x15a836[_0x37d328(0x200)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x265d27['appCode'],'channelType':_0x685f5a,'count':_0x248a5c[_0x37d328(0x201)],'configs':_0x248a5c},'message':_0x37d328(0x1f9)+_0x248a5c['length']+'\x20'+_0x685f5a+_0x37d328(0x1f6)};}};
1
+ const a194_0x1b7b6d=a194_0x2e6f;(function(_0x3a7aed,_0xafd43e){const _0x18cc91=a194_0x2e6f,_0x767356=_0x3a7aed();while(!![]){try{const _0x189418=-parseInt(_0x18cc91(0x1ea))/0x1*(parseInt(_0x18cc91(0x1d2))/0x2)+-parseInt(_0x18cc91(0x1e0))/0x3+-parseInt(_0x18cc91(0x1dd))/0x4+parseInt(_0x18cc91(0x1d9))/0x5*(parseInt(_0x18cc91(0x1e1))/0x6)+parseInt(_0x18cc91(0x1e2))/0x7+-parseInt(_0x18cc91(0x1e5))/0x8*(parseInt(_0x18cc91(0x1df))/0x9)+-parseInt(_0x18cc91(0x1e4))/0xa*(-parseInt(_0x18cc91(0x1da))/0xb);if(_0x189418===_0xafd43e)break;else _0x767356['push'](_0x767356['shift']());}catch(_0xa66cc4){_0x767356['push'](_0x767356['shift']());}}}(a194_0x5dd0,0xd08a9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a194_0x2e6f(_0x4a52c7,_0x2bd6ab){_0x4a52c7=_0x4a52c7-0x1d2;const _0x5dd067=a194_0x5dd0();let _0x2e6f00=_0x5dd067[_0x4a52c7];return _0x2e6f00;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a194_0x1b7b6d(0x1dc),'command':'config-list','description':a194_0x1b7b6d(0x1db),'risk':a194_0x1b7b6d(0x1d7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x1b7b6d(0x1eb),'type':'string','description':a194_0x1b7b6d(0x1e7),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x1b7b6d(0x1e8),'type':'boolean','default':![],'description':a194_0x1b7b6d(0x1e9)}],async 'validate'(_0x16d292){const _0x12a9f9=a194_0x1b7b6d;if(_0x16d292['bool'](_0x12a9f9(0x1e8))&&_0x16d292[_0x12a9f9(0x1d4)](_0x12a9f9(0x1eb))[_0x12a9f9(0x1de)]())throw CliErrors['validation']('--all\x20and\x20--type\x20are\x20mutually\x20exclusive.',_0x12a9f9(0x1d3));if(_0x16d292['bool']('all'))return;readNotificationChannelType(_0x16d292);},async 'execute'(_0x543e71){const _0x3b829e=a194_0x1b7b6d;if(_0x543e71['bool'](_0x3b829e(0x1e8))){const _0x33925e=await Promise[_0x3b829e(0x1e8)](NOTIFICATION_CHANNEL_TYPES[_0x3b829e(0x1d6)](_0x45df92=>listNotificationChannelConfigs(_0x543e71[_0x3b829e(0x1d5)],_0x45df92))),_0x19bcbd=_0x33925e['flat']()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x543e71[_0x3b829e(0x1d5)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x19bcbd[_0x3b829e(0x1e6)],'configs':_0x19bcbd},'message':'Found\x20'+_0x19bcbd[_0x3b829e(0x1e6)]+_0x3b829e(0x1e3)};}const _0x281d18=readNotificationChannelType(_0x543e71),_0x5c2e4e=await listNotificationChannelConfigs(_0x543e71[_0x3b829e(0x1d5)],_0x281d18),_0x2e4cb5=_0x5c2e4e[_0x3b829e(0x1d6)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x543e71[_0x3b829e(0x1d5)],'channelType':_0x281d18,'count':_0x2e4cb5[_0x3b829e(0x1e6)],'configs':_0x2e4cb5},'message':_0x3b829e(0x1d8)+_0x2e4cb5['length']+'\x20'+_0x281d18+'\x20notification\x20config(s)'};}};function a194_0x5dd0(){const _0xd00ab4=['length','Notification\x20channel\x20type','all','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','5rDQawb','type','325524AawqYg','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','str','appCode','map','read','Found\x20','155PYCXeq','3377LGncQe','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','notification','2212500zBpUTT','trim','36cSwQBu','2645820jDIDLC','239532uOHFHj','1775809kjRapM','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','53610sqHajS','68072AFzmmY'];a194_0x5dd0=function(){return _0xd00ab4;};return a194_0x5dd0();}
@@ -1 +1 @@
1
- const a195_0x32c05b=a195_0x1ce1;(function(_0x2cc980,_0x40ac51){const _0x280bea=a195_0x1ce1,_0x4a663f=_0x2cc980();while(!![]){try{const _0x171e4a=-parseInt(_0x280bea(0x204))/0x1+-parseInt(_0x280bea(0x202))/0x2+parseInt(_0x280bea(0x1f9))/0x3*(parseInt(_0x280bea(0x1fb))/0x4)+parseInt(_0x280bea(0x1e7))/0x5+parseInt(_0x280bea(0x206))/0x6*(-parseInt(_0x280bea(0x1e8))/0x7)+-parseInt(_0x280bea(0x1f3))/0x8+parseInt(_0x280bea(0x1eb))/0x9;if(_0x171e4a===_0x40ac51)break;else _0x4a663f['push'](_0x4a663f['shift']());}catch(_0x536062){_0x4a663f['push'](_0x4a663f['shift']());}}}(a195_0x5e8d,0x5019f));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a195_0x1ce1(_0x3c3e2e,_0x58f69a){_0x3c3e2e=_0x3c3e2e-0x1e6;const _0x5e8dd9=a195_0x5e8d();let _0x1ce13e=_0x5e8dd9[_0x3c3e2e];return _0x1ce13e;}function a195_0x5e8d(){const _0x2de849=['206574SKWamp','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','before','provesChange','Inspect\x20with\x20--id\x20','2657765rOPsZR','35eeLXDJ','POST',';\x20no\x20automatic\x20retry\x20was\x20attempted.','4722021PBljoa',';\x20do\x20not\x20resubmit\x20automatically.','mutation','notification_config_update_outcome_unknown','notification_config_update_verification_unavailable','Inspect\x20ID\x20','Notification\x20config\x20','channelType','374528fagVfv','\x20via\x20','update','Updated\x20notification\x20config\x20','allMatch','verified','66873lvmqSR','patch','8EUJiGx','planned','notification','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','\x20with\x20','notification_config_update_verification_failed','appCode','884556wlLgjT','/notification/channel-config/update','111470tjoPVF','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.'];a195_0x5e8d=function(){return _0x2de849;};return a195_0x5e8d();}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=a195_0x32c05b(0x203);async function prepareUpdate(_0x7b5e26){const _0x1ea75e=a195_0x32c05b,_0x48bec6=readNotificationId(_0x7b5e26),_0x152a85=await readNotificationDocument(_0x7b5e26,_0x1ea75e(0x1f5)),_0x1f0cd0=await requireExactNotificationConfig(_0x7b5e26[_0x1ea75e(0x201)],_0x48bec6,_0x1ea75e(0x1f5));return{'id':_0x48bec6,'patch':_0x152a85,'before':_0x1f0cd0,'payload':mergeUpdateInput(_0x1f0cd0,_0x152a85),'planned':plannedUpdateProjection(_0x1f0cd0,_0x152a85)};}export const notificationConfigUpdate={'service':a195_0x32c05b(0x1fd),'command':'config-update','description':a195_0x32c05b(0x207),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3c2a8e){readNotificationId(_0x3c2a8e),assertSingleNotificationSource(_0x3c2a8e),requireNotificationExplicitYes(_0x3c2a8e);},async 'dryRun'(_0x4cfd55){const _0x56ec90=a195_0x32c05b,_0x127c2c=await prepareUpdate(_0x4cfd55),_0x55b472=notificationLookupCommand(_0x4cfd55[_0x56ec90(0x201)],_0x127c2c[_0x56ec90(0x208)][_0x56ec90(0x1f2)]);return asDryRunResult({'operation':_0x56ec90(0x1f5),'selector':notificationSelector(_0x127c2c[_0x56ec90(0x208)]),'before':projectNotificationConfig(_0x127c2c[_0x56ec90(0x208)]),'after':_0x127c2c[_0x56ec90(0x1fc)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x55b472}},{'method':'POST','url':UPDATE_PATH});},async 'execute'(_0x163955){const _0x225453=a195_0x32c05b;requireNotificationExplicitYes(_0x163955);const _0x37cdc1=await prepareUpdate(_0x163955),_0x54cdab=notificationLookupCommand(_0x163955[_0x225453(0x201)],_0x37cdc1[_0x225453(0x208)][_0x225453(0x1f2)]);let _0xf95851=![];try{await updateNotificationChannelConfig(_0x37cdc1['payload']);}catch(_0x31afd7){if(!isPlatformTransportFailure(_0x31afd7))throw safeApiFailure('update',_0x225453(0x1ed),_0x225453(0x1f0)+_0x37cdc1['id']+_0x225453(0x1ff)+_0x54cdab+_0x225453(0x1ea));_0xf95851=!![];}let _0x12b161;try{const _0x1c61d6=await getNotificationChannelConfig(_0x37cdc1['id'],_0x163955[_0x225453(0x201)]);_0x12b161=normalizeExactNotificationConfig(_0x1c61d6,_0x37cdc1['id'],_0x163955[_0x225453(0x201)]);}catch{throw notificationError(_0xf95851?_0x225453(0x1ee):_0x225453(0x1ef),_0x225453(0x1f1)+_0x37cdc1['id']+_0x225453(0x205),_0x225453(0x1e6)+_0x37cdc1['id']+_0x225453(0x1f4)+_0x54cdab+';\x20do\x20not\x20resubmit\x20automatically.');}const _0xa6c449=requestedSafeFieldsMatch(_0x37cdc1[_0x225453(0x208)],_0x12b161,_0x37cdc1[_0x225453(0x1fa)]);if(!_0xa6c449[_0x225453(0x1f7)]||_0xf95851&&!_0xa6c449[_0x225453(0x209)])throw notificationError(_0xf95851?_0x225453(0x1ee):_0x225453(0x200),_0x225453(0x1f1)+_0x37cdc1['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x225453(0x1e6)+_0x37cdc1['id']+'\x20via\x20'+_0x54cdab+_0x225453(0x1ec));const _0x32ff5a=_0xf95851?[_0x225453(0x1fe)]:[];return{'ok':!![],'data':{'operation':_0x225453(0x1f5),'selector':notificationSelector(_0x12b161),'before':projectNotificationConfig(_0x37cdc1[_0x225453(0x208)]),'after':projectNotificationConfig(_0x12b161),'dryRun':![],'backend':{'method':_0x225453(0x1e9),'path':UPDATE_PATH},'warnings':_0x32ff5a,'verification':{'status':_0x225453(0x1f8),'recoveredAfterUnknownResponse':_0xf95851,'verifiedFields':_0xa6c449['verifiedFields'],'lookupCommand':_0x54cdab}},'message':_0x225453(0x1f6)+_0x12b161['id']};}};
1
+ const a195_0x1052d1=a195_0x55e5;(function(_0x21550c,_0x7b9889){const _0x7f210c=a195_0x55e5,_0x2439b3=_0x21550c();while(!![]){try{const _0x13d773=parseInt(_0x7f210c(0x20f))/0x1+parseInt(_0x7f210c(0x211))/0x2+parseInt(_0x7f210c(0x205))/0x3*(-parseInt(_0x7f210c(0x206))/0x4)+parseInt(_0x7f210c(0x1f8))/0x5+-parseInt(_0x7f210c(0x1ff))/0x6*(-parseInt(_0x7f210c(0x214))/0x7)+parseInt(_0x7f210c(0x213))/0x8*(-parseInt(_0x7f210c(0x1fb))/0x9)+-parseInt(_0x7f210c(0x200))/0xa*(parseInt(_0x7f210c(0x20d))/0xb);if(_0x13d773===_0x7b9889)break;else _0x2439b3['push'](_0x2439b3['shift']());}catch(_0x1b4474){_0x2439b3['push'](_0x2439b3['shift']());}}}(a195_0x28ee,0xed20f));function a195_0x55e5(_0x267126,_0x3f4e65){_0x267126=_0x267126-0x1f0;const _0x28eea6=a195_0x28ee();let _0x55e587=_0x28eea6[_0x267126];return _0x55e587;}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';function a195_0x28ee(){const _0x137c75=['Notification\x20config\x20','8qTOHXE','6129249WVBUuf','before','update',';\x20no\x20automatic\x20retry\x20was\x20attempted.','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','patch','mutation','\x20via\x20','high-risk-write','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','1913640NDNcpf','notification','Inspect\x20with\x20--id\x20','17143776qGwzVK','/notification/channel-config/update','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','allMatch','6QYBBNU','14590prDPUz','planned','channelType','appCode','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','19449DuNNhV','728jvrYxv','notification_config_update_verification_unavailable','POST','payload',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20ID\x20','config-update','3421oTPjDD','provesChange','1861345igNmxX','notification_config_update_outcome_unknown','2780236RWRpnR'];a195_0x28ee=function(){return _0x137c75;};return a195_0x28ee();}const UPDATE_PATH=a195_0x1052d1(0x1fc);async function prepareUpdate(_0x4fba83){const _0x2a913d=a195_0x1052d1,_0x57c9bc=readNotificationId(_0x4fba83),_0x411c20=await readNotificationDocument(_0x4fba83,'update'),_0x4f576a=await requireExactNotificationConfig(_0x4fba83[_0x2a913d(0x203)],_0x57c9bc,_0x2a913d(0x1f0));return{'id':_0x57c9bc,'patch':_0x411c20,'before':_0x4f576a,'payload':mergeUpdateInput(_0x4f576a,_0x411c20),'planned':plannedUpdateProjection(_0x4f576a,_0x411c20)};}export const notificationConfigUpdate={'service':a195_0x1052d1(0x1f9),'command':a195_0x1052d1(0x20c),'description':a195_0x1052d1(0x204),'risk':a195_0x1052d1(0x1f6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4a3f78){readNotificationId(_0x4a3f78),assertSingleNotificationSource(_0x4a3f78),requireNotificationExplicitYes(_0x4a3f78);},async 'dryRun'(_0x5e5dd2){const _0x2fe30c=a195_0x1052d1,_0x44c0c5=await prepareUpdate(_0x5e5dd2),_0x3eb936=notificationLookupCommand(_0x5e5dd2['appCode'],_0x44c0c5[_0x2fe30c(0x215)][_0x2fe30c(0x202)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x44c0c5['before']),'before':projectNotificationConfig(_0x44c0c5[_0x2fe30c(0x215)]),'after':_0x44c0c5[_0x2fe30c(0x201)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x2fe30c(0x201),'lookupCommand':_0x3eb936}},{'method':_0x2fe30c(0x208),'url':UPDATE_PATH});},async 'execute'(_0xfc87c9){const _0x4d8fdb=a195_0x1052d1;requireNotificationExplicitYes(_0xfc87c9);const _0x1ceecf=await prepareUpdate(_0xfc87c9),_0x34e2c9=notificationLookupCommand(_0xfc87c9[_0x4d8fdb(0x203)],_0x1ceecf[_0x4d8fdb(0x215)][_0x4d8fdb(0x202)]);let _0x2b0078=![];try{await updateNotificationChannelConfig(_0x1ceecf[_0x4d8fdb(0x209)]);}catch(_0x1b01d5){if(!isPlatformTransportFailure(_0x1b01d5))throw safeApiFailure('update',_0x4d8fdb(0x1f4),_0x4d8fdb(0x20b)+_0x1ceecf['id']+'\x20with\x20'+_0x34e2c9+_0x4d8fdb(0x1f1));_0x2b0078=!![];}let _0x46e55b;try{const _0x578f8b=await getNotificationChannelConfig(_0x1ceecf['id'],_0xfc87c9[_0x4d8fdb(0x203)]);_0x46e55b=normalizeExactNotificationConfig(_0x578f8b,_0x1ceecf['id'],_0xfc87c9[_0x4d8fdb(0x203)]);}catch{throw notificationError(_0x2b0078?_0x4d8fdb(0x210):_0x4d8fdb(0x207),_0x4d8fdb(0x212)+_0x1ceecf['id']+_0x4d8fdb(0x1fd),_0x4d8fdb(0x1fa)+_0x1ceecf['id']+_0x4d8fdb(0x1f5)+_0x34e2c9+';\x20do\x20not\x20resubmit\x20automatically.');}const _0x23ca89=requestedSafeFieldsMatch(_0x1ceecf[_0x4d8fdb(0x215)],_0x46e55b,_0x1ceecf[_0x4d8fdb(0x1f3)]);if(!_0x23ca89[_0x4d8fdb(0x1fe)]||_0x2b0078&&!_0x23ca89[_0x4d8fdb(0x20e)])throw notificationError(_0x2b0078?_0x4d8fdb(0x210):'notification_config_update_verification_failed','Notification\x20config\x20'+_0x1ceecf['id']+_0x4d8fdb(0x1f2),_0x4d8fdb(0x1fa)+_0x1ceecf['id']+'\x20via\x20'+_0x34e2c9+_0x4d8fdb(0x20a));const _0x268029=_0x2b0078?[_0x4d8fdb(0x1f7)]:[];return{'ok':!![],'data':{'operation':_0x4d8fdb(0x1f0),'selector':notificationSelector(_0x46e55b),'before':projectNotificationConfig(_0x1ceecf[_0x4d8fdb(0x215)]),'after':projectNotificationConfig(_0x46e55b),'dryRun':![],'backend':{'method':_0x4d8fdb(0x208),'path':UPDATE_PATH},'warnings':_0x268029,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2b0078,'verifiedFields':_0x23ca89['verifiedFields'],'lookupCommand':_0x34e2c9}},'message':'Updated\x20notification\x20config\x20'+_0x46e55b['id']};}};
@@ -1 +1 @@
1
- function a196_0x210e(_0x6cf00f,_0x405e5e){_0x6cf00f=_0x6cf00f-0x103;const _0x4270c0=a196_0x4270();let _0x210ebf=_0x4270c0[_0x6cf00f];return _0x210ebf;}(function(_0x3401cc,_0x36def5){const _0x1cdb89=a196_0x210e,_0x2b128e=_0x3401cc();while(!![]){try{const _0x578df6=-parseInt(_0x1cdb89(0x105))/0x1*(parseInt(_0x1cdb89(0x108))/0x2)+parseInt(_0x1cdb89(0x10b))/0x3+parseInt(_0x1cdb89(0x109))/0x4+parseInt(_0x1cdb89(0x10a))/0x5+-parseInt(_0x1cdb89(0x104))/0x6+parseInt(_0x1cdb89(0x107))/0x7*(parseInt(_0x1cdb89(0x106))/0x8)+-parseInt(_0x1cdb89(0x103))/0x9;if(_0x578df6===_0x36def5)break;else _0x2b128e['push'](_0x2b128e['shift']());}catch(_0x24773c){_0x2b128e['push'](_0x2b128e['shift']());}}}(a196_0x4270,0xb51d5));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a196_0x4270(){const _0x536fe5=['4161210QknQrx','924156XNYHuv','8306145mWglxC','1089024feclPk','23xSmUnf','48eZbCmO','912884QuxDvi','34194nDBJIO','1266876BTNCMO'];a196_0x4270=function(){return _0x536fe5;};return a196_0x4270();}
1
+ function a196_0x1303(_0x2e66a5,_0x20a857){_0x2e66a5=_0x2e66a5-0xe4;const _0x32a78f=a196_0x32a7();let _0x130331=_0x32a78f[_0x2e66a5];return _0x130331;}(function(_0x3c9edd,_0x5aaa86){const _0x4b6b27=a196_0x1303,_0x27f521=_0x3c9edd();while(!![]){try{const _0x30d278=parseInt(_0x4b6b27(0xec))/0x1+parseInt(_0x4b6b27(0xea))/0x2+parseInt(_0x4b6b27(0xe8))/0x3*(-parseInt(_0x4b6b27(0xeb))/0x4)+parseInt(_0x4b6b27(0xe4))/0x5*(-parseInt(_0x4b6b27(0xe9))/0x6)+-parseInt(_0x4b6b27(0xe6))/0x7*(-parseInt(_0x4b6b27(0xe5))/0x8)+parseInt(_0x4b6b27(0xed))/0x9+-parseInt(_0x4b6b27(0xe7))/0xa;if(_0x30d278===_0x5aaa86)break;else _0x27f521['push'](_0x27f521['shift']());}catch(_0xf614e9){_0x27f521['push'](_0x27f521['shift']());}}}(a196_0x32a7,0xbbdfa));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a196_0x32a7(){const _0x89c0d1=['2322520hrzTAU','4818180tLQqYg','404416ZPyqmf','3799458WdiipW','115QHEKrP','973000JLJCom','63AFEpGg','7878830kQNlFR','3LIoiVV','83610fvmvnZ'];a196_0x32a7=function(){return _0x89c0d1;};return a196_0x32a7();}
@@ -1 +1 @@
1
- const a197_0x2ac617=a197_0x4143;(function(_0x362378,_0x4e8de8){const _0xf7bb6a=a197_0x4143,_0x22e7b3=_0x362378();while(!![]){try{const _0x53ee47=parseInt(_0xf7bb6a(0xa4))/0x1*(parseInt(_0xf7bb6a(0x109))/0x2)+-parseInt(_0xf7bb6a(0x88))/0x3*(-parseInt(_0xf7bb6a(0xc5))/0x4)+parseInt(_0xf7bb6a(0xcd))/0x5*(-parseInt(_0xf7bb6a(0xb5))/0x6)+parseInt(_0xf7bb6a(0x89))/0x7+parseInt(_0xf7bb6a(0xe1))/0x8+parseInt(_0xf7bb6a(0xd0))/0x9+-parseInt(_0xf7bb6a(0xfd))/0xa;if(_0x53ee47===_0x4e8de8)break;else _0x22e7b3['push'](_0x22e7b3['shift']());}catch(_0x18539b){_0x22e7b3['push'](_0x22e7b3['shift']());}}}(a197_0x31f0,0x99d36));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=['EMAIL',a197_0x2ac617(0xf9),a197_0x2ac617(0x8a),a197_0x2ac617(0xf1),'WEBHOOK'];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set(['configName',a197_0x2ac617(0xc2),'endpointUrl',a197_0x2ac617(0xb7),a197_0x2ac617(0xba),a197_0x2ac617(0xd4),a197_0x2ac617(0x83)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a197_0x2ac617(0xe6),a197_0x2ac617(0x91),a197_0x2ac617(0x10b)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets',a197_0x2ac617(0x98),a197_0x2ac617(0xd6),a197_0x2ac617(0x94),a197_0x2ac617(0xe7),'subjectPrefix',a197_0x2ac617(0xdd),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a197_0x2ac617(0xa7),'required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':a197_0x2ac617(0xa8),'type':a197_0x2ac617(0xa0),'required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':'from-env','type':a197_0x2ac617(0xa7),'required':![],'description':a197_0x2ac617(0xc7)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':'number','required':!![],'description':a197_0x2ac617(0xbc)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x3e0589,_0x41cfee,_0x7b8427){return new CliError(_0x3e0589,0x1,_0x41cfee,_0x7b8427);}export function readNotificationId(_0x137211){const _0x362839=a197_0x2ac617,_0x20e858=_0x137211[_0x362839(0x93)]('id');if(!Number[_0x362839(0x9b)](_0x20e858)||_0x20e858<=0x0)throw notificationError(_0x362839(0xff),_0x362839(0xae));return _0x20e858;}export function requireNotificationExplicitYes(_0x300213){const _0x2cec29=a197_0x2ac617;if(_0x300213[_0x2cec29(0x96)](_0x2cec29(0xb4))||_0x300213[_0x2cec29(0x96)]('yes'))return;throw notificationError('notification_config_confirmation_required',_0x2cec29(0xf7),_0x2cec29(0xfe));}export function readNotificationChannelType(_0x5cf4b8,_0x5f16a9=a197_0x2ac617(0xfc),_0x3d192f=a197_0x2ac617(0xbb)){const _0x19e704=a197_0x2ac617,_0x478b66=_0x5cf4b8['str'](_0x5f16a9)[_0x19e704(0x104)]()||_0x3d192f;if(!NOTIFICATION_CHANNEL_TYPES[_0x19e704(0xe3)](_0x478b66))throw CliErrors[_0x19e704(0xbe)](_0x19e704(0xde)+_0x5f16a9+':\x20'+_0x478b66,_0x19e704(0xa2)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x478b66;}function a197_0x4143(_0x4cd2ce,_0x4ca428){_0x4cd2ce=_0x4cd2ce-0x83;const _0x31f0cb=a197_0x31f0();let _0x414300=_0x31f0cb[_0x4cd2ce];return _0x414300;}export function assertSingleNotificationSource(_0x2367dc){const _0x5c59bd=a197_0x2ac617,_0x5424f3=[],_0x5c9886=_0x2367dc[_0x5c59bd(0xe2)](_0x5c59bd(0xad))[_0x5c59bd(0x104)]();if(_0x5c9886)_0x5424f3['push']({'kind':_0x5c59bd(0xad),'path':_0x5c9886});if(_0x2367dc[_0x5c59bd(0x96)]('stdin'))_0x5424f3[_0x5c59bd(0xe8)]({'kind':_0x5c59bd(0xa8)});const _0x250d22=_0x2367dc[_0x5c59bd(0xe2)](_0x5c59bd(0xd9))['trim']();if(_0x250d22)_0x5424f3['push']({'kind':'env','name':_0x250d22});if(_0x5424f3['length']===0x0)throw CliErrors[_0x5c59bd(0xbe)](_0x5c59bd(0xfa),_0x5c59bd(0xb9));if(_0x5424f3['length']>0x1)throw CliErrors['validation'](_0x5c59bd(0x107),_0x5c59bd(0xb9));return _0x5424f3[0x0];}export async function readNotificationDocument(_0x16cd38,_0x4c07e8){const _0x5043b7=a197_0x2ac617,_0x117442=assertSingleNotificationSource(_0x16cd38),_0x2a2fd0=_0x117442[_0x5043b7(0xf3)]===_0x5043b7(0xad)?_0x5043b7(0xac)+_0x117442[_0x5043b7(0x9f)]:_0x117442['kind']==='env'?_0x5043b7(0xa5)+_0x117442[_0x5043b7(0x102)]:'stdin';let _0x3e6794;try{if(_0x117442[_0x5043b7(0xf3)]===_0x5043b7(0xad))_0x3e6794=await readFile(_0x117442[_0x5043b7(0x9f)],_0x5043b7(0xa3));else{if(_0x117442[_0x5043b7(0xf3)]===_0x5043b7(0xb2)){if(!(_0x117442[_0x5043b7(0x102)]in process.env))throw notificationError(_0x5043b7(0xd3),_0x5043b7(0xf8)+_0x117442['name']);_0x3e6794=process.env[_0x117442.name]??'';}else _0x3e6794=await readStdin();}}catch(_0x4e5ab0){if(_0x4e5ab0 instanceof CliError)throw _0x4e5ab0;throw notificationError(_0x5043b7(0xd3),'Unable\x20to\x20read\x20notification\x20JSON\x20from\x20'+_0x2a2fd0+'.');}let _0x3b0919;try{_0x3b0919=JSON[_0x5043b7(0xaf)](_0x3e6794);}catch{throw notificationError(_0x5043b7(0xc0),_0x5043b7(0xb0)+_0x2a2fd0+'\x20is\x20invalid.',_0x5043b7(0xd7));}if(!isJsonObject(_0x3b0919))throw notificationError('notification_config_json_invalid',_0x5043b7(0xb0)+_0x2a2fd0+_0x5043b7(0x90));return validateNotificationDocument(_0x3b0919,_0x4c07e8);}export function projectNotificationListConfig(_0x13151f,_0x1b2a0f){const _0x12578e=a197_0x2ac617;return{'id':typeof _0x13151f['id']==='number'?_0x13151f['id']:null,'configCode':requireResponseString(_0x13151f[_0x12578e(0x91)],_0x12578e(0x91),_0x1b2a0f),'configName':requireResponseString(_0x13151f[_0x12578e(0x100)],_0x12578e(0x100),_0x1b2a0f),'channelType':requireResponseString(_0x13151f[_0x12578e(0xc2)],_0x12578e(0xc2),_0x1b2a0f),'description':normalizeNullableString(_0x13151f[_0x12578e(0xba)]),'createTime':normalizeNullableString(_0x13151f[_0x12578e(0xf0)]),'updateTime':normalizeNullableString(_0x13151f[_0x12578e(0xe4)])};}export function normalizeExactNotificationConfig(_0x2396ce,_0x341fac,_0x4b39f7){const _0x131787=a197_0x2ac617;if(!Number[_0x131787(0x9b)](_0x2396ce['id'])||_0x2396ce['id']!==_0x341fac)throw notificationError(_0x131787(0x108),_0x131787(0x9c)+_0x341fac+'.');if(_0x2396ce['appCode']!==_0x4b39f7)throw notificationError(_0x131787(0x108),_0x131787(0x87)+_0x341fac+_0x131787(0xaa));const _0x445289=requireExactString(_0x2396ce[_0x131787(0x100)],'configName',_0x341fac),_0x29e8a8=requireExactString(_0x2396ce[_0x131787(0x91)],_0x131787(0x91),_0x341fac),_0x4d7ac7=requireExactString(_0x2396ce[_0x131787(0xc2)],_0x131787(0xc2),_0x341fac);if(!NOTIFICATION_CHANNEL_TYPES[_0x131787(0xe3)](_0x4d7ac7))throw notificationError('notification_config_response_invalid',_0x131787(0x87)+_0x341fac+_0x131787(0xb1));const _0x2240ec=responseNullableString(_0x2396ce['endpointUrl'],_0x131787(0x10a),_0x341fac),_0x508622=responseNullableString(_0x2396ce['channelConfig'],_0x131787(0xb7),_0x341fac),_0x148151=responseNullableString(_0x2396ce[_0x131787(0xba)],_0x131787(0xba),_0x341fac),_0x26d5f0=responseNullableTimeout(_0x2396ce[_0x131787(0xd4)],_0x131787(0xd4),_0x341fac),_0x2e93c9=responseNullableTimeout(_0x2396ce[_0x131787(0x83)],'readTimeout',_0x341fac);return{'id':_0x341fac,'appCode':_0x4b39f7,'configCode':_0x29e8a8,'configName':_0x445289,'channelType':_0x4d7ac7,'endpointUrl':redactSensitive(_0x2240ec),'channelConfig':redactSensitive(_0x508622),'description':_0x148151,'connectTimeout':_0x26d5f0,'readTimeout':_0x2e93c9,'endpointUrlRaw':_0x2240ec,'channelConfigRaw':_0x508622};}export async function requireExactNotificationConfig(_0x1ce474,_0x1a03af,_0x3d6929){const _0x4341a0=a197_0x2ac617;let _0x41d5fc;try{_0x41d5fc=await getNotificationChannelConfig(_0x1a03af,_0x1ce474);}catch{throw safeApiFailure(_0x3d6929,_0x4341a0(0x86),_0x4341a0(0xee)+_0x1ce474+_0x4341a0(0x101));}return normalizeExactNotificationConfig(_0x41d5fc,_0x1a03af,_0x1ce474);}export function projectNotificationConfig(_0x2c826c){const _0x4d832d=a197_0x2ac617;return{'id':_0x2c826c['id']??null,'appCode':_0x2c826c['appCode'],'configCode':_0x2c826c[_0x4d832d(0x91)]??null,'configName':_0x2c826c[_0x4d832d(0x100)],'channelType':_0x2c826c[_0x4d832d(0xc2)],'endpointUrl':redactSensitive(_0x2c826c[_0x4d832d(0x10a)]),'channelConfig':redactSensitive(_0x2c826c[_0x4d832d(0xb7)]),'description':_0x2c826c[_0x4d832d(0xba)]??null,'connectTimeout':_0x2c826c[_0x4d832d(0xd4)]??null,'readTimeout':_0x2c826c[_0x4d832d(0x83)]??null};}export function notificationSelector(_0x95afb){const _0x1e6939=a197_0x2ac617;return{'appCode':_0x95afb[_0x1e6939(0xe6)],'id':_0x95afb['id'],'configCode':_0x95afb[_0x1e6939(0x91)],'configName':_0x95afb['configName'],'channelType':_0x95afb[_0x1e6939(0xc2)]};}export function createMutationInput(_0x5541cf,_0x4a3bf2){const _0xca12b7=a197_0x2ac617;return{'appCode':_0x5541cf,'configName':_0x4a3bf2['configName'],'channelType':_0x4a3bf2['channelType'],...hasOwn(_0x4a3bf2,_0xca12b7(0x10a))?{'endpointUrl':_0x4a3bf2[_0xca12b7(0x10a)]}:{},...hasOwn(_0x4a3bf2,_0xca12b7(0xb7))?{'channelConfig':serializeChannelConfig(_0x4a3bf2[_0xca12b7(0xb7)])}:{},...hasOwn(_0x4a3bf2,_0xca12b7(0xba))?{'description':_0x4a3bf2['description']}:{},...hasOwn(_0x4a3bf2,'connectTimeout')?{'connectTimeout':_0x4a3bf2[_0xca12b7(0xd4)]}:{},...hasOwn(_0x4a3bf2,'readTimeout')?{'readTimeout':_0x4a3bf2[_0xca12b7(0x83)]}:{}};}export function mergeUpdateInput(_0x226efe,_0xeda3c9){const _0xf70343=a197_0x2ac617;return{'id':_0x226efe['id'],'appCode':_0x226efe['appCode'],'configName':_0xeda3c9[_0xf70343(0x100)]??_0x226efe[_0xf70343(0x100)],'channelType':_0xeda3c9[_0xf70343(0xc2)]??_0x226efe[_0xf70343(0xc2)],'endpointUrl':hasOwn(_0xeda3c9,_0xf70343(0x10a))?_0xeda3c9[_0xf70343(0x10a)]:_0x226efe[_0xf70343(0xea)],'channelConfig':hasOwn(_0xeda3c9,_0xf70343(0xb7))?serializeChannelConfig(_0xeda3c9[_0xf70343(0xb7)]):_0x226efe['channelConfigRaw'],'description':hasOwn(_0xeda3c9,_0xf70343(0xba))?_0xeda3c9[_0xf70343(0xba)]:_0x226efe[_0xf70343(0xba)],'connectTimeout':hasOwn(_0xeda3c9,_0xf70343(0xd4))?_0xeda3c9[_0xf70343(0xd4)]:_0x226efe[_0xf70343(0xd4)],'readTimeout':hasOwn(_0xeda3c9,_0xf70343(0x83))?_0xeda3c9[_0xf70343(0x83)]:_0x226efe[_0xf70343(0x83)]};}export function plannedUpdateProjection(_0x52220b,_0x577362){const _0x49bd4b=a197_0x2ac617;return projectNotificationConfig({'id':_0x52220b['id'],'appCode':_0x52220b['appCode'],'configCode':_0x52220b[_0x49bd4b(0x91)],'configName':_0x577362[_0x49bd4b(0x100)]??_0x52220b[_0x49bd4b(0x100)],'channelType':_0x577362[_0x49bd4b(0xc2)]??_0x52220b['channelType'],'endpointUrl':hasOwn(_0x577362,'endpointUrl')?_0x577362[_0x49bd4b(0x10a)]:_0x52220b['endpointUrlRaw'],'channelConfig':hasOwn(_0x577362,_0x49bd4b(0xb7))?_0x577362[_0x49bd4b(0xb7)]:_0x52220b[_0x49bd4b(0x8b)],'description':hasOwn(_0x577362,_0x49bd4b(0xba))?_0x577362[_0x49bd4b(0xba)]:_0x52220b[_0x49bd4b(0xba)],'connectTimeout':hasOwn(_0x577362,'connectTimeout')?_0x577362[_0x49bd4b(0xd4)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x52220b[_0x49bd4b(0xd4)],'readTimeout':hasOwn(_0x577362,'readTimeout')?_0x577362[_0x49bd4b(0x83)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x52220b[_0x49bd4b(0x83)]});}export function requestedSafeFieldsMatch(_0x52c4c5,_0x4b1c8d,_0x17eb5d){const _0x152148=a197_0x2ac617,_0x59d782=[],_0x27fe88=[],_0x2b04a9=[];for(const _0x3c9c24 of[_0x152148(0x100),'channelType',_0x152148(0xba)]){if(!hasOwn(_0x17eb5d,_0x3c9c24))continue;_0x2b04a9[_0x152148(0xe8)](_0x3c9c24),_0x59d782[_0x152148(0xe8)](_0x4b1c8d[_0x3c9c24]===_0x17eb5d[_0x3c9c24]),_0x27fe88[_0x152148(0xe8)](_0x52c4c5[_0x3c9c24]!==_0x17eb5d[_0x3c9c24]&&_0x4b1c8d[_0x3c9c24]===_0x17eb5d[_0x3c9c24]);}for(const _0x59daed of[_0x152148(0xd4),_0x152148(0x83)]){if(!hasOwn(_0x17eb5d,_0x59daed))continue;const _0x1f38b4=_0x17eb5d[_0x59daed]??(_0x59daed===_0x152148(0xd4)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x2b04a9['push'](_0x59daed),_0x59d782[_0x152148(0xe8)](_0x4b1c8d[_0x59daed]===_0x1f38b4),_0x27fe88[_0x152148(0xe8)](_0x52c4c5[_0x59daed]!==_0x1f38b4&&_0x4b1c8d[_0x59daed]===_0x1f38b4);}return hasOwn(_0x17eb5d,_0x152148(0x10a))&&_0x17eb5d[_0x152148(0x10a)]===null&&(_0x2b04a9[_0x152148(0xe8)](_0x152148(0x9e)),_0x59d782['push'](_0x4b1c8d[_0x152148(0xea)]===null||_0x4b1c8d['endpointUrlRaw']===''),_0x27fe88[_0x152148(0xe8)](_0x52c4c5['endpointUrlRaw']!==null&&_0x52c4c5[_0x152148(0xea)]!==''&&(_0x4b1c8d[_0x152148(0xea)]===null||_0x4b1c8d[_0x152148(0xea)]===''))),{'allMatch':_0x59d782[_0x152148(0xc1)](Boolean),'provesChange':_0x27fe88[_0x152148(0xfb)](Boolean),'verifiedFields':_0x2b04a9};}export function validateNotificationDeleteReadback(_0xf5b55d,_0x16e87b,_0x3dffc6){const _0x18c65b=a197_0x2ac617;for(const [_0x38d99b,_0x1ac0c4]of _0xf5b55d[_0x18c65b(0xef)]()){if(!Number[_0x18c65b(0x9b)](_0x1ac0c4['id'])||_0x1ac0c4['id']<=0x0)throw notificationError(_0x18c65b(0x108),_0x18c65b(0xc8)+(_0x38d99b+0x1)+_0x18c65b(0xb6));if(_0x1ac0c4[_0x18c65b(0xe6)]!==_0x16e87b)throw notificationError('notification_config_response_invalid',_0x18c65b(0xc8)+(_0x38d99b+0x1)+_0x18c65b(0xa9));if(_0x1ac0c4[_0x18c65b(0xc2)]!==_0x3dffc6)throw notificationError('notification_config_response_invalid',_0x18c65b(0xc8)+(_0x38d99b+0x1)+_0x18c65b(0xab));}}export function safeApiFailure(_0xc01926,_0x454b2b,_0x18cbf4){const _0x577de9=a197_0x2ac617;return notificationError(_0x577de9(0xd2)+_0xc01926+'_'+(_0x454b2b===_0x577de9(0x8c)?'failed':_0x454b2b+'_unavailable'),_0x577de9(0x87)+_0xc01926+'\x20'+_0x454b2b+_0x577de9(0xcf),_0x18cbf4);}export function notificationLookupCommand(_0x4ea181,_0x133fa6){const _0x1a145b=a197_0x2ac617;return _0x1a145b(0xb3)+_0x4ea181+_0x1a145b(0x9d)+_0x133fa6+_0x1a145b(0x84);}function validateNotificationDocument(_0x511001,_0x535fa5){const _0x238412=a197_0x2ac617;for(const _0xc7171a of Object[_0x238412(0xed)](_0x511001)){if(FORBIDDEN_IDENTITY_FIELDS[_0x238412(0x103)](_0xc7171a))throw notificationError('notification_config_field_forbidden',_0x238412(0x105)+_0xc7171a+_0x238412(0xa6));if(!ALLOWED_INPUT_FIELDS[_0x238412(0x103)](_0xc7171a))throw notificationError('notification_config_field_unknown',_0x238412(0xf4)+_0xc7171a+'\x22.');}if(_0x535fa5==='update'&&Object[_0x238412(0xed)](_0x511001)[_0x238412(0xa1)]===0x0)throw notificationError(_0x238412(0xf2),_0x238412(0xd5));const _0x2f4b44={};if(hasOwn(_0x511001,'configName'))_0x2f4b44['configName']=validateRequiredString(_0x511001[_0x238412(0x100)],_0x238412(0x100),0x80);else{if(_0x535fa5===_0x238412(0xec))throw notificationError('notification_config_field_required',_0x238412(0xda)+_0x238412(0xf5));}if(hasOwn(_0x511001,_0x238412(0xc2))){if(typeof _0x511001['channelType']!=='string')throw invalidFieldType(_0x238412(0xc2),_0x238412(0xbf));const _0x440764=_0x511001[_0x238412(0xc2)][_0x238412(0x104)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x238412(0xe3)](_0x440764))throw notificationError(_0x238412(0xce),_0x238412(0xc9),_0x238412(0xa2)+NOTIFICATION_CHANNEL_TYPES[_0x238412(0xdf)](',\x20')+'.');_0x2f4b44[_0x238412(0xc2)]=_0x440764;}else{if(_0x535fa5===_0x238412(0xec))throw notificationError(_0x238412(0xe9),'Create\x20JSON\x20requires\x20field\x20'+_0x238412(0xe0));}for(const [_0xd55f84,_0x1c085e]of[[_0x238412(0x10a),0x200],[_0x238412(0xba),0x100]]){if(!hasOwn(_0x511001,_0xd55f84))continue;const _0x5a1965=_0x511001[_0xd55f84];if(_0x5a1965!==null&&typeof _0x5a1965!==_0x238412(0xa7))throw invalidFieldType(_0xd55f84,_0x238412(0xeb));if(typeof _0x5a1965===_0x238412(0xa7)&&_0x5a1965['length']>_0x1c085e)throw notificationError(_0x238412(0xce),_0x238412(0x105)+_0xd55f84+_0x238412(0x9a)+_0x1c085e+_0x238412(0xdb));_0x2f4b44[_0xd55f84]=_0x5a1965;}if(hasOwn(_0x511001,_0x238412(0xb7))){const _0x28b857=_0x511001[_0x238412(0xb7)];if(_0x28b857===null&&_0x535fa5===_0x238412(0xec))throw invalidFieldType(_0x238412(0xb7),_0x238412(0xf6));if(_0x28b857!==null&&!isJsonObject(_0x28b857))throw invalidFieldType('channelConfig',_0x535fa5===_0x238412(0xd8)?_0x238412(0x8f):_0x238412(0xf6));_0x28b857!==null&&validateChannelConfigFields(_0x2f4b44[_0x238412(0xc2)],_0x28b857),_0x2f4b44[_0x238412(0xb7)]=_0x28b857;}for(const _0x44829a of[_0x238412(0xd4),_0x238412(0x83)]){if(!hasOwn(_0x511001,_0x44829a))continue;const _0xa5b1c=_0x511001[_0x44829a];if(_0xa5b1c!==null&&(!Number[_0x238412(0x9b)](_0xa5b1c)||_0xa5b1c<0x0))throw notificationError(_0x238412(0xce),_0x238412(0x105)+_0x44829a+'\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.');_0x2f4b44[_0x44829a]=_0xa5b1c;}return _0x2f4b44;}function validateRequiredString(_0x1ce000,_0x578490,_0x3ac2c9){const _0x33ad8a=a197_0x2ac617;if(typeof _0x1ce000!==_0x33ad8a(0xa7))throw invalidFieldType(_0x578490,'a\x20non-empty\x20string');const _0x1adbcc=_0x1ce000[_0x33ad8a(0x104)]();if(!_0x1adbcc)throw notificationError(_0x33ad8a(0xce),'Notification\x20JSON\x20field\x20\x22'+_0x578490+_0x33ad8a(0x92));if(_0x1adbcc[_0x33ad8a(0xa1)]>_0x3ac2c9)throw notificationError(_0x33ad8a(0xce),_0x33ad8a(0x105)+_0x578490+_0x33ad8a(0x9a)+_0x3ac2c9+_0x33ad8a(0xdb));return _0x1adbcc;}function validateChannelConfigFields(_0x1839c8,_0x155ebf){const _0x290187=a197_0x2ac617;if(hasOwn(_0x155ebf,_0x290187(0x85)))throw forbiddenChannelConfigField(_0x290187(0x85));if(_0x1839c8===_0x290187(0xbb))for(const _0x30b5fe of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x155ebf,_0x30b5fe))throw forbiddenChannelConfigField(_0x30b5fe);}}function forbiddenChannelConfigField(_0x3e2ab6){const _0x15c17e=a197_0x2ac617;return notificationError(_0x15c17e(0xb8),_0x15c17e(0x95)+_0x3e2ab6+_0x15c17e(0xd1));}function a197_0x31f0(){const _0x40562f=['Invalid\x20--','join','\x22channelType\x22.','715696uiVHis','str','includes','updateTime','setEncoding','appCode','replyTo','push','notification_config_field_required','endpointUrlRaw','a\x20string\x20or\x20null','create','keys','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','entries','createTime','WECOM','notification_config_update_empty','kind','Unknown\x20notification\x20JSON\x20field\x20\x22','\x22configName\x22.','a\x20JSON\x20object','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','FEISHU','Missing\x20notification\x20JSON\x20source.','some','type','14912600tYaqGh','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','notification_config_id_invalid','configName','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','name','has','trim','Notification\x20JSON\x20field\x20\x22','\x22\x20must\x20be\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','notification_config_response_invalid','1042wJvydL','endpointUrl','channelCode','readTimeout','\x20--format\x20compress','messageTemplate','preflight','Notification\x20config\x20','37806hpcVJR','3180016tfctTX','DINGTALK','channelConfigRaw','mutation','call','\x20is\x20missing\x20required\x20field\x20\x22','a\x20JSON\x20object\x20or\x20null','\x20must\x20be\x20an\x20object.','configCode','\x22\x20must\x20be\x20a\x20non-empty\x20string.','num','bccList','Notification\x20JSON\x20channelConfig\x20field\x20\x22','bool','apiError','recipients','hasOwnProperty','\x22\x20cannot\x20exceed\x20','isSafeInteger','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','\x20--type\x20','endpointUrl:null','path','boolean','length','Allowed\x20values:\x20','utf8','896lFcheX','environment\x20variable\x20','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','string','stdin','\x20has\x20an\x20invalid\x20appCode.','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','\x20has\x20an\x20invalid\x20channelType.','file\x20','file','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','parse','Notification\x20JSON\x20from\x20','\x20has\x20an\x20unsupported\x20channelType.','env','rabetbase\x20notification\x20config-list\x20--appcode\x20','dry-run','1534746ghgwCP','\x20has\x20an\x20invalid\x20id.','channelConfig','notification_config_channel_field_forbidden','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','description','EMAIL','Application-level\x20notification\x20config\x20ID','\x20has\x20invalid\x20field\x20\x22','validation','a\x20supported\x20string','notification_config_json_invalid','every','channelType','isArray','stringify','228HVxOwH','prototype','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','Notification\x20config\x20list\x20item\x20','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Item\x20','<redacted>','object','15TVfODM','notification_config_field_invalid','\x20failed.','10438407SpzJpo','\x22\x20is\x20forbidden.','notification_config_','notification_config_source_unavailable','connectTimeout','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','ccList','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','update','from-env','Create\x20JSON\x20requires\x20field\x20','\x20characters.','Invalid\x20notification\x20config\x20response.','fromName'];a197_0x31f0=function(){return _0x40562f;};return a197_0x31f0();}function invalidFieldType(_0x10b53b,_0x201aa9){const _0x21df8b=a197_0x2ac617;return notificationError(_0x21df8b(0xce),'Notification\x20JSON\x20field\x20\x22'+_0x10b53b+_0x21df8b(0x106)+_0x201aa9+'.');}function serializeChannelConfig(_0x57ab1a){const _0x535d50=a197_0x2ac617;return _0x57ab1a===null||_0x57ab1a===undefined?null:JSON[_0x535d50(0xc4)](_0x57ab1a);}function redactSensitive(_0x1479cb){const _0x412f6d=a197_0x2ac617;return _0x1479cb===null||_0x1479cb===undefined||_0x1479cb===''?null:_0x412f6d(0xcb);}function requireResponseString(_0x101d86,_0x2bbd9e,_0x4e5b24){const _0x4e2ba6=a197_0x2ac617;if(typeof _0x101d86!=='string'||_0x101d86[_0x4e2ba6(0x104)]()==='')throw CliErrors[_0x4e2ba6(0x97)](_0x4e2ba6(0xdc),_0x4e2ba6(0xca)+(_0x4e5b24+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x2bbd9e+'\x22.');return _0x101d86[_0x4e2ba6(0x104)]();}function requireExactString(_0x4a2ef8,_0x38ab9f,_0x4ca451){const _0x5edc99=a197_0x2ac617;if(typeof _0x4a2ef8!=='string'||_0x4a2ef8[_0x5edc99(0x104)]()==='')throw notificationError('notification_config_response_invalid',_0x5edc99(0x87)+_0x4ca451+_0x5edc99(0x8e)+_0x38ab9f+'\x22.');return _0x4a2ef8['trim']();}function responseNullableString(_0x2c6ac6,_0x3cbfc5,_0xd92bf0){const _0x418c09=a197_0x2ac617;if(_0x2c6ac6===undefined||_0x2c6ac6===null)return null;if(typeof _0x2c6ac6!==_0x418c09(0xa7))throw notificationError(_0x418c09(0x108),_0x418c09(0x87)+_0xd92bf0+_0x418c09(0xbd)+_0x3cbfc5+'\x22.');return _0x2c6ac6;}function responseNullableTimeout(_0x538c73,_0x3bcea5,_0x1e3c34){const _0x1f3b5f=a197_0x2ac617;if(_0x538c73===undefined||_0x538c73===null)return null;if(!Number['isSafeInteger'](_0x538c73)||_0x538c73<0x0)throw notificationError(_0x1f3b5f(0x108),'Notification\x20config\x20'+_0x1e3c34+_0x1f3b5f(0xbd)+_0x3bcea5+'\x22.');return _0x538c73;}function normalizeNullableString(_0x109625){const _0x5f1c3f=a197_0x2ac617;return typeof _0x109625===_0x5f1c3f(0xa7)?_0x109625:null;}function isJsonObject(_0x518d03){const _0x58b40d=a197_0x2ac617;return _0x518d03!==null&&typeof _0x518d03===_0x58b40d(0xcc)&&!Array[_0x58b40d(0xc3)](_0x518d03);}function hasOwn(_0x326d18,_0x431e58){const _0x2cdaa9=a197_0x2ac617;return Object[_0x2cdaa9(0xc6)][_0x2cdaa9(0x99)][_0x2cdaa9(0x8d)](_0x326d18,_0x431e58);}async function readStdin(){const _0xd518a1=a197_0x2ac617;let _0x48d464='';process[_0xd518a1(0xa8)][_0xd518a1(0xe5)](_0xd518a1(0xa3));for await(const _0x554bf1 of process[_0xd518a1(0xa8)])_0x48d464+=_0x554bf1;return _0x48d464;}
1
+ const a197_0x51c123=a197_0x62a1;(function(_0xd95dab,_0x5401d2){const _0x21c77e=a197_0x62a1,_0x34ce2c=_0xd95dab();while(!![]){try{const _0x10325f=-parseInt(_0x21c77e(0x1d7))/0x1+-parseInt(_0x21c77e(0x1de))/0x2+parseInt(_0x21c77e(0x218))/0x3*(parseInt(_0x21c77e(0x214))/0x4)+parseInt(_0x21c77e(0x20c))/0x5*(parseInt(_0x21c77e(0x228))/0x6)+parseInt(_0x21c77e(0x1f8))/0x7+parseInt(_0x21c77e(0x202))/0x8*(parseInt(_0x21c77e(0x1cd))/0x9)+parseInt(_0x21c77e(0x22f))/0xa*(-parseInt(_0x21c77e(0x1f1))/0xb);if(_0x10325f===_0x5401d2)break;else _0x34ce2c['push'](_0x34ce2c['shift']());}catch(_0x2d7a4e){_0x34ce2c['push'](_0x34ce2c['shift']());}}}(a197_0x4274,0x6026b));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=[a197_0x51c123(0x1ec),a197_0x51c123(0x21e),a197_0x51c123(0x1f4),a197_0x51c123(0x1d9),'WEBHOOK'];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set(['configName',a197_0x51c123(0x1f9),a197_0x51c123(0x1bc),a197_0x51c123(0x221),a197_0x51c123(0x209),a197_0x51c123(0x21b),a197_0x51c123(0x1f2)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a197_0x51c123(0x1df),a197_0x51c123(0x1f6),a197_0x51c123(0x1eb)]),EMAIL_RECIPIENT_FIELDS=new Set([a197_0x51c123(0x1d4),'recipients',a197_0x51c123(0x1f0),a197_0x51c123(0x1fd),a197_0x51c123(0x1be),a197_0x51c123(0x1d6),a197_0x51c123(0x22e),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a197_0x51c123(0x1e1),'type':'string','required':![],'description':a197_0x51c123(0x220)},{'name':'stdin','type':a197_0x51c123(0x1ff),'required':![],'default':![],'description':a197_0x51c123(0x1bb)},{'name':a197_0x51c123(0x1b4),'type':a197_0x51c123(0x1e2),'required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable'}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a197_0x51c123(0x206),'required':!![],'description':a197_0x51c123(0x200)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x5fc04a,_0xfcd853,_0x392451){return new CliError(_0x5fc04a,0x1,_0xfcd853,_0x392451);}export function readNotificationId(_0x3276d0){const _0x4e4c11=a197_0x51c123,_0x26b0f6=_0x3276d0[_0x4e4c11(0x1cf)]('id');if(!Number[_0x4e4c11(0x231)](_0x26b0f6)||_0x26b0f6<=0x0)throw notificationError(_0x4e4c11(0x1b3),'--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x26b0f6;}export function requireNotificationExplicitYes(_0x399d3e){const _0x4d7630=a197_0x51c123;if(_0x399d3e['bool'](_0x4d7630(0x1ba))||_0x399d3e[_0x4d7630(0x21d)](_0x4d7630(0x208)))return;throw notificationError(_0x4d7630(0x216),_0x4d7630(0x1b6),'Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x6c5774,_0x196a71=a197_0x51c123(0x20b),_0x305917=a197_0x51c123(0x1ec)){const _0x54687c=a197_0x51c123,_0x15bf4a=_0x6c5774[_0x54687c(0x1ed)](_0x196a71)['trim']()||_0x305917;if(!NOTIFICATION_CHANNEL_TYPES[_0x54687c(0x1c2)](_0x15bf4a))throw CliErrors['validation']('Invalid\x20--'+_0x196a71+':\x20'+_0x15bf4a,_0x54687c(0x1d0)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x15bf4a;}export function assertSingleNotificationSource(_0x70c9f8){const _0x1f3a30=a197_0x51c123,_0x41aca4=[],_0xf2a12=_0x70c9f8[_0x1f3a30(0x1ed)](_0x1f3a30(0x1e1))[_0x1f3a30(0x1bd)]();if(_0xf2a12)_0x41aca4['push']({'kind':'file','path':_0xf2a12});if(_0x70c9f8[_0x1f3a30(0x21d)](_0x1f3a30(0x1ca)))_0x41aca4[_0x1f3a30(0x1d1)]({'kind':_0x1f3a30(0x1ca)});const _0x11620c=_0x70c9f8[_0x1f3a30(0x1ed)]('from-env')[_0x1f3a30(0x1bd)]();if(_0x11620c)_0x41aca4['push']({'kind':_0x1f3a30(0x20a),'name':_0x11620c});if(_0x41aca4[_0x1f3a30(0x1db)]===0x0)throw CliErrors[_0x1f3a30(0x232)](_0x1f3a30(0x1e6),_0x1f3a30(0x1fc));if(_0x41aca4['length']>0x1)throw CliErrors[_0x1f3a30(0x232)](_0x1f3a30(0x1d8),_0x1f3a30(0x1fc));return _0x41aca4[0x0];}export async function readNotificationDocument(_0x49e1e9,_0x2a74c7){const _0x44daab=a197_0x51c123,_0x51e2a0=assertSingleNotificationSource(_0x49e1e9),_0x5b28ce=_0x51e2a0[_0x44daab(0x1ea)]===_0x44daab(0x1e1)?'file\x20'+_0x51e2a0[_0x44daab(0x224)]:_0x51e2a0[_0x44daab(0x1ea)]===_0x44daab(0x20a)?'environment\x20variable\x20'+_0x51e2a0[_0x44daab(0x229)]:_0x44daab(0x1ca);let _0x1dc2d7;try{if(_0x51e2a0[_0x44daab(0x1ea)]==='file')_0x1dc2d7=await readFile(_0x51e2a0[_0x44daab(0x224)],_0x44daab(0x1e4));else{if(_0x51e2a0[_0x44daab(0x1ea)]===_0x44daab(0x20a)){if(!(_0x51e2a0[_0x44daab(0x229)]in process.env))throw notificationError('notification_config_source_unavailable','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20'+_0x51e2a0[_0x44daab(0x229)]);_0x1dc2d7=process.env[_0x51e2a0.name]??'';}else _0x1dc2d7=await readStdin();}}catch(_0x32f2e9){if(_0x32f2e9 instanceof CliError)throw _0x32f2e9;throw notificationError(_0x44daab(0x225),_0x44daab(0x233)+_0x5b28ce+'.');}let _0x39c415;try{_0x39c415=JSON['parse'](_0x1dc2d7);}catch{throw notificationError(_0x44daab(0x223),_0x44daab(0x213)+_0x5b28ce+_0x44daab(0x21f),_0x44daab(0x1c4));}if(!isJsonObject(_0x39c415))throw notificationError(_0x44daab(0x223),_0x44daab(0x213)+_0x5b28ce+'\x20must\x20be\x20an\x20object.');return validateNotificationDocument(_0x39c415,_0x2a74c7);}export function projectNotificationListConfig(_0x4ea650,_0xa24ed9){const _0xf68613=a197_0x51c123;return{'id':typeof _0x4ea650['id']===_0xf68613(0x206)?_0x4ea650['id']:null,'configCode':requireResponseString(_0x4ea650['configCode'],_0xf68613(0x1f6),_0xa24ed9),'configName':requireResponseString(_0x4ea650[_0xf68613(0x219)],'configName',_0xa24ed9),'channelType':requireResponseString(_0x4ea650[_0xf68613(0x1f9)],_0xf68613(0x1f9),_0xa24ed9),'description':normalizeNullableString(_0x4ea650[_0xf68613(0x209)]),'createTime':normalizeNullableString(_0x4ea650['createTime']),'updateTime':normalizeNullableString(_0x4ea650['updateTime'])};}export function normalizeExactNotificationConfig(_0x9f518c,_0x4158c0,_0xe90409){const _0x48f3b3=a197_0x51c123;if(!Number[_0x48f3b3(0x231)](_0x9f518c['id'])||_0x9f518c['id']!==_0x4158c0)throw notificationError(_0x48f3b3(0x20d),_0x48f3b3(0x205)+_0x4158c0+'.');if(_0x9f518c[_0x48f3b3(0x1df)]!==_0xe90409)throw notificationError(_0x48f3b3(0x20d),_0x48f3b3(0x1b5)+_0x4158c0+_0x48f3b3(0x1dd));const _0x3b5270=requireExactString(_0x9f518c[_0x48f3b3(0x219)],'configName',_0x4158c0),_0x4e34ab=requireExactString(_0x9f518c[_0x48f3b3(0x1f6)],_0x48f3b3(0x1f6),_0x4158c0),_0xf6750c=requireExactString(_0x9f518c[_0x48f3b3(0x1f9)],_0x48f3b3(0x1f9),_0x4158c0);if(!NOTIFICATION_CHANNEL_TYPES[_0x48f3b3(0x1c2)](_0xf6750c))throw notificationError(_0x48f3b3(0x20d),'Notification\x20config\x20'+_0x4158c0+_0x48f3b3(0x1c8));const _0x5d3350=responseNullableString(_0x9f518c[_0x48f3b3(0x1bc)],_0x48f3b3(0x1bc),_0x4158c0),_0x254f23=responseNullableString(_0x9f518c[_0x48f3b3(0x221)],_0x48f3b3(0x221),_0x4158c0),_0x3d5b5a=responseNullableString(_0x9f518c[_0x48f3b3(0x209)],'description',_0x4158c0),_0x588bb9=responseNullableTimeout(_0x9f518c[_0x48f3b3(0x21b)],_0x48f3b3(0x21b),_0x4158c0),_0x3ed077=responseNullableTimeout(_0x9f518c[_0x48f3b3(0x1f2)],'readTimeout',_0x4158c0);return{'id':_0x4158c0,'appCode':_0xe90409,'configCode':_0x4e34ab,'configName':_0x3b5270,'channelType':_0xf6750c,'endpointUrl':redactSensitive(_0x5d3350),'channelConfig':redactSensitive(_0x254f23),'description':_0x3d5b5a,'connectTimeout':_0x588bb9,'readTimeout':_0x3ed077,'endpointUrlRaw':_0x5d3350,'channelConfigRaw':_0x254f23};}function a197_0x62a1(_0x15ec07,_0x36259f){_0x15ec07=_0x15ec07-0x1b2;const _0x4274b5=a197_0x4274();let _0x62a16=_0x4274b5[_0x15ec07];return _0x62a16;}export async function requireExactNotificationConfig(_0x4b40fc,_0x209b56,_0x72dbb3){const _0x2497bc=a197_0x51c123;let _0x59848f;try{_0x59848f=await getNotificationChannelConfig(_0x209b56,_0x4b40fc);}catch{throw safeApiFailure(_0x72dbb3,'preflight',_0x2497bc(0x215)+_0x4b40fc+_0x2497bc(0x22c));}return normalizeExactNotificationConfig(_0x59848f,_0x209b56,_0x4b40fc);}export function projectNotificationConfig(_0x26852c){const _0x55e8a9=a197_0x51c123;return{'id':_0x26852c['id']??null,'appCode':_0x26852c[_0x55e8a9(0x1df)],'configCode':_0x26852c[_0x55e8a9(0x1f6)]??null,'configName':_0x26852c['configName'],'channelType':_0x26852c['channelType'],'endpointUrl':redactSensitive(_0x26852c['endpointUrl']),'channelConfig':redactSensitive(_0x26852c[_0x55e8a9(0x221)]),'description':_0x26852c[_0x55e8a9(0x209)]??null,'connectTimeout':_0x26852c[_0x55e8a9(0x21b)]??null,'readTimeout':_0x26852c[_0x55e8a9(0x1f2)]??null};}export function notificationSelector(_0x486d53){const _0x1bf32f=a197_0x51c123;return{'appCode':_0x486d53['appCode'],'id':_0x486d53['id'],'configCode':_0x486d53[_0x1bf32f(0x1f6)],'configName':_0x486d53[_0x1bf32f(0x219)],'channelType':_0x486d53[_0x1bf32f(0x1f9)]};}export function createMutationInput(_0x31c74d,_0xfacbc5){const _0x34ec5f=a197_0x51c123;return{'appCode':_0x31c74d,'configName':_0xfacbc5['configName'],'channelType':_0xfacbc5[_0x34ec5f(0x1f9)],...hasOwn(_0xfacbc5,_0x34ec5f(0x1bc))?{'endpointUrl':_0xfacbc5['endpointUrl']}:{},...hasOwn(_0xfacbc5,_0x34ec5f(0x221))?{'channelConfig':serializeChannelConfig(_0xfacbc5[_0x34ec5f(0x221)])}:{},...hasOwn(_0xfacbc5,_0x34ec5f(0x209))?{'description':_0xfacbc5[_0x34ec5f(0x209)]}:{},...hasOwn(_0xfacbc5,_0x34ec5f(0x21b))?{'connectTimeout':_0xfacbc5['connectTimeout']}:{},...hasOwn(_0xfacbc5,_0x34ec5f(0x1f2))?{'readTimeout':_0xfacbc5[_0x34ec5f(0x1f2)]}:{}};}export function mergeUpdateInput(_0x57fff1,_0x5888c1){const _0x54ec22=a197_0x51c123;return{'id':_0x57fff1['id'],'appCode':_0x57fff1['appCode'],'configName':_0x5888c1[_0x54ec22(0x219)]??_0x57fff1[_0x54ec22(0x219)],'channelType':_0x5888c1[_0x54ec22(0x1f9)]??_0x57fff1[_0x54ec22(0x1f9)],'endpointUrl':hasOwn(_0x5888c1,_0x54ec22(0x1bc))?_0x5888c1['endpointUrl']:_0x57fff1[_0x54ec22(0x1f3)],'channelConfig':hasOwn(_0x5888c1,_0x54ec22(0x221))?serializeChannelConfig(_0x5888c1[_0x54ec22(0x221)]):_0x57fff1[_0x54ec22(0x1c1)],'description':hasOwn(_0x5888c1,'description')?_0x5888c1[_0x54ec22(0x209)]:_0x57fff1[_0x54ec22(0x209)],'connectTimeout':hasOwn(_0x5888c1,_0x54ec22(0x21b))?_0x5888c1[_0x54ec22(0x21b)]:_0x57fff1['connectTimeout'],'readTimeout':hasOwn(_0x5888c1,'readTimeout')?_0x5888c1[_0x54ec22(0x1f2)]:_0x57fff1[_0x54ec22(0x1f2)]};}export function plannedUpdateProjection(_0x81e93e,_0x1763f0){const _0x546d4a=a197_0x51c123;return projectNotificationConfig({'id':_0x81e93e['id'],'appCode':_0x81e93e['appCode'],'configCode':_0x81e93e[_0x546d4a(0x1f6)],'configName':_0x1763f0[_0x546d4a(0x219)]??_0x81e93e[_0x546d4a(0x219)],'channelType':_0x1763f0['channelType']??_0x81e93e[_0x546d4a(0x1f9)],'endpointUrl':hasOwn(_0x1763f0,'endpointUrl')?_0x1763f0[_0x546d4a(0x1bc)]:_0x81e93e['endpointUrlRaw'],'channelConfig':hasOwn(_0x1763f0,'channelConfig')?_0x1763f0['channelConfig']:_0x81e93e['channelConfigRaw'],'description':hasOwn(_0x1763f0,'description')?_0x1763f0[_0x546d4a(0x209)]:_0x81e93e[_0x546d4a(0x209)],'connectTimeout':hasOwn(_0x1763f0,_0x546d4a(0x21b))?_0x1763f0[_0x546d4a(0x21b)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x81e93e['connectTimeout'],'readTimeout':hasOwn(_0x1763f0,_0x546d4a(0x1f2))?_0x1763f0[_0x546d4a(0x1f2)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x81e93e[_0x546d4a(0x1f2)]});}export function requestedSafeFieldsMatch(_0x134dd8,_0xefbe8f,_0x4bd6b8){const _0x415bdd=a197_0x51c123,_0x2d2d78=[],_0x335d5f=[],_0x339cee=[];for(const _0x3e07cb of['configName',_0x415bdd(0x1f9),_0x415bdd(0x209)]){if(!hasOwn(_0x4bd6b8,_0x3e07cb))continue;_0x339cee[_0x415bdd(0x1d1)](_0x3e07cb),_0x2d2d78[_0x415bdd(0x1d1)](_0xefbe8f[_0x3e07cb]===_0x4bd6b8[_0x3e07cb]),_0x335d5f['push'](_0x134dd8[_0x3e07cb]!==_0x4bd6b8[_0x3e07cb]&&_0xefbe8f[_0x3e07cb]===_0x4bd6b8[_0x3e07cb]);}for(const _0x2eea37 of[_0x415bdd(0x21b),_0x415bdd(0x1f2)]){if(!hasOwn(_0x4bd6b8,_0x2eea37))continue;const _0x33f261=_0x4bd6b8[_0x2eea37]??(_0x2eea37==='connectTimeout'?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x339cee[_0x415bdd(0x1d1)](_0x2eea37),_0x2d2d78[_0x415bdd(0x1d1)](_0xefbe8f[_0x2eea37]===_0x33f261),_0x335d5f[_0x415bdd(0x1d1)](_0x134dd8[_0x2eea37]!==_0x33f261&&_0xefbe8f[_0x2eea37]===_0x33f261);}return hasOwn(_0x4bd6b8,_0x415bdd(0x1bc))&&_0x4bd6b8[_0x415bdd(0x1bc)]===null&&(_0x339cee['push'](_0x415bdd(0x1b9)),_0x2d2d78[_0x415bdd(0x1d1)](_0xefbe8f[_0x415bdd(0x1f3)]===null||_0xefbe8f['endpointUrlRaw']===''),_0x335d5f['push'](_0x134dd8[_0x415bdd(0x1f3)]!==null&&_0x134dd8[_0x415bdd(0x1f3)]!==''&&(_0xefbe8f['endpointUrlRaw']===null||_0xefbe8f[_0x415bdd(0x1f3)]===''))),{'allMatch':_0x2d2d78[_0x415bdd(0x1ef)](Boolean),'provesChange':_0x335d5f[_0x415bdd(0x1bf)](Boolean),'verifiedFields':_0x339cee};}export function validateNotificationDeleteReadback(_0x1be10c,_0x2ffe17,_0x323636){const _0x1304e4=a197_0x51c123;for(const [_0x1cbe8e,_0x166f5e]of _0x1be10c[_0x1304e4(0x1da)]()){if(!Number['isSafeInteger'](_0x166f5e['id'])||_0x166f5e['id']<=0x0)throw notificationError(_0x1304e4(0x20d),'Notification\x20config\x20list\x20item\x20'+(_0x1cbe8e+0x1)+_0x1304e4(0x1fa));if(_0x166f5e[_0x1304e4(0x1df)]!==_0x2ffe17)throw notificationError(_0x1304e4(0x20d),_0x1304e4(0x211)+(_0x1cbe8e+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0x166f5e[_0x1304e4(0x1f9)]!==_0x323636)throw notificationError(_0x1304e4(0x20d),_0x1304e4(0x211)+(_0x1cbe8e+0x1)+_0x1304e4(0x1dc));}}export function safeApiFailure(_0x4ea72c,_0x12c234,_0x588760){const _0x20a6e9=a197_0x51c123;return notificationError(_0x20a6e9(0x1b7)+_0x4ea72c+'_'+(_0x12c234===_0x20a6e9(0x212)?_0x20a6e9(0x1b2):_0x12c234+_0x20a6e9(0x1c0)),_0x20a6e9(0x1b5)+_0x4ea72c+'\x20'+_0x12c234+'\x20failed.',_0x588760);}export function notificationLookupCommand(_0x385255,_0x312d69){const _0x56493a=a197_0x51c123;return'rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x385255+_0x56493a(0x21a)+_0x312d69+_0x56493a(0x1ee);}function validateNotificationDocument(_0x10c11d,_0x109733){const _0x41db8e=a197_0x51c123;for(const _0x745da of Object[_0x41db8e(0x1f7)](_0x10c11d)){if(FORBIDDEN_IDENTITY_FIELDS[_0x41db8e(0x1ce)](_0x745da))throw notificationError('notification_config_field_forbidden',_0x41db8e(0x1f5)+_0x745da+_0x41db8e(0x201));if(!ALLOWED_INPUT_FIELDS['has'](_0x745da))throw notificationError(_0x41db8e(0x1e3),'Unknown\x20notification\x20JSON\x20field\x20\x22'+_0x745da+'\x22.');}if(_0x109733===_0x41db8e(0x22a)&&Object[_0x41db8e(0x1f7)](_0x10c11d)[_0x41db8e(0x1db)]===0x0)throw notificationError(_0x41db8e(0x1e9),_0x41db8e(0x1b8));const _0x1f5eaf={};if(hasOwn(_0x10c11d,_0x41db8e(0x219)))_0x1f5eaf[_0x41db8e(0x219)]=validateRequiredString(_0x10c11d[_0x41db8e(0x219)],_0x41db8e(0x219),0x80);else{if(_0x109733==='create')throw notificationError('notification_config_field_required',_0x41db8e(0x226)+_0x41db8e(0x1e8));}if(hasOwn(_0x10c11d,_0x41db8e(0x1f9))){if(typeof _0x10c11d[_0x41db8e(0x1f9)]!==_0x41db8e(0x1e2))throw invalidFieldType(_0x41db8e(0x1f9),'a\x20supported\x20string');const _0x334c56=_0x10c11d[_0x41db8e(0x1f9)][_0x41db8e(0x1bd)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x334c56))throw notificationError(_0x41db8e(0x1c9),_0x41db8e(0x20e),_0x41db8e(0x1d0)+NOTIFICATION_CHANNEL_TYPES[_0x41db8e(0x1c6)](',\x20')+'.');_0x1f5eaf['channelType']=_0x334c56;}else{if(_0x109733===_0x41db8e(0x203))throw notificationError(_0x41db8e(0x20f),'Create\x20JSON\x20requires\x20field\x20'+_0x41db8e(0x1c7));}for(const [_0x2b33c1,_0xc53402]of[['endpointUrl',0x200],['description',0x100]]){if(!hasOwn(_0x10c11d,_0x2b33c1))continue;const _0x55a76e=_0x10c11d[_0x2b33c1];if(_0x55a76e!==null&&typeof _0x55a76e!==_0x41db8e(0x1e2))throw invalidFieldType(_0x2b33c1,_0x41db8e(0x1e0));if(typeof _0x55a76e===_0x41db8e(0x1e2)&&_0x55a76e['length']>_0xc53402)throw notificationError('notification_config_field_invalid',_0x41db8e(0x1f5)+_0x2b33c1+'\x22\x20cannot\x20exceed\x20'+_0xc53402+_0x41db8e(0x1cb));_0x1f5eaf[_0x2b33c1]=_0x55a76e;}if(hasOwn(_0x10c11d,_0x41db8e(0x221))){const _0x44aa33=_0x10c11d[_0x41db8e(0x221)];if(_0x44aa33===null&&_0x109733==='create')throw invalidFieldType('channelConfig',_0x41db8e(0x22d));if(_0x44aa33!==null&&!isJsonObject(_0x44aa33))throw invalidFieldType(_0x41db8e(0x221),_0x109733===_0x41db8e(0x22a)?_0x41db8e(0x1c5):_0x41db8e(0x22d));_0x44aa33!==null&&validateChannelConfigFields(_0x1f5eaf[_0x41db8e(0x1f9)],_0x44aa33),_0x1f5eaf['channelConfig']=_0x44aa33;}for(const _0x327437 of[_0x41db8e(0x21b),'readTimeout']){if(!hasOwn(_0x10c11d,_0x327437))continue;const _0x566a9e=_0x10c11d[_0x327437];if(_0x566a9e!==null&&(!Number[_0x41db8e(0x231)](_0x566a9e)||_0x566a9e<0x0))throw notificationError(_0x41db8e(0x1c9),_0x41db8e(0x1f5)+_0x327437+_0x41db8e(0x21c));_0x1f5eaf[_0x327437]=_0x566a9e;}return _0x1f5eaf;}function validateRequiredString(_0x2faba1,_0x3d1072,_0x53b380){const _0x234d52=a197_0x51c123;if(typeof _0x2faba1!==_0x234d52(0x1e2))throw invalidFieldType(_0x3d1072,_0x234d52(0x1d3));const _0x26fc17=_0x2faba1[_0x234d52(0x1bd)]();if(!_0x26fc17)throw notificationError(_0x234d52(0x1c9),_0x234d52(0x1f5)+_0x3d1072+_0x234d52(0x227));if(_0x26fc17['length']>_0x53b380)throw notificationError(_0x234d52(0x1c9),'Notification\x20JSON\x20field\x20\x22'+_0x3d1072+'\x22\x20cannot\x20exceed\x20'+_0x53b380+_0x234d52(0x1cb));return _0x26fc17;}function validateChannelConfigFields(_0x10a28c,_0x224d20){const _0x24c5b3=a197_0x51c123;if(hasOwn(_0x224d20,_0x24c5b3(0x1cc)))throw forbiddenChannelConfigField(_0x24c5b3(0x1cc));if(_0x10a28c==='EMAIL')for(const _0x1017c9 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x224d20,_0x1017c9))throw forbiddenChannelConfigField(_0x1017c9);}}function a197_0x4274(){const _0x149b54=['Allowed\x20values:\x20','push','isArray','a\x20non-empty\x20string','emailTargets','Notification\x20JSON\x20channelConfig\x20field\x20\x22','subjectPrefix','384306NVEBkc','Notification\x20JSON\x20source\x20is\x20ambiguous.','WECOM','entries','length','\x20has\x20an\x20invalid\x20channelType.','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','60194cMCbmo','appCode','a\x20string\x20or\x20null','file','string','notification_config_field_unknown','utf8','Invalid\x20notification\x20config\x20response.','Missing\x20notification\x20JSON\x20source.','apiError','\x22configName\x22.','notification_config_update_empty','kind','channelCode','EMAIL','str','\x20--format\x20compress','every','ccList','11MXKlfx','readTimeout','endpointUrlRaw','DINGTALK','Notification\x20JSON\x20field\x20\x22','configCode','keys','5492123LmxKNQ','channelType','\x20has\x20an\x20invalid\x20id.','notification_config_channel_field_forbidden','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','bccList','\x20has\x20invalid\x20field\x20\x22','boolean','Application-level\x20notification\x20config\x20ID','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','24ecMucg','create','hasOwnProperty','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','number','\x22\x20must\x20be\x20','yes','description','env','type','35635RjMkJK','notification_config_response_invalid','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','notification_config_field_required','call','Notification\x20config\x20list\x20item\x20','mutation','Notification\x20JSON\x20from\x20','2624124TLCLyC','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','notification_config_confirmation_required','\x22\x20is\x20forbidden.','3VSWjnN','configName','\x20--type\x20','connectTimeout','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','bool','FEISHU','\x20is\x20invalid.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','channelConfig','setEncoding','notification_config_json_invalid','path','notification_config_source_unavailable','Create\x20JSON\x20requires\x20field\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string.','474LxUXgm','name','update','Item\x20','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','a\x20JSON\x20object','fromName','14383100JFQcLH','\x20is\x20missing\x20required\x20field\x20\x22','isSafeInteger','validation','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','failed','notification_config_id_invalid','from-env','Notification\x20config\x20','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','notification_config_','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','endpointUrl:null','dry-run','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','endpointUrl','trim','replyTo','some','_unavailable','channelConfigRaw','includes','prototype','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','a\x20JSON\x20object\x20or\x20null','join','\x22channelType\x22.','\x20has\x20an\x20unsupported\x20channelType.','notification_config_field_invalid','stdin','\x20characters.','messageTemplate','728685qgMcJg','has','num'];a197_0x4274=function(){return _0x149b54;};return a197_0x4274();}function forbiddenChannelConfigField(_0x225109){const _0x436835=a197_0x51c123;return notificationError(_0x436835(0x1fb),_0x436835(0x1d5)+_0x225109+_0x436835(0x217));}function invalidFieldType(_0x39cf6d,_0x13f003){const _0x3409ca=a197_0x51c123;return notificationError(_0x3409ca(0x1c9),'Notification\x20JSON\x20field\x20\x22'+_0x39cf6d+_0x3409ca(0x207)+_0x13f003+'.');}function serializeChannelConfig(_0x2a9283){return _0x2a9283===null||_0x2a9283===undefined?null:JSON['stringify'](_0x2a9283);}function redactSensitive(_0x47fe8b){return _0x47fe8b===null||_0x47fe8b===undefined||_0x47fe8b===''?null:'<redacted>';}function requireResponseString(_0x5dff04,_0x5b567f,_0x248aa7){const _0x2db123=a197_0x51c123;if(typeof _0x5dff04!==_0x2db123(0x1e2)||_0x5dff04[_0x2db123(0x1bd)]()==='')throw CliErrors[_0x2db123(0x1e7)](_0x2db123(0x1e5),_0x2db123(0x22b)+(_0x248aa7+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x5b567f+'\x22.');return _0x5dff04[_0x2db123(0x1bd)]();}function requireExactString(_0x36f3b5,_0x1646ca,_0x284e7c){const _0x33b135=a197_0x51c123;if(typeof _0x36f3b5!==_0x33b135(0x1e2)||_0x36f3b5[_0x33b135(0x1bd)]()==='')throw notificationError(_0x33b135(0x20d),_0x33b135(0x1b5)+_0x284e7c+_0x33b135(0x230)+_0x1646ca+'\x22.');return _0x36f3b5[_0x33b135(0x1bd)]();}function responseNullableString(_0x2e2cf2,_0x830c28,_0x28de90){const _0x2cbe36=a197_0x51c123;if(_0x2e2cf2===undefined||_0x2e2cf2===null)return null;if(typeof _0x2e2cf2!==_0x2cbe36(0x1e2))throw notificationError(_0x2cbe36(0x20d),_0x2cbe36(0x1b5)+_0x28de90+_0x2cbe36(0x1fe)+_0x830c28+'\x22.');return _0x2e2cf2;}function responseNullableTimeout(_0x234b8c,_0x3e3f11,_0x51b6e9){const _0x5ec9a1=a197_0x51c123;if(_0x234b8c===undefined||_0x234b8c===null)return null;if(!Number['isSafeInteger'](_0x234b8c)||_0x234b8c<0x0)throw notificationError(_0x5ec9a1(0x20d),'Notification\x20config\x20'+_0x51b6e9+_0x5ec9a1(0x1fe)+_0x3e3f11+'\x22.');return _0x234b8c;}function normalizeNullableString(_0x3c5e2f){return typeof _0x3c5e2f==='string'?_0x3c5e2f:null;}function isJsonObject(_0x2f4e1f){const _0x5dd8ae=a197_0x51c123;return _0x2f4e1f!==null&&typeof _0x2f4e1f==='object'&&!Array[_0x5dd8ae(0x1d2)](_0x2f4e1f);}function hasOwn(_0x302d4c,_0x1d4caf){const _0x1b1538=a197_0x51c123;return Object[_0x1b1538(0x1c3)][_0x1b1538(0x204)][_0x1b1538(0x210)](_0x302d4c,_0x1d4caf);}async function readStdin(){const _0x28eb53=a197_0x51c123;let _0x145d64='';process[_0x28eb53(0x1ca)][_0x28eb53(0x222)](_0x28eb53(0x1e4));for await(const _0x3119ba of process[_0x28eb53(0x1ca)])_0x145d64+=_0x3119ba;return _0x145d64;}
@@ -1 +1 @@
1
- const a198_0x17a9a5=a198_0x20e9;(function(_0x162f39,_0x4d1e8b){const _0x263733=a198_0x20e9,_0x5d3a30=_0x162f39();while(!![]){try{const _0x2f5069=parseInt(_0x263733(0x1d0))/0x1*(parseInt(_0x263733(0x205))/0x2)+parseInt(_0x263733(0x1de))/0x3+-parseInt(_0x263733(0x1dd))/0x4+-parseInt(_0x263733(0x1e5))/0x5+-parseInt(_0x263733(0x1dc))/0x6*(-parseInt(_0x263733(0x200))/0x7)+parseInt(_0x263733(0x202))/0x8+-parseInt(_0x263733(0x1f5))/0x9*(-parseInt(_0x263733(0x1fb))/0xa);if(_0x2f5069===_0x4d1e8b)break;else _0x5d3a30['push'](_0x5d3a30['shift']());}catch(_0x514150){_0x5d3a30['push'](_0x5d3a30['shift']());}}}(a198_0x2280,0x7f9c4));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a198_0x20e9(_0x47f4c4,_0x5e051f){_0x47f4c4=_0x47f4c4-0x1cf;const _0x228005=a198_0x2280();let _0x20e9f4=_0x228005[_0x47f4c4];return _0x20e9f4;}import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a198_0x17a9a5(0x1d7),a198_0x17a9a5(0x1fe),a198_0x17a9a5(0x1e2),a198_0x17a9a5(0x1f3)],SCENE_TO_LEGACY_TYPE={'invoice':a198_0x17a9a5(0x1d1),'general':a198_0x17a9a5(0x1f6),'form':a198_0x17a9a5(0x1eb),'idCard':a198_0x17a9a5(0x1e8)},SCENE_FLAG={'name':'scene','type':a198_0x17a9a5(0x1e6),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a198_0x17a9a5(0x1ff),'type':'string','description':a198_0x17a9a5(0x1e7)},IMAGE_URL_FLAG={'name':a198_0x17a9a5(0x1ec),'type':a198_0x17a9a5(0x1e6),'description':a198_0x17a9a5(0x1cf)};function normalizeScene(_0x17c7b6){const _0x7407b9=a198_0x17a9a5,_0x4595e3=_0x17c7b6[_0x7407b9(0x1d4)]()[_0x7407b9(0x1e9)]();if(_0x4595e3===_0x7407b9(0x1ea))return _0x7407b9(0x1f3);if(_0x4595e3===_0x7407b9(0x1d7)||_0x4595e3===_0x7407b9(0x1fe)||_0x4595e3===_0x7407b9(0x1e2))return _0x4595e3;throw CliErrors[_0x7407b9(0x1d8)](_0x7407b9(0x1f0)+_0x17c7b6+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x7407b9(0x1fa)](',\x20'));}function selectedInputs(_0xaf2928){const _0x2a909a=a198_0x17a9a5,_0x4be3c6=_0xaf2928[_0x2a909a(0x206)](_0x2a909a(0x1ff))[_0x2a909a(0x1d4)](),_0x2c3f3e=_0xaf2928[_0x2a909a(0x206)](_0x2a909a(0x1ec))[_0x2a909a(0x1d4)]();return{'imageFile':_0x4be3c6,'imageUrl':_0x2c3f3e,'count':[_0x4be3c6,_0x2c3f3e]['filter'](Boolean)[_0x2a909a(0x1d6)]};}function validateInputSelection(_0x12c60c){const _0x5790c4=a198_0x17a9a5,_0x2eb6e9=selectedInputs(_0x12c60c);if(_0x2eb6e9[_0x5790c4(0x201)]!==0x1)throw CliErrors[_0x5790c4(0x1d8)](_0x5790c4(0x203));return _0x2eb6e9;}function withScene(_0x4fc204,_0xc274c7,_0x49a552){const _0x544b22=a198_0x17a9a5;return{..._0x4fc204,'scene':_0xc274c7,..._0x49a552?{'sourceFile':{'fileName':_0x49a552['fileName'],'filePath':_0x49a552[_0x544b22(0x1fc)]}}:{}};}function a198_0x2280(){const _0x164b76=['General','recognize','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','toString','join','4001690ZFuIaP','filePath','File\x20URL\x20response\x20missing\x20fileUrl.','general','image-file','471863nvqOzL','count','2711840tCAZNs','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','imageUrl','2jAzkTM','str','Publicly\x20accessible\x20image\x20or\x20file\x20URL','401917dnmWcy','Invoice','scene','\x20OCR','trim','appCode','length','invoice','validation','File\x20upload\x20response\x20missing\x20filePath.','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','/smartapi/common/uploadFile','48gzWHJG','2980040eRFxbM','714561XAqvJx','POST','/smartapi/ocr/recognize-text?','fileUrl','form','imageFile','path','3254115gSKXUn','string','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','IdCard','toLowerCase','idcard','Table','image-url','/smartapi/common/queryFileUrl','GET','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','Unsupported\x20OCR\x20scene:\x20','/smartapi/ocr/recognize-text','read','idCard','apiError','9nVjVof'];a198_0x2280=function(){return _0x164b76;};return a198_0x2280();}const ocrRecognize={'service':'ocr','command':a198_0x17a9a5(0x1f7),'description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a198_0x17a9a5(0x1f2),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x323ff6){const _0x5d8925=a198_0x17a9a5,_0x499e3c=normalizeScene(_0x323ff6['str'](_0x5d8925(0x1d2))),_0x536b51=SCENE_TO_LEGACY_TYPE[_0x499e3c],_0x567877=validateInputSelection(_0x323ff6);if(_0x567877['imageUrl']){const _0x4a5dd9=new URLSearchParams({'url':_0x567877['imageUrl'],'type':_0x536b51,'appCode':_0x323ff6[_0x5d8925(0x1d5)]});return{'method':'GET','url':_0x5d8925(0x1e0)+_0x4a5dd9[_0x5d8925(0x1f9)](),'description':'Preview:\x20recognize\x20'+_0x499e3c+'\x20OCR\x20from\x20URL'};}const _0x364696=requireDevelopmentUploadFile(_0x567877[_0x5d8925(0x1e3)],_0x5d8925(0x1ff));return{'method':_0x5d8925(0x1df),'url':_0x5d8925(0x1db),'body':{'steps':[{'method':_0x5d8925(0x1df),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x323ff6[_0x5d8925(0x1d5)],'multipart':{'file':_0x364696}}},{'method':_0x5d8925(0x1df),'url':_0x5d8925(0x1ed),'body':{'filePath':_0x5d8925(0x1da),'downloadFlag':![]}},{'method':_0x5d8925(0x1ee),'url':_0x5d8925(0x1f1),'query':{'appCode':_0x323ff6['appCode'],'url':_0x5d8925(0x1ef),'type':_0x536b51}}]},'description':_0x5d8925(0x1f8)+_0x499e3c+_0x5d8925(0x1d3)};},async 'execute'(_0x5368c0){const _0x2f4050=a198_0x17a9a5,_0x139077=normalizeScene(_0x5368c0[_0x2f4050(0x206)](_0x2f4050(0x1d2))),_0x44d4fa=SCENE_TO_LEGACY_TYPE[_0x139077],_0x33b738=validateInputSelection(_0x5368c0);if(_0x33b738[_0x2f4050(0x204)]){const _0x2abd91=await recognizeDevelopmentOcr(_0x5368c0[_0x2f4050(0x1d5)],{'url':_0x33b738[_0x2f4050(0x204)],'type':_0x44d4fa});return{'ok':!![],'data':withScene(_0x2abd91,_0x139077)};}const _0x4fd58d=requireDevelopmentUploadFile(_0x33b738['imageFile'],'image-file'),_0x2006ce=await uploadDevelopmentFile(_0x5368c0[_0x2f4050(0x1d5)],_0x4fd58d[_0x2f4050(0x1e4)]);if(!_0x2006ce[_0x2f4050(0x1fc)])throw CliErrors[_0x2f4050(0x1f4)](_0x2f4050(0x1d9));const _0x508f6a=await queryDevelopmentFileUrl(_0x2006ce[_0x2f4050(0x1fc)],{'download':![]});if(!_0x508f6a['fileUrl'])throw CliErrors[_0x2f4050(0x1f4)](_0x2f4050(0x1fd));const _0x177daa=await recognizeDevelopmentOcr(_0x5368c0[_0x2f4050(0x1d5)],{'url':_0x508f6a[_0x2f4050(0x1e1)],'type':_0x44d4fa});return{'ok':!![],'data':withScene(_0x177daa,_0x139077,_0x2006ce)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a198_0x418e1f=a198_0x56d3;(function(_0x1ce73b,_0x3604b5){const _0x55d3a8=a198_0x56d3,_0x37df8f=_0x1ce73b();while(!![]){try{const _0x5eacd7=parseInt(_0x55d3a8(0xbb))/0x1+-parseInt(_0x55d3a8(0xb7))/0x2*(-parseInt(_0x55d3a8(0xb6))/0x3)+parseInt(_0x55d3a8(0xca))/0x4+-parseInt(_0x55d3a8(0xd8))/0x5*(parseInt(_0x55d3a8(0xc1))/0x6)+-parseInt(_0x55d3a8(0xcb))/0x7+parseInt(_0x55d3a8(0xb9))/0x8+-parseInt(_0x55d3a8(0xbd))/0x9*(-parseInt(_0x55d3a8(0xce))/0xa);if(_0x5eacd7===_0x3604b5)break;else _0x37df8f['push'](_0x37df8f['shift']());}catch(_0x2ff692){_0x37df8f['push'](_0x37df8f['shift']());}}}(a198_0x28e4,0x28ca6));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a198_0x28e4(){const _0x174d6f=['7980rXkiMg','Preview:\x20recognize\x20','filePath','Invoice','.\x20Supported\x20scenes:\x20','general','image-file','/smartapi/common/uploadFile','idcard','string','recognize','\x20OCR','read','imageFile','length','invoice','GET','General','fileUrl','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','File\x20URL\x20response\x20missing\x20fileUrl.','count','852249iuxfkg','2RMRXtz','trim','1086200NxvTvK','Unsupported\x20OCR\x20scene:\x20','22225aHlnNB','fileName','36XoTZDP','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','scene','idCard','942AlLWxi','ocr','File\x20upload\x20response\x20missing\x20filePath.','str','validation','appCode','path','IdCard','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','739740MckfxH','2323412zsAnLh','apiError','form','306370tPAbmh','Table','imageUrl','image-url','join','filter','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','Publicly\x20accessible\x20image\x20or\x20file\x20URL','/smartapi/ocr/recognize-text'];a198_0x28e4=function(){return _0x174d6f;};return a198_0x28e4();}import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a198_0x418e1f(0xe7),a198_0x418e1f(0xdd),a198_0x418e1f(0xcd),a198_0x418e1f(0xc0)],SCENE_TO_LEGACY_TYPE={'invoice':a198_0x418e1f(0xdb),'general':a198_0x418e1f(0xe9),'form':a198_0x418e1f(0xcf),'idCard':a198_0x418e1f(0xc8)},SCENE_FLAG={'name':a198_0x418e1f(0xbf),'type':a198_0x418e1f(0xe1),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a198_0x418e1f(0xbe)},IMAGE_FILE_FLAG={'name':a198_0x418e1f(0xde),'type':a198_0x418e1f(0xe1),'description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a198_0x418e1f(0xd1),'type':'string','description':a198_0x418e1f(0xd6)};function a198_0x56d3(_0x2c935f,_0x26796){_0x2c935f=_0x2c935f-0xb3;const _0x28e4e8=a198_0x28e4();let _0x56d300=_0x28e4e8[_0x2c935f];return _0x56d300;}function normalizeScene(_0x41d43c){const _0x37df66=a198_0x418e1f,_0x530ca9=_0x41d43c[_0x37df66(0xb8)]()['toLowerCase']();if(_0x530ca9===_0x37df66(0xe0))return _0x37df66(0xc0);if(_0x530ca9===_0x37df66(0xe7)||_0x530ca9===_0x37df66(0xdd)||_0x530ca9===_0x37df66(0xcd))return _0x530ca9;throw CliErrors[_0x37df66(0xc5)](_0x37df66(0xba)+_0x41d43c+_0x37df66(0xdc)+SUPPORTED_SCENES[_0x37df66(0xd2)](',\x20'));}function selectedInputs(_0x323c44){const _0x279a10=a198_0x418e1f,_0xcf13d5=_0x323c44[_0x279a10(0xc4)]('image-file')[_0x279a10(0xb8)](),_0x2a68da=_0x323c44[_0x279a10(0xc4)](_0x279a10(0xd1))[_0x279a10(0xb8)]();return{'imageFile':_0xcf13d5,'imageUrl':_0x2a68da,'count':[_0xcf13d5,_0x2a68da][_0x279a10(0xd3)](Boolean)[_0x279a10(0xe6)]};}function validateInputSelection(_0x5ed5e3){const _0x3ced08=a198_0x418e1f,_0x3cc5b0=selectedInputs(_0x5ed5e3);if(_0x3cc5b0[_0x3ced08(0xb5)]!==0x1)throw CliErrors[_0x3ced08(0xc5)](_0x3ced08(0xc9));return _0x3cc5b0;}function withScene(_0x4e788a,_0x42fcff,_0x152af8){const _0x1427ff=a198_0x418e1f;return{..._0x4e788a,'scene':_0x42fcff,..._0x152af8?{'sourceFile':{'fileName':_0x152af8[_0x1427ff(0xbc)],'filePath':_0x152af8[_0x1427ff(0xda)]}}:{}};}const ocrRecognize={'service':a198_0x418e1f(0xc2),'command':a198_0x418e1f(0xe2),'description':a198_0x418e1f(0xd5),'risk':a198_0x418e1f(0xe4),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xab58f1){const _0x53a14b=a198_0x418e1f,_0xe5a62=normalizeScene(_0xab58f1[_0x53a14b(0xc4)](_0x53a14b(0xbf))),_0x430793=SCENE_TO_LEGACY_TYPE[_0xe5a62],_0x5aab28=validateInputSelection(_0xab58f1);if(_0x5aab28[_0x53a14b(0xd0)]){const _0x5147a1=new URLSearchParams({'url':_0x5aab28[_0x53a14b(0xd0)],'type':_0x430793,'appCode':_0xab58f1[_0x53a14b(0xc6)]});return{'method':_0x53a14b(0xe8),'url':'/smartapi/ocr/recognize-text?'+_0x5147a1['toString'](),'description':_0x53a14b(0xd9)+_0xe5a62+'\x20OCR\x20from\x20URL'};}const _0x38f0a6=requireDevelopmentUploadFile(_0x5aab28[_0x53a14b(0xe5)],_0x53a14b(0xde));return{'method':'POST','url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':_0x53a14b(0xdf),'body':{'appCode':_0xab58f1['appCode'],'multipart':{'file':_0x38f0a6}}},{'method':'POST','url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x53a14b(0xeb),'downloadFlag':![]}},{'method':_0x53a14b(0xe8),'url':_0x53a14b(0xd7),'query':{'appCode':_0xab58f1['appCode'],'url':_0x53a14b(0xb3),'type':_0x430793}}]},'description':_0x53a14b(0xd4)+_0xe5a62+_0x53a14b(0xe3)};},async 'execute'(_0x2a037d){const _0x437a66=a198_0x418e1f,_0x2d64c2=normalizeScene(_0x2a037d[_0x437a66(0xc4)]('scene')),_0x157460=SCENE_TO_LEGACY_TYPE[_0x2d64c2],_0x54c4c2=validateInputSelection(_0x2a037d);if(_0x54c4c2[_0x437a66(0xd0)]){const _0x501c8e=await recognizeDevelopmentOcr(_0x2a037d['appCode'],{'url':_0x54c4c2[_0x437a66(0xd0)],'type':_0x157460});return{'ok':!![],'data':withScene(_0x501c8e,_0x2d64c2)};}const _0x4030c7=requireDevelopmentUploadFile(_0x54c4c2[_0x437a66(0xe5)],_0x437a66(0xde)),_0x33902f=await uploadDevelopmentFile(_0x2a037d[_0x437a66(0xc6)],_0x4030c7[_0x437a66(0xc7)]);if(!_0x33902f['filePath'])throw CliErrors[_0x437a66(0xcc)](_0x437a66(0xc3));const _0x5bd051=await queryDevelopmentFileUrl(_0x33902f[_0x437a66(0xda)],{'download':![]});if(!_0x5bd051[_0x437a66(0xea)])throw CliErrors['apiError'](_0x437a66(0xb4));const _0x187ba5=await recognizeDevelopmentOcr(_0x2a037d[_0x437a66(0xc6)],{'url':_0x5bd051[_0x437a66(0xea)],'type':_0x157460});return{'ok':!![],'data':withScene(_0x187ba5,_0x2d64c2,_0x33902f)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a199_0x447b0a=a199_0x2dab;(function(_0x1d8d95,_0x5a9710){const _0x434fbc=a199_0x2dab,_0x37cede=_0x1d8d95();while(!![]){try{const _0x206c37=-parseInt(_0x434fbc(0x1de))/0x1*(-parseInt(_0x434fbc(0x1f3))/0x2)+-parseInt(_0x434fbc(0x1fc))/0x3*(parseInt(_0x434fbc(0x210))/0x4)+parseInt(_0x434fbc(0x209))/0x5+-parseInt(_0x434fbc(0x20a))/0x6+-parseInt(_0x434fbc(0x215))/0x7+parseInt(_0x434fbc(0x219))/0x8*(-parseInt(_0x434fbc(0x211))/0x9)+parseInt(_0x434fbc(0x214))/0xa*(parseInt(_0x434fbc(0x21c))/0xb);if(_0x206c37===_0x5a9710)break;else _0x37cede['push'](_0x37cede['shift']());}catch(_0x58da89){_0x37cede['push'](_0x37cede['shift']());}}}(a199_0xa0ce,0x79a9e));import{readFile}from'node:fs/promises';function a199_0xa0ce(){const _0x32d756=['Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','name','page-type','menuId','version','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','page\x20create\x20does\x20not\x20accept\x20--page-type.','stringify','pageName\x20cannot\x20exceed\x20100\x20characters.','isInteger','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','.json','Custom_page_','/smartapi/webcode/page/create','str','num','ONEPAGE','425002axYCjL','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','CUSTOM','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','page-dir','values','page.create','../../../templates/custom-pages','Would\x20create\x20Custom\x20Page\x20','15LlEniU','appCode','pageId','page-pattern','trim','files','parse','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','createMenu','apiError','isArray','string','Custom\x20Page\x20pattern\x20not\x20found:\x20','3572400MMuJYz','325050wrDffz','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','pageName','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','POST','keys','314900XFRlPl','1351683MEjFGc','Invalid\x20Custom\x20Page\x20pattern:\x20','length','1896330yLShPX','6779206stwJsQ','page','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','toLowerCase','8cdHtvI','parentMenuId','number','66ZmHDnm','validation','menuPath','parent-menu-id','isNaN','Created\x20Custom\x20Page\x20','1KteJBR','now','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'];a199_0xa0ce=function(){return _0x32d756;};return a199_0xa0ce();}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=['BLANK',a199_0x447b0a(0x1f2),'DASHBOARD'],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x447b0a(0x1fa));export const pageCreate={'service':a199_0x447b0a(0x216),'command':'create','description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a199_0x447b0a(0x1e4),'message':a199_0x447b0a(0x1e8),'hint':a199_0x447b0a(0x1ec)},{'name':'page-content','message':a199_0x447b0a(0x20d),'hint':a199_0x447b0a(0x1e2)}],'flags':[{'name':a199_0x447b0a(0x1e3),'type':'string','description':a199_0x447b0a(0x1f4)},{'name':'parent-menu-id','type':a199_0x447b0a(0x21b),'description':a199_0x447b0a(0x1f6)},{'name':a199_0x447b0a(0x1ff),'type':a199_0x447b0a(0x207),'description':a199_0x447b0a(0x203),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x447b0a(0x1f7),'type':a199_0x447b0a(0x207),'description':a199_0x447b0a(0x1e1)},APPCODE_FLAG],async 'validate'(_0x51adc2){await readValidatedPageSource(_0x51adc2);},async 'dryRun'(_0x22676e){const _0x178860=a199_0x447b0a,_0x38b93c=readInput(_0x22676e,await readValidatedPageSource(_0x22676e));return{'method':_0x178860(0x20e),'url':_0x178860(0x1ef),'body':{'appCode':_0x38b93c[_0x178860(0x1fd)],'pageName':_0x38b93c['pageName'],..._0x38b93c[_0x178860(0x21a)]!=null?{'parentMenuId':_0x38b93c['parentMenuId']}:{},'createMenu':_0x38b93c[_0x178860(0x204)],'codeContent':_0x38b93c[_0x178860(0x201)]},'description':_0x178860(0x1fb)+JSON[_0x178860(0x1e9)](_0x38b93c[_0x178860(0x20c)])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0x1c6027){const _0x537399=a199_0x447b0a,_0x59feba=readInput(_0x1c6027,await readValidatedPageSource(_0x1c6027)),_0x5db481=await createCustomPage(_0x59feba);if(!Number[_0x537399(0x1eb)](_0x5db481['pageId'])||_0x5db481['pageId']<=0x0)throw CliErrors[_0x537399(0x205)](_0x537399(0x1e0));const _0x5bf991=buildCustomPageDevelopmentUrl(_0x59feba['appCode'],_0x5db481[_0x537399(0x21e)]),_0x3c641c=buildCustomPageEditUrl(_0x59feba[_0x537399(0x1fd)],_0x5db481[_0x537399(0x1fe)]);return{'ok':!![],'data':{'operation':_0x537399(0x1f9),'pageType':_0x537399(0x1f5),'pagePattern':readPagePattern(_0x1c6027),'selector':{'appCode':_0x59feba[_0x537399(0x1fd)],'pageName':_0x59feba[_0x537399(0x20c)]},'before':null,'after':{'pageId':_0x5db481['pageId'],'pageName':_0x5db481['pageName'],'appCode':_0x5db481['appCode'],'version':_0x5db481[_0x537399(0x1e6)],'menuId':_0x5db481[_0x537399(0x1e5)],'menuPath':_0x5db481['menuPath'],'files':_0x5db481['files']??Object[_0x537399(0x20f)](_0x59feba[_0x537399(0x201)])},'dryRun':![],'request':_0x59feba,..._0x5bf991?{'pageUrl':_0x5bf991}:{},..._0x3c641c?{'editPageUrl':_0x3c641c}:{},'warnings':_0x5bf991?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x537399(0x1dd)+_0x5db481[_0x537399(0x1fe)]+'.'};}};function readPagePattern(_0x380869){const _0x4b271a=a199_0x447b0a,_0x84b5cd=_0x380869[_0x4b271a(0x1f0)]('page-pattern')['trim'](),_0x23d65a=_0x380869[_0x4b271a(0x1f0)](_0x4b271a(0x1f7))['trim']();if(_0x84b5cd&&_0x23d65a)throw CliErrors['validation']('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x23d65a)return null;if(!_0x84b5cd)throw CliErrors[_0x4b271a(0x21d)](_0x4b271a(0x20b));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x84b5cd))throw CliErrors['validation'](_0x4b271a(0x217));return _0x84b5cd;}function a199_0x2dab(_0x265a75,_0x3bf5d9){_0x265a75=_0x265a75-0x1dc;const _0xa0ce2=a199_0xa0ce();let _0x2dab45=_0xa0ce2[_0x265a75];return _0x2dab45;}async function readPageSource(_0x59f30c){const _0x3804e9=a199_0x447b0a,_0x204113=_0x59f30c[_0x3804e9(0x1f0)](_0x3804e9(0x1f7))[_0x3804e9(0x200)](),_0x494d0c=readPagePattern(_0x59f30c);if(_0x494d0c===null){const _0x248d2d=await readCustomPageDirectory(_0x204113);if(Object[_0x3804e9(0x20f)](_0x248d2d)[_0x3804e9(0x213)]===0x0)throw CliErrors[_0x3804e9(0x21d)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x248d2d;}let _0x497f4d;try{_0x497f4d=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x494d0c[_0x3804e9(0x218)]()+_0x3804e9(0x1ed)),'utf8');}catch{throw CliErrors[_0x3804e9(0x21d)](_0x3804e9(0x208)+_0x494d0c+'.');}let _0x24f8bf;try{_0x24f8bf=JSON[_0x3804e9(0x202)](_0x497f4d);}catch{throw CliErrors[_0x3804e9(0x21d)](_0x3804e9(0x212)+_0x494d0c+'.');}if(!_0x24f8bf||typeof _0x24f8bf!=='object'||Array[_0x3804e9(0x206)](_0x24f8bf)||Object[_0x3804e9(0x1f8)](_0x24f8bf)['some'](_0x3b3b4e=>typeof _0x3b3b4e!==_0x3804e9(0x207)))throw CliErrors['validation'](_0x3804e9(0x212)+_0x494d0c+'.');return _0x24f8bf;}async function readValidatedPageSource(_0x533e69){const _0x2b0678=await readPageSource(_0x533e69);return await validateCustomPageContent(_0x2b0678),_0x2b0678;}function readInput(_0x4db593,_0x2b41bf){const _0x59b282=a199_0x447b0a,_0x24901d=_0x4db593[_0x59b282(0x1f0)](_0x59b282(0x1e3))[_0x59b282(0x200)]()||_0x59b282(0x1ee)+Date[_0x59b282(0x1df)]();if(_0x24901d[_0x59b282(0x213)]>0x64)throw CliErrors['validation'](_0x59b282(0x1ea));const _0x56d2c0=_0x4db593[_0x59b282(0x1f1)](_0x59b282(0x21f),NaN),_0x18af0d=!Number[_0x59b282(0x1dc)](_0x56d2c0);if(_0x18af0d&&(!Number[_0x59b282(0x1eb)](_0x56d2c0)||_0x56d2c0<=0x0))throw CliErrors[_0x59b282(0x21d)](_0x59b282(0x1e7));return{'appCode':_0x4db593['appCode'],'pageName':_0x24901d,..._0x18af0d?{'parentMenuId':_0x56d2c0}:{},'createMenu':!![],'files':_0x2b41bf};}
1
+ const a199_0x5901aa=a199_0x47ec;(function(_0x275543,_0x1ddfa6){const _0x34e473=a199_0x47ec,_0x44e414=_0x275543();while(!![]){try{const _0x45dd89=-parseInt(_0x34e473(0x1bd))/0x1+-parseInt(_0x34e473(0x1f2))/0x2*(parseInt(_0x34e473(0x1d7))/0x3)+-parseInt(_0x34e473(0x1f1))/0x4*(parseInt(_0x34e473(0x1b6))/0x5)+-parseInt(_0x34e473(0x1d8))/0x6*(-parseInt(_0x34e473(0x1c4))/0x7)+parseInt(_0x34e473(0x1e0))/0x8*(-parseInt(_0x34e473(0x1e6))/0x9)+-parseInt(_0x34e473(0x1d9))/0xa*(parseInt(_0x34e473(0x1af))/0xb)+parseInt(_0x34e473(0x1ea))/0xc;if(_0x45dd89===_0x1ddfa6)break;else _0x44e414['push'](_0x44e414['shift']());}catch(_0x525a6b){_0x44e414['push'](_0x44e414['shift']());}}}(a199_0x3831,0x31d26));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x5901aa(0x1e5),a199_0x5901aa(0x1e9),a199_0x5901aa(0x1cd)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x5901aa(0x1e4));export const pageCreate={'service':a199_0x5901aa(0x1d0),'command':'create','description':a199_0x5901aa(0x1b4),'risk':a199_0x5901aa(0x1f3),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a199_0x5901aa(0x1cf),'hint':a199_0x5901aa(0x1c9)},{'name':a199_0x5901aa(0x1ba),'message':a199_0x5901aa(0x1c8),'hint':a199_0x5901aa(0x1eb)}],'flags':[{'name':a199_0x5901aa(0x1d1),'type':a199_0x5901aa(0x1f5),'description':a199_0x5901aa(0x1d3)},{'name':'parent-menu-id','type':a199_0x5901aa(0x1b1),'description':a199_0x5901aa(0x1d6)},{'name':'page-pattern','type':a199_0x5901aa(0x1f5),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':'page-dir','type':a199_0x5901aa(0x1f5),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x585f06){await readValidatedPageSource(_0x585f06);},async 'dryRun'(_0x4ced52){const _0x524b66=a199_0x5901aa,_0x3406b4=readInput(_0x4ced52,await readValidatedPageSource(_0x4ced52));return{'method':_0x524b66(0x1d2),'url':_0x524b66(0x1dd),'body':{'appCode':_0x3406b4['appCode'],'pageName':_0x3406b4[_0x524b66(0x1b9)],..._0x3406b4[_0x524b66(0x1ec)]!=null?{'parentMenuId':_0x3406b4[_0x524b66(0x1ec)]}:{},'createMenu':_0x3406b4['createMenu'],'codeContent':_0x3406b4['files']},'description':_0x524b66(0x1e2)+JSON[_0x524b66(0x1b8)](_0x3406b4[_0x524b66(0x1b9)])+_0x524b66(0x1b7)};},async 'execute'(_0x5ba5d3){const _0x497d6e=a199_0x5901aa,_0x573bbe=readInput(_0x5ba5d3,await readValidatedPageSource(_0x5ba5d3)),_0x550f2c=await createCustomPage(_0x573bbe);if(!Number[_0x497d6e(0x1cc)](_0x550f2c['pageId'])||_0x550f2c[_0x497d6e(0x1c1)]<=0x0)throw CliErrors[_0x497d6e(0x1b2)](_0x497d6e(0x1da));const _0x342bb4=buildCustomPageDevelopmentUrl(_0x573bbe['appCode'],_0x550f2c[_0x497d6e(0x1d5)]),_0x35db3a=buildCustomPageEditUrl(_0x573bbe['appCode'],_0x550f2c[_0x497d6e(0x1c1)]);return{'ok':!![],'data':{'operation':_0x497d6e(0x1b5),'pageType':_0x497d6e(0x1ed),'pagePattern':readPagePattern(_0x5ba5d3),'selector':{'appCode':_0x573bbe[_0x497d6e(0x1f0)],'pageName':_0x573bbe['pageName']},'before':null,'after':{'pageId':_0x550f2c[_0x497d6e(0x1c1)],'pageName':_0x550f2c[_0x497d6e(0x1b9)],'appCode':_0x550f2c['appCode'],'version':_0x550f2c[_0x497d6e(0x1c7)],'menuId':_0x550f2c['menuId'],'menuPath':_0x550f2c['menuPath'],'files':_0x550f2c[_0x497d6e(0x1f4)]??Object[_0x497d6e(0x1b0)](_0x573bbe['files'])},'dryRun':![],'request':_0x573bbe,..._0x342bb4?{'pageUrl':_0x342bb4}:{},..._0x35db3a?{'editPageUrl':_0x35db3a}:{},'warnings':_0x342bb4?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x497d6e(0x1c6)+_0x550f2c['pageId']+'.'};}};function a199_0x3831(){const _0x5b5d39=['values','object','parent-menu-id','pageId','page-dir','Custom\x20Page\x20pattern\x20not\x20found:\x20','252308EmTxyx','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','Created\x20Custom\x20Page\x20','version','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Invalid\x20Custom\x20Page\x20pattern:\x20','.json','isInteger','DASHBOARD','validation','page\x20create\x20does\x20not\x20accept\x20--page-type.','page','name','POST','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','trim','menuPath','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','282NvxBWb','18GCqnpE','1680VzRTqP','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','now','page-pattern','/smartapi/webcode/page/create','Custom_page_','utf8','248LNaJYB','includes','Would\x20create\x20Custom\x20Page\x20','isNaN','../../../templates/custom-pages','BLANK','13950qeTWQn','some','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','ONEPAGE','10548564QIllgh','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','parentMenuId','CUSTOM','str','isArray','appCode','7340NEsZyS','3236TZkdiq','write','files','string','25696NkquGw','keys','number','apiError','length','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','page.create','505PrmEgO','\x20and\x20its\x20menu\x20entry.','stringify','pageName','page-content','parse','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','5184gyXGeR'];a199_0x3831=function(){return _0x5b5d39;};return a199_0x3831();}function a199_0x47ec(_0x241187,_0x50fb2c){_0x241187=_0x241187-0x1af;const _0x383178=a199_0x3831();let _0x47ecf0=_0x383178[_0x241187];return _0x47ecf0;}function readPagePattern(_0x4f8d28){const _0x4458a0=a199_0x5901aa,_0x596227=_0x4f8d28['str'](_0x4458a0(0x1dc))['trim'](),_0x320c45=_0x4f8d28[_0x4458a0(0x1ee)](_0x4458a0(0x1c2))['trim']();if(_0x596227&&_0x320c45)throw CliErrors[_0x4458a0(0x1ce)]('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x320c45)return null;if(!_0x596227)throw CliErrors['validation'](_0x4458a0(0x1bc));if(!CUSTOM_PAGE_PATTERNS[_0x4458a0(0x1e1)](_0x596227))throw CliErrors[_0x4458a0(0x1ce)](_0x4458a0(0x1c5));return _0x596227;}async function readPageSource(_0x4d6152){const _0x54db0f=a199_0x5901aa,_0x1efabc=_0x4d6152[_0x54db0f(0x1ee)](_0x54db0f(0x1c2))[_0x54db0f(0x1d4)](),_0x4f0174=readPagePattern(_0x4d6152);if(_0x4f0174===null){const _0x390186=await readCustomPageDirectory(_0x1efabc);if(Object[_0x54db0f(0x1b0)](_0x390186)['length']===0x0)throw CliErrors[_0x54db0f(0x1ce)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x390186;}let _0x5b16db;try{_0x5b16db=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x4f0174['toLowerCase']()+_0x54db0f(0x1cb)),_0x54db0f(0x1df));}catch{throw CliErrors[_0x54db0f(0x1ce)](_0x54db0f(0x1c3)+_0x4f0174+'.');}let _0x606e2a;try{_0x606e2a=JSON[_0x54db0f(0x1bb)](_0x5b16db);}catch{throw CliErrors[_0x54db0f(0x1ce)](_0x54db0f(0x1ca)+_0x4f0174+'.');}if(!_0x606e2a||typeof _0x606e2a!==_0x54db0f(0x1bf)||Array[_0x54db0f(0x1ef)](_0x606e2a)||Object[_0x54db0f(0x1be)](_0x606e2a)[_0x54db0f(0x1e7)](_0x312a96=>typeof _0x312a96!==_0x54db0f(0x1f5)))throw CliErrors['validation'](_0x54db0f(0x1ca)+_0x4f0174+'.');return _0x606e2a;}async function readValidatedPageSource(_0x34cd93){const _0x133a27=await readPageSource(_0x34cd93);return await validateCustomPageContent(_0x133a27),_0x133a27;}function readInput(_0x4e7117,_0x87aa00){const _0x42d8c9=a199_0x5901aa,_0x258654=_0x4e7117[_0x42d8c9(0x1ee)](_0x42d8c9(0x1d1))[_0x42d8c9(0x1d4)]()||_0x42d8c9(0x1de)+Date[_0x42d8c9(0x1db)]();if(_0x258654[_0x42d8c9(0x1b3)]>0x64)throw CliErrors[_0x42d8c9(0x1ce)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x23b988=_0x4e7117['num'](_0x42d8c9(0x1c0),NaN),_0x39f785=!Number[_0x42d8c9(0x1e3)](_0x23b988);if(_0x39f785&&(!Number['isInteger'](_0x23b988)||_0x23b988<=0x0))throw CliErrors[_0x42d8c9(0x1ce)](_0x42d8c9(0x1e8));return{'appCode':_0x4e7117['appCode'],'pageName':_0x258654,..._0x39f785?{'parentMenuId':_0x23b988}:{},'createMenu':!![],'files':_0x87aa00};}
@@ -1 +1 @@
1
- const a200_0x11905a=a200_0x4fd4;function a200_0x4fd4(_0x5d02f5,_0x22e286){_0x5d02f5=_0x5d02f5-0x124;const _0x1fa09a=a200_0x1fa0();let _0x4fd491=_0x1fa09a[_0x5d02f5];return _0x4fd491;}(function(_0x12594f,_0x5c7f5a){const _0x4d755f=a200_0x4fd4,_0x41854e=_0x12594f();while(!![]){try{const _0x25507e=-parseInt(_0x4d755f(0x136))/0x1*(parseInt(_0x4d755f(0x128))/0x2)+-parseInt(_0x4d755f(0x12f))/0x3+-parseInt(_0x4d755f(0x13b))/0x4*(-parseInt(_0x4d755f(0x124))/0x5)+-parseInt(_0x4d755f(0x141))/0x6*(-parseInt(_0x4d755f(0x139))/0x7)+-parseInt(_0x4d755f(0x130))/0x8+parseInt(_0x4d755f(0x13a))/0x9*(parseInt(_0x4d755f(0x12b))/0xa)+-parseInt(_0x4d755f(0x132))/0xb;if(_0x25507e===_0x5c7f5a)break;else _0x41854e['push'](_0x41854e['shift']());}catch(_0x105233){_0x41854e['push'](_0x41854e['shift']());}}}(a200_0x1fa0,0xbdc3d));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x1fa0(){const _0x17f3f8=['Retrieved\x20Custom\x20Page\x20','padStart','getSeconds','getDate','161004gSoJyG','755ZhbVbN','str','pageCode','getMonth','514llQrUQ','read','isNaN','31230yTXMtW','getTime','appCode','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','1477497jIcBdk','10648376oYWjqC','getFullYear','3154360okwVVM','getMinutes','trim','custom-detail','717BzwBaM','join','Custom\x20Page\x20ID','154bIlOSz','3573aIZGqr','32892uOkehV','appcode'];a200_0x1fa0=function(){return _0x17f3f8;};return a200_0x1fa0();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x11905a(0x135),'description':a200_0x11905a(0x12e),'risk':a200_0x11905a(0x129),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a200_0x11905a(0x138)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x581599){readCustomPageId(_0x581599);},async 'execute'(_0x3ab351){const _0xe6016a=a200_0x11905a,_0x5822c8=readCustomPageId(_0x3ab351),_0x1cdb6d=await getCustomPageSource(_0x5822c8),{bundle:_0x46a193,createTime:_0x122a68,updateTime:_0x336a5a,..._0x31272b}=_0x1cdb6d,_0x5c180a=_0x1cdb6d['id']??_0x5822c8,_0x5594f5=_0x1cdb6d[_0xe6016a(0x12d)]?.[_0xe6016a(0x134)]()||_0x3ab351[_0xe6016a(0x125)](_0xe6016a(0x13c))['trim'](),_0x3f7af7=buildCustomPageRuntimeUrl(_0x5594f5,_0x1cdb6d[_0xe6016a(0x126)]),_0x357efe=buildCustomPageEditUrl(_0x5594f5,_0x5c180a),_0x47b04a=await resolveCustomPageDevelopmentUrl(_0x5594f5,_0x5c180a,_0x3ab351['cookie']);return{'ok':!![],'data':{..._0x31272b,..._0x3f7af7?{'runtimePageUrl':_0x3f7af7}:{},..._0x47b04a?{'pageUrl':_0x47b04a}:{},..._0x357efe?{'editPageUrl':_0x357efe}:{},..._0x122a68==null?{}:{'createTime':formatTime(_0x122a68)},..._0x336a5a==null?{}:{'updateTime':formatTime(_0x336a5a)}},'message':_0xe6016a(0x13d)+_0x5822c8+'.'};}};function formatTime(_0x526394){const _0x254a3b=a200_0x11905a,_0x513285=new Date(_0x526394);if(Number[_0x254a3b(0x12a)](_0x513285[_0x254a3b(0x12c)]()))return String(_0x526394);const _0x3543b2=[_0x513285[_0x254a3b(0x131)](),String(_0x513285[_0x254a3b(0x127)]()+0x1)[_0x254a3b(0x13e)](0x2,'0'),String(_0x513285[_0x254a3b(0x140)]())['padStart'](0x2,'0')][_0x254a3b(0x137)]('-'),_0x101357=[String(_0x513285['getHours']())[_0x254a3b(0x13e)](0x2,'0'),String(_0x513285[_0x254a3b(0x133)]())[_0x254a3b(0x13e)](0x2,'0'),String(_0x513285[_0x254a3b(0x13f)]())[_0x254a3b(0x13e)](0x2,'0')][_0x254a3b(0x137)](':');return _0x3543b2+'\x20'+_0x101357;}
1
+ const a200_0x4bd664=a200_0x2277;(function(_0x3afebc,_0x3b700b){const _0x1f78a9=a200_0x2277,_0x3f8466=_0x3afebc();while(!![]){try{const _0x5a8b50=-parseInt(_0x1f78a9(0x1fb))/0x1*(parseInt(_0x1f78a9(0x1f8))/0x2)+parseInt(_0x1f78a9(0x1ec))/0x3+-parseInt(_0x1f78a9(0x203))/0x4*(parseInt(_0x1f78a9(0x1fa))/0x5)+parseInt(_0x1f78a9(0x1fe))/0x6+-parseInt(_0x1f78a9(0x1ea))/0x7+parseInt(_0x1f78a9(0x202))/0x8*(-parseInt(_0x1f78a9(0x1f0))/0x9)+-parseInt(_0x1f78a9(0x1ee))/0xa*(-parseInt(_0x1f78a9(0x1ed))/0xb);if(_0x5a8b50===_0x3b700b)break;else _0x3f8466['push'](_0x3f8466['shift']());}catch(_0x4ab376){_0x3f8466['push'](_0x3f8466['shift']());}}}(a200_0x519d,0xcc95c));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x2277(_0x14cb0a,_0x38b823){_0x14cb0a=_0x14cb0a-0x1e7;const _0x519d04=a200_0x519d();let _0x2277cc=_0x519d04[_0x14cb0a];return _0x2277cc;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x4bd664(0x204),'command':a200_0x4bd664(0x1e8),'description':a200_0x4bd664(0x1f3),'risk':a200_0x4bd664(0x1e7),'defaultOutputFormat':a200_0x4bd664(0x1ff),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x4bd664(0x201),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x418c7b){readCustomPageId(_0x418c7b);},async 'execute'(_0x20920a){const _0x376a0c=a200_0x4bd664,_0x59829b=readCustomPageId(_0x20920a),_0x56cd37=await getCustomPageSource(_0x59829b),{bundle:_0x360462,createTime:_0xd0a6ca,updateTime:_0x170a7d,..._0x1cd03d}=_0x56cd37,_0x262916=_0x56cd37['id']??_0x59829b,_0x3fa884=_0x56cd37['appCode']?.[_0x376a0c(0x1f4)]()||_0x20920a[_0x376a0c(0x1e9)](_0x376a0c(0x1f6))['trim'](),_0x2f0ded=buildCustomPageRuntimeUrl(_0x3fa884,_0x56cd37[_0x376a0c(0x1f2)]),_0xace919=buildCustomPageEditUrl(_0x3fa884,_0x262916),_0x5924ff=await resolveCustomPageDevelopmentUrl(_0x3fa884,_0x262916,_0x20920a[_0x376a0c(0x1ef)]);return{'ok':!![],'data':{..._0x1cd03d,..._0x2f0ded?{'runtimePageUrl':_0x2f0ded}:{},..._0x5924ff?{'pageUrl':_0x5924ff}:{},..._0xace919?{'editPageUrl':_0xace919}:{},..._0xd0a6ca==null?{}:{'createTime':formatTime(_0xd0a6ca)},..._0x170a7d==null?{}:{'updateTime':formatTime(_0x170a7d)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x59829b+'.'};}};function a200_0x519d(){const _0x3db676=['appcode','isNaN','414472YVIWyo','join','580qhmGts','1qhXOjb','padStart','getSeconds','1586064YaBabo','compress','getMinutes','number','128KiQvey','26608cywiNW','page','read','custom-detail','str','9308530pZroiv','getHours','30gDRXQf','2420zkBSCM','205490uWMBRA','cookie','921654LRRCVK','getDate','pageCode','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','trim','getTime'];a200_0x519d=function(){return _0x3db676;};return a200_0x519d();}function formatTime(_0x29fef2){const _0x393ea8=a200_0x4bd664,_0x1a7b80=new Date(_0x29fef2);if(Number[_0x393ea8(0x1f7)](_0x1a7b80[_0x393ea8(0x1f5)]()))return String(_0x29fef2);const _0x2a0f0e=[_0x1a7b80['getFullYear'](),String(_0x1a7b80['getMonth']()+0x1)[_0x393ea8(0x1fc)](0x2,'0'),String(_0x1a7b80[_0x393ea8(0x1f1)]())[_0x393ea8(0x1fc)](0x2,'0')][_0x393ea8(0x1f9)]('-'),_0x250756=[String(_0x1a7b80[_0x393ea8(0x1eb)]())[_0x393ea8(0x1fc)](0x2,'0'),String(_0x1a7b80[_0x393ea8(0x200)]())[_0x393ea8(0x1fc)](0x2,'0'),String(_0x1a7b80[_0x393ea8(0x1fd)]())[_0x393ea8(0x1fc)](0x2,'0')]['join'](':');return _0x2a0f0e+'\x20'+_0x250756;}
@@ -1 +1 @@
1
- const a201_0x56faff=a201_0x1d15;function a201_0x1d15(_0x260a1a,_0x492b80){_0x260a1a=_0x260a1a-0x1b4;const _0x2247a3=a201_0x2247();let _0x1d1559=_0x2247a3[_0x260a1a];return _0x1d1559;}function a201_0x2247(){const _0x5bc1e2=['87LWHIAL','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','custom-list','type','flatMap','length','14510HTcuYE','label','1914416uiTcgG','No\x20Custom\x20Pages\x20found.','read','menus','Found\x20','436419FHljVY','page','react','appCode','10PVFrKd','1775886cYKOGA','\x20Custom\x20Page(s).','959bCESFa','1048lyfyXw','path','1509240XSkpdg','pageId','566625sNCbCE'];a201_0x2247=function(){return _0x5bc1e2;};return a201_0x2247();}(function(_0x494efe,_0x4b8c62){const _0x53bdef=a201_0x1d15,_0x59055e=_0x494efe();while(!![]){try{const _0x119c3d=-parseInt(_0x53bdef(0x1b5))/0x1*(-parseInt(_0x53bdef(0x1bb))/0x2)+parseInt(_0x53bdef(0x1b4))/0x3+parseInt(_0x53bdef(0x1bd))/0x4+-parseInt(_0x53bdef(0x1c6))/0x5*(parseInt(_0x53bdef(0x1c7))/0x6)+parseInt(_0x53bdef(0x1c9))/0x7*(-parseInt(_0x53bdef(0x1ca))/0x8)+-parseInt(_0x53bdef(0x1c2))/0x9+-parseInt(_0x53bdef(0x1cc))/0xa;if(_0x119c3d===_0x4b8c62)break;else _0x59055e['push'](_0x59055e['shift']());}catch(_0x3a6f5d){_0x59055e['push'](_0x59055e['shift']());}}}(a201_0x2247,0x7777c));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x56faff(0x1c3),'command':a201_0x56faff(0x1b7),'description':a201_0x56faff(0x1b6),'risk':a201_0x56faff(0x1bf),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x366d31){const _0x5b0710=a201_0x56faff,_0x471e1d=(await fetchMenuSnapshot(_0x366d31[_0x5b0710(0x1c5)],_0x366d31['cookie']))[_0x5b0710(0x1c0)][_0x5b0710(0x1b9)](_0x3b324f=>{const _0x57457c=_0x5b0710;if(_0x3b324f[_0x57457c(0x1b8)]!==_0x57457c(0x1c4)||_0x3b324f['pageId']==null)return[];const _0x2d4805=buildCustomPageDevelopmentUrl(_0x366d31[_0x57457c(0x1c5)],_0x3b324f[_0x57457c(0x1cb)]),_0x450d84=buildCustomPageRuntimeUrl(_0x366d31['appCode'],_0x3b324f[_0x57457c(0x1cb)]),_0x4e7def=buildCustomPageEditUrl(_0x366d31['appCode'],_0x3b324f[_0x57457c(0x1cd)]);return[{'pageId':_0x3b324f[_0x57457c(0x1cd)],'label':_0x3b324f[_0x57457c(0x1bc)],'path':_0x3b324f[_0x57457c(0x1cb)],..._0x2d4805?{'pageUrl':_0x2d4805}:{},..._0x450d84?{'runtimePageUrl':_0x450d84}:{},..._0x4e7def?{'editPageUrl':_0x4e7def}:{}}];});return{'ok':!![],'data':{'pages':_0x471e1d},'message':_0x471e1d[_0x5b0710(0x1ba)]===0x0?_0x5b0710(0x1be):_0x5b0710(0x1c1)+_0x471e1d['length']+_0x5b0710(0x1c8)};}};
1
+ const a201_0x1a86f1=a201_0x36ba;function a201_0x36ba(_0x2665e0,_0x240e0a){_0x2665e0=_0x2665e0-0x180;const _0x5d68b5=a201_0x5d68();let _0x36ba32=_0x5d68b5[_0x2665e0];return _0x36ba32;}function a201_0x5d68(){const _0x4ba8d8=['273505MqRcVB','Found\x20','426144AnUKLX','183774RAifAe','4LQRsne','read','label','No\x20Custom\x20Pages\x20found.','11458mpJRzD','length','754752gWIddf','compress','appCode','14QhSCKd','cookie','custom-list','521658cFyCXz','30RvqJkj','3862089zZRFbo','page','type','react','14lRPBTZ','pageId','flatMap','path'];a201_0x5d68=function(){return _0x4ba8d8;};return a201_0x5d68();}(function(_0x1153ec,_0x205931){const _0x52ad2f=a201_0x36ba,_0x1c68b7=_0x1153ec();while(!![]){try{const _0x1540b3=-parseInt(_0x52ad2f(0x18e))/0x1*(-parseInt(_0x52ad2f(0x182))/0x2)+-parseInt(_0x52ad2f(0x189))/0x3+-parseInt(_0x52ad2f(0x18a))/0x4*(parseInt(_0x52ad2f(0x186))/0x5)+parseInt(_0x52ad2f(0x190))/0x6+parseInt(_0x52ad2f(0x193))/0x7*(-parseInt(_0x52ad2f(0x188))/0x8)+-parseInt(_0x52ad2f(0x196))/0x9*(parseInt(_0x52ad2f(0x197))/0xa)+parseInt(_0x52ad2f(0x198))/0xb;if(_0x1540b3===_0x205931)break;else _0x1c68b7['push'](_0x1c68b7['shift']());}catch(_0x4775a0){_0x1c68b7['push'](_0x1c68b7['shift']());}}}(a201_0x5d68,0x273cc));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x1a86f1(0x199),'command':a201_0x1a86f1(0x195),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a201_0x1a86f1(0x18b),'defaultOutputFormat':a201_0x1a86f1(0x191),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0xcbd705){const _0x456f90=a201_0x1a86f1,_0xeffa56=(await fetchMenuSnapshot(_0xcbd705[_0x456f90(0x192)],_0xcbd705[_0x456f90(0x194)]))['menus'][_0x456f90(0x184)](_0x36de07=>{const _0x1477fe=_0x456f90;if(_0x36de07[_0x1477fe(0x180)]!==_0x1477fe(0x181)||_0x36de07[_0x1477fe(0x183)]==null)return[];const _0x1a7464=buildCustomPageDevelopmentUrl(_0xcbd705['appCode'],_0x36de07[_0x1477fe(0x185)]),_0xb9b7ce=buildCustomPageRuntimeUrl(_0xcbd705[_0x1477fe(0x192)],_0x36de07[_0x1477fe(0x185)]),_0x336758=buildCustomPageEditUrl(_0xcbd705[_0x1477fe(0x192)],_0x36de07[_0x1477fe(0x183)]);return[{'pageId':_0x36de07[_0x1477fe(0x183)],'label':_0x36de07[_0x1477fe(0x18c)],'path':_0x36de07['path'],..._0x1a7464?{'pageUrl':_0x1a7464}:{},..._0xb9b7ce?{'runtimePageUrl':_0xb9b7ce}:{},..._0x336758?{'editPageUrl':_0x336758}:{}}];});return{'ok':!![],'data':{'pages':_0xeffa56},'message':_0xeffa56[_0x456f90(0x18f)]===0x0?_0x456f90(0x18d):_0x456f90(0x187)+_0xeffa56[_0x456f90(0x18f)]+'\x20Custom\x20Page(s).'};}};
@@ -1 +1 @@
1
- const a202_0x44fadf=a202_0x587f;(function(_0x560e78,_0x3a67f4){const _0x852c10=a202_0x587f,_0x3bab06=_0x560e78();while(!![]){try{const _0x4de374=-parseInt(_0x852c10(0x107))/0x1*(parseInt(_0x852c10(0x112))/0x2)+parseInt(_0x852c10(0x108))/0x3+-parseInt(_0x852c10(0xfb))/0x4*(parseInt(_0x852c10(0x109))/0x5)+parseInt(_0x852c10(0x101))/0x6*(-parseInt(_0x852c10(0xfc))/0x7)+parseInt(_0x852c10(0x113))/0x8*(-parseInt(_0x852c10(0x117))/0x9)+-parseInt(_0x852c10(0x11a))/0xa+parseInt(_0x852c10(0x10c))/0xb;if(_0x4de374===_0x3a67f4)break;else _0x3bab06['push'](_0x3bab06['shift']());}catch(_0x4fe41d){_0x3bab06['push'](_0x3bab06['shift']());}}}(a202_0x1af2,0xe6c0b));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x44fadf(0x11d),'command':a202_0x44fadf(0x10b),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a202_0x44fadf(0xff),'defaultOutputFormat':a202_0x44fadf(0x119),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x44fadf(0x116),'required':!![],'description':a202_0x44fadf(0x10f)},{'name':a202_0x44fadf(0xfe),'type':a202_0x44fadf(0x10e),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x301bae){readCustomPageId(_0x301bae);},async 'dryRun'(_0x2422a7){const _0x2433fb=a202_0x44fadf,_0x145c49=readInput(_0x2422a7);return{'method':_0x2433fb(0x102),'url':_0x2433fb(0xfa),'body':{'id':_0x145c49[_0x2433fb(0x105)],..._0x145c49[_0x2433fb(0xfe)]?{'remark':_0x145c49[_0x2433fb(0xfe)]}:{}},'description':_0x2433fb(0x115)+_0x145c49[_0x2433fb(0x105)]+'.'};},async 'execute'(_0x2f8164){const _0x18e89b=a202_0x44fadf,_0x5e798e=readInput(_0x2f8164);await getCustomPageSource(_0x5e798e[_0x18e89b(0x105)]);const _0x50f7cd=await publishCustomPage(_0x5e798e);if(!Number['isInteger'](_0x50f7cd)||_0x50f7cd!==_0x5e798e[_0x18e89b(0x105)])throw CliErrors['apiError'](_0x18e89b(0x110));const _0x458d3d=await getCustomPageSource(_0x5e798e[_0x18e89b(0x105)]);if(_0x458d3d[_0x18e89b(0x106)]!=='FORMAL')throw CliErrors['apiError'](_0x18e89b(0x10a)+(_0x458d3d['status']??_0x18e89b(0x103))+'.');const _0x557b18=_0x458d3d[_0x18e89b(0x11c)]?.['trim'](),_0x3e323a=buildCustomPageEditUrl(_0x557b18,_0x5e798e[_0x18e89b(0x105)]),_0x12d7c2=await resolveCustomPageDevelopmentUrl(_0x557b18,_0x5e798e['pageId'],_0x2f8164['cookie']),_0x5380f1=buildMutationData(_0x5e798e,!![],_0x12d7c2,_0x3e323a);_0x557b18&&!_0x12d7c2&&_0x5380f1[_0x18e89b(0x100)][_0x18e89b(0x118)](_0x18e89b(0x11b));const _0x572590=buildCustomPageRuntimeUrl(_0x458d3d[_0x18e89b(0x11c)],_0x458d3d[_0x18e89b(0x10d)]);return _0x572590?_0x5380f1[_0x18e89b(0x114)]=_0x572590:_0x5380f1[_0x18e89b(0x100)]['push'](_0x18e89b(0xfd)),{'ok':!![],'data':_0x5380f1,'message':'Published\x20Custom\x20Page\x20'+_0x5e798e[_0x18e89b(0x105)]+'.'};}};function readInput(_0x19a693){const _0x4f6c06=a202_0x44fadf,_0xa66e4d=readCustomPageId(_0x19a693),_0x1980ba=_0x19a693[_0x4f6c06(0x111)]('remark')[_0x4f6c06(0xf9)]();return{'pageId':_0xa66e4d,..._0x1980ba?{'remark':_0x1980ba}:{}};}function buildMutationData(_0x51817e,_0x51c2fa=![],_0x20e1a0,_0x1a3e54){const _0x57aea0=a202_0x44fadf;return{'operation':_0x57aea0(0x104),'selector':{'pageId':_0x51817e['pageId']},'before':null,'after':{'pageId':_0x51817e[_0x57aea0(0x105)],'status':'FORMAL'},'dryRun':!_0x51c2fa,'request':_0x51817e,..._0x20e1a0?{'pageUrl':_0x20e1a0}:{},..._0x1a3e54?{'editPageUrl':_0x1a3e54}:{},'warnings':[]};}function a202_0x587f(_0x5d2df3,_0x584f99){_0x5d2df3=_0x5d2df3-0xf9;const _0x1af2a4=a202_0x1af2();let _0x587f11=_0x1af2a4[_0x5d2df3];return _0x587f11;}function a202_0x1af2(){const _0x28676b=['Custom\x20Page\x20ID','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','str','2VmBmmK','536TsMMPe','runtimePageUrl','Would\x20publish\x20Custom\x20Page\x20','number','159390mVAcsn','push','compress','9577720OVsLFI','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','appCode','page','trim','/smartapi/webcode/file/publish','339056JatbMs','511DxcYXV','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','remark','write','warnings','138366mKFWEv','POST','unknown','page.custom-publish','pageId','status','1046773faFZJK','2420187uphXym','15tabiJD','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','custom-publish','57940234smtxSE','pageCode','string'];a202_0x1af2=function(){return _0x28676b;};return a202_0x1af2();}
1
+ function a202_0x1fe6(){const _0x5d2ce6=['Would\x20publish\x20Custom\x20Page\x20','remark','trim','isInteger','3850272qBJeQR','unknown','1080375rQnqmC','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','pageId','1054832HuJvoJ','push','Custom\x20Page\x20ID','appCode','2568051cKzgcl','warnings','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','status','runtimePageUrl','6311094Grgpdk','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','string','compress','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Published\x20Custom\x20Page\x20','number','82744nGiUcH','566647TTLsoD','FORMAL','apiError','/smartapi/webcode/file/publish','page.custom-publish','str','page','14IWiwSx','cookie'];a202_0x1fe6=function(){return _0x5d2ce6;};return a202_0x1fe6();}const a202_0x4ef2e2=a202_0xb03d;(function(_0x484fb4,_0x3d1999){const _0x7f7bb7=a202_0xb03d,_0x1059b4=_0x484fb4();while(!![]){try{const _0x31c6a6=-parseInt(_0x7f7bb7(0x119))/0x1+parseInt(_0x7f7bb7(0x107))/0x2+parseInt(_0x7f7bb7(0x10b))/0x3+parseInt(_0x7f7bb7(0x102))/0x4+-parseInt(_0x7f7bb7(0x104))/0x5+-parseInt(_0x7f7bb7(0x110))/0x6+parseInt(_0x7f7bb7(0xfc))/0x7*(parseInt(_0x7f7bb7(0x118))/0x8);if(_0x31c6a6===_0x3d1999)break;else _0x1059b4['push'](_0x1059b4['shift']());}catch(_0x5f0332){_0x1059b4['push'](_0x1059b4['shift']());}}}(a202_0x1fe6,0x81e94));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x4ef2e2(0xfb),'command':'custom-publish','description':a202_0x4ef2e2(0x10d),'risk':'write','defaultOutputFormat':a202_0x4ef2e2(0x114),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x4ef2e2(0x117),'required':!![],'description':a202_0x4ef2e2(0x109)},{'name':'remark','type':a202_0x4ef2e2(0x113),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x3707fd){readCustomPageId(_0x3707fd);},async 'dryRun'(_0x4b0b27){const _0x4f4f66=a202_0x4ef2e2,_0x35bbc1=readInput(_0x4b0b27);return{'method':'POST','url':_0x4f4f66(0xf8),'body':{'id':_0x35bbc1['pageId'],..._0x35bbc1['remark']?{'remark':_0x35bbc1['remark']}:{}},'description':_0x4f4f66(0xfe)+_0x35bbc1[_0x4f4f66(0x106)]+'.'};},async 'execute'(_0x5f0032){const _0x2a6394=a202_0x4ef2e2,_0x520b30=readInput(_0x5f0032);await getCustomPageSource(_0x520b30[_0x2a6394(0x106)]);const _0x490111=await publishCustomPage(_0x520b30);if(!Number[_0x2a6394(0x101)](_0x490111)||_0x490111!==_0x520b30[_0x2a6394(0x106)])throw CliErrors[_0x2a6394(0xf7)](_0x2a6394(0x105));const _0x38be05=await getCustomPageSource(_0x520b30[_0x2a6394(0x106)]);if(_0x38be05[_0x2a6394(0x10e)]!==_0x2a6394(0x11a))throw CliErrors['apiError'](_0x2a6394(0x112)+(_0x38be05['status']??_0x2a6394(0x103))+'.');const _0x1ea9ba=_0x38be05[_0x2a6394(0x10a)]?.[_0x2a6394(0x100)](),_0x13dbb7=buildCustomPageEditUrl(_0x1ea9ba,_0x520b30[_0x2a6394(0x106)]),_0x24938c=await resolveCustomPageDevelopmentUrl(_0x1ea9ba,_0x520b30['pageId'],_0x5f0032[_0x2a6394(0xfd)]),_0x30b5be=buildMutationData(_0x520b30,!![],_0x24938c,_0x13dbb7);_0x1ea9ba&&!_0x24938c&&_0x30b5be[_0x2a6394(0x10c)][_0x2a6394(0x108)](_0x2a6394(0x115));const _0x551499=buildCustomPageRuntimeUrl(_0x38be05[_0x2a6394(0x10a)],_0x38be05['pageCode']);return _0x551499?_0x30b5be[_0x2a6394(0x10f)]=_0x551499:_0x30b5be['warnings'][_0x2a6394(0x108)](_0x2a6394(0x111)),{'ok':!![],'data':_0x30b5be,'message':_0x2a6394(0x116)+_0x520b30[_0x2a6394(0x106)]+'.'};}};function a202_0xb03d(_0x36fe53,_0x276e78){_0x36fe53=_0x36fe53-0xf7;const _0x1fe62=a202_0x1fe6();let _0xb03d7f=_0x1fe62[_0x36fe53];return _0xb03d7f;}function readInput(_0x2d92b2){const _0x6fd117=a202_0x4ef2e2,_0x2d5e1=readCustomPageId(_0x2d92b2),_0x2bf7d8=_0x2d92b2[_0x6fd117(0xfa)](_0x6fd117(0xff))[_0x6fd117(0x100)]();return{'pageId':_0x2d5e1,..._0x2bf7d8?{'remark':_0x2bf7d8}:{}};}function buildMutationData(_0x1931c6,_0x3b0252=![],_0xb73b6f,_0x1e847f){const _0x3c367c=a202_0x4ef2e2;return{'operation':_0x3c367c(0xf9),'selector':{'pageId':_0x1931c6[_0x3c367c(0x106)]},'before':null,'after':{'pageId':_0x1931c6['pageId'],'status':_0x3c367c(0x11a)},'dryRun':!_0x3b0252,'request':_0x1931c6,..._0xb73b6f?{'pageUrl':_0xb73b6f}:{},..._0x1e847f?{'editPageUrl':_0x1e847f}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a203_0x194aae=a203_0x177f;(function(_0x2e247f,_0x34a2c1){const _0x34f33a=a203_0x177f,_0x50caa5=_0x2e247f();while(!![]){try{const _0x100c2f=-parseInt(_0x34f33a(0x1a6))/0x1*(-parseInt(_0x34f33a(0x19d))/0x2)+-parseInt(_0x34f33a(0x198))/0x3*(-parseInt(_0x34f33a(0x1a0))/0x4)+parseInt(_0x34f33a(0x1a2))/0x5+parseInt(_0x34f33a(0x194))/0x6+-parseInt(_0x34f33a(0x197))/0x7*(parseInt(_0x34f33a(0x19f))/0x8)+-parseInt(_0x34f33a(0x1a5))/0x9*(-parseInt(_0x34f33a(0x1a1))/0xa)+-parseInt(_0x34f33a(0x19b))/0xb;if(_0x100c2f===_0x34a2c1)break;else _0x50caa5['push'](_0x50caa5['shift']());}catch(_0x315a73){_0x50caa5['push'](_0x50caa5['shift']());}}}(a203_0xf192,0x359bd));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':a203_0x194aae(0x199)};function a203_0xf192(){const _0xad5bd=['path','7MJLhSv','475782fucLrh','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','menus','9254960ikKWUx','map','24tgwgpq','isInteger','3181176qFHITK','8NwBGIR','152030hdtZRq','1531205DHVurQ','trim','find','117RpISRz','30921HSDOKm','type','--id\x20must\x20be\x20a\x20positive\x20integer.','/pages/','validation','num','pageId','react','message','1598808WRRKAa','/ide/'];a203_0xf192=function(){return _0xad5bd;};return a203_0xf192();}function trimOptional(_0x5d8200){const _0x4d3d25=a203_0x194aae;return _0x5d8200?.[_0x4d3d25(0x1a3)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x547bb0,_0x12ce37){const _0x315648=trimOptional(_0x547bb0),_0x1dce01=trimOptional(_0x12ce37);if(!_0x315648||!_0x1dce01)return undefined;return getPublishedAppDomain(_0x315648)+'/'+encodeURIComponent(_0x1dce01);}export function buildCustomPageDevelopmentUrl(_0x3e57bd,_0x4d1ccd){const _0x1ebcf6=a203_0x194aae,_0x290bd4=trimOptional(_0x3e57bd),_0x40d991=trimOptional(_0x4d1ccd);if(!_0x290bd4||!_0x40d991)return undefined;return getAppBaseUrl(_0x290bd4)+_0x1ebcf6(0x18e)+encodeURIComponent(_0x40d991);}export async function resolveCustomPageDevelopmentUrl(_0x2fb19a,_0x514517,_0x571323){const _0x1cf30a=a203_0x194aae,_0x4b7d8d=trimOptional(_0x2fb19a);if(!_0x4b7d8d)return undefined;try{const _0x362fa2=(await fetchMenuSnapshot(_0x4b7d8d,_0x571323))[_0x1cf30a(0x19a)][_0x1cf30a(0x1a4)](_0x2f94ec=>_0x2f94ec[_0x1cf30a(0x1a7)]===_0x1cf30a(0x192)&&_0x2f94ec[_0x1cf30a(0x191)]===_0x514517);return buildCustomPageDevelopmentUrl(_0x4b7d8d,_0x362fa2?.[_0x1cf30a(0x196)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0xf8e769,_0x14147d){const _0x174228=a203_0x194aae,_0x4bc83e=trimOptional(_0xf8e769);if(!_0x4bc83e)return;const _0x2ac6c2=trimOptional(String(_0x14147d??''));if(!_0x2ac6c2)return;return getAppBaseUrl(_0x4bc83e)+_0x174228(0x195)+encodeURIComponent(_0x2ac6c2);}function a203_0x177f(_0xa8b89d,_0x24bd0a){_0xa8b89d=_0xa8b89d-0x18d;const _0xf19254=a203_0xf192();let _0x177f24=_0xf19254[_0xa8b89d];return _0x177f24;}export async function validateCustomPageContent(_0x330ae6){const _0x404706=a203_0x194aae,_0x2380ab=await validateCustomPageSourceFiles(_0x330ae6);if(_0x2380ab['length']>0x0)throw CliErrors[_0x404706(0x18f)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x2380ab[_0x404706(0x19c)](_0x7e7ca0=>_0x7e7ca0['file']+':\x20'+_0x7e7ca0[_0x404706(0x193)])['join'](';\x20'));}export function readCustomPageId(_0x16934b){const _0x27e160=a203_0x194aae,_0x46c92e=_0x16934b[_0x27e160(0x190)]('id');if(!Number[_0x27e160(0x19e)](_0x46c92e)||_0x46c92e<=0x0)throw CliErrors[_0x27e160(0x18f)](_0x27e160(0x18d));return _0x46c92e;}
1
+ const a203_0x34d4fa=a203_0x1828;(function(_0x5665ff,_0x716aa7){const _0xaf3dd9=a203_0x1828,_0x44354d=_0x5665ff();while(!![]){try{const _0xa5821d=-parseInt(_0xaf3dd9(0x10c))/0x1*(parseInt(_0xaf3dd9(0xfe))/0x2)+-parseInt(_0xaf3dd9(0x10e))/0x3+-parseInt(_0xaf3dd9(0x10d))/0x4+-parseInt(_0xaf3dd9(0x100))/0x5+parseInt(_0xaf3dd9(0x107))/0x6*(parseInt(_0xaf3dd9(0x104))/0x7)+-parseInt(_0xaf3dd9(0x103))/0x8*(-parseInt(_0xaf3dd9(0x101))/0x9)+parseInt(_0xaf3dd9(0xfb))/0xa;if(_0xa5821d===_0x716aa7)break;else _0x44354d['push'](_0x44354d['shift']());}catch(_0x1dd4c1){_0x44354d['push'](_0x44354d['shift']());}}}(a203_0x5a2f,0x33762));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':a203_0x34d4fa(0x113)};function trimOptional(_0x6b2de2){const _0x2384aa=a203_0x34d4fa;return _0x6b2de2?.[_0x2384aa(0xfd)]()||undefined;}export function buildCustomPageRuntimeUrl(_0xac37ec,_0x44e28b){const _0x17393d=trimOptional(_0xac37ec),_0x545e88=trimOptional(_0x44e28b);if(!_0x17393d||!_0x545e88)return undefined;return getPublishedAppDomain(_0x17393d)+'/'+encodeURIComponent(_0x545e88);}function a203_0x1828(_0x9f8d36,_0x3ead6a){_0x9f8d36=_0x9f8d36-0xfa;const _0x5a2f26=a203_0x5a2f();let _0x182837=_0x5a2f26[_0x9f8d36];return _0x182837;}export function buildCustomPageDevelopmentUrl(_0x997506,_0x48aa65){const _0xcfb046=a203_0x34d4fa,_0x29a7eb=trimOptional(_0x997506),_0x2a635d=trimOptional(_0x48aa65);if(!_0x29a7eb||!_0x2a635d)return undefined;return getAppBaseUrl(_0x29a7eb)+_0xcfb046(0x114)+encodeURIComponent(_0x2a635d);}export async function resolveCustomPageDevelopmentUrl(_0x1ee8ae,_0x1cb2aa,_0x3bf4f3){const _0x40e613=a203_0x34d4fa,_0x35a964=trimOptional(_0x1ee8ae);if(!_0x35a964)return undefined;try{const _0x4e1adb=(await fetchMenuSnapshot(_0x35a964,_0x3bf4f3))[_0x40e613(0x10b)][_0x40e613(0xfa)](_0x483d33=>_0x483d33[_0x40e613(0xfc)]===_0x40e613(0x111)&&_0x483d33[_0x40e613(0xff)]===_0x1cb2aa);return buildCustomPageDevelopmentUrl(_0x35a964,_0x4e1adb?.[_0x40e613(0x112)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x591fe8,_0x497aa8){const _0x7284dd=trimOptional(_0x591fe8);if(!_0x7284dd)return;const _0xb4ddb=trimOptional(String(_0x497aa8??''));if(!_0xb4ddb)return;return getAppBaseUrl(_0x7284dd)+'/ide/'+encodeURIComponent(_0xb4ddb);}export async function validateCustomPageContent(_0x16fcf0){const _0x4ffc77=a203_0x34d4fa,_0x321512=await validateCustomPageSourceFiles(_0x16fcf0);if(_0x321512[_0x4ffc77(0x10f)]>0x0)throw CliErrors[_0x4ffc77(0x105)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x321512[_0x4ffc77(0x109)](_0x43c8f7=>_0x43c8f7[_0x4ffc77(0x110)]+':\x20'+_0x43c8f7[_0x4ffc77(0x106)])[_0x4ffc77(0x102)](';\x20'));}function a203_0x5a2f(){const _0x34a8f6=['1165428FOewSC','568110IUTZMS','length','file','react','path','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','/pages/','find','9265710GGanZb','type','trim','279226cZBsYk','pageId','1647990tRdBdu','493209zIYHUw','join','32tLJcBE','231gIQfdQ','validation','message','2718WNxdMh','isInteger','map','--id\x20must\x20be\x20a\x20positive\x20integer.','menus','1KEwNwv'];a203_0x5a2f=function(){return _0x34a8f6;};return a203_0x5a2f();}export function readCustomPageId(_0x1d615f){const _0x4665e3=a203_0x34d4fa,_0x37513b=_0x1d615f['num']('id');if(!Number[_0x4665e3(0x108)](_0x37513b)||_0x37513b<=0x0)throw CliErrors[_0x4665e3(0x105)](_0x4665e3(0x10a));return _0x37513b;}
@@ -1 +1 @@
1
- const a204_0x25175c=a204_0x5687;function a204_0x5687(_0x5e1ffc,_0x53f610){_0x5e1ffc=_0x5e1ffc-0x157;const _0xb83654=a204_0xb836();let _0x568781=_0xb83654[_0x5e1ffc];return _0x568781;}(function(_0x388aeb,_0x13f23c){const _0x1f03c3=a204_0x5687,_0x19a25e=_0x388aeb();while(!![]){try{const _0x290591=-parseInt(_0x1f03c3(0x163))/0x1*(-parseInt(_0x1f03c3(0x164))/0x2)+-parseInt(_0x1f03c3(0x15d))/0x3+-parseInt(_0x1f03c3(0x159))/0x4+-parseInt(_0x1f03c3(0x162))/0x5+-parseInt(_0x1f03c3(0x165))/0x6+parseInt(_0x1f03c3(0x16e))/0x7*(parseInt(_0x1f03c3(0x15b))/0x8)+parseInt(_0x1f03c3(0x15f))/0x9;if(_0x290591===_0x13f23c)break;else _0x19a25e['push'](_0x19a25e['shift']());}catch(_0x2ed6e8){_0x19a25e['push'](_0x19a25e['shift']());}}}(a204_0xb836,0xe458a));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x25175c(0x15a),'.jsx':a204_0x25175c(0x15a),'.ts':'typescript','.tsx':a204_0x25175c(0x169)},CUSTOM_PAGE_EXTENSIONS=[a204_0x25175c(0x16d),a204_0x25175c(0x16b)];export async function validateCustomPageSourceFiles(_0xdc0edc){const _0x26c31c=a204_0x25175c,_0x76ee2e=Object[_0x26c31c(0x161)](_0xdc0edc)['filter'](([_0x1084c8])=>getParser(_0x1084c8));if(!_0x76ee2e[_0x26c31c(0x15e)](([_0x3ba6cd])=>isReactSourceFile(_0x3ba6cd)))return[{'file':_0x26c31c(0x158),'message':_0x26c31c(0x16f)}];const _0x2f76e2=await Promise[_0x26c31c(0x15c)](_0x76ee2e[_0x26c31c(0x166)](async([_0x1f3bba,_0x250ca4])=>{const _0x3beef0=_0x26c31c;try{return await format(_0x250ca4,{'parser':getParser(_0x1f3bba)}),undefined;}catch(_0x531d4e){return{'file':_0x1f3bba,'message':_0x531d4e instanceof Error?_0x531d4e[_0x3beef0(0x16a)]:String(_0x531d4e)};}}));return _0x2f76e2[_0x26c31c(0x167)](_0xb99c9a=>_0xb99c9a!==undefined);}function getParser(_0x22ca55){const _0x522e06=a204_0x25175c,_0x24599e=_0x22ca55['trim']()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)[_0x522e06(0x16c)](([_0x1cbd35])=>_0x24599e[_0x522e06(0x168)](_0x1cbd35))?.[0x1];}function a204_0xb836(){const _0x2d0bdd=['715882uFLCbp','196200PESudd','map','filter','endsWith','typescript','message','.tsx','find','.jsx','21mzsoUN','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','toLowerCase','page\x20files','5735492UNDdqD','babel','388192nCvcPg','all','1431348vlXMGY','some','16825302PoVaYW','trim','entries','4628800HpHKuI','5vKISSa'];a204_0xb836=function(){return _0x2d0bdd;};return a204_0xb836();}function isReactSourceFile(_0x10ba00){const _0x6e358f=a204_0x25175c,_0x52c3df=_0x10ba00[_0x6e358f(0x160)]()[_0x6e358f(0x157)]();return CUSTOM_PAGE_EXTENSIONS[_0x6e358f(0x15e)](_0x28e840=>_0x52c3df[_0x6e358f(0x168)](_0x28e840));}
1
+ const a204_0x5151ed=a204_0x5e78;(function(_0x505ede,_0x467645){const _0x18c044=a204_0x5e78,_0x13300f=_0x505ede();while(!![]){try{const _0x5ca039=parseInt(_0x18c044(0x118))/0x1+parseInt(_0x18c044(0x11b))/0x2*(parseInt(_0x18c044(0x11f))/0x3)+-parseInt(_0x18c044(0x120))/0x4+-parseInt(_0x18c044(0x10c))/0x5+-parseInt(_0x18c044(0x117))/0x6*(parseInt(_0x18c044(0x11d))/0x7)+-parseInt(_0x18c044(0x123))/0x8*(parseInt(_0x18c044(0x113))/0x9)+-parseInt(_0x18c044(0x121))/0xa*(-parseInt(_0x18c044(0x11e))/0xb);if(_0x5ca039===_0x467645)break;else _0x13300f['push'](_0x13300f['shift']());}catch(_0x59b13a){_0x13300f['push'](_0x13300f['shift']());}}}(a204_0x3e3f,0x4e70d));function a204_0x3e3f(){const _0x4ee8d9=['all','toLowerCase','filter','find','18eetTVx','.jsx','map','some','3948MsTxec','388090ORajCX','page\x20files','endsWith','2hpGtaF','.tsx','3423PiddLA','11FFIaVu','398007aYIMFV','1683340eIhabf','16816620UkdCAB','typescript','2186024zqqfXd','babel','2960125FmrKoY','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','trim'];a204_0x3e3f=function(){return _0x4ee8d9;};return a204_0x3e3f();}import{format}from'prettier';function a204_0x5e78(_0x27a9a4,_0x25dbb4){_0x27a9a4=_0x27a9a4-0x10c;const _0x3e3fbe=a204_0x3e3f();let _0x5e784d=_0x3e3fbe[_0x27a9a4];return _0x5e784d;}const SOURCE_PARSERS={'.js':a204_0x5151ed(0x124),'.jsx':'babel','.ts':a204_0x5151ed(0x122),'.tsx':a204_0x5151ed(0x122)},CUSTOM_PAGE_EXTENSIONS=[a204_0x5151ed(0x114),a204_0x5151ed(0x11c)];export async function validateCustomPageSourceFiles(_0x306519){const _0xb063d6=a204_0x5151ed,_0x2ced70=Object['entries'](_0x306519)[_0xb063d6(0x111)](([_0x11a08f])=>getParser(_0x11a08f));if(!_0x2ced70[_0xb063d6(0x116)](([_0x771d4b])=>isReactSourceFile(_0x771d4b)))return[{'file':_0xb063d6(0x119),'message':_0xb063d6(0x10d)}];const _0x240d33=await Promise[_0xb063d6(0x10f)](_0x2ced70[_0xb063d6(0x115)](async([_0x3efc92,_0x3e6061])=>{try{return await format(_0x3e6061,{'parser':getParser(_0x3efc92)}),undefined;}catch(_0x3f38a3){return{'file':_0x3efc92,'message':_0x3f38a3 instanceof Error?_0x3f38a3['message']:String(_0x3f38a3)};}}));return _0x240d33[_0xb063d6(0x111)](_0xbf3c7c=>_0xbf3c7c!==undefined);}function getParser(_0x23bf84){const _0xe782fc=a204_0x5151ed,_0x3159b6=_0x23bf84[_0xe782fc(0x10e)]()[_0xe782fc(0x110)]();return Object['entries'](SOURCE_PARSERS)[_0xe782fc(0x112)](([_0x2bc424])=>_0x3159b6['endsWith'](_0x2bc424))?.[0x1];}function isReactSourceFile(_0x346d7e){const _0x233040=a204_0x5151ed,_0x484f3a=_0x346d7e[_0x233040(0x10e)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x233040(0x116)](_0x2c80bb=>_0x484f3a[_0x233040(0x11a)](_0x2c80bb));}
@@ -1 +1 @@
1
- const a205_0x4dee5f=a205_0x24b3;(function(_0x3d3d87,_0x32c215){const _0x54aed9=a205_0x24b3,_0x42e814=_0x3d3d87();while(!![]){try{const _0x1ec002=-parseInt(_0x54aed9(0x1ff))/0x1*(parseInt(_0x54aed9(0x1fb))/0x2)+parseInt(_0x54aed9(0x1f8))/0x3*(parseInt(_0x54aed9(0x1eb))/0x4)+parseInt(_0x54aed9(0x1fc))/0x5+-parseInt(_0x54aed9(0x1fd))/0x6+parseInt(_0x54aed9(0x1ea))/0x7*(-parseInt(_0x54aed9(0x1f5))/0x8)+parseInt(_0x54aed9(0x1de))/0x9+-parseInt(_0x54aed9(0x1f2))/0xa;if(_0x1ec002===_0x32c215)break;else _0x42e814['push'](_0x42e814['shift']());}catch(_0xce2e4c){_0x42e814['push'](_0x42e814['shift']());}}}(a205_0x2aa6,0xb9219));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x24b3(_0x13b865,_0x4c4674){_0x13b865=_0x13b865-0x1de;const _0x2aa6f4=a205_0x2aa6();let _0x24b3e8=_0x2aa6f4[_0x13b865];return _0x24b3e8;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x2aa6(){const _0x29929e=['validation','apiError','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','string','POST','1349929cxAiCi','169996vdfxMo','trim','str','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','isInteger','cookie','4231160cqxNae','newVersion','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','16IZqfdk','write','pageContent','57dJrlgs','page.custom-update','appCode','489038KaUvlk','4478125lMfFip','3060750FZcXNq','number','2ZxHOSc','appcode','Custom\x20Page\x20ID','7768476BVEMbo','page-dir','Updated\x20Custom\x20Page\x20','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','/smartapi/webcode/page/update/content','pageId'];a205_0x2aa6=function(){return _0x29929e;};return a205_0x2aa6();}export const pageCustomUpdate={'service':'page','command':'custom-update','description':a205_0x4dee5f(0x1e7),'risk':a205_0x4dee5f(0x1f6),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':'page-content','message':'page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','hint':a205_0x4dee5f(0x1e1)}],'flags':[{'name':'id','type':a205_0x4dee5f(0x1fe),'required':!![],'description':a205_0x4dee5f(0x201)},{'name':a205_0x4dee5f(0x1df),'type':a205_0x4dee5f(0x1e8),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4cd3c5){readCustomPageId(_0x4cd3c5),await readValidatedPageContent(_0x4cd3c5);},async 'dryRun'(_0x10a1d1){const _0x494932=a205_0x4dee5f,_0x407ee4=await readInput(_0x10a1d1);return{'method':_0x494932(0x1e9),'url':_0x494932(0x1e3),'body':{'id':_0x407ee4['pageId'],'codeContent':_0x407ee4[_0x494932(0x1f7)]},'description':_0x494932(0x1ef)+_0x407ee4[_0x494932(0x1e4)]+'.'};},async 'execute'(_0x5ad430){const _0x29610a=a205_0x4dee5f,_0x3ab4f8=await readInput(_0x5ad430),_0x7ee5f=await updateCustomPageContent({'pageId':_0x3ab4f8[_0x29610a(0x1e4)],'pageContent':_0x3ab4f8[_0x29610a(0x1f7)]});if(!Number[_0x29610a(0x1f0)](_0x7ee5f[_0x29610a(0x1f3)])||_0x7ee5f[_0x29610a(0x1f3)]<=0x0)throw CliErrors[_0x29610a(0x1e6)](_0x29610a(0x1e2));const _0x5d354b=buildCustomPageEditUrl(_0x3ab4f8[_0x29610a(0x1fa)],_0x3ab4f8[_0x29610a(0x1e4)]),_0xd4fbfd=await resolveCustomPageDevelopmentUrl(_0x3ab4f8[_0x29610a(0x1fa)],_0x3ab4f8[_0x29610a(0x1e4)],_0x5ad430[_0x29610a(0x1f1)]);return{'ok':!![],'data':{'operation':_0x29610a(0x1f9),'selector':{'appCode':_0x3ab4f8[_0x29610a(0x1fa)],'pageId':_0x3ab4f8[_0x29610a(0x1e4)]},'before':null,'after':{'pageId':_0x7ee5f[_0x29610a(0x1e4)],'version':_0x7ee5f[_0x29610a(0x1f3)],'pageContent':_0x3ab4f8[_0x29610a(0x1f7)]},'dryRun':![],'request':_0x3ab4f8,..._0xd4fbfd?{'pageUrl':_0xd4fbfd}:{},..._0x5d354b?{'editPageUrl':_0x5d354b}:{},'warnings':_0xd4fbfd?[]:[_0x29610a(0x1ee)]},'message':_0x29610a(0x1e0)+_0x3ab4f8[_0x29610a(0x1e4)]+'.'};}};async function readInput(_0x493dba){const _0x21ebf1=a205_0x4dee5f,_0x577786=readCustomPageId(_0x493dba),_0x22c9de=_0x493dba[_0x21ebf1(0x1ed)](_0x21ebf1(0x200))[_0x21ebf1(0x1ec)]()||(await getCustomPageSource(_0x577786))[_0x21ebf1(0x1fa)]?.['trim']();if(!_0x22c9de)throw CliErrors[_0x21ebf1(0x1e5)](_0x21ebf1(0x1f4)+_0x577786+'.');return{'appCode':_0x22c9de,'pageId':_0x577786,'pageContent':await readValidatedPageContent(_0x493dba)};}async function readValidatedPageContent(_0x15444f){const _0x22b8e2=a205_0x4dee5f,_0x4b271d=await readCustomPageDirectory(_0x15444f['str'](_0x22b8e2(0x1df)));return await validateCustomPageContent(_0x4b271d),_0x4b271d;}
1
+ const a205_0x19bd37=a205_0x1d9a;(function(_0x27aa15,_0x5ddfc2){const _0x1d0b93=a205_0x1d9a,_0x5cc9e6=_0x27aa15();while(!![]){try{const _0x2c9985=parseInt(_0x1d0b93(0xbe))/0x1*(-parseInt(_0x1d0b93(0xbd))/0x2)+-parseInt(_0x1d0b93(0xbb))/0x3*(parseInt(_0x1d0b93(0xb8))/0x4)+parseInt(_0x1d0b93(0xbf))/0x5+parseInt(_0x1d0b93(0xae))/0x6+parseInt(_0x1d0b93(0xc3))/0x7+-parseInt(_0x1d0b93(0xac))/0x8*(-parseInt(_0x1d0b93(0xaa))/0x9)+-parseInt(_0x1d0b93(0xc7))/0xa;if(_0x2c9985===_0x5ddfc2)break;else _0x5cc9e6['push'](_0x5cc9e6['shift']());}catch(_0x39e154){_0x5cc9e6['push'](_0x5cc9e6['shift']());}}}(a205_0x4026,0xe0b7b));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x1d9a(_0x1d404f,_0x3929ce){_0x1d404f=_0x1d404f-0xaa;const _0x4026d8=a205_0x4026();let _0x1d9a9f=_0x4026d8[_0x1d404f];return _0x1d9a9f;}function a205_0x4026(){const _0x1ba2f1=['Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','apiError','appCode','write','/smartapi/webcode/page/update/content','Directory\x20containing\x20all\x20complete\x20page\x20files','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','page-content','40tvWPvD','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','trim','494133JNIMwg','appcode','2617204FgRWlx','1TeOnPQ','3423885LrbqqK','isInteger','validation','page-dir','5864922cIfUib','newVersion','page','str','7106910cbMHOY','pageId','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','28233kVXKLG','Updated\x20Custom\x20Page\x20','3928myFddA','pageContent','9143736lcoipp','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.'];a205_0x4026=function(){return _0x1ba2f1;};return a205_0x4026();}export const pageCustomUpdate={'service':a205_0x19bd37(0xc5),'command':'custom-update','description':a205_0x19bd37(0xb6),'risk':a205_0x19bd37(0xb3),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x19bd37(0xb7),'message':a205_0x19bd37(0xc9),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':'number','required':!![],'description':'Custom\x20Page\x20ID'},{'name':a205_0x19bd37(0xc2),'type':'string','required':!![],'description':a205_0x19bd37(0xb5)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x226413){readCustomPageId(_0x226413),await readValidatedPageContent(_0x226413);},async 'dryRun'(_0x28aed8){const _0x332bc6=a205_0x19bd37,_0x5605ee=await readInput(_0x28aed8);return{'method':'POST','url':_0x332bc6(0xb4),'body':{'id':_0x5605ee[_0x332bc6(0xc8)],'codeContent':_0x5605ee[_0x332bc6(0xad)]},'description':_0x332bc6(0xb0)+_0x5605ee[_0x332bc6(0xc8)]+'.'};},async 'execute'(_0x1d5163){const _0x343e32=a205_0x19bd37,_0x510960=await readInput(_0x1d5163),_0x14da6d=await updateCustomPageContent({'pageId':_0x510960[_0x343e32(0xc8)],'pageContent':_0x510960[_0x343e32(0xad)]});if(!Number[_0x343e32(0xc0)](_0x14da6d[_0x343e32(0xc4)])||_0x14da6d[_0x343e32(0xc4)]<=0x0)throw CliErrors[_0x343e32(0xb1)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x22569e=buildCustomPageEditUrl(_0x510960['appCode'],_0x510960[_0x343e32(0xc8)]),_0x1250ed=await resolveCustomPageDevelopmentUrl(_0x510960[_0x343e32(0xb2)],_0x510960[_0x343e32(0xc8)],_0x1d5163['cookie']);return{'ok':!![],'data':{'operation':'page.custom-update','selector':{'appCode':_0x510960[_0x343e32(0xb2)],'pageId':_0x510960[_0x343e32(0xc8)]},'before':null,'after':{'pageId':_0x14da6d[_0x343e32(0xc8)],'version':_0x14da6d['newVersion'],'pageContent':_0x510960['pageContent']},'dryRun':![],'request':_0x510960,..._0x1250ed?{'pageUrl':_0x1250ed}:{},..._0x22569e?{'editPageUrl':_0x22569e}:{},'warnings':_0x1250ed?[]:[_0x343e32(0xaf)]},'message':_0x343e32(0xab)+_0x510960[_0x343e32(0xc8)]+'.'};}};async function readInput(_0x139459){const _0x26087=a205_0x19bd37,_0x2890e1=readCustomPageId(_0x139459),_0x384fd8=_0x139459[_0x26087(0xc6)](_0x26087(0xbc))['trim']()||(await getCustomPageSource(_0x2890e1))[_0x26087(0xb2)]?.[_0x26087(0xba)]();if(!_0x384fd8)throw CliErrors[_0x26087(0xc1)](_0x26087(0xb9)+_0x2890e1+'.');return{'appCode':_0x384fd8,'pageId':_0x2890e1,'pageContent':await readValidatedPageContent(_0x139459)};}async function readValidatedPageContent(_0x4fd48e){const _0x5b37b2=a205_0x19bd37,_0x2bae9e=await readCustomPageDirectory(_0x4fd48e[_0x5b37b2(0xc6)]('page-dir'));return await validateCustomPageContent(_0x2bae9e),_0x2bae9e;}
@@ -1 +1 @@
1
- const a206_0x39d1f3=a206_0x2257;(function(_0x370340,_0x55191a){const _0xe72b12=a206_0x2257,_0x10e6ad=_0x370340();while(!![]){try{const _0x2a9140=-parseInt(_0xe72b12(0xa5))/0x1*(-parseInt(_0xe72b12(0xb3))/0x2)+parseInt(_0xe72b12(0xa3))/0x3+parseInt(_0xe72b12(0xb0))/0x4*(-parseInt(_0xe72b12(0xa8))/0x5)+parseInt(_0xe72b12(0x99))/0x6*(parseInt(_0xe72b12(0xa7))/0x7)+parseInt(_0xe72b12(0x9c))/0x8*(parseInt(_0xe72b12(0xac))/0x9)+-parseInt(_0xe72b12(0xa2))/0xa*(parseInt(_0xe72b12(0x9b))/0xb)+parseInt(_0xe72b12(0x9f))/0xc*(-parseInt(_0xe72b12(0xaf))/0xd);if(_0x2a9140===_0x55191a)break;else _0x10e6ad['push'](_0x10e6ad['shift']());}catch(_0xcd5061){_0x10e6ad['push'](_0x10e6ad['shift']());}}}(a206_0x5ec6,0x7fd5f));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':'page','command':a206_0x39d1f3(0xb1),'description':a206_0x39d1f3(0xa9),'risk':a206_0x39d1f3(0xb2),'defaultOutputFormat':a206_0x39d1f3(0xa0),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x39d1f3(0x9a),'type':a206_0x39d1f3(0xa1),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x51a7dc){validateDatasetSelector(_0x51a7dc);},async 'dryRun'(_0x18aefb){const _0x50ca08=a206_0x39d1f3,_0x42cbc4=await loadDatasetDetailForPage(_0x18aefb);return{'method':'GET','url':_0x50ca08(0xa6)+_0x42cbc4[_0x50ca08(0x9e)]+'/standard-page-status?appCode='+encodeURIComponent(_0x18aefb[_0x50ca08(0xae)]),'description':serializeDryRunDescription({'dataset':{'id':_0x42cbc4['id'],'code':_0x42cbc4[_0x50ca08(0x9e)],'name':_0x42cbc4['name']},'action':_0x50ca08(0xab)})};},async 'execute'(_0x5848f1){const _0x7efe59=a206_0x39d1f3,_0x59b944=await loadDatasetDetailForPage(_0x5848f1),_0x4a8fb0=await loadDataListPageStatusForGenerate(_0x5848f1,_0x59b944['code']),_0x1748b0=getUndeletedRelatedPages(_0x59b944),_0x1956aa=assessDataListPageState(_0x59b944[_0x7efe59(0x9e)],_0x4a8fb0,{'fallbackUndeletedPages':_0x1748b0});return{'ok':!![],'data':{'datasetCode':_0x59b944['code'],'precheckSource':_0x4a8fb0?.[_0x7efe59(0x9d)]??_0x7efe59(0xa4),'status':_0x1956aa[_0x7efe59(0xaa)],'manualResolutionRequired':_0x1956aa['manualResolutionRequired'],'nextAction':_0x1956aa['nextAction'],'dataListPageStatus':_0x4a8fb0,'relatedPages':{'total':_0x59b944['relatedPages'][_0x7efe59(0xad)],'undeletedCount':_0x1748b0['length']}}};}};function a206_0x2257(_0x2aaaec,_0x1d3a48){_0x2aaaec=_0x2aaaec-0x99;const _0x5ec6b4=a206_0x5ec6();let _0x2257d6=_0x5ec6b4[_0x2aaaec];return _0x2257d6;}function a206_0x5ec6(){const _0x529d65=['1116QsXwHE','compress','string','10TAxlJd','427323gNJWLt','related-pages-fallback','286068BYoSmn','/smartapi/lovrabet/dataset/','7wjbsck','5690ZkjCju','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','status','query-data-list-status','45mZQpKA','length','appCode','38415ibDINI','1304QJSjvX','data-list-status','read','6ApPtrk','2354118rrnPoX','alias','9851545cHPubK','1075224duqMgZ','source','code'];a206_0x5ec6=function(){return _0x529d65;};return a206_0x5ec6();}
1
+ const a206_0x2bd040=a206_0x5a33;(function(_0x480dff,_0x6cc9d3){const _0x360220=a206_0x5a33,_0x1d18f7=_0x480dff();while(!![]){try{const _0x27cf91=parseInt(_0x360220(0x1fa))/0x1+-parseInt(_0x360220(0x1df))/0x2+-parseInt(_0x360220(0x1e4))/0x3*(parseInt(_0x360220(0x1e3))/0x4)+-parseInt(_0x360220(0x1e7))/0x5*(-parseInt(_0x360220(0x1f3))/0x6)+-parseInt(_0x360220(0x1e0))/0x7+parseInt(_0x360220(0x1ed))/0x8*(-parseInt(_0x360220(0x1f5))/0x9)+parseInt(_0x360220(0x1e5))/0xa*(parseInt(_0x360220(0x1f6))/0xb);if(_0x27cf91===_0x6cc9d3)break;else _0x1d18f7['push'](_0x1d18f7['shift']());}catch(_0x405f16){_0x1d18f7['push'](_0x1d18f7['shift']());}}}(a206_0x59fb,0x3f2e2));function a206_0x5a33(_0x48fd4d,_0x1d55bd){_0x48fd4d=_0x48fd4d-0x1df;const _0x59fbcc=a206_0x59fb();let _0x5a331a=_0x59fbcc[_0x48fd4d];return _0x5a331a;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a206_0x59fb(){const _0x112947=['181741cgcJVZ','relatedPages','/smartapi/lovrabet/dataset/','33208RUaRzt','21YlCSTI','95350FYKkUc','data-list-status','5yoCXZg','source','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','GET','related-pages-fallback','code','109784RqlopZ','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','status','read','nextAction','manualResolutionRequired','908988YlXqJZ','length','81yEUlGa','121eiOiRP','string','name','query-data-list-status','318479xeJUVP','216984QeziNk'];a206_0x59fb=function(){return _0x112947;};return a206_0x59fb();}export const pageDataListStatus={'service':'page','command':a206_0x2bd040(0x1e6),'description':a206_0x2bd040(0x1e9),'risk':a206_0x2bd040(0x1f0),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a206_0x2bd040(0x1f7),'description':a206_0x2bd040(0x1ee)}],async 'validate'(_0x1dcf89){validateDatasetSelector(_0x1dcf89);},async 'dryRun'(_0x34adb9){const _0x524d09=a206_0x2bd040,_0x24b653=await loadDatasetDetailForPage(_0x34adb9);return{'method':_0x524d09(0x1ea),'url':_0x524d09(0x1e2)+_0x24b653[_0x524d09(0x1ec)]+'/standard-page-status?appCode='+encodeURIComponent(_0x34adb9['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x24b653['id'],'code':_0x24b653[_0x524d09(0x1ec)],'name':_0x24b653[_0x524d09(0x1f8)]},'action':_0x524d09(0x1f9)})};},async 'execute'(_0x2e01be){const _0x3e3fa2=a206_0x2bd040,_0x2c2b97=await loadDatasetDetailForPage(_0x2e01be),_0x1cfda6=await loadDataListPageStatusForGenerate(_0x2e01be,_0x2c2b97['code']),_0x24f2bb=getUndeletedRelatedPages(_0x2c2b97),_0x1ebddd=assessDataListPageState(_0x2c2b97[_0x3e3fa2(0x1ec)],_0x1cfda6,{'fallbackUndeletedPages':_0x24f2bb});return{'ok':!![],'data':{'datasetCode':_0x2c2b97[_0x3e3fa2(0x1ec)],'precheckSource':_0x1cfda6?.[_0x3e3fa2(0x1e8)]??_0x3e3fa2(0x1eb),'status':_0x1ebddd[_0x3e3fa2(0x1ef)],'manualResolutionRequired':_0x1ebddd[_0x3e3fa2(0x1f2)],'nextAction':_0x1ebddd[_0x3e3fa2(0x1f1)],'dataListPageStatus':_0x1cfda6,'relatedPages':{'total':_0x2c2b97[_0x3e3fa2(0x1e1)][_0x3e3fa2(0x1f4)],'undeletedCount':_0x24f2bb[_0x3e3fa2(0x1f4)]}}};}};