@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.4

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 (356) 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/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  249. package/lib/commands/user-account/feishu-bind.js +1 -0
  250. package/lib/commands/user-account/index.js +1 -1
  251. package/lib/commands/workspace/add.js +1 -1
  252. package/lib/commands/workspace/index.js +1 -1
  253. package/lib/commands/workspace/remove.js +1 -1
  254. package/lib/config/domain-config.js +1 -1
  255. package/lib/config/project-domain-routing.js +1 -1
  256. package/lib/config/region-config.js +1 -1
  257. package/lib/config/schema.js +1 -1
  258. package/lib/constant/cdn.js +1 -1
  259. package/lib/constant/cli.js +1 -1
  260. package/lib/constant/defaults.js +1 -1
  261. package/lib/constant/domain.js +1 -1
  262. package/lib/constant/env.js +1 -1
  263. package/lib/constant/output.js +1 -1
  264. package/lib/constant/paths.js +1 -1
  265. package/lib/constant/region.js +1 -1
  266. package/lib/constant/risk.js +1 -1
  267. package/lib/constant/routing-profile.js +1 -1
  268. package/lib/context/app-resolver.js +1 -1
  269. package/lib/context/auth-resolver.js +1 -1
  270. package/lib/context/config-loader.js +1 -1
  271. package/lib/context.js +1 -1
  272. package/lib/core/alias-resolver.js +1 -1
  273. package/lib/core/api-client.d.ts +2 -0
  274. package/lib/core/api-client.js +1 -1
  275. package/lib/core/bff/config.js +1 -1
  276. package/lib/core/bff/file-system.js +1 -1
  277. package/lib/core/bff/hash.js +1 -1
  278. package/lib/core/bff/hook-directory.js +1 -1
  279. package/lib/core/bff/lock.js +1 -1
  280. package/lib/core/bff/utils.js +1 -1
  281. package/lib/core/cross-db-relation.js +1 -1
  282. package/lib/core/db-resolver.js +1 -1
  283. package/lib/core/flow-config.js +1 -1
  284. package/lib/core/instant-api-policy/config.js +1 -1
  285. package/lib/core/kb-search-client.js +1 -1
  286. package/lib/core/page/file-system.js +1 -1
  287. package/lib/core/page/hash.js +1 -1
  288. package/lib/core/page/lock.js +1 -1
  289. package/lib/core/page/lr-smart-jsx.js +1 -1
  290. package/lib/core/sql-index-auditor.js +1 -1
  291. package/lib/core/sql-sync/config.js +1 -1
  292. package/lib/core/sql-sync/file-system.js +1 -1
  293. package/lib/core/sql-sync/hash.js +1 -1
  294. package/lib/core/sql-sync/lock.js +1 -1
  295. package/lib/core/sql-sync/utils.js +1 -1
  296. package/lib/core/sql-validator.js +1 -1
  297. package/lib/errors.js +1 -1
  298. package/lib/framework/build-all-flags.js +1 -1
  299. package/lib/framework/error-output.js +1 -1
  300. package/lib/framework/explicit-yes.js +1 -1
  301. package/lib/framework/flags.js +1 -1
  302. package/lib/framework/help.js +1 -1
  303. package/lib/framework/index.js +1 -1
  304. package/lib/framework/output.js +1 -1
  305. package/lib/framework/response.js +1 -1
  306. package/lib/framework/runner-alias.js +1 -1
  307. package/lib/framework/runner.js +1 -1
  308. package/lib/framework/schema-export.js +1 -1
  309. package/lib/framework/supported-flags.js +1 -1
  310. package/lib/framework/types.js +1 -1
  311. package/lib/generated/build-info.d.ts +4 -4
  312. package/lib/generated/build-info.js +1 -1
  313. package/lib/generated/official-routing.js +1 -1
  314. package/lib/generated/routing-contract.js +1 -1
  315. package/lib/help.js +1 -1
  316. package/lib/postinstall.js +1 -1
  317. package/lib/runtime/confirmation.js +1 -1
  318. package/lib/runtime/event.js +1 -1
  319. package/lib/runtime/index.js +1 -1
  320. package/lib/runtime/queue.js +1 -1
  321. package/lib/runtime/resolve.js +1 -1
  322. package/lib/skills/builtin-skill.js +1 -1
  323. package/lib/skills/main.js +1 -1
  324. package/lib/skills/npx-skills-add.js +1 -1
  325. package/lib/skills/skill-presence.js +1 -1
  326. package/lib/telemetry/cli-command-trace.js +1 -1
  327. package/lib/telemetry/cli-help-trace.js +1 -1
  328. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  329. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  330. package/lib/telemetry/send-cli-trace-log.js +1 -1
  331. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  332. package/lib/utils/ai_config.js +1 -1
  333. package/lib/utils/apply-jq-filter.js +1 -1
  334. package/lib/utils/cdn-config.js +1 -1
  335. package/lib/utils/check-sdk-version.js +1 -1
  336. package/lib/utils/cli-version-check.js +1 -1
  337. package/lib/utils/cli-version-policy.js +1 -1
  338. package/lib/utils/config.js +1 -1
  339. package/lib/utils/entity-with-id.js +1 -1
  340. package/lib/utils/file-utils.js +1 -1
  341. package/lib/utils/guides-cdn.js +1 -1
  342. package/lib/utils/http-client.js +1 -1
  343. package/lib/utils/is-non-interactive.js +1 -1
  344. package/lib/utils/logger.js +1 -1
  345. package/lib/utils/params.js +1 -1
  346. package/lib/utils/platform.js +1 -1
  347. package/lib/utils/sleep.js +1 -1
  348. package/lib/utils/template-replacer.js +1 -1
  349. package/lib/utils/update-notice.js +1 -1
  350. package/lib/utils/version.js +1 -1
  351. package/lib/utils/with-active-cookie.js +1 -1
  352. package/lib/utils/write-cli-side-channel.js +1 -1
  353. package/package.json +1 -1
  354. package/skills/rabetbase/SKILL.md +3 -2
  355. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  356. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a181_0x4756dc=a181_0x293b;(function(_0x218807,_0x104cbe){const _0x26d292=a181_0x293b,_0x4b2825=_0x218807();while(!![]){try{const _0x5afc13=parseInt(_0x26d292(0x16a))/0x1+parseInt(_0x26d292(0x186))/0x2+-parseInt(_0x26d292(0x151))/0x3*(parseInt(_0x26d292(0x156))/0x4)+parseInt(_0x26d292(0x194))/0x5*(-parseInt(_0x26d292(0x1a2))/0x6)+parseInt(_0x26d292(0x15e))/0x7*(parseInt(_0x26d292(0x17f))/0x8)+parseInt(_0x26d292(0x164))/0x9*(parseInt(_0x26d292(0x17c))/0xa)+parseInt(_0x26d292(0x183))/0xb;if(_0x5afc13===_0x104cbe)break;else _0x4b2825['push'](_0x4b2825['shift']());}catch(_0x573558){_0x4b2825['push'](_0x4b2825['shift']());}}}(a181_0x2802,0x83b4a));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=[a181_0x4756dc(0x19c),a181_0x4756dc(0x142),a181_0x4756dc(0x182),'WECOM',a181_0x4756dc(0x150)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;function a181_0x2802(){const _0x82310=['\x22channelType\x22.','320HLYzxC','messageTemplate','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','configName','call','push','\x20is\x20missing\x20required\x20field\x20\x22','notification_config_channel_field_forbidden','16681DwaedI','\x22configName\x22.','\x20failed.','Application-level\x20notification\x20config\x20ID','\x22\x20must\x20be\x20','\x20must\x20be\x20an\x20object.','9LJHUsC','isSafeInteger','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','readTimeout','isArray','\x20has\x20an\x20invalid\x20appCode.','181548piWBMJ','a\x20supported\x20string','notification_config_response_invalid','parse','yes','\x20has\x20an\x20invalid\x20id.','configCode','_unavailable','validation','Create\x20JSON\x20requires\x20field\x20','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','replyTo','a\x20string\x20or\x20null','stringify','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','channelType','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','mutation','9626850BOJTkH','update','Notification\x20config\x20','152mwWCYV','appCode','<redacted>','DINGTALK','1714240EtJrEi','a\x20non-empty\x20string','name','1763244JLvVYS','every','includes','channelConfigRaw','notification_config_source_unavailable','Notification\x20JSON\x20channelConfig\x20field\x20\x22','endpointUrl','emailTargets','preflight','num','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Notification\x20JSON\x20field\x20\x22','hasOwnProperty','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','87070orkwCg','\x22\x20must\x20be\x20a\x20non-empty\x20string.','endpointUrl:null','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','join','channelConfig','str','file','EMAIL','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','Item\x20','file\x20','utf8','prototype','354iisPWd','\x20has\x20an\x20invalid\x20channelType.','Notification\x20config\x20list\x20item\x20','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','notification_config_field_invalid','has','Allowed\x20values:\x20','\x20is\x20invalid.','\x20characters.','string','\x20--format\x20compress','createTime','Unknown\x20notification\x20JSON\x20field\x20\x22','setEncoding','trim','updateTime','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','path','notification_config_confirmation_required','apiError','channelCode','create','env','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','description','FEISHU','\x20--type\x20','a\x20JSON\x20object\x20or\x20null','stdin','bool','notification_config_json_invalid','endpointUrlRaw','Notification\x20JSON\x20from\x20','kind','\x20has\x20invalid\x20field\x20\x22','type','failed','connectTimeout','keys','WEBHOOK','24753rBPSri','bccList','a\x20JSON\x20object','length'];a181_0x2802=function(){return _0x82310;};return a181_0x2802();}export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a181_0x4756dc(0x159),a181_0x4756dc(0x179),'endpointUrl',a181_0x4756dc(0x199),a181_0x4756dc(0x141),'connectTimeout',a181_0x4756dc(0x167)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id','appCode',a181_0x4756dc(0x170),a181_0x4756dc(0x1b8)]),EMAIL_RECIPIENT_FIELDS=new Set([a181_0x4756dc(0x18d),'recipients','ccList',a181_0x4756dc(0x152),a181_0x4756dc(0x175),'subjectPrefix','fromName','to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a181_0x4756dc(0x19b),'type':a181_0x4756dc(0x1ab),'required':![],'description':a181_0x4756dc(0x197)},{'name':a181_0x4756dc(0x145),'type':'boolean','required':![],'default':![],'description':a181_0x4756dc(0x17a)},{'name':'from-env','type':a181_0x4756dc(0x1ab),'required':![],'description':a181_0x4756dc(0x1bb)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':'number','required':!![],'description':a181_0x4756dc(0x161)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x40a013,_0x1d5e72,_0x5abbdb){return new CliError(_0x40a013,0x1,_0x1d5e72,_0x5abbdb);}export function readNotificationId(_0x491d18){const _0x2e53de=a181_0x4756dc,_0x1bf133=_0x491d18[_0x2e53de(0x18f)]('id');if(!Number[_0x2e53de(0x165)](_0x1bf133)||_0x1bf133<=0x0)throw notificationError('notification_config_id_invalid',_0x2e53de(0x190));return _0x1bf133;}export function requireNotificationExplicitYes(_0x49f367){const _0xe02806=a181_0x4756dc;if(_0x49f367['bool']('dry-run')||_0x49f367[_0xe02806(0x146)](_0xe02806(0x16e)))return;throw notificationError(_0xe02806(0x1b6),'This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x2693b1,_0x118138=a181_0x4756dc(0x14c),_0x240ea7=a181_0x4756dc(0x19c)){const _0x3f965a=a181_0x4756dc,_0x1b487e=_0x2693b1[_0x3f965a(0x19a)](_0x118138)[_0x3f965a(0x1b0)]()||_0x240ea7;if(!NOTIFICATION_CHANNEL_TYPES[_0x3f965a(0x188)](_0x1b487e))throw CliErrors['validation']('Invalid\x20--'+_0x118138+':\x20'+_0x1b487e,_0x3f965a(0x1a8)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x1b487e;}export function assertSingleNotificationSource(_0x4cb9b4){const _0x5791d4=a181_0x4756dc,_0x161ed8=[],_0xd701bb=_0x4cb9b4[_0x5791d4(0x19a)]('file')[_0x5791d4(0x1b0)]();if(_0xd701bb)_0x161ed8[_0x5791d4(0x15b)]({'kind':_0x5791d4(0x19b),'path':_0xd701bb});if(_0x4cb9b4[_0x5791d4(0x146)](_0x5791d4(0x145)))_0x161ed8[_0x5791d4(0x15b)]({'kind':_0x5791d4(0x145)});const _0x13abfb=_0x4cb9b4[_0x5791d4(0x19a)]('from-env')[_0x5791d4(0x1b0)]();if(_0x13abfb)_0x161ed8['push']({'kind':'env','name':_0x13abfb});if(_0x161ed8['length']===0x0)throw CliErrors['validation']('Missing\x20notification\x20JSON\x20source.',_0x5791d4(0x158));if(_0x161ed8[_0x5791d4(0x154)]>0x1)throw CliErrors[_0x5791d4(0x172)]('Notification\x20JSON\x20source\x20is\x20ambiguous.',_0x5791d4(0x158));return _0x161ed8[0x0];}export async function readNotificationDocument(_0xca6865,_0x38ddf8){const _0x3e2666=a181_0x4756dc,_0x4e62c9=assertSingleNotificationSource(_0xca6865),_0x2f5e85=_0x4e62c9[_0x3e2666(0x14a)]===_0x3e2666(0x19b)?_0x3e2666(0x19f)+_0x4e62c9[_0x3e2666(0x1b5)]:_0x4e62c9['kind']===_0x3e2666(0x1ba)?'environment\x20variable\x20'+_0x4e62c9['name']:_0x3e2666(0x145);let _0x23855a;try{if(_0x4e62c9[_0x3e2666(0x14a)]===_0x3e2666(0x19b))_0x23855a=await readFile(_0x4e62c9[_0x3e2666(0x1b5)],_0x3e2666(0x1a0));else{if(_0x4e62c9['kind']==='env'){if(!(_0x4e62c9[_0x3e2666(0x185)]in process.env))throw notificationError(_0x3e2666(0x18a),_0x3e2666(0x1a5)+_0x4e62c9[_0x3e2666(0x185)]);_0x23855a=process.env[_0x4e62c9.name]??'';}else _0x23855a=await readStdin();}}catch(_0x3b7229){if(_0x3b7229 instanceof CliError)throw _0x3b7229;throw notificationError(_0x3e2666(0x18a),_0x3e2666(0x174)+_0x2f5e85+'.');}let _0x37ee64;try{_0x37ee64=JSON[_0x3e2666(0x16d)](_0x23855a);}catch{throw notificationError('notification_config_json_invalid',_0x3e2666(0x149)+_0x2f5e85+_0x3e2666(0x1a9),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x37ee64))throw notificationError(_0x3e2666(0x147),_0x3e2666(0x149)+_0x2f5e85+_0x3e2666(0x163));return validateNotificationDocument(_0x37ee64,_0x38ddf8);}export function projectNotificationListConfig(_0x5e7c82,_0x258110){const _0x193994=a181_0x4756dc;return{'id':typeof _0x5e7c82['id']==='number'?_0x5e7c82['id']:null,'configCode':requireResponseString(_0x5e7c82[_0x193994(0x170)],_0x193994(0x170),_0x258110),'configName':requireResponseString(_0x5e7c82['configName'],_0x193994(0x159),_0x258110),'channelType':requireResponseString(_0x5e7c82[_0x193994(0x179)],_0x193994(0x179),_0x258110),'description':normalizeNullableString(_0x5e7c82['description']),'createTime':normalizeNullableString(_0x5e7c82[_0x193994(0x1ad)]),'updateTime':normalizeNullableString(_0x5e7c82[_0x193994(0x1b1)])};}export function normalizeExactNotificationConfig(_0x227439,_0x5ea9e8,_0x4e2dd7){const _0x4f1b87=a181_0x4756dc;if(!Number[_0x4f1b87(0x165)](_0x227439['id'])||_0x227439['id']!==_0x5ea9e8)throw notificationError('notification_config_response_invalid',_0x4f1b87(0x166)+_0x5ea9e8+'.');if(_0x227439[_0x4f1b87(0x180)]!==_0x4e2dd7)throw notificationError(_0x4f1b87(0x16c),'Notification\x20config\x20'+_0x5ea9e8+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x5a32c5=requireExactString(_0x227439['configName'],_0x4f1b87(0x159),_0x5ea9e8),_0x3cf6ca=requireExactString(_0x227439['configCode'],'configCode',_0x5ea9e8),_0x4aea23=requireExactString(_0x227439[_0x4f1b87(0x179)],_0x4f1b87(0x179),_0x5ea9e8);if(!NOTIFICATION_CHANNEL_TYPES[_0x4f1b87(0x188)](_0x4aea23))throw notificationError(_0x4f1b87(0x16c),_0x4f1b87(0x17e)+_0x5ea9e8+'\x20has\x20an\x20unsupported\x20channelType.');const _0x503c12=responseNullableString(_0x227439[_0x4f1b87(0x18c)],_0x4f1b87(0x18c),_0x5ea9e8),_0x507746=responseNullableString(_0x227439[_0x4f1b87(0x199)],_0x4f1b87(0x199),_0x5ea9e8),_0x414fc7=responseNullableString(_0x227439[_0x4f1b87(0x141)],_0x4f1b87(0x141),_0x5ea9e8),_0x2377ac=responseNullableTimeout(_0x227439[_0x4f1b87(0x14e)],_0x4f1b87(0x14e),_0x5ea9e8),_0x5b206a=responseNullableTimeout(_0x227439[_0x4f1b87(0x167)],_0x4f1b87(0x167),_0x5ea9e8);return{'id':_0x5ea9e8,'appCode':_0x4e2dd7,'configCode':_0x3cf6ca,'configName':_0x5a32c5,'channelType':_0x4aea23,'endpointUrl':redactSensitive(_0x503c12),'channelConfig':redactSensitive(_0x507746),'description':_0x414fc7,'connectTimeout':_0x2377ac,'readTimeout':_0x5b206a,'endpointUrlRaw':_0x503c12,'channelConfigRaw':_0x507746};}export async function requireExactNotificationConfig(_0x1c10fa,_0x994f64,_0x28d3c9){const _0x4e8ce4=a181_0x4756dc;let _0x2aa920;try{_0x2aa920=await getNotificationChannelConfig(_0x994f64,_0x1c10fa);}catch{throw safeApiFailure(_0x28d3c9,_0x4e8ce4(0x18e),_0x4e8ce4(0x19d)+_0x1c10fa+_0x4e8ce4(0x1b4));}return normalizeExactNotificationConfig(_0x2aa920,_0x994f64,_0x1c10fa);}export function projectNotificationConfig(_0x49c680){const _0x2a791f=a181_0x4756dc;return{'id':_0x49c680['id']??null,'appCode':_0x49c680[_0x2a791f(0x180)],'configCode':_0x49c680['configCode']??null,'configName':_0x49c680[_0x2a791f(0x159)],'channelType':_0x49c680[_0x2a791f(0x179)],'endpointUrl':redactSensitive(_0x49c680[_0x2a791f(0x18c)]),'channelConfig':redactSensitive(_0x49c680[_0x2a791f(0x199)]),'description':_0x49c680[_0x2a791f(0x141)]??null,'connectTimeout':_0x49c680[_0x2a791f(0x14e)]??null,'readTimeout':_0x49c680['readTimeout']??null};}export function notificationSelector(_0x57cecf){const _0x1f6d41=a181_0x4756dc;return{'appCode':_0x57cecf[_0x1f6d41(0x180)],'id':_0x57cecf['id'],'configCode':_0x57cecf[_0x1f6d41(0x170)],'configName':_0x57cecf[_0x1f6d41(0x159)],'channelType':_0x57cecf[_0x1f6d41(0x179)]};}export function createMutationInput(_0x30e1dc,_0x52d088){const _0x340c4e=a181_0x4756dc;return{'appCode':_0x30e1dc,'configName':_0x52d088[_0x340c4e(0x159)],'channelType':_0x52d088['channelType'],...hasOwn(_0x52d088,_0x340c4e(0x18c))?{'endpointUrl':_0x52d088['endpointUrl']}:{},...hasOwn(_0x52d088,_0x340c4e(0x199))?{'channelConfig':serializeChannelConfig(_0x52d088[_0x340c4e(0x199)])}:{},...hasOwn(_0x52d088,_0x340c4e(0x141))?{'description':_0x52d088[_0x340c4e(0x141)]}:{},...hasOwn(_0x52d088,'connectTimeout')?{'connectTimeout':_0x52d088[_0x340c4e(0x14e)]}:{},...hasOwn(_0x52d088,_0x340c4e(0x167))?{'readTimeout':_0x52d088[_0x340c4e(0x167)]}:{}};}export function mergeUpdateInput(_0x1e0230,_0x651850){const _0x1c4d71=a181_0x4756dc;return{'id':_0x1e0230['id'],'appCode':_0x1e0230[_0x1c4d71(0x180)],'configName':_0x651850[_0x1c4d71(0x159)]??_0x1e0230[_0x1c4d71(0x159)],'channelType':_0x651850[_0x1c4d71(0x179)]??_0x1e0230[_0x1c4d71(0x179)],'endpointUrl':hasOwn(_0x651850,_0x1c4d71(0x18c))?_0x651850[_0x1c4d71(0x18c)]:_0x1e0230[_0x1c4d71(0x148)],'channelConfig':hasOwn(_0x651850,_0x1c4d71(0x199))?serializeChannelConfig(_0x651850[_0x1c4d71(0x199)]):_0x1e0230[_0x1c4d71(0x189)],'description':hasOwn(_0x651850,_0x1c4d71(0x141))?_0x651850[_0x1c4d71(0x141)]:_0x1e0230[_0x1c4d71(0x141)],'connectTimeout':hasOwn(_0x651850,_0x1c4d71(0x14e))?_0x651850[_0x1c4d71(0x14e)]:_0x1e0230['connectTimeout'],'readTimeout':hasOwn(_0x651850,_0x1c4d71(0x167))?_0x651850[_0x1c4d71(0x167)]:_0x1e0230[_0x1c4d71(0x167)]};}function a181_0x293b(_0x441f48,_0x378457){_0x441f48=_0x441f48-0x141;const _0x2802f3=a181_0x2802();let _0x293bae=_0x2802f3[_0x441f48];return _0x293bae;}export function plannedUpdateProjection(_0x2fff5b,_0x58fe2b){const _0x5e07ef=a181_0x4756dc;return projectNotificationConfig({'id':_0x2fff5b['id'],'appCode':_0x2fff5b[_0x5e07ef(0x180)],'configCode':_0x2fff5b[_0x5e07ef(0x170)],'configName':_0x58fe2b[_0x5e07ef(0x159)]??_0x2fff5b[_0x5e07ef(0x159)],'channelType':_0x58fe2b[_0x5e07ef(0x179)]??_0x2fff5b[_0x5e07ef(0x179)],'endpointUrl':hasOwn(_0x58fe2b,'endpointUrl')?_0x58fe2b[_0x5e07ef(0x18c)]:_0x2fff5b['endpointUrlRaw'],'channelConfig':hasOwn(_0x58fe2b,_0x5e07ef(0x199))?_0x58fe2b[_0x5e07ef(0x199)]:_0x2fff5b[_0x5e07ef(0x189)],'description':hasOwn(_0x58fe2b,_0x5e07ef(0x141))?_0x58fe2b[_0x5e07ef(0x141)]:_0x2fff5b[_0x5e07ef(0x141)],'connectTimeout':hasOwn(_0x58fe2b,_0x5e07ef(0x14e))?_0x58fe2b[_0x5e07ef(0x14e)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x2fff5b[_0x5e07ef(0x14e)],'readTimeout':hasOwn(_0x58fe2b,_0x5e07ef(0x167))?_0x58fe2b[_0x5e07ef(0x167)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x2fff5b['readTimeout']});}export function requestedSafeFieldsMatch(_0x5c931f,_0x52aec9,_0x1a0321){const _0x342d04=a181_0x4756dc,_0x73d00=[],_0x2b281a=[],_0x50d74c=[];for(const _0x2f319f of[_0x342d04(0x159),_0x342d04(0x179),_0x342d04(0x141)]){if(!hasOwn(_0x1a0321,_0x2f319f))continue;_0x50d74c[_0x342d04(0x15b)](_0x2f319f),_0x73d00[_0x342d04(0x15b)](_0x52aec9[_0x2f319f]===_0x1a0321[_0x2f319f]),_0x2b281a[_0x342d04(0x15b)](_0x5c931f[_0x2f319f]!==_0x1a0321[_0x2f319f]&&_0x52aec9[_0x2f319f]===_0x1a0321[_0x2f319f]);}for(const _0xfa5cc1 of['connectTimeout',_0x342d04(0x167)]){if(!hasOwn(_0x1a0321,_0xfa5cc1))continue;const _0x1f99ef=_0x1a0321[_0xfa5cc1]??(_0xfa5cc1===_0x342d04(0x14e)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x50d74c[_0x342d04(0x15b)](_0xfa5cc1),_0x73d00[_0x342d04(0x15b)](_0x52aec9[_0xfa5cc1]===_0x1f99ef),_0x2b281a['push'](_0x5c931f[_0xfa5cc1]!==_0x1f99ef&&_0x52aec9[_0xfa5cc1]===_0x1f99ef);}return hasOwn(_0x1a0321,_0x342d04(0x18c))&&_0x1a0321[_0x342d04(0x18c)]===null&&(_0x50d74c[_0x342d04(0x15b)](_0x342d04(0x196)),_0x73d00[_0x342d04(0x15b)](_0x52aec9[_0x342d04(0x148)]===null||_0x52aec9[_0x342d04(0x148)]===''),_0x2b281a[_0x342d04(0x15b)](_0x5c931f[_0x342d04(0x148)]!==null&&_0x5c931f[_0x342d04(0x148)]!==''&&(_0x52aec9[_0x342d04(0x148)]===null||_0x52aec9[_0x342d04(0x148)]===''))),{'allMatch':_0x73d00[_0x342d04(0x187)](Boolean),'provesChange':_0x2b281a['some'](Boolean),'verifiedFields':_0x50d74c};}export function validateNotificationDeleteReadback(_0x21ad30,_0x153c02,_0x4be26f){const _0x32c742=a181_0x4756dc;for(const [_0x3ea404,_0x1d76ff]of _0x21ad30['entries']()){if(!Number['isSafeInteger'](_0x1d76ff['id'])||_0x1d76ff['id']<=0x0)throw notificationError('notification_config_response_invalid','Notification\x20config\x20list\x20item\x20'+(_0x3ea404+0x1)+_0x32c742(0x16f));if(_0x1d76ff[_0x32c742(0x180)]!==_0x153c02)throw notificationError(_0x32c742(0x16c),_0x32c742(0x1a4)+(_0x3ea404+0x1)+_0x32c742(0x169));if(_0x1d76ff[_0x32c742(0x179)]!==_0x4be26f)throw notificationError(_0x32c742(0x16c),_0x32c742(0x1a4)+(_0x3ea404+0x1)+_0x32c742(0x1a3));}}export function safeApiFailure(_0x1dbd5a,_0x2d654f,_0x3e78fe){const _0x5418a5=a181_0x4756dc;return notificationError('notification_config_'+_0x1dbd5a+'_'+(_0x2d654f===_0x5418a5(0x17b)?_0x5418a5(0x14d):_0x2d654f+_0x5418a5(0x171)),_0x5418a5(0x17e)+_0x1dbd5a+'\x20'+_0x2d654f+_0x5418a5(0x160),_0x3e78fe);}export function notificationLookupCommand(_0x4d3506,_0x2b93ac){const _0x54091b=a181_0x4756dc;return'rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x4d3506+_0x54091b(0x143)+_0x2b93ac+_0x54091b(0x1ac);}function validateNotificationDocument(_0x113162,_0x27d063){const _0x305e50=a181_0x4756dc;for(const _0x2223b7 of Object[_0x305e50(0x14f)](_0x113162)){if(FORBIDDEN_IDENTITY_FIELDS[_0x305e50(0x1a7)](_0x2223b7))throw notificationError('notification_config_field_forbidden','Notification\x20JSON\x20field\x20\x22'+_0x2223b7+_0x305e50(0x1b2));if(!ALLOWED_INPUT_FIELDS['has'](_0x2223b7))throw notificationError('notification_config_field_unknown',_0x305e50(0x1ae)+_0x2223b7+'\x22.');}if(_0x27d063==='update'&&Object[_0x305e50(0x14f)](_0x113162)[_0x305e50(0x154)]===0x0)throw notificationError('notification_config_update_empty',_0x305e50(0x178));const _0x5adc={};if(hasOwn(_0x113162,_0x305e50(0x159)))_0x5adc['configName']=validateRequiredString(_0x113162[_0x305e50(0x159)],'configName',0x80);else{if(_0x27d063===_0x305e50(0x1b9))throw notificationError('notification_config_field_required',_0x305e50(0x173)+_0x305e50(0x15f));}if(hasOwn(_0x113162,_0x305e50(0x179))){if(typeof _0x113162[_0x305e50(0x179)]!=='string')throw invalidFieldType('channelType',_0x305e50(0x16b));const _0x2a7b0e=_0x113162[_0x305e50(0x179)][_0x305e50(0x1b0)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x305e50(0x188)](_0x2a7b0e))throw notificationError(_0x305e50(0x1a6),_0x305e50(0x193),_0x305e50(0x1a8)+NOTIFICATION_CHANNEL_TYPES[_0x305e50(0x198)](',\x20')+'.');_0x5adc[_0x305e50(0x179)]=_0x2a7b0e;}else{if(_0x27d063==='create')throw notificationError('notification_config_field_required',_0x305e50(0x173)+_0x305e50(0x155));}for(const [_0x29594a,_0x52de97]of[[_0x305e50(0x18c),0x200],[_0x305e50(0x141),0x100]]){if(!hasOwn(_0x113162,_0x29594a))continue;const _0x5a6f4f=_0x113162[_0x29594a];if(_0x5a6f4f!==null&&typeof _0x5a6f4f!=='string')throw invalidFieldType(_0x29594a,_0x305e50(0x176));if(typeof _0x5a6f4f===_0x305e50(0x1ab)&&_0x5a6f4f[_0x305e50(0x154)]>_0x52de97)throw notificationError(_0x305e50(0x1a6),_0x305e50(0x191)+_0x29594a+'\x22\x20cannot\x20exceed\x20'+_0x52de97+_0x305e50(0x1aa));_0x5adc[_0x29594a]=_0x5a6f4f;}if(hasOwn(_0x113162,_0x305e50(0x199))){const _0x27b527=_0x113162[_0x305e50(0x199)];if(_0x27b527===null&&_0x27d063===_0x305e50(0x1b9))throw invalidFieldType('channelConfig',_0x305e50(0x153));if(_0x27b527!==null&&!isJsonObject(_0x27b527))throw invalidFieldType(_0x305e50(0x199),_0x27d063===_0x305e50(0x17d)?_0x305e50(0x144):_0x305e50(0x153));_0x27b527!==null&&validateChannelConfigFields(_0x5adc['channelType'],_0x27b527),_0x5adc[_0x305e50(0x199)]=_0x27b527;}for(const _0x149e15 of[_0x305e50(0x14e),_0x305e50(0x167)]){if(!hasOwn(_0x113162,_0x149e15))continue;const _0x5f2c73=_0x113162[_0x149e15];if(_0x5f2c73!==null&&(!Number['isSafeInteger'](_0x5f2c73)||_0x5f2c73<0x0))throw notificationError(_0x305e50(0x1a6),_0x305e50(0x191)+_0x149e15+_0x305e50(0x1b3));_0x5adc[_0x149e15]=_0x5f2c73;}return _0x5adc;}function validateRequiredString(_0x5a9834,_0x597bdd,_0x5c11db){const _0x422937=a181_0x4756dc;if(typeof _0x5a9834!==_0x422937(0x1ab))throw invalidFieldType(_0x597bdd,_0x422937(0x184));const _0x582834=_0x5a9834[_0x422937(0x1b0)]();if(!_0x582834)throw notificationError(_0x422937(0x1a6),_0x422937(0x191)+_0x597bdd+_0x422937(0x195));if(_0x582834[_0x422937(0x154)]>_0x5c11db)throw notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x597bdd+'\x22\x20cannot\x20exceed\x20'+_0x5c11db+_0x422937(0x1aa));return _0x582834;}function validateChannelConfigFields(_0x5e9eea,_0x4b583e){const _0x59b003=a181_0x4756dc;if(hasOwn(_0x4b583e,_0x59b003(0x157)))throw forbiddenChannelConfigField(_0x59b003(0x157));if(_0x5e9eea===_0x59b003(0x19c))for(const _0x3af0a0 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x4b583e,_0x3af0a0))throw forbiddenChannelConfigField(_0x3af0a0);}}function forbiddenChannelConfigField(_0x4a4371){const _0x3aa51b=a181_0x4756dc;return notificationError(_0x3aa51b(0x15d),_0x3aa51b(0x18b)+_0x4a4371+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x57b5da,_0x335dcf){const _0x4b65ab=a181_0x4756dc;return notificationError(_0x4b65ab(0x1a6),_0x4b65ab(0x191)+_0x57b5da+_0x4b65ab(0x162)+_0x335dcf+'.');}function serializeChannelConfig(_0x5093c5){const _0x1ba9e0=a181_0x4756dc;return _0x5093c5===null||_0x5093c5===undefined?null:JSON[_0x1ba9e0(0x177)](_0x5093c5);}function redactSensitive(_0x53804b){const _0x3df55c=a181_0x4756dc;return _0x53804b===null||_0x53804b===undefined||_0x53804b===''?null:_0x3df55c(0x181);}function requireResponseString(_0x1e3446,_0x187b32,_0x2b198c){const _0x37755a=a181_0x4756dc;if(typeof _0x1e3446!=='string'||_0x1e3446['trim']()==='')throw CliErrors[_0x37755a(0x1b7)]('Invalid\x20notification\x20config\x20response.',_0x37755a(0x19e)+(_0x2b198c+0x1)+_0x37755a(0x15c)+_0x187b32+'\x22.');return _0x1e3446['trim']();}function requireExactString(_0x3bf8a6,_0x30190c,_0x599210){const _0x36f088=a181_0x4756dc;if(typeof _0x3bf8a6!==_0x36f088(0x1ab)||_0x3bf8a6[_0x36f088(0x1b0)]()==='')throw notificationError(_0x36f088(0x16c),_0x36f088(0x17e)+_0x599210+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x30190c+'\x22.');return _0x3bf8a6[_0x36f088(0x1b0)]();}function responseNullableString(_0x4f59e2,_0x39e493,_0x55fe3c){const _0x3d641f=a181_0x4756dc;if(_0x4f59e2===undefined||_0x4f59e2===null)return null;if(typeof _0x4f59e2!==_0x3d641f(0x1ab))throw notificationError(_0x3d641f(0x16c),_0x3d641f(0x17e)+_0x55fe3c+_0x3d641f(0x14b)+_0x39e493+'\x22.');return _0x4f59e2;}function responseNullableTimeout(_0x58e849,_0x561986,_0x4341e0){const _0x53bff8=a181_0x4756dc;if(_0x58e849===undefined||_0x58e849===null)return null;if(!Number['isSafeInteger'](_0x58e849)||_0x58e849<0x0)throw notificationError(_0x53bff8(0x16c),_0x53bff8(0x17e)+_0x4341e0+_0x53bff8(0x14b)+_0x561986+'\x22.');return _0x58e849;}function normalizeNullableString(_0x19c8c5){const _0x85958c=a181_0x4756dc;return typeof _0x19c8c5===_0x85958c(0x1ab)?_0x19c8c5:null;}function isJsonObject(_0xeafb7a){const _0x961894=a181_0x4756dc;return _0xeafb7a!==null&&typeof _0xeafb7a==='object'&&!Array[_0x961894(0x168)](_0xeafb7a);}function hasOwn(_0x4a6e36,_0x6a76c){const _0x4106bc=a181_0x4756dc;return Object[_0x4106bc(0x1a1)][_0x4106bc(0x192)][_0x4106bc(0x15a)](_0x4a6e36,_0x6a76c);}async function readStdin(){const _0x287e58=a181_0x4756dc;let _0x52cac3='';process[_0x287e58(0x145)][_0x287e58(0x1af)](_0x287e58(0x1a0));for await(const _0x2d645b of process[_0x287e58(0x145)])_0x52cac3+=_0x2d645b;return _0x52cac3;}
1
+ const a181_0x47f2aa=a181_0x3230;(function(_0xa392ce,_0x4a27de){const _0x183e09=a181_0x3230,_0x5c5c37=_0xa392ce();while(!![]){try{const _0x567153=-parseInt(_0x183e09(0xe1))/0x1*(-parseInt(_0x183e09(0x95))/0x2)+parseInt(_0x183e09(0xb5))/0x3*(parseInt(_0x183e09(0x9b))/0x4)+parseInt(_0x183e09(0x9c))/0x5+-parseInt(_0x183e09(0xd9))/0x6+parseInt(_0x183e09(0xb1))/0x7+parseInt(_0x183e09(0xc5))/0x8+parseInt(_0x183e09(0xe3))/0x9*(-parseInt(_0x183e09(0x9e))/0xa);if(_0x567153===_0x4a27de)break;else _0x5c5c37['push'](_0x5c5c37['shift']());}catch(_0x58e907){_0x5c5c37['push'](_0x5c5c37['shift']());}}}(a181_0x5c5c,0xefbd2));function a181_0x5c5c(){const _0x1df7b3=['endpointUrl','name','\x20has\x20an\x20invalid\x20channelType.','keys','notification_config_update_empty','notification_config_response_invalid','a\x20string\x20or\x20null','parse','fromName','notification_config_json_invalid','utf8','Notification\x20JSON\x20from\x20','channelConfig','prototype','readTimeout','boolean','Notification\x20config\x20','11547300eSyYtw','\x20is\x20invalid.','apiError','replyTo','\x22\x20must\x20be\x20','has','ccList','configCode','625694CCsRuz','endpointUrlRaw','29630979nAjNoU','file\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string.','\x22\x20cannot\x20exceed\x20','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','Item\x20','stringify','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','appCode','a\x20supported\x20string','path','mutation','description','call','str','channelConfigRaw','number','\x20has\x20invalid\x20field\x20\x22','failed','channelType','includes','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','stdin','validation','\x20--format\x20compress','EMAIL','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','hasOwnProperty','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Unknown\x20notification\x20JSON\x20field\x20\x22','<redacted>','length','setEncoding','string','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','kind','notification_config_id_invalid','Invalid\x20notification\x20config\x20response.','\x20has\x20an\x20unsupported\x20channelType.','Notification\x20JSON\x20field\x20\x22','trim','FEISHU','notification_config_field_unknown','WEBHOOK','notification_config_field_invalid','env','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','from-env','Create\x20JSON\x20requires\x20field\x20','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','4lNMvug','notification_config_confirmation_required','connectTimeout','yes','every','Application-level\x20notification\x20config\x20ID','297988voVbTC','5263995dOOmrZ','createTime','10VitPDw','bool','Allowed\x20values:\x20','create','preflight','subjectPrefix','environment\x20variable\x20','Missing\x20notification\x20JSON\x20source.','messageTemplate','\x22channelType\x22.','Notification\x20config\x20list\x20item\x20','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','notification_config_field_forbidden','update','channelCode','bccList','join','file','recipients','5410111xDeOCn','notification_config_field_required','object','Notification\x20JSON\x20channelConfig\x20field\x20\x22','66EoPwIv','\x20is\x20missing\x20required\x20field\x20\x22','rabetbase\x20notification\x20config-list\x20--appcode\x20','emailTargets','configName','isSafeInteger','\x20--type\x20','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','\x20failed.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','\x20characters.','a\x20JSON\x20object\x20or\x20null','notification_config_source_unavailable','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','a\x20JSON\x20object','num','11862856yJdrlH','entries','push'];a181_0x5c5c=function(){return _0x1df7b3;};return a181_0x5c5c();}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=[a181_0x47f2aa(0xfd),a181_0x47f2aa(0x10d),'DINGTALK','WECOM',a181_0x47f2aa(0x8d)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a181_0x47f2aa(0xb9),a181_0x47f2aa(0xf6),a181_0x47f2aa(0xc8),a181_0x47f2aa(0xd4),a181_0x47f2aa(0xef),'connectTimeout','readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a181_0x47f2aa(0xeb),a181_0x47f2aa(0xe0),a181_0x47f2aa(0xac)]),EMAIL_RECIPIENT_FIELDS=new Set([a181_0x47f2aa(0xb8),a181_0x47f2aa(0xb0),a181_0x47f2aa(0xdf),a181_0x47f2aa(0xad),a181_0x47f2aa(0xdc),a181_0x47f2aa(0xa3),a181_0x47f2aa(0xd0),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a181_0x47f2aa(0x105),'required':![],'description':a181_0x47f2aa(0xbe)},{'name':'stdin','type':a181_0x47f2aa(0xd7),'required':![],'default':![],'description':a181_0x47f2aa(0x94)},{'name':a181_0x47f2aa(0x91),'type':'string','required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable'}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a181_0x47f2aa(0xf3),'required':!![],'description':a181_0x47f2aa(0x9a)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x2c1440,_0x57c8a7,_0x10ecfb){return new CliError(_0x2c1440,0x1,_0x57c8a7,_0x10ecfb);}export function readNotificationId(_0x56de4b){const _0x1b3bd0=a181_0x47f2aa,_0x4f0c62=_0x56de4b[_0x1b3bd0(0xc4)]('id');if(!Number[_0x1b3bd0(0xba)](_0x4f0c62)||_0x4f0c62<=0x0)throw notificationError(_0x1b3bd0(0x108),_0x1b3bd0(0x90));return _0x4f0c62;}function a181_0x3230(_0x4164aa,_0xff7c68){_0x4164aa=_0x4164aa-0x8c;const _0x5c5cda=a181_0x5c5c();let _0x323019=_0x5c5cda[_0x4164aa];return _0x323019;}export function requireNotificationExplicitYes(_0x4ad712){const _0x20da64=a181_0x47f2aa;if(_0x4ad712['bool']('dry-run')||_0x4ad712[_0x20da64(0x9f)](_0x20da64(0x98)))return;throw notificationError(_0x20da64(0x96),'This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.',_0x20da64(0xfe));}export function readNotificationChannelType(_0x562e13,_0x1874bb='type',_0x46808f='EMAIL'){const _0x86b812=a181_0x47f2aa,_0x4afe4a=_0x562e13['str'](_0x1874bb)[_0x86b812(0x10c)]()||_0x46808f;if(!NOTIFICATION_CHANNEL_TYPES[_0x86b812(0xf7)](_0x4afe4a))throw CliErrors[_0x86b812(0xfb)]('Invalid\x20--'+_0x1874bb+':\x20'+_0x4afe4a,_0x86b812(0xa0)+NOTIFICATION_CHANNEL_TYPES[_0x86b812(0xae)](',\x20')+'.');return _0x4afe4a;}export function assertSingleNotificationSource(_0x37e44e){const _0x43b372=a181_0x47f2aa,_0x511b5b=[],_0xd8a868=_0x37e44e[_0x43b372(0xf1)](_0x43b372(0xaf))[_0x43b372(0x10c)]();if(_0xd8a868)_0x511b5b[_0x43b372(0xc7)]({'kind':_0x43b372(0xaf),'path':_0xd8a868});if(_0x37e44e[_0x43b372(0x9f)](_0x43b372(0xfa)))_0x511b5b[_0x43b372(0xc7)]({'kind':_0x43b372(0xfa)});const _0x23830a=_0x37e44e[_0x43b372(0xf1)](_0x43b372(0x91))[_0x43b372(0x10c)]();if(_0x23830a)_0x511b5b[_0x43b372(0xc7)]({'kind':_0x43b372(0x8f),'name':_0x23830a});if(_0x511b5b['length']===0x0)throw CliErrors[_0x43b372(0xfb)](_0x43b372(0xa5),_0x43b372(0xe7));if(_0x511b5b[_0x43b372(0x103)]>0x1)throw CliErrors['validation']('Notification\x20JSON\x20source\x20is\x20ambiguous.',_0x43b372(0xe7));return _0x511b5b[0x0];}export async function readNotificationDocument(_0x4d3a32,_0x1f1ae3){const _0x10d3ab=a181_0x47f2aa,_0x2fec6e=assertSingleNotificationSource(_0x4d3a32),_0x298bcf=_0x2fec6e[_0x10d3ab(0x107)]===_0x10d3ab(0xaf)?_0x10d3ab(0xe4)+_0x2fec6e[_0x10d3ab(0xed)]:_0x2fec6e[_0x10d3ab(0x107)]===_0x10d3ab(0x8f)?_0x10d3ab(0xa4)+_0x2fec6e[_0x10d3ab(0xc9)]:'stdin';let _0x5c881c;try{if(_0x2fec6e[_0x10d3ab(0x107)]==='file')_0x5c881c=await readFile(_0x2fec6e[_0x10d3ab(0xed)],_0x10d3ab(0xd2));else{if(_0x2fec6e[_0x10d3ab(0x107)]==='env'){if(!(_0x2fec6e[_0x10d3ab(0xc9)]in process.env))throw notificationError('notification_config_source_unavailable',_0x10d3ab(0xf9)+_0x2fec6e[_0x10d3ab(0xc9)]);_0x5c881c=process.env[_0x2fec6e.name]??'';}else _0x5c881c=await readStdin();}}catch(_0x885ed4){if(_0x885ed4 instanceof CliError)throw _0x885ed4;throw notificationError(_0x10d3ab(0xc1),_0x10d3ab(0xea)+_0x298bcf+'.');}let _0x340395;try{_0x340395=JSON[_0x10d3ab(0xcf)](_0x5c881c);}catch{throw notificationError(_0x10d3ab(0xd1),_0x10d3ab(0xd3)+_0x298bcf+_0x10d3ab(0xda),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x340395))throw notificationError(_0x10d3ab(0xd1),'Notification\x20JSON\x20from\x20'+_0x298bcf+'\x20must\x20be\x20an\x20object.');return validateNotificationDocument(_0x340395,_0x1f1ae3);}export function projectNotificationListConfig(_0x716440,_0x181ff1){const _0xc48bba=a181_0x47f2aa;return{'id':typeof _0x716440['id']===_0xc48bba(0xf3)?_0x716440['id']:null,'configCode':requireResponseString(_0x716440['configCode'],_0xc48bba(0xe0),_0x181ff1),'configName':requireResponseString(_0x716440['configName'],_0xc48bba(0xb9),_0x181ff1),'channelType':requireResponseString(_0x716440[_0xc48bba(0xf6)],_0xc48bba(0xf6),_0x181ff1),'description':normalizeNullableString(_0x716440[_0xc48bba(0xef)]),'createTime':normalizeNullableString(_0x716440[_0xc48bba(0x9d)]),'updateTime':normalizeNullableString(_0x716440['updateTime'])};}export function normalizeExactNotificationConfig(_0x242c52,_0x51b08,_0x459df3){const _0x26a53b=a181_0x47f2aa;if(!Number[_0x26a53b(0xba)](_0x242c52['id'])||_0x242c52['id']!==_0x51b08)throw notificationError(_0x26a53b(0xcd),_0x26a53b(0x106)+_0x51b08+'.');if(_0x242c52['appCode']!==_0x459df3)throw notificationError(_0x26a53b(0xcd),_0x26a53b(0xd8)+_0x51b08+_0x26a53b(0x100));const _0x47f9c6=requireExactString(_0x242c52[_0x26a53b(0xb9)],_0x26a53b(0xb9),_0x51b08),_0x417d03=requireExactString(_0x242c52[_0x26a53b(0xe0)],'configCode',_0x51b08),_0x58a83b=requireExactString(_0x242c52[_0x26a53b(0xf6)],'channelType',_0x51b08);if(!NOTIFICATION_CHANNEL_TYPES[_0x26a53b(0xf7)](_0x58a83b))throw notificationError(_0x26a53b(0xcd),_0x26a53b(0xd8)+_0x51b08+_0x26a53b(0x10a));const _0x2cb5c9=responseNullableString(_0x242c52[_0x26a53b(0xc8)],_0x26a53b(0xc8),_0x51b08),_0x1af265=responseNullableString(_0x242c52[_0x26a53b(0xd4)],_0x26a53b(0xd4),_0x51b08),_0x34c060=responseNullableString(_0x242c52[_0x26a53b(0xef)],_0x26a53b(0xef),_0x51b08),_0x5c3cf8=responseNullableTimeout(_0x242c52[_0x26a53b(0x97)],_0x26a53b(0x97),_0x51b08),_0x4f5f2c=responseNullableTimeout(_0x242c52[_0x26a53b(0xd6)],_0x26a53b(0xd6),_0x51b08);return{'id':_0x51b08,'appCode':_0x459df3,'configCode':_0x417d03,'configName':_0x47f9c6,'channelType':_0x58a83b,'endpointUrl':redactSensitive(_0x2cb5c9),'channelConfig':redactSensitive(_0x1af265),'description':_0x34c060,'connectTimeout':_0x5c3cf8,'readTimeout':_0x4f5f2c,'endpointUrlRaw':_0x2cb5c9,'channelConfigRaw':_0x1af265};}export async function requireExactNotificationConfig(_0x5e3ef6,_0x19182d,_0x1f0a9d){const _0x5f291b=a181_0x47f2aa;let _0x2c409c;try{_0x2c409c=await getNotificationChannelConfig(_0x19182d,_0x5e3ef6);}catch{throw safeApiFailure(_0x1f0a9d,_0x5f291b(0xa2),_0x5f291b(0xbc)+_0x5e3ef6+_0x5f291b(0x93));}return normalizeExactNotificationConfig(_0x2c409c,_0x19182d,_0x5e3ef6);}export function projectNotificationConfig(_0x519f62){const _0x521f65=a181_0x47f2aa;return{'id':_0x519f62['id']??null,'appCode':_0x519f62[_0x521f65(0xeb)],'configCode':_0x519f62['configCode']??null,'configName':_0x519f62['configName'],'channelType':_0x519f62[_0x521f65(0xf6)],'endpointUrl':redactSensitive(_0x519f62[_0x521f65(0xc8)]),'channelConfig':redactSensitive(_0x519f62[_0x521f65(0xd4)]),'description':_0x519f62[_0x521f65(0xef)]??null,'connectTimeout':_0x519f62[_0x521f65(0x97)]??null,'readTimeout':_0x519f62[_0x521f65(0xd6)]??null};}export function notificationSelector(_0x4f97c9){const _0x504b07=a181_0x47f2aa;return{'appCode':_0x4f97c9[_0x504b07(0xeb)],'id':_0x4f97c9['id'],'configCode':_0x4f97c9['configCode'],'configName':_0x4f97c9[_0x504b07(0xb9)],'channelType':_0x4f97c9['channelType']};}export function createMutationInput(_0x5ed0c6,_0x5254a8){const _0x448745=a181_0x47f2aa;return{'appCode':_0x5ed0c6,'configName':_0x5254a8[_0x448745(0xb9)],'channelType':_0x5254a8[_0x448745(0xf6)],...hasOwn(_0x5254a8,_0x448745(0xc8))?{'endpointUrl':_0x5254a8[_0x448745(0xc8)]}:{},...hasOwn(_0x5254a8,_0x448745(0xd4))?{'channelConfig':serializeChannelConfig(_0x5254a8[_0x448745(0xd4)])}:{},...hasOwn(_0x5254a8,_0x448745(0xef))?{'description':_0x5254a8[_0x448745(0xef)]}:{},...hasOwn(_0x5254a8,_0x448745(0x97))?{'connectTimeout':_0x5254a8['connectTimeout']}:{},...hasOwn(_0x5254a8,_0x448745(0xd6))?{'readTimeout':_0x5254a8['readTimeout']}:{}};}export function mergeUpdateInput(_0x151fbb,_0x21cc12){const _0xe1cae5=a181_0x47f2aa;return{'id':_0x151fbb['id'],'appCode':_0x151fbb[_0xe1cae5(0xeb)],'configName':_0x21cc12[_0xe1cae5(0xb9)]??_0x151fbb[_0xe1cae5(0xb9)],'channelType':_0x21cc12[_0xe1cae5(0xf6)]??_0x151fbb[_0xe1cae5(0xf6)],'endpointUrl':hasOwn(_0x21cc12,_0xe1cae5(0xc8))?_0x21cc12['endpointUrl']:_0x151fbb[_0xe1cae5(0xe2)],'channelConfig':hasOwn(_0x21cc12,_0xe1cae5(0xd4))?serializeChannelConfig(_0x21cc12[_0xe1cae5(0xd4)]):_0x151fbb['channelConfigRaw'],'description':hasOwn(_0x21cc12,_0xe1cae5(0xef))?_0x21cc12[_0xe1cae5(0xef)]:_0x151fbb[_0xe1cae5(0xef)],'connectTimeout':hasOwn(_0x21cc12,'connectTimeout')?_0x21cc12[_0xe1cae5(0x97)]:_0x151fbb[_0xe1cae5(0x97)],'readTimeout':hasOwn(_0x21cc12,_0xe1cae5(0xd6))?_0x21cc12[_0xe1cae5(0xd6)]:_0x151fbb[_0xe1cae5(0xd6)]};}export function plannedUpdateProjection(_0x486eb0,_0x520598){const _0x563bea=a181_0x47f2aa;return projectNotificationConfig({'id':_0x486eb0['id'],'appCode':_0x486eb0[_0x563bea(0xeb)],'configCode':_0x486eb0['configCode'],'configName':_0x520598[_0x563bea(0xb9)]??_0x486eb0['configName'],'channelType':_0x520598[_0x563bea(0xf6)]??_0x486eb0[_0x563bea(0xf6)],'endpointUrl':hasOwn(_0x520598,_0x563bea(0xc8))?_0x520598[_0x563bea(0xc8)]:_0x486eb0[_0x563bea(0xe2)],'channelConfig':hasOwn(_0x520598,_0x563bea(0xd4))?_0x520598[_0x563bea(0xd4)]:_0x486eb0[_0x563bea(0xf2)],'description':hasOwn(_0x520598,'description')?_0x520598['description']:_0x486eb0[_0x563bea(0xef)],'connectTimeout':hasOwn(_0x520598,_0x563bea(0x97))?_0x520598[_0x563bea(0x97)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x486eb0['connectTimeout'],'readTimeout':hasOwn(_0x520598,_0x563bea(0xd6))?_0x520598[_0x563bea(0xd6)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x486eb0[_0x563bea(0xd6)]});}export function requestedSafeFieldsMatch(_0x380750,_0x366355,_0x57d06d){const _0x54fbee=a181_0x47f2aa,_0x46144c=[],_0x1b9711=[],_0x30f2bf=[];for(const _0x967b55 of[_0x54fbee(0xb9),_0x54fbee(0xf6),_0x54fbee(0xef)]){if(!hasOwn(_0x57d06d,_0x967b55))continue;_0x30f2bf['push'](_0x967b55),_0x46144c[_0x54fbee(0xc7)](_0x366355[_0x967b55]===_0x57d06d[_0x967b55]),_0x1b9711[_0x54fbee(0xc7)](_0x380750[_0x967b55]!==_0x57d06d[_0x967b55]&&_0x366355[_0x967b55]===_0x57d06d[_0x967b55]);}for(const _0x5d3e82 of[_0x54fbee(0x97),'readTimeout']){if(!hasOwn(_0x57d06d,_0x5d3e82))continue;const _0x41f0e3=_0x57d06d[_0x5d3e82]??(_0x5d3e82===_0x54fbee(0x97)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x30f2bf['push'](_0x5d3e82),_0x46144c['push'](_0x366355[_0x5d3e82]===_0x41f0e3),_0x1b9711[_0x54fbee(0xc7)](_0x380750[_0x5d3e82]!==_0x41f0e3&&_0x366355[_0x5d3e82]===_0x41f0e3);}return hasOwn(_0x57d06d,_0x54fbee(0xc8))&&_0x57d06d[_0x54fbee(0xc8)]===null&&(_0x30f2bf['push']('endpointUrl:null'),_0x46144c['push'](_0x366355['endpointUrlRaw']===null||_0x366355[_0x54fbee(0xe2)]===''),_0x1b9711[_0x54fbee(0xc7)](_0x380750[_0x54fbee(0xe2)]!==null&&_0x380750['endpointUrlRaw']!==''&&(_0x366355[_0x54fbee(0xe2)]===null||_0x366355[_0x54fbee(0xe2)]===''))),{'allMatch':_0x46144c[_0x54fbee(0x99)](Boolean),'provesChange':_0x1b9711['some'](Boolean),'verifiedFields':_0x30f2bf};}export function validateNotificationDeleteReadback(_0x4957d3,_0x1cc278,_0x439c75){const _0x4b7a92=a181_0x47f2aa;for(const [_0x2d36fa,_0x3a6c76]of _0x4957d3[_0x4b7a92(0xc6)]()){if(!Number['isSafeInteger'](_0x3a6c76['id'])||_0x3a6c76['id']<=0x0)throw notificationError(_0x4b7a92(0xcd),'Notification\x20config\x20list\x20item\x20'+(_0x2d36fa+0x1)+'\x20has\x20an\x20invalid\x20id.');if(_0x3a6c76['appCode']!==_0x1cc278)throw notificationError('notification_config_response_invalid',_0x4b7a92(0xa8)+(_0x2d36fa+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0x3a6c76[_0x4b7a92(0xf6)]!==_0x439c75)throw notificationError('notification_config_response_invalid',_0x4b7a92(0xa8)+(_0x2d36fa+0x1)+_0x4b7a92(0xca));}}export function safeApiFailure(_0x493cfc,_0x4e27b5,_0x3939fa){const _0x2019ba=a181_0x47f2aa;return notificationError('notification_config_'+_0x493cfc+'_'+(_0x4e27b5===_0x2019ba(0xee)?_0x2019ba(0xf5):_0x4e27b5+'_unavailable'),_0x2019ba(0xd8)+_0x493cfc+'\x20'+_0x4e27b5+_0x2019ba(0xbd),_0x3939fa);}export function notificationLookupCommand(_0x2e22fc,_0x2abb18){const _0x3d252a=a181_0x47f2aa;return _0x3d252a(0xb7)+_0x2e22fc+_0x3d252a(0xbb)+_0x2abb18+_0x3d252a(0xfc);}function validateNotificationDocument(_0x89123f,_0x58b200){const _0xde5299=a181_0x47f2aa;for(const _0x5861eb of Object[_0xde5299(0xcb)](_0x89123f)){if(FORBIDDEN_IDENTITY_FIELDS[_0xde5299(0xde)](_0x5861eb))throw notificationError(_0xde5299(0xaa),_0xde5299(0x10b)+_0x5861eb+_0xde5299(0xf8));if(!ALLOWED_INPUT_FIELDS[_0xde5299(0xde)](_0x5861eb))throw notificationError(_0xde5299(0x8c),_0xde5299(0x101)+_0x5861eb+'\x22.');}if(_0x58b200==='update'&&Object[_0xde5299(0xcb)](_0x89123f)[_0xde5299(0x103)]===0x0)throw notificationError(_0xde5299(0xcc),_0xde5299(0xa9));const _0x450f42={};if(hasOwn(_0x89123f,_0xde5299(0xb9)))_0x450f42['configName']=validateRequiredString(_0x89123f[_0xde5299(0xb9)],_0xde5299(0xb9),0x80);else{if(_0x58b200===_0xde5299(0xa1))throw notificationError(_0xde5299(0xb2),_0xde5299(0x92)+'\x22configName\x22.');}if(hasOwn(_0x89123f,_0xde5299(0xf6))){if(typeof _0x89123f[_0xde5299(0xf6)]!==_0xde5299(0x105))throw invalidFieldType('channelType',_0xde5299(0xec));const _0x51842f=_0x89123f[_0xde5299(0xf6)][_0xde5299(0x10c)]();if(!NOTIFICATION_CHANNEL_TYPES[_0xde5299(0xf7)](_0x51842f))throw notificationError(_0xde5299(0x8e),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0xde5299(0xa0)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');_0x450f42[_0xde5299(0xf6)]=_0x51842f;}else{if(_0x58b200===_0xde5299(0xa1))throw notificationError(_0xde5299(0xb2),_0xde5299(0x92)+_0xde5299(0xa7));}for(const [_0x35aa34,_0x2fb94c]of[[_0xde5299(0xc8),0x200],[_0xde5299(0xef),0x100]]){if(!hasOwn(_0x89123f,_0x35aa34))continue;const _0x5c7e91=_0x89123f[_0x35aa34];if(_0x5c7e91!==null&&typeof _0x5c7e91!==_0xde5299(0x105))throw invalidFieldType(_0x35aa34,_0xde5299(0xce));if(typeof _0x5c7e91==='string'&&_0x5c7e91[_0xde5299(0x103)]>_0x2fb94c)throw notificationError(_0xde5299(0x8e),_0xde5299(0x10b)+_0x35aa34+_0xde5299(0xe6)+_0x2fb94c+_0xde5299(0xbf));_0x450f42[_0x35aa34]=_0x5c7e91;}if(hasOwn(_0x89123f,_0xde5299(0xd4))){const _0xdc7585=_0x89123f[_0xde5299(0xd4)];if(_0xdc7585===null&&_0x58b200===_0xde5299(0xa1))throw invalidFieldType(_0xde5299(0xd4),_0xde5299(0xc3));if(_0xdc7585!==null&&!isJsonObject(_0xdc7585))throw invalidFieldType(_0xde5299(0xd4),_0x58b200===_0xde5299(0xab)?_0xde5299(0xc0):'a\x20JSON\x20object');_0xdc7585!==null&&validateChannelConfigFields(_0x450f42['channelType'],_0xdc7585),_0x450f42[_0xde5299(0xd4)]=_0xdc7585;}for(const _0x4c6286 of['connectTimeout',_0xde5299(0xd6)]){if(!hasOwn(_0x89123f,_0x4c6286))continue;const _0x218268=_0x89123f[_0x4c6286];if(_0x218268!==null&&(!Number['isSafeInteger'](_0x218268)||_0x218268<0x0))throw notificationError(_0xde5299(0x8e),_0xde5299(0x10b)+_0x4c6286+_0xde5299(0xc2));_0x450f42[_0x4c6286]=_0x218268;}return _0x450f42;}function validateRequiredString(_0x152237,_0x3f0732,_0x177ddb){const _0x2d92dd=a181_0x47f2aa;if(typeof _0x152237!==_0x2d92dd(0x105))throw invalidFieldType(_0x3f0732,'a\x20non-empty\x20string');const _0x40fd8b=_0x152237[_0x2d92dd(0x10c)]();if(!_0x40fd8b)throw notificationError('notification_config_field_invalid',_0x2d92dd(0x10b)+_0x3f0732+_0x2d92dd(0xe5));if(_0x40fd8b[_0x2d92dd(0x103)]>_0x177ddb)throw notificationError(_0x2d92dd(0x8e),_0x2d92dd(0x10b)+_0x3f0732+'\x22\x20cannot\x20exceed\x20'+_0x177ddb+_0x2d92dd(0xbf));return _0x40fd8b;}function validateChannelConfigFields(_0x4acfaa,_0x325ced){const _0x1b5537=a181_0x47f2aa;if(hasOwn(_0x325ced,_0x1b5537(0xa6)))throw forbiddenChannelConfigField(_0x1b5537(0xa6));if(_0x4acfaa===_0x1b5537(0xfd))for(const _0x7a3eb4 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x325ced,_0x7a3eb4))throw forbiddenChannelConfigField(_0x7a3eb4);}}function forbiddenChannelConfigField(_0x5e8c0c){const _0x5159da=a181_0x47f2aa;return notificationError('notification_config_channel_field_forbidden',_0x5159da(0xb4)+_0x5e8c0c+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x36f4c5,_0x4a93c4){const _0x473ef7=a181_0x47f2aa;return notificationError('notification_config_field_invalid',_0x473ef7(0x10b)+_0x36f4c5+_0x473ef7(0xdd)+_0x4a93c4+'.');}function serializeChannelConfig(_0x2faa94){const _0x3f1bf0=a181_0x47f2aa;return _0x2faa94===null||_0x2faa94===undefined?null:JSON[_0x3f1bf0(0xe9)](_0x2faa94);}function redactSensitive(_0x4af543){const _0x202dca=a181_0x47f2aa;return _0x4af543===null||_0x4af543===undefined||_0x4af543===''?null:_0x202dca(0x102);}function requireResponseString(_0x10e143,_0x1a4fa5,_0x45a998){const _0x427072=a181_0x47f2aa;if(typeof _0x10e143!==_0x427072(0x105)||_0x10e143[_0x427072(0x10c)]()==='')throw CliErrors[_0x427072(0xdb)](_0x427072(0x109),_0x427072(0xe8)+(_0x45a998+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x1a4fa5+'\x22.');return _0x10e143['trim']();}function requireExactString(_0x3cd457,_0x1e5104,_0x40c8f7){const _0x2a256b=a181_0x47f2aa;if(typeof _0x3cd457!==_0x2a256b(0x105)||_0x3cd457[_0x2a256b(0x10c)]()==='')throw notificationError(_0x2a256b(0xcd),_0x2a256b(0xd8)+_0x40c8f7+_0x2a256b(0xb6)+_0x1e5104+'\x22.');return _0x3cd457[_0x2a256b(0x10c)]();}function responseNullableString(_0x2723f2,_0x4361c8,_0x24b406){const _0x1d853f=a181_0x47f2aa;if(_0x2723f2===undefined||_0x2723f2===null)return null;if(typeof _0x2723f2!==_0x1d853f(0x105))throw notificationError(_0x1d853f(0xcd),'Notification\x20config\x20'+_0x24b406+_0x1d853f(0xf4)+_0x4361c8+'\x22.');return _0x2723f2;}function responseNullableTimeout(_0x588cfa,_0x397aea,_0x18aef0){const _0x464e49=a181_0x47f2aa;if(_0x588cfa===undefined||_0x588cfa===null)return null;if(!Number[_0x464e49(0xba)](_0x588cfa)||_0x588cfa<0x0)throw notificationError('notification_config_response_invalid',_0x464e49(0xd8)+_0x18aef0+'\x20has\x20invalid\x20field\x20\x22'+_0x397aea+'\x22.');return _0x588cfa;}function normalizeNullableString(_0x1fb2f1){const _0x54d7c9=a181_0x47f2aa;return typeof _0x1fb2f1===_0x54d7c9(0x105)?_0x1fb2f1:null;}function isJsonObject(_0x22ff7e){const _0x2f1d9f=a181_0x47f2aa;return _0x22ff7e!==null&&typeof _0x22ff7e===_0x2f1d9f(0xb3)&&!Array['isArray'](_0x22ff7e);}function hasOwn(_0x1cbcf1,_0x346bf2){const _0x16db0a=a181_0x47f2aa;return Object[_0x16db0a(0xd5)][_0x16db0a(0xff)][_0x16db0a(0xf0)](_0x1cbcf1,_0x346bf2);}async function readStdin(){const _0x1f2ce8=a181_0x47f2aa;let _0x19ded0='';process['stdin'][_0x1f2ce8(0x104)]('utf8');for await(const _0x5757e4 of process[_0x1f2ce8(0xfa)])_0x19ded0+=_0x5757e4;return _0x19ded0;}
@@ -1 +1 @@
1
- const a182_0xf68e9e=a182_0x2cf5;(function(_0x187594,_0x5f4971){const _0x8e8905=a182_0x2cf5,_0x2058e9=_0x187594();while(!![]){try{const _0x416926=parseInt(_0x8e8905(0x1d2))/0x1*(parseInt(_0x8e8905(0x1cf))/0x2)+parseInt(_0x8e8905(0x1fb))/0x3+-parseInt(_0x8e8905(0x1e6))/0x4+-parseInt(_0x8e8905(0x1d0))/0x5*(parseInt(_0x8e8905(0x1e0))/0x6)+-parseInt(_0x8e8905(0x1de))/0x7+parseInt(_0x8e8905(0x1cb))/0x8*(-parseInt(_0x8e8905(0x1e4))/0x9)+parseInt(_0x8e8905(0x1f0))/0xa*(parseInt(_0x8e8905(0x1f9))/0xb);if(_0x416926===_0x5f4971)break;else _0x2058e9['push'](_0x2058e9['shift']());}catch(_0x2f4df5){_0x2058e9['push'](_0x2058e9['shift']());}}}(a182_0x2b38,0x62b12));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a182_0x2b38(){const _0x3804ad=['.\x20Supported\x20scenes:\x20','str','string','idCard','55JyZVVi','Table','398394bCLOqa','imageUrl','\x20OCR\x20from\x20URL','validation','path','fileUrl','1036496wvCjsc','join','trim','/smartapi/common/queryFileUrl','169282bBLqqG','430545VRHQnD','Invoice','8PuItjU','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','length','\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','imageFile','recognize','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Publicly\x20accessible\x20image\x20or\x20file\x20URL','idcard','File\x20URL\x20response\x20missing\x20fileUrl.','filter','3168830MRpnPP','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','36veiuKZ','POST','/smartapi/ocr/recognize-text?','scene','54LgtPoP','invoice','1263632ZYBlAZ','filePath','/smartapi/ocr/recognize-text','appCode','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','IdCard','toString','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','apiError','3313880FpoOsN','Unsupported\x20OCR\x20scene:\x20','/smartapi/common/uploadFile','image-file','count'];a182_0x2b38=function(){return _0x3804ad;};return a182_0x2b38();}const SUPPORTED_SCENES=['invoice','general','form',a182_0xf68e9e(0x1f8)],SCENE_TO_LEGACY_TYPE={'invoice':a182_0xf68e9e(0x1d1),'general':'General','form':a182_0xf68e9e(0x1fa),'idCard':a182_0xf68e9e(0x1ec)},SCENE_FLAG={'name':a182_0xf68e9e(0x1e3),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a182_0xf68e9e(0x1df)},IMAGE_FILE_FLAG={'name':'image-file','type':'string','description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':'image-url','type':a182_0xf68e9e(0x1f7),'description':a182_0xf68e9e(0x1da)};function normalizeScene(_0x58ea1e){const _0x56365a=a182_0xf68e9e,_0x3f168a=_0x58ea1e[_0x56365a(0x1cd)]()['toLowerCase']();if(_0x3f168a===_0x56365a(0x1db))return'idCard';if(_0x3f168a===_0x56365a(0x1e5)||_0x3f168a==='general'||_0x3f168a==='form')return _0x3f168a;throw CliErrors['validation'](_0x56365a(0x1f1)+_0x58ea1e+_0x56365a(0x1f5)+SUPPORTED_SCENES[_0x56365a(0x1cc)](',\x20'));}function selectedInputs(_0x1432b4){const _0x567b75=a182_0xf68e9e,_0x513ece=_0x1432b4[_0x567b75(0x1f6)](_0x567b75(0x1f3))[_0x567b75(0x1cd)](),_0x3ffce3=_0x1432b4[_0x567b75(0x1f6)]('image-url')['trim']();return{'imageFile':_0x513ece,'imageUrl':_0x3ffce3,'count':[_0x513ece,_0x3ffce3][_0x567b75(0x1dd)](Boolean)[_0x567b75(0x1d4)]};}function validateInputSelection(_0x30f41b){const _0x548cad=a182_0xf68e9e,_0x118153=selectedInputs(_0x30f41b);if(_0x118153[_0x548cad(0x1f4)]!==0x1)throw CliErrors[_0x548cad(0x1fe)](_0x548cad(0x1d9));return _0x118153;}function withScene(_0x1dca17,_0x29ae69,_0x5b20a){const _0x9e58fe=a182_0xf68e9e;return{..._0x1dca17,'scene':_0x29ae69,..._0x5b20a?{'sourceFile':{'fileName':_0x5b20a['fileName'],'filePath':_0x5b20a[_0x9e58fe(0x1e7)]}}:{}};}const ocrRecognize={'service':'ocr','command':a182_0xf68e9e(0x1d8),'description':a182_0xf68e9e(0x1ea),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x33fb74){const _0x5ebebc=a182_0xf68e9e,_0x478ad7=normalizeScene(_0x33fb74[_0x5ebebc(0x1f6)](_0x5ebebc(0x1e3))),_0xcbb81=SCENE_TO_LEGACY_TYPE[_0x478ad7],_0x34b297=validateInputSelection(_0x33fb74);if(_0x34b297[_0x5ebebc(0x1fc)]){const _0x3b2ad2=new URLSearchParams({'url':_0x34b297['imageUrl'],'type':_0xcbb81,'appCode':_0x33fb74[_0x5ebebc(0x1e9)]});return{'method':'GET','url':_0x5ebebc(0x1e2)+_0x3b2ad2[_0x5ebebc(0x1ed)](),'description':'Preview:\x20recognize\x20'+_0x478ad7+_0x5ebebc(0x1fd)};}const _0x3b44c4=requireDevelopmentUploadFile(_0x34b297[_0x5ebebc(0x1d7)],_0x5ebebc(0x1f3));return{'method':_0x5ebebc(0x1e1),'url':_0x5ebebc(0x1f2),'body':{'steps':[{'method':_0x5ebebc(0x1e1),'url':_0x5ebebc(0x1f2),'body':{'appCode':_0x33fb74['appCode'],'multipart':{'file':_0x3b44c4}}},{'method':_0x5ebebc(0x1e1),'url':_0x5ebebc(0x1ce),'body':{'filePath':_0x5ebebc(0x1ee),'downloadFlag':![]}},{'method':'GET','url':_0x5ebebc(0x1e8),'query':{'appCode':_0x33fb74[_0x5ebebc(0x1e9)],'url':_0x5ebebc(0x1d3),'type':_0xcbb81}}]},'description':_0x5ebebc(0x1eb)+_0x478ad7+_0x5ebebc(0x1d5)};},async 'execute'(_0x29b308){const _0x5e64bf=a182_0xf68e9e,_0x489406=normalizeScene(_0x29b308['str'](_0x5e64bf(0x1e3))),_0x10dd26=SCENE_TO_LEGACY_TYPE[_0x489406],_0x34c257=validateInputSelection(_0x29b308);if(_0x34c257[_0x5e64bf(0x1fc)]){const _0x42852e=await recognizeDevelopmentOcr(_0x29b308[_0x5e64bf(0x1e9)],{'url':_0x34c257[_0x5e64bf(0x1fc)],'type':_0x10dd26});return{'ok':!![],'data':withScene(_0x42852e,_0x489406)};}const _0x4d4982=requireDevelopmentUploadFile(_0x34c257[_0x5e64bf(0x1d7)],_0x5e64bf(0x1f3)),_0x155e43=await uploadDevelopmentFile(_0x29b308[_0x5e64bf(0x1e9)],_0x4d4982[_0x5e64bf(0x1ff)]);if(!_0x155e43[_0x5e64bf(0x1e7)])throw CliErrors[_0x5e64bf(0x1ef)](_0x5e64bf(0x1d6));const _0x29724d=await queryDevelopmentFileUrl(_0x155e43[_0x5e64bf(0x1e7)],{'download':![]});if(!_0x29724d[_0x5e64bf(0x1ca)])throw CliErrors['apiError'](_0x5e64bf(0x1dc));const _0x4fe776=await recognizeDevelopmentOcr(_0x29b308[_0x5e64bf(0x1e9)],{'url':_0x29724d[_0x5e64bf(0x1ca)],'type':_0x10dd26});return{'ok':!![],'data':withScene(_0x4fe776,_0x489406,_0x155e43)};}};function a182_0x2cf5(_0x32594a,_0x342e65){_0x32594a=_0x32594a-0x1ca;const _0x2b38de=a182_0x2b38();let _0x2cf565=_0x2b38de[_0x32594a];return _0x2cf565;}export const ocrDefinitions=[ocrRecognize];
1
+ const a182_0x31b3e6=a182_0x1663;(function(_0x4caee6,_0x240ef7){const _0x5770c1=a182_0x1663,_0x4236a4=_0x4caee6();while(!![]){try{const _0x43aaba=-parseInt(_0x5770c1(0x17a))/0x1*(parseInt(_0x5770c1(0x17f))/0x2)+parseInt(_0x5770c1(0x156))/0x3+-parseInt(_0x5770c1(0x166))/0x4*(-parseInt(_0x5770c1(0x165))/0x5)+-parseInt(_0x5770c1(0x164))/0x6+parseInt(_0x5770c1(0x16d))/0x7+parseInt(_0x5770c1(0x14f))/0x8*(-parseInt(_0x5770c1(0x150))/0x9)+parseInt(_0x5770c1(0x159))/0xa*(parseInt(_0x5770c1(0x161))/0xb);if(_0x43aaba===_0x240ef7)break;else _0x4236a4['push'](_0x4236a4['shift']());}catch(_0x2ce60f){_0x4236a4['push'](_0x4236a4['shift']());}}}(a182_0x2316,0xdbca7));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a182_0x31b3e6(0x179),a182_0x31b3e6(0x175),a182_0x31b3e6(0x155),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a182_0x31b3e6(0x15d),'general':'General','form':'Table','idCard':a182_0x31b3e6(0x16a)},SCENE_FLAG={'name':a182_0x31b3e6(0x17d),'type':a182_0x31b3e6(0x154),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a182_0x31b3e6(0x181)},IMAGE_FILE_FLAG={'name':a182_0x31b3e6(0x17c),'type':a182_0x31b3e6(0x154),'description':a182_0x31b3e6(0x16e)},IMAGE_URL_FLAG={'name':a182_0x31b3e6(0x160),'type':'string','description':a182_0x31b3e6(0x178)};function normalizeScene(_0x203867){const _0x1ede8f=a182_0x31b3e6,_0x56e184=_0x203867[_0x1ede8f(0x167)]()[_0x1ede8f(0x172)]();if(_0x56e184==='idcard')return _0x1ede8f(0x152);if(_0x56e184==='invoice'||_0x56e184===_0x1ede8f(0x175)||_0x56e184==='form')return _0x56e184;throw CliErrors['validation'](_0x1ede8f(0x16c)+_0x203867+_0x1ede8f(0x17e)+SUPPORTED_SCENES[_0x1ede8f(0x180)](',\x20'));}function a182_0x2316(){const _0x43d047=['Publicly\x20accessible\x20image\x20or\x20file\x20URL','invoice','1TVrtQm','filter','image-file','scene','.\x20Supported\x20scenes:\x20','233806dcUdQv','join','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','POST','47888dCjAfq','1926YdNCzi','/smartapi/common/queryFileUrl','idCard','filePath','string','form','4314987UlnhEs','path','validation','10UGifJY','appCode','fileName','imageFile','Invoice','\x20OCR','/smartapi/common/uploadFile','image-url','9063538FFWSxA','read','GET','8349864UkeAeC','175GPCorI','122920FxZTIF','trim','toString','length','IdCard','imageUrl','Unsupported\x20OCR\x20scene:\x20','2463839biuxfE','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','\x20OCR\x20from\x20URL','ocr','toLowerCase','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','apiError','general','str','fileUrl'];a182_0x2316=function(){return _0x43d047;};return a182_0x2316();}function a182_0x1663(_0xe11007,_0x23c3d4){_0xe11007=_0xe11007-0x14e;const _0x231658=a182_0x2316();let _0x1663b5=_0x231658[_0xe11007];return _0x1663b5;}function selectedInputs(_0x5fced6){const _0x28761f=a182_0x31b3e6,_0x2c1b05=_0x5fced6['str'](_0x28761f(0x17c))[_0x28761f(0x167)](),_0x6cf243=_0x5fced6['str'](_0x28761f(0x160))[_0x28761f(0x167)]();return{'imageFile':_0x2c1b05,'imageUrl':_0x6cf243,'count':[_0x2c1b05,_0x6cf243][_0x28761f(0x17b)](Boolean)[_0x28761f(0x169)]};}function validateInputSelection(_0x5cbcfb){const _0x53ec28=a182_0x31b3e6,_0x10f400=selectedInputs(_0x5cbcfb);if(_0x10f400['count']!==0x1)throw CliErrors[_0x53ec28(0x158)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x10f400;}function withScene(_0x14cfb8,_0x276c87,_0x5e724f){const _0x5ad263=a182_0x31b3e6;return{..._0x14cfb8,'scene':_0x276c87,..._0x5e724f?{'sourceFile':{'fileName':_0x5e724f[_0x5ad263(0x15b)],'filePath':_0x5e724f['filePath']}}:{}};}const ocrRecognize={'service':a182_0x31b3e6(0x171),'command':'recognize','description':a182_0x31b3e6(0x16f),'risk':a182_0x31b3e6(0x162),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x175cb6){const _0x4c3a8d=a182_0x31b3e6,_0x4497c8=normalizeScene(_0x175cb6['str']('scene')),_0x20981e=SCENE_TO_LEGACY_TYPE[_0x4497c8],_0x1f69bb=validateInputSelection(_0x175cb6);if(_0x1f69bb[_0x4c3a8d(0x16b)]){const _0x28e568=new URLSearchParams({'url':_0x1f69bb[_0x4c3a8d(0x16b)],'type':_0x20981e,'appCode':_0x175cb6['appCode']});return{'method':_0x4c3a8d(0x163),'url':'/smartapi/ocr/recognize-text?'+_0x28e568[_0x4c3a8d(0x168)](),'description':'Preview:\x20recognize\x20'+_0x4497c8+_0x4c3a8d(0x170)};}const _0xfb9d03=requireDevelopmentUploadFile(_0x1f69bb[_0x4c3a8d(0x15c)],_0x4c3a8d(0x17c));return{'method':'POST','url':_0x4c3a8d(0x15f),'body':{'steps':[{'method':_0x4c3a8d(0x14e),'url':_0x4c3a8d(0x15f),'body':{'appCode':_0x175cb6[_0x4c3a8d(0x15a)],'multipart':{'file':_0xfb9d03}}},{'method':_0x4c3a8d(0x14e),'url':_0x4c3a8d(0x151),'body':{'filePath':_0x4c3a8d(0x173),'downloadFlag':![]}},{'method':_0x4c3a8d(0x163),'url':'/smartapi/ocr/recognize-text','query':{'appCode':_0x175cb6[_0x4c3a8d(0x15a)],'url':'<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','type':_0x20981e}}]},'description':'Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x4497c8+_0x4c3a8d(0x15e)};},async 'execute'(_0x455ff1){const _0x22e744=a182_0x31b3e6,_0x4a70a8=normalizeScene(_0x455ff1[_0x22e744(0x176)](_0x22e744(0x17d))),_0x2a8e23=SCENE_TO_LEGACY_TYPE[_0x4a70a8],_0x259091=validateInputSelection(_0x455ff1);if(_0x259091[_0x22e744(0x16b)]){const _0x302dc2=await recognizeDevelopmentOcr(_0x455ff1['appCode'],{'url':_0x259091[_0x22e744(0x16b)],'type':_0x2a8e23});return{'ok':!![],'data':withScene(_0x302dc2,_0x4a70a8)};}const _0x4ae622=requireDevelopmentUploadFile(_0x259091[_0x22e744(0x15c)],'image-file'),_0xcfd2a9=await uploadDevelopmentFile(_0x455ff1[_0x22e744(0x15a)],_0x4ae622[_0x22e744(0x157)]);if(!_0xcfd2a9[_0x22e744(0x153)])throw CliErrors[_0x22e744(0x174)]('File\x20upload\x20response\x20missing\x20filePath.');const _0x2ac296=await queryDevelopmentFileUrl(_0xcfd2a9[_0x22e744(0x153)],{'download':![]});if(!_0x2ac296[_0x22e744(0x177)])throw CliErrors[_0x22e744(0x174)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x5dff4b=await recognizeDevelopmentOcr(_0x455ff1[_0x22e744(0x15a)],{'url':_0x2ac296[_0x22e744(0x177)],'type':_0x2a8e23});return{'ok':!![],'data':withScene(_0x5dff4b,_0x4a70a8,_0xcfd2a9)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- function a183_0x13ad(){const _0x41d1c4=['trim','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','object','6kAbLlh','page-type','3607051FOQpPt','.json','isInteger','page-dir','3288900VvNyqh','1120gVEUFb','248767czzWEN','page\x20create\x20does\x20not\x20accept\x20--page-type.','utf8','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','pageName\x20cannot\x20exceed\x20100\x20characters.','string','isArray','menuId','createMenu','length','parse','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','validation','page-pattern','page.create','pageId','8kdGQik','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','keys','BLANK','DASHBOARD','Custom_page_','CUSTOM','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','page-content','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','\x20and\x20its\x20menu\x20entry.','compress','13740GpABTX','/smartapi/webcode/page/create','Custom\x20Page\x20pattern\x20not\x20found:\x20','15660Dfdygi','files','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','appCode','pageName','str','create','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','menuPath','some','4230495ZwuJaG','2959seXTCD','stringify','4852728rvwxff','POST','parentMenuId','Invalid\x20Custom\x20Page\x20pattern:\x20','num','page','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','write','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','parent-menu-id','values','isNaN','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.'];a183_0x13ad=function(){return _0x41d1c4;};return a183_0x13ad();}const a183_0x21dfac=a183_0x337e;(function(_0x5369a9,_0x361d5a){const _0x66f513=a183_0x337e,_0x137a9a=_0x5369a9();while(!![]){try{const _0x3d3d5e=-parseInt(_0x66f513(0xeb))/0x1*(-parseInt(_0x66f513(0xe3))/0x2)+-parseInt(_0x66f513(0xe9))/0x3+parseInt(_0x66f513(0x118))/0x4+parseInt(_0x66f513(0xea))/0x5*(-parseInt(_0x66f513(0x10a))/0x6)+-parseInt(_0x66f513(0xe5))/0x7*(-parseInt(_0x66f513(0xfb))/0x8)+-parseInt(_0x66f513(0x115))/0x9+parseInt(_0x66f513(0x107))/0xa*(parseInt(_0x66f513(0x116))/0xb);if(_0x3d3d5e===_0x361d5a)break;else _0x137a9a['push'](_0x137a9a['shift']());}catch(_0x5ef4ff){_0x137a9a['push'](_0x137a9a['shift']());}}}(a183_0x13ad,0xa948b));import{readFile}from'node:fs/promises';function a183_0x337e(_0x21f307,_0x2b736f){_0x21f307=_0x21f307-0xd4;const _0x13adcc=a183_0x13ad();let _0x337ee1=_0x13adcc[_0x21f307];return _0x337ee1;}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=[a183_0x21dfac(0xfe),'ONEPAGE',a183_0x21dfac(0xff)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');export const pageCreate={'service':a183_0x21dfac(0xd7),'command':a183_0x21dfac(0x111),'description':a183_0x21dfac(0xee),'risk':a183_0x21dfac(0xd9),'defaultOutputFormat':a183_0x21dfac(0x106),'structuredErrors':!![],'rejectedFlags':[{'name':a183_0x21dfac(0xe4),'message':a183_0x21dfac(0xec),'hint':a183_0x21dfac(0xe1)},{'name':a183_0x21dfac(0x103),'message':a183_0x21dfac(0x10d),'hint':a183_0x21dfac(0x104)}],'flags':[{'name':'name','type':a183_0x21dfac(0xf0),'description':a183_0x21dfac(0xf6)},{'name':a183_0x21dfac(0xdb),'type':'number','description':a183_0x21dfac(0x102)},{'name':a183_0x21dfac(0xf8),'type':a183_0x21dfac(0xf0),'description':a183_0x21dfac(0x10c),'enum':CUSTOM_PAGE_PATTERNS},{'name':a183_0x21dfac(0xe8),'type':a183_0x21dfac(0xf0),'description':a183_0x21dfac(0xe0)},APPCODE_FLAG],async 'validate'(_0x471b13){await readValidatedPageSource(_0x471b13);},async 'dryRun'(_0x2a386d){const _0x2f2a2e=a183_0x21dfac,_0x3f42db=readInput(_0x2a386d,await readValidatedPageSource(_0x2a386d));return{'method':_0x2f2a2e(0x119),'url':_0x2f2a2e(0x108),'body':{'appCode':_0x3f42db[_0x2f2a2e(0x10e)],'pageName':_0x3f42db[_0x2f2a2e(0x10f)],..._0x3f42db[_0x2f2a2e(0xd4)]!=null?{'parentMenuId':_0x3f42db['parentMenuId']}:{},'createMenu':_0x3f42db[_0x2f2a2e(0xf3)],'codeContent':_0x3f42db[_0x2f2a2e(0x10b)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON[_0x2f2a2e(0x117)](_0x3f42db[_0x2f2a2e(0x10f)])+_0x2f2a2e(0x105)};},async 'execute'(_0x474969){const _0x372772=a183_0x21dfac,_0x514dcd=readInput(_0x474969,await readValidatedPageSource(_0x474969)),_0x318fdd=await createCustomPage(_0x514dcd);if(!Number['isInteger'](_0x318fdd[_0x372772(0xfa)])||_0x318fdd[_0x372772(0xfa)]<=0x0)throw CliErrors['apiError'](_0x372772(0x112));const _0x3c1d87=buildCustomPageDevelopmentUrl(_0x514dcd[_0x372772(0x10e)],_0x318fdd[_0x372772(0x113)]),_0x46def2=buildCustomPageEditUrl(_0x514dcd['appCode'],_0x318fdd[_0x372772(0xfa)]);return{'ok':!![],'data':{'operation':_0x372772(0xf9),'pageType':_0x372772(0x101),'pagePattern':readPagePattern(_0x474969),'selector':{'appCode':_0x514dcd[_0x372772(0x10e)],'pageName':_0x514dcd[_0x372772(0x10f)]},'before':null,'after':{'pageId':_0x318fdd[_0x372772(0xfa)],'pageName':_0x318fdd['pageName'],'appCode':_0x318fdd[_0x372772(0x10e)],'version':_0x318fdd['version'],'menuId':_0x318fdd[_0x372772(0xf2)],'menuPath':_0x318fdd[_0x372772(0x113)],'files':_0x318fdd['files']??Object[_0x372772(0xfd)](_0x514dcd['files'])},'dryRun':![],'request':_0x514dcd,..._0x3c1d87?{'pageUrl':_0x3c1d87}:{},..._0x46def2?{'editPageUrl':_0x46def2}:{},'warnings':_0x3c1d87?[]:[_0x372772(0xfc)]},'message':'Created\x20Custom\x20Page\x20'+_0x318fdd['pageId']+'.'};}};function readPagePattern(_0x5525e7){const _0x1d445=a183_0x21dfac,_0x4c3dca=_0x5525e7[_0x1d445(0x110)]('page-pattern')[_0x1d445(0xdf)](),_0x3ec625=_0x5525e7[_0x1d445(0x110)](_0x1d445(0xe8))[_0x1d445(0xdf)]();if(_0x4c3dca&&_0x3ec625)throw CliErrors[_0x1d445(0xf7)]('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x3ec625)return null;if(!_0x4c3dca)throw CliErrors[_0x1d445(0xf7)](_0x1d445(0xd8));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x4c3dca))throw CliErrors[_0x1d445(0xf7)](_0x1d445(0xde));return _0x4c3dca;}async function readPageSource(_0x58c01b){const _0x5001f1=a183_0x21dfac,_0x384f00=_0x58c01b[_0x5001f1(0x110)](_0x5001f1(0xe8))[_0x5001f1(0xdf)](),_0x51ad12=readPagePattern(_0x58c01b);if(_0x51ad12===null){const _0x4b9002=await readCustomPageDirectory(_0x384f00);if(Object['keys'](_0x4b9002)[_0x5001f1(0xf4)]===0x0)throw CliErrors[_0x5001f1(0xf7)](_0x5001f1(0xda));return _0x4b9002;}let _0x5c3ff4;try{_0x5c3ff4=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x51ad12['toLowerCase']()+_0x5001f1(0xe6)),_0x5001f1(0xed));}catch{throw CliErrors[_0x5001f1(0xf7)](_0x5001f1(0x109)+_0x51ad12+'.');}let _0xeb00e;try{_0xeb00e=JSON[_0x5001f1(0xf5)](_0x5c3ff4);}catch{throw CliErrors[_0x5001f1(0xf7)](_0x5001f1(0xd5)+_0x51ad12+'.');}if(!_0xeb00e||typeof _0xeb00e!==_0x5001f1(0xe2)||Array[_0x5001f1(0xf1)](_0xeb00e)||Object[_0x5001f1(0xdc)](_0xeb00e)[_0x5001f1(0x114)](_0x463b12=>typeof _0x463b12!==_0x5001f1(0xf0)))throw CliErrors['validation']('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x51ad12+'.');return _0xeb00e;}async function readValidatedPageSource(_0x5747ce){const _0x4e5b76=await readPageSource(_0x5747ce);return await validateCustomPageContent(_0x4e5b76),_0x4e5b76;}function readInput(_0x205049,_0x4c0ee2){const _0x494483=a183_0x21dfac,_0x462500=_0x205049[_0x494483(0x110)]('name')[_0x494483(0xdf)]()||_0x494483(0x100)+Date['now']();if(_0x462500[_0x494483(0xf4)]>0x64)throw CliErrors['validation'](_0x494483(0xef));const _0x10774a=_0x205049[_0x494483(0xd6)](_0x494483(0xdb),NaN),_0x667b62=!Number[_0x494483(0xdd)](_0x10774a);if(_0x667b62&&(!Number[_0x494483(0xe7)](_0x10774a)||_0x10774a<=0x0))throw CliErrors[_0x494483(0xf7)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x205049[_0x494483(0x10e)],'pageName':_0x462500,..._0x667b62?{'parentMenuId':_0x10774a}:{},'createMenu':!![],'files':_0x4c0ee2};}
1
+ const a183_0x5e3e22=a183_0x38f9;(function(_0x3c2ade,_0x3421c4){const _0x404b85=a183_0x38f9,_0x3e560a=_0x3c2ade();while(!![]){try{const _0x19434e=-parseInt(_0x404b85(0x10d))/0x1*(parseInt(_0x404b85(0x128))/0x2)+parseInt(_0x404b85(0x124))/0x3+parseInt(_0x404b85(0x134))/0x4+parseInt(_0x404b85(0x113))/0x5*(parseInt(_0x404b85(0x10c))/0x6)+-parseInt(_0x404b85(0x117))/0x7*(parseInt(_0x404b85(0x12e))/0x8)+parseInt(_0x404b85(0x11f))/0x9*(parseInt(_0x404b85(0x11b))/0xa)+-parseInt(_0x404b85(0x12b))/0xb*(parseInt(_0x404b85(0xff))/0xc);if(_0x19434e===_0x3421c4)break;else _0x3e560a['push'](_0x3e560a['shift']());}catch(_0x2ce207){_0x3e560a['push'](_0x3e560a['shift']());}}}(a183_0x2fd2,0xa7131));import{readFile}from'node:fs/promises';function a183_0x38f9(_0x52b671,_0x4a6c68){_0x52b671=_0x52b671-0xfc;const _0x2fd2c2=a183_0x2fd2();let _0x38f949=_0x2fd2c2[_0x52b671];return _0x38f949;}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=[a183_0x5e3e22(0x13a),a183_0x5e3e22(0xfd),'DASHBOARD'],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');export const pageCreate={'service':a183_0x5e3e22(0x129),'command':a183_0x5e3e22(0xfe),'description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':a183_0x5e3e22(0x10f),'structuredErrors':!![],'rejectedFlags':[{'name':a183_0x5e3e22(0x114),'message':a183_0x5e3e22(0x135),'hint':a183_0x5e3e22(0x11c)},{'name':'page-content','message':a183_0x5e3e22(0x103),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':a183_0x5e3e22(0x11d),'type':a183_0x5e3e22(0x110),'description':a183_0x5e3e22(0x137)},{'name':a183_0x5e3e22(0x102),'type':'number','description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a183_0x5e3e22(0x131),'type':a183_0x5e3e22(0x110),'description':a183_0x5e3e22(0x121),'enum':CUSTOM_PAGE_PATTERNS},{'name':a183_0x5e3e22(0x115),'type':'string','description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x329a6c){await readValidatedPageSource(_0x329a6c);},async 'dryRun'(_0x3eceb8){const _0x209cde=a183_0x5e3e22,_0xb54f44=readInput(_0x3eceb8,await readValidatedPageSource(_0x3eceb8));return{'method':_0x209cde(0x13c),'url':_0x209cde(0x112),'body':{'appCode':_0xb54f44[_0x209cde(0x108)],'pageName':_0xb54f44[_0x209cde(0x109)],..._0xb54f44[_0x209cde(0x106)]!=null?{'parentMenuId':_0xb54f44[_0x209cde(0x106)]}:{},'createMenu':_0xb54f44[_0x209cde(0x126)],'codeContent':_0xb54f44[_0x209cde(0x118)]},'description':_0x209cde(0x10b)+JSON[_0x209cde(0x120)](_0xb54f44[_0x209cde(0x109)])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0x388f40){const _0x19b99d=a183_0x5e3e22,_0x36d8eb=readInput(_0x388f40,await readValidatedPageSource(_0x388f40)),_0x1fead1=await createCustomPage(_0x36d8eb);if(!Number[_0x19b99d(0x130)](_0x1fead1[_0x19b99d(0x101)])||_0x1fead1[_0x19b99d(0x101)]<=0x0)throw CliErrors[_0x19b99d(0x122)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x76f1eb=buildCustomPageDevelopmentUrl(_0x36d8eb['appCode'],_0x1fead1[_0x19b99d(0x123)]),_0x236e95=buildCustomPageEditUrl(_0x36d8eb['appCode'],_0x1fead1[_0x19b99d(0x101)]);return{'ok':!![],'data':{'operation':_0x19b99d(0x11a),'pageType':'CUSTOM','pagePattern':readPagePattern(_0x388f40),'selector':{'appCode':_0x36d8eb[_0x19b99d(0x108)],'pageName':_0x36d8eb[_0x19b99d(0x109)]},'before':null,'after':{'pageId':_0x1fead1[_0x19b99d(0x101)],'pageName':_0x1fead1[_0x19b99d(0x109)],'appCode':_0x1fead1['appCode'],'version':_0x1fead1[_0x19b99d(0x119)],'menuId':_0x1fead1[_0x19b99d(0x11e)],'menuPath':_0x1fead1[_0x19b99d(0x123)],'files':_0x1fead1['files']??Object[_0x19b99d(0x105)](_0x36d8eb[_0x19b99d(0x118)])},'dryRun':![],'request':_0x36d8eb,..._0x76f1eb?{'pageUrl':_0x76f1eb}:{},..._0x236e95?{'editPageUrl':_0x236e95}:{},'warnings':_0x76f1eb?[]:[_0x19b99d(0x125)]},'message':_0x19b99d(0x127)+_0x1fead1[_0x19b99d(0x101)]+'.'};}};function readPagePattern(_0x13af20){const _0x241faa=a183_0x5e3e22,_0x542d52=_0x13af20['str'](_0x241faa(0x131))[_0x241faa(0x116)](),_0x52f01b=_0x13af20[_0x241faa(0x12d)](_0x241faa(0x115))[_0x241faa(0x116)]();if(_0x542d52&&_0x52f01b)throw CliErrors['validation'](_0x241faa(0x133));if(_0x52f01b)return null;if(!_0x542d52)throw CliErrors[_0x241faa(0x136)](_0x241faa(0x12c));if(!CUSTOM_PAGE_PATTERNS[_0x241faa(0x100)](_0x542d52))throw CliErrors[_0x241faa(0x136)]('--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.');return _0x542d52;}async function readPageSource(_0x5e4d21){const _0x459b7e=a183_0x5e3e22,_0xf0029d=_0x5e4d21[_0x459b7e(0x12d)]('page-dir')[_0x459b7e(0x116)](),_0x1b6fbd=readPagePattern(_0x5e4d21);if(_0x1b6fbd===null){const _0x3fee31=await readCustomPageDirectory(_0xf0029d);if(Object[_0x459b7e(0x105)](_0x3fee31)[_0x459b7e(0x10e)]===0x0)throw CliErrors[_0x459b7e(0x136)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x3fee31;}let _0x3da7ba;try{_0x3da7ba=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x1b6fbd['toLowerCase']()+_0x459b7e(0x104)),_0x459b7e(0x13b));}catch{throw CliErrors['validation'](_0x459b7e(0xfc)+_0x1b6fbd+'.');}let _0x3e463a;try{_0x3e463a=JSON['parse'](_0x3da7ba);}catch{throw CliErrors[_0x459b7e(0x136)](_0x459b7e(0x139)+_0x1b6fbd+'.');}if(!_0x3e463a||typeof _0x3e463a!=='object'||Array[_0x459b7e(0x107)](_0x3e463a)||Object[_0x459b7e(0x111)](_0x3e463a)[_0x459b7e(0x12f)](_0xdce53=>typeof _0xdce53!=='string'))throw CliErrors[_0x459b7e(0x136)](_0x459b7e(0x139)+_0x1b6fbd+'.');return _0x3e463a;}async function readValidatedPageSource(_0x14ff60){const _0x38735e=await readPageSource(_0x14ff60);return await validateCustomPageContent(_0x38735e),_0x38735e;}function readInput(_0x2bf07b,_0xe4d781){const _0xe1ba42=a183_0x5e3e22,_0x1a1e94=_0x2bf07b[_0xe1ba42(0x12d)](_0xe1ba42(0x11d))[_0xe1ba42(0x116)]()||_0xe1ba42(0x12a)+Date[_0xe1ba42(0x138)]();if(_0x1a1e94[_0xe1ba42(0x10e)]>0x64)throw CliErrors[_0xe1ba42(0x136)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x14be3a=_0x2bf07b['num'](_0xe1ba42(0x102),NaN),_0x59b319=!Number[_0xe1ba42(0x10a)](_0x14be3a);if(_0x59b319&&(!Number[_0xe1ba42(0x130)](_0x14be3a)||_0x14be3a<=0x0))throw CliErrors['validation'](_0xe1ba42(0x132));return{'appCode':_0x2bf07b[_0xe1ba42(0x108)],'pageName':_0x1a1e94,..._0x59b319?{'parentMenuId':_0x14be3a}:{},'createMenu':!![],'files':_0xe4d781};}function a183_0x2fd2(){const _0x4e5ed0=['3826536QUVLLM','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','createMenu','Created\x20Custom\x20Page\x20','2202788VHkrmC','page','Custom_page_','121FjPPzK','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','str','8kNAsCI','some','isInteger','page-pattern','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','597928HIGISx','page\x20create\x20does\x20not\x20accept\x20--page-type.','validation','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','now','Invalid\x20Custom\x20Page\x20pattern:\x20','BLANK','utf8','POST','Custom\x20Page\x20pattern\x20not\x20found:\x20','ONEPAGE','create','1079724REYAVZ','includes','pageId','parent-menu-id','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','.json','keys','parentMenuId','isArray','appCode','pageName','isNaN','Would\x20create\x20Custom\x20Page\x20','415146moNkFc','1MKcnKR','length','compress','string','values','/smartapi/webcode/page/create','65mSvZAk','page-type','page-dir','trim','4513103blCCiA','files','version','page.create','10yBsovi','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','name','menuId','9861570kcWcpk','stringify','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','apiError','menuPath'];a183_0x2fd2=function(){return _0x4e5ed0;};return a183_0x2fd2();}
@@ -1 +1 @@
1
- function a184_0x12fa(_0x1ae482,_0x21fa46){_0x1ae482=_0x1ae482-0x173;const _0x5d2109=a184_0x5d21();let _0x12fa6c=_0x5d2109[_0x1ae482];return _0x12fa6c;}const a184_0xd795d=a184_0x12fa;(function(_0x3dfa52,_0x23a1b0){const _0x154e9e=a184_0x12fa,_0x534558=_0x3dfa52();while(!![]){try{const _0x53b834=-parseInt(_0x154e9e(0x184))/0x1+-parseInt(_0x154e9e(0x177))/0x2*(-parseInt(_0x154e9e(0x180))/0x3)+-parseInt(_0x154e9e(0x175))/0x4+parseInt(_0x154e9e(0x183))/0x5*(parseInt(_0x154e9e(0x176))/0x6)+parseInt(_0x154e9e(0x187))/0x7+parseInt(_0x154e9e(0x178))/0x8+parseInt(_0x154e9e(0x189))/0x9*(-parseInt(_0x154e9e(0x185))/0xa);if(_0x53b834===_0x23a1b0)break;else _0x534558['push'](_0x534558['shift']());}catch(_0x2a082f){_0x534558['push'](_0x534558['shift']());}}}(a184_0x5d21,0x307e3));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a184_0xd795d(0x173),'command':a184_0xd795d(0x17f),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a184_0xd795d(0x181),'required':!![],'description':a184_0xd795d(0x17d)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4aa865){readCustomPageId(_0x4aa865);},async 'execute'(_0x3c5327){const _0x193f3e=a184_0xd795d,_0x44cc3f=readCustomPageId(_0x3c5327),_0x28f057=await getCustomPageSource(_0x44cc3f),{bundle:_0xfce97,createTime:_0x23ab2e,updateTime:_0x48c412,..._0x1b77fb}=_0x28f057,_0x3f605e=_0x28f057['id']??_0x44cc3f,_0x435b27=_0x28f057[_0x193f3e(0x182)]?.['trim']()||_0x3c5327[_0x193f3e(0x18b)](_0x193f3e(0x18a))['trim'](),_0x5131d2=buildCustomPageRuntimeUrl(_0x435b27,_0x28f057['pageCode']),_0x5e2491=buildCustomPageEditUrl(_0x435b27,_0x3f605e),_0x207fda=await resolveCustomPageDevelopmentUrl(_0x435b27,_0x3f605e,_0x3c5327['cookie']);return{'ok':!![],'data':{..._0x1b77fb,..._0x5131d2?{'runtimePageUrl':_0x5131d2}:{},..._0x207fda?{'pageUrl':_0x207fda}:{},..._0x5e2491?{'editPageUrl':_0x5e2491}:{},..._0x23ab2e==null?{}:{'createTime':formatTime(_0x23ab2e)},..._0x48c412==null?{}:{'updateTime':formatTime(_0x48c412)}},'message':_0x193f3e(0x17c)+_0x44cc3f+'.'};}};function a184_0x5d21(){const _0xbfbf3=['getDate','436806jdIDaC','appcode','str','getTime','getHours','page','isNaN','297032iCFylT','60exOUcr','814kfIeeA','2162616gIQxdt','getMinutes','padStart','getMonth','Retrieved\x20Custom\x20Page\x20','Custom\x20Page\x20ID','getSeconds','custom-detail','606TCAqNV','number','appCode','37800FUksmj','219952zvMeiV','50olqEHj','join','2151562sLCjUG'];a184_0x5d21=function(){return _0xbfbf3;};return a184_0x5d21();}function formatTime(_0x4b7b18){const _0xdb6733=a184_0xd795d,_0x2ff886=new Date(_0x4b7b18);if(Number[_0xdb6733(0x174)](_0x2ff886[_0xdb6733(0x18c)]()))return String(_0x4b7b18);const _0x539a8b=[_0x2ff886['getFullYear'](),String(_0x2ff886[_0xdb6733(0x17b)]()+0x1)[_0xdb6733(0x17a)](0x2,'0'),String(_0x2ff886[_0xdb6733(0x188)]())['padStart'](0x2,'0')][_0xdb6733(0x186)]('-'),_0x378c8c=[String(_0x2ff886[_0xdb6733(0x18d)]())[_0xdb6733(0x17a)](0x2,'0'),String(_0x2ff886[_0xdb6733(0x179)]())['padStart'](0x2,'0'),String(_0x2ff886[_0xdb6733(0x17e)]())['padStart'](0x2,'0')][_0xdb6733(0x186)](':');return _0x539a8b+'\x20'+_0x378c8c;}
1
+ const a184_0x32fd9a=a184_0x4c4d;(function(_0xd85ec2,_0x197b79){const _0x463a80=a184_0x4c4d,_0x3ce2cf=_0xd85ec2();while(!![]){try{const _0x1128f0=parseInt(_0x463a80(0xea))/0x1*(-parseInt(_0x463a80(0xdb))/0x2)+parseInt(_0x463a80(0xef))/0x3+-parseInt(_0x463a80(0xed))/0x4*(-parseInt(_0x463a80(0xe6))/0x5)+parseInt(_0x463a80(0xe0))/0x6+-parseInt(_0x463a80(0xe7))/0x7+-parseInt(_0x463a80(0xee))/0x8*(-parseInt(_0x463a80(0xe2))/0x9)+-parseInt(_0x463a80(0xf1))/0xa;if(_0x1128f0===_0x197b79)break;else _0x3ce2cf['push'](_0x3ce2cf['shift']());}catch(_0x2727b1){_0x3ce2cf['push'](_0x3ce2cf['shift']());}}}(a184_0x3496,0xe48fd));function a184_0x3496(){const _0x49640d=['getMinutes','isNaN','compress','padStart','pageCode','1410VSJZcd','str','getTime','getDate','getSeconds','11125158HbCSsM','appcode','729iwljJd','Retrieved\x20Custom\x20Page\x20','trim','number','414385DNrevX','4328940sCtQrg','getHours','join','468cgfFMt','getFullYear','appCode','28FmaiPJ','153120TZALIr','3534603BUMvKW','cookie','32783240orxDzH','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files'];a184_0x3496=function(){return _0x49640d;};return a184_0x3496();}import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':'custom-detail','description':a184_0x32fd9a(0xf2),'risk':'read','defaultOutputFormat':a184_0x32fd9a(0xf5),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a184_0x32fd9a(0xe5),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x378b3e){readCustomPageId(_0x378b3e);},async 'execute'(_0x135b0a){const _0x3b7fb9=a184_0x32fd9a,_0x2fae05=readCustomPageId(_0x135b0a),_0x3f8c73=await getCustomPageSource(_0x2fae05),{bundle:_0x149278,createTime:_0x222d64,updateTime:_0x5408a7,..._0x291643}=_0x3f8c73,_0x5e81d1=_0x3f8c73['id']??_0x2fae05,_0x27ca18=_0x3f8c73[_0x3b7fb9(0xec)]?.[_0x3b7fb9(0xe4)]()||_0x135b0a[_0x3b7fb9(0xdc)](_0x3b7fb9(0xe1))[_0x3b7fb9(0xe4)](),_0x380e4a=buildCustomPageRuntimeUrl(_0x27ca18,_0x3f8c73[_0x3b7fb9(0xda)]),_0x4319a7=buildCustomPageEditUrl(_0x27ca18,_0x5e81d1),_0x5fae5a=await resolveCustomPageDevelopmentUrl(_0x27ca18,_0x5e81d1,_0x135b0a[_0x3b7fb9(0xf0)]);return{'ok':!![],'data':{..._0x291643,..._0x380e4a?{'runtimePageUrl':_0x380e4a}:{},..._0x5fae5a?{'pageUrl':_0x5fae5a}:{},..._0x4319a7?{'editPageUrl':_0x4319a7}:{},..._0x222d64==null?{}:{'createTime':formatTime(_0x222d64)},..._0x5408a7==null?{}:{'updateTime':formatTime(_0x5408a7)}},'message':_0x3b7fb9(0xe3)+_0x2fae05+'.'};}};function a184_0x4c4d(_0x20a17c,_0x520231){_0x20a17c=_0x20a17c-0xda;const _0x3496f3=a184_0x3496();let _0x4c4dca=_0x3496f3[_0x20a17c];return _0x4c4dca;}function formatTime(_0x42228c){const _0x4860c3=a184_0x32fd9a,_0x31f423=new Date(_0x42228c);if(Number[_0x4860c3(0xf4)](_0x31f423[_0x4860c3(0xdd)]()))return String(_0x42228c);const _0x340698=[_0x31f423[_0x4860c3(0xeb)](),String(_0x31f423['getMonth']()+0x1)[_0x4860c3(0xf6)](0x2,'0'),String(_0x31f423[_0x4860c3(0xde)]())[_0x4860c3(0xf6)](0x2,'0')][_0x4860c3(0xe9)]('-'),_0xef4fd2=[String(_0x31f423[_0x4860c3(0xe8)]())[_0x4860c3(0xf6)](0x2,'0'),String(_0x31f423[_0x4860c3(0xf3)]())[_0x4860c3(0xf6)](0x2,'0'),String(_0x31f423[_0x4860c3(0xdf)]())[_0x4860c3(0xf6)](0x2,'0')]['join'](':');return _0x340698+'\x20'+_0xef4fd2;}
@@ -1 +1 @@
1
- const a185_0x1acdb5=a185_0x49cc;(function(_0x93f82c,_0xd8afe){const _0x199444=a185_0x49cc,_0x43a9fd=_0x93f82c();while(!![]){try{const _0x422be0=parseInt(_0x199444(0x162))/0x1*(parseInt(_0x199444(0x168))/0x2)+parseInt(_0x199444(0x164))/0x3*(parseInt(_0x199444(0x150))/0x4)+parseInt(_0x199444(0x166))/0x5+-parseInt(_0x199444(0x157))/0x6+parseInt(_0x199444(0x15e))/0x7+-parseInt(_0x199444(0x167))/0x8*(-parseInt(_0x199444(0x15c))/0x9)+-parseInt(_0x199444(0x15f))/0xa;if(_0x422be0===_0xd8afe)break;else _0x43a9fd['push'](_0x43a9fd['shift']());}catch(_0xcb61b5){_0x43a9fd['push'](_0x43a9fd['shift']());}}}(a185_0x3df5,0x88fa4));function a185_0x49cc(_0x447676,_0x131ce6){_0x447676=_0x447676-0x14f;const _0x3df5a9=a185_0x3df5();let _0x49cc85=_0x3df5a9[_0x447676];return _0x49cc85;}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';function a185_0x3df5(){const _0x17eb1d=['951355jdteUv','32bxSTZe','2174GKgVzx','flatMap','3263804AwTesp','page','No\x20Custom\x20Pages\x20found.','react','Found\x20','appCode','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','2243850GwoePv','cookie','compress','pageId','custom-list','93870KwEeIW','path','3999275aBoTkD','14494800ekHuCf','read','length','704wWyOBc','menus','3gbVXAq','\x20Custom\x20Page(s).'];a185_0x3df5=function(){return _0x17eb1d;};return a185_0x3df5();}export const pageCustomList={'service':a185_0x1acdb5(0x151),'command':a185_0x1acdb5(0x15b),'description':a185_0x1acdb5(0x156),'risk':a185_0x1acdb5(0x160),'defaultOutputFormat':a185_0x1acdb5(0x159),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x23d513){const _0x6ef830=a185_0x1acdb5,_0x25be59=(await fetchMenuSnapshot(_0x23d513[_0x6ef830(0x155)],_0x23d513[_0x6ef830(0x158)]))[_0x6ef830(0x163)][_0x6ef830(0x14f)](_0x2a3617=>{const _0x4a7805=_0x6ef830;if(_0x2a3617['type']!==_0x4a7805(0x153)||_0x2a3617[_0x4a7805(0x15a)]==null)return[];const _0x4af947=buildCustomPageDevelopmentUrl(_0x23d513[_0x4a7805(0x155)],_0x2a3617[_0x4a7805(0x15d)]),_0x3534f6=buildCustomPageRuntimeUrl(_0x23d513['appCode'],_0x2a3617[_0x4a7805(0x15d)]),_0x551923=buildCustomPageEditUrl(_0x23d513['appCode'],_0x2a3617[_0x4a7805(0x15a)]);return[{'pageId':_0x2a3617[_0x4a7805(0x15a)],'label':_0x2a3617['label'],'path':_0x2a3617[_0x4a7805(0x15d)],..._0x4af947?{'pageUrl':_0x4af947}:{},..._0x3534f6?{'runtimePageUrl':_0x3534f6}:{},..._0x551923?{'editPageUrl':_0x551923}:{}}];});return{'ok':!![],'data':{'pages':_0x25be59},'message':_0x25be59['length']===0x0?_0x6ef830(0x152):_0x6ef830(0x154)+_0x25be59[_0x6ef830(0x161)]+_0x6ef830(0x165)};}};
1
+ const a185_0x3f2ac1=a185_0x2748;(function(_0x2741ba,_0x4c211c){const _0x504884=a185_0x2748,_0x1fdc9d=_0x2741ba();while(!![]){try{const _0x58db7a=-parseInt(_0x504884(0x161))/0x1*(parseInt(_0x504884(0x164))/0x2)+-parseInt(_0x504884(0x162))/0x3+parseInt(_0x504884(0x165))/0x4+-parseInt(_0x504884(0x166))/0x5*(parseInt(_0x504884(0x14e))/0x6)+parseInt(_0x504884(0x15f))/0x7+parseInt(_0x504884(0x15b))/0x8*(-parseInt(_0x504884(0x14f))/0x9)+-parseInt(_0x504884(0x163))/0xa*(-parseInt(_0x504884(0x158))/0xb);if(_0x58db7a===_0x4c211c)break;else _0x1fdc9d['push'](_0x1fdc9d['shift']());}catch(_0x4dd787){_0x1fdc9d['push'](_0x1fdc9d['shift']());}}}(a185_0x65c5,0x2d639));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a185_0x2748(_0x1b7270,_0x25e8c5){_0x1b7270=_0x1b7270-0x14c;const _0x65c55c=a185_0x65c5();let _0x27485c=_0x65c55c[_0x1b7270];return _0x27485c;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a185_0x3f2ac1(0x15d),'command':'custom-list','description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a185_0x3f2ac1(0x152),'defaultOutputFormat':a185_0x3f2ac1(0x157),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x19e7ad){const _0x102d63=a185_0x3f2ac1,_0x186911=(await fetchMenuSnapshot(_0x19e7ad['appCode'],_0x19e7ad[_0x102d63(0x15a)]))[_0x102d63(0x14c)][_0x102d63(0x150)](_0x39e2d5=>{const _0x3c72a1=_0x102d63;if(_0x39e2d5[_0x3c72a1(0x153)]!==_0x3c72a1(0x155)||_0x39e2d5[_0x3c72a1(0x151)]==null)return[];const _0x205d34=buildCustomPageDevelopmentUrl(_0x19e7ad[_0x3c72a1(0x156)],_0x39e2d5[_0x3c72a1(0x154)]),_0x31edc2=buildCustomPageRuntimeUrl(_0x19e7ad['appCode'],_0x39e2d5[_0x3c72a1(0x154)]),_0x3fa97e=buildCustomPageEditUrl(_0x19e7ad[_0x3c72a1(0x156)],_0x39e2d5[_0x3c72a1(0x151)]);return[{'pageId':_0x39e2d5[_0x3c72a1(0x151)],'label':_0x39e2d5[_0x3c72a1(0x160)],'path':_0x39e2d5[_0x3c72a1(0x154)],..._0x205d34?{'pageUrl':_0x205d34}:{},..._0x31edc2?{'runtimePageUrl':_0x31edc2}:{},..._0x3fa97e?{'editPageUrl':_0x3fa97e}:{}}];});return{'ok':!![],'data':{'pages':_0x186911},'message':_0x186911[_0x102d63(0x14d)]===0x0?_0x102d63(0x159):_0x102d63(0x15e)+_0x186911[_0x102d63(0x14d)]+_0x102d63(0x15c)};}};function a185_0x65c5(){const _0x959a17=['compress','1898941esbjkW','No\x20Custom\x20Pages\x20found.','cookie','370312POdGYJ','\x20Custom\x20Page(s).','page','Found\x20','1576519ykZdBd','label','44434oIeGLv','1112505SFhrSa','10RDDjEM','2eaCXaX','1138808vEzcby','58465rBihwt','menus','length','18ZUolyb','9mMbpax','flatMap','pageId','read','type','path','react','appCode'];a185_0x65c5=function(){return _0x959a17;};return a185_0x65c5();}
@@ -1 +1 @@
1
- function a186_0x52a7(){const _0xc83105=['write','remark','isInteger','79744aqPXNp','FORMAL','cookie','1953525uSgYEm','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','status','str','4144905zhCGnQ','string','Optional\x20publish\x20remark','push','unknown','page','6rtWBbS','12210210KTPPaQ','appCode','custom-publish','runtimePageUrl','trim','Custom\x20Page\x20ID','Published\x20Custom\x20Page\x20','apiError','page.custom-publish','322654ZFiMkg','POST','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','warnings','905470lvKutK','6mabZsY','/smartapi/webcode/file/publish','pageId','number','1715124SmzpMJ','Would\x20publish\x20Custom\x20Page\x20'];a186_0x52a7=function(){return _0xc83105;};return a186_0x52a7();}const a186_0x4ce6b0=a186_0x160f;(function(_0x4f7155,_0x92fbfd){const _0x5bfdb1=a186_0x160f,_0x4b294e=_0x4f7155();while(!![]){try{const _0x106f7f=parseInt(_0x5bfdb1(0x1be))/0x1+-parseInt(_0x5bfdb1(0x1c3))/0x2+-parseInt(_0x5bfdb1(0x1da))/0x3*(-parseInt(_0x5bfdb1(0x1c8))/0x4)+-parseInt(_0x5bfdb1(0x1d4))/0x5*(-parseInt(_0x5bfdb1(0x1c4))/0x6)+parseInt(_0x5bfdb1(0x1d0))/0x7+-parseInt(_0x5bfdb1(0x1cd))/0x8+-parseInt(_0x5bfdb1(0x1db))/0x9;if(_0x106f7f===_0x92fbfd)break;else _0x4b294e['push'](_0x4b294e['shift']());}catch(_0x4efc94){_0x4b294e['push'](_0x4b294e['shift']());}}}(a186_0x52a7,0x7278f));function a186_0x160f(_0x356c90,_0xba735a){_0x356c90=_0x356c90-0x1b7;const _0x52a764=a186_0x52a7();let _0x160f07=_0x52a764[_0x356c90];return _0x160f07;}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':a186_0x4ce6b0(0x1d9),'command':a186_0x4ce6b0(0x1b7),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a186_0x4ce6b0(0x1ca),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a186_0x4ce6b0(0x1c7),'required':!![],'description':a186_0x4ce6b0(0x1ba)},{'name':a186_0x4ce6b0(0x1cb),'type':a186_0x4ce6b0(0x1d5),'description':a186_0x4ce6b0(0x1d6)}],async 'validate'(_0x39874f){readCustomPageId(_0x39874f);},async 'dryRun'(_0x1848d6){const _0x572591=a186_0x4ce6b0,_0x70a23d=readInput(_0x1848d6);return{'method':_0x572591(0x1bf),'url':_0x572591(0x1c5),'body':{'id':_0x70a23d[_0x572591(0x1c6)],..._0x70a23d[_0x572591(0x1cb)]?{'remark':_0x70a23d[_0x572591(0x1cb)]}:{}},'description':_0x572591(0x1c9)+_0x70a23d[_0x572591(0x1c6)]+'.'};},async 'execute'(_0x15cd68){const _0x2294ba=a186_0x4ce6b0,_0x163352=readInput(_0x15cd68);await getCustomPageSource(_0x163352[_0x2294ba(0x1c6)]);const _0x1c58ec=await publishCustomPage(_0x163352);if(!Number[_0x2294ba(0x1cc)](_0x1c58ec)||_0x1c58ec!==_0x163352[_0x2294ba(0x1c6)])throw CliErrors[_0x2294ba(0x1bc)](_0x2294ba(0x1c0));const _0x252dea=await getCustomPageSource(_0x163352['pageId']);if(_0x252dea[_0x2294ba(0x1d2)]!==_0x2294ba(0x1ce))throw CliErrors[_0x2294ba(0x1bc)](_0x2294ba(0x1d1)+(_0x252dea['status']??_0x2294ba(0x1d8))+'.');const _0x4ce7e6=_0x252dea['appCode']?.[_0x2294ba(0x1b9)](),_0x351add=buildCustomPageEditUrl(_0x4ce7e6,_0x163352['pageId']),_0x2228dd=await resolveCustomPageDevelopmentUrl(_0x4ce7e6,_0x163352[_0x2294ba(0x1c6)],_0x15cd68[_0x2294ba(0x1cf)]),_0x3ee190=buildMutationData(_0x163352,!![],_0x2228dd,_0x351add);_0x4ce7e6&&!_0x2228dd&&_0x3ee190[_0x2294ba(0x1c2)][_0x2294ba(0x1d7)](_0x2294ba(0x1c1));const _0x5aa286=buildCustomPageRuntimeUrl(_0x252dea[_0x2294ba(0x1dc)],_0x252dea['pageCode']);return _0x5aa286?_0x3ee190[_0x2294ba(0x1b8)]=_0x5aa286:_0x3ee190[_0x2294ba(0x1c2)][_0x2294ba(0x1d7)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x3ee190,'message':_0x2294ba(0x1bb)+_0x163352[_0x2294ba(0x1c6)]+'.'};}};function readInput(_0x19c298){const _0x1dd41a=a186_0x4ce6b0,_0x5e0c8f=readCustomPageId(_0x19c298),_0x59787f=_0x19c298[_0x1dd41a(0x1d3)]('remark')['trim']();return{'pageId':_0x5e0c8f,..._0x59787f?{'remark':_0x59787f}:{}};}function buildMutationData(_0xf94151,_0x441fdf=![],_0xbeab65,_0x1f9863){const _0x47ba61=a186_0x4ce6b0;return{'operation':_0x47ba61(0x1bd),'selector':{'pageId':_0xf94151[_0x47ba61(0x1c6)]},'before':null,'after':{'pageId':_0xf94151['pageId'],'status':'FORMAL'},'dryRun':!_0x441fdf,'request':_0xf94151,..._0xbeab65?{'pageUrl':_0xbeab65}:{},..._0x1f9863?{'editPageUrl':_0x1f9863}:{},'warnings':[]};}
1
+ const a186_0x443e9f=a186_0x30d0;(function(_0x5dd3b4,_0x45e19d){const _0x5a6c20=a186_0x30d0,_0x54c5bc=_0x5dd3b4();while(!![]){try{const _0x1b7940=-parseInt(_0x5a6c20(0x17a))/0x1*(parseInt(_0x5a6c20(0x173))/0x2)+parseInt(_0x5a6c20(0x186))/0x3+-parseInt(_0x5a6c20(0x172))/0x4+parseInt(_0x5a6c20(0x174))/0x5*(parseInt(_0x5a6c20(0x170))/0x6)+-parseInt(_0x5a6c20(0x192))/0x7+parseInt(_0x5a6c20(0x184))/0x8+parseInt(_0x5a6c20(0x175))/0x9*(parseInt(_0x5a6c20(0x187))/0xa);if(_0x1b7940===_0x45e19d)break;else _0x54c5bc['push'](_0x54c5bc['shift']());}catch(_0x265780){_0x54c5bc['push'](_0x54c5bc['shift']());}}}(a186_0x4720,0xbadb2));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a186_0x4720(){const _0x1b7437=['pageCode','POST','2629XnvGQw','str','Custom\x20Page\x20ID','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','custom-publish','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','remark','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','trim','push','2247560itfhjP','write','3406473wYeApU','3910110ClGRhd','unknown','FORMAL','isInteger','Would\x20publish\x20Custom\x20Page\x20','warnings','/smartapi/webcode/file/publish','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','pageId','number','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','303597yKiSwX','appCode','string','apiError','72OTcSPv','status','1190660jgsLco','594dVTMxU','33235QlRPAQ','9qwkVUn','compress','Published\x20Custom\x20Page\x20'];a186_0x4720=function(){return _0x1b7437;};return a186_0x4720();}export const pageCustomPublish={'service':'page','command':a186_0x443e9f(0x17e),'description':a186_0x443e9f(0x191),'risk':a186_0x443e9f(0x185),'defaultOutputFormat':a186_0x443e9f(0x176),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a186_0x443e9f(0x190),'required':!![],'description':a186_0x443e9f(0x17c)},{'name':a186_0x443e9f(0x180),'type':a186_0x443e9f(0x16e),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x4a20a1){readCustomPageId(_0x4a20a1);},async 'dryRun'(_0x3a494d){const _0x3ef85e=a186_0x443e9f,_0x169278=readInput(_0x3a494d);return{'method':_0x3ef85e(0x179),'url':_0x3ef85e(0x18d),'body':{'id':_0x169278[_0x3ef85e(0x18f)],..._0x169278[_0x3ef85e(0x180)]?{'remark':_0x169278['remark']}:{}},'description':_0x3ef85e(0x18b)+_0x169278[_0x3ef85e(0x18f)]+'.'};},async 'execute'(_0x5511c6){const _0x34a149=a186_0x443e9f,_0x60f94d=readInput(_0x5511c6);await getCustomPageSource(_0x60f94d[_0x34a149(0x18f)]);const _0x39920b=await publishCustomPage(_0x60f94d);if(!Number[_0x34a149(0x18a)](_0x39920b)||_0x39920b!==_0x60f94d[_0x34a149(0x18f)])throw CliErrors[_0x34a149(0x16f)](_0x34a149(0x181));const _0x280116=await getCustomPageSource(_0x60f94d[_0x34a149(0x18f)]);if(_0x280116[_0x34a149(0x171)]!==_0x34a149(0x189))throw CliErrors['apiError'](_0x34a149(0x17d)+(_0x280116[_0x34a149(0x171)]??_0x34a149(0x188))+'.');const _0x338558=_0x280116[_0x34a149(0x16d)]?.[_0x34a149(0x182)](),_0x4f012d=buildCustomPageEditUrl(_0x338558,_0x60f94d[_0x34a149(0x18f)]),_0x58735d=await resolveCustomPageDevelopmentUrl(_0x338558,_0x60f94d[_0x34a149(0x18f)],_0x5511c6['cookie']),_0x104cf7=buildMutationData(_0x60f94d,!![],_0x58735d,_0x4f012d);_0x338558&&!_0x58735d&&_0x104cf7[_0x34a149(0x18c)]['push'](_0x34a149(0x18e));const _0x286f92=buildCustomPageRuntimeUrl(_0x280116[_0x34a149(0x16d)],_0x280116[_0x34a149(0x178)]);return _0x286f92?_0x104cf7['runtimePageUrl']=_0x286f92:_0x104cf7[_0x34a149(0x18c)][_0x34a149(0x183)](_0x34a149(0x17f)),{'ok':!![],'data':_0x104cf7,'message':_0x34a149(0x177)+_0x60f94d[_0x34a149(0x18f)]+'.'};}};function a186_0x30d0(_0x32ee47,_0x31c58a){_0x32ee47=_0x32ee47-0x16d;const _0x472036=a186_0x4720();let _0x30d013=_0x472036[_0x32ee47];return _0x30d013;}function readInput(_0x5e1cfb){const _0x186169=a186_0x443e9f,_0x264633=readCustomPageId(_0x5e1cfb),_0x4d3129=_0x5e1cfb[_0x186169(0x17b)](_0x186169(0x180))[_0x186169(0x182)]();return{'pageId':_0x264633,..._0x4d3129?{'remark':_0x4d3129}:{}};}function buildMutationData(_0x194d84,_0x2f7c1e=![],_0x59f709,_0x2d5cda){const _0x4a61c6=a186_0x443e9f;return{'operation':'page.custom-publish','selector':{'pageId':_0x194d84[_0x4a61c6(0x18f)]},'before':null,'after':{'pageId':_0x194d84[_0x4a61c6(0x18f)],'status':_0x4a61c6(0x189)},'dryRun':!_0x2f7c1e,'request':_0x194d84,..._0x59f709?{'pageUrl':_0x59f709}:{},..._0x2d5cda?{'editPageUrl':_0x2d5cda}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a187_0x535920=a187_0xd201;(function(_0x16c928,_0x1d08c7){const _0x53c3d5=a187_0xd201,_0x39c314=_0x16c928();while(!![]){try{const _0x1517a6=-parseInt(_0x53c3d5(0x138))/0x1*(parseInt(_0x53c3d5(0x13f))/0x2)+parseInt(_0x53c3d5(0x13e))/0x3*(parseInt(_0x53c3d5(0x145))/0x4)+-parseInt(_0x53c3d5(0x148))/0x5+parseInt(_0x53c3d5(0x136))/0x6+parseInt(_0x53c3d5(0x146))/0x7+parseInt(_0x53c3d5(0x141))/0x8*(-parseInt(_0x53c3d5(0x13d))/0x9)+parseInt(_0x53c3d5(0x13b))/0xa*(parseInt(_0x53c3d5(0x133))/0xb);if(_0x1517a6===_0x1d08c7)break;else _0x39c314['push'](_0x39c314['shift']());}catch(_0x418b76){_0x39c314['push'](_0x39c314['shift']());}}}(a187_0x5bf5,0xcebf1));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';function a187_0x5bf5(){const _0x45bae2=['join','--id\x20must\x20be\x20a\x20positive\x20integer.','length','944Rvrqei','11094874LpzpwQ','react','4773755kamrST','message','pageId','580063QlNgbR','/ide/','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','741858zBLwdX','menus','140221tLeJBK','num','/pages/','10YtQgKk','isInteger','36xzDtim','17247HPHOzN','4iCxFeS','trim','2072192gtpHZT'];a187_0x5bf5=function(){return _0x45bae2;};return a187_0x5bf5();}function a187_0xd201(_0x3af39a,_0x45d2bb){_0x3af39a=_0x3af39a-0x131;const _0x5bf5a2=a187_0x5bf5();let _0xd201d=_0x5bf5a2[_0x3af39a];return _0xd201d;}import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a187_0x535920(0x135)};function trimOptional(_0x28363f){const _0x4b3fd4=a187_0x535920;return _0x28363f?.[_0x4b3fd4(0x140)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x339b11,_0xbfba31){const _0x2c5c00=trimOptional(_0x339b11),_0x59ba94=trimOptional(_0xbfba31);if(!_0x2c5c00||!_0x59ba94)return undefined;return getPublishedAppDomain(_0x2c5c00)+'/'+encodeURIComponent(_0x59ba94);}export function buildCustomPageDevelopmentUrl(_0x2b65fa,_0x44d2d0){const _0x35b711=a187_0x535920,_0x379730=trimOptional(_0x2b65fa),_0x6938b3=trimOptional(_0x44d2d0);if(!_0x379730||!_0x6938b3)return undefined;return getAppBaseUrl(_0x379730)+_0x35b711(0x13a)+encodeURIComponent(_0x6938b3);}export async function resolveCustomPageDevelopmentUrl(_0x5824d8,_0x33e56e,_0x1b07d4){const _0x4a5222=a187_0x535920,_0x5ba512=trimOptional(_0x5824d8);if(!_0x5ba512)return undefined;try{const _0x2b8058=(await fetchMenuSnapshot(_0x5ba512,_0x1b07d4))[_0x4a5222(0x137)]['find'](_0x1ef263=>_0x1ef263['type']===_0x4a5222(0x147)&&_0x1ef263[_0x4a5222(0x132)]===_0x33e56e);return buildCustomPageDevelopmentUrl(_0x5ba512,_0x2b8058?.['path']);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x4a666b,_0x5cc3be){const _0x157893=a187_0x535920,_0x16b5f2=trimOptional(_0x4a666b);if(!_0x16b5f2)return;const _0x257774=trimOptional(String(_0x5cc3be??''));if(!_0x257774)return;return getAppBaseUrl(_0x16b5f2)+_0x157893(0x134)+encodeURIComponent(_0x257774);}export async function validateCustomPageContent(_0x22feea){const _0x5c547b=a187_0x535920,_0x1b3382=await validateCustomPageSourceFiles(_0x22feea);if(_0x1b3382[_0x5c547b(0x144)]>0x0)throw CliErrors['validation']('Invalid\x20Custom\x20Page\x20content:\x20'+_0x1b3382['map'](_0x48b341=>_0x48b341['file']+':\x20'+_0x48b341[_0x5c547b(0x131)])[_0x5c547b(0x142)](';\x20'));}export function readCustomPageId(_0x2db625){const _0xa3d035=a187_0x535920,_0x51bfcf=_0x2db625[_0xa3d035(0x139)]('id');if(!Number[_0xa3d035(0x13c)](_0x51bfcf)||_0x51bfcf<=0x0)throw CliErrors['validation'](_0xa3d035(0x143));return _0x51bfcf;}
1
+ const a187_0x357df1=a187_0x1050;(function(_0x4f673a,_0xd3fdef){const _0x22fe6a=a187_0x1050,_0x2e1e65=_0x4f673a();while(!![]){try{const _0x3de8cd=-parseInt(_0x22fe6a(0x19d))/0x1*(-parseInt(_0x22fe6a(0x183))/0x2)+-parseInt(_0x22fe6a(0x195))/0x3*(-parseInt(_0x22fe6a(0x189))/0x4)+parseInt(_0x22fe6a(0x188))/0x5+-parseInt(_0x22fe6a(0x184))/0x6*(parseInt(_0x22fe6a(0x186))/0x7)+-parseInt(_0x22fe6a(0x193))/0x8+parseInt(_0x22fe6a(0x192))/0x9*(-parseInt(_0x22fe6a(0x19a))/0xa)+-parseInt(_0x22fe6a(0x18d))/0xb*(-parseInt(_0x22fe6a(0x19c))/0xc);if(_0x3de8cd===_0xd3fdef)break;else _0x2e1e65['push'](_0x2e1e65['shift']());}catch(_0x487d8d){_0x2e1e65['push'](_0x2e1e65['shift']());}}}(a187_0x4907,0x1a6f9));function a187_0x4907(){const _0x24fc07=['num','12IDlgWR','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','pageId','validation','message','10KfHsqL','join','34200YLSJlV','31RJmRfx','path','8546KJpghu','12bOeeVT','find','108668widxqw','type','957375rNpdeo','23252gwtOwp','/ide/','length','--id\x20must\x20be\x20a\x20positive\x20integer.','528kPTJcp','react','trim','/pages/','map','1806291xOCRsN','1151696JQCSiY'];a187_0x4907=function(){return _0x24fc07;};return a187_0x4907();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a187_0x1050(_0x15f272,_0x4b51e8){_0x15f272=_0x15f272-0x183;const _0x490733=a187_0x4907();let _0x1050a9=_0x490733[_0x15f272];return _0x1050a9;}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':a187_0x357df1(0x196)};function trimOptional(_0x212871){const _0x3e81a0=a187_0x357df1;return _0x212871?.[_0x3e81a0(0x18f)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x2911b5,_0x185310){const _0x59021b=trimOptional(_0x2911b5),_0x2a6e0e=trimOptional(_0x185310);if(!_0x59021b||!_0x2a6e0e)return undefined;return getPublishedAppDomain(_0x59021b)+'/'+encodeURIComponent(_0x2a6e0e);}export function buildCustomPageDevelopmentUrl(_0x3a01bc,_0xcf74c9){const _0x2f4491=a187_0x357df1,_0x2ecafa=trimOptional(_0x3a01bc),_0x3e3fc0=trimOptional(_0xcf74c9);if(!_0x2ecafa||!_0x3e3fc0)return undefined;return getAppBaseUrl(_0x2ecafa)+_0x2f4491(0x190)+encodeURIComponent(_0x3e3fc0);}export async function resolveCustomPageDevelopmentUrl(_0x4f795b,_0x16ea8b,_0x222c08){const _0x3cc800=a187_0x357df1,_0x2a9c6d=trimOptional(_0x4f795b);if(!_0x2a9c6d)return undefined;try{const _0x248952=(await fetchMenuSnapshot(_0x2a9c6d,_0x222c08))['menus'][_0x3cc800(0x185)](_0x30c62a=>_0x30c62a[_0x3cc800(0x187)]===_0x3cc800(0x18e)&&_0x30c62a[_0x3cc800(0x197)]===_0x16ea8b);return buildCustomPageDevelopmentUrl(_0x2a9c6d,_0x248952?.[_0x3cc800(0x19e)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x30a404,_0x30aabe){const _0x32e799=a187_0x357df1,_0x2b8704=trimOptional(_0x30a404);if(!_0x2b8704)return;const _0x193463=trimOptional(String(_0x30aabe??''));if(!_0x193463)return;return getAppBaseUrl(_0x2b8704)+_0x32e799(0x18a)+encodeURIComponent(_0x193463);}export async function validateCustomPageContent(_0x1d40e4){const _0x5140d0=a187_0x357df1,_0x1275d9=await validateCustomPageSourceFiles(_0x1d40e4);if(_0x1275d9[_0x5140d0(0x18b)]>0x0)throw CliErrors[_0x5140d0(0x198)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x1275d9[_0x5140d0(0x191)](_0x168b0e=>_0x168b0e['file']+':\x20'+_0x168b0e[_0x5140d0(0x199)])[_0x5140d0(0x19b)](';\x20'));}export function readCustomPageId(_0x180ada){const _0xb31068=a187_0x357df1,_0x408638=_0x180ada[_0xb31068(0x194)]('id');if(!Number['isInteger'](_0x408638)||_0x408638<=0x0)throw CliErrors['validation'](_0xb31068(0x18c));return _0x408638;}
@@ -1 +1 @@
1
- function a188_0x2a57(){const _0x5dd75a=['2559132AyulXy','.tsx','endsWith','27sgcWCV','filter','some','typescript','4979080GXHUXF','80YxGNOU','6xjLhMl','toLowerCase','entries','babel','1136275KUHsuj','all','57834cvabju','map','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','find','1062317LKrEkk','2134992tnKPZT','.jsx','trim','page\x20files','295318UvhdbU'];a188_0x2a57=function(){return _0x5dd75a;};return a188_0x2a57();}const a188_0x5bbaa3=a188_0x3f3e;(function(_0x31dfbb,_0x24db13){const _0x117893=a188_0x3f3e,_0x5ad853=_0x31dfbb();while(!![]){try{const _0x686409=parseInt(_0x117893(0x75))/0x1+-parseInt(_0x117893(0x7a))/0x2*(parseInt(_0x117893(0x84))/0x3)+parseInt(_0x117893(0x76))/0x4+parseInt(_0x117893(0x6f))/0x5+parseInt(_0x117893(0x7b))/0x6+-parseInt(_0x117893(0x71))/0x7*(-parseInt(_0x117893(0x83))/0x8)+-parseInt(_0x117893(0x7e))/0x9*(parseInt(_0x117893(0x82))/0xa);if(_0x686409===_0x24db13)break;else _0x5ad853['push'](_0x5ad853['shift']());}catch(_0x249396){_0x5ad853['push'](_0x5ad853['shift']());}}}(a188_0x2a57,0x84abc));import{format}from'prettier';const SOURCE_PARSERS={'.js':a188_0x5bbaa3(0x87),'.jsx':a188_0x5bbaa3(0x87),'.ts':'typescript','.tsx':a188_0x5bbaa3(0x81)},CUSTOM_PAGE_EXTENSIONS=[a188_0x5bbaa3(0x77),a188_0x5bbaa3(0x7c)];export async function validateCustomPageSourceFiles(_0x12d0ae){const _0x43a842=a188_0x5bbaa3,_0xa4fdf9=Object[_0x43a842(0x86)](_0x12d0ae)[_0x43a842(0x7f)](([_0xe28252])=>getParser(_0xe28252));if(!_0xa4fdf9[_0x43a842(0x80)](([_0xb32cef])=>isReactSourceFile(_0xb32cef)))return[{'file':_0x43a842(0x79),'message':_0x43a842(0x73)}];const _0x3148c8=await Promise[_0x43a842(0x70)](_0xa4fdf9[_0x43a842(0x72)](async([_0x25b184,_0x154c32])=>{try{return await format(_0x154c32,{'parser':getParser(_0x25b184)}),undefined;}catch(_0x652359){return{'file':_0x25b184,'message':_0x652359 instanceof Error?_0x652359['message']:String(_0x652359)};}}));return _0x3148c8[_0x43a842(0x7f)](_0x6380c7=>_0x6380c7!==undefined);}function a188_0x3f3e(_0x2b3ba5,_0x1ac705){_0x2b3ba5=_0x2b3ba5-0x6f;const _0x2a5707=a188_0x2a57();let _0x3f3e0c=_0x2a5707[_0x2b3ba5];return _0x3f3e0c;}function getParser(_0x4fd344){const _0x239619=a188_0x5bbaa3,_0x3f9392=_0x4fd344[_0x239619(0x78)]()[_0x239619(0x85)]();return Object[_0x239619(0x86)](SOURCE_PARSERS)[_0x239619(0x74)](([_0x1e4707])=>_0x3f9392[_0x239619(0x7d)](_0x1e4707))?.[0x1];}function isReactSourceFile(_0x12bb77){const _0x1ef334=a188_0x5bbaa3,_0x4143cb=_0x12bb77[_0x1ef334(0x78)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS['some'](_0xf81619=>_0x4143cb[_0x1ef334(0x7d)](_0xf81619));}
1
+ const a188_0x286fcc=a188_0x4a92;function a188_0x3d5f(){const _0x2709c5=['85YQMQbP','toLowerCase','88MoBBYM','26hSEKoi','560650WcGelg','page\x20files','trim','filter','915vPBmGD','map','all','endsWith','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','9064404GCiOiB','441VwrWNE','6195696POeJWa','146128gXlEGf','babel','entries','some','.jsx','173190fmMiwc','2281908bLOLVF','typescript'];a188_0x3d5f=function(){return _0x2709c5;};return a188_0x3d5f();}(function(_0x1bd96e,_0x46cd10){const _0x2da29e=a188_0x4a92,_0x18778e=_0x1bd96e();while(!![]){try{const _0x5a00ba=parseInt(_0x2da29e(0x209))/0x1*(parseInt(_0x2da29e(0x204))/0x2)+-parseInt(_0x2da29e(0x1ff))/0x3+parseInt(_0x2da29e(0x1f8))/0x4+-parseInt(_0x2da29e(0x201))/0x5*(parseInt(_0x2da29e(0x1fe))/0x6)+-parseInt(_0x2da29e(0x1f7))/0x7*(-parseInt(_0x2da29e(0x1f9))/0x8)+-parseInt(_0x2da29e(0x1f6))/0x9+parseInt(_0x2da29e(0x205))/0xa*(parseInt(_0x2da29e(0x203))/0xb);if(_0x5a00ba===_0x46cd10)break;else _0x18778e['push'](_0x18778e['shift']());}catch(_0x2d56c0){_0x18778e['push'](_0x18778e['shift']());}}}(a188_0x3d5f,0xdc1e0));import{format}from'prettier';const SOURCE_PARSERS={'.js':a188_0x286fcc(0x1fa),'.jsx':'babel','.ts':a188_0x286fcc(0x200),'.tsx':a188_0x286fcc(0x200)},CUSTOM_PAGE_EXTENSIONS=[a188_0x286fcc(0x1fd),'.tsx'];export async function validateCustomPageSourceFiles(_0x36e41e){const _0x4e775a=a188_0x286fcc,_0x5066fb=Object['entries'](_0x36e41e)[_0x4e775a(0x208)](([_0x1188d9])=>getParser(_0x1188d9));if(!_0x5066fb[_0x4e775a(0x1fc)](([_0x445c6b])=>isReactSourceFile(_0x445c6b)))return[{'file':_0x4e775a(0x206),'message':_0x4e775a(0x1f5)}];const _0x20d489=await Promise[_0x4e775a(0x20b)](_0x5066fb[_0x4e775a(0x20a)](async([_0x3b0ccc,_0xa70f5b])=>{try{return await format(_0xa70f5b,{'parser':getParser(_0x3b0ccc)}),undefined;}catch(_0x10ce61){return{'file':_0x3b0ccc,'message':_0x10ce61 instanceof Error?_0x10ce61['message']:String(_0x10ce61)};}}));return _0x20d489[_0x4e775a(0x208)](_0x5ee67a=>_0x5ee67a!==undefined);}function getParser(_0x211595){const _0x25d284=a188_0x286fcc,_0x231cb1=_0x211595[_0x25d284(0x207)]()[_0x25d284(0x202)]();return Object[_0x25d284(0x1fb)](SOURCE_PARSERS)['find'](([_0x2e407a])=>_0x231cb1[_0x25d284(0x1f4)](_0x2e407a))?.[0x1];}function a188_0x4a92(_0xc42041,_0x57d8c3){_0xc42041=_0xc42041-0x1f4;const _0x3d5feb=a188_0x3d5f();let _0x4a9230=_0x3d5feb[_0xc42041];return _0x4a9230;}function isReactSourceFile(_0x45b083){const _0x5bbf5d=a188_0x286fcc,_0x331516=_0x45b083[_0x5bbf5d(0x207)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x5bbf5d(0x1fc)](_0xf5ec2b=>_0x331516[_0x5bbf5d(0x1f4)](_0xf5ec2b));}
@@ -1 +1 @@
1
- const a189_0x190f42=a189_0x14c9;(function(_0x58ba32,_0xc69f39){const _0x5462d9=a189_0x14c9,_0x23672d=_0x58ba32();while(!![]){try{const _0x1ee5c9=-parseInt(_0x5462d9(0x1be))/0x1+parseInt(_0x5462d9(0x1bf))/0x2+-parseInt(_0x5462d9(0x1cc))/0x3+parseInt(_0x5462d9(0x1ba))/0x4+-parseInt(_0x5462d9(0x1b2))/0x5+-parseInt(_0x5462d9(0x1c0))/0x6*(-parseInt(_0x5462d9(0x1b3))/0x7)+parseInt(_0x5462d9(0x1b9))/0x8*(-parseInt(_0x5462d9(0x1bc))/0x9);if(_0x1ee5c9===_0xc69f39)break;else _0x23672d['push'](_0x23672d['shift']());}catch(_0xdcc731){_0x23672d['push'](_0x23672d['shift']());}}}(a189_0x3417,0x9c632));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a189_0x3417(){const _0x45de58=['Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','newVersion','isInteger','Custom\x20Page\x20ID','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','appcode','page-dir','cookie','3601509eBhseH','page.custom-update','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','page-content','write','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','string','trim','1757065DjsXZQ','7rvYoKq','Updated\x20Custom\x20Page\x20','POST','appCode','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','585368lPALlU','4958972WWyFBs','pageContent','9HBFOpa','custom-update','528069nJmvNz','2250596EXvbnL','2572062gbjmJb','str','compress','pageId'];a189_0x3417=function(){return _0x45de58;};return a189_0x3417();}import{CliErrors}from'../../../errors.js';function a189_0x14c9(_0xd6fae,_0x514856){_0xd6fae=_0xd6fae-0x1ad;const _0x34171c=a189_0x3417();let _0x14c968=_0x34171c[_0xd6fae];return _0x14c968;}import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':'page','command':a189_0x190f42(0x1bd),'description':a189_0x190f42(0x1b7),'risk':a189_0x190f42(0x1ae),'defaultOutputFormat':a189_0x190f42(0x1c2),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a189_0x190f42(0x1ad),'message':a189_0x190f42(0x1ce),'hint':a189_0x190f42(0x1c4)}],'flags':[{'name':'id','type':'number','required':!![],'description':a189_0x190f42(0x1c7)},{'name':a189_0x190f42(0x1ca),'type':a189_0x190f42(0x1b0),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x55ff6b){readCustomPageId(_0x55ff6b),await readValidatedPageContent(_0x55ff6b);},async 'dryRun'(_0x482a5e){const _0x16f227=a189_0x190f42,_0x1c5be8=await readInput(_0x482a5e);return{'method':_0x16f227(0x1b5),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x1c5be8[_0x16f227(0x1c3)],'codeContent':_0x1c5be8[_0x16f227(0x1bb)]},'description':_0x16f227(0x1b8)+_0x1c5be8[_0x16f227(0x1c3)]+'.'};},async 'execute'(_0x387225){const _0x4f894d=a189_0x190f42,_0x200c71=await readInput(_0x387225),_0x232af3=await updateCustomPageContent({'pageId':_0x200c71[_0x4f894d(0x1c3)],'pageContent':_0x200c71['pageContent']});if(!Number[_0x4f894d(0x1c6)](_0x232af3[_0x4f894d(0x1c5)])||_0x232af3[_0x4f894d(0x1c5)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x29baa1=buildCustomPageEditUrl(_0x200c71[_0x4f894d(0x1b6)],_0x200c71[_0x4f894d(0x1c3)]),_0x57f0cc=await resolveCustomPageDevelopmentUrl(_0x200c71[_0x4f894d(0x1b6)],_0x200c71[_0x4f894d(0x1c3)],_0x387225[_0x4f894d(0x1cb)]);return{'ok':!![],'data':{'operation':_0x4f894d(0x1cd),'selector':{'appCode':_0x200c71[_0x4f894d(0x1b6)],'pageId':_0x200c71[_0x4f894d(0x1c3)]},'before':null,'after':{'pageId':_0x232af3[_0x4f894d(0x1c3)],'version':_0x232af3[_0x4f894d(0x1c5)],'pageContent':_0x200c71[_0x4f894d(0x1bb)]},'dryRun':![],'request':_0x200c71,..._0x57f0cc?{'pageUrl':_0x57f0cc}:{},..._0x29baa1?{'editPageUrl':_0x29baa1}:{},'warnings':_0x57f0cc?[]:[_0x4f894d(0x1af)]},'message':_0x4f894d(0x1b4)+_0x200c71[_0x4f894d(0x1c3)]+'.'};}};async function readInput(_0x51d9be){const _0x20372a=a189_0x190f42,_0x2730cb=readCustomPageId(_0x51d9be),_0x43fbb3=_0x51d9be[_0x20372a(0x1c1)](_0x20372a(0x1c9))[_0x20372a(0x1b1)]()||(await getCustomPageSource(_0x2730cb))[_0x20372a(0x1b6)]?.[_0x20372a(0x1b1)]();if(!_0x43fbb3)throw CliErrors['validation'](_0x20372a(0x1c8)+_0x2730cb+'.');return{'appCode':_0x43fbb3,'pageId':_0x2730cb,'pageContent':await readValidatedPageContent(_0x51d9be)};}async function readValidatedPageContent(_0x53a353){const _0x1d9122=a189_0x190f42,_0x20493a=await readCustomPageDirectory(_0x53a353[_0x1d9122(0x1c1)](_0x1d9122(0x1ca)));return await validateCustomPageContent(_0x20493a),_0x20493a;}
1
+ const a189_0x27c6eb=a189_0x2eee;(function(_0x502bf3,_0x2fe9a3){const _0x2cb390=a189_0x2eee,_0x2fa24a=_0x502bf3();while(!![]){try{const _0x386194=-parseInt(_0x2cb390(0xc9))/0x1+-parseInt(_0x2cb390(0xc1))/0x2+parseInt(_0x2cb390(0xb6))/0x3*(-parseInt(_0x2cb390(0xb1))/0x4)+parseInt(_0x2cb390(0xc3))/0x5+parseInt(_0x2cb390(0xcd))/0x6*(-parseInt(_0x2cb390(0xb2))/0x7)+parseInt(_0x2cb390(0xc7))/0x8+-parseInt(_0x2cb390(0xcc))/0x9*(-parseInt(_0x2cb390(0xaf))/0xa);if(_0x386194===_0x2fe9a3)break;else _0x2fa24a['push'](_0x2fa24a['shift']());}catch(_0x330053){_0x2fa24a['push'](_0x2fa24a['shift']());}}}(a189_0xb358,0xe847c));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';export const pageCustomUpdate={'service':a189_0x27c6eb(0xb9),'command':a189_0x27c6eb(0xae),'description':a189_0x27c6eb(0xce),'risk':a189_0x27c6eb(0xc8),'defaultOutputFormat':a189_0x27c6eb(0xb0),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a189_0x27c6eb(0xbe),'message':'page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','hint':a189_0x27c6eb(0xb7)}],'flags':[{'name':'id','type':a189_0x27c6eb(0xc6),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a189_0x27c6eb(0xad),'type':a189_0x27c6eb(0xc0),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x17e027){readCustomPageId(_0x17e027),await readValidatedPageContent(_0x17e027);},async 'dryRun'(_0x3ba4f0){const _0x1f2cf0=a189_0x27c6eb,_0x3e7981=await readInput(_0x3ba4f0);return{'method':_0x1f2cf0(0xba),'url':_0x1f2cf0(0xbf),'body':{'id':_0x3e7981['pageId'],'codeContent':_0x3e7981[_0x1f2cf0(0xca)]},'description':_0x1f2cf0(0xb4)+_0x3e7981[_0x1f2cf0(0xbb)]+'.'};},async 'execute'(_0x5ed0ad){const _0x4a4e3b=a189_0x27c6eb,_0x4ce361=await readInput(_0x5ed0ad),_0x8a7a8f=await updateCustomPageContent({'pageId':_0x4ce361[_0x4a4e3b(0xbb)],'pageContent':_0x4ce361[_0x4a4e3b(0xca)]});if(!Number[_0x4a4e3b(0xb8)](_0x8a7a8f[_0x4a4e3b(0xbd)])||_0x8a7a8f['newVersion']<=0x0)throw CliErrors[_0x4a4e3b(0xd0)](_0x4a4e3b(0xcf));const _0x25eb5c=buildCustomPageEditUrl(_0x4ce361[_0x4a4e3b(0xc2)],_0x4ce361[_0x4a4e3b(0xbb)]),_0xc7e696=await resolveCustomPageDevelopmentUrl(_0x4ce361[_0x4a4e3b(0xc2)],_0x4ce361[_0x4a4e3b(0xbb)],_0x5ed0ad[_0x4a4e3b(0xc5)]);return{'ok':!![],'data':{'operation':'page.custom-update','selector':{'appCode':_0x4ce361[_0x4a4e3b(0xc2)],'pageId':_0x4ce361[_0x4a4e3b(0xbb)]},'before':null,'after':{'pageId':_0x8a7a8f[_0x4a4e3b(0xbb)],'version':_0x8a7a8f[_0x4a4e3b(0xbd)],'pageContent':_0x4ce361[_0x4a4e3b(0xca)]},'dryRun':![],'request':_0x4ce361,..._0xc7e696?{'pageUrl':_0xc7e696}:{},..._0x25eb5c?{'editPageUrl':_0x25eb5c}:{},'warnings':_0xc7e696?[]:[_0x4a4e3b(0xb3)]},'message':'Updated\x20Custom\x20Page\x20'+_0x4ce361[_0x4a4e3b(0xbb)]+'.'};}};async function readInput(_0x98a41b){const _0xb369a2=a189_0x27c6eb,_0x2f8a8d=readCustomPageId(_0x98a41b),_0x340acb=_0x98a41b['str']('appcode')['trim']()||(await getCustomPageSource(_0x2f8a8d))[_0xb369a2(0xc2)]?.[_0xb369a2(0xcb)]();if(!_0x340acb)throw CliErrors[_0xb369a2(0xb5)](_0xb369a2(0xc4)+_0x2f8a8d+'.');return{'appCode':_0x340acb,'pageId':_0x2f8a8d,'pageContent':await readValidatedPageContent(_0x98a41b)};}function a189_0x2eee(_0x3d3954,_0x5bc6b2){_0x3d3954=_0x3d3954-0xad;const _0xb3581c=a189_0xb358();let _0x2eeea3=_0xb3581c[_0x3d3954];return _0x2eeea3;}async function readValidatedPageContent(_0x1e62bd){const _0x17f596=a189_0x27c6eb,_0x406446=await readCustomPageDirectory(_0x1e62bd[_0x17f596(0xbc)](_0x17f596(0xad)));return await validateCustomPageContent(_0x406446),_0x406446;}function a189_0xb358(){const _0x2463b2=['isInteger','page','POST','pageId','str','newVersion','page-content','/smartapi/webcode/page/update/content','string','1565258FSgQKZ','appCode','1254360kvPedV','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','cookie','number','72544xIRkGz','write','1143422GPIoWf','pageContent','trim','1143GEtACr','66kmhxFe','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','apiError','page-dir','custom-update','369470XbvppK','compress','7407116YmEniO','141883XNjaGn','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','validation','3rfXcMG','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'];a189_0xb358=function(){return _0x2463b2;};return a189_0xb358();}
@@ -1 +1 @@
1
- const a190_0xe7cf10=a190_0x1735;(function(_0x5d1cee,_0x94fa37){const _0x35fbf8=a190_0x1735,_0x3cb71c=_0x5d1cee();while(!![]){try{const _0xd2148d=-parseInt(_0x35fbf8(0x68))/0x1*(-parseInt(_0x35fbf8(0x6b))/0x2)+-parseInt(_0x35fbf8(0x74))/0x3+parseInt(_0x35fbf8(0x6d))/0x4*(-parseInt(_0x35fbf8(0x67))/0x5)+parseInt(_0x35fbf8(0x72))/0x6+parseInt(_0x35fbf8(0x7c))/0x7+parseInt(_0x35fbf8(0x6c))/0x8*(parseInt(_0x35fbf8(0x78))/0x9)+parseInt(_0x35fbf8(0x73))/0xa*(-parseInt(_0x35fbf8(0x7b))/0xb);if(_0xd2148d===_0x94fa37)break;else _0x3cb71c['push'](_0x3cb71c['shift']());}catch(_0x39e6ca){_0x3cb71c['push'](_0x3cb71c['shift']());}}}(a190_0x1b53,0x1a2e0));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a190_0x1b53(){const _0x4cc0f2=['GET','length','30kDYaCL','171103asKNil','read','related-pages-fallback','2cYGNUL','8ISGwsv','16932iVfeWV','page','/smartapi/lovrabet/dataset/','string','appCode','119760FPuITe','830wqKqhu','48171CelPzm','code','compress','data-list-status','1646721OnAFpB','relatedPages','name','45771VsHiBn','840126WJhqnF','manualResolutionRequired','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','alias','nextAction'];a190_0x1b53=function(){return _0x4cc0f2;};return a190_0x1b53();}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a190_0x1735(_0x37c756,_0x2fb6f0){_0x37c756=_0x37c756-0x65;const _0x1b53c7=a190_0x1b53();let _0x173505=_0x1b53c7[_0x37c756];return _0x173505;}export const pageDataListStatus={'service':a190_0xe7cf10(0x6e),'command':a190_0xe7cf10(0x77),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a190_0xe7cf10(0x69),'defaultOutputFormat':a190_0xe7cf10(0x76),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a190_0xe7cf10(0x7f),'type':a190_0xe7cf10(0x70),'description':a190_0xe7cf10(0x7e)}],async 'validate'(_0x2644e5){validateDatasetSelector(_0x2644e5);},async 'dryRun'(_0x3db42c){const _0x1296b3=a190_0xe7cf10,_0x1bbe3=await loadDatasetDetailForPage(_0x3db42c);return{'method':_0x1296b3(0x65),'url':_0x1296b3(0x6f)+_0x1bbe3['code']+'/standard-page-status?appCode='+encodeURIComponent(_0x3db42c[_0x1296b3(0x71)]),'description':serializeDryRunDescription({'dataset':{'id':_0x1bbe3['id'],'code':_0x1bbe3[_0x1296b3(0x75)],'name':_0x1bbe3[_0x1296b3(0x7a)]},'action':'query-data-list-status'})};},async 'execute'(_0x3be9d0){const _0xe10be0=a190_0xe7cf10,_0xb53a1d=await loadDatasetDetailForPage(_0x3be9d0),_0x421462=await loadDataListPageStatusForGenerate(_0x3be9d0,_0xb53a1d[_0xe10be0(0x75)]),_0x388210=getUndeletedRelatedPages(_0xb53a1d),_0x1ce045=assessDataListPageState(_0xb53a1d[_0xe10be0(0x75)],_0x421462,{'fallbackUndeletedPages':_0x388210});return{'ok':!![],'data':{'datasetCode':_0xb53a1d[_0xe10be0(0x75)],'precheckSource':_0x421462?.['source']??_0xe10be0(0x6a),'status':_0x1ce045['status'],'manualResolutionRequired':_0x1ce045[_0xe10be0(0x7d)],'nextAction':_0x1ce045[_0xe10be0(0x80)],'dataListPageStatus':_0x421462,'relatedPages':{'total':_0xb53a1d[_0xe10be0(0x79)][_0xe10be0(0x66)],'undeletedCount':_0x388210[_0xe10be0(0x66)]}}};}};
1
+ function a190_0x4645(_0x4b0e17,_0x4bd6c7){_0x4b0e17=_0x4b0e17-0x148;const _0x4c9283=a190_0x4c92();let _0x464525=_0x4c9283[_0x4b0e17];return _0x464525;}const a190_0x642fe8=a190_0x4645;(function(_0x157514,_0x2e469b){const _0x4759df=a190_0x4645,_0x3f4291=_0x157514();while(!![]){try{const _0x40439d=parseInt(_0x4759df(0x14c))/0x1*(-parseInt(_0x4759df(0x14f))/0x2)+parseInt(_0x4759df(0x15b))/0x3*(parseInt(_0x4759df(0x150))/0x4)+parseInt(_0x4759df(0x151))/0x5*(-parseInt(_0x4759df(0x15e))/0x6)+parseInt(_0x4759df(0x155))/0x7+-parseInt(_0x4759df(0x153))/0x8+-parseInt(_0x4759df(0x15c))/0x9*(parseInt(_0x4759df(0x14e))/0xa)+parseInt(_0x4759df(0x14d))/0xb;if(_0x40439d===_0x2e469b)break;else _0x3f4291['push'](_0x3f4291['shift']());}catch(_0x548be5){_0x3f4291['push'](_0x3f4291['shift']());}}}(a190_0x4c92,0xef9cb));function a190_0x4c92(){const _0x5bdb43=['related-pages-fallback','data-list-status','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','nextAction','3lkFSaW','81NTDSgv','code','357768pDZdZR','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','string','relatedPages','name','manualResolutionRequired','/smartapi/lovrabet/dataset/','read','compress','170857sMVggL','28143951xiMgDI','508550Feaglz','20gcbKju','6374600wfPxqJ','20ePYPxx','alias','11346696DrIyqu','status','4566618TTLIWu','length'];a190_0x4c92=function(){return _0x5bdb43;};return a190_0x4c92();}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':a190_0x642fe8(0x158),'description':a190_0x642fe8(0x159),'risk':a190_0x642fe8(0x14a),'defaultOutputFormat':a190_0x642fe8(0x14b),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a190_0x642fe8(0x152),'type':a190_0x642fe8(0x160),'description':a190_0x642fe8(0x15f)}],async 'validate'(_0x160a5b){validateDatasetSelector(_0x160a5b);},async 'dryRun'(_0x5e92c3){const _0x4a1af6=a190_0x642fe8,_0x288764=await loadDatasetDetailForPage(_0x5e92c3);return{'method':'GET','url':_0x4a1af6(0x149)+_0x288764[_0x4a1af6(0x15d)]+'/standard-page-status?appCode='+encodeURIComponent(_0x5e92c3['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x288764['id'],'code':_0x288764['code'],'name':_0x288764[_0x4a1af6(0x162)]},'action':'query-data-list-status'})};},async 'execute'(_0x44e47a){const _0x323344=a190_0x642fe8,_0x4e0a1a=await loadDatasetDetailForPage(_0x44e47a),_0x24260e=await loadDataListPageStatusForGenerate(_0x44e47a,_0x4e0a1a[_0x323344(0x15d)]),_0x54357c=getUndeletedRelatedPages(_0x4e0a1a),_0x5d4042=assessDataListPageState(_0x4e0a1a[_0x323344(0x15d)],_0x24260e,{'fallbackUndeletedPages':_0x54357c});return{'ok':!![],'data':{'datasetCode':_0x4e0a1a[_0x323344(0x15d)],'precheckSource':_0x24260e?.['source']??_0x323344(0x157),'status':_0x5d4042[_0x323344(0x154)],'manualResolutionRequired':_0x5d4042[_0x323344(0x148)],'nextAction':_0x5d4042[_0x323344(0x15a)],'dataListPageStatus':_0x24260e,'relatedPages':{'total':_0x4e0a1a[_0x323344(0x161)][_0x323344(0x156)],'undeletedCount':_0x54357c[_0x323344(0x156)]}}};}};
@@ -1 +1 @@
1
- function a191_0x3801(_0x22e813,_0x7e4d6e){_0x22e813=_0x22e813-0xb3;const _0x5ba626=a191_0x5ba6();let _0x3801ea=_0x5ba626[_0x22e813];return _0x3801ea;}const a191_0x18269d=a191_0x3801;(function(_0x4735ea,_0x46cdad){const _0x272028=a191_0x3801,_0x45d890=_0x4735ea();while(!![]){try{const _0x5d4d49=-parseInt(_0x272028(0xbf))/0x1*(-parseInt(_0x272028(0xdb))/0x2)+-parseInt(_0x272028(0xcf))/0x3*(parseInt(_0x272028(0xc2))/0x4)+parseInt(_0x272028(0xb7))/0x5*(-parseInt(_0x272028(0xd2))/0x6)+-parseInt(_0x272028(0xdc))/0x7+parseInt(_0x272028(0xc8))/0x8*(parseInt(_0x272028(0xd7))/0x9)+-parseInt(_0x272028(0xda))/0xa+parseInt(_0x272028(0xd3))/0xb*(parseInt(_0x272028(0xe1))/0xc);if(_0x5d4d49===_0x46cdad)break;else _0x45d890['push'](_0x45d890['shift']());}catch(_0x18859d){_0x45d890['push'](_0x45d890['shift']());}}}(a191_0x5ba6,0xb2688));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a191_0x5ba6(){const _0x2ee768=['2162265wUhBqK','related-pages-fallback','allowGenerate','reused','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','39180EFLsGe','operationId','compress','source','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','string','185SvltAH','currentStep','dataListPageStatus','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','CRUD_PAGE_SET','nextAction','status','boolean','209417pVUQKk','Submitted\x20a\x20generate\x20task','Reusing\x20an\x20existing\x20generate\x20task','44mZGfGg','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','name','taskId','page','generate-start','7048LllJRA','clientOperationId','write','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','page-pattern','apply','code','25059hVnYdS','alias','appCode','148650HkcGWC','4862VkbCzr','page-type','dataset','bool','11889zGYfwQ','precheck','manualResolutionRequired','9775520kPFEBj','4SpiZkb'];a191_0x5ba6=function(){return _0x2ee768;};return a191_0x5ba6();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a191_0x18269d(0xc6),'command':a191_0x18269d(0xc7),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a191_0x18269d(0xca),'defaultOutputFormat':a191_0x18269d(0xb3),'rejectedFlags':[{'name':a191_0x18269d(0xd4),'message':a191_0x18269d(0xb5),'hint':a191_0x18269d(0xc3)},{'name':a191_0x18269d(0xcc),'message':a191_0x18269d(0xe0),'hint':'DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.'}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a191_0x18269d(0xd0),'type':a191_0x18269d(0xb6),'description':a191_0x18269d(0xba)},{'name':a191_0x18269d(0xcd),'type':a191_0x18269d(0xbe),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x364167){validateDatasetSelector(_0x364167);},async 'dryRun'(_0x2085c0){const _0x2adfa5=a191_0x18269d,_0x1ba0bf=await prepare(_0x2085c0);return{'method':'POST','url':'/smartapi/lovrabet/dataset/'+_0x1ba0bf['dataset'][_0x2adfa5(0xce)]+'/generate-standard-pages/start','body':{'appCode':_0x2085c0[_0x2adfa5(0xd1)],'clientOperationId':_0x1ba0bf[_0x2adfa5(0xc9)]},'description':serializeDryRunDescription({'dataset':{'id':_0x1ba0bf[_0x2adfa5(0xd5)]['id'],'code':_0x1ba0bf[_0x2adfa5(0xd5)]['code'],'name':_0x1ba0bf['dataset'][_0x2adfa5(0xc4)],'fieldCount':_0x1ba0bf[_0x2adfa5(0xd5)]['fieldCount']},'precheckSource':_0x1ba0bf[_0x2adfa5(0xb9)]?.[_0x2adfa5(0xb4)]??'related-pages-fallback','action':'generate-start','clientOperationId':_0x1ba0bf['clientOperationId'],'plannedStatus':_0x1ba0bf[_0x2adfa5(0xd8)][_0x2adfa5(0xbd)],'reason':_0x1ba0bf[_0x2adfa5(0xd8)]['message']})};},async 'execute'(_0x160b6d){const _0x11193b=a191_0x18269d;if(!_0x160b6d[_0x11193b(0xd6)]('apply')){const _0x23447d=await pageGenerateStart['dryRun'](_0x160b6d);return{'ok':!![],'message':_0x11193b(0xcb),'data':_0x23447d};}const _0x56235a=await prepare(_0x160b6d);if(!_0x56235a[_0x11193b(0xd8)][_0x11193b(0xde)])return{'ok':![],'message':_0x56235a[_0x11193b(0xd8)]['message'],'data':{'datasetCode':_0x56235a[_0x11193b(0xd5)][_0x11193b(0xce)],'pageType':'DATA_LIST','pagePattern':_0x11193b(0xbb),'clientOperationId':_0x56235a[_0x11193b(0xc9)],'precheckSource':_0x56235a[_0x11193b(0xb9)]?.[_0x11193b(0xb4)]??_0x11193b(0xdd),'status':_0x56235a[_0x11193b(0xd8)][_0x11193b(0xbd)],'manualResolutionRequired':_0x56235a['precheck'][_0x11193b(0xd9)],'nextAction':_0x56235a[_0x11193b(0xd8)][_0x11193b(0xbc)],'query':{'command':buildDataListPageStatusQueryCommand(_0x56235a['dataset'][_0x11193b(0xce)],_0x160b6d[_0x11193b(0xd1)])},'dataListPageStatus':_0x56235a['dataListPageStatus']}};const _0x42a59a=await startGenerateDataListPages(_0x160b6d[_0x11193b(0xd1)],_0x56235a[_0x11193b(0xd5)][_0x11193b(0xce)],{'clientOperationId':_0x56235a[_0x11193b(0xc9)]}),_0x54755b=_0x42a59a[_0x11193b(0xbd)]==='SUCCESS'||_0x42a59a['status']==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x160b6d,_0x56235a[_0x11193b(0xd5)]['code']):null,_0x1e949f=assessGenerateOperationState(_0x56235a[_0x11193b(0xd5)]['code'],_0x42a59a[_0x11193b(0xbd)],_0x54755b);return{'ok':!![],'message':_0x42a59a[_0x11193b(0xdf)]?_0x11193b(0xc1):_0x11193b(0xc0),'data':{'datasetCode':_0x56235a[_0x11193b(0xd5)][_0x11193b(0xce)],'appCode':_0x160b6d[_0x11193b(0xd1)],'pageType':'DATA_LIST','pagePattern':_0x11193b(0xbb),'taskId':_0x42a59a[_0x11193b(0xc5)]??null,'operationId':_0x42a59a[_0x11193b(0xe2)]??null,'clientOperationId':_0x56235a[_0x11193b(0xc9)],'jobStatus':_0x42a59a[_0x11193b(0xbd)]??null,'progressRate':typeof _0x42a59a['progressRate']==='number'?_0x42a59a['progressRate']:null,'currentStep':_0x42a59a[_0x11193b(0xb8)]??null,'reused':_0x42a59a['reused']===!![],'status':_0x1e949f['status'],'manualResolutionRequired':_0x1e949f[_0x11193b(0xd9)],'nextAction':_0x1e949f[_0x11193b(0xbc)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x56235a[_0x11193b(0xd5)]['code'],{'appCode':_0x160b6d[_0x11193b(0xd1)],'taskId':_0x42a59a['taskId'],'operationId':_0x42a59a[_0x11193b(0xe2)],'clientOperationId':_0x56235a[_0x11193b(0xc9)]})},'dataListPageStatus':_0x54755b}};}};async function prepare(_0x511d22){const _0x14d812=a191_0x18269d,_0x502ed5=await loadDatasetDetailForPage(_0x511d22),_0x5f458f=await loadDataListPageStatusForGenerate(_0x511d22,_0x502ed5[_0x14d812(0xce)]),_0x3149e4=getUndeletedRelatedPages(_0x502ed5);return{'dataset':_0x502ed5,'dataListPageStatus':_0x5f458f,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x502ed5['code'],_0x5f458f,{'fallbackUndeletedPages':_0x3149e4})};}
1
+ const a191_0x4965a8=a191_0x5ec2;(function(_0x2a047b,_0x1adb9c){const _0xe8f6a5=a191_0x5ec2,_0x159565=_0x2a047b();while(!![]){try{const _0x599f6b=-parseInt(_0xe8f6a5(0x20e))/0x1+parseInt(_0xe8f6a5(0x206))/0x2+parseInt(_0xe8f6a5(0x20f))/0x3*(parseInt(_0xe8f6a5(0x1f5))/0x4)+-parseInt(_0xe8f6a5(0x1f4))/0x5+-parseInt(_0xe8f6a5(0x21b))/0x6+-parseInt(_0xe8f6a5(0x202))/0x7+parseInt(_0xe8f6a5(0x21a))/0x8*(parseInt(_0xe8f6a5(0x1f2))/0x9);if(_0x599f6b===_0x1adb9c)break;else _0x159565['push'](_0x159565['shift']());}catch(_0x3cc3e5){_0x159565['push'](_0x159565['shift']());}}}(a191_0x2c00,0xab4b0));function a191_0x2c00(){const _0x3698da=['DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','Submitted\x20a\x20generate\x20task','boolean','DATA_LIST','5386115ErlUbW','page-pattern','alias','dataListPageStatus','1804324nZXnmV','operationId','code','currentStep','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','apply','write','progressRate','687441YHknWN','21EAplmM','status','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','nextAction','clientOperationId','manualResolutionRequired','source','PARTIAL_SUCCESS','/generate-standard-pages/start','allowGenerate','dataset','8044424GEbaRZ','3960624NVWqIN','SUCCESS','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','POST','/smartapi/lovrabet/dataset/','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','CRUD_PAGE_SET','precheck','appCode','taskId','18wynRGA','generate-start','3077555MAxXqh','297628slBDpq','number','bool','message','page','reused','dryRun','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','fieldCount'];a191_0x2c00=function(){return _0x3698da;};return a191_0x2c00();}function a191_0x5ec2(_0x502c4c,_0x15b0dd){_0x502c4c=_0x502c4c-0x1ee;const _0x2c00e8=a191_0x2c00();let _0x5ec206=_0x2c00e8[_0x502c4c];return _0x5ec206;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a191_0x4965a8(0x1f9),'command':a191_0x4965a8(0x1f3),'description':a191_0x4965a8(0x211),'risk':a191_0x4965a8(0x20c),'defaultOutputFormat':'compress','rejectedFlags':[{'name':'page-type','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':a191_0x4965a8(0x220)},{'name':a191_0x4965a8(0x203),'message':a191_0x4965a8(0x20a),'hint':a191_0x4965a8(0x1fe)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a191_0x4965a8(0x204),'type':'string','description':a191_0x4965a8(0x1fc)},{'name':a191_0x4965a8(0x20b),'type':a191_0x4965a8(0x200),'description':a191_0x4965a8(0x21d)}],async 'validate'(_0x2e9753){validateDatasetSelector(_0x2e9753);},async 'dryRun'(_0x3014de){const _0x4d6c2c=a191_0x4965a8,_0x446698=await prepare(_0x3014de);return{'method':_0x4d6c2c(0x21e),'url':_0x4d6c2c(0x21f)+_0x446698[_0x4d6c2c(0x219)][_0x4d6c2c(0x208)]+_0x4d6c2c(0x217),'body':{'appCode':_0x3014de[_0x4d6c2c(0x1f0)],'clientOperationId':_0x446698[_0x4d6c2c(0x213)]},'description':serializeDryRunDescription({'dataset':{'id':_0x446698[_0x4d6c2c(0x219)]['id'],'code':_0x446698['dataset'][_0x4d6c2c(0x208)],'name':_0x446698[_0x4d6c2c(0x219)]['name'],'fieldCount':_0x446698[_0x4d6c2c(0x219)][_0x4d6c2c(0x1fd)]},'precheckSource':_0x446698[_0x4d6c2c(0x205)]?.[_0x4d6c2c(0x215)]??'related-pages-fallback','action':'generate-start','clientOperationId':_0x446698[_0x4d6c2c(0x213)],'plannedStatus':_0x446698['precheck'][_0x4d6c2c(0x210)],'reason':_0x446698['precheck'][_0x4d6c2c(0x1f8)]})};},async 'execute'(_0x5d49a9){const _0x6fa1ea=a191_0x4965a8;if(!_0x5d49a9[_0x6fa1ea(0x1f7)](_0x6fa1ea(0x20b))){const _0x1473b2=await pageGenerateStart[_0x6fa1ea(0x1fb)](_0x5d49a9);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x1473b2};}const _0x870442=await prepare(_0x5d49a9);if(!_0x870442[_0x6fa1ea(0x1ef)][_0x6fa1ea(0x218)])return{'ok':![],'message':_0x870442[_0x6fa1ea(0x1ef)][_0x6fa1ea(0x1f8)],'data':{'datasetCode':_0x870442[_0x6fa1ea(0x219)][_0x6fa1ea(0x208)],'pageType':_0x6fa1ea(0x201),'pagePattern':_0x6fa1ea(0x1ee),'clientOperationId':_0x870442[_0x6fa1ea(0x213)],'precheckSource':_0x870442[_0x6fa1ea(0x205)]?.['source']??'related-pages-fallback','status':_0x870442['precheck'][_0x6fa1ea(0x210)],'manualResolutionRequired':_0x870442[_0x6fa1ea(0x1ef)][_0x6fa1ea(0x214)],'nextAction':_0x870442[_0x6fa1ea(0x1ef)][_0x6fa1ea(0x212)],'query':{'command':buildDataListPageStatusQueryCommand(_0x870442[_0x6fa1ea(0x219)][_0x6fa1ea(0x208)],_0x5d49a9[_0x6fa1ea(0x1f0)])},'dataListPageStatus':_0x870442['dataListPageStatus']}};const _0x31a368=await startGenerateDataListPages(_0x5d49a9[_0x6fa1ea(0x1f0)],_0x870442[_0x6fa1ea(0x219)][_0x6fa1ea(0x208)],{'clientOperationId':_0x870442[_0x6fa1ea(0x213)]}),_0x3361c1=_0x31a368[_0x6fa1ea(0x210)]===_0x6fa1ea(0x21c)||_0x31a368[_0x6fa1ea(0x210)]===_0x6fa1ea(0x216)?await loadDataListPageStatusForGenerate(_0x5d49a9,_0x870442[_0x6fa1ea(0x219)][_0x6fa1ea(0x208)]):null,_0x54f864=assessGenerateOperationState(_0x870442['dataset'][_0x6fa1ea(0x208)],_0x31a368['status'],_0x3361c1);return{'ok':!![],'message':_0x31a368[_0x6fa1ea(0x1fa)]?'Reusing\x20an\x20existing\x20generate\x20task':_0x6fa1ea(0x1ff),'data':{'datasetCode':_0x870442[_0x6fa1ea(0x219)]['code'],'appCode':_0x5d49a9[_0x6fa1ea(0x1f0)],'pageType':_0x6fa1ea(0x201),'pagePattern':_0x6fa1ea(0x1ee),'taskId':_0x31a368[_0x6fa1ea(0x1f1)]??null,'operationId':_0x31a368[_0x6fa1ea(0x207)]??null,'clientOperationId':_0x870442[_0x6fa1ea(0x213)],'jobStatus':_0x31a368['status']??null,'progressRate':typeof _0x31a368[_0x6fa1ea(0x20d)]===_0x6fa1ea(0x1f6)?_0x31a368[_0x6fa1ea(0x20d)]:null,'currentStep':_0x31a368[_0x6fa1ea(0x209)]??null,'reused':_0x31a368['reused']===!![],'status':_0x54f864[_0x6fa1ea(0x210)],'manualResolutionRequired':_0x54f864[_0x6fa1ea(0x214)],'nextAction':_0x54f864[_0x6fa1ea(0x212)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x870442[_0x6fa1ea(0x219)][_0x6fa1ea(0x208)],{'appCode':_0x5d49a9[_0x6fa1ea(0x1f0)],'taskId':_0x31a368['taskId'],'operationId':_0x31a368[_0x6fa1ea(0x207)],'clientOperationId':_0x870442[_0x6fa1ea(0x213)]})},'dataListPageStatus':_0x3361c1}};}};async function prepare(_0x355826){const _0x3ee0ca=a191_0x4965a8,_0xb4b566=await loadDatasetDetailForPage(_0x355826),_0x14e490=await loadDataListPageStatusForGenerate(_0x355826,_0xb4b566['code']),_0x137390=getUndeletedRelatedPages(_0xb4b566);return{'dataset':_0xb4b566,'dataListPageStatus':_0x14e490,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0xb4b566[_0x3ee0ca(0x208)],_0x14e490,{'fallbackUndeletedPages':_0x137390})};}