@lovrabet/rabetbase-cli 2.5.1 → 2.5.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.d.ts +3 -11
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.d.ts +2 -0
  102. package/lib/commands/deployment/sync-all.js +1 -0
  103. package/lib/commands/deployment/sync-jobs.d.ts +2 -0
  104. package/lib/commands/deployment/sync-jobs.js +1 -0
  105. package/lib/commands/deployment/sync-status.d.ts +2 -0
  106. package/lib/commands/deployment/sync-status.js +1 -0
  107. package/lib/commands/deployment/sync.js +1 -1
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/instant-api-policy/current.d.ts +2 -0
  111. package/lib/commands/instant-api-policy/current.js +1 -0
  112. package/lib/commands/instant-api-policy/index.d.ts +2 -0
  113. package/lib/commands/instant-api-policy/index.js +1 -0
  114. package/lib/commands/instant-api-policy/init.d.ts +2 -0
  115. package/lib/commands/instant-api-policy/init.js +1 -0
  116. package/lib/commands/instant-api-policy/publish.d.ts +2 -0
  117. package/lib/commands/instant-api-policy/publish.js +1 -0
  118. package/lib/commands/instant-api-policy/pull.d.ts +2 -0
  119. package/lib/commands/instant-api-policy/pull.js +1 -0
  120. package/lib/commands/instant-api-policy/revision.d.ts +2 -0
  121. package/lib/commands/instant-api-policy/revision.js +1 -0
  122. package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
  123. package/lib/commands/instant-api-policy/revisions.js +1 -0
  124. package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
  125. package/lib/commands/instant-api-policy/rollback.js +1 -0
  126. package/lib/commands/instant-api-policy/shared.d.ts +82 -0
  127. package/lib/commands/instant-api-policy/shared.js +1 -0
  128. package/lib/commands/instant-api-policy/validate.d.ts +2 -0
  129. package/lib/commands/instant-api-policy/validate.js +1 -0
  130. package/lib/commands/issue/index.js +1 -1
  131. package/lib/commands/issue/nudge.js +1 -1
  132. package/lib/commands/issue/report.js +1 -1
  133. package/lib/commands/issue/shared.js +1 -1
  134. package/lib/commands/kb/create.js +1 -1
  135. package/lib/commands/kb/delete.js +1 -1
  136. package/lib/commands/kb/detail.js +1 -1
  137. package/lib/commands/kb/index.js +1 -1
  138. package/lib/commands/kb/list.js +1 -1
  139. package/lib/commands/kb/search.js +1 -1
  140. package/lib/commands/kb/shared.js +1 -1
  141. package/lib/commands/kb/update.js +1 -1
  142. package/lib/commands/logs/index.js +1 -1
  143. package/lib/commands/menu/asset-update.js +1 -1
  144. package/lib/commands/menu/delete.js +1 -1
  145. package/lib/commands/menu/external-link-create.js +1 -1
  146. package/lib/commands/menu/external-link-update.js +1 -1
  147. package/lib/commands/menu/group-create.js +1 -1
  148. package/lib/commands/menu/group-update.js +1 -1
  149. package/lib/commands/menu/index.js +1 -1
  150. package/lib/commands/menu/list.js +1 -1
  151. package/lib/commands/menu/move.js +1 -1
  152. package/lib/commands/menu/regroup-start.js +1 -1
  153. package/lib/commands/menu/rename.js +1 -1
  154. package/lib/commands/menu/shared/compare-table.js +1 -1
  155. package/lib/commands/menu/shared/delete-plan.js +1 -1
  156. package/lib/commands/menu/shared/facts.js +1 -1
  157. package/lib/commands/menu/shared/index.js +1 -1
  158. package/lib/commands/menu/shared/inquirer.js +1 -1
  159. package/lib/commands/menu/shared/local-pages.js +1 -1
  160. package/lib/commands/menu/shared/logic.js +1 -1
  161. package/lib/commands/menu/shared/mutations.js +1 -1
  162. package/lib/commands/menu/shared/service.js +1 -1
  163. package/lib/commands/menu/shared/sync-core.js +1 -1
  164. package/lib/commands/menu/shared/update-core.js +1 -1
  165. package/lib/commands/menu/shared/valid-url.js +1 -1
  166. package/lib/commands/menu/sync.js +1 -1
  167. package/lib/commands/menu/visibility-update.js +1 -1
  168. package/lib/commands/notification/config-create.js +1 -1
  169. package/lib/commands/notification/config-delete.js +1 -1
  170. package/lib/commands/notification/config-list.js +1 -1
  171. package/lib/commands/notification/config-update.js +1 -1
  172. package/lib/commands/notification/index.js +1 -1
  173. package/lib/commands/notification/shared.js +1 -1
  174. package/lib/commands/ocr/index.js +1 -1
  175. package/lib/commands/page/create.js +1 -1
  176. package/lib/commands/page/custom/detail.js +1 -1
  177. package/lib/commands/page/custom/list.js +1 -1
  178. package/lib/commands/page/custom/publish.js +1 -1
  179. package/lib/commands/page/custom/shared.js +1 -1
  180. package/lib/commands/page/custom/syntax.js +1 -1
  181. package/lib/commands/page/custom/template.js +1 -1
  182. package/lib/commands/page/custom/update.js +1 -1
  183. package/lib/commands/page/data-list-status.js +1 -1
  184. package/lib/commands/page/generate-start.js +1 -1
  185. package/lib/commands/page/generate-status.js +1 -1
  186. package/lib/commands/page/index.js +1 -1
  187. package/lib/commands/page/pull.js +1 -1
  188. package/lib/commands/page/push.js +1 -1
  189. package/lib/commands/page/relation-audit.js +1 -1
  190. package/lib/commands/page/restore.js +1 -1
  191. package/lib/commands/page/shared.js +1 -1
  192. package/lib/commands/page/sync.js +1 -1
  193. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  194. package/lib/commands/project/create/format-elapsed.js +1 -1
  195. package/lib/commands/project/create/main.js +1 -1
  196. package/lib/commands/project/create/materialize-project-template.js +1 -1
  197. package/lib/commands/project/create/project-name.js +1 -1
  198. package/lib/commands/project/create/project-template-archive.js +1 -1
  199. package/lib/commands/project/create/project-template-path.js +1 -1
  200. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  201. package/lib/commands/project/create/use-format-code.js +1 -1
  202. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  203. package/lib/commands/project/domain-routing-sync.js +1 -1
  204. package/lib/commands/project/index.js +1 -1
  205. package/lib/commands/project/upgrade.js +1 -1
  206. package/lib/commands/registry.js +1 -1
  207. package/lib/commands/role/delete.js +1 -1
  208. package/lib/commands/role/detail.js +1 -1
  209. package/lib/commands/role/index.js +1 -1
  210. package/lib/commands/role/list.js +1 -1
  211. package/lib/commands/role/shared.js +1 -1
  212. package/lib/commands/role/update.js +1 -1
  213. package/lib/commands/role/user-add.js +1 -1
  214. package/lib/commands/role/user-remove.js +1 -1
  215. package/lib/commands/role/user-resolve.js +1 -1
  216. package/lib/commands/rule/get.js +1 -1
  217. package/lib/commands/rule/index.js +1 -1
  218. package/lib/commands/rule/list.js +1 -1
  219. package/lib/commands/rule/set.js +1 -1
  220. package/lib/commands/rule/shared.js +1 -1
  221. package/lib/commands/run/index.js +1 -1
  222. package/lib/commands/schema.js +1 -1
  223. package/lib/commands/sql/create.js +1 -1
  224. package/lib/commands/sql/delete.js +1 -1
  225. package/lib/commands/sql/detail.js +1 -1
  226. package/lib/commands/sql/exec.js +1 -1
  227. package/lib/commands/sql/index.js +1 -1
  228. package/lib/commands/sql/list.js +1 -1
  229. package/lib/commands/sql/pull.js +1 -1
  230. package/lib/commands/sql/push.js +1 -1
  231. package/lib/commands/sql/shared.js +1 -1
  232. package/lib/commands/sql/status.js +1 -1
  233. package/lib/commands/sql/validate.js +1 -1
  234. package/lib/commands/task/index.js +1 -1
  235. package/lib/commands/task/status.js +1 -1
  236. package/lib/commands/tenant/index.js +1 -1
  237. package/lib/commands/tenant/members-list.js +1 -1
  238. package/lib/commands/tenant/shared.js +1 -1
  239. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  240. package/lib/commands/user-account/index.js +1 -1
  241. package/lib/commands/workspace/add.js +1 -1
  242. package/lib/commands/workspace/index.js +1 -1
  243. package/lib/commands/workspace/remove.js +1 -1
  244. package/lib/config/domain-config.js +1 -1
  245. package/lib/config/project-domain-routing.js +1 -1
  246. package/lib/config/schema.js +1 -1
  247. package/lib/constant/cdn.js +1 -1
  248. package/lib/constant/cli.js +1 -1
  249. package/lib/constant/defaults.js +1 -1
  250. package/lib/constant/domain.js +1 -1
  251. package/lib/constant/env.js +1 -1
  252. package/lib/constant/output.js +1 -1
  253. package/lib/constant/paths.js +1 -1
  254. package/lib/constant/region.js +1 -1
  255. package/lib/constant/risk.js +1 -1
  256. package/lib/constant/routing-profile.js +1 -1
  257. package/lib/context/app-resolver.d.ts +0 -2
  258. package/lib/context/app-resolver.js +1 -1
  259. package/lib/context/auth-resolver.js +1 -1
  260. package/lib/context/config-loader.js +1 -1
  261. package/lib/context.js +1 -1
  262. package/lib/core/alias-resolver.js +1 -1
  263. package/lib/core/api-client.d.ts +113 -2
  264. package/lib/core/api-client.js +1 -1
  265. package/lib/core/bff/config.js +1 -1
  266. package/lib/core/bff/file-system.js +1 -1
  267. package/lib/core/bff/hash.js +1 -1
  268. package/lib/core/bff/lock.js +1 -1
  269. package/lib/core/bff/utils.js +1 -1
  270. package/lib/core/db-resolver.js +1 -1
  271. package/lib/core/instant-api-policy/config.d.ts +23 -0
  272. package/lib/core/instant-api-policy/config.js +1 -0
  273. package/lib/core/kb-search-client.js +1 -1
  274. package/lib/core/page/file-system.js +1 -1
  275. package/lib/core/page/hash.js +1 -1
  276. package/lib/core/page/lock.js +1 -1
  277. package/lib/core/sql-index-auditor.js +1 -1
  278. package/lib/core/sql-sync/config.js +1 -1
  279. package/lib/core/sql-sync/file-system.js +1 -1
  280. package/lib/core/sql-sync/hash.js +1 -1
  281. package/lib/core/sql-sync/lock.js +1 -1
  282. package/lib/core/sql-sync/utils.js +1 -1
  283. package/lib/core/sql-validator.js +1 -1
  284. package/lib/errors.js +1 -1
  285. package/lib/framework/build-all-flags.js +1 -1
  286. package/lib/framework/error-output.js +1 -1
  287. package/lib/framework/explicit-yes.js +1 -1
  288. package/lib/framework/flags.js +1 -1
  289. package/lib/framework/help.js +1 -1
  290. package/lib/framework/index.js +1 -1
  291. package/lib/framework/output.js +1 -1
  292. package/lib/framework/response.js +1 -1
  293. package/lib/framework/runner-alias.js +1 -1
  294. package/lib/framework/runner.js +1 -1
  295. package/lib/framework/schema-export.js +1 -1
  296. package/lib/framework/supported-flags.d.ts +2 -0
  297. package/lib/framework/supported-flags.js +1 -0
  298. package/lib/framework/types.d.ts +2 -4
  299. package/lib/framework/types.js +1 -1
  300. package/lib/generated/build-info.d.ts +4 -4
  301. package/lib/generated/build-info.js +1 -1
  302. package/lib/generated/official-routing.js +1 -1
  303. package/lib/generated/routing-contract.js +1 -1
  304. package/lib/help.js +1 -1
  305. package/lib/postinstall.js +1 -1
  306. package/lib/runtime/confirmation.js +1 -1
  307. package/lib/runtime/event.js +1 -1
  308. package/lib/runtime/index.js +1 -1
  309. package/lib/runtime/queue.js +1 -1
  310. package/lib/runtime/resolve.js +1 -1
  311. package/lib/skills/builtin-skill.js +1 -1
  312. package/lib/skills/main.js +1 -1
  313. package/lib/skills/npx-skills-add.js +1 -1
  314. package/lib/skills/skill-presence.js +1 -1
  315. package/lib/telemetry/cli-command-trace.js +1 -1
  316. package/lib/telemetry/cli-help-trace.js +1 -1
  317. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  318. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  319. package/lib/telemetry/send-cli-trace-log.js +1 -1
  320. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  321. package/lib/utils/ai_config.js +1 -1
  322. package/lib/utils/apply-jq-filter.js +1 -1
  323. package/lib/utils/cdn-config.js +1 -1
  324. package/lib/utils/check-sdk-version.js +1 -1
  325. package/lib/utils/cli-version-check.js +1 -1
  326. package/lib/utils/cli-version-policy.js +1 -1
  327. package/lib/utils/config.js +1 -1
  328. package/lib/utils/entity-with-id.js +1 -1
  329. package/lib/utils/file-utils.js +1 -1
  330. package/lib/utils/guides-cdn.js +1 -1
  331. package/lib/utils/http-client.js +1 -1
  332. package/lib/utils/is-non-interactive.js +1 -1
  333. package/lib/utils/logger.js +1 -1
  334. package/lib/utils/params.js +1 -1
  335. package/lib/utils/platform.js +1 -1
  336. package/lib/utils/sleep.js +1 -1
  337. package/lib/utils/template-replacer.js +1 -1
  338. package/lib/utils/update-notice.js +1 -1
  339. package/lib/utils/version.js +1 -1
  340. package/lib/utils/with-active-cookie.js +1 -1
  341. package/lib/utils/write-cli-side-channel.js +1 -1
  342. package/package.json +1 -1
  343. package/skills/rabetbase/SKILL.md +12 -6
  344. package/skills/rabetbase/references/rabetbase-deployment-sync.md +51 -43
  345. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
  346. package/skills/rabetbase.manifest.json +4 -3
  347. package/lib/config/deployment-sync.d.ts +0 -10
  348. package/lib/config/deployment-sync.js +0 -1
@@ -1 +1 @@
1
- const a146_0x128dcc=a146_0x4d91;(function(_0x57b184,_0x538f37){const _0x56e36d=a146_0x4d91,_0x250f91=_0x57b184();while(!![]){try{const _0x4803f1=parseInt(_0x56e36d(0x152))/0x1*(-parseInt(_0x56e36d(0x12e))/0x2)+parseInt(_0x56e36d(0x165))/0x3*(-parseInt(_0x56e36d(0x128))/0x4)+parseInt(_0x56e36d(0x169))/0x5*(parseInt(_0x56e36d(0x125))/0x6)+-parseInt(_0x56e36d(0x197))/0x7+-parseInt(_0x56e36d(0x187))/0x8+-parseInt(_0x56e36d(0x151))/0x9+-parseInt(_0x56e36d(0x15e))/0xa*(-parseInt(_0x56e36d(0x13f))/0xb);if(_0x4803f1===_0x538f37)break;else _0x250f91['push'](_0x250f91['shift']());}catch(_0x21362f){_0x250f91['push'](_0x250f91['shift']());}}}(a146_0x6940,0x3de5e));import{readFile}from'node:fs/promises';function a146_0x6940(){const _0x5bc803=['setEncoding','\x20failed.','validation','a\x20JSON\x20object','rabetbase\x20notification\x20config-list\x20--appcode\x20','EMAIL','mutation','1155vRhYLV','endpointUrl','from-env','Notification\x20JSON\x20field\x20\x22','subjectPrefix','DINGTALK','Missing\x20notification\x20JSON\x20source.','\x22channelType\x22.','bccList','\x22configName\x22.','environment\x20variable\x20','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','notification_config_field_forbidden','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','stdin','WECOM','Invalid\x20notification\x20config\x20response.','1201104PEFyuW','1JphXTF','has','\x20has\x20an\x20invalid\x20appCode.','\x20must\x20be\x20an\x20object.','update','join','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Notification\x20config\x20list\x20item\x20','trim','create','WEBHOOK','72350urwVaN','entries','bool','type','messageTemplate','updateTime','Unknown\x20notification\x20JSON\x20field\x20\x22','127866vrfozP','\x22\x20cannot\x20exceed\x20','file\x20','object','37400JXhSte','some','keys','notification_config_confirmation_required','a\x20JSON\x20object\x20or\x20null','\x20has\x20invalid\x20field\x20\x22','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','path','configCode','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','env','appCode','file','string','Notification\x20JSON\x20source\x20is\x20ambiguous.','notification_config_source_unavailable','every','\x20is\x20missing\x20required\x20field\x20\x22','createTime','channelConfig','includes','emailTargets','length','kind','a\x20non-empty\x20string','channelConfigRaw','num','readTimeout','<redacted>','Allowed\x20values:\x20','2769024pvmfHc','endpointUrlRaw','a\x20string\x20or\x20null','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','_unavailable','Notification\x20config\x20','notification_config_update_empty','utf8','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','FEISHU','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Application-level\x20notification\x20config\x20ID','notification_config_field_invalid','fromName','isSafeInteger','replyTo','1280146RmuLZW','parse','\x20has\x20an\x20unsupported\x20channelType.','notification_config_channel_field_forbidden','\x20is\x20invalid.','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','a\x20supported\x20string','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','stringify','Notification\x20JSON\x20from\x20','Invalid\x20--','name','notification_config_response_invalid','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','channelType','notification_config_json_invalid','notification_config_field_required','hasOwnProperty','312LmThdr','\x20has\x20an\x20invalid\x20id.','Create\x20JSON\x20requires\x20field\x20','16YJpjPX','push','dry-run','number','configName','channelCode','124302cdUAYt','notification_config_field_unknown','str','yes','connectTimeout','\x20characters.','\x22\x20is\x20forbidden.','prototype','description','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.'];a146_0x6940=function(){return _0x5bc803;};return a146_0x6940();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x128dcc(0x13d),a146_0x128dcc(0x190),a146_0x128dcc(0x144),a146_0x128dcc(0x14f),a146_0x128dcc(0x15d)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set(['configName',a146_0x128dcc(0x121),a146_0x128dcc(0x140),a146_0x128dcc(0x17c),'description','connectTimeout','readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x128dcc(0x174),a146_0x128dcc(0x171),a146_0x128dcc(0x12d)]),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x128dcc(0x17e),'recipients','ccList',a146_0x128dcc(0x147),a146_0x128dcc(0x196),a146_0x128dcc(0x143),a146_0x128dcc(0x194),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':'string','required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':a146_0x128dcc(0x14e),'type':'boolean','required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a146_0x128dcc(0x141),'type':a146_0x128dcc(0x176),'required':![],'description':a146_0x128dcc(0x14c)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x128dcc(0x12b),'required':!![],'description':a146_0x128dcc(0x192)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x39ee73,_0x166f25,_0x5d8a8f){return new CliError(_0x39ee73,0x1,_0x166f25,_0x5d8a8f);}export function readNotificationId(_0x30f695){const _0x34651c=a146_0x128dcc,_0x1cbf37=_0x30f695[_0x34651c(0x183)]('id');if(!Number[_0x34651c(0x195)](_0x1cbf37)||_0x1cbf37<=0x0)throw notificationError('notification_config_id_invalid',_0x34651c(0x137));return _0x1cbf37;}export function requireNotificationExplicitYes(_0x57cdc6){const _0x1243bc=a146_0x128dcc;if(_0x57cdc6[_0x1243bc(0x160)](_0x1243bc(0x12a))||_0x57cdc6[_0x1243bc(0x160)](_0x1243bc(0x131)))return;throw notificationError(_0x1243bc(0x16c),_0x1243bc(0x14a),_0x1243bc(0x19e));}export function readNotificationChannelType(_0x110620,_0x4161b1=a146_0x128dcc(0x161),_0x4b7992='EMAIL'){const _0x476e1e=a146_0x128dcc,_0x269a20=_0x110620['str'](_0x4161b1)[_0x476e1e(0x15b)]()||_0x4b7992;if(!NOTIFICATION_CHANNEL_TYPES[_0x476e1e(0x17d)](_0x269a20))throw CliErrors['validation'](_0x476e1e(0x11d)+_0x4161b1+':\x20'+_0x269a20,_0x476e1e(0x186)+NOTIFICATION_CHANNEL_TYPES[_0x476e1e(0x157)](',\x20')+'.');return _0x269a20;}export function assertSingleNotificationSource(_0x59e536){const _0x5d721d=a146_0x128dcc,_0x589fbe=[],_0x5cf20a=_0x59e536[_0x5d721d(0x130)](_0x5d721d(0x175))[_0x5d721d(0x15b)]();if(_0x5cf20a)_0x589fbe[_0x5d721d(0x129)]({'kind':_0x5d721d(0x175),'path':_0x5cf20a});if(_0x59e536[_0x5d721d(0x160)](_0x5d721d(0x14e)))_0x589fbe[_0x5d721d(0x129)]({'kind':_0x5d721d(0x14e)});const _0x49d73e=_0x59e536[_0x5d721d(0x130)](_0x5d721d(0x141))[_0x5d721d(0x15b)]();if(_0x49d73e)_0x589fbe[_0x5d721d(0x129)]({'kind':_0x5d721d(0x173),'name':_0x49d73e});if(_0x589fbe['length']===0x0)throw CliErrors[_0x5d721d(0x13a)](_0x5d721d(0x145),_0x5d721d(0x158));if(_0x589fbe[_0x5d721d(0x17f)]>0x1)throw CliErrors[_0x5d721d(0x13a)](_0x5d721d(0x177),_0x5d721d(0x158));return _0x589fbe[0x0];}export async function readNotificationDocument(_0x30c500,_0xfb5c9c){const _0x487685=a146_0x128dcc,_0x4f6115=assertSingleNotificationSource(_0x30c500),_0x1d27ea=_0x4f6115[_0x487685(0x180)]===_0x487685(0x175)?_0x487685(0x167)+_0x4f6115[_0x487685(0x170)]:_0x4f6115[_0x487685(0x180)]===_0x487685(0x173)?_0x487685(0x149)+_0x4f6115['name']:'stdin';let _0x3bed95;try{if(_0x4f6115[_0x487685(0x180)]===_0x487685(0x175))_0x3bed95=await readFile(_0x4f6115[_0x487685(0x170)],_0x487685(0x18e));else{if(_0x4f6115['kind']===_0x487685(0x173)){if(!(_0x4f6115[_0x487685(0x11e)]in process.env))throw notificationError(_0x487685(0x178),_0x487685(0x16f)+_0x4f6115['name']);_0x3bed95=process.env[_0x4f6115.name]??'';}else _0x3bed95=await readStdin();}}catch(_0x5666fd){if(_0x5666fd instanceof CliError)throw _0x5666fd;throw notificationError(_0x487685(0x178),_0x487685(0x120)+_0x1d27ea+'.');}let _0xc06bed;try{_0xc06bed=JSON[_0x487685(0x198)](_0x3bed95);}catch{throw notificationError(_0x487685(0x122),'Notification\x20JSON\x20from\x20'+_0x1d27ea+_0x487685(0x19b),_0x487685(0x18a));}if(!isJsonObject(_0xc06bed))throw notificationError('notification_config_json_invalid',_0x487685(0x11c)+_0x1d27ea+_0x487685(0x155));return validateNotificationDocument(_0xc06bed,_0xfb5c9c);}export function projectNotificationListConfig(_0xcd19d3,_0x39ddcd){const _0x46517c=a146_0x128dcc;return{'id':typeof _0xcd19d3['id']===_0x46517c(0x12b)?_0xcd19d3['id']:null,'configCode':requireResponseString(_0xcd19d3[_0x46517c(0x171)],'configCode',_0x39ddcd),'configName':requireResponseString(_0xcd19d3[_0x46517c(0x12c)],'configName',_0x39ddcd),'channelType':requireResponseString(_0xcd19d3[_0x46517c(0x121)],_0x46517c(0x121),_0x39ddcd),'description':normalizeNullableString(_0xcd19d3[_0x46517c(0x136)]),'createTime':normalizeNullableString(_0xcd19d3[_0x46517c(0x17b)]),'updateTime':normalizeNullableString(_0xcd19d3[_0x46517c(0x163)])};}export function normalizeExactNotificationConfig(_0x47f032,_0x1903f0,_0x4d9715){const _0x9496af=a146_0x128dcc;if(!Number[_0x9496af(0x195)](_0x47f032['id'])||_0x47f032['id']!==_0x1903f0)throw notificationError('notification_config_response_invalid',_0x9496af(0x18f)+_0x1903f0+'.');if(_0x47f032[_0x9496af(0x174)]!==_0x4d9715)throw notificationError(_0x9496af(0x11f),'Notification\x20config\x20'+_0x1903f0+_0x9496af(0x14d));const _0xe6b896=requireExactString(_0x47f032['configName'],_0x9496af(0x12c),_0x1903f0),_0x392320=requireExactString(_0x47f032[_0x9496af(0x171)],_0x9496af(0x171),_0x1903f0),_0xfc158d=requireExactString(_0x47f032['channelType'],_0x9496af(0x121),_0x1903f0);if(!NOTIFICATION_CHANNEL_TYPES[_0x9496af(0x17d)](_0xfc158d))throw notificationError(_0x9496af(0x11f),_0x9496af(0x18c)+_0x1903f0+_0x9496af(0x199));const _0x434951=responseNullableString(_0x47f032[_0x9496af(0x140)],_0x9496af(0x140),_0x1903f0),_0x5f3490=responseNullableString(_0x47f032[_0x9496af(0x17c)],_0x9496af(0x17c),_0x1903f0),_0x317d51=responseNullableString(_0x47f032[_0x9496af(0x136)],_0x9496af(0x136),_0x1903f0),_0x4ec5d7=responseNullableTimeout(_0x47f032[_0x9496af(0x132)],_0x9496af(0x132),_0x1903f0),_0x425475=responseNullableTimeout(_0x47f032[_0x9496af(0x184)],_0x9496af(0x184),_0x1903f0);return{'id':_0x1903f0,'appCode':_0x4d9715,'configCode':_0x392320,'configName':_0xe6b896,'channelType':_0xfc158d,'endpointUrl':redactSensitive(_0x434951),'channelConfig':redactSensitive(_0x5f3490),'description':_0x317d51,'connectTimeout':_0x4ec5d7,'readTimeout':_0x425475,'endpointUrlRaw':_0x434951,'channelConfigRaw':_0x5f3490};}export async function requireExactNotificationConfig(_0x23dcb2,_0x58511a,_0x312cbb){const _0xac7a51=a146_0x128dcc;let _0x4f1eab;try{_0x4f1eab=await getNotificationChannelConfig(_0x58511a,_0x23dcb2);}catch{throw safeApiFailure(_0x312cbb,'preflight','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x23dcb2+_0xac7a51(0x172));}return normalizeExactNotificationConfig(_0x4f1eab,_0x58511a,_0x23dcb2);}export function projectNotificationConfig(_0x491178){const _0x58d992=a146_0x128dcc;return{'id':_0x491178['id']??null,'appCode':_0x491178[_0x58d992(0x174)],'configCode':_0x491178[_0x58d992(0x171)]??null,'configName':_0x491178[_0x58d992(0x12c)],'channelType':_0x491178[_0x58d992(0x121)],'endpointUrl':redactSensitive(_0x491178[_0x58d992(0x140)]),'channelConfig':redactSensitive(_0x491178[_0x58d992(0x17c)]),'description':_0x491178[_0x58d992(0x136)]??null,'connectTimeout':_0x491178[_0x58d992(0x132)]??null,'readTimeout':_0x491178['readTimeout']??null};}export function notificationSelector(_0x302f2b){const _0x1c8cd1=a146_0x128dcc;return{'appCode':_0x302f2b[_0x1c8cd1(0x174)],'id':_0x302f2b['id'],'configCode':_0x302f2b['configCode'],'configName':_0x302f2b[_0x1c8cd1(0x12c)],'channelType':_0x302f2b['channelType']};}export function createMutationInput(_0xa9a264,_0x1aaeec){const _0x558d2f=a146_0x128dcc;return{'appCode':_0xa9a264,'configName':_0x1aaeec[_0x558d2f(0x12c)],'channelType':_0x1aaeec['channelType'],...hasOwn(_0x1aaeec,_0x558d2f(0x140))?{'endpointUrl':_0x1aaeec[_0x558d2f(0x140)]}:{},...hasOwn(_0x1aaeec,_0x558d2f(0x17c))?{'channelConfig':serializeChannelConfig(_0x1aaeec['channelConfig'])}:{},...hasOwn(_0x1aaeec,_0x558d2f(0x136))?{'description':_0x1aaeec['description']}:{},...hasOwn(_0x1aaeec,'connectTimeout')?{'connectTimeout':_0x1aaeec[_0x558d2f(0x132)]}:{},...hasOwn(_0x1aaeec,_0x558d2f(0x184))?{'readTimeout':_0x1aaeec[_0x558d2f(0x184)]}:{}};}export function mergeUpdateInput(_0x3dd423,_0x2fc1fb){const _0x157085=a146_0x128dcc;return{'id':_0x3dd423['id'],'appCode':_0x3dd423[_0x157085(0x174)],'configName':_0x2fc1fb[_0x157085(0x12c)]??_0x3dd423[_0x157085(0x12c)],'channelType':_0x2fc1fb['channelType']??_0x3dd423['channelType'],'endpointUrl':hasOwn(_0x2fc1fb,_0x157085(0x140))?_0x2fc1fb['endpointUrl']:_0x3dd423['endpointUrlRaw'],'channelConfig':hasOwn(_0x2fc1fb,_0x157085(0x17c))?serializeChannelConfig(_0x2fc1fb['channelConfig']):_0x3dd423[_0x157085(0x182)],'description':hasOwn(_0x2fc1fb,_0x157085(0x136))?_0x2fc1fb['description']:_0x3dd423[_0x157085(0x136)],'connectTimeout':hasOwn(_0x2fc1fb,'connectTimeout')?_0x2fc1fb['connectTimeout']:_0x3dd423[_0x157085(0x132)],'readTimeout':hasOwn(_0x2fc1fb,_0x157085(0x184))?_0x2fc1fb['readTimeout']:_0x3dd423['readTimeout']};}export function plannedUpdateProjection(_0x8bf0f5,_0x433cd4){const _0xb82b6e=a146_0x128dcc;return projectNotificationConfig({'id':_0x8bf0f5['id'],'appCode':_0x8bf0f5[_0xb82b6e(0x174)],'configCode':_0x8bf0f5[_0xb82b6e(0x171)],'configName':_0x433cd4[_0xb82b6e(0x12c)]??_0x8bf0f5['configName'],'channelType':_0x433cd4[_0xb82b6e(0x121)]??_0x8bf0f5[_0xb82b6e(0x121)],'endpointUrl':hasOwn(_0x433cd4,'endpointUrl')?_0x433cd4[_0xb82b6e(0x140)]:_0x8bf0f5[_0xb82b6e(0x188)],'channelConfig':hasOwn(_0x433cd4,_0xb82b6e(0x17c))?_0x433cd4['channelConfig']:_0x8bf0f5['channelConfigRaw'],'description':hasOwn(_0x433cd4,'description')?_0x433cd4[_0xb82b6e(0x136)]:_0x8bf0f5[_0xb82b6e(0x136)],'connectTimeout':hasOwn(_0x433cd4,_0xb82b6e(0x132))?_0x433cd4['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x8bf0f5[_0xb82b6e(0x132)],'readTimeout':hasOwn(_0x433cd4,'readTimeout')?_0x433cd4[_0xb82b6e(0x184)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x8bf0f5[_0xb82b6e(0x184)]});}export function requestedSafeFieldsMatch(_0xa07fc0,_0x5b19d1,_0x1368a2){const _0x131c75=a146_0x128dcc,_0x1ee1b9=[],_0xe7463a=[],_0x5a1695=[];for(const _0x5c68c2 of[_0x131c75(0x12c),_0x131c75(0x121),'description']){if(!hasOwn(_0x1368a2,_0x5c68c2))continue;_0x5a1695[_0x131c75(0x129)](_0x5c68c2),_0x1ee1b9[_0x131c75(0x129)](_0x5b19d1[_0x5c68c2]===_0x1368a2[_0x5c68c2]),_0xe7463a[_0x131c75(0x129)](_0xa07fc0[_0x5c68c2]!==_0x1368a2[_0x5c68c2]&&_0x5b19d1[_0x5c68c2]===_0x1368a2[_0x5c68c2]);}for(const _0x4e41ea of[_0x131c75(0x132),'readTimeout']){if(!hasOwn(_0x1368a2,_0x4e41ea))continue;const _0x4efecc=_0x1368a2[_0x4e41ea]??(_0x4e41ea===_0x131c75(0x132)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x5a1695[_0x131c75(0x129)](_0x4e41ea),_0x1ee1b9[_0x131c75(0x129)](_0x5b19d1[_0x4e41ea]===_0x4efecc),_0xe7463a[_0x131c75(0x129)](_0xa07fc0[_0x4e41ea]!==_0x4efecc&&_0x5b19d1[_0x4e41ea]===_0x4efecc);}return hasOwn(_0x1368a2,_0x131c75(0x140))&&_0x1368a2['endpointUrl']===null&&(_0x5a1695[_0x131c75(0x129)]('endpointUrl:null'),_0x1ee1b9[_0x131c75(0x129)](_0x5b19d1['endpointUrlRaw']===null||_0x5b19d1[_0x131c75(0x188)]===''),_0xe7463a[_0x131c75(0x129)](_0xa07fc0[_0x131c75(0x188)]!==null&&_0xa07fc0[_0x131c75(0x188)]!==''&&(_0x5b19d1[_0x131c75(0x188)]===null||_0x5b19d1['endpointUrlRaw']===''))),{'allMatch':_0x1ee1b9[_0x131c75(0x179)](Boolean),'provesChange':_0xe7463a[_0x131c75(0x16a)](Boolean),'verifiedFields':_0x5a1695};}export function validateNotificationDeleteReadback(_0x49784d,_0x52d495,_0xc170b4){const _0x50f167=a146_0x128dcc;for(const [_0x5263ff,_0x285acd]of _0x49784d[_0x50f167(0x15f)]()){if(!Number['isSafeInteger'](_0x285acd['id'])||_0x285acd['id']<=0x0)throw notificationError(_0x50f167(0x11f),_0x50f167(0x15a)+(_0x5263ff+0x1)+_0x50f167(0x126));if(_0x285acd[_0x50f167(0x174)]!==_0x52d495)throw notificationError(_0x50f167(0x11f),_0x50f167(0x15a)+(_0x5263ff+0x1)+_0x50f167(0x154));if(_0x285acd[_0x50f167(0x121)]!==_0xc170b4)throw notificationError(_0x50f167(0x11f),_0x50f167(0x15a)+(_0x5263ff+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x282cfc,_0x1c1ec1,_0x6e44dc){const _0x3eb41e=a146_0x128dcc;return notificationError('notification_config_'+_0x282cfc+'_'+(_0x1c1ec1===_0x3eb41e(0x13e)?'failed':_0x1c1ec1+_0x3eb41e(0x18b)),'Notification\x20config\x20'+_0x282cfc+'\x20'+_0x1c1ec1+_0x3eb41e(0x139),_0x6e44dc);}export function notificationLookupCommand(_0x459beb,_0x5c8f70){const _0x15ebdf=a146_0x128dcc;return _0x15ebdf(0x13c)+_0x459beb+'\x20--type\x20'+_0x5c8f70+'\x20--format\x20compress';}function validateNotificationDocument(_0x5948ea,_0x8e87d5){const _0x467fc3=a146_0x128dcc;for(const _0x377379 of Object[_0x467fc3(0x16b)](_0x5948ea)){if(FORBIDDEN_IDENTITY_FIELDS[_0x467fc3(0x153)](_0x377379))throw notificationError(_0x467fc3(0x14b),'Notification\x20JSON\x20field\x20\x22'+_0x377379+_0x467fc3(0x159));if(!ALLOWED_INPUT_FIELDS[_0x467fc3(0x153)](_0x377379))throw notificationError(_0x467fc3(0x12f),_0x467fc3(0x164)+_0x377379+'\x22.');}if(_0x8e87d5===_0x467fc3(0x156)&&Object[_0x467fc3(0x16b)](_0x5948ea)[_0x467fc3(0x17f)]===0x0)throw notificationError(_0x467fc3(0x18d),_0x467fc3(0x19c));const _0x43465c={};if(hasOwn(_0x5948ea,_0x467fc3(0x12c)))_0x43465c['configName']=validateRequiredString(_0x5948ea[_0x467fc3(0x12c)],_0x467fc3(0x12c),0x80);else{if(_0x8e87d5===_0x467fc3(0x15c))throw notificationError(_0x467fc3(0x123),_0x467fc3(0x127)+_0x467fc3(0x148));}if(hasOwn(_0x5948ea,_0x467fc3(0x121))){if(typeof _0x5948ea[_0x467fc3(0x121)]!==_0x467fc3(0x176))throw invalidFieldType(_0x467fc3(0x121),_0x467fc3(0x19d));const _0x391858=_0x5948ea[_0x467fc3(0x121)][_0x467fc3(0x15b)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x467fc3(0x17d)](_0x391858))throw notificationError(_0x467fc3(0x193),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x467fc3(0x157)](',\x20')+'.');_0x43465c[_0x467fc3(0x121)]=_0x391858;}else{if(_0x8e87d5===_0x467fc3(0x15c))throw notificationError(_0x467fc3(0x123),_0x467fc3(0x127)+_0x467fc3(0x146));}for(const [_0x4371ce,_0x5ba08a]of[[_0x467fc3(0x140),0x200],[_0x467fc3(0x136),0x100]]){if(!hasOwn(_0x5948ea,_0x4371ce))continue;const _0xf387b2=_0x5948ea[_0x4371ce];if(_0xf387b2!==null&&typeof _0xf387b2!==_0x467fc3(0x176))throw invalidFieldType(_0x4371ce,_0x467fc3(0x189));if(typeof _0xf387b2===_0x467fc3(0x176)&&_0xf387b2[_0x467fc3(0x17f)]>_0x5ba08a)throw notificationError(_0x467fc3(0x193),_0x467fc3(0x142)+_0x4371ce+_0x467fc3(0x166)+_0x5ba08a+_0x467fc3(0x133));_0x43465c[_0x4371ce]=_0xf387b2;}if(hasOwn(_0x5948ea,_0x467fc3(0x17c))){const _0x90cdd9=_0x5948ea[_0x467fc3(0x17c)];if(_0x90cdd9===null&&_0x8e87d5===_0x467fc3(0x15c))throw invalidFieldType('channelConfig',_0x467fc3(0x13b));if(_0x90cdd9!==null&&!isJsonObject(_0x90cdd9))throw invalidFieldType(_0x467fc3(0x17c),_0x8e87d5===_0x467fc3(0x156)?_0x467fc3(0x16d):_0x467fc3(0x13b));_0x90cdd9!==null&&validateChannelConfigFields(_0x43465c[_0x467fc3(0x121)],_0x90cdd9),_0x43465c[_0x467fc3(0x17c)]=_0x90cdd9;}for(const _0x1e5196 of[_0x467fc3(0x132),_0x467fc3(0x184)]){if(!hasOwn(_0x5948ea,_0x1e5196))continue;const _0x23dcf8=_0x5948ea[_0x1e5196];if(_0x23dcf8!==null&&(!Number[_0x467fc3(0x195)](_0x23dcf8)||_0x23dcf8<0x0))throw notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x1e5196+'\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.');_0x43465c[_0x1e5196]=_0x23dcf8;}return _0x43465c;}function validateRequiredString(_0xea09a2,_0x1cb810,_0x95fa30){const _0x3e5cf1=a146_0x128dcc;if(typeof _0xea09a2!=='string')throw invalidFieldType(_0x1cb810,_0x3e5cf1(0x181));const _0x1806d1=_0xea09a2[_0x3e5cf1(0x15b)]();if(!_0x1806d1)throw notificationError(_0x3e5cf1(0x193),_0x3e5cf1(0x142)+_0x1cb810+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');if(_0x1806d1['length']>_0x95fa30)throw notificationError(_0x3e5cf1(0x193),'Notification\x20JSON\x20field\x20\x22'+_0x1cb810+_0x3e5cf1(0x166)+_0x95fa30+_0x3e5cf1(0x133));return _0x1806d1;}function a146_0x4d91(_0x17c363,_0x503f36){_0x17c363=_0x17c363-0x11b;const _0x69408e=a146_0x6940();let _0x4d918b=_0x69408e[_0x17c363];return _0x4d918b;}function validateChannelConfigFields(_0x54a3ff,_0x34bf84){const _0x2f267a=a146_0x128dcc;if(hasOwn(_0x34bf84,'messageTemplate'))throw forbiddenChannelConfigField(_0x2f267a(0x162));if(_0x54a3ff===_0x2f267a(0x13d))for(const _0x159c8c of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x34bf84,_0x159c8c))throw forbiddenChannelConfigField(_0x159c8c);}}function forbiddenChannelConfigField(_0x1d00a8){const _0xc73e8b=a146_0x128dcc;return notificationError(_0xc73e8b(0x19a),_0xc73e8b(0x191)+_0x1d00a8+_0xc73e8b(0x134));}function invalidFieldType(_0x3461cb,_0x52d0fa){const _0x5d2d4=a146_0x128dcc;return notificationError('notification_config_field_invalid',_0x5d2d4(0x142)+_0x3461cb+'\x22\x20must\x20be\x20'+_0x52d0fa+'.');}function serializeChannelConfig(_0x2e01e4){const _0x405aac=a146_0x128dcc;return _0x2e01e4===null||_0x2e01e4===undefined?null:JSON[_0x405aac(0x11b)](_0x2e01e4);}function redactSensitive(_0x34494b){const _0x2237e2=a146_0x128dcc;return _0x34494b===null||_0x34494b===undefined||_0x34494b===''?null:_0x2237e2(0x185);}function requireResponseString(_0x3a9ea3,_0x458921,_0xce7c0){const _0x24ddb=a146_0x128dcc;if(typeof _0x3a9ea3!==_0x24ddb(0x176)||_0x3a9ea3[_0x24ddb(0x15b)]()==='')throw CliErrors['apiError'](_0x24ddb(0x150),'Item\x20'+(_0xce7c0+0x1)+_0x24ddb(0x17a)+_0x458921+'\x22.');return _0x3a9ea3[_0x24ddb(0x15b)]();}function requireExactString(_0x2f66ef,_0x3ea079,_0x49901c){const _0x530a8f=a146_0x128dcc;if(typeof _0x2f66ef!==_0x530a8f(0x176)||_0x2f66ef[_0x530a8f(0x15b)]()==='')throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x49901c+_0x530a8f(0x17a)+_0x3ea079+'\x22.');return _0x2f66ef[_0x530a8f(0x15b)]();}function responseNullableString(_0x1d50ca,_0x2c9d20,_0x4954d0){const _0x4487da=a146_0x128dcc;if(_0x1d50ca===undefined||_0x1d50ca===null)return null;if(typeof _0x1d50ca!==_0x4487da(0x176))throw notificationError(_0x4487da(0x11f),_0x4487da(0x18c)+_0x4954d0+_0x4487da(0x16e)+_0x2c9d20+'\x22.');return _0x1d50ca;}function responseNullableTimeout(_0x35fe34,_0x5caf9b,_0x9828b9){const _0x856831=a146_0x128dcc;if(_0x35fe34===undefined||_0x35fe34===null)return null;if(!Number[_0x856831(0x195)](_0x35fe34)||_0x35fe34<0x0)throw notificationError(_0x856831(0x11f),_0x856831(0x18c)+_0x9828b9+_0x856831(0x16e)+_0x5caf9b+'\x22.');return _0x35fe34;}function normalizeNullableString(_0x29861c){const _0x1a5b88=a146_0x128dcc;return typeof _0x29861c===_0x1a5b88(0x176)?_0x29861c:null;}function isJsonObject(_0xaf4b33){const _0x168884=a146_0x128dcc;return _0xaf4b33!==null&&typeof _0xaf4b33===_0x168884(0x168)&&!Array['isArray'](_0xaf4b33);}function hasOwn(_0x12ecdf,_0x555dff){const _0x8cb2a5=a146_0x128dcc;return Object[_0x8cb2a5(0x135)][_0x8cb2a5(0x124)]['call'](_0x12ecdf,_0x555dff);}async function readStdin(){const _0x2a26cf=a146_0x128dcc;let _0x168628='';process['stdin'][_0x2a26cf(0x138)](_0x2a26cf(0x18e));for await(const _0x50805a of process[_0x2a26cf(0x14e)])_0x168628+=_0x50805a;return _0x168628;}
1
+ const a159_0x440ca9=a159_0x2a8b;(function(_0x36a0c4,_0x3edfe7){const _0x29ba09=a159_0x2a8b,_0x1ca80f=_0x36a0c4();while(!![]){try{const _0x4d2450=-parseInt(_0x29ba09(0x157))/0x1+parseInt(_0x29ba09(0x126))/0x2*(parseInt(_0x29ba09(0x12c))/0x3)+parseInt(_0x29ba09(0x16d))/0x4*(parseInt(_0x29ba09(0x121))/0x5)+-parseInt(_0x29ba09(0x10b))/0x6+parseInt(_0x29ba09(0x143))/0x7+parseInt(_0x29ba09(0x15f))/0x8+-parseInt(_0x29ba09(0x112))/0x9;if(_0x4d2450===_0x3edfe7)break;else _0x1ca80f['push'](_0x1ca80f['shift']());}catch(_0x3e1348){_0x1ca80f['push'](_0x1ca80f['shift']());}}}(a159_0xf798,0xa8221));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a159_0xf798(){const _0x5dbbc6=['WEBHOOK','path','from-env','DINGTALK','1176SmlaQn','preflight','name','endpointUrl:null','\x22\x20must\x20be\x20a\x20non-empty\x20string.','emailTargets','isArray','object','keys','env','Invalid\x20notification\x20config\x20response.','channelType','createTime','num','Create\x20JSON\x20requires\x20field\x20','isSafeInteger','\x20--type\x20','Application-level\x20notification\x20config\x20ID','file','apiError','hasOwnProperty','join','call','1748832vxMIDs','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','\x22\x20is\x20forbidden.','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','notification_config_update_empty','string','13065381dxrNqR','Notification\x20JSON\x20field\x20\x22','kind','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','entries','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','a\x20string\x20or\x20null','fromName','FEISHU','\x20has\x20an\x20invalid\x20id.','Missing\x20notification\x20JSON\x20source.','subjectPrefix','notification_config_channel_field_forbidden','Notification\x20config\x20list\x20item\x20','Allowed\x20values:\x20','6375DGsvIL','has','notification_config_source_unavailable','_unavailable','trim','2205874qPZzAl','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','create','notification_config_field_required','\x20must\x20be\x20an\x20object.','includes','3IqkVKA','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','failed','\x20has\x20an\x20invalid\x20channelType.','\x20failed.','stdin','\x20has\x20an\x20unsupported\x20channelType.','recipients','push','endpointUrl','readTimeout','channelConfigRaw','notification_config_id_invalid','parse','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','endpointUrlRaw','channelConfig','notification_config_field_invalid','appCode','environment\x20variable\x20','\x20is\x20invalid.','9266229loBdac','bool','update','\x20has\x20an\x20invalid\x20appCode.','a\x20JSON\x20object\x20or\x20null','length','description','utf8','\x20is\x20missing\x20required\x20field\x20\x22','Notification\x20JSON\x20from\x20','<redacted>','str','a\x20JSON\x20object','Notification\x20JSON\x20channelConfig\x20field\x20\x22','\x22\x20cannot\x20exceed\x20','bccList','notification_config_response_invalid','WECOM','Invalid\x20--','updateTime','667357NpeGcf','notification_config_json_invalid','Notification\x20config\x20','\x20has\x20invalid\x20field\x20\x22','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','some','file\x20','2381416wJLwpe','connectTimeout','EMAIL','configCode','validation','setEncoding','configName','ccList','Item\x20','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20'];a159_0xf798=function(){return _0x5dbbc6;};return a159_0xf798();}import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a159_0x440ca9(0x161),a159_0x440ca9(0x11a),a159_0x440ca9(0x16c),a159_0x440ca9(0x154),a159_0x440ca9(0x169)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a159_0x440ca9(0x165),'channelType','endpointUrl',a159_0x440ca9(0x13e),a159_0x440ca9(0x149),a159_0x440ca9(0x160),a159_0x440ca9(0x136)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a159_0x440ca9(0x140),a159_0x440ca9(0x162),'channelCode']),EMAIL_RECIPIENT_FIELDS=new Set([a159_0x440ca9(0xf9),a159_0x440ca9(0x133),a159_0x440ca9(0x166),a159_0x440ca9(0x152),'replyTo',a159_0x440ca9(0x11d),a159_0x440ca9(0x119),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a159_0x440ca9(0x111),'required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':'stdin','type':'boolean','required':![],'default':![],'description':a159_0x440ca9(0x115)},{'name':a159_0x440ca9(0x16b),'type':a159_0x440ca9(0x111),'required':![],'description':a159_0x440ca9(0x117)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':'number','required':!![],'description':a159_0x440ca9(0x105)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x3c0e89,_0x5d1d47,_0x321471){return new CliError(_0x3c0e89,0x1,_0x5d1d47,_0x321471);}export function readNotificationId(_0x59a0da){const _0x432725=a159_0x440ca9,_0x4b90be=_0x59a0da[_0x432725(0x101)]('id');if(!Number[_0x432725(0x103)](_0x4b90be)||_0x4b90be<=0x0)throw notificationError(_0x432725(0x138),'--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x4b90be;}export function requireNotificationExplicitYes(_0x5e5d47){const _0x4fd77f=a159_0x440ca9;if(_0x5e5d47['bool']('dry-run')||_0x5e5d47['bool']('yes'))return;throw notificationError('notification_config_confirmation_required','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.',_0x4fd77f(0x127));}export function readNotificationChannelType(_0x25b279,_0x60e701='type',_0x431d0a=a159_0x440ca9(0x161)){const _0x3e13c8=a159_0x440ca9,_0x2f01f7=_0x25b279[_0x3e13c8(0x14e)](_0x60e701)[_0x3e13c8(0x125)]()||_0x431d0a;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x2f01f7))throw CliErrors['validation'](_0x3e13c8(0x155)+_0x60e701+':\x20'+_0x2f01f7,_0x3e13c8(0x120)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x2f01f7;}export function assertSingleNotificationSource(_0x45d1aa){const _0x5cbc35=a159_0x440ca9,_0xf2d01d=[],_0x1dba74=_0x45d1aa[_0x5cbc35(0x14e)](_0x5cbc35(0x106))[_0x5cbc35(0x125)]();if(_0x1dba74)_0xf2d01d['push']({'kind':_0x5cbc35(0x106),'path':_0x1dba74});if(_0x45d1aa[_0x5cbc35(0x144)]('stdin'))_0xf2d01d[_0x5cbc35(0x134)]({'kind':_0x5cbc35(0x131)});const _0xcd6c75=_0x45d1aa[_0x5cbc35(0x14e)](_0x5cbc35(0x16b))[_0x5cbc35(0x125)]();if(_0xcd6c75)_0xf2d01d['push']({'kind':'env','name':_0xcd6c75});if(_0xf2d01d['length']===0x0)throw CliErrors[_0x5cbc35(0x163)](_0x5cbc35(0x11c),_0x5cbc35(0x10c));if(_0xf2d01d[_0x5cbc35(0x148)]>0x1)throw CliErrors['validation']('Notification\x20JSON\x20source\x20is\x20ambiguous.',_0x5cbc35(0x10c));return _0xf2d01d[0x0];}export async function readNotificationDocument(_0x58fcda,_0x500a1f){const _0x578dc1=a159_0x440ca9,_0x17367e=assertSingleNotificationSource(_0x58fcda),_0x132a8f=_0x17367e[_0x578dc1(0x114)]===_0x578dc1(0x106)?_0x578dc1(0x15e)+_0x17367e[_0x578dc1(0x16a)]:_0x17367e[_0x578dc1(0x114)]==='env'?_0x578dc1(0x141)+_0x17367e[_0x578dc1(0xf6)]:_0x578dc1(0x131);let _0x1dcc25;try{if(_0x17367e[_0x578dc1(0x114)]==='file')_0x1dcc25=await readFile(_0x17367e[_0x578dc1(0x16a)],_0x578dc1(0x14a));else{if(_0x17367e['kind']===_0x578dc1(0xfd)){if(!(_0x17367e[_0x578dc1(0xf6)]in process.env))throw notificationError(_0x578dc1(0x123),_0x578dc1(0x12d)+_0x17367e[_0x578dc1(0xf6)]);_0x1dcc25=process.env[_0x17367e.name]??'';}else _0x1dcc25=await readStdin();}}catch(_0x5530f8){if(_0x5530f8 instanceof CliError)throw _0x5530f8;throw notificationError(_0x578dc1(0x123),_0x578dc1(0x168)+_0x132a8f+'.');}let _0x15f6b8;try{_0x15f6b8=JSON[_0x578dc1(0x139)](_0x1dcc25);}catch{throw notificationError('notification_config_json_invalid',_0x578dc1(0x14c)+_0x132a8f+_0x578dc1(0x142),_0x578dc1(0x10f));}if(!isJsonObject(_0x15f6b8))throw notificationError(_0x578dc1(0x158),'Notification\x20JSON\x20from\x20'+_0x132a8f+_0x578dc1(0x12a));return validateNotificationDocument(_0x15f6b8,_0x500a1f);}function a159_0x2a8b(_0x44e791,_0x33f1c9){_0x44e791=_0x44e791-0xf6;const _0xf798db=a159_0xf798();let _0x2a8b05=_0xf798db[_0x44e791];return _0x2a8b05;}export function projectNotificationListConfig(_0x25afca,_0x1726df){const _0x45953c=a159_0x440ca9;return{'id':typeof _0x25afca['id']==='number'?_0x25afca['id']:null,'configCode':requireResponseString(_0x25afca['configCode'],_0x45953c(0x162),_0x1726df),'configName':requireResponseString(_0x25afca[_0x45953c(0x165)],_0x45953c(0x165),_0x1726df),'channelType':requireResponseString(_0x25afca[_0x45953c(0xff)],_0x45953c(0xff),_0x1726df),'description':normalizeNullableString(_0x25afca[_0x45953c(0x149)]),'createTime':normalizeNullableString(_0x25afca[_0x45953c(0x100)]),'updateTime':normalizeNullableString(_0x25afca[_0x45953c(0x156)])};}export function normalizeExactNotificationConfig(_0x58a5b8,_0x88a028,_0x21253b){const _0x2aa3c4=a159_0x440ca9;if(!Number['isSafeInteger'](_0x58a5b8['id'])||_0x58a5b8['id']!==_0x88a028)throw notificationError(_0x2aa3c4(0x153),_0x2aa3c4(0x10e)+_0x88a028+'.');if(_0x58a5b8[_0x2aa3c4(0x140)]!==_0x21253b)throw notificationError(_0x2aa3c4(0x153),_0x2aa3c4(0x159)+_0x88a028+_0x2aa3c4(0x15b));const _0x4360b1=requireExactString(_0x58a5b8['configName'],_0x2aa3c4(0x165),_0x88a028),_0x5dcc6b=requireExactString(_0x58a5b8[_0x2aa3c4(0x162)],_0x2aa3c4(0x162),_0x88a028),_0x5f0de3=requireExactString(_0x58a5b8[_0x2aa3c4(0xff)],_0x2aa3c4(0xff),_0x88a028);if(!NOTIFICATION_CHANNEL_TYPES[_0x2aa3c4(0x12b)](_0x5f0de3))throw notificationError('notification_config_response_invalid',_0x2aa3c4(0x159)+_0x88a028+_0x2aa3c4(0x132));const _0xaa4924=responseNullableString(_0x58a5b8[_0x2aa3c4(0x135)],_0x2aa3c4(0x135),_0x88a028),_0x519d90=responseNullableString(_0x58a5b8['channelConfig'],_0x2aa3c4(0x13e),_0x88a028),_0x475197=responseNullableString(_0x58a5b8[_0x2aa3c4(0x149)],_0x2aa3c4(0x149),_0x88a028),_0x38ba50=responseNullableTimeout(_0x58a5b8[_0x2aa3c4(0x160)],_0x2aa3c4(0x160),_0x88a028),_0x53ae2f=responseNullableTimeout(_0x58a5b8[_0x2aa3c4(0x136)],_0x2aa3c4(0x136),_0x88a028);return{'id':_0x88a028,'appCode':_0x21253b,'configCode':_0x5dcc6b,'configName':_0x4360b1,'channelType':_0x5f0de3,'endpointUrl':redactSensitive(_0xaa4924),'channelConfig':redactSensitive(_0x519d90),'description':_0x475197,'connectTimeout':_0x38ba50,'readTimeout':_0x53ae2f,'endpointUrlRaw':_0xaa4924,'channelConfigRaw':_0x519d90};}export async function requireExactNotificationConfig(_0x3e6a01,_0x551230,_0x198240){const _0x4f1ef8=a159_0x440ca9;let _0x386233;try{_0x386233=await getNotificationChannelConfig(_0x551230,_0x3e6a01);}catch{throw safeApiFailure(_0x198240,_0x4f1ef8(0x16e),_0x4f1ef8(0x13b)+_0x3e6a01+_0x4f1ef8(0x13c));}return normalizeExactNotificationConfig(_0x386233,_0x551230,_0x3e6a01);}export function projectNotificationConfig(_0x585491){const _0x2c1acd=a159_0x440ca9;return{'id':_0x585491['id']??null,'appCode':_0x585491['appCode'],'configCode':_0x585491[_0x2c1acd(0x162)]??null,'configName':_0x585491[_0x2c1acd(0x165)],'channelType':_0x585491[_0x2c1acd(0xff)],'endpointUrl':redactSensitive(_0x585491[_0x2c1acd(0x135)]),'channelConfig':redactSensitive(_0x585491['channelConfig']),'description':_0x585491['description']??null,'connectTimeout':_0x585491[_0x2c1acd(0x160)]??null,'readTimeout':_0x585491['readTimeout']??null};}export function notificationSelector(_0x59db99){const _0x29cfc3=a159_0x440ca9;return{'appCode':_0x59db99[_0x29cfc3(0x140)],'id':_0x59db99['id'],'configCode':_0x59db99[_0x29cfc3(0x162)],'configName':_0x59db99['configName'],'channelType':_0x59db99['channelType']};}export function createMutationInput(_0x4508ea,_0x22abc2){const _0x1f9cd7=a159_0x440ca9;return{'appCode':_0x4508ea,'configName':_0x22abc2['configName'],'channelType':_0x22abc2[_0x1f9cd7(0xff)],...hasOwn(_0x22abc2,_0x1f9cd7(0x135))?{'endpointUrl':_0x22abc2[_0x1f9cd7(0x135)]}:{},...hasOwn(_0x22abc2,_0x1f9cd7(0x13e))?{'channelConfig':serializeChannelConfig(_0x22abc2[_0x1f9cd7(0x13e)])}:{},...hasOwn(_0x22abc2,'description')?{'description':_0x22abc2[_0x1f9cd7(0x149)]}:{},...hasOwn(_0x22abc2,_0x1f9cd7(0x160))?{'connectTimeout':_0x22abc2['connectTimeout']}:{},...hasOwn(_0x22abc2,'readTimeout')?{'readTimeout':_0x22abc2[_0x1f9cd7(0x136)]}:{}};}export function mergeUpdateInput(_0x2a3872,_0x29894e){const _0x40f537=a159_0x440ca9;return{'id':_0x2a3872['id'],'appCode':_0x2a3872[_0x40f537(0x140)],'configName':_0x29894e[_0x40f537(0x165)]??_0x2a3872[_0x40f537(0x165)],'channelType':_0x29894e[_0x40f537(0xff)]??_0x2a3872[_0x40f537(0xff)],'endpointUrl':hasOwn(_0x29894e,'endpointUrl')?_0x29894e[_0x40f537(0x135)]:_0x2a3872[_0x40f537(0x13d)],'channelConfig':hasOwn(_0x29894e,_0x40f537(0x13e))?serializeChannelConfig(_0x29894e[_0x40f537(0x13e)]):_0x2a3872[_0x40f537(0x137)],'description':hasOwn(_0x29894e,_0x40f537(0x149))?_0x29894e[_0x40f537(0x149)]:_0x2a3872['description'],'connectTimeout':hasOwn(_0x29894e,_0x40f537(0x160))?_0x29894e[_0x40f537(0x160)]:_0x2a3872['connectTimeout'],'readTimeout':hasOwn(_0x29894e,_0x40f537(0x136))?_0x29894e[_0x40f537(0x136)]:_0x2a3872[_0x40f537(0x136)]};}export function plannedUpdateProjection(_0x3bd767,_0x42ab10){const _0xb1de13=a159_0x440ca9;return projectNotificationConfig({'id':_0x3bd767['id'],'appCode':_0x3bd767[_0xb1de13(0x140)],'configCode':_0x3bd767['configCode'],'configName':_0x42ab10[_0xb1de13(0x165)]??_0x3bd767[_0xb1de13(0x165)],'channelType':_0x42ab10['channelType']??_0x3bd767[_0xb1de13(0xff)],'endpointUrl':hasOwn(_0x42ab10,_0xb1de13(0x135))?_0x42ab10['endpointUrl']:_0x3bd767['endpointUrlRaw'],'channelConfig':hasOwn(_0x42ab10,_0xb1de13(0x13e))?_0x42ab10[_0xb1de13(0x13e)]:_0x3bd767[_0xb1de13(0x137)],'description':hasOwn(_0x42ab10,_0xb1de13(0x149))?_0x42ab10[_0xb1de13(0x149)]:_0x3bd767[_0xb1de13(0x149)],'connectTimeout':hasOwn(_0x42ab10,'connectTimeout')?_0x42ab10[_0xb1de13(0x160)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3bd767[_0xb1de13(0x160)],'readTimeout':hasOwn(_0x42ab10,'readTimeout')?_0x42ab10[_0xb1de13(0x136)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3bd767[_0xb1de13(0x136)]});}export function requestedSafeFieldsMatch(_0x346195,_0x1fc6c7,_0x1e5e15){const _0x29c241=a159_0x440ca9,_0x56e2e7=[],_0x5a2204=[],_0x49de25=[];for(const _0x20e479 of['configName',_0x29c241(0xff),_0x29c241(0x149)]){if(!hasOwn(_0x1e5e15,_0x20e479))continue;_0x49de25['push'](_0x20e479),_0x56e2e7[_0x29c241(0x134)](_0x1fc6c7[_0x20e479]===_0x1e5e15[_0x20e479]),_0x5a2204[_0x29c241(0x134)](_0x346195[_0x20e479]!==_0x1e5e15[_0x20e479]&&_0x1fc6c7[_0x20e479]===_0x1e5e15[_0x20e479]);}for(const _0x4d58e2 of[_0x29c241(0x160),_0x29c241(0x136)]){if(!hasOwn(_0x1e5e15,_0x4d58e2))continue;const _0x561956=_0x1e5e15[_0x4d58e2]??(_0x4d58e2==='connectTimeout'?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x49de25[_0x29c241(0x134)](_0x4d58e2),_0x56e2e7[_0x29c241(0x134)](_0x1fc6c7[_0x4d58e2]===_0x561956),_0x5a2204[_0x29c241(0x134)](_0x346195[_0x4d58e2]!==_0x561956&&_0x1fc6c7[_0x4d58e2]===_0x561956);}return hasOwn(_0x1e5e15,_0x29c241(0x135))&&_0x1e5e15[_0x29c241(0x135)]===null&&(_0x49de25[_0x29c241(0x134)](_0x29c241(0xf7)),_0x56e2e7[_0x29c241(0x134)](_0x1fc6c7['endpointUrlRaw']===null||_0x1fc6c7['endpointUrlRaw']===''),_0x5a2204[_0x29c241(0x134)](_0x346195['endpointUrlRaw']!==null&&_0x346195[_0x29c241(0x13d)]!==''&&(_0x1fc6c7['endpointUrlRaw']===null||_0x1fc6c7['endpointUrlRaw']===''))),{'allMatch':_0x56e2e7['every'](Boolean),'provesChange':_0x5a2204[_0x29c241(0x15d)](Boolean),'verifiedFields':_0x49de25};}export function validateNotificationDeleteReadback(_0x24cb91,_0x35a484,_0x4bf084){const _0x36ce41=a159_0x440ca9;for(const [_0x5cf806,_0xf32b48]of _0x24cb91[_0x36ce41(0x116)]()){if(!Number[_0x36ce41(0x103)](_0xf32b48['id'])||_0xf32b48['id']<=0x0)throw notificationError(_0x36ce41(0x153),'Notification\x20config\x20list\x20item\x20'+(_0x5cf806+0x1)+_0x36ce41(0x11b));if(_0xf32b48[_0x36ce41(0x140)]!==_0x35a484)throw notificationError(_0x36ce41(0x153),_0x36ce41(0x11f)+(_0x5cf806+0x1)+_0x36ce41(0x146));if(_0xf32b48[_0x36ce41(0xff)]!==_0x4bf084)throw notificationError(_0x36ce41(0x153),_0x36ce41(0x11f)+(_0x5cf806+0x1)+_0x36ce41(0x12f));}}export function safeApiFailure(_0x5b0a9e,_0x51dc6f,_0x382320){const _0x1450f1=a159_0x440ca9;return notificationError('notification_config_'+_0x5b0a9e+'_'+(_0x51dc6f==='mutation'?_0x1450f1(0x12e):_0x51dc6f+_0x1450f1(0x124)),_0x1450f1(0x159)+_0x5b0a9e+'\x20'+_0x51dc6f+_0x1450f1(0x130),_0x382320);}export function notificationLookupCommand(_0x1fada3,_0x57edaf){const _0x2e5110=a159_0x440ca9;return'rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x1fada3+_0x2e5110(0x104)+_0x57edaf+'\x20--format\x20compress';}function validateNotificationDocument(_0x28bc6c,_0x21d1a8){const _0x1189ab=a159_0x440ca9;for(const _0x47c002 of Object[_0x1189ab(0xfc)](_0x28bc6c)){if(FORBIDDEN_IDENTITY_FIELDS[_0x1189ab(0x122)](_0x47c002))throw notificationError('notification_config_field_forbidden',_0x1189ab(0x113)+_0x47c002+'\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.');if(!ALLOWED_INPUT_FIELDS[_0x1189ab(0x122)](_0x47c002))throw notificationError('notification_config_field_unknown','Unknown\x20notification\x20JSON\x20field\x20\x22'+_0x47c002+'\x22.');}if(_0x21d1a8===_0x1189ab(0x145)&&Object[_0x1189ab(0xfc)](_0x28bc6c)[_0x1189ab(0x148)]===0x0)throw notificationError(_0x1189ab(0x110),_0x1189ab(0x15c));const _0x42d713={};if(hasOwn(_0x28bc6c,_0x1189ab(0x165)))_0x42d713[_0x1189ab(0x165)]=validateRequiredString(_0x28bc6c[_0x1189ab(0x165)],_0x1189ab(0x165),0x80);else{if(_0x21d1a8===_0x1189ab(0x128))throw notificationError(_0x1189ab(0x129),_0x1189ab(0x102)+'\x22configName\x22.');}if(hasOwn(_0x28bc6c,_0x1189ab(0xff))){if(typeof _0x28bc6c[_0x1189ab(0xff)]!==_0x1189ab(0x111))throw invalidFieldType(_0x1189ab(0xff),'a\x20supported\x20string');const _0x1d6381=_0x28bc6c[_0x1189ab(0xff)][_0x1189ab(0x125)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x1189ab(0x12b)](_0x1d6381))throw notificationError(_0x1189ab(0x13f),_0x1189ab(0x13a),'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x1189ab(0x109)](',\x20')+'.');_0x42d713[_0x1189ab(0xff)]=_0x1d6381;}else{if(_0x21d1a8===_0x1189ab(0x128))throw notificationError(_0x1189ab(0x129),_0x1189ab(0x102)+'\x22channelType\x22.');}for(const [_0x54819f,_0x5cb194]of[['endpointUrl',0x200],[_0x1189ab(0x149),0x100]]){if(!hasOwn(_0x28bc6c,_0x54819f))continue;const _0x432938=_0x28bc6c[_0x54819f];if(_0x432938!==null&&typeof _0x432938!==_0x1189ab(0x111))throw invalidFieldType(_0x54819f,_0x1189ab(0x118));if(typeof _0x432938===_0x1189ab(0x111)&&_0x432938[_0x1189ab(0x148)]>_0x5cb194)throw notificationError(_0x1189ab(0x13f),_0x1189ab(0x113)+_0x54819f+_0x1189ab(0x151)+_0x5cb194+'\x20characters.');_0x42d713[_0x54819f]=_0x432938;}if(hasOwn(_0x28bc6c,_0x1189ab(0x13e))){const _0x1d269f=_0x28bc6c[_0x1189ab(0x13e)];if(_0x1d269f===null&&_0x21d1a8===_0x1189ab(0x128))throw invalidFieldType(_0x1189ab(0x13e),_0x1189ab(0x14f));if(_0x1d269f!==null&&!isJsonObject(_0x1d269f))throw invalidFieldType(_0x1189ab(0x13e),_0x21d1a8==='update'?_0x1189ab(0x147):'a\x20JSON\x20object');_0x1d269f!==null&&validateChannelConfigFields(_0x42d713[_0x1189ab(0xff)],_0x1d269f),_0x42d713[_0x1189ab(0x13e)]=_0x1d269f;}for(const _0x528d60 of[_0x1189ab(0x160),'readTimeout']){if(!hasOwn(_0x28bc6c,_0x528d60))continue;const _0x472b55=_0x28bc6c[_0x528d60];if(_0x472b55!==null&&(!Number[_0x1189ab(0x103)](_0x472b55)||_0x472b55<0x0))throw notificationError(_0x1189ab(0x13f),_0x1189ab(0x113)+_0x528d60+'\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.');_0x42d713[_0x528d60]=_0x472b55;}return _0x42d713;}function validateRequiredString(_0x73a8c4,_0x55e372,_0x3a96c7){const _0x448184=a159_0x440ca9;if(typeof _0x73a8c4!==_0x448184(0x111))throw invalidFieldType(_0x55e372,'a\x20non-empty\x20string');const _0x1a547d=_0x73a8c4[_0x448184(0x125)]();if(!_0x1a547d)throw notificationError(_0x448184(0x13f),_0x448184(0x113)+_0x55e372+_0x448184(0xf8));if(_0x1a547d[_0x448184(0x148)]>_0x3a96c7)throw notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x55e372+_0x448184(0x151)+_0x3a96c7+'\x20characters.');return _0x1a547d;}function validateChannelConfigFields(_0x463dab,_0x4ac695){const _0x35f086=a159_0x440ca9;if(hasOwn(_0x4ac695,'messageTemplate'))throw forbiddenChannelConfigField('messageTemplate');if(_0x463dab===_0x35f086(0x161))for(const _0x2909ed of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x4ac695,_0x2909ed))throw forbiddenChannelConfigField(_0x2909ed);}}function forbiddenChannelConfigField(_0x3b514a){const _0xc63cbc=a159_0x440ca9;return notificationError(_0xc63cbc(0x11e),_0xc63cbc(0x150)+_0x3b514a+_0xc63cbc(0x10d));}function invalidFieldType(_0x39a8b8,_0x15f89b){const _0x3154cd=a159_0x440ca9;return notificationError('notification_config_field_invalid',_0x3154cd(0x113)+_0x39a8b8+'\x22\x20must\x20be\x20'+_0x15f89b+'.');}function serializeChannelConfig(_0x4602f4){return _0x4602f4===null||_0x4602f4===undefined?null:JSON['stringify'](_0x4602f4);}function redactSensitive(_0x21c374){const _0x11da04=a159_0x440ca9;return _0x21c374===null||_0x21c374===undefined||_0x21c374===''?null:_0x11da04(0x14d);}function requireResponseString(_0x46d7e6,_0x5f5069,_0x4e5dc6){const _0x7b481e=a159_0x440ca9;if(typeof _0x46d7e6!==_0x7b481e(0x111)||_0x46d7e6[_0x7b481e(0x125)]()==='')throw CliErrors[_0x7b481e(0x107)](_0x7b481e(0xfe),_0x7b481e(0x167)+(_0x4e5dc6+0x1)+_0x7b481e(0x14b)+_0x5f5069+'\x22.');return _0x46d7e6[_0x7b481e(0x125)]();}function requireExactString(_0x2dc07f,_0x470d2b,_0x3ee860){const _0x427bcd=a159_0x440ca9;if(typeof _0x2dc07f!=='string'||_0x2dc07f[_0x427bcd(0x125)]()==='')throw notificationError(_0x427bcd(0x153),_0x427bcd(0x159)+_0x3ee860+_0x427bcd(0x14b)+_0x470d2b+'\x22.');return _0x2dc07f[_0x427bcd(0x125)]();}function responseNullableString(_0x16110f,_0x20a67d,_0x2028ce){const _0x3a22b3=a159_0x440ca9;if(_0x16110f===undefined||_0x16110f===null)return null;if(typeof _0x16110f!==_0x3a22b3(0x111))throw notificationError(_0x3a22b3(0x153),_0x3a22b3(0x159)+_0x2028ce+_0x3a22b3(0x15a)+_0x20a67d+'\x22.');return _0x16110f;}function responseNullableTimeout(_0x51de4b,_0x3390cd,_0x16a848){const _0x3e8121=a159_0x440ca9;if(_0x51de4b===undefined||_0x51de4b===null)return null;if(!Number['isSafeInteger'](_0x51de4b)||_0x51de4b<0x0)throw notificationError(_0x3e8121(0x153),_0x3e8121(0x159)+_0x16a848+_0x3e8121(0x15a)+_0x3390cd+'\x22.');return _0x51de4b;}function normalizeNullableString(_0x202c87){const _0x1651ed=a159_0x440ca9;return typeof _0x202c87===_0x1651ed(0x111)?_0x202c87:null;}function isJsonObject(_0x65a048){const _0x1855d5=a159_0x440ca9;return _0x65a048!==null&&typeof _0x65a048===_0x1855d5(0xfb)&&!Array[_0x1855d5(0xfa)](_0x65a048);}function hasOwn(_0x206d46,_0x110c85){const _0x1dee9c=a159_0x440ca9;return Object['prototype'][_0x1dee9c(0x108)][_0x1dee9c(0x10a)](_0x206d46,_0x110c85);}async function readStdin(){const _0x16a726=a159_0x440ca9;let _0x1556c8='';process[_0x16a726(0x131)][_0x16a726(0x164)](_0x16a726(0x14a));for await(const _0xc8fb20 of process[_0x16a726(0x131)])_0x1556c8+=_0xc8fb20;return _0x1556c8;}
@@ -1 +1 @@
1
- const a147_0x13e33d=a147_0x4277;(function(_0x14f1c2,_0x38c34b){const _0x14f7f6=a147_0x4277,_0x289bb7=_0x14f1c2();while(!![]){try{const _0x1f6de0=parseInt(_0x14f7f6(0xe8))/0x1*(parseInt(_0x14f7f6(0xed))/0x2)+-parseInt(_0x14f7f6(0x11f))/0x3*(-parseInt(_0x14f7f6(0xea))/0x4)+parseInt(_0x14f7f6(0x117))/0x5+-parseInt(_0x14f7f6(0xf6))/0x6*(-parseInt(_0x14f7f6(0x119))/0x7)+-parseInt(_0x14f7f6(0x114))/0x8*(-parseInt(_0x14f7f6(0x10c))/0x9)+parseInt(_0x14f7f6(0x109))/0xa+-parseInt(_0x14f7f6(0xf8))/0xb;if(_0x1f6de0===_0x38c34b)break;else _0x289bb7['push'](_0x289bb7['shift']());}catch(_0x12b57a){_0x289bb7['push'](_0x289bb7['shift']());}}}(a147_0x473a,0x494ba));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=[a147_0x13e33d(0x100),'general',a147_0x13e33d(0x10f),a147_0x13e33d(0xf0)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x13e33d(0xf9),'general':a147_0x13e33d(0x11b),'form':a147_0x13e33d(0x107),'idCard':a147_0x13e33d(0x116)},SCENE_FLAG={'name':a147_0x13e33d(0xfb),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x13e33d(0x106)},IMAGE_FILE_FLAG={'name':a147_0x13e33d(0xe7),'type':a147_0x13e33d(0xec),'description':a147_0x13e33d(0x101)},IMAGE_URL_FLAG={'name':a147_0x13e33d(0xfd),'type':a147_0x13e33d(0xec),'description':a147_0x13e33d(0xf7)};function normalizeScene(_0x6f03fa){const _0x19ee23=a147_0x13e33d,_0x3000d1=_0x6f03fa[_0x19ee23(0x104)]()['toLowerCase']();if(_0x3000d1===_0x19ee23(0x111))return _0x19ee23(0xf0);if(_0x3000d1==='invoice'||_0x3000d1==='general'||_0x3000d1===_0x19ee23(0x10f))return _0x3000d1;throw CliErrors[_0x19ee23(0xf4)](_0x19ee23(0xef)+_0x6f03fa+_0x19ee23(0x110)+SUPPORTED_SCENES[_0x19ee23(0xeb)](',\x20'));}function a147_0x473a(){const _0x4c39d7=['Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','File\x20URL\x20response\x20missing\x20fileUrl.','image-file','323mpGBOl','toString','8OELXCV','join','string','1658gkAPBV','str','Unsupported\x20OCR\x20scene:\x20','idCard','appCode','fileName','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','validation','fileUrl','13938PrGaNr','Publicly\x20accessible\x20image\x20or\x20file\x20URL','9256060qZENrz','Invoice','/smartapi/common/uploadFile','scene','path','image-url','apiError','filePath','invoice','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','/smartapi/ocr/recognize-text','trim','imageUrl','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Table','/smartapi/common/queryFileUrl','3640Fjmlzc','\x20OCR','GET','1188ncUxjp','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','recognize','form','.\x20Supported\x20scenes:\x20','idcard','/smartapi/ocr/recognize-text?','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','9672uvEwDk','imageFile','IdCard','559860viTzde','ocr','1337haNqCV','\x20OCR\x20from\x20URL','General','length','POST','File\x20upload\x20response\x20missing\x20filePath.','237441lqBLdl'];a147_0x473a=function(){return _0x4c39d7;};return a147_0x473a();}function a147_0x4277(_0x271ef0,_0x173919){_0x271ef0=_0x271ef0-0xe6;const _0x473a16=a147_0x473a();let _0x427799=_0x473a16[_0x271ef0];return _0x427799;}function selectedInputs(_0x5c8d89){const _0x25941a=a147_0x13e33d,_0x514704=_0x5c8d89[_0x25941a(0xee)](_0x25941a(0xe7))['trim'](),_0x41f5cf=_0x5c8d89['str']('image-url')['trim']();return{'imageFile':_0x514704,'imageUrl':_0x41f5cf,'count':[_0x514704,_0x41f5cf]['filter'](Boolean)[_0x25941a(0x11c)]};}function validateInputSelection(_0x3c5607){const _0x3bab89=a147_0x13e33d,_0x17c001=selectedInputs(_0x3c5607);if(_0x17c001['count']!==0x1)throw CliErrors[_0x3bab89(0xf4)](_0x3bab89(0x120));return _0x17c001;}function withScene(_0x295853,_0x4fd8fe,_0x558836){const _0x415e20=a147_0x13e33d;return{..._0x295853,'scene':_0x4fd8fe,..._0x558836?{'sourceFile':{'fileName':_0x558836[_0x415e20(0xf2)],'filePath':_0x558836[_0x415e20(0xff)]}}:{}};}const ocrRecognize={'service':a147_0x13e33d(0x118),'command':a147_0x13e33d(0x10e),'description':a147_0x13e33d(0x113),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3a0c5b){const _0x364bf8=a147_0x13e33d,_0x4212e3=normalizeScene(_0x3a0c5b[_0x364bf8(0xee)](_0x364bf8(0xfb))),_0x474bef=SCENE_TO_LEGACY_TYPE[_0x4212e3],_0x964fa7=validateInputSelection(_0x3a0c5b);if(_0x964fa7['imageUrl']){const _0xceb2e1=new URLSearchParams({'url':_0x964fa7[_0x364bf8(0x105)],'type':_0x474bef,'appCode':_0x3a0c5b[_0x364bf8(0xf1)]});return{'method':_0x364bf8(0x10b),'url':_0x364bf8(0x112)+_0xceb2e1[_0x364bf8(0xe9)](),'description':'Preview:\x20recognize\x20'+_0x4212e3+_0x364bf8(0x11a)};}const _0x43152d=requireDevelopmentUploadFile(_0x964fa7[_0x364bf8(0x115)],_0x364bf8(0xe7));return{'method':_0x364bf8(0x11d),'url':_0x364bf8(0xfa),'body':{'steps':[{'method':_0x364bf8(0x11d),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x3a0c5b[_0x364bf8(0xf1)],'multipart':{'file':_0x43152d}}},{'method':_0x364bf8(0x11d),'url':_0x364bf8(0x108),'body':{'filePath':_0x364bf8(0xf3),'downloadFlag':![]}},{'method':_0x364bf8(0x10b),'url':_0x364bf8(0x103),'query':{'appCode':_0x3a0c5b['appCode'],'url':_0x364bf8(0x102),'type':_0x474bef}}]},'description':_0x364bf8(0x10d)+_0x4212e3+_0x364bf8(0x10a)};},async 'execute'(_0x44ccdc){const _0x10188b=a147_0x13e33d,_0xd84253=normalizeScene(_0x44ccdc[_0x10188b(0xee)](_0x10188b(0xfb))),_0x239e74=SCENE_TO_LEGACY_TYPE[_0xd84253],_0x3a2701=validateInputSelection(_0x44ccdc);if(_0x3a2701['imageUrl']){const _0x4e0d42=await recognizeDevelopmentOcr(_0x44ccdc[_0x10188b(0xf1)],{'url':_0x3a2701['imageUrl'],'type':_0x239e74});return{'ok':!![],'data':withScene(_0x4e0d42,_0xd84253)};}const _0x36f6bc=requireDevelopmentUploadFile(_0x3a2701['imageFile'],_0x10188b(0xe7)),_0x153178=await uploadDevelopmentFile(_0x44ccdc[_0x10188b(0xf1)],_0x36f6bc[_0x10188b(0xfc)]);if(!_0x153178[_0x10188b(0xff)])throw CliErrors[_0x10188b(0xfe)](_0x10188b(0x11e));const _0x123609=await queryDevelopmentFileUrl(_0x153178[_0x10188b(0xff)],{'download':![]});if(!_0x123609[_0x10188b(0xf5)])throw CliErrors[_0x10188b(0xfe)](_0x10188b(0xe6));const _0x40eb9f=await recognizeDevelopmentOcr(_0x44ccdc[_0x10188b(0xf1)],{'url':_0x123609[_0x10188b(0xf5)],'type':_0x239e74});return{'ok':!![],'data':withScene(_0x40eb9f,_0xd84253,_0x153178)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a160_0x19e4c3=a160_0x582c;(function(_0x2f2beb,_0x1c646f){const _0x49b574=a160_0x582c,_0xab1228=_0x2f2beb();while(!![]){try{const _0x30fb04=parseInt(_0x49b574(0x15e))/0x1*(-parseInt(_0x49b574(0x172))/0x2)+parseInt(_0x49b574(0x150))/0x3+parseInt(_0x49b574(0x165))/0x4*(-parseInt(_0x49b574(0x171))/0x5)+parseInt(_0x49b574(0x166))/0x6*(parseInt(_0x49b574(0x17b))/0x7)+parseInt(_0x49b574(0x152))/0x8*(parseInt(_0x49b574(0x177))/0x9)+parseInt(_0x49b574(0x179))/0xa+parseInt(_0x49b574(0x174))/0xb*(-parseInt(_0x49b574(0x14c))/0xc);if(_0x30fb04===_0x1c646f)break;else _0xab1228['push'](_0xab1228['shift']());}catch(_0x1344c4){_0xab1228['push'](_0xab1228['shift']());}}}(a160_0x4feb,0xe1d29));function a160_0x582c(_0x3d400c,_0x591cbc){_0x3d400c=_0x3d400c-0x145;const _0x4febae=a160_0x4feb();let _0x582c44=_0x4febae[_0x3d400c];return _0x582c44;}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=[a160_0x19e4c3(0x169),'general',a160_0x19e4c3(0x157),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a160_0x19e4c3(0x153),'general':a160_0x19e4c3(0x16d),'form':'Table','idCard':a160_0x19e4c3(0x154)},SCENE_FLAG={'name':a160_0x19e4c3(0x176),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a160_0x19e4c3(0x178)},IMAGE_FILE_FLAG={'name':a160_0x19e4c3(0x175),'type':a160_0x19e4c3(0x16c),'description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':'image-url','type':a160_0x19e4c3(0x16c),'description':a160_0x19e4c3(0x14f)};function normalizeScene(_0x29950b){const _0x1e17ea=a160_0x19e4c3,_0x5817d1=_0x29950b[_0x1e17ea(0x170)]()[_0x1e17ea(0x167)]();if(_0x5817d1===_0x1e17ea(0x164))return'idCard';if(_0x5817d1==='invoice'||_0x5817d1===_0x1e17ea(0x15c)||_0x5817d1===_0x1e17ea(0x157))return _0x5817d1;throw CliErrors[_0x1e17ea(0x14b)](_0x1e17ea(0x14e)+_0x29950b+_0x1e17ea(0x146)+SUPPORTED_SCENES[_0x1e17ea(0x156)](',\x20'));}function selectedInputs(_0x36deb1){const _0x258ebb=a160_0x19e4c3,_0x4a58d2=_0x36deb1[_0x258ebb(0x168)]('image-file')['trim'](),_0x363871=_0x36deb1[_0x258ebb(0x168)](_0x258ebb(0x15f))[_0x258ebb(0x170)]();return{'imageFile':_0x4a58d2,'imageUrl':_0x363871,'count':[_0x4a58d2,_0x363871]['filter'](Boolean)[_0x258ebb(0x148)]};}function validateInputSelection(_0x111f10){const _0x2b6a46=a160_0x19e4c3,_0x22cbc6=selectedInputs(_0x111f10);if(_0x22cbc6[_0x2b6a46(0x160)]!==0x1)throw CliErrors['validation'](_0x2b6a46(0x17e));return _0x22cbc6;}function withScene(_0x47d579,_0x175bc1,_0x3dab75){const _0x33f711=a160_0x19e4c3;return{..._0x47d579,'scene':_0x175bc1,..._0x3dab75?{'sourceFile':{'fileName':_0x3dab75[_0x33f711(0x16b)],'filePath':_0x3dab75['filePath']}}:{}};}const ocrRecognize={'service':a160_0x19e4c3(0x15d),'command':'recognize','description':a160_0x19e4c3(0x147),'risk':a160_0x19e4c3(0x14d),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3afb11){const _0x441629=a160_0x19e4c3,_0x24dd5d=normalizeScene(_0x3afb11[_0x441629(0x168)]('scene')),_0x53da65=SCENE_TO_LEGACY_TYPE[_0x24dd5d],_0x10639e=validateInputSelection(_0x3afb11);if(_0x10639e[_0x441629(0x162)]){const _0x7f3e9=new URLSearchParams({'url':_0x10639e['imageUrl'],'type':_0x53da65,'appCode':_0x3afb11['appCode']});return{'method':_0x441629(0x145),'url':_0x441629(0x17c)+_0x7f3e9[_0x441629(0x15a)](),'description':_0x441629(0x173)+_0x24dd5d+_0x441629(0x16e)};}const _0x347437=requireDevelopmentUploadFile(_0x10639e['imageFile'],'image-file');return{'method':'POST','url':_0x441629(0x16f),'body':{'steps':[{'method':_0x441629(0x163),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x3afb11[_0x441629(0x14a)],'multipart':{'file':_0x347437}}},{'method':_0x441629(0x163),'url':_0x441629(0x151),'body':{'filePath':_0x441629(0x17d),'downloadFlag':![]}},{'method':'GET','url':_0x441629(0x16a),'query':{'appCode':_0x3afb11['appCode'],'url':_0x441629(0x158),'type':_0x53da65}}]},'description':'Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x24dd5d+'\x20OCR'};},async 'execute'(_0x50eba9){const _0x433320=a160_0x19e4c3,_0xbb6487=normalizeScene(_0x50eba9[_0x433320(0x168)](_0x433320(0x176))),_0x4e911b=SCENE_TO_LEGACY_TYPE[_0xbb6487],_0x3fa18e=validateInputSelection(_0x50eba9);if(_0x3fa18e[_0x433320(0x162)]){const _0x2c8d60=await recognizeDevelopmentOcr(_0x50eba9[_0x433320(0x14a)],{'url':_0x3fa18e[_0x433320(0x162)],'type':_0x4e911b});return{'ok':!![],'data':withScene(_0x2c8d60,_0xbb6487)};}const _0x14e802=requireDevelopmentUploadFile(_0x3fa18e[_0x433320(0x161)],_0x433320(0x175)),_0xf9a9b9=await uploadDevelopmentFile(_0x50eba9[_0x433320(0x14a)],_0x14e802[_0x433320(0x15b)]);if(!_0xf9a9b9[_0x433320(0x159)])throw CliErrors[_0x433320(0x149)](_0x433320(0x17a));const _0x308ec0=await queryDevelopmentFileUrl(_0xf9a9b9['filePath'],{'download':![]});if(!_0x308ec0['fileUrl'])throw CliErrors['apiError'](_0x433320(0x155));const _0x59987d=await recognizeDevelopmentOcr(_0x50eba9[_0x433320(0x14a)],{'url':_0x308ec0['fileUrl'],'type':_0x4e911b});return{'ok':!![],'data':withScene(_0x59987d,_0xbb6487,_0xf9a9b9)};}};export const ocrDefinitions=[ocrRecognize];function a160_0x4feb(){const _0x1dffae=['Invoice','IdCard','File\x20URL\x20response\x20missing\x20fileUrl.','join','form','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','filePath','toString','path','general','ocr','23047FAYQmM','image-url','count','imageFile','imageUrl','POST','idcard','1436fJDCHu','4942596hMBdPj','toLowerCase','str','invoice','/smartapi/ocr/recognize-text','fileName','string','General','\x20OCR\x20from\x20URL','/smartapi/common/uploadFile','trim','4765QYycAs','26TqfPhZ','Preview:\x20recognize\x20','11lTWaaO','image-file','scene','7029OEchBJ','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','390420UuWTRe','File\x20upload\x20response\x20missing\x20filePath.','14MtcMRc','/smartapi/ocr/recognize-text?','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','GET','.\x20Supported\x20scenes:\x20','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','length','apiError','appCode','validation','20965944Jzkrea','read','Unsupported\x20OCR\x20scene:\x20','Publicly\x20accessible\x20image\x20or\x20file\x20URL','1622772vXXsko','/smartapi/common/queryFileUrl','11128fEFMdV'];a160_0x4feb=function(){return _0x1dffae;};return a160_0x4feb();}
@@ -1 +1 @@
1
- const a148_0x310024=a148_0x4cc9;(function(_0x412532,_0x5620cf){const _0x512a60=a148_0x4cc9,_0x5c73ce=_0x412532();while(!![]){try{const _0x255ef2=parseInt(_0x512a60(0x1eb))/0x1+parseInt(_0x512a60(0x1d0))/0x2*(-parseInt(_0x512a60(0x1d1))/0x3)+parseInt(_0x512a60(0x1f0))/0x4+-parseInt(_0x512a60(0x1e3))/0x5+-parseInt(_0x512a60(0x200))/0x6*(-parseInt(_0x512a60(0x1e0))/0x7)+-parseInt(_0x512a60(0x1d5))/0x8+parseInt(_0x512a60(0x20b))/0x9*(-parseInt(_0x512a60(0x1ef))/0xa);if(_0x255ef2===_0x5620cf)break;else _0x5c73ce['push'](_0x5c73ce['shift']());}catch(_0x4e545){_0x5c73ce['push'](_0x5c73ce['shift']());}}}(a148_0x1115,0x8115c));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a148_0x4cc9(_0x9c2f63,_0x1f9f70){_0x9c2f63=_0x9c2f63-0x1d0;const _0x1115d6=a148_0x1115();let _0x4cc94b=_0x1115d6[_0x9c2f63];return _0x4cc94b;}import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';function a148_0x1115(){const _0xf0f116=['213040tjOAGE','18QngOMa','keys','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','CUSTOM','3079120JDIUFq','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','isInteger','version','string','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','createMenu','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','page-type','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','75859UhGyqx','appCode','Would\x20create\x20Custom\x20Page\x20','575075ysHQcy','pagePattern','page-content','length','page','stringify','str','pageName\x20cannot\x20exceed\x20100\x20characters.','943804lnltDB','POST','Custom_page_','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','6123190ajjVeP','2007292cjXlXf','files','pageId','create','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','validation','name','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','pageName','parentMenuId','menuPath','menuId','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','langs','page\x20create\x20does\x20not\x20accept\x20--page-type.','462zlxLjF','warnings','parent-menu-id','input','zh-CN','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','now','trim','/smartapi/webcode/page/create','BLANK','page-pattern','9uReanw','\x20and\x20its\x20menu\x20entry.'];a148_0x1115=function(){return _0xf0f116;};return a148_0x1115();}const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a148_0x310024(0x204),'en-US'];export const pageCreate={'service':a148_0x310024(0x1e7),'command':a148_0x310024(0x1f3),'description':a148_0x310024(0x1db),'risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a148_0x310024(0x1de),'message':a148_0x310024(0x1ff),'hint':a148_0x310024(0x205)}],'flags':[{'name':a148_0x310024(0x1f6),'type':'string','description':a148_0x310024(0x1d6)},{'name':'parent-menu-id','type':'number','description':a148_0x310024(0x1f4)},{'name':'page-pattern','type':a148_0x310024(0x1d9),'description':a148_0x310024(0x1f8),'enum':[a148_0x310024(0x209)]},{'name':a148_0x310024(0x1e5),'type':'string','description':a148_0x310024(0x1da)},APPCODE_FLAG],async 'validate'(_0x442a7d){const _0x82eace=a148_0x310024,_0x276905=readPagePattern(_0x442a7d);await validateCustomPageContent(readInput(_0x442a7d,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x276905)[_0x82eace(0x1f1)]);},async 'dryRun'(_0xfefc92){const _0x1c69e8=a148_0x310024,{input:_0xe36efd}=await prepare(_0xfefc92);return{'method':_0x1c69e8(0x1ec),'url':_0x1c69e8(0x208),'body':{'appCode':_0xe36efd['appCode'],'pageName':_0xe36efd[_0x1c69e8(0x1f9)],..._0xe36efd[_0x1c69e8(0x1fa)]!=null?{'parentMenuId':_0xe36efd[_0x1c69e8(0x1fa)]}:{},'createMenu':_0xe36efd[_0x1c69e8(0x1dc)],'codeContent':_0xe36efd[_0x1c69e8(0x1f1)]},'description':_0x1c69e8(0x1e2)+JSON[_0x1c69e8(0x1e8)](_0xe36efd[_0x1c69e8(0x1f9)])+_0x1c69e8(0x20c)};},async 'execute'(_0x2f68f4){const _0xa45a5b=a148_0x310024,_0x5a0141=await prepare(_0x2f68f4),_0x5cce86=await createCustomPage(_0x5a0141[_0xa45a5b(0x203)]);if(!Number[_0xa45a5b(0x1d7)](_0x5cce86[_0xa45a5b(0x1f2)])||_0x5cce86[_0xa45a5b(0x1f2)]<=0x0)throw CliErrors['apiError'](_0xa45a5b(0x1df));return{'ok':!![],'data':buildMutationData(_0x5a0141,_0x5cce86),'message':'Created\x20Custom\x20Page\x20'+_0x5cce86[_0xa45a5b(0x1f2)]+'.'};}};async function prepare(_0x51f214){const _0x50525e=a148_0x310024,_0x1d38d1=readPagePattern(_0x51f214);if(_0x1d38d1===null)return{'input':readInput(_0x51f214,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1d38d1),'warnings':[],'pagePattern':_0x1d38d1};let _0x1f4143=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1a25d2=[];try{const _0x256020=await getI18nInfo(_0x51f214['appCode']);_0x256020['enableI18n']&&_0x256020[_0x50525e(0x1fe)]?.[_0x50525e(0x1e6)]&&(_0x1f4143=_0x256020[_0x50525e(0x1fe)]);}catch{_0x1a25d2=[_0x50525e(0x1dd)];}return{'input':readInput(_0x51f214,_0x1f4143,_0x1d38d1),'warnings':_0x1a25d2,'pagePattern':_0x1d38d1};}function readPagePattern(_0x138747){const _0x2612ba=a148_0x310024,_0xb825e3=_0x138747[_0x2612ba(0x1e9)](_0x2612ba(0x20a))[_0x2612ba(0x207)](),_0x51e08d=_0x138747[_0x2612ba(0x1e9)](_0x2612ba(0x1e5))[_0x2612ba(0x207)]()[_0x2612ba(0x1e6)]>0x0;if(_0xb825e3&&_0x51e08d)throw CliErrors['validation']('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x51e08d)return null;if(!_0xb825e3)throw CliErrors[_0x2612ba(0x1f5)](_0x2612ba(0x1ee));if(_0xb825e3!=='BLANK')throw CliErrors[_0x2612ba(0x1f5)](_0x2612ba(0x1fd));return _0xb825e3;}function readInput(_0x575219,_0x1e15f7=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x11ac02=readPagePattern(_0x575219)){const _0x56a2d4=a148_0x310024,_0x362eb7=_0x575219[_0x56a2d4(0x1e9)](_0x56a2d4(0x1f6))['trim']()||_0x56a2d4(0x1ed)+Date[_0x56a2d4(0x206)]();if(_0x362eb7[_0x56a2d4(0x1e6)]>0x64)throw CliErrors[_0x56a2d4(0x1f5)](_0x56a2d4(0x1ea));const _0xc2d013=_0x575219['num'](_0x56a2d4(0x202),NaN),_0x3ce989=!Number['isNaN'](_0xc2d013);if(_0x3ce989&&(!Number[_0x56a2d4(0x1d7)](_0xc2d013)||_0xc2d013<=0x0))throw CliErrors[_0x56a2d4(0x1f5)](_0x56a2d4(0x1d3));return{'appCode':_0x575219[_0x56a2d4(0x1e1)],'pageName':_0x362eb7,..._0x3ce989?{'parentMenuId':_0xc2d013}:{},'createMenu':!![],'files':_0x11ac02===null?parseCustomPageContent(_0x575219['str'](_0x56a2d4(0x1e5))):buildInitialFiles(_0x362eb7,_0x1e15f7)};}function buildMutationData(_0x23bac8,_0x2aa7c2){const _0x2d0c8b=a148_0x310024,{input:_0x3daf12}=_0x23bac8,_0x258d62=_0x2aa7c2&&buildCustomPageDevelopmentUrl(_0x3daf12[_0x2d0c8b(0x1e1)],_0x2aa7c2[_0x2d0c8b(0x1fb)]),_0xf0a78d=_0x2aa7c2&&buildCustomPageEditUrl(_0x3daf12[_0x2d0c8b(0x1e1)],_0x2aa7c2[_0x2d0c8b(0x1f2)]);return{'operation':'page.create','pageType':_0x2d0c8b(0x1d4),'pagePattern':_0x23bac8[_0x2d0c8b(0x1e4)],'selector':{'appCode':_0x3daf12[_0x2d0c8b(0x1e1)],'pageName':_0x3daf12['pageName']},'before':null,'after':{'pageId':_0x2aa7c2?.[_0x2d0c8b(0x1f2)]??null,'pageName':_0x2aa7c2?.[_0x2d0c8b(0x1f9)]??_0x3daf12[_0x2d0c8b(0x1f9)],'appCode':_0x2aa7c2?.[_0x2d0c8b(0x1e1)]??_0x3daf12[_0x2d0c8b(0x1e1)],'version':_0x2aa7c2?.[_0x2d0c8b(0x1d8)]??null,'menuId':_0x2aa7c2?.[_0x2d0c8b(0x1fc)]??null,'menuPath':_0x2aa7c2?.['menuPath']??null,'files':_0x2aa7c2?.['files']??Object[_0x2d0c8b(0x1d2)](_0x3daf12[_0x2d0c8b(0x1f1)])},'dryRun':_0x2aa7c2===undefined,'request':_0x3daf12,..._0x258d62?{'pageUrl':_0x258d62}:{},..._0xf0a78d?{'editPageUrl':_0xf0a78d}:{},'warnings':[..._0x23bac8[_0x2d0c8b(0x201)],..._0x2aa7c2&&!_0x258d62?[_0x2d0c8b(0x1f7)]:[]]};}
1
+ const a161_0x7790f1=a161_0xa56f;(function(_0x570463,_0x57f437){const _0x5064bd=a161_0xa56f,_0x3b432b=_0x570463();while(!![]){try{const _0x51f9a4=parseInt(_0x5064bd(0x149))/0x1+parseInt(_0x5064bd(0x156))/0x2*(parseInt(_0x5064bd(0x164))/0x3)+parseInt(_0x5064bd(0x15e))/0x4+-parseInt(_0x5064bd(0x14c))/0x5*(-parseInt(_0x5064bd(0x168))/0x6)+parseInt(_0x5064bd(0x170))/0x7+-parseInt(_0x5064bd(0x14e))/0x8*(-parseInt(_0x5064bd(0x16d))/0x9)+-parseInt(_0x5064bd(0x172))/0xa;if(_0x51f9a4===_0x57f437)break;else _0x3b432b['push'](_0x3b432b['shift']());}catch(_0xd3afb5){_0x3b432b['push'](_0x3b432b['shift']());}}}(a161_0x332b,0x2d1cd));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a161_0xa56f(_0xdb7242,_0x8e730f){_0xdb7242=_0xdb7242-0x140;const _0x332b5b=a161_0x332b();let _0xa56f0f=_0x332b5b[_0xdb7242];return _0xa56f0f;}import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a161_0x7790f1(0x153),a161_0x7790f1(0x151)];export const pageCreate={'service':a161_0x7790f1(0x15b),'command':'create','description':a161_0x7790f1(0x163),'risk':'write','defaultOutputFormat':a161_0x7790f1(0x159),'structuredErrors':!![],'rejectedFlags':[{'name':a161_0x7790f1(0x16b),'message':'page\x20create\x20does\x20not\x20accept\x20--page-type.','hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':a161_0x7790f1(0x16c),'type':a161_0x7790f1(0x167),'description':a161_0x7790f1(0x150)},{'name':a161_0x7790f1(0x176),'type':a161_0x7790f1(0x162),'description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a161_0x7790f1(0x177),'type':a161_0x7790f1(0x167),'description':a161_0x7790f1(0x142),'enum':[a161_0x7790f1(0x17b)]},{'name':a161_0x7790f1(0x14b),'type':a161_0x7790f1(0x167),'description':a161_0x7790f1(0x141)},APPCODE_FLAG],async 'validate'(_0x4dcb54){const _0x106286=a161_0x7790f1,_0x41168b=readPagePattern(_0x4dcb54);await validateCustomPageContent(readInput(_0x4dcb54,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x41168b)[_0x106286(0x14f)]);},async 'dryRun'(_0x49940a){const _0x379435=a161_0x7790f1,{input:_0x5afdde}=await prepare(_0x49940a);return{'method':_0x379435(0x154),'url':_0x379435(0x161),'body':{'appCode':_0x5afdde[_0x379435(0x15c)],'pageName':_0x5afdde[_0x379435(0x14d)],..._0x5afdde[_0x379435(0x174)]!=null?{'parentMenuId':_0x5afdde[_0x379435(0x174)]}:{},'createMenu':_0x5afdde[_0x379435(0x145)],'codeContent':_0x5afdde[_0x379435(0x14f)]},'description':_0x379435(0x140)+JSON['stringify'](_0x5afdde['pageName'])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0x128fce){const _0x178962=a161_0x7790f1,_0x31782f=await prepare(_0x128fce),_0x5abb59=await createCustomPage(_0x31782f[_0x178962(0x16a)]);if(!Number[_0x178962(0x160)](_0x5abb59[_0x178962(0x15d)])||_0x5abb59[_0x178962(0x15d)]<=0x0)throw CliErrors[_0x178962(0x158)](_0x178962(0x157));return{'ok':!![],'data':buildMutationData(_0x31782f,_0x5abb59),'message':_0x178962(0x147)+_0x5abb59[_0x178962(0x15d)]+'.'};}};async function prepare(_0x59d671){const _0x266e9f=a161_0x7790f1,_0x4abdc5=readPagePattern(_0x59d671);if(_0x4abdc5===null)return{'input':readInput(_0x59d671,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x4abdc5),'warnings':[],'pagePattern':_0x4abdc5};let _0x5d3b58=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xd0744a=[];try{const _0x51d23a=await getI18nInfo(_0x59d671[_0x266e9f(0x15c)]);_0x51d23a[_0x266e9f(0x171)]&&_0x51d23a[_0x266e9f(0x166)]?.[_0x266e9f(0x14a)]&&(_0x5d3b58=_0x51d23a['langs']);}catch{_0xd0744a=[_0x266e9f(0x179)];}return{'input':readInput(_0x59d671,_0x5d3b58,_0x4abdc5),'warnings':_0xd0744a,'pagePattern':_0x4abdc5};}function readPagePattern(_0x157c8c){const _0x20b5e7=a161_0x7790f1,_0x453736=_0x157c8c[_0x20b5e7(0x143)](_0x20b5e7(0x177))[_0x20b5e7(0x15a)](),_0x2e52b7=_0x157c8c[_0x20b5e7(0x143)](_0x20b5e7(0x14b))[_0x20b5e7(0x15a)]()[_0x20b5e7(0x14a)]>0x0;if(_0x453736&&_0x2e52b7)throw CliErrors[_0x20b5e7(0x144)](_0x20b5e7(0x175));if(_0x2e52b7)return null;if(!_0x453736)throw CliErrors['validation'](_0x20b5e7(0x173));if(_0x453736!==_0x20b5e7(0x17b))throw CliErrors[_0x20b5e7(0x144)](_0x20b5e7(0x178));return _0x453736;}function readInput(_0x2da4c2,_0x33cdbd=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x19d7ad=readPagePattern(_0x2da4c2)){const _0x4f6870=a161_0x7790f1,_0x1430fd=_0x2da4c2['str'](_0x4f6870(0x16c))[_0x4f6870(0x15a)]()||'Custom_page_'+Date[_0x4f6870(0x16f)]();if(_0x1430fd[_0x4f6870(0x14a)]>0x64)throw CliErrors['validation'](_0x4f6870(0x169));const _0x2650df=_0x2da4c2['num'](_0x4f6870(0x176),NaN),_0x42e5c2=!Number[_0x4f6870(0x165)](_0x2650df);if(_0x42e5c2&&(!Number[_0x4f6870(0x160)](_0x2650df)||_0x2650df<=0x0))throw CliErrors[_0x4f6870(0x144)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x2da4c2[_0x4f6870(0x15c)],'pageName':_0x1430fd,..._0x42e5c2?{'parentMenuId':_0x2650df}:{},'createMenu':!![],'files':_0x19d7ad===null?parseCustomPageContent(_0x2da4c2[_0x4f6870(0x143)](_0x4f6870(0x14b))):buildInitialFiles(_0x1430fd,_0x33cdbd)};}function buildMutationData(_0x27a3c4,_0x9bde69){const _0x44f923=a161_0x7790f1,{input:_0x21da62}=_0x27a3c4,_0x42e1f5=_0x9bde69&&buildCustomPageDevelopmentUrl(_0x21da62[_0x44f923(0x15c)],_0x9bde69[_0x44f923(0x155)]),_0x590f30=_0x9bde69&&buildCustomPageEditUrl(_0x21da62['appCode'],_0x9bde69[_0x44f923(0x15d)]);return{'operation':_0x44f923(0x15f),'pageType':_0x44f923(0x152),'pagePattern':_0x27a3c4['pagePattern'],'selector':{'appCode':_0x21da62[_0x44f923(0x15c)],'pageName':_0x21da62['pageName']},'before':null,'after':{'pageId':_0x9bde69?.[_0x44f923(0x15d)]??null,'pageName':_0x9bde69?.[_0x44f923(0x14d)]??_0x21da62[_0x44f923(0x14d)],'appCode':_0x9bde69?.['appCode']??_0x21da62[_0x44f923(0x15c)],'version':_0x9bde69?.[_0x44f923(0x146)]??null,'menuId':_0x9bde69?.[_0x44f923(0x17a)]??null,'menuPath':_0x9bde69?.[_0x44f923(0x155)]??null,'files':_0x9bde69?.['files']??Object[_0x44f923(0x148)](_0x21da62[_0x44f923(0x14f)])},'dryRun':_0x9bde69===undefined,'request':_0x21da62,..._0x42e1f5?{'pageUrl':_0x42e1f5}:{},..._0x590f30?{'editPageUrl':_0x590f30}:{},'warnings':[..._0x27a3c4['warnings'],..._0x9bde69&&!_0x42e1f5?[_0x44f923(0x16e)]:[]]};}function a161_0x332b(){const _0x550cbe=['compress','trim','page','appCode','pageId','176788bKsSME','page.create','isInteger','/smartapi/webcode/page/create','number','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','51VHlLYs','isNaN','langs','string','1365462qMeTTN','pageName\x20cannot\x20exceed\x20100\x20characters.','input','page-type','name','1164762XUVbmU','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','now','1779687qEEukz','enableI18n','8394710oCFrxs','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','parentMenuId','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','parent-menu-id','page-pattern','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','menuId','BLANK','Would\x20create\x20Custom\x20Page\x20','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','str','validation','createMenu','version','Created\x20Custom\x20Page\x20','keys','250210zmXGVa','length','page-content','5tlJvBd','pageName','8FTYNVk','files','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','en-US','CUSTOM','zh-CN','POST','menuPath','13954OphTje','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','apiError'];a161_0x332b=function(){return _0x550cbe;};return a161_0x332b();}
@@ -1 +1 @@
1
- function a149_0x19f5(_0x53f5b9,_0x485c22){_0x53f5b9=_0x53f5b9-0x15a;const _0x4a5c36=a149_0x4a5c();let _0x19f560=_0x4a5c36[_0x53f5b9];return _0x19f560;}function a149_0x4a5c(){const _0x40ccf2=['20CWmOyB','getFullYear','8854952pnZSzV','435VuOyDJ','23492SQLQJQ','498662ucFdzd','761733gideAS','getMinutes','padStart','317872OqdDsz','16880171KrWQEj','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','getDate','str','page','getHours','cookie','read','getTime','join','getMonth','appcode','getSeconds','3714672iQkFTt','number','12NQrjpg','trim','custom-detail','9XpOFGT'];a149_0x4a5c=function(){return _0x40ccf2;};return a149_0x4a5c();}const a149_0x12c96a=a149_0x19f5;(function(_0xc10e6,_0x1057d7){const _0x3f313f=a149_0x19f5,_0x470fcc=_0xc10e6();while(!![]){try{const _0x1ba5aa=-parseInt(_0x3f313f(0x16c))/0x1+-parseInt(_0x3f313f(0x170))/0x2*(parseInt(_0x3f313f(0x163))/0x3)+parseInt(_0x3f313f(0x16b))/0x4*(parseInt(_0x3f313f(0x16a))/0x5)+-parseInt(_0x3f313f(0x161))/0x6+-parseInt(_0x3f313f(0x16d))/0x7+parseInt(_0x3f313f(0x169))/0x8*(-parseInt(_0x3f313f(0x166))/0x9)+parseInt(_0x3f313f(0x167))/0xa*(parseInt(_0x3f313f(0x171))/0xb);if(_0x1ba5aa===_0x1057d7)break;else _0x470fcc['push'](_0x470fcc['shift']());}catch(_0x17d7e1){_0x470fcc['push'](_0x470fcc['shift']());}}}(a149_0x4a5c,0x95233));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a149_0x12c96a(0x175),'command':a149_0x12c96a(0x165),'description':a149_0x12c96a(0x172),'risk':a149_0x12c96a(0x15b),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x12c96a(0x162),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x46fb4e){readCustomPageId(_0x46fb4e);},async 'execute'(_0x46259b){const _0x11273d=a149_0x12c96a,_0x31e174=readCustomPageId(_0x46259b),_0x2064ae=await getCustomPageSource(_0x31e174),{bundle:_0x4378cf,createTime:_0x3d4541,updateTime:_0x266ec7,..._0x1b3be2}=_0x2064ae,_0x649781=_0x2064ae['id']??_0x31e174,_0x507090=_0x2064ae['appCode']?.['trim']()||_0x46259b[_0x11273d(0x174)](_0x11273d(0x15f))[_0x11273d(0x164)](),_0x503b31=buildCustomPageRuntimeUrl(_0x507090,_0x2064ae['pageCode']),_0x324acc=buildCustomPageEditUrl(_0x507090,_0x649781),_0x59f3bc=await resolveCustomPageDevelopmentUrl(_0x507090,_0x649781,_0x46259b[_0x11273d(0x15a)]);return{'ok':!![],'data':{..._0x1b3be2,..._0x503b31?{'runtimePageUrl':_0x503b31}:{},..._0x59f3bc?{'pageUrl':_0x59f3bc}:{},..._0x324acc?{'editPageUrl':_0x324acc}:{},..._0x3d4541==null?{}:{'createTime':formatTime(_0x3d4541)},..._0x266ec7==null?{}:{'updateTime':formatTime(_0x266ec7)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x31e174+'.'};}};function formatTime(_0x59ef0a){const _0x4d4a5f=a149_0x12c96a,_0x7f12c=new Date(_0x59ef0a);if(Number['isNaN'](_0x7f12c[_0x4d4a5f(0x15c)]()))return String(_0x59ef0a);const _0x55bf01=[_0x7f12c[_0x4d4a5f(0x168)](),String(_0x7f12c[_0x4d4a5f(0x15e)]()+0x1)[_0x4d4a5f(0x16f)](0x2,'0'),String(_0x7f12c[_0x4d4a5f(0x173)]())[_0x4d4a5f(0x16f)](0x2,'0')][_0x4d4a5f(0x15d)]('-'),_0x405f84=[String(_0x7f12c[_0x4d4a5f(0x176)]())[_0x4d4a5f(0x16f)](0x2,'0'),String(_0x7f12c[_0x4d4a5f(0x16e)]())[_0x4d4a5f(0x16f)](0x2,'0'),String(_0x7f12c[_0x4d4a5f(0x160)]())['padStart'](0x2,'0')][_0x4d4a5f(0x15d)](':');return _0x55bf01+'\x20'+_0x405f84;}
1
+ function a162_0x56a7(_0x19be6f,_0x226da6){_0x19be6f=_0x19be6f-0x1c1;const _0x4ab553=a162_0x4ab5();let _0x56a7ef=_0x4ab553[_0x19be6f];return _0x56a7ef;}const a162_0x1276b2=a162_0x56a7;(function(_0x3b2e7c,_0x418296){const _0x836626=a162_0x56a7,_0x12f2d2=_0x3b2e7c();while(!![]){try{const _0xc28c1f=parseInt(_0x836626(0x1d3))/0x1*(-parseInt(_0x836626(0x1cf))/0x2)+parseInt(_0x836626(0x1d9))/0x3*(parseInt(_0x836626(0x1c7))/0x4)+-parseInt(_0x836626(0x1cc))/0x5*(parseInt(_0x836626(0x1c8))/0x6)+-parseInt(_0x836626(0x1c2))/0x7+-parseInt(_0x836626(0x1d4))/0x8+parseInt(_0x836626(0x1c3))/0x9*(parseInt(_0x836626(0x1d6))/0xa)+parseInt(_0x836626(0x1c6))/0xb;if(_0xc28c1f===_0x418296)break;else _0x12f2d2['push'](_0x12f2d2['shift']());}catch(_0x3bc0ed){_0x12f2d2['push'](_0x12f2d2['shift']());}}}(a162_0x4ab5,0x46a5b));import{getCustomPageSource}from'../../../core/api-client.js';function a162_0x4ab5(){const _0x2de870=['cookie','63693RKvXuZ','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','getFullYear','getSeconds','appcode','compress','number','1926855CAtMDp','396tDRCgQ','getMonth','trim','7353104jAlWmO','76hXCXHz','18YPJawJ','getMinutes','getTime','getHours','431405ibwdUG','isNaN','pageCode','435752TTJrZt','getDate','custom-detail','read','1wtlgBG','1391856itFfek','appCode','32610zaodSl','padStart'];a162_0x4ab5=function(){return _0x2de870;};return a162_0x4ab5();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a162_0x1276b2(0x1d1),'description':a162_0x1276b2(0x1da),'risk':a162_0x1276b2(0x1d2),'defaultOutputFormat':a162_0x1276b2(0x1de),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a162_0x1276b2(0x1c1),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5dbb12){readCustomPageId(_0x5dbb12);},async 'execute'(_0x8032e8){const _0x44718b=a162_0x1276b2,_0x59d411=readCustomPageId(_0x8032e8),_0x121fab=await getCustomPageSource(_0x59d411),{bundle:_0x47c4ad,createTime:_0xa861e1,updateTime:_0x299cfc,..._0x4eaf5a}=_0x121fab,_0x233274=_0x121fab['id']??_0x59d411,_0x2b4cc0=_0x121fab[_0x44718b(0x1d5)]?.[_0x44718b(0x1c5)]()||_0x8032e8['str'](_0x44718b(0x1dd))[_0x44718b(0x1c5)](),_0x4cf317=buildCustomPageRuntimeUrl(_0x2b4cc0,_0x121fab[_0x44718b(0x1ce)]),_0xea6b4d=buildCustomPageEditUrl(_0x2b4cc0,_0x233274),_0x5267fb=await resolveCustomPageDevelopmentUrl(_0x2b4cc0,_0x233274,_0x8032e8[_0x44718b(0x1d8)]);return{'ok':!![],'data':{..._0x4eaf5a,..._0x4cf317?{'runtimePageUrl':_0x4cf317}:{},..._0x5267fb?{'pageUrl':_0x5267fb}:{},..._0xea6b4d?{'editPageUrl':_0xea6b4d}:{},..._0xa861e1==null?{}:{'createTime':formatTime(_0xa861e1)},..._0x299cfc==null?{}:{'updateTime':formatTime(_0x299cfc)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x59d411+'.'};}};function formatTime(_0x9a0ee3){const _0x5c4a2d=a162_0x1276b2,_0x4939f1=new Date(_0x9a0ee3);if(Number[_0x5c4a2d(0x1cd)](_0x4939f1[_0x5c4a2d(0x1ca)]()))return String(_0x9a0ee3);const _0x562555=[_0x4939f1[_0x5c4a2d(0x1db)](),String(_0x4939f1[_0x5c4a2d(0x1c4)]()+0x1)[_0x5c4a2d(0x1d7)](0x2,'0'),String(_0x4939f1[_0x5c4a2d(0x1d0)]())[_0x5c4a2d(0x1d7)](0x2,'0')]['join']('-'),_0x50bdbb=[String(_0x4939f1[_0x5c4a2d(0x1cb)]())['padStart'](0x2,'0'),String(_0x4939f1[_0x5c4a2d(0x1c9)]())['padStart'](0x2,'0'),String(_0x4939f1[_0x5c4a2d(0x1dc)]())[_0x5c4a2d(0x1d7)](0x2,'0')]['join'](':');return _0x562555+'\x20'+_0x50bdbb;}
@@ -1 +1 @@
1
- const a150_0x26b25d=a150_0x3b90;(function(_0x3d48d6,_0x3c67aa){const _0x33282d=a150_0x3b90,_0x301e62=_0x3d48d6();while(!![]){try{const _0x3da0b6=parseInt(_0x33282d(0x16c))/0x1+parseInt(_0x33282d(0x17c))/0x2+parseInt(_0x33282d(0x16f))/0x3*(-parseInt(_0x33282d(0x17e))/0x4)+parseInt(_0x33282d(0x17d))/0x5+parseInt(_0x33282d(0x16e))/0x6*(parseInt(_0x33282d(0x16d))/0x7)+-parseInt(_0x33282d(0x174))/0x8+parseInt(_0x33282d(0x16a))/0x9*(parseInt(_0x33282d(0x16b))/0xa);if(_0x3da0b6===_0x3c67aa)break;else _0x301e62['push'](_0x301e62['shift']());}catch(_0x20a314){_0x301e62['push'](_0x301e62['shift']());}}}(a150_0x231f,0x8b610));function a150_0x231f(){const _0x2cf5bb=['page','\x20Custom\x20Page(s).','appCode','cookie','react','1132260MpQnIL','2097245puUMtS','1856252JiXsPo','read','16245WSYkdc','70wVTvqO','861763NCzFll','1263731IMkzGI','6Lrnmrc','3isMkYz','No\x20Custom\x20Pages\x20found.','type','flatMap','pageId','8044408nJkPei','compress','length'];a150_0x231f=function(){return _0x2cf5bb;};return a150_0x231f();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a150_0x3b90(_0x4f4c15,_0x448483){_0x4f4c15=_0x4f4c15-0x169;const _0x231f49=a150_0x231f();let _0x3b9079=_0x231f49[_0x4f4c15];return _0x3b9079;}export const pageCustomList={'service':a150_0x26b25d(0x177),'command':'custom-list','description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a150_0x26b25d(0x169),'defaultOutputFormat':a150_0x26b25d(0x175),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2bbc11){const _0x50e4e9=a150_0x26b25d,_0x59f861=(await fetchMenuSnapshot(_0x2bbc11[_0x50e4e9(0x179)],_0x2bbc11[_0x50e4e9(0x17a)]))['menus'][_0x50e4e9(0x172)](_0xe38d1c=>{const _0x180975=_0x50e4e9;if(_0xe38d1c[_0x180975(0x171)]!==_0x180975(0x17b)||_0xe38d1c['pageId']==null)return[];const _0x652795=buildCustomPageDevelopmentUrl(_0x2bbc11[_0x180975(0x179)],_0xe38d1c['path']),_0x182a88=buildCustomPageEditUrl(_0x2bbc11['appCode'],_0xe38d1c[_0x180975(0x173)]);return[{'pageId':_0xe38d1c[_0x180975(0x173)],'label':_0xe38d1c['label'],..._0x652795?{'pageUrl':_0x652795}:{},..._0x182a88?{'editPageUrl':_0x182a88}:{}}];});return{'ok':!![],'data':{'pages':_0x59f861},'message':_0x59f861['length']===0x0?_0x50e4e9(0x170):'Found\x20'+_0x59f861[_0x50e4e9(0x176)]+_0x50e4e9(0x178)};}};
1
+ const a163_0x4445b6=a163_0x7d8f;(function(_0x518a81,_0x1c8281){const _0x2f2089=a163_0x7d8f,_0x119c3f=_0x518a81();while(!![]){try{const _0x5052a1=-parseInt(_0x2f2089(0x11e))/0x1*(-parseInt(_0x2f2089(0x11a))/0x2)+parseInt(_0x2f2089(0x123))/0x3+-parseInt(_0x2f2089(0x12d))/0x4*(-parseInt(_0x2f2089(0x12b))/0x5)+parseInt(_0x2f2089(0x127))/0x6*(-parseInt(_0x2f2089(0x11d))/0x7)+parseInt(_0x2f2089(0x129))/0x8*(parseInt(_0x2f2089(0x11f))/0x9)+parseInt(_0x2f2089(0x11c))/0xa+-parseInt(_0x2f2089(0x124))/0xb;if(_0x5052a1===_0x1c8281)break;else _0x119c3f['push'](_0x119c3f['shift']());}catch(_0x284299){_0x119c3f['push'](_0x119c3f['shift']());}}}(a163_0x36ea,0xe6b8e));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a163_0x7d8f(_0x2fa7f9,_0x584096){_0x2fa7f9=_0x2fa7f9-0x119;const _0x36ea42=a163_0x36ea();let _0x7d8f0d=_0x36ea42[_0x2fa7f9];return _0x7d8f0d;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a163_0x36ea(){const _0x491424=['9247239cjCkRa','compress','menus','type','4384017DgrKAa','40878431PXWNOt','length','label','945240WlbGBv','Found\x20','8mDyGDf','appCode','6874565pAMcaF','pageId','4lsLqgS','No\x20Custom\x20Pages\x20found.','cookie','22IoxvWe','page','13575450gsUCbB','42ibbBne','35021ssjHyN'];a163_0x36ea=function(){return _0x491424;};return a163_0x36ea();}export const pageCustomList={'service':a163_0x4445b6(0x11b),'command':'custom-list','description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':'read','defaultOutputFormat':a163_0x4445b6(0x120),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x217926){const _0x1ea5dc=a163_0x4445b6,_0x173b5e=(await fetchMenuSnapshot(_0x217926[_0x1ea5dc(0x12a)],_0x217926[_0x1ea5dc(0x119)]))[_0x1ea5dc(0x121)]['flatMap'](_0x9c73f3=>{const _0x20e03a=_0x1ea5dc;if(_0x9c73f3[_0x20e03a(0x122)]!=='react'||_0x9c73f3[_0x20e03a(0x12c)]==null)return[];const _0x26bb19=buildCustomPageDevelopmentUrl(_0x217926[_0x20e03a(0x12a)],_0x9c73f3['path']),_0xc4fcd6=buildCustomPageEditUrl(_0x217926[_0x20e03a(0x12a)],_0x9c73f3[_0x20e03a(0x12c)]);return[{'pageId':_0x9c73f3[_0x20e03a(0x12c)],'label':_0x9c73f3[_0x20e03a(0x126)],..._0x26bb19?{'pageUrl':_0x26bb19}:{},..._0xc4fcd6?{'editPageUrl':_0xc4fcd6}:{}}];});return{'ok':!![],'data':{'pages':_0x173b5e},'message':_0x173b5e[_0x1ea5dc(0x125)]===0x0?_0x1ea5dc(0x12e):_0x1ea5dc(0x128)+_0x173b5e[_0x1ea5dc(0x125)]+'\x20Custom\x20Page(s).'};}};
@@ -1 +1 @@
1
- function a151_0xbb7d(){const _0x1c54f3=['status','appCode','72876YpzLEF','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','page','write','39KQEsWP','pageId','cookie','Custom\x20Page\x20ID','pageCode','270rHjNHp','749180VzrKhU','52392ObBaen','warnings','str','74406lezZTZ','runtimePageUrl','page.custom-publish','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','trim','407fIiZbe','push','string','/smartapi/webcode/file/publish','unknown','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','remark','compress','1YTlssX','number','isInteger','custom-publish','64580ahSZIV','146362TdPMwz','985082rpiUPA','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Published\x20Custom\x20Page\x20','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','35iiHKht','Optional\x20publish\x20remark'];a151_0xbb7d=function(){return _0x1c54f3;};return a151_0xbb7d();}const a151_0x311854=a151_0x4974;(function(_0x20f0ca,_0x1dcfcc){const _0x5b6f17=a151_0x4974,_0x2f6a2c=_0x20f0ca();while(!![]){try{const _0x2dac6b=-parseInt(_0x5b6f17(0x1a2))/0x1*(-parseInt(_0x5b6f17(0x1a7))/0x2)+parseInt(_0x5b6f17(0x1b4))/0x3*(parseInt(_0x5b6f17(0x1a6))/0x4)+-parseInt(_0x5b6f17(0x1ac))/0x5*(parseInt(_0x5b6f17(0x1be))/0x6)+-parseInt(_0x5b6f17(0x1a8))/0x7+parseInt(_0x5b6f17(0x1bb))/0x8*(-parseInt(_0x5b6f17(0x1b9))/0x9)+parseInt(_0x5b6f17(0x1ba))/0xa+parseInt(_0x5b6f17(0x1c3))/0xb*(parseInt(_0x5b6f17(0x1b0))/0xc);if(_0x2dac6b===_0x1dcfcc)break;else _0x2f6a2c['push'](_0x2f6a2c['shift']());}catch(_0x1ed801){_0x2f6a2c['push'](_0x2f6a2c['shift']());}}}(a151_0xbb7d,0x26bda));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':a151_0x311854(0x1b2),'command':a151_0x311854(0x1a5),'description':a151_0x311854(0x1c1),'risk':a151_0x311854(0x1b3),'defaultOutputFormat':a151_0x311854(0x1a1),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a151_0x311854(0x1a3),'required':!![],'description':a151_0x311854(0x1b7)},{'name':a151_0x311854(0x1c9),'type':a151_0x311854(0x1c5),'description':a151_0x311854(0x1ad)}],async 'validate'(_0x5c6557){readCustomPageId(_0x5c6557);},async 'dryRun'(_0x2dfd0e){const _0x6f1802=a151_0x311854,_0xf70436=readInput(_0x2dfd0e);return{'method':'POST','url':_0x6f1802(0x1c6),'body':{'id':_0xf70436[_0x6f1802(0x1b5)],..._0xf70436[_0x6f1802(0x1c9)]?{'remark':_0xf70436[_0x6f1802(0x1c9)]}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0xf70436[_0x6f1802(0x1b5)]+'.'};},async 'execute'(_0x48ca62){const _0x38a6ab=a151_0x311854,_0x508e7c=readInput(_0x48ca62);await getCustomPageSource(_0x508e7c['pageId']);const _0x59dfc9=await publishCustomPage(_0x508e7c);if(!Number[_0x38a6ab(0x1a4)](_0x59dfc9)||_0x59dfc9!==_0x508e7c['pageId'])throw CliErrors['apiError'](_0x38a6ab(0x1c8));const _0xc8a233=await getCustomPageSource(_0x508e7c['pageId']);if(_0xc8a233['status']!=='FORMAL')throw CliErrors['apiError'](_0x38a6ab(0x1ab)+(_0xc8a233[_0x38a6ab(0x1ae)]??_0x38a6ab(0x1c7))+'.');const _0x249172=_0xc8a233['appCode']?.[_0x38a6ab(0x1c2)](),_0x17d602=buildCustomPageEditUrl(_0x249172,_0x508e7c[_0x38a6ab(0x1b5)]),_0x5077f0=await resolveCustomPageDevelopmentUrl(_0x249172,_0x508e7c['pageId'],_0x48ca62[_0x38a6ab(0x1b6)]),_0x3f0399=buildMutationData(_0x508e7c,!![],_0x5077f0,_0x17d602);_0x249172&&!_0x5077f0&&_0x3f0399[_0x38a6ab(0x1bc)][_0x38a6ab(0x1c4)](_0x38a6ab(0x1a9));const _0x4cf0e3=buildCustomPageRuntimeUrl(_0xc8a233[_0x38a6ab(0x1af)],_0xc8a233[_0x38a6ab(0x1b8)]);return _0x4cf0e3?_0x3f0399[_0x38a6ab(0x1bf)]=_0x4cf0e3:_0x3f0399['warnings'][_0x38a6ab(0x1c4)](_0x38a6ab(0x1b1)),{'ok':!![],'data':_0x3f0399,'message':_0x38a6ab(0x1aa)+_0x508e7c[_0x38a6ab(0x1b5)]+'.'};}};function a151_0x4974(_0x596a05,_0xd0bba5){_0x596a05=_0x596a05-0x1a1;const _0xbb7dba=a151_0xbb7d();let _0x497413=_0xbb7dba[_0x596a05];return _0x497413;}function readInput(_0x33d596){const _0x47eb1b=a151_0x311854,_0x1ddd67=readCustomPageId(_0x33d596),_0x381620=_0x33d596[_0x47eb1b(0x1bd)]('remark')[_0x47eb1b(0x1c2)]();return{'pageId':_0x1ddd67,..._0x381620?{'remark':_0x381620}:{}};}function buildMutationData(_0x2e118c,_0x4232a3=![],_0x15f687,_0x13bc3c){const _0x339f23=a151_0x311854;return{'operation':_0x339f23(0x1c0),'selector':{'pageId':_0x2e118c[_0x339f23(0x1b5)]},'before':null,'after':{'pageId':_0x2e118c[_0x339f23(0x1b5)],'status':'FORMAL'},'dryRun':!_0x4232a3,'request':_0x2e118c,..._0x15f687?{'pageUrl':_0x15f687}:{},..._0x13bc3c?{'editPageUrl':_0x13bc3c}:{},'warnings':[]};}
1
+ const a164_0x454820=a164_0x2134;function a164_0x2134(_0x3141d6,_0x190255){_0x3141d6=_0x3141d6-0x160;const _0x5d9a1b=a164_0x5d9a();let _0x213489=_0x5d9a1b[_0x3141d6];return _0x213489;}(function(_0x579d1d,_0x2906ee){const _0x339eb4=a164_0x2134,_0x13893c=_0x579d1d();while(!![]){try{const _0x209f78=-parseInt(_0x339eb4(0x177))/0x1*(parseInt(_0x339eb4(0x168))/0x2)+parseInt(_0x339eb4(0x16b))/0x3*(-parseInt(_0x339eb4(0x176))/0x4)+-parseInt(_0x339eb4(0x181))/0x5*(parseInt(_0x339eb4(0x180))/0x6)+parseInt(_0x339eb4(0x16f))/0x7+-parseInt(_0x339eb4(0x179))/0x8+parseInt(_0x339eb4(0x17e))/0x9*(-parseInt(_0x339eb4(0x160))/0xa)+-parseInt(_0x339eb4(0x170))/0xb*(-parseInt(_0x339eb4(0x182))/0xc);if(_0x209f78===_0x2906ee)break;else _0x13893c['push'](_0x13893c['shift']());}catch(_0x215f76){_0x13893c['push'](_0x13893c['shift']());}}}(a164_0x5d9a,0x6bf21));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a164_0x5d9a(){const _0x421b70=['warnings','3RUTZow','status','isInteger','page.custom-publish','1948695wZAehs','1177uiEkTw','Custom\x20Page\x20ID','runtimePageUrl','cookie','pageCode','pageId','2687780yhCNxN','24472fhyyov','appCode','4144216UdoTah','page','push','number','remark','9WrQFiC','apiError','1163964WUtOqg','15TXtqex','263892JWDrEn','Published\x20Custom\x20Page\x20','compress','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','747150rkTSOT','custom-publish','trim','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','unknown','Optional\x20publish\x20remark','/smartapi/webcode/file/publish','28WDXQlZ','string'];a164_0x5d9a=function(){return _0x421b70;};return a164_0x5d9a();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a164_0x454820(0x17a),'command':a164_0x454820(0x161),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':'write','defaultOutputFormat':a164_0x454820(0x184),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a164_0x454820(0x17c),'required':!![],'description':a164_0x454820(0x171)},{'name':a164_0x454820(0x17d),'type':a164_0x454820(0x169),'description':a164_0x454820(0x166)}],async 'validate'(_0x18dc2b){readCustomPageId(_0x18dc2b);},async 'dryRun'(_0x2c2e7b){const _0xc19983=a164_0x454820,_0x4ad2ca=readInput(_0x2c2e7b);return{'method':'POST','url':_0xc19983(0x167),'body':{'id':_0x4ad2ca[_0xc19983(0x175)],..._0x4ad2ca['remark']?{'remark':_0x4ad2ca[_0xc19983(0x17d)]}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x4ad2ca[_0xc19983(0x175)]+'.'};},async 'execute'(_0x43856c){const _0x45ed86=a164_0x454820,_0x29ed28=readInput(_0x43856c);await getCustomPageSource(_0x29ed28[_0x45ed86(0x175)]);const _0xf1b70f=await publishCustomPage(_0x29ed28);if(!Number[_0x45ed86(0x16d)](_0xf1b70f)||_0xf1b70f!==_0x29ed28['pageId'])throw CliErrors[_0x45ed86(0x17f)](_0x45ed86(0x185));const _0x26136b=await getCustomPageSource(_0x29ed28[_0x45ed86(0x175)]);if(_0x26136b[_0x45ed86(0x16c)]!=='FORMAL')throw CliErrors[_0x45ed86(0x17f)](_0x45ed86(0x164)+(_0x26136b[_0x45ed86(0x16c)]??_0x45ed86(0x165))+'.');const _0x14bb95=_0x26136b[_0x45ed86(0x178)]?.[_0x45ed86(0x162)](),_0x2c0ec6=buildCustomPageEditUrl(_0x14bb95,_0x29ed28[_0x45ed86(0x175)]),_0x2e7674=await resolveCustomPageDevelopmentUrl(_0x14bb95,_0x29ed28['pageId'],_0x43856c[_0x45ed86(0x173)]),_0x4135ae=buildMutationData(_0x29ed28,!![],_0x2e7674,_0x2c0ec6);_0x14bb95&&!_0x2e7674&&_0x4135ae[_0x45ed86(0x16a)][_0x45ed86(0x17b)](_0x45ed86(0x163));const _0x465ddd=buildCustomPageRuntimeUrl(_0x26136b['appCode'],_0x26136b[_0x45ed86(0x174)]);return _0x465ddd?_0x4135ae[_0x45ed86(0x172)]=_0x465ddd:_0x4135ae[_0x45ed86(0x16a)][_0x45ed86(0x17b)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x4135ae,'message':_0x45ed86(0x183)+_0x29ed28[_0x45ed86(0x175)]+'.'};}};function readInput(_0x28a335){const _0x1a5cbc=readCustomPageId(_0x28a335),_0x517dec=_0x28a335['str']('remark')['trim']();return{'pageId':_0x1a5cbc,..._0x517dec?{'remark':_0x517dec}:{}};}function buildMutationData(_0x2927c8,_0x265de1=![],_0xa1f16e,_0x24857f){const _0x1d5632=a164_0x454820;return{'operation':_0x1d5632(0x16e),'selector':{'pageId':_0x2927c8[_0x1d5632(0x175)]},'before':null,'after':{'pageId':_0x2927c8[_0x1d5632(0x175)],'status':'FORMAL'},'dryRun':!_0x265de1,'request':_0x2927c8,..._0xa1f16e?{'pageUrl':_0xa1f16e}:{},..._0x24857f?{'editPageUrl':_0x24857f}:{},'warnings':[]};}
@@ -1 +1 @@
1
- function a152_0x797d(_0x45ced6,_0x5a1764){_0x45ced6=_0x45ced6-0x187;const _0x4e7369=a152_0x4e73();let _0x797d93=_0x4e7369[_0x45ced6];return _0x797d93;}const a152_0x3a027a=a152_0x797d;(function(_0x4b6253,_0x4f60f6){const _0x117594=a152_0x797d,_0x1ca02c=_0x4b6253();while(!![]){try{const _0x3c708a=parseInt(_0x117594(0x19d))/0x1+-parseInt(_0x117594(0x189))/0x2+-parseInt(_0x117594(0x187))/0x3+-parseInt(_0x117594(0x18d))/0x4*(parseInt(_0x117594(0x1a2))/0x5)+parseInt(_0x117594(0x19e))/0x6*(parseInt(_0x117594(0x199))/0x7)+-parseInt(_0x117594(0x190))/0x8*(-parseInt(_0x117594(0x19c))/0x9)+parseInt(_0x117594(0x197))/0xa*(parseInt(_0x117594(0x195))/0xb);if(_0x3c708a===_0x4f60f6)break;else _0x1ca02c['push'](_0x1ca02c['shift']());}catch(_0x257363){_0x1ca02c['push'](_0x1ca02c['shift']());}}}(a152_0x4e73,0x52fa9));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a152_0x4e73(){const _0x2cf9f0=['/pages/','map','trim','80nZzcdt','react','type','13256orqsCg','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','join','validation','flagMissing','54582YOXqup','length','1760jkJNEi','file','252266kRVCcB','isInteger','path','1125wGfZiX','306066xgwIku','30xivbbL','message','parse','Invalid\x20Custom\x20Page\x20content:\x20','107545zHRMfC','--id\x20must\x20be\x20a\x20positive\x20integer.','find','string','/ide/','1250538fCdfII','object','759572EVhGxJ'];a152_0x4e73=function(){return _0x2cf9f0;};return a152_0x4e73();}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':a152_0x3a027a(0x191)};function trimOptional(_0x2ac2b7){const _0x10511e=a152_0x3a027a;return _0x2ac2b7?.[_0x10511e(0x18c)]()||undefined;}export function buildCustomPageRuntimeUrl(_0xa2477c,_0x445e9e){const _0x8ee86e=trimOptional(_0xa2477c),_0x2fe26a=trimOptional(_0x445e9e);if(!_0x8ee86e||!_0x2fe26a)return undefined;return getPublishedAppDomain(_0x8ee86e)+'/'+encodeURIComponent(_0x2fe26a);}export function buildCustomPageDevelopmentUrl(_0x141e02,_0x3dc9f6){const _0x271686=a152_0x3a027a,_0x4425be=trimOptional(_0x141e02),_0x52ac77=trimOptional(_0x3dc9f6);if(!_0x4425be||!_0x52ac77)return undefined;return getAppBaseUrl(_0x4425be)+_0x271686(0x18a)+encodeURIComponent(_0x52ac77);}export async function resolveCustomPageDevelopmentUrl(_0x4c4428,_0x22a03b,_0x4514f8){const _0x28e213=a152_0x3a027a,_0xd2c554=trimOptional(_0x4c4428);if(!_0xd2c554)return undefined;try{const _0x4ef5de=(await fetchMenuSnapshot(_0xd2c554,_0x4514f8))['menus'][_0x28e213(0x1a4)](_0x55740e=>_0x55740e[_0x28e213(0x18f)]===_0x28e213(0x18e)&&_0x55740e['pageId']===_0x22a03b);return buildCustomPageDevelopmentUrl(_0xd2c554,_0x4ef5de?.[_0x28e213(0x19b)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x491789,_0x2bad30){const _0x4944dd=a152_0x3a027a,_0x1f33d8=trimOptional(_0x491789);if(!_0x1f33d8)return;const _0x451a6f=trimOptional(_0x2bad30==null?undefined:String(_0x2bad30));if(!_0x451a6f)return;return getAppBaseUrl(_0x1f33d8)+_0x4944dd(0x1a6)+encodeURIComponent(_0x451a6f);}export function parseCustomPageContent(_0x8af315){const _0x18a9a3=a152_0x3a027a;if(!_0x8af315[_0x18a9a3(0x18c)]())throw CliErrors[_0x18a9a3(0x194)]('page-content');let _0x38e35e;try{_0x38e35e=JSON[_0x18a9a3(0x1a0)](_0x8af315);}catch{throw CliErrors[_0x18a9a3(0x193)]('--page-content\x20must\x20be\x20valid\x20JSON.');}if(typeof _0x38e35e!==_0x18a9a3(0x188)||_0x38e35e===null||Array['isArray'](_0x38e35e)||Object['values'](_0x38e35e)['some'](_0x4462db=>typeof _0x4462db!==_0x18a9a3(0x1a5)))throw CliErrors[_0x18a9a3(0x193)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x38e35e;}export async function validateCustomPageContent(_0x3e75fd){const _0x24b165=a152_0x3a027a,_0x2ba377=await validateCustomPageSourceFiles(_0x3e75fd);if(_0x2ba377[_0x24b165(0x196)]>0x0)throw CliErrors[_0x24b165(0x193)](_0x24b165(0x1a1)+_0x2ba377[_0x24b165(0x18b)](_0x498729=>_0x498729[_0x24b165(0x198)]+':\x20'+_0x498729[_0x24b165(0x19f)])[_0x24b165(0x192)](';\x20'));}export function readCustomPageId(_0x3229c1){const _0x4f10a3=a152_0x3a027a,_0x4e5bd7=_0x3229c1['num']('id');if(!Number[_0x4f10a3(0x19a)](_0x4e5bd7)||_0x4e5bd7<=0x0)throw CliErrors['validation'](_0x4f10a3(0x1a3));return _0x4e5bd7;}
1
+ function a165_0x17d7(){const _0x312fa3=['13103046KMyUdL','num','string','file','750706cDKMju','parse','menus','--id\x20must\x20be\x20a\x20positive\x20integer.','Invalid\x20Custom\x20Page\x20content:\x20','42dgRHeT','pageId','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','14837316GXnhhn','624080lQulSh','message','length','4SUUCaX','some','/ide/','838580qrNyao','77MtkLSS','isInteger','100PoLYxl','find','222CzNXXQ','isArray','map','--page-content\x20must\x20be\x20valid\x20JSON.','trim','object','7249iTzjMz','validation','1396866cJWAmb','65wttaiP','react'];a165_0x17d7=function(){return _0x312fa3;};return a165_0x17d7();}const a165_0x395f58=a165_0x1312;(function(_0x5b1a34,_0x59d452){const _0x508add=a165_0x1312,_0x1e1151=_0x5b1a34();while(!![]){try{const _0x45bcc8=parseInt(_0x508add(0xe4))/0x1*(-parseInt(_0x508add(0xde))/0x2)+-parseInt(_0x508add(0xe6))/0x3*(parseInt(_0x508add(0xd6))/0x4)+-parseInt(_0x508add(0xd9))/0x5*(parseInt(_0x508add(0xcf))/0x6)+-parseInt(_0x508add(0xda))/0x7*(parseInt(_0x508add(0xd3))/0x8)+-parseInt(_0x508add(0xe9))/0x9+parseInt(_0x508add(0xdc))/0xa*(-parseInt(_0x508add(0xca))/0xb)+parseInt(_0x508add(0xd2))/0xc*(parseInt(_0x508add(0xe7))/0xd);if(_0x45bcc8===_0x59d452)break;else _0x1e1151['push'](_0x1e1151['shift']());}catch(_0x207ae1){_0x1e1151['push'](_0x1e1151['shift']());}}}(a165_0x17d7,0xb5066));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';function a165_0x1312(_0x5b6a5e,_0x37896e){_0x5b6a5e=_0x5b6a5e-0xca;const _0x17d752=a165_0x17d7();let _0x131286=_0x17d752[_0x5b6a5e];return _0x131286;}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a165_0x395f58(0xd1)};function trimOptional(_0x19f693){const _0x6dc37f=a165_0x395f58;return _0x19f693?.[_0x6dc37f(0xe2)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x30a3e8,_0x445265){const _0x10d17d=trimOptional(_0x30a3e8),_0x1d17d0=trimOptional(_0x445265);if(!_0x10d17d||!_0x1d17d0)return undefined;return getPublishedAppDomain(_0x10d17d)+'/'+encodeURIComponent(_0x1d17d0);}export function buildCustomPageDevelopmentUrl(_0x41e19b,_0x281666){const _0x349946=trimOptional(_0x41e19b),_0x3e4739=trimOptional(_0x281666);if(!_0x349946||!_0x3e4739)return undefined;return getAppBaseUrl(_0x349946)+'/pages/'+encodeURIComponent(_0x3e4739);}export async function resolveCustomPageDevelopmentUrl(_0x335a27,_0x1b1703,_0xd37eaa){const _0x437ec7=a165_0x395f58,_0x1b8271=trimOptional(_0x335a27);if(!_0x1b8271)return undefined;try{const _0x58412b=(await fetchMenuSnapshot(_0x1b8271,_0xd37eaa))[_0x437ec7(0xcc)][_0x437ec7(0xdd)](_0x327165=>_0x327165['type']===_0x437ec7(0xe8)&&_0x327165[_0x437ec7(0xd0)]===_0x1b1703);return buildCustomPageDevelopmentUrl(_0x1b8271,_0x58412b?.['path']);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x487c25,_0x3c3dda){const _0x7f311b=a165_0x395f58,_0x4d3f75=trimOptional(_0x487c25);if(!_0x4d3f75)return;const _0x2893e1=trimOptional(_0x3c3dda==null?undefined:String(_0x3c3dda));if(!_0x2893e1)return;return getAppBaseUrl(_0x4d3f75)+_0x7f311b(0xd8)+encodeURIComponent(_0x2893e1);}export function parseCustomPageContent(_0x2cc953){const _0x12e125=a165_0x395f58;if(!_0x2cc953[_0x12e125(0xe2)]())throw CliErrors['flagMissing']('page-content');let _0x22720f;try{_0x22720f=JSON[_0x12e125(0xcb)](_0x2cc953);}catch{throw CliErrors[_0x12e125(0xe5)](_0x12e125(0xe1));}if(typeof _0x22720f!==_0x12e125(0xe3)||_0x22720f===null||Array[_0x12e125(0xdf)](_0x22720f)||Object['values'](_0x22720f)[_0x12e125(0xd7)](_0x44a382=>typeof _0x44a382!==_0x12e125(0xeb)))throw CliErrors[_0x12e125(0xe5)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x22720f;}export async function validateCustomPageContent(_0x44e6e2){const _0x10742a=a165_0x395f58,_0x2cefa7=await validateCustomPageSourceFiles(_0x44e6e2);if(_0x2cefa7[_0x10742a(0xd5)]>0x0)throw CliErrors[_0x10742a(0xe5)](_0x10742a(0xce)+_0x2cefa7[_0x10742a(0xe0)](_0x2aa0c2=>_0x2aa0c2[_0x10742a(0xec)]+':\x20'+_0x2aa0c2[_0x10742a(0xd4)])['join'](';\x20'));}export function readCustomPageId(_0x263142){const _0x367324=a165_0x395f58,_0x1eaf65=_0x263142[_0x367324(0xea)]('id');if(!Number[_0x367324(0xdb)](_0x1eaf65)||_0x1eaf65<=0x0)throw CliErrors[_0x367324(0xe5)](_0x367324(0xcd));return _0x1eaf65;}
@@ -1 +1 @@
1
- const a153_0x4e88c2=a153_0x4fea;function a153_0x53cc(){const _0x55ba80=['map','page-content','53185bOmhBL','91XXOzOj','some','babel','15vSpdoN','387643nXMvxO','.jsx','find','3272730OoWsXh','all','491634uOjjJj','toLowerCase','endsWith','431128idVGZX','2LNcnqg','236172lFxxxH','45720CMTqfS','27zoqOVU','2736BpcYZJ','trim','typescript','filter','entries'];a153_0x53cc=function(){return _0x55ba80;};return a153_0x53cc();}(function(_0x4f96ca,_0x2153f9){const _0x1f5784=a153_0x4fea,_0x436395=_0x4f96ca();while(!![]){try{const _0x545e7d=parseInt(_0x1f5784(0x106))/0x1+-parseInt(_0x1f5784(0xf6))/0x2*(parseInt(_0x1f5784(0xf2))/0x3)+parseInt(_0x1f5784(0xf5))/0x4*(parseInt(_0x1f5784(0x105))/0x5)+-parseInt(_0x1f5784(0xf7))/0x6*(-parseInt(_0x1f5784(0x102))/0x7)+-parseInt(_0x1f5784(0xf8))/0x8*(parseInt(_0x1f5784(0xf9))/0x9)+parseInt(_0x1f5784(0x109))/0xa+parseInt(_0x1f5784(0x101))/0xb*(-parseInt(_0x1f5784(0xfa))/0xc);if(_0x545e7d===_0x2153f9)break;else _0x436395['push'](_0x436395['shift']());}catch(_0x15ba0e){_0x436395['push'](_0x436395['shift']());}}}(a153_0x53cc,0x41145));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a153_0x4e88c2(0x104),'.ts':'typescript','.tsx':a153_0x4e88c2(0xfc)},CUSTOM_PAGE_EXTENSIONS=[a153_0x4e88c2(0x107),'.tsx'];function a153_0x4fea(_0x29d6b4,_0x2fa631){_0x29d6b4=_0x29d6b4-0xf2;const _0x53cc19=a153_0x53cc();let _0x4fea3b=_0x53cc19[_0x29d6b4];return _0x4fea3b;}export async function validateCustomPageSourceFiles(_0x35791a){const _0x1abc53=a153_0x4e88c2,_0x4f163d=Object[_0x1abc53(0xfe)](_0x35791a)['filter'](([_0x23bde3])=>getParser(_0x23bde3));if(!_0x4f163d[_0x1abc53(0x103)](([_0x131293])=>isReactSourceFile(_0x131293)))return[{'file':_0x1abc53(0x100),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x1488a2=await Promise[_0x1abc53(0x10a)](_0x4f163d[_0x1abc53(0xff)](async([_0x401745,_0x38e88f])=>{try{return await format(_0x38e88f,{'parser':getParser(_0x401745)}),undefined;}catch(_0xd27ac7){return{'file':_0x401745,'message':_0xd27ac7 instanceof Error?_0xd27ac7['message']:String(_0xd27ac7)};}}));return _0x1488a2[_0x1abc53(0xfd)](_0x4bdb01=>_0x4bdb01!==undefined);}function getParser(_0x58adcf){const _0x570980=a153_0x4e88c2,_0x3dbacc=_0x58adcf[_0x570980(0xfb)]()[_0x570980(0xf3)]();return Object[_0x570980(0xfe)](SOURCE_PARSERS)[_0x570980(0x108)](([_0x42b820])=>_0x3dbacc[_0x570980(0xf4)](_0x42b820))?.[0x1];}function isReactSourceFile(_0x16a027){const _0x41d0a8=a153_0x4e88c2,_0x15c18d=_0x16a027[_0x41d0a8(0xfb)]()[_0x41d0a8(0xf3)]();return CUSTOM_PAGE_EXTENSIONS[_0x41d0a8(0x103)](_0x2b0d59=>_0x15c18d[_0x41d0a8(0xf4)](_0x2b0d59));}
1
+ const a166_0x596e49=a166_0xd4de;(function(_0x482462,_0x1ed53a){const _0x8ea41c=a166_0xd4de,_0x35ce10=_0x482462();while(!![]){try{const _0x5015f2=-parseInt(_0x8ea41c(0x15b))/0x1+parseInt(_0x8ea41c(0x155))/0x2*(-parseInt(_0x8ea41c(0x153))/0x3)+parseInt(_0x8ea41c(0x159))/0x4*(-parseInt(_0x8ea41c(0x164))/0x5)+-parseInt(_0x8ea41c(0x15c))/0x6*(parseInt(_0x8ea41c(0x15e))/0x7)+parseInt(_0x8ea41c(0x151))/0x8+parseInt(_0x8ea41c(0x15d))/0x9*(parseInt(_0x8ea41c(0x14f))/0xa)+-parseInt(_0x8ea41c(0x14d))/0xb*(-parseInt(_0x8ea41c(0x15a))/0xc);if(_0x5015f2===_0x1ed53a)break;else _0x35ce10['push'](_0x35ce10['shift']());}catch(_0x313973){_0x35ce10['push'](_0x35ce10['shift']());}}}(a166_0x1885,0x973b9));import{format}from'prettier';const SOURCE_PARSERS={'.js':a166_0x596e49(0x163),'.jsx':a166_0x596e49(0x163),'.ts':a166_0x596e49(0x161),'.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=['.jsx','.tsx'];export async function validateCustomPageSourceFiles(_0x55c979){const _0x17088a=a166_0x596e49,_0x157d51=Object['entries'](_0x55c979)[_0x17088a(0x154)](([_0x648d56])=>getParser(_0x648d56));if(!_0x157d51['some'](([_0x5ef857])=>isReactSourceFile(_0x5ef857)))return[{'file':_0x17088a(0x14c),'message':_0x17088a(0x158)}];const _0x561232=await Promise[_0x17088a(0x150)](_0x157d51[_0x17088a(0x157)](async([_0x52653d,_0xcaf2cf])=>{const _0x42d956=_0x17088a;try{return await format(_0xcaf2cf,{'parser':getParser(_0x52653d)}),undefined;}catch(_0x3a2e92){return{'file':_0x52653d,'message':_0x3a2e92 instanceof Error?_0x3a2e92[_0x42d956(0x162)]:String(_0x3a2e92)};}}));return _0x561232[_0x17088a(0x154)](_0x300864=>_0x300864!==undefined);}function getParser(_0x8deb78){const _0x2d44ca=a166_0x596e49,_0x53927f=_0x8deb78[_0x2d44ca(0x156)]()[_0x2d44ca(0x152)]();return Object[_0x2d44ca(0x15f)](SOURCE_PARSERS)[_0x2d44ca(0x14e)](([_0x2045ad])=>_0x53927f[_0x2d44ca(0x160)](_0x2045ad))?.[0x1];}function a166_0xd4de(_0x58f562,_0x182946){_0x58f562=_0x58f562-0x14c;const _0x188598=a166_0x1885();let _0xd4dee0=_0x188598[_0x58f562];return _0xd4dee0;}function isReactSourceFile(_0x5bd0fb){const _0x3fdc35=a166_0x596e49,_0x3116c3=_0x5bd0fb['trim']()[_0x3fdc35(0x152)]();return CUSTOM_PAGE_EXTENSIONS['some'](_0x20e1f2=>_0x3116c3[_0x3fdc35(0x160)](_0x20e1f2));}function a166_0x1885(){const _0x1ff508=['84iASpFd','trim','map','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','8yrApHr','171552kWVFMY','862290NhEWtS','5320206SzTECc','223191YHGmTc','7DSiKTI','entries','endsWith','typescript','message','babel','16370ngDTAs','page-content','539XAoMuW','find','310FAwUJK','all','9606456vMqkiz','toLowerCase','21078CQXnTL','filter'];a166_0x1885=function(){return _0x1ff508;};return a166_0x1885();}
@@ -1 +1 @@
1
- (function(_0x614605,_0x45a796){const _0x5ae63d=a154_0xae56,_0x565c96=_0x614605();while(!![]){try{const _0x3d25ca=parseInt(_0x5ae63d(0x12a))/0x1+-parseInt(_0x5ae63d(0x119))/0x2*(-parseInt(_0x5ae63d(0x127))/0x3)+parseInt(_0x5ae63d(0x12e))/0x4*(-parseInt(_0x5ae63d(0x125))/0x5)+parseInt(_0x5ae63d(0x11e))/0x6+-parseInt(_0x5ae63d(0x124))/0x7*(parseInt(_0x5ae63d(0x120))/0x8)+parseInt(_0x5ae63d(0x126))/0x9+parseInt(_0x5ae63d(0x123))/0xa*(parseInt(_0x5ae63d(0x122))/0xb);if(_0x3d25ca===_0x45a796)break;else _0x565c96['push'](_0x565c96['shift']());}catch(_0xab7768){_0x565c96['push'](_0x565c96['shift']());}}}(a154_0xe0fa,0x8b83b));function a154_0xae56(_0x279ced,_0x9bf4a0){_0x279ced=_0x279ced-0x118;const _0xe0fa6e=a154_0xe0fa();let _0xae5628=_0xe0fa6e[_0x279ced];return _0xae5628;}function buildIndexFile(_0x14bb8a){const _0x16cee5=a154_0xae56;return _0x16cee5(0x134)+JSON[_0x16cee5(0x130)](_0x14bb8a)+_0x16cee5(0x132);}function buildStyleFile(){const _0x364744=a154_0xae56;return _0x364744(0x11c);}function a154_0xe0fa(){const _0x1b507d=['en-US','stringify','map','}</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a','join','import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>{',',\x0a\x20\x20}','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','3422xgqnaX','export\x20const\x20locales\x20=\x20{\x0a','pageDescription','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.','2934906HEyXVF','\x0a};\x0a','8hbGYOA','zh-CN','8129WQNwrx','1910jDKOiR','3868802Bwrxqg','133780cYmtRU','6408486LbqWhP','168eIlCuB','tr-TR','id-ID','782963GxiHRo','这是一个基础页面模板,你可以在此基础上进行开发。',':\x20{\x0a\x20\x20\x20\x20','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。','164spEDtI'];a154_0xe0fa=function(){return _0x1b507d;};return a154_0xe0fa();}function buildLocalesFile(_0x2eddec){const _0x319211=a154_0xae56,_0x2adec8=_0x2eddec[_0x319211(0x131)](_0x4433b5=>{const _0xfb1e05=_0x319211;let _0x40f572='';switch(_0x4433b5){case _0xfb1e05(0x121):_0x40f572=_0xfb1e05(0x12b);break;case _0xfb1e05(0x12f):_0x40f572='This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.';break;case'ja-JP':_0x40f572=_0xfb1e05(0x12d);break;case _0xfb1e05(0x128):_0x40f572=_0xfb1e05(0x118);break;case _0xfb1e05(0x129):_0x40f572=_0xfb1e05(0x11d);break;default:_0x40f572='This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.';}return'\x20\x20'+JSON[_0xfb1e05(0x130)](_0x4433b5)+_0xfb1e05(0x12c)+JSON[_0xfb1e05(0x130)](_0xfb1e05(0x11b))+':\x20'+JSON[_0xfb1e05(0x130)](_0x40f572)+_0xfb1e05(0x135);})[_0x319211(0x133)](',\x0a');return _0x319211(0x11a)+_0x2adec8+_0x319211(0x11f);}export function buildInitialFiles(_0x53b1df,_0x30e581){return{'src/app/index.jsx':buildIndexFile(_0x53b1df),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x30e581)};}
1
+ (function(_0x597001,_0x2c512b){const _0x92ea85=a167_0x58eb,_0xe856bc=_0x597001();while(!![]){try{const _0xbc6284=parseInt(_0x92ea85(0x149))/0x1*(parseInt(_0x92ea85(0x144))/0x2)+-parseInt(_0x92ea85(0x13e))/0x3+-parseInt(_0x92ea85(0x148))/0x4*(-parseInt(_0x92ea85(0x141))/0x5)+parseInt(_0x92ea85(0x142))/0x6*(parseInt(_0x92ea85(0x145))/0x7)+-parseInt(_0x92ea85(0x146))/0x8+parseInt(_0x92ea85(0x138))/0x9+-parseInt(_0x92ea85(0x140))/0xa;if(_0xbc6284===_0x2c512b)break;else _0xe856bc['push'](_0xe856bc['shift']());}catch(_0x1a8fe9){_0xe856bc['push'](_0xe856bc['shift']());}}}(a167_0x4036,0x23876));function buildIndexFile(_0x38ffe6){const _0x2afeb4=a167_0x58eb;return'import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>{'+JSON[_0x2afeb4(0x147)](_0x38ffe6)+_0x2afeb4(0x13c);}function buildStyleFile(){const _0x3bdd96=a167_0x58eb;return _0x3bdd96(0x14a);}function a167_0x58eb(_0x2f7c68,_0x12b4c5){_0x2f7c68=_0x2f7c68-0x134;const _0x4036fd=a167_0x4036();let _0x58ebfe=_0x4036fd[_0x2f7c68];return _0x58ebfe;}function buildLocalesFile(_0x8b5c9){const _0x23c17e=a167_0x58eb,_0x45eb97=_0x8b5c9['map'](_0x417013=>{const _0x15399f=a167_0x58eb;let _0x2cadb6='';switch(_0x417013){case'zh-CN':_0x2cadb6=_0x15399f(0x13b);break;case'en-US':_0x2cadb6=_0x15399f(0x13d);break;case _0x15399f(0x135):_0x2cadb6='これは基本ページテンプレートです。あなたは、これに基づいて開発できます。';break;case _0x15399f(0x136):_0x2cadb6='Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.';break;case _0x15399f(0x13f):_0x2cadb6='Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.';break;default:_0x2cadb6=_0x15399f(0x13d);}return'\x20\x20'+JSON[_0x15399f(0x147)](_0x417013)+_0x15399f(0x143)+JSON[_0x15399f(0x147)](_0x15399f(0x139))+':\x20'+JSON[_0x15399f(0x147)](_0x2cadb6)+_0x15399f(0x13a);})['join'](',\x0a');return _0x23c17e(0x137)+_0x45eb97+_0x23c17e(0x134);}export function buildInitialFiles(_0x5888a2,_0x17c88d){return{'src/app/index.jsx':buildIndexFile(_0x5888a2),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x17c88d)};}function a167_0x4036(){const _0x9b6014=['stringify','1018964oKyFMd','361yvOWVN','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','\x0a};\x0a','ja-JP','tr-TR','export\x20const\x20locales\x20=\x20{\x0a','1517679YkQjHa','pageDescription',',\x0a\x20\x20}','这是一个基础页面模板,你可以在此基础上进行开发。','}</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','55659sXIuaa','id-ID','4434630YWXENJ','5qZdAOX','3504hiCAMZ',':\x20{\x0a\x20\x20\x20\x20','758RvBBAn','2646sHANOz','1387208wXcDMi'];a167_0x4036=function(){return _0x9b6014;};return a167_0x4036();}
@@ -1 +1 @@
1
- const a155_0x24ba5f=a155_0x56d2;(function(_0x573c9f,_0x525050){const _0x5a18e1=a155_0x56d2,_0x49ec88=_0x573c9f();while(!![]){try{const _0x2d85ef=-parseInt(_0x5a18e1(0x1f3))/0x1*(-parseInt(_0x5a18e1(0x1fb))/0x2)+-parseInt(_0x5a18e1(0x1f4))/0x3+-parseInt(_0x5a18e1(0x204))/0x4+parseInt(_0x5a18e1(0x203))/0x5*(parseInt(_0x5a18e1(0x1e9))/0x6)+parseInt(_0x5a18e1(0x1e8))/0x7*(-parseInt(_0x5a18e1(0x1e6))/0x8)+-parseInt(_0x5a18e1(0x200))/0x9*(parseInt(_0x5a18e1(0x1ff))/0xa)+parseInt(_0x5a18e1(0x1ed))/0xb;if(_0x2d85ef===_0x525050)break;else _0x49ec88['push'](_0x49ec88['shift']());}catch(_0xa968f3){_0x49ec88['push'](_0x49ec88['shift']());}}}(a155_0x11dd,0xb2d30));function a155_0x56d2(_0x36c1e2,_0x27e168){_0x36c1e2=_0x36c1e2-0x1e6;const _0x11dde5=a155_0x11dd();let _0x56d264=_0x11dde5[_0x36c1e2];return _0x56d264;}import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a155_0x11dd(){const _0x57152e=['trim','page','66390onIZno','2116896cLubJL','10908512gpRhLj','validation','7AVsAMa','552ymmPJC','page.custom-update','Updated\x20Custom\x20Page\x20','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','3643860bYtsPV','compress','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','appCode','isInteger','number','449DSVMgu','81786DcKmQA','newVersion','pageId','pageContent','str','Custom\x20Page\x20ID','POST','6088AKxcWL','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','cookie','custom-update','890260vKzDqM','27YHzuxO'];a155_0x11dd=function(){return _0x57152e;};return a155_0x11dd();}import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a155_0x24ba5f(0x202),'command':a155_0x24ba5f(0x1fe),'description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':'write','defaultOutputFormat':a155_0x24ba5f(0x1ee),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a155_0x24ba5f(0x1f2),'required':!![],'description':a155_0x24ba5f(0x1f9)},{'name':'page-content','type':'string','required':!![],'description':'Complete\x20page\x20files\x20as\x20JSON'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2a5bfd){const _0x4d7781=a155_0x24ba5f;readCustomPageId(_0x2a5bfd),await validateCustomPageContent(parseCustomPageContent(_0x2a5bfd[_0x4d7781(0x1f8)]('page-content')));},async 'dryRun'(_0x50420a){const _0x1faeec=a155_0x24ba5f,_0x27f1cb=await readInput(_0x50420a);return{'method':_0x1faeec(0x1fa),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x27f1cb[_0x1faeec(0x1f6)],'codeContent':_0x27f1cb['pageContent']},'description':_0x1faeec(0x1fc)+_0x27f1cb[_0x1faeec(0x1f6)]+'.'};},async 'execute'(_0x42a55f){const _0x3b6cfb=a155_0x24ba5f,_0x3c3fc6=await readInput(_0x42a55f),_0x23263d=await updateCustomPageContent({'pageId':_0x3c3fc6['pageId'],'pageContent':_0x3c3fc6[_0x3b6cfb(0x1f7)]});if(!Number[_0x3b6cfb(0x1f1)](_0x23263d[_0x3b6cfb(0x1f5)])||_0x23263d[_0x3b6cfb(0x1f5)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x4c4c06=buildCustomPageEditUrl(_0x3c3fc6[_0x3b6cfb(0x1f0)],_0x3c3fc6[_0x3b6cfb(0x1f6)]),_0xed0b59=await resolveCustomPageDevelopmentUrl(_0x3c3fc6[_0x3b6cfb(0x1f0)],_0x3c3fc6[_0x3b6cfb(0x1f6)],_0x42a55f[_0x3b6cfb(0x1fd)]);return{'ok':!![],'data':buildMutationData(_0x3c3fc6,_0x23263d,_0xed0b59,_0x4c4c06,_0xed0b59?[]:[_0x3b6cfb(0x1ec)]),'message':_0x3b6cfb(0x1eb)+_0x3c3fc6[_0x3b6cfb(0x1f6)]+'.'};}};async function readInput(_0x1c65f6){const _0x114cf4=a155_0x24ba5f,_0x5b07a5=readCustomPageId(_0x1c65f6),_0x3f698e=_0x1c65f6['str']('appcode')['trim']()||(await getCustomPageSource(_0x5b07a5))[_0x114cf4(0x1f0)]?.[_0x114cf4(0x201)]();if(!_0x3f698e)throw CliErrors[_0x114cf4(0x1e7)](_0x114cf4(0x1ef)+_0x5b07a5+'.');return{'appCode':_0x3f698e,'pageId':_0x5b07a5,'pageContent':parseCustomPageContent(_0x1c65f6[_0x114cf4(0x1f8)]('page-content'))};}function buildMutationData(_0x64b41f,_0x7fc8c9,_0x154897,_0x569859,_0x5be639=[]){const _0x1f91fa=a155_0x24ba5f;return{'operation':_0x1f91fa(0x1ea),'selector':{'appCode':_0x64b41f[_0x1f91fa(0x1f0)],'pageId':_0x64b41f[_0x1f91fa(0x1f6)]},'before':null,'after':{'pageId':_0x7fc8c9?.[_0x1f91fa(0x1f6)]??_0x64b41f[_0x1f91fa(0x1f6)],'version':_0x7fc8c9?.['newVersion']??null,'pageContent':_0x64b41f[_0x1f91fa(0x1f7)]},'dryRun':_0x7fc8c9===undefined,'request':_0x64b41f,..._0x154897?{'pageUrl':_0x154897}:{},..._0x569859?{'editPageUrl':_0x569859}:{},'warnings':_0x5be639};}
1
+ const a168_0xc7ac5d=a168_0x1a22;(function(_0x31118f,_0x323063){const _0x304f35=a168_0x1a22,_0x4937bf=_0x31118f();while(!![]){try{const _0x57fbfd=parseInt(_0x304f35(0x99))/0x1+parseInt(_0x304f35(0x95))/0x2+-parseInt(_0x304f35(0x9e))/0x3*(-parseInt(_0x304f35(0x83))/0x4)+-parseInt(_0x304f35(0x89))/0x5+-parseInt(_0x304f35(0x87))/0x6*(-parseInt(_0x304f35(0x91))/0x7)+-parseInt(_0x304f35(0x94))/0x8+parseInt(_0x304f35(0x9a))/0x9*(-parseInt(_0x304f35(0x8b))/0xa);if(_0x57fbfd===_0x323063)break;else _0x4937bf['push'](_0x4937bf['shift']());}catch(_0x2e6f67){_0x4937bf['push'](_0x4937bf['shift']());}}}(a168_0xf5b8,0x44239));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a168_0xf5b8(){const _0x5a6807=['Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','appCode','27897aiyHva','cookie','pageId','validation','Custom\x20Page\x20ID','44ykmrmX','newVersion','pageContent','trim','113784sOBsBq','compress','243960NgZgQD','page.custom-update','140teUfUb','isInteger','Updated\x20Custom\x20Page\x20','page-content','Complete\x20page\x20files\x20as\x20JSON','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','189kEsLrG','write','str','1203216iRjvEY','972392revxEB','page','custom-update','apiError','200180HGxZZi','528687aGmwYx','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page'];a168_0xf5b8=function(){return _0x5a6807;};return a168_0xf5b8();}function a168_0x1a22(_0x3857b0,_0x3abac1){_0x3857b0=_0x3857b0-0x83;const _0xf5b85e=a168_0xf5b8();let _0x1a2239=_0xf5b85e[_0x3857b0];return _0x1a2239;}import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a168_0xc7ac5d(0x96),'command':a168_0xc7ac5d(0x97),'description':a168_0xc7ac5d(0x9b),'risk':a168_0xc7ac5d(0x92),'defaultOutputFormat':a168_0xc7ac5d(0x88),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a168_0xc7ac5d(0xa2)},{'name':a168_0xc7ac5d(0x8e),'type':'string','required':!![],'description':a168_0xc7ac5d(0x8f)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x186ced){const _0xd019e0=a168_0xc7ac5d;readCustomPageId(_0x186ced),await validateCustomPageContent(parseCustomPageContent(_0x186ced[_0xd019e0(0x93)](_0xd019e0(0x8e))));},async 'dryRun'(_0x436476){const _0x328ecb=a168_0xc7ac5d,_0x45794c=await readInput(_0x436476);return{'method':'POST','url':'/smartapi/webcode/page/update/content','body':{'id':_0x45794c[_0x328ecb(0xa0)],'codeContent':_0x45794c[_0x328ecb(0x85)]},'description':_0x328ecb(0x90)+_0x45794c[_0x328ecb(0xa0)]+'.'};},async 'execute'(_0x24a712){const _0x556d37=a168_0xc7ac5d,_0x236102=await readInput(_0x24a712),_0x4f2acd=await updateCustomPageContent({'pageId':_0x236102[_0x556d37(0xa0)],'pageContent':_0x236102[_0x556d37(0x85)]});if(!Number[_0x556d37(0x8c)](_0x4f2acd[_0x556d37(0x84)])||_0x4f2acd[_0x556d37(0x84)]<=0x0)throw CliErrors[_0x556d37(0x98)](_0x556d37(0x9c));const _0x176c6e=buildCustomPageEditUrl(_0x236102['appCode'],_0x236102['pageId']),_0x4571db=await resolveCustomPageDevelopmentUrl(_0x236102[_0x556d37(0x9d)],_0x236102[_0x556d37(0xa0)],_0x24a712[_0x556d37(0x9f)]);return{'ok':!![],'data':buildMutationData(_0x236102,_0x4f2acd,_0x4571db,_0x176c6e,_0x4571db?[]:['Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']),'message':_0x556d37(0x8d)+_0x236102[_0x556d37(0xa0)]+'.'};}};async function readInput(_0x2b75ca){const _0x14a41d=a168_0xc7ac5d,_0x113170=readCustomPageId(_0x2b75ca),_0x45173c=_0x2b75ca['str']('appcode')[_0x14a41d(0x86)]()||(await getCustomPageSource(_0x113170))[_0x14a41d(0x9d)]?.[_0x14a41d(0x86)]();if(!_0x45173c)throw CliErrors[_0x14a41d(0xa1)]('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x113170+'.');return{'appCode':_0x45173c,'pageId':_0x113170,'pageContent':parseCustomPageContent(_0x2b75ca[_0x14a41d(0x93)]('page-content'))};}function buildMutationData(_0x403987,_0x178179,_0x1972fb,_0x375f5f,_0x245e25=[]){const _0x1bef02=a168_0xc7ac5d;return{'operation':_0x1bef02(0x8a),'selector':{'appCode':_0x403987['appCode'],'pageId':_0x403987[_0x1bef02(0xa0)]},'before':null,'after':{'pageId':_0x178179?.[_0x1bef02(0xa0)]??_0x403987[_0x1bef02(0xa0)],'version':_0x178179?.[_0x1bef02(0x84)]??null,'pageContent':_0x403987[_0x1bef02(0x85)]},'dryRun':_0x178179===undefined,'request':_0x403987,..._0x1972fb?{'pageUrl':_0x1972fb}:{},..._0x375f5f?{'editPageUrl':_0x375f5f}:{},'warnings':_0x245e25};}
@@ -1 +1 @@
1
- const a156_0x2199fe=a156_0x51d9;(function(_0x9fff3a,_0x58ba3a){const _0x4b9420=a156_0x51d9,_0x375316=_0x9fff3a();while(!![]){try{const _0xafc1bb=parseInt(_0x4b9420(0x13d))/0x1*(-parseInt(_0x4b9420(0x132))/0x2)+-parseInt(_0x4b9420(0x14d))/0x3+-parseInt(_0x4b9420(0x14f))/0x4+parseInt(_0x4b9420(0x144))/0x5+-parseInt(_0x4b9420(0x147))/0x6*(-parseInt(_0x4b9420(0x14a))/0x7)+parseInt(_0x4b9420(0x139))/0x8+-parseInt(_0x4b9420(0x13c))/0x9*(-parseInt(_0x4b9420(0x135))/0xa);if(_0xafc1bb===_0x58ba3a)break;else _0x375316['push'](_0x375316['shift']());}catch(_0x514da5){_0x375316['push'](_0x375316['shift']());}}}(a156_0x27f1,0xaca07));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a156_0x51d9(_0x22ccb8,_0xb97b11){_0x22ccb8=_0x22ccb8-0x131;const _0x27f1b3=a156_0x27f1();let _0x51d936=_0x27f1b3[_0x22ccb8];return _0x51d936;}export const pageDataListStatus={'service':a156_0x2199fe(0x143),'command':a156_0x2199fe(0x138),'description':a156_0x2199fe(0x131),'risk':a156_0x2199fe(0x142),'defaultOutputFormat':a156_0x2199fe(0x13b),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a156_0x2199fe(0x148),'type':a156_0x2199fe(0x146),'description':a156_0x2199fe(0x13f)}],async 'validate'(_0x1ce076){validateDatasetSelector(_0x1ce076);},async 'dryRun'(_0x2b37ef){const _0x4c46fa=a156_0x2199fe,_0x3ee586=await loadDatasetDetailForPage(_0x2b37ef);return{'method':_0x4c46fa(0x14c),'url':_0x4c46fa(0x13a)+_0x3ee586['code']+_0x4c46fa(0x137)+encodeURIComponent(_0x2b37ef[_0x4c46fa(0x149)]),'description':serializeDryRunDescription({'dataset':{'id':_0x3ee586['id'],'code':_0x3ee586[_0x4c46fa(0x140)],'name':_0x3ee586[_0x4c46fa(0x141)]},'action':_0x4c46fa(0x13e)})};},async 'execute'(_0x1a2ba3){const _0xe750e6=a156_0x2199fe,_0x207d39=await loadDatasetDetailForPage(_0x1a2ba3),_0x5dc7d8=await loadDataListPageStatusForGenerate(_0x1a2ba3,_0x207d39[_0xe750e6(0x140)]),_0x32fddb=getUndeletedRelatedPages(_0x207d39),_0x4b2100=assessDataListPageState(_0x207d39[_0xe750e6(0x140)],_0x5dc7d8,{'fallbackUndeletedPages':_0x32fddb});return{'ok':!![],'data':{'datasetCode':_0x207d39[_0xe750e6(0x140)],'precheckSource':_0x5dc7d8?.[_0xe750e6(0x14b)]??_0xe750e6(0x134),'status':_0x4b2100[_0xe750e6(0x14e)],'manualResolutionRequired':_0x4b2100[_0xe750e6(0x133)],'nextAction':_0x4b2100[_0xe750e6(0x136)],'dataListPageStatus':_0x5dc7d8,'relatedPages':{'total':_0x207d39['relatedPages'][_0xe750e6(0x145)],'undeletedCount':_0x32fddb[_0xe750e6(0x145)]}}};}};function a156_0x27f1(){const _0xc41f77=['2937965MExrTF','length','string','4112868dpDOho','alias','appCode','7IeeuVy','source','GET','3301386JxBdUk','status','3641944JbZILg','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','510752oMWdPm','manualResolutionRequired','related-pages-fallback','150seWxub','nextAction','/standard-page-status?appCode=','data-list-status','498928NdJWpQ','/smartapi/lovrabet/dataset/','compress','1595682ZRienu','5gwNZXC','query-data-list-status','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','code','name','read','page'];a156_0x27f1=function(){return _0xc41f77;};return a156_0x27f1();}
1
+ function a169_0x13f6(){const _0x4dfaea=['/smartapi/lovrabet/dataset/','name','6qroukR','59480woixeR','read','16EpoYwi','compress','7RgcCmU','10HcQpuG','related-pages-fallback','2331009QNtYBN','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','nextAction','code','alias','length','relatedPages','19754268DRTzsv','page','query-data-list-status','appCode','496965AIjdPs','6810683NmDTWL','status','1968774DMxtZg','source','87997sbmMfR','184BemZAd'];a169_0x13f6=function(){return _0x4dfaea;};return a169_0x13f6();}const a169_0x23b5f9=a169_0x2416;(function(_0x437758,_0x550fa8){const _0x1dbcb5=a169_0x2416,_0x395eec=_0x437758();while(!![]){try{const _0x5ab5ba=parseInt(_0x1dbcb5(0xf9))/0x1+parseInt(_0x1dbcb5(0xfd))/0x2*(-parseInt(_0x1dbcb5(0x110))/0x3)+-parseInt(_0x1dbcb5(0xfa))/0x4*(-parseInt(_0x1dbcb5(0xfe))/0x5)+-parseInt(_0x1dbcb5(0xf7))/0x6*(parseInt(_0x1dbcb5(0x102))/0x7)+-parseInt(_0x1dbcb5(0x100))/0x8*(parseInt(_0x1dbcb5(0x105))/0x9)+-parseInt(_0x1dbcb5(0x103))/0xa*(parseInt(_0x1dbcb5(0x111))/0xb)+parseInt(_0x1dbcb5(0x10c))/0xc;if(_0x5ab5ba===_0x550fa8)break;else _0x395eec['push'](_0x395eec['shift']());}catch(_0x140a13){_0x395eec['push'](_0x395eec['shift']());}}}(a169_0x13f6,0x4deb1));function a169_0x2416(_0x434684,_0x175e61){_0x434684=_0x434684-0xf7;const _0x13f62a=a169_0x13f6();let _0x2416c4=_0x13f62a[_0x434684];return _0x2416c4;}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':a169_0x23b5f9(0x10d),'command':'data-list-status','description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a169_0x23b5f9(0xff),'defaultOutputFormat':a169_0x23b5f9(0x101),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a169_0x23b5f9(0x109),'type':'string','description':a169_0x23b5f9(0x106)}],async 'validate'(_0x4d7fc6){validateDatasetSelector(_0x4d7fc6);},async 'dryRun'(_0x2ca450){const _0xb8e80=a169_0x23b5f9,_0x5a4643=await loadDatasetDetailForPage(_0x2ca450);return{'method':'GET','url':_0xb8e80(0xfb)+_0x5a4643[_0xb8e80(0x108)]+'/standard-page-status?appCode='+encodeURIComponent(_0x2ca450[_0xb8e80(0x10f)]),'description':serializeDryRunDescription({'dataset':{'id':_0x5a4643['id'],'code':_0x5a4643[_0xb8e80(0x108)],'name':_0x5a4643[_0xb8e80(0xfc)]},'action':_0xb8e80(0x10e)})};},async 'execute'(_0x1b9a20){const _0x2c3598=a169_0x23b5f9,_0x5dafb5=await loadDatasetDetailForPage(_0x1b9a20),_0x21343e=await loadDataListPageStatusForGenerate(_0x1b9a20,_0x5dafb5[_0x2c3598(0x108)]),_0x3aa29b=getUndeletedRelatedPages(_0x5dafb5),_0x189e91=assessDataListPageState(_0x5dafb5[_0x2c3598(0x108)],_0x21343e,{'fallbackUndeletedPages':_0x3aa29b});return{'ok':!![],'data':{'datasetCode':_0x5dafb5[_0x2c3598(0x108)],'precheckSource':_0x21343e?.[_0x2c3598(0xf8)]??_0x2c3598(0x104),'status':_0x189e91[_0x2c3598(0x112)],'manualResolutionRequired':_0x189e91['manualResolutionRequired'],'nextAction':_0x189e91[_0x2c3598(0x107)],'dataListPageStatus':_0x21343e,'relatedPages':{'total':_0x5dafb5[_0x2c3598(0x10b)]['length'],'undeletedCount':_0x3aa29b[_0x2c3598(0x10a)]}}};}};
@@ -1 +1 @@
1
- function a157_0x5c64(){const _0x3a6413=['manualResolutionRequired','/generate-standard-pages/start','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','operationId','name','CRUD_PAGE_SET','allowGenerate','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','appCode','SUCCESS','precheck','6170hZnHUD','Submitted\x20a\x20generate\x20task','number','7655837isJCfl','PARTIAL_SUCCESS','related-pages-fallback','boolean','generate-start','nextAction','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','source','message','2887820FNtynd','reused','dataListPageStatus','page-type','clientOperationId','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','dataset','code','Reusing\x20an\x20existing\x20generate\x20task','12YvpZWN','38826NhgtWB','progressRate','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','dryRun','872834MQvtYj','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','taskId','status','1220689TFTYvr','write','string','compress','120636NAiowV','page-pattern','5781072mHSQSh','POST','6rAHeqY','DATA_LIST'];a157_0x5c64=function(){return _0x3a6413;};return a157_0x5c64();}const a157_0x11cbf9=a157_0x225a;(function(_0xc2ad6e,_0x23daf5){const _0x4bc193=a157_0x225a,_0x25f2ac=_0xc2ad6e();while(!![]){try{const _0x193b50=-parseInt(_0x4bc193(0x1f7))/0x1+parseInt(_0x4bc193(0x1f3))/0x2*(parseInt(_0x4bc193(0x1ff))/0x3)+-parseInt(_0x4bc193(0x1fb))/0x4+-parseInt(_0x4bc193(0x1e5))/0x5*(parseInt(_0x4bc193(0x1ee))/0x6)+-parseInt(_0x4bc193(0x20f))/0x7+parseInt(_0x4bc193(0x1fd))/0x8+parseInt(_0x4bc193(0x1ef))/0x9*(parseInt(_0x4bc193(0x20c))/0xa);if(_0x193b50===_0x23daf5)break;else _0x25f2ac['push'](_0x25f2ac['shift']());}catch(_0x2d9486){_0x25f2ac['push'](_0x25f2ac['shift']());}}}(a157_0x5c64,0xb8f23));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';function a157_0x225a(_0xae7649,_0x374c83){_0xae7649=_0xae7649-0x1df;const _0x5c64e3=a157_0x5c64();let _0x225ac4=_0x5c64e3[_0xae7649];return _0x225ac4;}export const pageGenerateStart={'service':'page','command':a157_0x11cbf9(0x1e0),'description':a157_0x11cbf9(0x1f4),'risk':a157_0x11cbf9(0x1f8),'defaultOutputFormat':a157_0x11cbf9(0x1fa),'rejectedFlags':[{'name':a157_0x11cbf9(0x1e8),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a157_0x11cbf9(0x1fc),'message':a157_0x11cbf9(0x1f1),'hint':a157_0x11cbf9(0x1ea)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a157_0x11cbf9(0x1f9),'description':a157_0x11cbf9(0x208)},{'name':'apply','type':a157_0x11cbf9(0x1df),'description':a157_0x11cbf9(0x203)}],async 'validate'(_0x1efa8d){validateDatasetSelector(_0x1efa8d);},async 'dryRun'(_0x3d4a18){const _0x9cd6ad=a157_0x11cbf9,_0x33ebc3=await prepare(_0x3d4a18);return{'method':_0x9cd6ad(0x1fe),'url':'/smartapi/lovrabet/dataset/'+_0x33ebc3[_0x9cd6ad(0x1eb)]['code']+_0x9cd6ad(0x202),'body':{'appCode':_0x3d4a18['appCode'],'clientOperationId':_0x33ebc3[_0x9cd6ad(0x1e9)]},'description':serializeDryRunDescription({'dataset':{'id':_0x33ebc3[_0x9cd6ad(0x1eb)]['id'],'code':_0x33ebc3[_0x9cd6ad(0x1eb)][_0x9cd6ad(0x1ec)],'name':_0x33ebc3['dataset'][_0x9cd6ad(0x205)],'fieldCount':_0x33ebc3[_0x9cd6ad(0x1eb)]['fieldCount']},'precheckSource':_0x33ebc3[_0x9cd6ad(0x1e7)]?.[_0x9cd6ad(0x1e3)]??'related-pages-fallback','action':'generate-start','clientOperationId':_0x33ebc3['clientOperationId'],'plannedStatus':_0x33ebc3[_0x9cd6ad(0x20b)][_0x9cd6ad(0x1f6)],'reason':_0x33ebc3[_0x9cd6ad(0x20b)][_0x9cd6ad(0x1e4)]})};},async 'execute'(_0x4be837){const _0x4096d8=a157_0x11cbf9;if(!_0x4be837['bool']('apply')){const _0x12ccbb=await pageGenerateStart[_0x4096d8(0x1f2)](_0x4be837);return{'ok':!![],'message':_0x4096d8(0x1e2),'data':_0x12ccbb};}const _0x524c02=await prepare(_0x4be837);if(!_0x524c02[_0x4096d8(0x20b)][_0x4096d8(0x207)])return{'ok':![],'message':_0x524c02[_0x4096d8(0x20b)][_0x4096d8(0x1e4)],'data':{'datasetCode':_0x524c02[_0x4096d8(0x1eb)][_0x4096d8(0x1ec)],'pageType':_0x4096d8(0x200),'pagePattern':_0x4096d8(0x206),'clientOperationId':_0x524c02[_0x4096d8(0x1e9)],'precheckSource':_0x524c02[_0x4096d8(0x1e7)]?.[_0x4096d8(0x1e3)]??_0x4096d8(0x211),'status':_0x524c02[_0x4096d8(0x20b)][_0x4096d8(0x1f6)],'manualResolutionRequired':_0x524c02[_0x4096d8(0x20b)][_0x4096d8(0x201)],'nextAction':_0x524c02[_0x4096d8(0x20b)][_0x4096d8(0x1e1)],'query':{'command':buildDataListPageStatusQueryCommand(_0x524c02[_0x4096d8(0x1eb)][_0x4096d8(0x1ec)],_0x4be837[_0x4096d8(0x209)])},'dataListPageStatus':_0x524c02[_0x4096d8(0x1e7)]}};const _0x2da683=await startGenerateDataListPages(_0x4be837[_0x4096d8(0x209)],_0x524c02[_0x4096d8(0x1eb)][_0x4096d8(0x1ec)],{'clientOperationId':_0x524c02[_0x4096d8(0x1e9)]}),_0x20cfcb=_0x2da683[_0x4096d8(0x1f6)]===_0x4096d8(0x20a)||_0x2da683[_0x4096d8(0x1f6)]===_0x4096d8(0x210)?await loadDataListPageStatusForGenerate(_0x4be837,_0x524c02['dataset'][_0x4096d8(0x1ec)]):null,_0x1ab71d=assessGenerateOperationState(_0x524c02[_0x4096d8(0x1eb)][_0x4096d8(0x1ec)],_0x2da683[_0x4096d8(0x1f6)],_0x20cfcb);return{'ok':!![],'message':_0x2da683[_0x4096d8(0x1e6)]?_0x4096d8(0x1ed):_0x4096d8(0x20d),'data':{'datasetCode':_0x524c02[_0x4096d8(0x1eb)]['code'],'appCode':_0x4be837[_0x4096d8(0x209)],'pageType':'DATA_LIST','pagePattern':_0x4096d8(0x206),'taskId':_0x2da683[_0x4096d8(0x1f5)]??null,'operationId':_0x2da683[_0x4096d8(0x204)]??null,'clientOperationId':_0x524c02[_0x4096d8(0x1e9)],'jobStatus':_0x2da683[_0x4096d8(0x1f6)]??null,'progressRate':typeof _0x2da683[_0x4096d8(0x1f0)]===_0x4096d8(0x20e)?_0x2da683['progressRate']:null,'currentStep':_0x2da683['currentStep']??null,'reused':_0x2da683[_0x4096d8(0x1e6)]===!![],'status':_0x1ab71d[_0x4096d8(0x1f6)],'manualResolutionRequired':_0x1ab71d[_0x4096d8(0x201)],'nextAction':_0x1ab71d[_0x4096d8(0x1e1)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x524c02[_0x4096d8(0x1eb)][_0x4096d8(0x1ec)],{'appCode':_0x4be837[_0x4096d8(0x209)],'taskId':_0x2da683[_0x4096d8(0x1f5)],'operationId':_0x2da683['operationId'],'clientOperationId':_0x524c02[_0x4096d8(0x1e9)]})},'dataListPageStatus':_0x20cfcb}};}};async function prepare(_0x4355b8){const _0x47eb90=a157_0x11cbf9,_0x2ba52f=await loadDatasetDetailForPage(_0x4355b8),_0x41ecb6=await loadDataListPageStatusForGenerate(_0x4355b8,_0x2ba52f[_0x47eb90(0x1ec)]),_0x366ad9=getUndeletedRelatedPages(_0x2ba52f);return{'dataset':_0x2ba52f,'dataListPageStatus':_0x41ecb6,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x2ba52f[_0x47eb90(0x1ec)],_0x41ecb6,{'fallbackUndeletedPages':_0x366ad9})};}
1
+ function a170_0x1f5c(){const _0x434206=['POST','fieldCount','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','boolean','apply','alias','progressRate','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','bool','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','clientOperationId','source','20132KkheOz','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','page','dataListPageStatus','taskId','name','appCode','nextAction','manualResolutionRequired','generate-start','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','operationId','status','Submitted\x20a\x20generate\x20task','DATA_LIST','PARTIAL_SUCCESS','6BBDych','precheck','/smartapi/lovrabet/dataset/','20388528sYwVKU','string','dryRun','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','related-pages-fallback','reused','Reusing\x20an\x20existing\x20generate\x20task','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','10568832hwpXcM','CRUD_PAGE_SET','/generate-standard-pages/start','2553887dOFJCl','dataset','404810qdvVEo','1237123QNCCAQ','write','code','1148972oHPCQb','879ytWkuj','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','message','page-pattern','compress'];a170_0x1f5c=function(){return _0x434206;};return a170_0x1f5c();}const a170_0x5662ae=a170_0x151b;(function(_0x319868,_0x9232e3){const _0x7356b6=a170_0x151b,_0x602e0e=_0x319868();while(!![]){try{const _0x6977cd=-parseInt(_0x7356b6(0x13f))/0x1+-parseInt(_0x7356b6(0x142))/0x2+parseInt(_0x7356b6(0x143))/0x3*(-parseInt(_0x7356b6(0x11e))/0x4)+-parseInt(_0x7356b6(0x13e))/0x5*(-parseInt(_0x7356b6(0x12e))/0x6)+parseInt(_0x7356b6(0x13c))/0x7+parseInt(_0x7356b6(0x139))/0x8+parseInt(_0x7356b6(0x131))/0x9;if(_0x6977cd===_0x9232e3)break;else _0x602e0e['push'](_0x602e0e['shift']());}catch(_0x358c7f){_0x602e0e['push'](_0x602e0e['shift']());}}}(a170_0x1f5c,0xb6225));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';function a170_0x151b(_0x9be3f9,_0x3e38ce){_0x9be3f9=_0x9be3f9-0x11b;const _0x1f5ce4=a170_0x1f5c();let _0x151b97=_0x1f5ce4[_0x9be3f9];return _0x151b97;}export const pageGenerateStart={'service':a170_0x5662ae(0x120),'command':a170_0x5662ae(0x127),'description':a170_0x5662ae(0x128),'risk':a170_0x5662ae(0x140),'defaultOutputFormat':a170_0x5662ae(0x147),'rejectedFlags':[{'name':'page-type','message':a170_0x5662ae(0x11b),'hint':a170_0x5662ae(0x14f)},{'name':a170_0x5662ae(0x146),'message':a170_0x5662ae(0x138),'hint':a170_0x5662ae(0x11f)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a170_0x5662ae(0x14d),'type':a170_0x5662ae(0x132),'description':a170_0x5662ae(0x134)},{'name':a170_0x5662ae(0x14c),'type':a170_0x5662ae(0x14b),'description':a170_0x5662ae(0x14a)}],async 'validate'(_0x284c2e){validateDatasetSelector(_0x284c2e);},async 'dryRun'(_0x4c00af){const _0xd4b788=a170_0x5662ae,_0x913c8c=await prepare(_0x4c00af);return{'method':_0xd4b788(0x148),'url':_0xd4b788(0x130)+_0x913c8c[_0xd4b788(0x13d)][_0xd4b788(0x141)]+_0xd4b788(0x13b),'body':{'appCode':_0x4c00af['appCode'],'clientOperationId':_0x913c8c[_0xd4b788(0x11c)]},'description':serializeDryRunDescription({'dataset':{'id':_0x913c8c[_0xd4b788(0x13d)]['id'],'code':_0x913c8c[_0xd4b788(0x13d)][_0xd4b788(0x141)],'name':_0x913c8c[_0xd4b788(0x13d)][_0xd4b788(0x123)],'fieldCount':_0x913c8c[_0xd4b788(0x13d)][_0xd4b788(0x149)]},'precheckSource':_0x913c8c[_0xd4b788(0x121)]?.['source']??_0xd4b788(0x135),'action':_0xd4b788(0x127),'clientOperationId':_0x913c8c[_0xd4b788(0x11c)],'plannedStatus':_0x913c8c[_0xd4b788(0x12f)][_0xd4b788(0x12a)],'reason':_0x913c8c[_0xd4b788(0x12f)][_0xd4b788(0x145)]})};},async 'execute'(_0x55afd0){const _0x55f9d1=a170_0x5662ae;if(!_0x55afd0[_0x55f9d1(0x150)](_0x55f9d1(0x14c))){const _0xb8d390=await pageGenerateStart[_0x55f9d1(0x133)](_0x55afd0);return{'ok':!![],'message':_0x55f9d1(0x144),'data':_0xb8d390};}const _0xf07646=await prepare(_0x55afd0);if(!_0xf07646[_0x55f9d1(0x12f)]['allowGenerate'])return{'ok':![],'message':_0xf07646[_0x55f9d1(0x12f)][_0x55f9d1(0x145)],'data':{'datasetCode':_0xf07646[_0x55f9d1(0x13d)][_0x55f9d1(0x141)],'pageType':_0x55f9d1(0x12c),'pagePattern':_0x55f9d1(0x13a),'clientOperationId':_0xf07646[_0x55f9d1(0x11c)],'precheckSource':_0xf07646['dataListPageStatus']?.[_0x55f9d1(0x11d)]??_0x55f9d1(0x135),'status':_0xf07646[_0x55f9d1(0x12f)]['status'],'manualResolutionRequired':_0xf07646['precheck'][_0x55f9d1(0x126)],'nextAction':_0xf07646[_0x55f9d1(0x12f)][_0x55f9d1(0x125)],'query':{'command':buildDataListPageStatusQueryCommand(_0xf07646[_0x55f9d1(0x13d)][_0x55f9d1(0x141)],_0x55afd0[_0x55f9d1(0x124)])},'dataListPageStatus':_0xf07646[_0x55f9d1(0x121)]}};const _0x415d23=await startGenerateDataListPages(_0x55afd0['appCode'],_0xf07646[_0x55f9d1(0x13d)][_0x55f9d1(0x141)],{'clientOperationId':_0xf07646[_0x55f9d1(0x11c)]}),_0x1ab5f0=_0x415d23[_0x55f9d1(0x12a)]==='SUCCESS'||_0x415d23['status']===_0x55f9d1(0x12d)?await loadDataListPageStatusForGenerate(_0x55afd0,_0xf07646['dataset']['code']):null,_0x2e280c=assessGenerateOperationState(_0xf07646[_0x55f9d1(0x13d)][_0x55f9d1(0x141)],_0x415d23[_0x55f9d1(0x12a)],_0x1ab5f0);return{'ok':!![],'message':_0x415d23[_0x55f9d1(0x136)]?_0x55f9d1(0x137):_0x55f9d1(0x12b),'data':{'datasetCode':_0xf07646['dataset'][_0x55f9d1(0x141)],'appCode':_0x55afd0[_0x55f9d1(0x124)],'pageType':'DATA_LIST','pagePattern':'CRUD_PAGE_SET','taskId':_0x415d23['taskId']??null,'operationId':_0x415d23[_0x55f9d1(0x129)]??null,'clientOperationId':_0xf07646['clientOperationId'],'jobStatus':_0x415d23[_0x55f9d1(0x12a)]??null,'progressRate':typeof _0x415d23['progressRate']==='number'?_0x415d23[_0x55f9d1(0x14e)]:null,'currentStep':_0x415d23['currentStep']??null,'reused':_0x415d23[_0x55f9d1(0x136)]===!![],'status':_0x2e280c['status'],'manualResolutionRequired':_0x2e280c['manualResolutionRequired'],'nextAction':_0x2e280c['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0xf07646[_0x55f9d1(0x13d)]['code'],{'appCode':_0x55afd0[_0x55f9d1(0x124)],'taskId':_0x415d23[_0x55f9d1(0x122)],'operationId':_0x415d23[_0x55f9d1(0x129)],'clientOperationId':_0xf07646[_0x55f9d1(0x11c)]})},'dataListPageStatus':_0x1ab5f0}};}};async function prepare(_0x5b682b){const _0x4274f8=a170_0x5662ae,_0xf86388=await loadDatasetDetailForPage(_0x5b682b),_0x5bab50=await loadDataListPageStatusForGenerate(_0x5b682b,_0xf86388[_0x4274f8(0x141)]),_0x161728=getUndeletedRelatedPages(_0xf86388);return{'dataset':_0xf86388,'dataListPageStatus':_0x5bab50,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0xf86388[_0x4274f8(0x141)],_0x5bab50,{'fallbackUndeletedPages':_0x161728})};}