@lovrabet/rabetbase-cli 2.5.0-beta.6 → 2.5.0

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 (294) 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-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/table-diff-shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -1
  103. package/lib/commands/kb/delete.js +1 -1
  104. package/lib/commands/kb/detail.js +1 -1
  105. package/lib/commands/kb/index.js +1 -1
  106. package/lib/commands/kb/list.js +1 -1
  107. package/lib/commands/kb/search.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.js +1 -1
  130. package/lib/commands/menu/shared/service.js +1 -1
  131. package/lib/commands/menu/shared/sync-core.js +1 -1
  132. package/lib/commands/menu/shared/update-core.js +1 -1
  133. package/lib/commands/menu/shared/valid-url.js +1 -1
  134. package/lib/commands/menu/sync.js +1 -1
  135. package/lib/commands/menu/visibility-update.js +1 -1
  136. package/lib/commands/notification/config-create.js +1 -1
  137. package/lib/commands/notification/config-delete.js +1 -1
  138. package/lib/commands/notification/config-list.js +1 -1
  139. package/lib/commands/notification/config-update.js +1 -1
  140. package/lib/commands/notification/index.js +1 -1
  141. package/lib/commands/notification/shared.js +1 -1
  142. package/lib/commands/ocr/index.js +1 -1
  143. package/lib/commands/page/create.js +1 -1
  144. package/lib/commands/page/custom/detail.js +1 -1
  145. package/lib/commands/page/custom/list.js +1 -1
  146. package/lib/commands/page/custom/publish.js +1 -1
  147. package/lib/commands/page/custom/shared.js +1 -1
  148. package/lib/commands/page/custom/syntax.js +1 -1
  149. package/lib/commands/page/custom/template.js +1 -1
  150. package/lib/commands/page/custom/update.js +1 -1
  151. package/lib/commands/page/data-list-status.js +1 -1
  152. package/lib/commands/page/generate-start.js +1 -1
  153. package/lib/commands/page/generate-status.js +1 -1
  154. package/lib/commands/page/index.js +1 -1
  155. package/lib/commands/page/pull.js +1 -1
  156. package/lib/commands/page/push.js +1 -1
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.js +1 -1
  160. package/lib/commands/page/sync.js +1 -1
  161. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  162. package/lib/commands/project/create/format-elapsed.js +1 -1
  163. package/lib/commands/project/create/main.js +1 -1
  164. package/lib/commands/project/create/materialize-project-template.js +1 -1
  165. package/lib/commands/project/create/project-name.js +1 -1
  166. package/lib/commands/project/create/project-template-archive.js +1 -1
  167. package/lib/commands/project/create/project-template-path.js +1 -1
  168. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  169. package/lib/commands/project/create/use-format-code.js +1 -1
  170. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  171. package/lib/commands/project/index.js +1 -1
  172. package/lib/commands/project/upgrade.js +1 -1
  173. package/lib/commands/registry.js +1 -1
  174. package/lib/commands/role/delete.js +1 -1
  175. package/lib/commands/role/detail.js +1 -1
  176. package/lib/commands/role/index.js +1 -1
  177. package/lib/commands/role/list.js +1 -1
  178. package/lib/commands/role/shared.js +1 -1
  179. package/lib/commands/role/update.js +1 -1
  180. package/lib/commands/role/user-add.js +1 -1
  181. package/lib/commands/role/user-remove.js +1 -1
  182. package/lib/commands/role/user-resolve.js +1 -1
  183. package/lib/commands/run/index.js +1 -1
  184. package/lib/commands/schema.js +1 -1
  185. package/lib/commands/sql/create.js +1 -1
  186. package/lib/commands/sql/delete.js +1 -1
  187. package/lib/commands/sql/detail.js +1 -1
  188. package/lib/commands/sql/exec.js +1 -1
  189. package/lib/commands/sql/index.js +1 -1
  190. package/lib/commands/sql/list.js +1 -1
  191. package/lib/commands/sql/pull.js +1 -1
  192. package/lib/commands/sql/push.js +1 -1
  193. package/lib/commands/sql/shared.js +1 -1
  194. package/lib/commands/sql/status.js +1 -1
  195. package/lib/commands/sql/validate.js +1 -1
  196. package/lib/commands/task/index.js +1 -1
  197. package/lib/commands/task/status.js +1 -1
  198. package/lib/commands/tenant/index.js +1 -1
  199. package/lib/commands/tenant/members-list.js +1 -1
  200. package/lib/commands/tenant/shared.js +1 -1
  201. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  202. package/lib/commands/user-account/index.js +1 -1
  203. package/lib/commands/workspace/add.js +1 -1
  204. package/lib/commands/workspace/index.js +1 -1
  205. package/lib/commands/workspace/remove.js +1 -1
  206. package/lib/config/domain-config.js +1 -1
  207. package/lib/config/schema.js +1 -1
  208. package/lib/constant/cdn.js +1 -1
  209. package/lib/constant/cli.js +1 -1
  210. package/lib/constant/defaults.js +1 -1
  211. package/lib/constant/domain.js +1 -1
  212. package/lib/constant/env.js +1 -1
  213. package/lib/constant/output.js +1 -1
  214. package/lib/constant/paths.js +1 -1
  215. package/lib/constant/region.js +1 -1
  216. package/lib/constant/risk.js +1 -1
  217. package/lib/context/app-resolver.js +1 -1
  218. package/lib/context/auth-resolver.js +1 -1
  219. package/lib/context/config-loader.js +1 -1
  220. package/lib/context.js +1 -1
  221. package/lib/core/alias-resolver.js +1 -1
  222. package/lib/core/api-client.js +1 -1
  223. package/lib/core/bff/config.js +1 -1
  224. package/lib/core/bff/file-system.js +1 -1
  225. package/lib/core/bff/hash.js +1 -1
  226. package/lib/core/bff/lock.js +1 -1
  227. package/lib/core/bff/utils.js +1 -1
  228. package/lib/core/db-resolver.js +1 -1
  229. package/lib/core/page/file-system.js +1 -1
  230. package/lib/core/page/hash.js +1 -1
  231. package/lib/core/page/lock.js +1 -1
  232. package/lib/core/sql-index-auditor.js +1 -1
  233. package/lib/core/sql-sync/config.js +1 -1
  234. package/lib/core/sql-sync/file-system.js +1 -1
  235. package/lib/core/sql-sync/hash.js +1 -1
  236. package/lib/core/sql-sync/lock.js +1 -1
  237. package/lib/core/sql-sync/utils.js +1 -1
  238. package/lib/core/sql-validator.js +1 -1
  239. package/lib/errors.js +1 -1
  240. package/lib/framework/build-all-flags.js +1 -1
  241. package/lib/framework/error-output.js +1 -1
  242. package/lib/framework/explicit-yes.js +1 -1
  243. package/lib/framework/flags.js +1 -1
  244. package/lib/framework/help.js +1 -1
  245. package/lib/framework/index.js +1 -1
  246. package/lib/framework/output.js +1 -1
  247. package/lib/framework/response.js +1 -1
  248. package/lib/framework/runner-alias.js +1 -1
  249. package/lib/framework/runner.js +1 -1
  250. package/lib/framework/schema-export.js +1 -1
  251. package/lib/framework/types.js +1 -1
  252. package/lib/generated/build-info.d.ts +4 -4
  253. package/lib/generated/build-info.js +1 -1
  254. package/lib/help.js +1 -1
  255. package/lib/postinstall.js +1 -1
  256. package/lib/runtime/confirmation.js +1 -1
  257. package/lib/runtime/event.js +1 -1
  258. package/lib/runtime/index.js +1 -1
  259. package/lib/runtime/queue.js +1 -1
  260. package/lib/runtime/resolve.js +1 -1
  261. package/lib/skills/builtin-skill.js +1 -1
  262. package/lib/skills/main.js +1 -1
  263. package/lib/skills/npx-skills-add.js +1 -1
  264. package/lib/skills/skill-presence.js +1 -1
  265. package/lib/telemetry/cli-command-trace.js +1 -1
  266. package/lib/telemetry/cli-help-trace.js +1 -1
  267. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  268. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  269. package/lib/telemetry/send-cli-trace-log.js +1 -1
  270. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  271. package/lib/utils/ai_config.js +1 -1
  272. package/lib/utils/apply-jq-filter.js +1 -1
  273. package/lib/utils/cdn-config.js +1 -1
  274. package/lib/utils/check-sdk-version.js +1 -1
  275. package/lib/utils/cli-version-check.js +1 -1
  276. package/lib/utils/cli-version-policy.js +1 -1
  277. package/lib/utils/config.js +1 -1
  278. package/lib/utils/entity-with-id.js +1 -1
  279. package/lib/utils/file-utils.js +1 -1
  280. package/lib/utils/guides-cdn.js +1 -1
  281. package/lib/utils/http-client.js +1 -1
  282. package/lib/utils/is-non-interactive.js +1 -1
  283. package/lib/utils/logger.js +1 -1
  284. package/lib/utils/params.js +1 -1
  285. package/lib/utils/platform.js +1 -1
  286. package/lib/utils/sleep.js +1 -1
  287. package/lib/utils/template-replacer.js +1 -1
  288. package/lib/utils/update-notice.js +1 -1
  289. package/lib/utils/version.js +1 -1
  290. package/lib/utils/with-active-cookie.js +1 -1
  291. package/lib/utils/write-cli-side-channel.js +1 -1
  292. package/package.json +1 -1
  293. package/skills/rabetbase/SKILL.md +1 -1
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a141_0x574a(_0x376599,_0x27e13b){_0x376599=_0x376599-0x11b;const _0x2acf3f=a141_0x2acf();let _0x574af5=_0x2acf3f[_0x376599];return _0x574af5;}const a141_0x5935c9=a141_0x574a;(function(_0x2039ef,_0x32b1e6){const _0x539b5e=a141_0x574a,_0x273776=_0x2039ef();while(!![]){try{const _0x396ebf=parseInt(_0x539b5e(0x13f))/0x1+parseInt(_0x539b5e(0x19c))/0x2*(-parseInt(_0x539b5e(0x13c))/0x3)+parseInt(_0x539b5e(0x150))/0x4+-parseInt(_0x539b5e(0x179))/0x5+parseInt(_0x539b5e(0x137))/0x6*(parseInt(_0x539b5e(0x184))/0x7)+parseInt(_0x539b5e(0x177))/0x8*(parseInt(_0x539b5e(0x13a))/0x9)+-parseInt(_0x539b5e(0x138))/0xa;if(_0x396ebf===_0x32b1e6)break;else _0x273776['push'](_0x273776['shift']());}catch(_0x285372){_0x273776['push'](_0x273776['shift']());}}}(a141_0x2acf,0xf33ba));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a141_0x5935c9(0x187),a141_0x5935c9(0x176),a141_0x5935c9(0x152),'WECOM',a141_0x5935c9(0x11c)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a141_0x5935c9(0x181),a141_0x5935c9(0x132),a141_0x5935c9(0x13b),a141_0x5935c9(0x143),'description',a141_0x5935c9(0x190),a141_0x5935c9(0x169)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id','appCode',a141_0x5935c9(0x13d),a141_0x5935c9(0x146)]),EMAIL_RECIPIENT_FIELDS=new Set([a141_0x5935c9(0x136),'recipients',a141_0x5935c9(0x154),a141_0x5935c9(0x131),a141_0x5935c9(0x12a),'subjectPrefix',a141_0x5935c9(0x186),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a141_0x5935c9(0x12b),'type':a141_0x5935c9(0x167),'required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':'stdin','type':a141_0x5935c9(0x18a),'required':![],'default':![],'description':a141_0x5935c9(0x144)},{'name':a141_0x5935c9(0x14e),'type':'string','required':![],'description':a141_0x5935c9(0x16d)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a141_0x5935c9(0x16f),'required':!![],'description':a141_0x5935c9(0x178)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x2f8177,_0xe8943a,_0x484c0b){return new CliError(_0x2f8177,0x1,_0xe8943a,_0x484c0b);}export function readNotificationId(_0x2b0d30){const _0xac7079=a141_0x5935c9,_0x2ad42f=_0x2b0d30[_0xac7079(0x157)]('id');if(!Number['isSafeInteger'](_0x2ad42f)||_0x2ad42f<=0x0)throw notificationError('notification_config_id_invalid','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x2ad42f;}export function requireNotificationExplicitYes(_0x544174){const _0x59b67d=a141_0x5935c9;if(_0x544174['bool']('dry-run')||_0x544174[_0x59b67d(0x15a)](_0x59b67d(0x135)))return;throw notificationError('notification_config_confirmation_required',_0x59b67d(0x149),_0x59b67d(0x160));}export function readNotificationChannelType(_0x106f55,_0x1cd862=a141_0x5935c9(0x12c),_0x1b3be8=a141_0x5935c9(0x187)){const _0x3f5674=a141_0x5935c9,_0x392f2c=_0x106f55['str'](_0x1cd862)[_0x3f5674(0x18e)]()||_0x1b3be8;if(!NOTIFICATION_CHANNEL_TYPES[_0x3f5674(0x199)](_0x392f2c))throw CliErrors['validation'](_0x3f5674(0x13e)+_0x1cd862+':\x20'+_0x392f2c,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x3f5674(0x191)](',\x20')+'.');return _0x392f2c;}export function assertSingleNotificationSource(_0x1d9af8){const _0xcb3552=a141_0x5935c9,_0x2377bc=[],_0x54603c=_0x1d9af8[_0xcb3552(0x188)](_0xcb3552(0x12b))[_0xcb3552(0x18e)]();if(_0x54603c)_0x2377bc[_0xcb3552(0x155)]({'kind':'file','path':_0x54603c});if(_0x1d9af8[_0xcb3552(0x15a)](_0xcb3552(0x195)))_0x2377bc[_0xcb3552(0x155)]({'kind':_0xcb3552(0x195)});const _0xfad249=_0x1d9af8[_0xcb3552(0x188)](_0xcb3552(0x14e))[_0xcb3552(0x18e)]();if(_0xfad249)_0x2377bc['push']({'kind':_0xcb3552(0x11b),'name':_0xfad249});if(_0x2377bc['length']===0x0)throw CliErrors[_0xcb3552(0x16c)](_0xcb3552(0x161),_0xcb3552(0x15b));if(_0x2377bc['length']>0x1)throw CliErrors[_0xcb3552(0x16c)](_0xcb3552(0x122),_0xcb3552(0x15b));return _0x2377bc[0x0];}export async function readNotificationDocument(_0x282906,_0x308f6b){const _0x53a29b=a141_0x5935c9,_0x40982f=assertSingleNotificationSource(_0x282906),_0xf0cd29=_0x40982f['kind']===_0x53a29b(0x12b)?_0x53a29b(0x14a)+_0x40982f[_0x53a29b(0x164)]:_0x40982f['kind']===_0x53a29b(0x11b)?_0x53a29b(0x16b)+_0x40982f[_0x53a29b(0x162)]:_0x53a29b(0x195);let _0xe7bd4;try{if(_0x40982f['kind']==='file')_0xe7bd4=await readFile(_0x40982f['path'],_0x53a29b(0x17e));else{if(_0x40982f['kind']===_0x53a29b(0x11b)){if(!(_0x40982f['name']in process.env))throw notificationError(_0x53a29b(0x171),_0x53a29b(0x15d)+_0x40982f[_0x53a29b(0x162)]);_0xe7bd4=process.env[_0x40982f.name]??'';}else _0xe7bd4=await readStdin();}}catch(_0x536537){if(_0x536537 instanceof CliError)throw _0x536537;throw notificationError(_0x53a29b(0x171),'Unable\x20to\x20read\x20notification\x20JSON\x20from\x20'+_0xf0cd29+'.');}let _0x3cadcf;try{_0x3cadcf=JSON['parse'](_0xe7bd4);}catch{throw notificationError(_0x53a29b(0x19e),_0x53a29b(0x147)+_0xf0cd29+_0x53a29b(0x18b),_0x53a29b(0x140));}if(!isJsonObject(_0x3cadcf))throw notificationError(_0x53a29b(0x19e),'Notification\x20JSON\x20from\x20'+_0xf0cd29+_0x53a29b(0x172));return validateNotificationDocument(_0x3cadcf,_0x308f6b);}export function projectNotificationListConfig(_0x8b4868,_0x336f5b){const _0x172ceb=a141_0x5935c9;return{'id':typeof _0x8b4868['id']==='number'?_0x8b4868['id']:null,'configCode':requireResponseString(_0x8b4868[_0x172ceb(0x13d)],_0x172ceb(0x13d),_0x336f5b),'configName':requireResponseString(_0x8b4868[_0x172ceb(0x181)],'configName',_0x336f5b),'channelType':requireResponseString(_0x8b4868[_0x172ceb(0x132)],_0x172ceb(0x132),_0x336f5b),'description':normalizeNullableString(_0x8b4868['description']),'createTime':normalizeNullableString(_0x8b4868[_0x172ceb(0x15f)]),'updateTime':normalizeNullableString(_0x8b4868[_0x172ceb(0x14f)])};}export function normalizeExactNotificationConfig(_0x3e170f,_0x5c8c0b,_0x54d50f){const _0x2e8e74=a141_0x5935c9;if(!Number['isSafeInteger'](_0x3e170f['id'])||_0x3e170f['id']!==_0x5c8c0b)throw notificationError(_0x2e8e74(0x19d),_0x2e8e74(0x133)+_0x5c8c0b+'.');if(_0x3e170f[_0x2e8e74(0x166)]!==_0x54d50f)throw notificationError(_0x2e8e74(0x19d),_0x2e8e74(0x12d)+_0x5c8c0b+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x56eb93=requireExactString(_0x3e170f[_0x2e8e74(0x181)],'configName',_0x5c8c0b),_0x2cc09f=requireExactString(_0x3e170f[_0x2e8e74(0x13d)],'configCode',_0x5c8c0b),_0x498c90=requireExactString(_0x3e170f[_0x2e8e74(0x132)],_0x2e8e74(0x132),_0x5c8c0b);if(!NOTIFICATION_CHANNEL_TYPES[_0x2e8e74(0x199)](_0x498c90))throw notificationError(_0x2e8e74(0x19d),_0x2e8e74(0x12d)+_0x5c8c0b+_0x2e8e74(0x18c));const _0x44d321=responseNullableString(_0x3e170f[_0x2e8e74(0x13b)],_0x2e8e74(0x13b),_0x5c8c0b),_0x223c9a=responseNullableString(_0x3e170f[_0x2e8e74(0x143)],_0x2e8e74(0x143),_0x5c8c0b),_0x15b3cd=responseNullableString(_0x3e170f['description'],'description',_0x5c8c0b),_0x16ef48=responseNullableTimeout(_0x3e170f[_0x2e8e74(0x190)],_0x2e8e74(0x190),_0x5c8c0b),_0x234f82=responseNullableTimeout(_0x3e170f[_0x2e8e74(0x169)],_0x2e8e74(0x169),_0x5c8c0b);return{'id':_0x5c8c0b,'appCode':_0x54d50f,'configCode':_0x2cc09f,'configName':_0x56eb93,'channelType':_0x498c90,'endpointUrl':redactSensitive(_0x44d321),'channelConfig':redactSensitive(_0x223c9a),'description':_0x15b3cd,'connectTimeout':_0x16ef48,'readTimeout':_0x234f82,'endpointUrlRaw':_0x44d321,'channelConfigRaw':_0x223c9a};}export async function requireExactNotificationConfig(_0x2201ce,_0x2fbda3,_0x468fff){const _0x454799=a141_0x5935c9;let _0x5b83dc;try{_0x5b83dc=await getNotificationChannelConfig(_0x2fbda3,_0x2201ce);}catch{throw safeApiFailure(_0x468fff,_0x454799(0x17f),_0x454799(0x11f)+_0x2201ce+_0x454799(0x17c));}return normalizeExactNotificationConfig(_0x5b83dc,_0x2fbda3,_0x2201ce);}export function projectNotificationConfig(_0x2f73a2){const _0x10e0cd=a141_0x5935c9;return{'id':_0x2f73a2['id']??null,'appCode':_0x2f73a2[_0x10e0cd(0x166)],'configCode':_0x2f73a2[_0x10e0cd(0x13d)]??null,'configName':_0x2f73a2[_0x10e0cd(0x181)],'channelType':_0x2f73a2[_0x10e0cd(0x132)],'endpointUrl':redactSensitive(_0x2f73a2[_0x10e0cd(0x13b)]),'channelConfig':redactSensitive(_0x2f73a2[_0x10e0cd(0x143)]),'description':_0x2f73a2[_0x10e0cd(0x198)]??null,'connectTimeout':_0x2f73a2[_0x10e0cd(0x190)]??null,'readTimeout':_0x2f73a2['readTimeout']??null};}export function notificationSelector(_0x25cea2){const _0x6963e0=a141_0x5935c9;return{'appCode':_0x25cea2['appCode'],'id':_0x25cea2['id'],'configCode':_0x25cea2[_0x6963e0(0x13d)],'configName':_0x25cea2[_0x6963e0(0x181)],'channelType':_0x25cea2[_0x6963e0(0x132)]};}export function createMutationInput(_0x5df0a5,_0x58e478){const _0x442f40=a141_0x5935c9;return{'appCode':_0x5df0a5,'configName':_0x58e478['configName'],'channelType':_0x58e478[_0x442f40(0x132)],...hasOwn(_0x58e478,_0x442f40(0x13b))?{'endpointUrl':_0x58e478[_0x442f40(0x13b)]}:{},...hasOwn(_0x58e478,_0x442f40(0x143))?{'channelConfig':serializeChannelConfig(_0x58e478['channelConfig'])}:{},...hasOwn(_0x58e478,_0x442f40(0x198))?{'description':_0x58e478[_0x442f40(0x198)]}:{},...hasOwn(_0x58e478,_0x442f40(0x190))?{'connectTimeout':_0x58e478[_0x442f40(0x190)]}:{},...hasOwn(_0x58e478,_0x442f40(0x169))?{'readTimeout':_0x58e478[_0x442f40(0x169)]}:{}};}export function mergeUpdateInput(_0x111ffa,_0x1b7b2b){const _0x48534f=a141_0x5935c9;return{'id':_0x111ffa['id'],'appCode':_0x111ffa[_0x48534f(0x166)],'configName':_0x1b7b2b[_0x48534f(0x181)]??_0x111ffa[_0x48534f(0x181)],'channelType':_0x1b7b2b[_0x48534f(0x132)]??_0x111ffa['channelType'],'endpointUrl':hasOwn(_0x1b7b2b,_0x48534f(0x13b))?_0x1b7b2b[_0x48534f(0x13b)]:_0x111ffa['endpointUrlRaw'],'channelConfig':hasOwn(_0x1b7b2b,_0x48534f(0x143))?serializeChannelConfig(_0x1b7b2b[_0x48534f(0x143)]):_0x111ffa[_0x48534f(0x196)],'description':hasOwn(_0x1b7b2b,_0x48534f(0x198))?_0x1b7b2b[_0x48534f(0x198)]:_0x111ffa[_0x48534f(0x198)],'connectTimeout':hasOwn(_0x1b7b2b,_0x48534f(0x190))?_0x1b7b2b['connectTimeout']:_0x111ffa[_0x48534f(0x190)],'readTimeout':hasOwn(_0x1b7b2b,_0x48534f(0x169))?_0x1b7b2b[_0x48534f(0x169)]:_0x111ffa['readTimeout']};}export function plannedUpdateProjection(_0x4e24d7,_0x4c52d9){const _0xb07f6b=a141_0x5935c9;return projectNotificationConfig({'id':_0x4e24d7['id'],'appCode':_0x4e24d7[_0xb07f6b(0x166)],'configCode':_0x4e24d7[_0xb07f6b(0x13d)],'configName':_0x4c52d9[_0xb07f6b(0x181)]??_0x4e24d7[_0xb07f6b(0x181)],'channelType':_0x4c52d9[_0xb07f6b(0x132)]??_0x4e24d7[_0xb07f6b(0x132)],'endpointUrl':hasOwn(_0x4c52d9,_0xb07f6b(0x13b))?_0x4c52d9[_0xb07f6b(0x13b)]:_0x4e24d7[_0xb07f6b(0x185)],'channelConfig':hasOwn(_0x4c52d9,'channelConfig')?_0x4c52d9[_0xb07f6b(0x143)]:_0x4e24d7['channelConfigRaw'],'description':hasOwn(_0x4c52d9,_0xb07f6b(0x198))?_0x4c52d9['description']:_0x4e24d7[_0xb07f6b(0x198)],'connectTimeout':hasOwn(_0x4c52d9,'connectTimeout')?_0x4c52d9['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x4e24d7['connectTimeout'],'readTimeout':hasOwn(_0x4c52d9,_0xb07f6b(0x169))?_0x4c52d9['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x4e24d7[_0xb07f6b(0x169)]});}export function requestedSafeFieldsMatch(_0x33a2ca,_0x4bb41e,_0xe87bfa){const _0x3697e8=a141_0x5935c9,_0x5009ce=[],_0x533af2=[],_0x18fabd=[];for(const _0x24db30 of[_0x3697e8(0x181),_0x3697e8(0x132),_0x3697e8(0x198)]){if(!hasOwn(_0xe87bfa,_0x24db30))continue;_0x18fabd['push'](_0x24db30),_0x5009ce[_0x3697e8(0x155)](_0x4bb41e[_0x24db30]===_0xe87bfa[_0x24db30]),_0x533af2['push'](_0x33a2ca[_0x24db30]!==_0xe87bfa[_0x24db30]&&_0x4bb41e[_0x24db30]===_0xe87bfa[_0x24db30]);}for(const _0x212176 of['connectTimeout',_0x3697e8(0x169)]){if(!hasOwn(_0xe87bfa,_0x212176))continue;const _0x4611bf=_0xe87bfa[_0x212176]??(_0x212176===_0x3697e8(0x190)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x18fabd[_0x3697e8(0x155)](_0x212176),_0x5009ce[_0x3697e8(0x155)](_0x4bb41e[_0x212176]===_0x4611bf),_0x533af2[_0x3697e8(0x155)](_0x33a2ca[_0x212176]!==_0x4611bf&&_0x4bb41e[_0x212176]===_0x4611bf);}return hasOwn(_0xe87bfa,_0x3697e8(0x13b))&&_0xe87bfa['endpointUrl']===null&&(_0x18fabd[_0x3697e8(0x155)](_0x3697e8(0x130)),_0x5009ce[_0x3697e8(0x155)](_0x4bb41e[_0x3697e8(0x185)]===null||_0x4bb41e[_0x3697e8(0x185)]===''),_0x533af2[_0x3697e8(0x155)](_0x33a2ca[_0x3697e8(0x185)]!==null&&_0x33a2ca[_0x3697e8(0x185)]!==''&&(_0x4bb41e[_0x3697e8(0x185)]===null||_0x4bb41e[_0x3697e8(0x185)]===''))),{'allMatch':_0x5009ce[_0x3697e8(0x153)](Boolean),'provesChange':_0x533af2[_0x3697e8(0x168)](Boolean),'verifiedFields':_0x18fabd};}function a141_0x2acf(){const _0x3184a5=['notification_config_field_forbidden','num','\x22\x20must\x20be\x20','a\x20JSON\x20object\x20or\x20null','bool','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','a\x20string\x20or\x20null','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','\x22configName\x22.','createTime','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','Missing\x20notification\x20JSON\x20source.','name','Invalid\x20notification\x20config\x20response.','path','Item\x20','appCode','string','some','readTimeout','Notification\x20JSON\x20channelConfig\x20field\x20\x22','environment\x20variable\x20','validation','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','notification_config_channel_field_forbidden','number','Unknown\x20notification\x20JSON\x20field\x20\x22','notification_config_source_unavailable','\x20must\x20be\x20an\x20object.','\x20--type\x20','hasOwnProperty','notification_config_field_required','FEISHU','8tAidsX','Application-level\x20notification\x20config\x20ID','397670vwpRhr','Notification\x20config\x20list\x20item\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string.','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','\x22\x20cannot\x20exceed\x20','utf8','preflight','\x22\x20is\x20forbidden.','configName','\x20has\x20an\x20invalid\x20channelType.','object','35lBILoY','endpointUrlRaw','fromName','EMAIL','str','has','boolean','\x20is\x20invalid.','\x20has\x20an\x20unsupported\x20channelType.','\x20has\x20an\x20invalid\x20appCode.','trim','Notification\x20JSON\x20field\x20\x22','connectTimeout','join','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','notification_config_update_empty','setEncoding','stdin','channelConfigRaw','mutation','description','includes','\x20has\x20an\x20invalid\x20id.','Create\x20JSON\x20requires\x20field\x20','10BeyTYL','notification_config_response_invalid','notification_config_json_invalid','env','WEBHOOK','failed','notification_config_field_invalid','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','\x20is\x20missing\x20required\x20field\x20\x22','\x20has\x20invalid\x20field\x20\x22','Notification\x20JSON\x20source\x20is\x20ambiguous.','create','notification_config_','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','update','isSafeInteger','rabetbase\x20notification\x20config-list\x20--appcode\x20','keys','replyTo','file','type','Notification\x20config\x20','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Allowed\x20values:\x20','endpointUrl:null','bccList','channelType','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','apiError','yes','emailTargets','264018yLPFXI','20522360DuKIup','a\x20JSON\x20object','1763091ucucCT','endpointUrl','668946JMOAzi','configCode','Invalid\x20--','1860448BxSjDE','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','messageTemplate','\x20--format\x20compress','channelConfig','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','entries','channelCode','Notification\x20JSON\x20from\x20','a\x20supported\x20string','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','file\x20','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','prototype','_unavailable','from-env','updateTime','7866400hhrGAl','length','DINGTALK','every','ccList','push'];a141_0x2acf=function(){return _0x3184a5;};return a141_0x2acf();}export function validateNotificationDeleteReadback(_0x2d07d3,_0x32dfc1,_0x4acc5a){const _0x52c664=a141_0x5935c9;for(const [_0x1d4b03,_0x551f3d]of _0x2d07d3[_0x52c664(0x145)]()){if(!Number[_0x52c664(0x127)](_0x551f3d['id'])||_0x551f3d['id']<=0x0)throw notificationError(_0x52c664(0x19d),_0x52c664(0x17a)+(_0x1d4b03+0x1)+_0x52c664(0x19a));if(_0x551f3d['appCode']!==_0x32dfc1)throw notificationError(_0x52c664(0x19d),_0x52c664(0x17a)+(_0x1d4b03+0x1)+_0x52c664(0x18d));if(_0x551f3d[_0x52c664(0x132)]!==_0x4acc5a)throw notificationError('notification_config_response_invalid',_0x52c664(0x17a)+(_0x1d4b03+0x1)+_0x52c664(0x182));}}export function safeApiFailure(_0x49b29b,_0x156be3,_0x5ea341){const _0x583f6b=a141_0x5935c9;return notificationError(_0x583f6b(0x124)+_0x49b29b+'_'+(_0x156be3===_0x583f6b(0x197)?_0x583f6b(0x11d):_0x156be3+_0x583f6b(0x14d)),_0x583f6b(0x12d)+_0x49b29b+'\x20'+_0x156be3+'\x20failed.',_0x5ea341);}export function notificationLookupCommand(_0x580216,_0x1332b3){const _0x59499e=a141_0x5935c9;return _0x59499e(0x128)+_0x580216+_0x59499e(0x173)+_0x1332b3+_0x59499e(0x142);}function validateNotificationDocument(_0x86462c,_0x4504e4){const _0x45aea6=a141_0x5935c9;for(const _0x545028 of Object[_0x45aea6(0x129)](_0x86462c)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x545028))throw notificationError(_0x45aea6(0x156),_0x45aea6(0x18f)+_0x545028+_0x45aea6(0x12e));if(!ALLOWED_INPUT_FIELDS[_0x45aea6(0x189)](_0x545028))throw notificationError('notification_config_field_unknown',_0x45aea6(0x170)+_0x545028+'\x22.');}if(_0x4504e4===_0x45aea6(0x126)&&Object['keys'](_0x86462c)[_0x45aea6(0x151)]===0x0)throw notificationError(_0x45aea6(0x193),_0x45aea6(0x125));const _0x135d66={};if(hasOwn(_0x86462c,'configName'))_0x135d66[_0x45aea6(0x181)]=validateRequiredString(_0x86462c[_0x45aea6(0x181)],_0x45aea6(0x181),0x80);else{if(_0x4504e4===_0x45aea6(0x123))throw notificationError('notification_config_field_required',_0x45aea6(0x19b)+_0x45aea6(0x15e));}if(hasOwn(_0x86462c,'channelType')){if(typeof _0x86462c['channelType']!==_0x45aea6(0x167))throw invalidFieldType(_0x45aea6(0x132),_0x45aea6(0x148));const _0x3c6019=_0x86462c[_0x45aea6(0x132)][_0x45aea6(0x18e)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x3c6019))throw notificationError(_0x45aea6(0x11e),_0x45aea6(0x14b),_0x45aea6(0x12f)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');_0x135d66[_0x45aea6(0x132)]=_0x3c6019;}else{if(_0x4504e4===_0x45aea6(0x123))throw notificationError(_0x45aea6(0x175),'Create\x20JSON\x20requires\x20field\x20'+'\x22channelType\x22.');}for(const [_0x103b80,_0x4aeb41]of[[_0x45aea6(0x13b),0x200],[_0x45aea6(0x198),0x100]]){if(!hasOwn(_0x86462c,_0x103b80))continue;const _0xbb96d7=_0x86462c[_0x103b80];if(_0xbb96d7!==null&&typeof _0xbb96d7!==_0x45aea6(0x167))throw invalidFieldType(_0x103b80,_0x45aea6(0x15c));if(typeof _0xbb96d7==='string'&&_0xbb96d7[_0x45aea6(0x151)]>_0x4aeb41)throw notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x103b80+'\x22\x20cannot\x20exceed\x20'+_0x4aeb41+'\x20characters.');_0x135d66[_0x103b80]=_0xbb96d7;}if(hasOwn(_0x86462c,_0x45aea6(0x143))){const _0x5970ee=_0x86462c[_0x45aea6(0x143)];if(_0x5970ee===null&&_0x4504e4===_0x45aea6(0x123))throw invalidFieldType(_0x45aea6(0x143),_0x45aea6(0x139));if(_0x5970ee!==null&&!isJsonObject(_0x5970ee))throw invalidFieldType(_0x45aea6(0x143),_0x4504e4===_0x45aea6(0x126)?_0x45aea6(0x159):_0x45aea6(0x139));_0x5970ee!==null&&validateChannelConfigFields(_0x135d66['channelType'],_0x5970ee),_0x135d66['channelConfig']=_0x5970ee;}for(const _0x43ffdc of['connectTimeout',_0x45aea6(0x169)]){if(!hasOwn(_0x86462c,_0x43ffdc))continue;const _0x1c85f8=_0x86462c[_0x43ffdc];if(_0x1c85f8!==null&&(!Number[_0x45aea6(0x127)](_0x1c85f8)||_0x1c85f8<0x0))throw notificationError(_0x45aea6(0x11e),_0x45aea6(0x18f)+_0x43ffdc+_0x45aea6(0x192));_0x135d66[_0x43ffdc]=_0x1c85f8;}return _0x135d66;}function validateRequiredString(_0x2281b5,_0x2c4290,_0x1f2454){const _0x490eaa=a141_0x5935c9;if(typeof _0x2281b5!=='string')throw invalidFieldType(_0x2c4290,'a\x20non-empty\x20string');const _0x488e54=_0x2281b5['trim']();if(!_0x488e54)throw notificationError(_0x490eaa(0x11e),'Notification\x20JSON\x20field\x20\x22'+_0x2c4290+_0x490eaa(0x17b));if(_0x488e54[_0x490eaa(0x151)]>_0x1f2454)throw notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x2c4290+_0x490eaa(0x17d)+_0x1f2454+'\x20characters.');return _0x488e54;}function validateChannelConfigFields(_0x15b8b5,_0x19811f){const _0x1f2f1a=a141_0x5935c9;if(hasOwn(_0x19811f,_0x1f2f1a(0x141)))throw forbiddenChannelConfigField(_0x1f2f1a(0x141));if(_0x15b8b5===_0x1f2f1a(0x187))for(const _0x624b08 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x19811f,_0x624b08))throw forbiddenChannelConfigField(_0x624b08);}}function forbiddenChannelConfigField(_0x332698){const _0x20ed98=a141_0x5935c9;return notificationError(_0x20ed98(0x16e),_0x20ed98(0x16a)+_0x332698+_0x20ed98(0x180));}function invalidFieldType(_0x78e7ee,_0x43f29f){const _0x24bc1e=a141_0x5935c9;return notificationError(_0x24bc1e(0x11e),_0x24bc1e(0x18f)+_0x78e7ee+_0x24bc1e(0x158)+_0x43f29f+'.');}function serializeChannelConfig(_0x2efc1c){return _0x2efc1c===null||_0x2efc1c===undefined?null:JSON['stringify'](_0x2efc1c);}function redactSensitive(_0x2436ff){return _0x2436ff===null||_0x2436ff===undefined||_0x2436ff===''?null:'<redacted>';}function requireResponseString(_0x24f3dc,_0x4e678c,_0x25ce71){const _0x5db915=a141_0x5935c9;if(typeof _0x24f3dc!=='string'||_0x24f3dc[_0x5db915(0x18e)]()==='')throw CliErrors[_0x5db915(0x134)](_0x5db915(0x163),_0x5db915(0x165)+(_0x25ce71+0x1)+_0x5db915(0x120)+_0x4e678c+'\x22.');return _0x24f3dc[_0x5db915(0x18e)]();}function requireExactString(_0x46a175,_0x498fc0,_0x4020a9){const _0x4ed044=a141_0x5935c9;if(typeof _0x46a175!==_0x4ed044(0x167)||_0x46a175[_0x4ed044(0x18e)]()==='')throw notificationError(_0x4ed044(0x19d),_0x4ed044(0x12d)+_0x4020a9+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x498fc0+'\x22.');return _0x46a175['trim']();}function responseNullableString(_0x3e8776,_0x1c7789,_0x3a0a66){const _0x414c96=a141_0x5935c9;if(_0x3e8776===undefined||_0x3e8776===null)return null;if(typeof _0x3e8776!=='string')throw notificationError(_0x414c96(0x19d),_0x414c96(0x12d)+_0x3a0a66+_0x414c96(0x121)+_0x1c7789+'\x22.');return _0x3e8776;}function responseNullableTimeout(_0x48b186,_0x93d089,_0x2aabe3){const _0x2d5d45=a141_0x5935c9;if(_0x48b186===undefined||_0x48b186===null)return null;if(!Number[_0x2d5d45(0x127)](_0x48b186)||_0x48b186<0x0)throw notificationError(_0x2d5d45(0x19d),_0x2d5d45(0x12d)+_0x2aabe3+_0x2d5d45(0x121)+_0x93d089+'\x22.');return _0x48b186;}function normalizeNullableString(_0x3afa77){const _0x40f2bb=a141_0x5935c9;return typeof _0x3afa77===_0x40f2bb(0x167)?_0x3afa77:null;}function isJsonObject(_0x20bfa3){const _0x5abfd7=a141_0x5935c9;return _0x20bfa3!==null&&typeof _0x20bfa3===_0x5abfd7(0x183)&&!Array['isArray'](_0x20bfa3);}function hasOwn(_0x268d2f,_0x3cdf32){const _0x52ac9d=a141_0x5935c9;return Object[_0x52ac9d(0x14c)][_0x52ac9d(0x174)]['call'](_0x268d2f,_0x3cdf32);}async function readStdin(){const _0x5ce59b=a141_0x5935c9;let _0x526f21='';process['stdin'][_0x5ce59b(0x194)]('utf8');for await(const _0x2be0e1 of process['stdin'])_0x526f21+=_0x2be0e1;return _0x526f21;}
1
+ const a141_0x2ec41a=a141_0x60d2;(function(_0x2c9445,_0x294431){const _0x32759f=a141_0x60d2,_0x308a3d=_0x2c9445();while(!![]){try{const _0x301a40=-parseInt(_0x32759f(0x1e0))/0x1*(parseInt(_0x32759f(0x1db))/0x2)+-parseInt(_0x32759f(0x1ce))/0x3*(-parseInt(_0x32759f(0x177))/0x4)+parseInt(_0x32759f(0x1df))/0x5+-parseInt(_0x32759f(0x1f6))/0x6+parseInt(_0x32759f(0x189))/0x7*(-parseInt(_0x32759f(0x182))/0x8)+parseInt(_0x32759f(0x1de))/0x9*(parseInt(_0x32759f(0x1dd))/0xa)+parseInt(_0x32759f(0x1c9))/0xb;if(_0x301a40===_0x294431)break;else _0x308a3d['push'](_0x308a3d['shift']());}catch(_0x466436){_0x308a3d['push'](_0x308a3d['shift']());}}}(a141_0x28f2,0x82d55));function a141_0x60d2(_0x13ab10,_0x4d8864){_0x13ab10=_0x13ab10-0x174;const _0x28f215=a141_0x28f2();let _0x60d2ef=_0x28f215[_0x13ab10];return _0x60d2ef;}import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a141_0x2ec41a(0x1f5),a141_0x2ec41a(0x174),a141_0x2ec41a(0x187),'WECOM',a141_0x2ec41a(0x1d2)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a141_0x2ec41a(0x1c0),a141_0x2ec41a(0x1e2),a141_0x2ec41a(0x1ec),'channelConfig',a141_0x2ec41a(0x1cf),'connectTimeout',a141_0x2ec41a(0x1ca)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a141_0x2ec41a(0x17d),'configCode',a141_0x2ec41a(0x1e4)]),EMAIL_RECIPIENT_FIELDS=new Set([a141_0x2ec41a(0x18a),'recipients',a141_0x2ec41a(0x1ad),'bccList','replyTo','subjectPrefix',a141_0x2ec41a(0x1d1),'to','cc']);function a141_0x28f2(){const _0x4cf545=['Allowed\x20values:\x20','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','length','configName','kind','Unknown\x20notification\x20JSON\x20field\x20\x22','endpointUrlRaw','\x20has\x20an\x20unsupported\x20channelType.','Notification\x20config\x20list\x20item\x20','updateTime','a\x20JSON\x20object\x20or\x20null','\x22configName\x22.','12898820xWmcDh','readTimeout','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','endpointUrl:null','\x20has\x20an\x20invalid\x20id.','2933697cGHkKU','description','createTime','fromName','WEBHOOK','Item\x20','join','notification_config_field_unknown','stdin','includes','notification_config_field_invalid','has','utf8','86jbeZib','Missing\x20notification\x20JSON\x20source.','30380pFWoeA','216FctAdP','255680eeeabT','13242LzpSgl','str','channelType','a\x20string\x20or\x20null','channelCode','notification_config_','\x20characters.','trim','notification_config_update_empty','keys','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','push','endpointUrl','\x20has\x20invalid\x20field\x20\x22','environment\x20variable\x20','validation','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','_unavailable','Invalid\x20notification\x20config\x20response.','\x22channelType\x22.','notification_config_json_invalid','EMAIL','3781374UjCDLW','bool','\x20is\x20missing\x20required\x20field\x20\x22','FEISHU','configCode','rabetbase\x20notification\x20config-list\x20--appcode\x20','4ftLezl','\x20--format\x20compress','Create\x20JSON\x20requires\x20field\x20','\x20must\x20be\x20an\x20object.','isSafeInteger','call','appCode','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','from-env','channelConfig','apiError','8sOtAdL','string','num','channelConfigRaw','hasOwnProperty','DINGTALK','\x22\x20cannot\x20exceed\x20','3773273rBXosg','emailTargets','some','env','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','boolean','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','a\x20supported\x20string','name','\x20failed.','messageTemplate','Invalid\x20--','update','Notification\x20JSON\x20field\x20\x22','yes','\x20has\x20an\x20invalid\x20channelType.','notification_config_channel_field_forbidden','create','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','file','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','a\x20JSON\x20object','notification_config_id_invalid','type','\x22\x20is\x20forbidden.','connectTimeout','Application-level\x20notification\x20config\x20ID','notification_config_source_unavailable','Notification\x20config\x20','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','entries','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','notification_config_field_required','path','ccList','parse','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','number','a\x20non-empty\x20string','notification_config_field_forbidden','notification_config_response_invalid','prototype','Notification\x20JSON\x20from\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string.','every','Notification\x20JSON\x20source\x20is\x20ambiguous.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','isArray','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'];a141_0x28f2=function(){return _0x4cf545;};return a141_0x28f2();}export const NOTIFICATION_INPUT_FLAGS=[{'name':a141_0x2ec41a(0x19d),'type':a141_0x2ec41a(0x183),'required':![],'description':a141_0x2ec41a(0x1bc)},{'name':a141_0x2ec41a(0x1d6),'type':a141_0x2ec41a(0x18e),'required':![],'default':![],'description':a141_0x2ec41a(0x1b9)},{'name':a141_0x2ec41a(0x17f),'type':'string','required':![],'description':a141_0x2ec41a(0x1f0)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a141_0x2ec41a(0x1b0),'required':!![],'description':a141_0x2ec41a(0x1a4)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x3269d3,_0x291302,_0x4827ac){return new CliError(_0x3269d3,0x1,_0x291302,_0x4827ac);}export function readNotificationId(_0x38d431){const _0x4ba77c=a141_0x2ec41a,_0x5495f2=_0x38d431[_0x4ba77c(0x184)]('id');if(!Number[_0x4ba77c(0x17b)](_0x5495f2)||_0x5495f2<=0x0)throw notificationError(_0x4ba77c(0x1a0),_0x4ba77c(0x1aa));return _0x5495f2;}export function requireNotificationExplicitYes(_0x34d184){const _0x1f6838=a141_0x2ec41a;if(_0x34d184['bool']('dry-run')||_0x34d184[_0x1f6838(0x1f7)](_0x1f6838(0x198)))return;throw notificationError('notification_config_confirmation_required',_0x1f6838(0x19e),_0x1f6838(0x17e));}export function readNotificationChannelType(_0x30ce05,_0x4b5810=a141_0x2ec41a(0x1a1),_0x2bf864='EMAIL'){const _0x1b2a90=a141_0x2ec41a,_0x1a0e82=_0x30ce05[_0x1b2a90(0x1e1)](_0x4b5810)['trim']()||_0x2bf864;if(!NOTIFICATION_CHANNEL_TYPES[_0x1b2a90(0x1d7)](_0x1a0e82))throw CliErrors[_0x1b2a90(0x1ef)](_0x1b2a90(0x195)+_0x4b5810+':\x20'+_0x1a0e82,_0x1b2a90(0x1bd)+NOTIFICATION_CHANNEL_TYPES[_0x1b2a90(0x1d4)](',\x20')+'.');return _0x1a0e82;}export function assertSingleNotificationSource(_0x43cede){const _0x3bb4dd=a141_0x2ec41a,_0x21fd08=[],_0xfadfc6=_0x43cede[_0x3bb4dd(0x1e1)]('file')[_0x3bb4dd(0x1e7)]();if(_0xfadfc6)_0x21fd08[_0x3bb4dd(0x1eb)]({'kind':_0x3bb4dd(0x19d),'path':_0xfadfc6});if(_0x43cede[_0x3bb4dd(0x1f7)](_0x3bb4dd(0x1d6)))_0x21fd08['push']({'kind':_0x3bb4dd(0x1d6)});const _0x203cb8=_0x43cede[_0x3bb4dd(0x1e1)](_0x3bb4dd(0x17f))['trim']();if(_0x203cb8)_0x21fd08[_0x3bb4dd(0x1eb)]({'kind':_0x3bb4dd(0x18c),'name':_0x203cb8});if(_0x21fd08['length']===0x0)throw CliErrors[_0x3bb4dd(0x1ef)](_0x3bb4dd(0x1dc),_0x3bb4dd(0x1a7));if(_0x21fd08[_0x3bb4dd(0x1bf)]>0x1)throw CliErrors[_0x3bb4dd(0x1ef)](_0x3bb4dd(0x1b8),_0x3bb4dd(0x1a7));return _0x21fd08[0x0];}export async function readNotificationDocument(_0x562676,_0x4372d5){const _0x2bc444=a141_0x2ec41a,_0x1ad750=assertSingleNotificationSource(_0x562676),_0x337693=_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x19d)?'file\x20'+_0x1ad750[_0x2bc444(0x1ac)]:_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x18c)?_0x2bc444(0x1ee)+_0x1ad750[_0x2bc444(0x192)]:_0x2bc444(0x1d6);let _0x120a0f;try{if(_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x19d))_0x120a0f=await readFile(_0x1ad750[_0x2bc444(0x1ac)],_0x2bc444(0x1da));else{if(_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x18c)){if(!(_0x1ad750['name']in process.env))throw notificationError('notification_config_source_unavailable',_0x2bc444(0x19c)+_0x1ad750[_0x2bc444(0x192)]);_0x120a0f=process.env[_0x1ad750.name]??'';}else _0x120a0f=await readStdin();}}catch(_0x37f0cd){if(_0x37f0cd instanceof CliError)throw _0x37f0cd;throw notificationError(_0x2bc444(0x1a5),_0x2bc444(0x18d)+_0x337693+'.');}let _0x1ce5e6;try{_0x1ce5e6=JSON[_0x2bc444(0x1ae)](_0x120a0f);}catch{throw notificationError(_0x2bc444(0x1f4),_0x2bc444(0x1b5)+_0x337693+'\x20is\x20invalid.',_0x2bc444(0x1cb));}if(!isJsonObject(_0x1ce5e6))throw notificationError('notification_config_json_invalid','Notification\x20JSON\x20from\x20'+_0x337693+_0x2bc444(0x17a));return validateNotificationDocument(_0x1ce5e6,_0x4372d5);}export function projectNotificationListConfig(_0x4100ac,_0x2f98ff){const _0x5290fc=a141_0x2ec41a;return{'id':typeof _0x4100ac['id']===_0x5290fc(0x1b0)?_0x4100ac['id']:null,'configCode':requireResponseString(_0x4100ac[_0x5290fc(0x175)],_0x5290fc(0x175),_0x2f98ff),'configName':requireResponseString(_0x4100ac[_0x5290fc(0x1c0)],'configName',_0x2f98ff),'channelType':requireResponseString(_0x4100ac['channelType'],_0x5290fc(0x1e2),_0x2f98ff),'description':normalizeNullableString(_0x4100ac[_0x5290fc(0x1cf)]),'createTime':normalizeNullableString(_0x4100ac[_0x5290fc(0x1d0)]),'updateTime':normalizeNullableString(_0x4100ac[_0x5290fc(0x1c6)])};}export function normalizeExactNotificationConfig(_0x5dcdfc,_0x2ea76d,_0x630f53){const _0x2e9f52=a141_0x2ec41a;if(!Number['isSafeInteger'](_0x5dcdfc['id'])||_0x5dcdfc['id']!==_0x2ea76d)throw notificationError(_0x2e9f52(0x1b3),'Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x2ea76d+'.');if(_0x5dcdfc[_0x2e9f52(0x17d)]!==_0x630f53)throw notificationError(_0x2e9f52(0x1b3),'Notification\x20config\x20'+_0x2ea76d+_0x2e9f52(0x1ea));const _0x5516e9=requireExactString(_0x5dcdfc[_0x2e9f52(0x1c0)],_0x2e9f52(0x1c0),_0x2ea76d),_0x56c157=requireExactString(_0x5dcdfc[_0x2e9f52(0x175)],_0x2e9f52(0x175),_0x2ea76d),_0xf6b616=requireExactString(_0x5dcdfc[_0x2e9f52(0x1e2)],_0x2e9f52(0x1e2),_0x2ea76d);if(!NOTIFICATION_CHANNEL_TYPES[_0x2e9f52(0x1d7)](_0xf6b616))throw notificationError(_0x2e9f52(0x1b3),_0x2e9f52(0x1a6)+_0x2ea76d+_0x2e9f52(0x1c4));const _0x642425=responseNullableString(_0x5dcdfc[_0x2e9f52(0x1ec)],'endpointUrl',_0x2ea76d),_0x49353=responseNullableString(_0x5dcdfc[_0x2e9f52(0x180)],'channelConfig',_0x2ea76d),_0x145eb2=responseNullableString(_0x5dcdfc[_0x2e9f52(0x1cf)],'description',_0x2ea76d),_0x4b3afb=responseNullableTimeout(_0x5dcdfc['connectTimeout'],_0x2e9f52(0x1a3),_0x2ea76d),_0x21e831=responseNullableTimeout(_0x5dcdfc[_0x2e9f52(0x1ca)],_0x2e9f52(0x1ca),_0x2ea76d);return{'id':_0x2ea76d,'appCode':_0x630f53,'configCode':_0x56c157,'configName':_0x5516e9,'channelType':_0xf6b616,'endpointUrl':redactSensitive(_0x642425),'channelConfig':redactSensitive(_0x49353),'description':_0x145eb2,'connectTimeout':_0x4b3afb,'readTimeout':_0x21e831,'endpointUrlRaw':_0x642425,'channelConfigRaw':_0x49353};}export async function requireExactNotificationConfig(_0x522d66,_0x258371,_0x2c484c){const _0x474e90=a141_0x2ec41a;let _0x56247c;try{_0x56247c=await getNotificationChannelConfig(_0x258371,_0x522d66);}catch{throw safeApiFailure(_0x2c484c,'preflight',_0x474e90(0x18f)+_0x522d66+_0x474e90(0x1a9));}return normalizeExactNotificationConfig(_0x56247c,_0x258371,_0x522d66);}export function projectNotificationConfig(_0x5bd896){const _0x1d7691=a141_0x2ec41a;return{'id':_0x5bd896['id']??null,'appCode':_0x5bd896[_0x1d7691(0x17d)],'configCode':_0x5bd896[_0x1d7691(0x175)]??null,'configName':_0x5bd896[_0x1d7691(0x1c0)],'channelType':_0x5bd896[_0x1d7691(0x1e2)],'endpointUrl':redactSensitive(_0x5bd896[_0x1d7691(0x1ec)]),'channelConfig':redactSensitive(_0x5bd896[_0x1d7691(0x180)]),'description':_0x5bd896[_0x1d7691(0x1cf)]??null,'connectTimeout':_0x5bd896['connectTimeout']??null,'readTimeout':_0x5bd896[_0x1d7691(0x1ca)]??null};}export function notificationSelector(_0x3ca2cb){const _0x2f9764=a141_0x2ec41a;return{'appCode':_0x3ca2cb[_0x2f9764(0x17d)],'id':_0x3ca2cb['id'],'configCode':_0x3ca2cb[_0x2f9764(0x175)],'configName':_0x3ca2cb['configName'],'channelType':_0x3ca2cb['channelType']};}export function createMutationInput(_0xc55acb,_0x47ccf9){const _0x576ba9=a141_0x2ec41a;return{'appCode':_0xc55acb,'configName':_0x47ccf9[_0x576ba9(0x1c0)],'channelType':_0x47ccf9[_0x576ba9(0x1e2)],...hasOwn(_0x47ccf9,'endpointUrl')?{'endpointUrl':_0x47ccf9['endpointUrl']}:{},...hasOwn(_0x47ccf9,_0x576ba9(0x180))?{'channelConfig':serializeChannelConfig(_0x47ccf9[_0x576ba9(0x180)])}:{},...hasOwn(_0x47ccf9,_0x576ba9(0x1cf))?{'description':_0x47ccf9[_0x576ba9(0x1cf)]}:{},...hasOwn(_0x47ccf9,'connectTimeout')?{'connectTimeout':_0x47ccf9[_0x576ba9(0x1a3)]}:{},...hasOwn(_0x47ccf9,'readTimeout')?{'readTimeout':_0x47ccf9[_0x576ba9(0x1ca)]}:{}};}export function mergeUpdateInput(_0x245846,_0x3738c2){const _0x2d5623=a141_0x2ec41a;return{'id':_0x245846['id'],'appCode':_0x245846[_0x2d5623(0x17d)],'configName':_0x3738c2[_0x2d5623(0x1c0)]??_0x245846[_0x2d5623(0x1c0)],'channelType':_0x3738c2[_0x2d5623(0x1e2)]??_0x245846[_0x2d5623(0x1e2)],'endpointUrl':hasOwn(_0x3738c2,_0x2d5623(0x1ec))?_0x3738c2[_0x2d5623(0x1ec)]:_0x245846[_0x2d5623(0x1c3)],'channelConfig':hasOwn(_0x3738c2,'channelConfig')?serializeChannelConfig(_0x3738c2[_0x2d5623(0x180)]):_0x245846['channelConfigRaw'],'description':hasOwn(_0x3738c2,_0x2d5623(0x1cf))?_0x3738c2[_0x2d5623(0x1cf)]:_0x245846['description'],'connectTimeout':hasOwn(_0x3738c2,_0x2d5623(0x1a3))?_0x3738c2[_0x2d5623(0x1a3)]:_0x245846[_0x2d5623(0x1a3)],'readTimeout':hasOwn(_0x3738c2,'readTimeout')?_0x3738c2['readTimeout']:_0x245846[_0x2d5623(0x1ca)]};}export function plannedUpdateProjection(_0x9dac59,_0x4a5198){const _0x54dc41=a141_0x2ec41a;return projectNotificationConfig({'id':_0x9dac59['id'],'appCode':_0x9dac59[_0x54dc41(0x17d)],'configCode':_0x9dac59[_0x54dc41(0x175)],'configName':_0x4a5198[_0x54dc41(0x1c0)]??_0x9dac59[_0x54dc41(0x1c0)],'channelType':_0x4a5198['channelType']??_0x9dac59[_0x54dc41(0x1e2)],'endpointUrl':hasOwn(_0x4a5198,_0x54dc41(0x1ec))?_0x4a5198[_0x54dc41(0x1ec)]:_0x9dac59[_0x54dc41(0x1c3)],'channelConfig':hasOwn(_0x4a5198,_0x54dc41(0x180))?_0x4a5198[_0x54dc41(0x180)]:_0x9dac59[_0x54dc41(0x185)],'description':hasOwn(_0x4a5198,'description')?_0x4a5198[_0x54dc41(0x1cf)]:_0x9dac59[_0x54dc41(0x1cf)],'connectTimeout':hasOwn(_0x4a5198,_0x54dc41(0x1a3))?_0x4a5198[_0x54dc41(0x1a3)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x9dac59[_0x54dc41(0x1a3)],'readTimeout':hasOwn(_0x4a5198,_0x54dc41(0x1ca))?_0x4a5198['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x9dac59[_0x54dc41(0x1ca)]});}export function requestedSafeFieldsMatch(_0x32bc3f,_0x3db517,_0x376913){const _0xe78568=a141_0x2ec41a,_0x5bf788=[],_0x3e8504=[],_0x455c8a=[];for(const _0x431b6c of[_0xe78568(0x1c0),_0xe78568(0x1e2),'description']){if(!hasOwn(_0x376913,_0x431b6c))continue;_0x455c8a['push'](_0x431b6c),_0x5bf788[_0xe78568(0x1eb)](_0x3db517[_0x431b6c]===_0x376913[_0x431b6c]),_0x3e8504['push'](_0x32bc3f[_0x431b6c]!==_0x376913[_0x431b6c]&&_0x3db517[_0x431b6c]===_0x376913[_0x431b6c]);}for(const _0x464a51 of[_0xe78568(0x1a3),_0xe78568(0x1ca)]){if(!hasOwn(_0x376913,_0x464a51))continue;const _0x5ea4c2=_0x376913[_0x464a51]??(_0x464a51==='connectTimeout'?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x455c8a[_0xe78568(0x1eb)](_0x464a51),_0x5bf788['push'](_0x3db517[_0x464a51]===_0x5ea4c2),_0x3e8504[_0xe78568(0x1eb)](_0x32bc3f[_0x464a51]!==_0x5ea4c2&&_0x3db517[_0x464a51]===_0x5ea4c2);}return hasOwn(_0x376913,_0xe78568(0x1ec))&&_0x376913[_0xe78568(0x1ec)]===null&&(_0x455c8a['push'](_0xe78568(0x1cc)),_0x5bf788['push'](_0x3db517['endpointUrlRaw']===null||_0x3db517[_0xe78568(0x1c3)]===''),_0x3e8504['push'](_0x32bc3f[_0xe78568(0x1c3)]!==null&&_0x32bc3f['endpointUrlRaw']!==''&&(_0x3db517[_0xe78568(0x1c3)]===null||_0x3db517[_0xe78568(0x1c3)]===''))),{'allMatch':_0x5bf788[_0xe78568(0x1b7)](Boolean),'provesChange':_0x3e8504[_0xe78568(0x18b)](Boolean),'verifiedFields':_0x455c8a};}export function validateNotificationDeleteReadback(_0x4c3990,_0x464088,_0x38c51e){const _0x26cea9=a141_0x2ec41a;for(const [_0x4a8acc,_0x28949a]of _0x4c3990[_0x26cea9(0x1a8)]()){if(!Number['isSafeInteger'](_0x28949a['id'])||_0x28949a['id']<=0x0)throw notificationError(_0x26cea9(0x1b3),_0x26cea9(0x1c5)+(_0x4a8acc+0x1)+_0x26cea9(0x1cd));if(_0x28949a[_0x26cea9(0x17d)]!==_0x464088)throw notificationError('notification_config_response_invalid',_0x26cea9(0x1c5)+(_0x4a8acc+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0x28949a[_0x26cea9(0x1e2)]!==_0x38c51e)throw notificationError(_0x26cea9(0x1b3),_0x26cea9(0x1c5)+(_0x4a8acc+0x1)+_0x26cea9(0x199));}}export function safeApiFailure(_0xba0d4f,_0xa24088,_0x2bc985){const _0x3ade9d=a141_0x2ec41a;return notificationError(_0x3ade9d(0x1e5)+_0xba0d4f+'_'+(_0xa24088==='mutation'?'failed':_0xa24088+_0x3ade9d(0x1f1)),_0x3ade9d(0x1a6)+_0xba0d4f+'\x20'+_0xa24088+_0x3ade9d(0x193),_0x2bc985);}export function notificationLookupCommand(_0x478cd7,_0x5adb13){const _0x5dd064=a141_0x2ec41a;return _0x5dd064(0x176)+_0x478cd7+'\x20--type\x20'+_0x5adb13+_0x5dd064(0x178);}function validateNotificationDocument(_0x3b218c,_0x5d0cf1){const _0x56ae7b=a141_0x2ec41a;for(const _0x5e7e7d of Object[_0x56ae7b(0x1e9)](_0x3b218c)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x5e7e7d))throw notificationError(_0x56ae7b(0x1b2),_0x56ae7b(0x197)+_0x5e7e7d+_0x56ae7b(0x190));if(!ALLOWED_INPUT_FIELDS[_0x56ae7b(0x1d9)](_0x5e7e7d))throw notificationError(_0x56ae7b(0x1d5),_0x56ae7b(0x1c2)+_0x5e7e7d+'\x22.');}if(_0x5d0cf1==='update'&&Object[_0x56ae7b(0x1e9)](_0x3b218c)['length']===0x0)throw notificationError(_0x56ae7b(0x1e8),_0x56ae7b(0x1af));const _0x8f1b49={};if(hasOwn(_0x3b218c,_0x56ae7b(0x1c0)))_0x8f1b49[_0x56ae7b(0x1c0)]=validateRequiredString(_0x3b218c['configName'],_0x56ae7b(0x1c0),0x80);else{if(_0x5d0cf1===_0x56ae7b(0x19b))throw notificationError(_0x56ae7b(0x1ab),_0x56ae7b(0x179)+_0x56ae7b(0x1c8));}if(hasOwn(_0x3b218c,_0x56ae7b(0x1e2))){if(typeof _0x3b218c['channelType']!==_0x56ae7b(0x183))throw invalidFieldType(_0x56ae7b(0x1e2),_0x56ae7b(0x191));const _0x15a8da=_0x3b218c[_0x56ae7b(0x1e2)][_0x56ae7b(0x1e7)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x56ae7b(0x1d7)](_0x15a8da))throw notificationError(_0x56ae7b(0x1d8),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x56ae7b(0x1d4)](',\x20')+'.');_0x8f1b49[_0x56ae7b(0x1e2)]=_0x15a8da;}else{if(_0x5d0cf1==='create')throw notificationError('notification_config_field_required',_0x56ae7b(0x179)+_0x56ae7b(0x1f3));}for(const [_0x28b348,_0x2b3947]of[[_0x56ae7b(0x1ec),0x200],[_0x56ae7b(0x1cf),0x100]]){if(!hasOwn(_0x3b218c,_0x28b348))continue;const _0x38581a=_0x3b218c[_0x28b348];if(_0x38581a!==null&&typeof _0x38581a!=='string')throw invalidFieldType(_0x28b348,_0x56ae7b(0x1e3));if(typeof _0x38581a===_0x56ae7b(0x183)&&_0x38581a[_0x56ae7b(0x1bf)]>_0x2b3947)throw notificationError('notification_config_field_invalid',_0x56ae7b(0x197)+_0x28b348+_0x56ae7b(0x188)+_0x2b3947+_0x56ae7b(0x1e6));_0x8f1b49[_0x28b348]=_0x38581a;}if(hasOwn(_0x3b218c,_0x56ae7b(0x180))){const _0x62b5fb=_0x3b218c['channelConfig'];if(_0x62b5fb===null&&_0x5d0cf1===_0x56ae7b(0x19b))throw invalidFieldType(_0x56ae7b(0x180),'a\x20JSON\x20object');if(_0x62b5fb!==null&&!isJsonObject(_0x62b5fb))throw invalidFieldType(_0x56ae7b(0x180),_0x5d0cf1===_0x56ae7b(0x196)?_0x56ae7b(0x1c7):_0x56ae7b(0x19f));_0x62b5fb!==null&&validateChannelConfigFields(_0x8f1b49[_0x56ae7b(0x1e2)],_0x62b5fb),_0x8f1b49[_0x56ae7b(0x180)]=_0x62b5fb;}for(const _0x5a2961 of[_0x56ae7b(0x1a3),_0x56ae7b(0x1ca)]){if(!hasOwn(_0x3b218c,_0x5a2961))continue;const _0x9a5e5a=_0x3b218c[_0x5a2961];if(_0x9a5e5a!==null&&(!Number[_0x56ae7b(0x17b)](_0x9a5e5a)||_0x9a5e5a<0x0))throw notificationError('notification_config_field_invalid',_0x56ae7b(0x197)+_0x5a2961+_0x56ae7b(0x1be));_0x8f1b49[_0x5a2961]=_0x9a5e5a;}return _0x8f1b49;}function validateRequiredString(_0x24c826,_0x56927f,_0x38e5b8){const _0x14ce78=a141_0x2ec41a;if(typeof _0x24c826!==_0x14ce78(0x183))throw invalidFieldType(_0x56927f,_0x14ce78(0x1b1));const _0x8bec3e=_0x24c826[_0x14ce78(0x1e7)]();if(!_0x8bec3e)throw notificationError(_0x14ce78(0x1d8),_0x14ce78(0x197)+_0x56927f+_0x14ce78(0x1b6));if(_0x8bec3e[_0x14ce78(0x1bf)]>_0x38e5b8)throw notificationError(_0x14ce78(0x1d8),_0x14ce78(0x197)+_0x56927f+_0x14ce78(0x188)+_0x38e5b8+_0x14ce78(0x1e6));return _0x8bec3e;}function validateChannelConfigFields(_0x16313e,_0x42c0ec){const _0x43edc2=a141_0x2ec41a;if(hasOwn(_0x42c0ec,_0x43edc2(0x194)))throw forbiddenChannelConfigField(_0x43edc2(0x194));if(_0x16313e==='EMAIL')for(const _0xa2aa8e of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x42c0ec,_0xa2aa8e))throw forbiddenChannelConfigField(_0xa2aa8e);}}function forbiddenChannelConfigField(_0x56eef1){const _0x135e79=a141_0x2ec41a;return notificationError(_0x135e79(0x19a),_0x135e79(0x1bb)+_0x56eef1+_0x135e79(0x1a2));}function invalidFieldType(_0x2d2b8a,_0x275fa6){return notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x2d2b8a+'\x22\x20must\x20be\x20'+_0x275fa6+'.');}function serializeChannelConfig(_0x475d05){return _0x475d05===null||_0x475d05===undefined?null:JSON['stringify'](_0x475d05);}function redactSensitive(_0xcd25a3){return _0xcd25a3===null||_0xcd25a3===undefined||_0xcd25a3===''?null:'<redacted>';}function requireResponseString(_0x5acce9,_0xe8e038,_0x26dea1){const _0x589cf2=a141_0x2ec41a;if(typeof _0x5acce9!==_0x589cf2(0x183)||_0x5acce9['trim']()==='')throw CliErrors[_0x589cf2(0x181)](_0x589cf2(0x1f2),_0x589cf2(0x1d3)+(_0x26dea1+0x1)+_0x589cf2(0x1f8)+_0xe8e038+'\x22.');return _0x5acce9[_0x589cf2(0x1e7)]();}function requireExactString(_0x143347,_0x5bbdb6,_0x598546){const _0x49efad=a141_0x2ec41a;if(typeof _0x143347!=='string'||_0x143347[_0x49efad(0x1e7)]()==='')throw notificationError('notification_config_response_invalid',_0x49efad(0x1a6)+_0x598546+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x5bbdb6+'\x22.');return _0x143347['trim']();}function responseNullableString(_0x4cf539,_0x4d7dee,_0x5508ae){const _0x4a72e9=a141_0x2ec41a;if(_0x4cf539===undefined||_0x4cf539===null)return null;if(typeof _0x4cf539!==_0x4a72e9(0x183))throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x5508ae+_0x4a72e9(0x1ed)+_0x4d7dee+'\x22.');return _0x4cf539;}function responseNullableTimeout(_0x20e3c0,_0x29025b,_0x2669e0){const _0x4c11d4=a141_0x2ec41a;if(_0x20e3c0===undefined||_0x20e3c0===null)return null;if(!Number[_0x4c11d4(0x17b)](_0x20e3c0)||_0x20e3c0<0x0)throw notificationError(_0x4c11d4(0x1b3),_0x4c11d4(0x1a6)+_0x2669e0+_0x4c11d4(0x1ed)+_0x29025b+'\x22.');return _0x20e3c0;}function normalizeNullableString(_0x3092d3){return typeof _0x3092d3==='string'?_0x3092d3:null;}function isJsonObject(_0x540458){const _0x3c7de3=a141_0x2ec41a;return _0x540458!==null&&typeof _0x540458==='object'&&!Array[_0x3c7de3(0x1ba)](_0x540458);}function hasOwn(_0x69137,_0xa38a77){const _0x2625c6=a141_0x2ec41a;return Object[_0x2625c6(0x1b4)][_0x2625c6(0x186)][_0x2625c6(0x17c)](_0x69137,_0xa38a77);}async function readStdin(){const _0x15406d=a141_0x2ec41a;let _0x21680e='';process[_0x15406d(0x1d6)]['setEncoding']('utf8');for await(const _0xf103f0 of process[_0x15406d(0x1d6)])_0x21680e+=_0xf103f0;return _0x21680e;}
@@ -1 +1 @@
1
- const a142_0x4f1ad1=a142_0x3a8e;(function(_0x5e66e3,_0x1d2340){const _0x3fa27e=a142_0x3a8e,_0x27f2ae=_0x5e66e3();while(!![]){try{const _0x7c87db=parseInt(_0x3fa27e(0x9e))/0x1+parseInt(_0x3fa27e(0x95))/0x2*(parseInt(_0x3fa27e(0x87))/0x3)+-parseInt(_0x3fa27e(0x8f))/0x4*(parseInt(_0x3fa27e(0xa3))/0x5)+-parseInt(_0x3fa27e(0xa5))/0x6+-parseInt(_0x3fa27e(0xa8))/0x7+-parseInt(_0x3fa27e(0x80))/0x8*(-parseInt(_0x3fa27e(0xaf))/0x9)+-parseInt(_0x3fa27e(0x8d))/0xa*(-parseInt(_0x3fa27e(0xa7))/0xb);if(_0x7c87db===_0x1d2340)break;else _0x27f2ae['push'](_0x27f2ae['shift']());}catch(_0x413533){_0x27f2ae['push'](_0x27f2ae['shift']());}}}(a142_0x4e6e,0xc35bc));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a142_0x3a8e(_0xa02d9d,_0x599d00){_0xa02d9d=_0xa02d9d-0x80;const _0x4e6ef6=a142_0x4e6e();let _0x3a8ebb=_0x4e6ef6[_0xa02d9d];return _0x3a8ebb;}import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a142_0x4f1ad1(0xa0),'general','form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a142_0x4f1ad1(0xa1),'general':a142_0x4f1ad1(0x8e),'form':a142_0x4f1ad1(0xab),'idCard':a142_0x4f1ad1(0x8c)},SCENE_FLAG={'name':'scene','type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a142_0x4f1ad1(0xb7)},IMAGE_FILE_FLAG={'name':a142_0x4f1ad1(0x93),'type':a142_0x4f1ad1(0xb6),'description':a142_0x4f1ad1(0xa2)},IMAGE_URL_FLAG={'name':a142_0x4f1ad1(0x91),'type':a142_0x4f1ad1(0xb6),'description':a142_0x4f1ad1(0x82)};function normalizeScene(_0x13f556){const _0x4ea2b9=a142_0x4f1ad1,_0x52f242=_0x13f556['trim']()['toLowerCase']();if(_0x52f242===_0x4ea2b9(0x99))return _0x4ea2b9(0x9a);if(_0x52f242===_0x4ea2b9(0xa0)||_0x52f242==='general'||_0x52f242===_0x4ea2b9(0x98))return _0x52f242;throw CliErrors[_0x4ea2b9(0x84)](_0x4ea2b9(0xad)+_0x13f556+_0x4ea2b9(0x9b)+SUPPORTED_SCENES[_0x4ea2b9(0xac)](',\x20'));}function selectedInputs(_0x3b3597){const _0x50a70b=a142_0x4f1ad1,_0x5bcf18=_0x3b3597[_0x50a70b(0xb5)](_0x50a70b(0x93))[_0x50a70b(0xb2)](),_0x5182ed=_0x3b3597[_0x50a70b(0xb5)](_0x50a70b(0x91))[_0x50a70b(0xb2)]();return{'imageFile':_0x5bcf18,'imageUrl':_0x5182ed,'count':[_0x5bcf18,_0x5182ed][_0x50a70b(0x94)](Boolean)[_0x50a70b(0x8a)]};}function validateInputSelection(_0x56da8f){const _0x3fc020=a142_0x4f1ad1,_0x366afb=selectedInputs(_0x56da8f);if(_0x366afb[_0x3fc020(0x85)]!==0x1)throw CliErrors[_0x3fc020(0x84)](_0x3fc020(0xb9));return _0x366afb;}function withScene(_0x1ba79a,_0x1e8ed4,_0x4af902){const _0x454109=a142_0x4f1ad1;return{..._0x1ba79a,'scene':_0x1e8ed4,..._0x4af902?{'sourceFile':{'fileName':_0x4af902[_0x454109(0x86)],'filePath':_0x4af902[_0x454109(0x9c)]}}:{}};}function a142_0x4e6e(){const _0x20f925=['POST','form','idcard','idCard','.\x20Supported\x20scenes:\x20','filePath','path','127426FIjSGk','imageUrl','invoice','Invoice','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','5JDLVGi','/smartapi/ocr/recognize-text?','7465578pbHOyE','toString','11tqdmDU','10227000buKMxC','File\x20URL\x20response\x20missing\x20fileUrl.','/smartapi/common/uploadFile','Table','join','Unsupported\x20OCR\x20scene:\x20','ocr','487197jzqPDs','/smartapi/common/queryFileUrl','fileUrl','trim','scene','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','str','string','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','apiError','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','24szkXkB','imageFile','Publicly\x20accessible\x20image\x20or\x20file\x20URL','Preview:\x20recognize\x20','validation','count','fileName','8493AwcgWy','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','/smartapi/ocr/recognize-text','length','GET','IdCard','23270370cmsZhM','General','1348936pRJyLH','appCode','image-url','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','image-file','filter','866tUdVvy','\x20OCR\x20from\x20URL'];a142_0x4e6e=function(){return _0x20f925;};return a142_0x4e6e();}const ocrRecognize={'service':a142_0x4f1ad1(0xae),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x50e528){const _0x208ea5=a142_0x4f1ad1,_0x14b628=normalizeScene(_0x50e528['str'](_0x208ea5(0xb3))),_0x17b098=SCENE_TO_LEGACY_TYPE[_0x14b628],_0x410b59=validateInputSelection(_0x50e528);if(_0x410b59[_0x208ea5(0x9f)]){const _0x501b2e=new URLSearchParams({'url':_0x410b59[_0x208ea5(0x9f)],'type':_0x17b098,'appCode':_0x50e528[_0x208ea5(0x90)]});return{'method':_0x208ea5(0x8b),'url':_0x208ea5(0xa4)+_0x501b2e[_0x208ea5(0xa6)](),'description':_0x208ea5(0x83)+_0x14b628+_0x208ea5(0x96)};}const _0x3f1368=requireDevelopmentUploadFile(_0x410b59[_0x208ea5(0x81)],_0x208ea5(0x93));return{'method':_0x208ea5(0x97),'url':_0x208ea5(0xaa),'body':{'steps':[{'method':_0x208ea5(0x97),'url':_0x208ea5(0xaa),'body':{'appCode':_0x50e528[_0x208ea5(0x90)],'multipart':{'file':_0x3f1368}}},{'method':'POST','url':_0x208ea5(0xb0),'body':{'filePath':_0x208ea5(0x92),'downloadFlag':![]}},{'method':_0x208ea5(0x8b),'url':_0x208ea5(0x89),'query':{'appCode':_0x50e528[_0x208ea5(0x90)],'url':_0x208ea5(0x88),'type':_0x17b098}}]},'description':_0x208ea5(0xb4)+_0x14b628+'\x20OCR'};},async 'execute'(_0x4159a5){const _0x163835=a142_0x4f1ad1,_0x19ce4c=normalizeScene(_0x4159a5['str']('scene')),_0x2ab380=SCENE_TO_LEGACY_TYPE[_0x19ce4c],_0xcd06e0=validateInputSelection(_0x4159a5);if(_0xcd06e0[_0x163835(0x9f)]){const _0x38d217=await recognizeDevelopmentOcr(_0x4159a5[_0x163835(0x90)],{'url':_0xcd06e0[_0x163835(0x9f)],'type':_0x2ab380});return{'ok':!![],'data':withScene(_0x38d217,_0x19ce4c)};}const _0x22610e=requireDevelopmentUploadFile(_0xcd06e0[_0x163835(0x81)],_0x163835(0x93)),_0x4584ee=await uploadDevelopmentFile(_0x4159a5[_0x163835(0x90)],_0x22610e[_0x163835(0x9d)]);if(!_0x4584ee['filePath'])throw CliErrors['apiError']('File\x20upload\x20response\x20missing\x20filePath.');const _0x22e4b2=await queryDevelopmentFileUrl(_0x4584ee[_0x163835(0x9c)],{'download':![]});if(!_0x22e4b2[_0x163835(0xb1)])throw CliErrors[_0x163835(0xb8)](_0x163835(0xa9));const _0x51a092=await recognizeDevelopmentOcr(_0x4159a5[_0x163835(0x90)],{'url':_0x22e4b2[_0x163835(0xb1)],'type':_0x2ab380});return{'ok':!![],'data':withScene(_0x51a092,_0x19ce4c,_0x4584ee)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a142_0x2c0e50=a142_0x588c;(function(_0x389e91,_0x4e5402){const _0x45acf5=a142_0x588c,_0x328f5b=_0x389e91();while(!![]){try{const _0xa00977=parseInt(_0x45acf5(0x129))/0x1*(-parseInt(_0x45acf5(0x134))/0x2)+parseInt(_0x45acf5(0x14f))/0x3*(parseInt(_0x45acf5(0x12c))/0x4)+-parseInt(_0x45acf5(0x138))/0x5*(-parseInt(_0x45acf5(0x11d))/0x6)+parseInt(_0x45acf5(0x11f))/0x7*(parseInt(_0x45acf5(0x12b))/0x8)+-parseInt(_0x45acf5(0x14d))/0x9*(-parseInt(_0x45acf5(0x14c))/0xa)+parseInt(_0x45acf5(0x120))/0xb*(-parseInt(_0x45acf5(0x130))/0xc)+-parseInt(_0x45acf5(0x127))/0xd;if(_0xa00977===_0x4e5402)break;else _0x328f5b['push'](_0x328f5b['shift']());}catch(_0x4d5f45){_0x328f5b['push'](_0x328f5b['shift']());}}}(a142_0x43fa,0x28207));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a142_0x588c(_0x48bc9d,_0x365c55){_0x48bc9d=_0x48bc9d-0x117;const _0x43fa84=a142_0x43fa();let _0x588c54=_0x43fa84[_0x48bc9d];return _0x588c54;}const SUPPORTED_SCENES=[a142_0x2c0e50(0x135),a142_0x2c0e50(0x152),a142_0x2c0e50(0x14a),a142_0x2c0e50(0x13f)],SCENE_TO_LEGACY_TYPE={'invoice':a142_0x2c0e50(0x13a),'general':a142_0x2c0e50(0x119),'form':'Table','idCard':a142_0x2c0e50(0x14b)},SCENE_FLAG={'name':a142_0x2c0e50(0x11c),'type':a142_0x2c0e50(0x145),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a142_0x2c0e50(0x142)},IMAGE_FILE_FLAG={'name':a142_0x2c0e50(0x149),'type':'string','description':a142_0x2c0e50(0x121)},IMAGE_URL_FLAG={'name':a142_0x2c0e50(0x140),'type':a142_0x2c0e50(0x145),'description':a142_0x2c0e50(0x13d)};function normalizeScene(_0x2abc79){const _0x147034=a142_0x2c0e50,_0x11551e=_0x2abc79[_0x147034(0x12a)]()[_0x147034(0x124)]();if(_0x11551e===_0x147034(0x151))return _0x147034(0x13f);if(_0x11551e===_0x147034(0x135)||_0x11551e===_0x147034(0x152)||_0x11551e==='form')return _0x11551e;throw CliErrors[_0x147034(0x13c)](_0x147034(0x13b)+_0x2abc79+_0x147034(0x11a)+SUPPORTED_SCENES[_0x147034(0x133)](',\x20'));}function a142_0x43fa(){const _0x4c40aa=['image-file','form','IdCard','5860KTXsHx','4482eLrxKX','Preview:\x20recognize\x20','28347DEhyRN','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','idcard','general','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','count','\x20OCR','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','General','.\x20Supported\x20scenes:\x20','filePath','scene','570nNoqbO','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','91ghZTCx','7117rhrEbW','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','fileUrl','GET','toLowerCase','File\x20URL\x20response\x20missing\x20fileUrl.','fileName','6614205YduXOD','path','1ePOShs','trim','202184Pcvcjz','12EobtFB','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','/smartapi/common/uploadFile','str','48DQkooF','toString','imageUrl','join','104254amsWcy','invoice','\x20OCR\x20from\x20URL','recognize','4165IZlhrm','POST','Invoice','Unsupported\x20OCR\x20scene:\x20','validation','Publicly\x20accessible\x20image\x20or\x20file\x20URL','read','idCard','image-url','/smartapi/ocr/recognize-text?','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','appCode','ocr','string','apiError','length','File\x20upload\x20response\x20missing\x20filePath.'];a142_0x43fa=function(){return _0x4c40aa;};return a142_0x43fa();}function selectedInputs(_0x1d773c){const _0x46aa6c=a142_0x2c0e50,_0x5698f1=_0x1d773c[_0x46aa6c(0x12f)](_0x46aa6c(0x149))[_0x46aa6c(0x12a)](),_0x2e3c14=_0x1d773c['str'](_0x46aa6c(0x140))[_0x46aa6c(0x12a)]();return{'imageFile':_0x5698f1,'imageUrl':_0x2e3c14,'count':[_0x5698f1,_0x2e3c14]['filter'](Boolean)[_0x46aa6c(0x147)]};}function validateInputSelection(_0x244876){const _0x567156=a142_0x2c0e50,_0x12df23=selectedInputs(_0x244876);if(_0x12df23[_0x567156(0x154)]!==0x1)throw CliErrors[_0x567156(0x13c)](_0x567156(0x118));return _0x12df23;}function withScene(_0x547692,_0x26317b,_0x459d90){const _0x954dbe=a142_0x2c0e50;return{..._0x547692,'scene':_0x26317b,..._0x459d90?{'sourceFile':{'fileName':_0x459d90[_0x954dbe(0x126)],'filePath':_0x459d90[_0x954dbe(0x11b)]}}:{}};}const ocrRecognize={'service':a142_0x2c0e50(0x144),'command':a142_0x2c0e50(0x137),'description':a142_0x2c0e50(0x153),'risk':a142_0x2c0e50(0x13e),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x44d0d5){const _0x46afe8=a142_0x2c0e50,_0x211468=normalizeScene(_0x44d0d5[_0x46afe8(0x12f)](_0x46afe8(0x11c))),_0x31c5a0=SCENE_TO_LEGACY_TYPE[_0x211468],_0xea31bc=validateInputSelection(_0x44d0d5);if(_0xea31bc['imageUrl']){const _0x172b94=new URLSearchParams({'url':_0xea31bc['imageUrl'],'type':_0x31c5a0,'appCode':_0x44d0d5[_0x46afe8(0x143)]});return{'method':_0x46afe8(0x123),'url':_0x46afe8(0x141)+_0x172b94[_0x46afe8(0x131)](),'description':_0x46afe8(0x14e)+_0x211468+_0x46afe8(0x136)};}const _0x2783d=requireDevelopmentUploadFile(_0xea31bc['imageFile'],'image-file');return{'method':'POST','url':_0x46afe8(0x12e),'body':{'steps':[{'method':_0x46afe8(0x139),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x44d0d5[_0x46afe8(0x143)],'multipart':{'file':_0x2783d}}},{'method':_0x46afe8(0x139),'url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x46afe8(0x11e),'downloadFlag':![]}},{'method':_0x46afe8(0x123),'url':'/smartapi/ocr/recognize-text','query':{'appCode':_0x44d0d5[_0x46afe8(0x143)],'url':_0x46afe8(0x150),'type':_0x31c5a0}}]},'description':_0x46afe8(0x12d)+_0x211468+_0x46afe8(0x117)};},async 'execute'(_0x50632d){const _0x3fc318=a142_0x2c0e50,_0x385665=normalizeScene(_0x50632d[_0x3fc318(0x12f)](_0x3fc318(0x11c))),_0x4bc091=SCENE_TO_LEGACY_TYPE[_0x385665],_0x2b8e6c=validateInputSelection(_0x50632d);if(_0x2b8e6c[_0x3fc318(0x132)]){const _0x1ad98e=await recognizeDevelopmentOcr(_0x50632d[_0x3fc318(0x143)],{'url':_0x2b8e6c[_0x3fc318(0x132)],'type':_0x4bc091});return{'ok':!![],'data':withScene(_0x1ad98e,_0x385665)};}const _0x17697b=requireDevelopmentUploadFile(_0x2b8e6c['imageFile'],'image-file'),_0x42b327=await uploadDevelopmentFile(_0x50632d[_0x3fc318(0x143)],_0x17697b[_0x3fc318(0x128)]);if(!_0x42b327[_0x3fc318(0x11b)])throw CliErrors['apiError'](_0x3fc318(0x148));const _0xcc60e5=await queryDevelopmentFileUrl(_0x42b327[_0x3fc318(0x11b)],{'download':![]});if(!_0xcc60e5[_0x3fc318(0x122)])throw CliErrors[_0x3fc318(0x146)](_0x3fc318(0x125));const _0x4562af=await recognizeDevelopmentOcr(_0x50632d[_0x3fc318(0x143)],{'url':_0xcc60e5[_0x3fc318(0x122)],'type':_0x4bc091});return{'ok':!![],'data':withScene(_0x4562af,_0x385665,_0x42b327)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a143_0x4303b2=a143_0x4a7b;(function(_0x110f89,_0xc3a394){const _0x1e3338=a143_0x4a7b,_0x12738b=_0x110f89();while(!![]){try{const _0x36c041=-parseInt(_0x1e3338(0xbf))/0x1*(parseInt(_0x1e3338(0x98))/0x2)+parseInt(_0x1e3338(0xae))/0x3*(-parseInt(_0x1e3338(0xcc))/0x4)+parseInt(_0x1e3338(0xb5))/0x5+-parseInt(_0x1e3338(0xc3))/0x6*(parseInt(_0x1e3338(0xc7))/0x7)+parseInt(_0x1e3338(0xad))/0x8+parseInt(_0x1e3338(0x9a))/0x9+-parseInt(_0x1e3338(0xa4))/0xa*(-parseInt(_0x1e3338(0xbe))/0xb);if(_0x36c041===_0xc3a394)break;else _0x12738b['push'](_0x12738b['shift']());}catch(_0x347019){_0x12738b['push'](_0x12738b['shift']());}}}(a143_0x2fff,0xbca54));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a143_0x4a7b(_0x5c33f9,_0x3b1355){_0x5c33f9=_0x5c33f9-0x8f;const _0x2fff8e=a143_0x2fff();let _0x4a7b8e=_0x2fff8e[_0x5c33f9];return _0x4a7b8e;}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 a143_0x2fff(){const _0x1106b8=['254708DjNAXk','en-US','CUSTOM','POST','number','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','apiError','pageName','createMenu','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','161258CgYZqK','Would\x20create\x20Custom\x20Page\x20','516960urqQNr','enableI18n','\x20and\x20its\x20menu\x20entry.','BLANK','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','name','trim','version','files','parentMenuId','250HNeDPW','menuPath','page.create','page-type','menuId','isInteger','length','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','pageId','4027504VbhGsJ','51PVssRW','validation','write','page-pattern','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','pagePattern','langs','6120445jLiCaw','/smartapi/webcode/page/create','create','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','str','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','warnings','379588NZSCxC','5zpeeRi','page','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','input','101562BciKUc','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','now','num','161LykIqz','pageName\x20cannot\x20exceed\x20100\x20characters.','parent-menu-id','keys','appCode'];a143_0x2fff=function(){return _0x1106b8;};return a143_0x2fff();}const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a143_0x4303b2(0xcd)];export const pageCreate={'service':a143_0x4303b2(0xc0),'command':a143_0x4303b2(0xb7),'description':a143_0x4303b2(0x96),'risk':a143_0x4303b2(0xb0),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a143_0x4303b2(0xa7),'message':'page\x20create\x20does\x20not\x20accept\x20--page-type.','hint':a143_0x4303b2(0xbc)}],'flags':[{'name':a143_0x4303b2(0x9f),'type':'string','description':a143_0x4303b2(0xc4)},{'name':a143_0x4303b2(0xc9),'type':a143_0x4303b2(0x91),'description':a143_0x4303b2(0x97)},{'name':a143_0x4303b2(0xb1),'type':'string','description':a143_0x4303b2(0x92),'enum':[a143_0x4303b2(0x9d)]},{'name':'page-content','type':'string','description':a143_0x4303b2(0xb9)},APPCODE_FLAG],async 'validate'(_0x45130c){const _0x4b0fce=a143_0x4303b2,_0x36feff=readPagePattern(_0x45130c);await validateCustomPageContent(readInput(_0x45130c,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x36feff)[_0x4b0fce(0xa2)]);},async 'dryRun'(_0x1a4c46){const _0x33a4d5=a143_0x4303b2,{input:_0x3d6d6f}=await prepare(_0x1a4c46);return{'method':_0x33a4d5(0x90),'url':_0x33a4d5(0xb6),'body':{'appCode':_0x3d6d6f['appCode'],'pageName':_0x3d6d6f['pageName'],..._0x3d6d6f[_0x33a4d5(0xa3)]!=null?{'parentMenuId':_0x3d6d6f['parentMenuId']}:{},'createMenu':_0x3d6d6f[_0x33a4d5(0x95)],'codeContent':_0x3d6d6f[_0x33a4d5(0xa2)]},'description':_0x33a4d5(0x99)+JSON['stringify'](_0x3d6d6f[_0x33a4d5(0x94)])+_0x33a4d5(0x9c)};},async 'execute'(_0x3c5e79){const _0xd0578d=a143_0x4303b2,_0x56997e=await prepare(_0x3c5e79),_0x22a5a1=await createCustomPage(_0x56997e[_0xd0578d(0xc2)]);if(!Number[_0xd0578d(0xa9)](_0x22a5a1[_0xd0578d(0xac)])||_0x22a5a1[_0xd0578d(0xac)]<=0x0)throw CliErrors[_0xd0578d(0x93)](_0xd0578d(0x9e));return{'ok':!![],'data':buildMutationData(_0x56997e,_0x22a5a1),'message':'Created\x20Custom\x20Page\x20'+_0x22a5a1[_0xd0578d(0xac)]+'.'};}};async function prepare(_0x5198cb){const _0x286fd2=a143_0x4303b2,_0x3f5d4d=readPagePattern(_0x5198cb);if(_0x3f5d4d===null)return{'input':readInput(_0x5198cb,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3f5d4d),'warnings':[],'pagePattern':_0x3f5d4d};let _0x409d3c=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x428714=[];try{const _0x4bf533=await getI18nInfo(_0x5198cb['appCode']);_0x4bf533[_0x286fd2(0x9b)]&&_0x4bf533[_0x286fd2(0xb4)]?.[_0x286fd2(0xaa)]&&(_0x409d3c=_0x4bf533[_0x286fd2(0xb4)]);}catch{_0x428714=[_0x286fd2(0xba)];}return{'input':readInput(_0x5198cb,_0x409d3c,_0x3f5d4d),'warnings':_0x428714,'pagePattern':_0x3f5d4d};}function readPagePattern(_0x5caf37){const _0x3187e9=a143_0x4303b2,_0x1e5ee2=_0x5caf37[_0x3187e9(0xbb)](_0x3187e9(0xb1))[_0x3187e9(0xa0)](),_0x221251=_0x5caf37['str']('page-content')['trim']()['length']>0x0;if(_0x1e5ee2&&_0x221251)throw CliErrors[_0x3187e9(0xaf)](_0x3187e9(0xb2));if(_0x221251)return null;if(!_0x1e5ee2)throw CliErrors[_0x3187e9(0xaf)](_0x3187e9(0xb8));if(_0x1e5ee2!==_0x3187e9(0x9d))throw CliErrors[_0x3187e9(0xaf)](_0x3187e9(0xab));return _0x1e5ee2;}function readInput(_0x34465b,_0x34033d=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x317fc6=readPagePattern(_0x34465b)){const _0x51ef46=a143_0x4303b2,_0x352c0e=_0x34465b[_0x51ef46(0xbb)](_0x51ef46(0x9f))[_0x51ef46(0xa0)]()||'Custom_page_'+Date[_0x51ef46(0xc5)]();if(_0x352c0e['length']>0x64)throw CliErrors['validation'](_0x51ef46(0xc8));const _0x263dd8=_0x34465b[_0x51ef46(0xc6)]('parent-menu-id',NaN),_0x442a14=!Number['isNaN'](_0x263dd8);if(_0x442a14&&(!Number[_0x51ef46(0xa9)](_0x263dd8)||_0x263dd8<=0x0))throw CliErrors[_0x51ef46(0xaf)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x34465b[_0x51ef46(0xcb)],'pageName':_0x352c0e,..._0x442a14?{'parentMenuId':_0x263dd8}:{},'createMenu':!![],'files':_0x317fc6===null?parseCustomPageContent(_0x34465b[_0x51ef46(0xbb)]('page-content')):buildInitialFiles(_0x352c0e,_0x34033d)};}function buildMutationData(_0x19ba4c,_0x3a157f){const _0x21e086=a143_0x4303b2,{input:_0x59d6be}=_0x19ba4c,_0x8822d6=_0x3a157f&&buildCustomPageDevelopmentUrl(_0x59d6be['appCode'],_0x3a157f[_0x21e086(0xa5)]),_0x5ab7e3=_0x3a157f&&buildCustomPageEditUrl(_0x59d6be[_0x21e086(0xcb)],_0x3a157f[_0x21e086(0xac)]);return{'operation':_0x21e086(0xa6),'pageType':_0x21e086(0x8f),'pagePattern':_0x19ba4c[_0x21e086(0xb3)],'selector':{'appCode':_0x59d6be[_0x21e086(0xcb)],'pageName':_0x59d6be['pageName']},'before':null,'after':{'pageId':_0x3a157f?.['pageId']??null,'pageName':_0x3a157f?.[_0x21e086(0x94)]??_0x59d6be[_0x21e086(0x94)],'appCode':_0x3a157f?.['appCode']??_0x59d6be['appCode'],'version':_0x3a157f?.[_0x21e086(0xa1)]??null,'menuId':_0x3a157f?.[_0x21e086(0xa8)]??null,'menuPath':_0x3a157f?.[_0x21e086(0xa5)]??null,'files':_0x3a157f?.[_0x21e086(0xa2)]??Object[_0x21e086(0xca)](_0x59d6be[_0x21e086(0xa2)])},'dryRun':_0x3a157f===undefined,'request':_0x59d6be,..._0x8822d6?{'pageUrl':_0x8822d6}:{},..._0x5ab7e3?{'editPageUrl':_0x5ab7e3}:{},'warnings':[..._0x19ba4c[_0x21e086(0xbd)],..._0x3a157f&&!_0x8822d6?[_0x21e086(0xc1)]:[]]};}
1
+ const a143_0x46f7a9=a143_0x4844;(function(_0x345da7,_0x2722a7){const _0x1bc021=a143_0x4844,_0x491c04=_0x345da7();while(!![]){try{const _0x2306d2=-parseInt(_0x1bc021(0xd2))/0x1+parseInt(_0x1bc021(0xa0))/0x2+-parseInt(_0x1bc021(0xd5))/0x3*(-parseInt(_0x1bc021(0xaf))/0x4)+-parseInt(_0x1bc021(0xd7))/0x5*(-parseInt(_0x1bc021(0xd9))/0x6)+-parseInt(_0x1bc021(0xa9))/0x7+parseInt(_0x1bc021(0xb0))/0x8+-parseInt(_0x1bc021(0xa4))/0x9*(-parseInt(_0x1bc021(0xce))/0xa);if(_0x2306d2===_0x2722a7)break;else _0x491c04['push'](_0x491c04['shift']());}catch(_0x2dd932){_0x491c04['push'](_0x491c04['shift']());}}}(a143_0x5a38,0xd64c3));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a143_0x46f7a9(0xd6),'en-US'];export const pageCreate={'service':'page','command':a143_0x46f7a9(0xbd),'description':a143_0x46f7a9(0xc1),'risk':a143_0x46f7a9(0xc8),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a143_0x46f7a9(0xbe),'message':a143_0x46f7a9(0xac),'hint':a143_0x46f7a9(0xbb)}],'flags':[{'name':'name','type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xb3)},{'name':a143_0x46f7a9(0xc3),'type':'number','description':a143_0x46f7a9(0xa1)},{'name':a143_0x46f7a9(0xc0),'type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xa7),'enum':[a143_0x46f7a9(0xd8)]},{'name':a143_0x46f7a9(0xc4),'type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xa6)},APPCODE_FLAG],async 'validate'(_0x124133){const _0x29fefc=a143_0x46f7a9,_0x599e50=readPagePattern(_0x124133);await validateCustomPageContent(readInput(_0x124133,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x599e50)[_0x29fefc(0xb5)]);},async 'dryRun'(_0x325efe){const _0x50d107=a143_0x46f7a9,{input:_0x236873}=await prepare(_0x325efe);return{'method':'POST','url':'/smartapi/webcode/page/create','body':{'appCode':_0x236873['appCode'],'pageName':_0x236873['pageName'],..._0x236873['parentMenuId']!=null?{'parentMenuId':_0x236873[_0x50d107(0xb1)]}:{},'createMenu':_0x236873['createMenu'],'codeContent':_0x236873[_0x50d107(0xb5)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON[_0x50d107(0xca)](_0x236873[_0x50d107(0xd1)])+_0x50d107(0xaa)};},async 'execute'(_0x891731){const _0x34bef5=a143_0x46f7a9,_0x1cc0fe=await prepare(_0x891731),_0x4b24ae=await createCustomPage(_0x1cc0fe[_0x34bef5(0xbf)]);if(!Number['isInteger'](_0x4b24ae[_0x34bef5(0xd3)])||_0x4b24ae[_0x34bef5(0xd3)]<=0x0)throw CliErrors[_0x34bef5(0xcd)](_0x34bef5(0xb2));return{'ok':!![],'data':buildMutationData(_0x1cc0fe,_0x4b24ae),'message':_0x34bef5(0xcc)+_0x4b24ae[_0x34bef5(0xd3)]+'.'};}};async function prepare(_0x41cb8e){const _0x487d0c=a143_0x46f7a9,_0x290666=readPagePattern(_0x41cb8e);if(_0x290666===null)return{'input':readInput(_0x41cb8e,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x290666),'warnings':[],'pagePattern':_0x290666};let _0x2a42dc=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3919c3=[];try{const _0x2efb4f=await getI18nInfo(_0x41cb8e[_0x487d0c(0xb7)]);_0x2efb4f[_0x487d0c(0xae)]&&_0x2efb4f[_0x487d0c(0xd0)]?.['length']&&(_0x2a42dc=_0x2efb4f[_0x487d0c(0xd0)]);}catch{_0x3919c3=[_0x487d0c(0xb8)];}return{'input':readInput(_0x41cb8e,_0x2a42dc,_0x290666),'warnings':_0x3919c3,'pagePattern':_0x290666};}function a143_0x5a38(){const _0x3d7427=['stringify','pageName\x20cannot\x20exceed\x20100\x20characters.','Created\x20Custom\x20Page\x20','apiError','3710Sjshcj','isInteger','langs','pageName','834143PoSUGZ','pageId','pagePattern','175254vfPcUP','zh-CN','21265cEWMDa','BLANK','6QSwsyT','version','str','2272472BKplVJ','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','keys','CUSTOM','31491nKuonh','trim','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','now','11972779lwBnZX','\x20and\x20its\x20menu\x20entry.','page.create','page\x20create\x20does\x20not\x20accept\x20--page-type.','num','enableI18n','48GEQnQW','2261352PGzDRI','parentMenuId','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','isNaN','files','warnings','appCode','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','name','menuPath','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','length','create','page-type','input','page-pattern','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','validation','parent-menu-id','page-content','Custom_page_','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','string','write','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.'];a143_0x5a38=function(){return _0x3d7427;};return a143_0x5a38();}function readPagePattern(_0x5a9e1f){const _0x54276b=a143_0x46f7a9,_0x7965d7=_0x5a9e1f['str'](_0x54276b(0xc0))[_0x54276b(0xa5)](),_0x4f826a=_0x5a9e1f[_0x54276b(0x9f)]('page-content')[_0x54276b(0xa5)]()['length']>0x0;if(_0x7965d7&&_0x4f826a)throw CliErrors['validation']('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x4f826a)return null;if(!_0x7965d7)throw CliErrors[_0x54276b(0xc2)]('Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.');if(_0x7965d7!==_0x54276b(0xd8))throw CliErrors['validation']('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x7965d7;}function readInput(_0x485829,_0x71fda=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1c9ab6=readPagePattern(_0x485829)){const _0x50bf4c=a143_0x46f7a9,_0x5182c3=_0x485829[_0x50bf4c(0x9f)](_0x50bf4c(0xb9))[_0x50bf4c(0xa5)]()||_0x50bf4c(0xc5)+Date[_0x50bf4c(0xa8)]();if(_0x5182c3[_0x50bf4c(0xbc)]>0x64)throw CliErrors[_0x50bf4c(0xc2)](_0x50bf4c(0xcb));const _0x3e2c32=_0x485829[_0x50bf4c(0xad)](_0x50bf4c(0xc3),NaN),_0x54a3fc=!Number[_0x50bf4c(0xb4)](_0x3e2c32);if(_0x54a3fc&&(!Number[_0x50bf4c(0xcf)](_0x3e2c32)||_0x3e2c32<=0x0))throw CliErrors[_0x50bf4c(0xc2)](_0x50bf4c(0xc6));return{'appCode':_0x485829['appCode'],'pageName':_0x5182c3,..._0x54a3fc?{'parentMenuId':_0x3e2c32}:{},'createMenu':!![],'files':_0x1c9ab6===null?parseCustomPageContent(_0x485829[_0x50bf4c(0x9f)](_0x50bf4c(0xc4))):buildInitialFiles(_0x5182c3,_0x71fda)};}function a143_0x4844(_0x32c062,_0x4140b8){_0x32c062=_0x32c062-0x9e;const _0x5a38ce=a143_0x5a38();let _0x484477=_0x5a38ce[_0x32c062];return _0x484477;}function buildMutationData(_0x195747,_0x117372){const _0x3f717e=a143_0x46f7a9,{input:_0x9db4b1}=_0x195747,_0x1276fd=_0x117372&&buildCustomPageDevelopmentUrl(_0x9db4b1['appCode'],_0x117372[_0x3f717e(0xba)]),_0x31a8df=_0x117372&&buildCustomPageEditUrl(_0x9db4b1[_0x3f717e(0xb7)],_0x117372['pageId']);return{'operation':_0x3f717e(0xab),'pageType':_0x3f717e(0xa3),'pagePattern':_0x195747[_0x3f717e(0xd4)],'selector':{'appCode':_0x9db4b1[_0x3f717e(0xb7)],'pageName':_0x9db4b1['pageName']},'before':null,'after':{'pageId':_0x117372?.[_0x3f717e(0xd3)]??null,'pageName':_0x117372?.[_0x3f717e(0xd1)]??_0x9db4b1['pageName'],'appCode':_0x117372?.[_0x3f717e(0xb7)]??_0x9db4b1[_0x3f717e(0xb7)],'version':_0x117372?.[_0x3f717e(0x9e)]??null,'menuId':_0x117372?.['menuId']??null,'menuPath':_0x117372?.['menuPath']??null,'files':_0x117372?.['files']??Object[_0x3f717e(0xa2)](_0x9db4b1['files'])},'dryRun':_0x117372===undefined,'request':_0x9db4b1,..._0x1276fd?{'pageUrl':_0x1276fd}:{},..._0x31a8df?{'editPageUrl':_0x31a8df}:{},'warnings':[..._0x195747[_0x3f717e(0xb6)],..._0x117372&&!_0x1276fd?[_0x3f717e(0xc9)]:[]]};}
@@ -1 +1 @@
1
- const a144_0x2516ef=a144_0x4e42;(function(_0x3c737a,_0x394eea){const _0x69f9b6=a144_0x4e42,_0x10ca48=_0x3c737a();while(!![]){try{const _0x5385cd=parseInt(_0x69f9b6(0xa9))/0x1*(parseInt(_0x69f9b6(0xac))/0x2)+-parseInt(_0x69f9b6(0x97))/0x3+-parseInt(_0x69f9b6(0x99))/0x4+-parseInt(_0x69f9b6(0x91))/0x5+-parseInt(_0x69f9b6(0x98))/0x6*(-parseInt(_0x69f9b6(0xa5))/0x7)+-parseInt(_0x69f9b6(0x9d))/0x8*(-parseInt(_0x69f9b6(0xa0))/0x9)+parseInt(_0x69f9b6(0xa2))/0xa*(parseInt(_0x69f9b6(0x94))/0xb);if(_0x5385cd===_0x394eea)break;else _0x10ca48['push'](_0x10ca48['shift']());}catch(_0x125492){_0x10ca48['push'](_0x10ca48['shift']());}}}(a144_0x3df3,0xbc7f7));function a144_0x3df3(){const _0x4086ae=['86124aZqDQR','1371364YCSsvC','getSeconds','page','join','104DulrId','padStart','getTime','737631FeLQGF','isNaN','8599930LYSEcr','Retrieved\x20Custom\x20Page\x20','appcode','7FluxBz','number','cookie','getMonth','64403MXqrVf','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','trim','46xGXuic','getDate','4439540TuToGA','str','pageCode','11rFsbew','getMinutes','appCode','4254741hJZWAU'];a144_0x3df3=function(){return _0x4086ae;};return a144_0x3df3();}function a144_0x4e42(_0x30f0e5,_0x4d9246){_0x30f0e5=_0x30f0e5-0x90;const _0x3df30c=a144_0x3df3();let _0x4e420f=_0x3df30c[_0x30f0e5];return _0x4e420f;}import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a144_0x2516ef(0x9b),'command':'custom-detail','description':a144_0x2516ef(0xaa),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x2516ef(0xa6),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x35f920){readCustomPageId(_0x35f920);},async 'execute'(_0x4faf23){const _0x3b42db=a144_0x2516ef,_0x516193=readCustomPageId(_0x4faf23),_0x43e9e5=await getCustomPageSource(_0x516193),{bundle:_0x54d37b,createTime:_0x1f03a3,updateTime:_0x454447,..._0x404ffc}=_0x43e9e5,_0x4678ff=_0x43e9e5['id']??_0x516193,_0x17e607=_0x43e9e5[_0x3b42db(0x96)]?.[_0x3b42db(0xab)]()||_0x4faf23[_0x3b42db(0x92)](_0x3b42db(0xa4))[_0x3b42db(0xab)](),_0x5f0175=buildCustomPageRuntimeUrl(_0x17e607,_0x43e9e5[_0x3b42db(0x93)]),_0x31ad38=buildCustomPageEditUrl(_0x17e607,_0x4678ff),_0x152768=await resolveCustomPageDevelopmentUrl(_0x17e607,_0x4678ff,_0x4faf23[_0x3b42db(0xa7)]);return{'ok':!![],'data':{..._0x404ffc,..._0x5f0175?{'runtimePageUrl':_0x5f0175}:{},..._0x152768?{'pageUrl':_0x152768}:{},..._0x31ad38?{'editPageUrl':_0x31ad38}:{},..._0x1f03a3==null?{}:{'createTime':formatTime(_0x1f03a3)},..._0x454447==null?{}:{'updateTime':formatTime(_0x454447)}},'message':_0x3b42db(0xa3)+_0x516193+'.'};}};function formatTime(_0x26d759){const _0x469f37=a144_0x2516ef,_0x59fcfa=new Date(_0x26d759);if(Number[_0x469f37(0xa1)](_0x59fcfa[_0x469f37(0x9f)]()))return String(_0x26d759);const _0x467adb=[_0x59fcfa['getFullYear'](),String(_0x59fcfa[_0x469f37(0xa8)]()+0x1)['padStart'](0x2,'0'),String(_0x59fcfa[_0x469f37(0x90)]())[_0x469f37(0x9e)](0x2,'0')][_0x469f37(0x9c)]('-'),_0x56b1f4=[String(_0x59fcfa['getHours']())[_0x469f37(0x9e)](0x2,'0'),String(_0x59fcfa[_0x469f37(0x95)]())[_0x469f37(0x9e)](0x2,'0'),String(_0x59fcfa[_0x469f37(0x9a)]())['padStart'](0x2,'0')][_0x469f37(0x9c)](':');return _0x467adb+'\x20'+_0x56b1f4;}
1
+ function a144_0x4936(){const _0x2b39e2=['page','294sSyHHQ','getHours','7022sVvxXd','getMinutes','3744044fDWgFz','padStart','number','appcode','138urjLic','cookie','custom-detail','trim','appCode','getFullYear','36818Qbclio','74824cgLvaj','48293EaJxsh','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','Retrieved\x20Custom\x20Page\x20','2124010SNHRlf','747OXmKbJ','pageCode','24269800zevnUT','read'];a144_0x4936=function(){return _0x2b39e2;};return a144_0x4936();}const a144_0x431b49=a144_0x2af8;(function(_0x65f13e,_0x5da42e){const _0xa4793e=a144_0x2af8,_0x460f07=_0x65f13e();while(!![]){try{const _0x406fe5=parseInt(_0xa4793e(0x1eb))/0x1+parseInt(_0xa4793e(0x1df))/0x2*(-parseInt(_0xa4793e(0x1e5))/0x3)+-parseInt(_0xa4793e(0x1e1))/0x4+parseInt(_0xa4793e(0x1f0))/0x5+parseInt(_0xa4793e(0x1dd))/0x6*(-parseInt(_0xa4793e(0x1ed))/0x7)+-parseInt(_0xa4793e(0x1ec))/0x8*(parseInt(_0xa4793e(0x1f1))/0x9)+parseInt(_0xa4793e(0x1f3))/0xa;if(_0x406fe5===_0x5da42e)break;else _0x460f07['push'](_0x460f07['shift']());}catch(_0x7abd4d){_0x460f07['push'](_0x460f07['shift']());}}}(a144_0x4936,0xa537d));import{getCustomPageSource}from'../../../core/api-client.js';function a144_0x2af8(_0x278a3,_0x59c6f1){_0x278a3=_0x278a3-0x1dc;const _0x49369d=a144_0x4936();let _0x2af88f=_0x49369d[_0x278a3];return _0x2af88f;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a144_0x431b49(0x1dc),'command':a144_0x431b49(0x1e7),'description':a144_0x431b49(0x1ee),'risk':a144_0x431b49(0x1f4),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x431b49(0x1e3),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xffd2a9){readCustomPageId(_0xffd2a9);},async 'execute'(_0x4e14dd){const _0x117097=a144_0x431b49,_0x34f68d=readCustomPageId(_0x4e14dd),_0x3c81e9=await getCustomPageSource(_0x34f68d),{bundle:_0x5916d3,createTime:_0x3b13e4,updateTime:_0x431577,..._0x18f6fa}=_0x3c81e9,_0x315974=_0x3c81e9['id']??_0x34f68d,_0xbb1236=_0x3c81e9[_0x117097(0x1e9)]?.['trim']()||_0x4e14dd['str'](_0x117097(0x1e4))[_0x117097(0x1e8)](),_0x5b1522=buildCustomPageRuntimeUrl(_0xbb1236,_0x3c81e9[_0x117097(0x1f2)]),_0x14dc4e=buildCustomPageEditUrl(_0xbb1236,_0x315974),_0x3df653=await resolveCustomPageDevelopmentUrl(_0xbb1236,_0x315974,_0x4e14dd[_0x117097(0x1e6)]);return{'ok':!![],'data':{..._0x18f6fa,..._0x5b1522?{'runtimePageUrl':_0x5b1522}:{},..._0x3df653?{'pageUrl':_0x3df653}:{},..._0x14dc4e?{'editPageUrl':_0x14dc4e}:{},..._0x3b13e4==null?{}:{'createTime':formatTime(_0x3b13e4)},..._0x431577==null?{}:{'updateTime':formatTime(_0x431577)}},'message':_0x117097(0x1ef)+_0x34f68d+'.'};}};function formatTime(_0x52a539){const _0x419990=a144_0x431b49,_0x5512ac=new Date(_0x52a539);if(Number['isNaN'](_0x5512ac['getTime']()))return String(_0x52a539);const _0x4ffaef=[_0x5512ac[_0x419990(0x1ea)](),String(_0x5512ac['getMonth']()+0x1)[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac['getDate']())[_0x419990(0x1e2)](0x2,'0')]['join']('-'),_0x1a818d=[String(_0x5512ac[_0x419990(0x1de)]())[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac[_0x419990(0x1e0)]())[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac['getSeconds']())['padStart'](0x2,'0')]['join'](':');return _0x4ffaef+'\x20'+_0x1a818d;}
@@ -1 +1 @@
1
- const a145_0x1b5efa=a145_0x236e;function a145_0x4d71(){const _0x4cebd5=['type','25105egRuYt','read','Found\x20','path','No\x20Custom\x20Pages\x20found.','pageId','20hieFJH','custom-list','693elCvmL','37686dqZvsN','react','741150CBOqCS','\x20Custom\x20Page(s).','94448NDqqah','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','210434RKwVxC','compress','flatMap','appCode','482044QALZuc','24vmbSrk','page','menus','cookie','1780NuhYyU','2860419TOoXIC','label'];a145_0x4d71=function(){return _0x4cebd5;};return a145_0x4d71();}(function(_0x230034,_0x61b636){const _0x2e2a25=a145_0x236e,_0x50f5a0=_0x230034();while(!![]){try{const _0x1b695e=parseInt(_0x2e2a25(0x1d1))/0x1+-parseInt(_0x2e2a25(0x1c9))/0x2+-parseInt(_0x2e2a25(0x1bb))/0x3+parseInt(_0x2e2a25(0x1c4))/0x4*(parseInt(_0x2e2a25(0x1be))/0x5)+parseInt(_0x2e2a25(0x1d2))/0x6*(-parseInt(_0x2e2a25(0x1cd))/0x7)+-parseInt(_0x2e2a25(0x1cb))/0x8*(-parseInt(_0x2e2a25(0x1c6))/0x9)+parseInt(_0x2e2a25(0x1d6))/0xa*(parseInt(_0x2e2a25(0x1c7))/0xb);if(_0x1b695e===_0x61b636)break;else _0x50f5a0['push'](_0x50f5a0['shift']());}catch(_0x33f29f){_0x50f5a0['push'](_0x50f5a0['shift']());}}}(a145_0x4d71,0x8e06f));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a145_0x236e(_0x3b51ee,_0xb2f184){_0x3b51ee=_0x3b51ee-0x1bb;const _0x4d71f9=a145_0x4d71();let _0x236e35=_0x4d71f9[_0x3b51ee];return _0x236e35;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a145_0x1b5efa(0x1d3),'command':a145_0x1b5efa(0x1c5),'description':a145_0x1b5efa(0x1cc),'risk':a145_0x1b5efa(0x1bf),'defaultOutputFormat':a145_0x1b5efa(0x1ce),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4190ce){const _0x2dc65d=a145_0x1b5efa,_0x4f2ccd=(await fetchMenuSnapshot(_0x4190ce[_0x2dc65d(0x1d0)],_0x4190ce[_0x2dc65d(0x1d5)]))[_0x2dc65d(0x1d4)][_0x2dc65d(0x1cf)](_0x322bb8=>{const _0x24b18a=_0x2dc65d;if(_0x322bb8[_0x24b18a(0x1bd)]!==_0x24b18a(0x1c8)||_0x322bb8[_0x24b18a(0x1c3)]==null)return[];const _0x4ad919=buildCustomPageDevelopmentUrl(_0x4190ce[_0x24b18a(0x1d0)],_0x322bb8[_0x24b18a(0x1c1)]),_0x501f4e=buildCustomPageEditUrl(_0x4190ce[_0x24b18a(0x1d0)],_0x322bb8[_0x24b18a(0x1c3)]);return[{'pageId':_0x322bb8[_0x24b18a(0x1c3)],'label':_0x322bb8[_0x24b18a(0x1bc)],..._0x4ad919?{'pageUrl':_0x4ad919}:{},..._0x501f4e?{'editPageUrl':_0x501f4e}:{}}];});return{'ok':!![],'data':{'pages':_0x4f2ccd},'message':_0x4f2ccd['length']===0x0?_0x2dc65d(0x1c2):_0x2dc65d(0x1c0)+_0x4f2ccd['length']+_0x2dc65d(0x1ca)};}};
1
+ const a145_0x4e7d52=a145_0x3aea;(function(_0x4a8027,_0x295ba4){const _0x1d2a5b=a145_0x3aea,_0x1c3e5e=_0x4a8027();while(!![]){try{const _0x2a3e38=parseInt(_0x1d2a5b(0x191))/0x1*(-parseInt(_0x1d2a5b(0x196))/0x2)+parseInt(_0x1d2a5b(0x18a))/0x3+parseInt(_0x1d2a5b(0x195))/0x4*(-parseInt(_0x1d2a5b(0x181))/0x5)+parseInt(_0x1d2a5b(0x182))/0x6*(-parseInt(_0x1d2a5b(0x185))/0x7)+-parseInt(_0x1d2a5b(0x183))/0x8*(-parseInt(_0x1d2a5b(0x18e))/0x9)+-parseInt(_0x1d2a5b(0x192))/0xa*(parseInt(_0x1d2a5b(0x18c))/0xb)+parseInt(_0x1d2a5b(0x18d))/0xc*(parseInt(_0x1d2a5b(0x194))/0xd);if(_0x2a3e38===_0x295ba4)break;else _0x1c3e5e['push'](_0x1c3e5e['shift']());}catch(_0x4bc305){_0x1c3e5e['push'](_0x1c3e5e['shift']());}}}(a145_0x2388,0x7f456));function a145_0x3aea(_0x5e4e96,_0x5229c2){_0x5e4e96=_0x5e4e96-0x17f;const _0x238833=a145_0x2388();let _0x3aeaad=_0x238833[_0x5e4e96];return _0x3aeaad;}function a145_0x2388(){const _0x44507f=['203910ynpwiq','100976aPdveM','read','98FsSARk','custom-list','react','appCode','page','1683783TNrFRa','menus','66thWhgM','12cQHELF','270baicnT','No\x20Custom\x20Pages\x20found.','label','20369wkeiWO','1434710wmkqgc','flatMap','35505379VqLMQo','436JTujxT','82MeZWLf','type','pageId','\x20Custom\x20Page(s).','length','44865CYgjvM'];a145_0x2388=function(){return _0x44507f;};return a145_0x2388();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a145_0x4e7d52(0x189),'command':a145_0x4e7d52(0x186),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a145_0x4e7d52(0x184),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5bbef0){const _0x537264=a145_0x4e7d52,_0x5af601=(await fetchMenuSnapshot(_0x5bbef0[_0x537264(0x188)],_0x5bbef0['cookie']))[_0x537264(0x18b)][_0x537264(0x193)](_0x32260c=>{const _0x1f3280=_0x537264;if(_0x32260c[_0x1f3280(0x197)]!==_0x1f3280(0x187)||_0x32260c[_0x1f3280(0x198)]==null)return[];const _0x3b15a3=buildCustomPageDevelopmentUrl(_0x5bbef0['appCode'],_0x32260c['path']),_0x59d9f1=buildCustomPageEditUrl(_0x5bbef0[_0x1f3280(0x188)],_0x32260c['pageId']);return[{'pageId':_0x32260c[_0x1f3280(0x198)],'label':_0x32260c[_0x1f3280(0x190)],..._0x3b15a3?{'pageUrl':_0x3b15a3}:{},..._0x59d9f1?{'editPageUrl':_0x59d9f1}:{}}];});return{'ok':!![],'data':{'pages':_0x5af601},'message':_0x5af601['length']===0x0?_0x537264(0x18f):'Found\x20'+_0x5af601[_0x537264(0x180)]+_0x537264(0x17f)};}};
@@ -1 +1 @@
1
- const a146_0x49b876=a146_0x1b75;(function(_0x5a171d,_0x513f16){const _0x247df9=a146_0x1b75,_0x4466b4=_0x5a171d();while(!![]){try{const _0x2c6416=-parseInt(_0x247df9(0x13c))/0x1+parseInt(_0x247df9(0x134))/0x2*(-parseInt(_0x247df9(0x14a))/0x3)+-parseInt(_0x247df9(0x13f))/0x4*(-parseInt(_0x247df9(0x133))/0x5)+parseInt(_0x247df9(0x149))/0x6*(parseInt(_0x247df9(0x12b))/0x7)+-parseInt(_0x247df9(0x12f))/0x8*(-parseInt(_0x247df9(0x138))/0x9)+-parseInt(_0x247df9(0x130))/0xa+parseInt(_0x247df9(0x126))/0xb;if(_0x2c6416===_0x513f16)break;else _0x4466b4['push'](_0x4466b4['shift']());}catch(_0x2cfae7){_0x4466b4['push'](_0x4466b4['shift']());}}}(a146_0x49b9,0x644ee));function a146_0x1b75(_0x3eb9ff,_0x31711c){_0x3eb9ff=_0x3eb9ff-0x121;const _0x49b990=a146_0x49b9();let _0x1b75c6=_0x49b990[_0x3eb9ff];return _0x1b75c6;}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a146_0x49b9(){const _0x30cd49=['POST','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','15anEakW','14038ZqcDnA','status','pageId','apiError','1674fUcnAW','compress','isInteger','remark','796961EOpSoW','trim','number','1082440hgPjDc','custom-publish','warnings','Would\x20publish\x20Custom\x20Page\x20','write','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','Custom\x20Page\x20ID','unknown','page','Optional\x20publish\x20remark','12HyNvvD','282xzduTM','page.custom-publish','push','pageCode','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','4243129uZfQLj','/smartapi/webcode/file/publish','string','runtimePageUrl','Published\x20Custom\x20Page\x20','2528176jDMECE','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','FORMAL','appCode','1448TqWSqH','859620HBUSRM'];a146_0x49b9=function(){return _0x30cd49;};return a146_0x49b9();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a146_0x49b876(0x147),'command':a146_0x49b876(0x140),'description':a146_0x49b876(0x144),'risk':a146_0x49b876(0x143),'defaultOutputFormat':a146_0x49b876(0x139),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a146_0x49b876(0x13e),'required':!![],'description':a146_0x49b876(0x145)},{'name':a146_0x49b876(0x13b),'type':a146_0x49b876(0x128),'description':a146_0x49b876(0x148)}],async 'validate'(_0x56043c){readCustomPageId(_0x56043c);},async 'dryRun'(_0x47317c){const _0xf5518c=a146_0x49b876,_0x3b0733=readInput(_0x47317c);return{'method':_0xf5518c(0x131),'url':_0xf5518c(0x127),'body':{'id':_0x3b0733[_0xf5518c(0x136)],..._0x3b0733['remark']?{'remark':_0x3b0733['remark']}:{}},'description':_0xf5518c(0x142)+_0x3b0733[_0xf5518c(0x136)]+'.'};},async 'execute'(_0x220464){const _0x4ad2b2=a146_0x49b876,_0x18b9a0=readInput(_0x220464);await getCustomPageSource(_0x18b9a0[_0x4ad2b2(0x136)]);const _0x18caa1=await publishCustomPage(_0x18b9a0);if(!Number[_0x4ad2b2(0x13a)](_0x18caa1)||_0x18caa1!==_0x18b9a0[_0x4ad2b2(0x136)])throw CliErrors['apiError'](_0x4ad2b2(0x125));const _0x43a774=await getCustomPageSource(_0x18b9a0[_0x4ad2b2(0x136)]);if(_0x43a774[_0x4ad2b2(0x135)]!==_0x4ad2b2(0x12d))throw CliErrors[_0x4ad2b2(0x137)](_0x4ad2b2(0x132)+(_0x43a774[_0x4ad2b2(0x135)]??_0x4ad2b2(0x146))+'.');const _0x2b3d9a=_0x43a774[_0x4ad2b2(0x12e)]?.[_0x4ad2b2(0x13d)](),_0x42e14a=buildCustomPageEditUrl(_0x2b3d9a,_0x18b9a0['pageId']),_0x5edf3f=await resolveCustomPageDevelopmentUrl(_0x2b3d9a,_0x18b9a0[_0x4ad2b2(0x136)],_0x220464['cookie']),_0x3f1658=buildMutationData(_0x18b9a0,!![],_0x5edf3f,_0x42e14a);_0x2b3d9a&&!_0x5edf3f&&_0x3f1658['warnings'][_0x4ad2b2(0x122)](_0x4ad2b2(0x124));const _0x260c11=buildCustomPageRuntimeUrl(_0x43a774[_0x4ad2b2(0x12e)],_0x43a774[_0x4ad2b2(0x123)]);return _0x260c11?_0x3f1658[_0x4ad2b2(0x129)]=_0x260c11:_0x3f1658[_0x4ad2b2(0x141)][_0x4ad2b2(0x122)](_0x4ad2b2(0x12c)),{'ok':!![],'data':_0x3f1658,'message':_0x4ad2b2(0x12a)+_0x18b9a0['pageId']+'.'};}};function readInput(_0x2da613){const _0x30a943=a146_0x49b876,_0x404d19=readCustomPageId(_0x2da613),_0x45ea32=_0x2da613['str'](_0x30a943(0x13b))[_0x30a943(0x13d)]();return{'pageId':_0x404d19,..._0x45ea32?{'remark':_0x45ea32}:{}};}function buildMutationData(_0x2c551d,_0x55d1d1=![],_0x30500a,_0x52dea6){const _0x5ed828=a146_0x49b876;return{'operation':_0x5ed828(0x121),'selector':{'pageId':_0x2c551d[_0x5ed828(0x136)]},'before':null,'after':{'pageId':_0x2c551d[_0x5ed828(0x136)],'status':_0x5ed828(0x12d)},'dryRun':!_0x55d1d1,'request':_0x2c551d,..._0x30500a?{'pageUrl':_0x30500a}:{},..._0x52dea6?{'editPageUrl':_0x52dea6}:{},'warnings':[]};}
1
+ const a146_0x8cfbde=a146_0x343a;(function(_0x85628,_0x7e7c14){const _0x2aa027=a146_0x343a,_0x48dd09=_0x85628();while(!![]){try{const _0x34877d=-parseInt(_0x2aa027(0x181))/0x1+-parseInt(_0x2aa027(0x17a))/0x2*(parseInt(_0x2aa027(0x199))/0x3)+-parseInt(_0x2aa027(0x17d))/0x4*(parseInt(_0x2aa027(0x176))/0x5)+parseInt(_0x2aa027(0x18d))/0x6*(parseInt(_0x2aa027(0x17e))/0x7)+-parseInt(_0x2aa027(0x19b))/0x8+-parseInt(_0x2aa027(0x17f))/0x9+parseInt(_0x2aa027(0x195))/0xa*(parseInt(_0x2aa027(0x197))/0xb);if(_0x34877d===_0x7e7c14)break;else _0x48dd09['push'](_0x48dd09['shift']());}catch(_0x4659a7){_0x48dd09['push'](_0x48dd09['shift']());}}}(a146_0x2c4f,0xaabc6));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':a146_0x8cfbde(0x188),'command':a146_0x8cfbde(0x18b),'description':a146_0x8cfbde(0x186),'risk':'write','defaultOutputFormat':a146_0x8cfbde(0x177),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a146_0x8cfbde(0x17c)},{'name':a146_0x8cfbde(0x190),'type':a146_0x8cfbde(0x184),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x2e0c8e){readCustomPageId(_0x2e0c8e);},async 'dryRun'(_0x53e6cf){const _0x336ec7=a146_0x8cfbde,_0x40d081=readInput(_0x53e6cf);return{'method':_0x336ec7(0x19a),'url':_0x336ec7(0x19d),'body':{'id':_0x40d081[_0x336ec7(0x179)],..._0x40d081[_0x336ec7(0x190)]?{'remark':_0x40d081[_0x336ec7(0x190)]}:{}},'description':_0x336ec7(0x193)+_0x40d081['pageId']+'.'};},async 'execute'(_0x8c689f){const _0x12057e=a146_0x8cfbde,_0x364d7b=readInput(_0x8c689f);await getCustomPageSource(_0x364d7b['pageId']);const _0x5b6f6d=await publishCustomPage(_0x364d7b);if(!Number[_0x12057e(0x180)](_0x5b6f6d)||_0x5b6f6d!==_0x364d7b[_0x12057e(0x179)])throw CliErrors[_0x12057e(0x187)](_0x12057e(0x191));const _0x22661a=await getCustomPageSource(_0x364d7b[_0x12057e(0x179)]);if(_0x22661a[_0x12057e(0x196)]!=='FORMAL')throw CliErrors['apiError'](_0x12057e(0x18c)+(_0x22661a[_0x12057e(0x196)]??_0x12057e(0x185))+'.');const _0x58f999=_0x22661a[_0x12057e(0x18f)]?.[_0x12057e(0x183)](),_0x4f1133=buildCustomPageEditUrl(_0x58f999,_0x364d7b[_0x12057e(0x179)]),_0x584a7a=await resolveCustomPageDevelopmentUrl(_0x58f999,_0x364d7b[_0x12057e(0x179)],_0x8c689f[_0x12057e(0x178)]),_0x330930=buildMutationData(_0x364d7b,!![],_0x584a7a,_0x4f1133);_0x58f999&&!_0x584a7a&&_0x330930['warnings']['push'](_0x12057e(0x182));const _0xe6a9c7=buildCustomPageRuntimeUrl(_0x22661a['appCode'],_0x22661a[_0x12057e(0x192)]);return _0xe6a9c7?_0x330930[_0x12057e(0x18e)]=_0xe6a9c7:_0x330930[_0x12057e(0x194)][_0x12057e(0x18a)](_0x12057e(0x189)),{'ok':!![],'data':_0x330930,'message':'Published\x20Custom\x20Page\x20'+_0x364d7b[_0x12057e(0x179)]+'.'};}};function a146_0x343a(_0x4c7c6a,_0x263b7e){_0x4c7c6a=_0x4c7c6a-0x176;const _0x2c4fe8=a146_0x2c4f();let _0x343a44=_0x2c4fe8[_0x4c7c6a];return _0x343a44;}function readInput(_0x2badae){const _0x5be732=a146_0x8cfbde,_0x3aab0e=readCustomPageId(_0x2badae),_0xdd3ed=_0x2badae[_0x5be732(0x17b)](_0x5be732(0x190))[_0x5be732(0x183)]();return{'pageId':_0x3aab0e,..._0xdd3ed?{'remark':_0xdd3ed}:{}};}function a146_0x2c4f(){const _0x35e25e=['apiError','page','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','push','custom-publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','84qqURDo','runtimePageUrl','appCode','remark','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','pageCode','Would\x20publish\x20Custom\x20Page\x20','warnings','58270UdCwgK','status','6809JgYZuu','FORMAL','567612yuLyzX','POST','409072VxDxMe','page.custom-publish','/smartapi/webcode/file/publish','8290vyLQYl','compress','cookie','pageId','4RXzlUV','str','Custom\x20Page\x20ID','2984QZuvpm','76727LVYSxP','4209075rtdLcw','isInteger','926948ZwORwV','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','string','unknown','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a146_0x2c4f=function(){return _0x35e25e;};return a146_0x2c4f();}function buildMutationData(_0xe4dcd2,_0x511b87=![],_0x1754a9,_0x4238a9){const _0xf00a6a=a146_0x8cfbde;return{'operation':_0xf00a6a(0x19c),'selector':{'pageId':_0xe4dcd2['pageId']},'before':null,'after':{'pageId':_0xe4dcd2['pageId'],'status':_0xf00a6a(0x198)},'dryRun':!_0x511b87,'request':_0xe4dcd2,..._0x1754a9?{'pageUrl':_0x1754a9}:{},..._0x4238a9?{'editPageUrl':_0x4238a9}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a147_0x5e89d8=a147_0x25f3;(function(_0x19cab4,_0x440cd2){const _0x4984d2=a147_0x25f3,_0x8c152a=_0x19cab4();while(!![]){try{const _0x317a77=parseInt(_0x4984d2(0x97))/0x1+-parseInt(_0x4984d2(0x9b))/0x2*(parseInt(_0x4984d2(0x94))/0x3)+-parseInt(_0x4984d2(0x9a))/0x4+parseInt(_0x4984d2(0x8d))/0x5+parseInt(_0x4984d2(0x8c))/0x6+-parseInt(_0x4984d2(0x9e))/0x7+parseInt(_0x4984d2(0x91))/0x8*(parseInt(_0x4984d2(0x98))/0x9);if(_0x317a77===_0x440cd2)break;else _0x8c152a['push'](_0x8c152a['shift']());}catch(_0x4e3522){_0x8c152a['push'](_0x8c152a['shift']());}}}(a147_0x1777,0xe7474));function a147_0x25f3(_0x3477b4,_0x2ad635){_0x3477b4=_0x3477b4-0x85;const _0x1777b1=a147_0x1777();let _0x25f363=_0x1777b1[_0x3477b4];return _0x25f363;}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a147_0x1777(){const _0x57fb9c=['validation','page-content','6737010cyiEsx','135490UXGNuV','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','path','menus','27144136mgfXMo','values','length','57XxxrJr','file','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','42416GhJVwg','9ioQxiK','/pages/','4885784UPnNIP','158860EiPVKb','react','--id\x20must\x20be\x20a\x20positive\x20integer.','6352038XGaCuu','Invalid\x20Custom\x20Page\x20content:\x20','find','pageId','/ide/','parse','isInteger','join','--page-content\x20must\x20be\x20valid\x20JSON.','some','object','trim','string'];a147_0x1777=function(){return _0x57fb9c;};return a147_0x1777();}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a147_0x5e89d8(0x8e)};function trimOptional(_0x18c2d0){const _0x269200=a147_0x5e89d8;return _0x18c2d0?.[_0x269200(0x88)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x2ec8a0,_0x2d74d0){const _0x77b5d=trimOptional(_0x2ec8a0),_0xc63919=trimOptional(_0x2d74d0);if(!_0x77b5d||!_0xc63919)return undefined;return getPublishedAppDomain(_0x77b5d)+'/'+encodeURIComponent(_0xc63919);}export function buildCustomPageDevelopmentUrl(_0x505fa5,_0x589b47){const _0x5ad643=a147_0x5e89d8,_0x767661=trimOptional(_0x505fa5),_0x1195dc=trimOptional(_0x589b47);if(!_0x767661||!_0x1195dc)return undefined;return getAppBaseUrl(_0x767661)+_0x5ad643(0x99)+encodeURIComponent(_0x1195dc);}export async function resolveCustomPageDevelopmentUrl(_0x51efbc,_0x2272d5,_0x3c17de){const _0x4933dd=a147_0x5e89d8,_0x2657ea=trimOptional(_0x51efbc);if(!_0x2657ea)return undefined;try{const _0x65b85b=(await fetchMenuSnapshot(_0x2657ea,_0x3c17de))[_0x4933dd(0x90)][_0x4933dd(0xa0)](_0x5241f2=>_0x5241f2['type']===_0x4933dd(0x9c)&&_0x5241f2[_0x4933dd(0xa1)]===_0x2272d5);return buildCustomPageDevelopmentUrl(_0x2657ea,_0x65b85b?.[_0x4933dd(0x8f)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x175e8b,_0x5748c){const _0x15424e=a147_0x5e89d8,_0x30ed6b=trimOptional(_0x175e8b);if(!_0x30ed6b)return;const _0x21217d=trimOptional(_0x5748c==null?undefined:String(_0x5748c));if(!_0x21217d)return;return getAppBaseUrl(_0x30ed6b)+_0x15424e(0xa2)+encodeURIComponent(_0x21217d);}export function parseCustomPageContent(_0x573241){const _0x261a13=a147_0x5e89d8;if(!_0x573241['trim']())throw CliErrors['flagMissing'](_0x261a13(0x8b));let _0x4478e5;try{_0x4478e5=JSON[_0x261a13(0xa3)](_0x573241);}catch{throw CliErrors[_0x261a13(0x8a)](_0x261a13(0x85));}if(typeof _0x4478e5!==_0x261a13(0x87)||_0x4478e5===null||Array['isArray'](_0x4478e5)||Object[_0x261a13(0x92)](_0x4478e5)[_0x261a13(0x86)](_0x43f3bd=>typeof _0x43f3bd!==_0x261a13(0x89)))throw CliErrors[_0x261a13(0x8a)](_0x261a13(0x96));return _0x4478e5;}export async function validateCustomPageContent(_0x582a33){const _0x30cdac=a147_0x5e89d8,_0x32f0cb=await validateCustomPageSourceFiles(_0x582a33);if(_0x32f0cb[_0x30cdac(0x93)]>0x0)throw CliErrors[_0x30cdac(0x8a)](_0x30cdac(0x9f)+_0x32f0cb['map'](_0x3707c3=>_0x3707c3[_0x30cdac(0x95)]+':\x20'+_0x3707c3['message'])[_0x30cdac(0xa5)](';\x20'));}export function readCustomPageId(_0x3918dc){const _0x1e724a=a147_0x5e89d8,_0x234608=_0x3918dc['num']('id');if(!Number[_0x1e724a(0xa4)](_0x234608)||_0x234608<=0x0)throw CliErrors[_0x1e724a(0x8a)](_0x1e724a(0x9d));return _0x234608;}
1
+ (function(_0x1a1826,_0x2cc655){const _0x2208a1=a147_0xe4c1,_0x1a7c10=_0x1a1826();while(!![]){try{const _0x58cffb=-parseInt(_0x2208a1(0x77))/0x1+-parseInt(_0x2208a1(0x76))/0x2+parseInt(_0x2208a1(0x91))/0x3+parseInt(_0x2208a1(0x93))/0x4*(-parseInt(_0x2208a1(0x7d))/0x5)+-parseInt(_0x2208a1(0x88))/0x6*(parseInt(_0x2208a1(0x7a))/0x7)+-parseInt(_0x2208a1(0x79))/0x8*(parseInt(_0x2208a1(0x90))/0x9)+parseInt(_0x2208a1(0x73))/0xa*(parseInt(_0x2208a1(0x7f))/0xb);if(_0x58cffb===_0x2cc655)break;else _0x1a7c10['push'](_0x1a7c10['shift']());}catch(_0xbf8146){_0x1a7c10['push'](_0x1a7c10['shift']());}}}(a147_0x13c9,0x699df));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 a147_0x13c9(){const _0x41da06=['type','string','object','page-content','Invalid\x20Custom\x20Page\x20content:\x20','map','/ide/','2471772irMyOz','message','isInteger','values','validation','num','--id\x20must\x20be\x20a\x20positive\x20integer.','menus','9QEpdpJ','1598064lvADFI','length','2345788GYvSTl','some','isArray','file','/pages/','85970BybsHI','path','flagMissing','997426gQBJWg','852555oIUQJB','parse','6011608eTrQHp','14gBxOZB','trim','--page-content\x20must\x20be\x20valid\x20JSON.','5KbfJsK','join','4367oyYRSg','find'];a147_0x13c9=function(){return _0x41da06;};return a147_0x13c9();}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x2da7aa){const _0x3cea8b=a147_0xe4c1;return _0x2da7aa?.[_0x3cea8b(0x7b)]()||undefined;}function a147_0xe4c1(_0x28330a,_0x51ba62){_0x28330a=_0x28330a-0x70;const _0x13c96a=a147_0x13c9();let _0xe4c1ee=_0x13c96a[_0x28330a];return _0xe4c1ee;}export function buildCustomPageRuntimeUrl(_0x32da56,_0x37ffda){const _0x1bd008=trimOptional(_0x32da56),_0xfff6ee=trimOptional(_0x37ffda);if(!_0x1bd008||!_0xfff6ee)return undefined;return getPublishedAppDomain(_0x1bd008)+'/'+encodeURIComponent(_0xfff6ee);}export function buildCustomPageDevelopmentUrl(_0x143c4e,_0x10104e){const _0x8debfa=a147_0xe4c1,_0x231eef=trimOptional(_0x143c4e),_0x49c1d4=trimOptional(_0x10104e);if(!_0x231eef||!_0x49c1d4)return undefined;return getAppBaseUrl(_0x231eef)+_0x8debfa(0x72)+encodeURIComponent(_0x49c1d4);}export async function resolveCustomPageDevelopmentUrl(_0x47d44b,_0xb06ff0,_0x2f407f){const _0x2e6bde=a147_0xe4c1,_0x44f8b7=trimOptional(_0x47d44b);if(!_0x44f8b7)return undefined;try{const _0x27bf8f=(await fetchMenuSnapshot(_0x44f8b7,_0x2f407f))[_0x2e6bde(0x8f)][_0x2e6bde(0x80)](_0x125d45=>_0x125d45[_0x2e6bde(0x81)]==='react'&&_0x125d45['pageId']===_0xb06ff0);return buildCustomPageDevelopmentUrl(_0x44f8b7,_0x27bf8f?.[_0x2e6bde(0x74)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x3ee804,_0x245585){const _0x23c7bb=a147_0xe4c1,_0xe60704=trimOptional(_0x3ee804);if(!_0xe60704)return;const _0x482909=trimOptional(_0x245585==null?undefined:String(_0x245585));if(!_0x482909)return;return getAppBaseUrl(_0xe60704)+_0x23c7bb(0x87)+encodeURIComponent(_0x482909);}export function parseCustomPageContent(_0x21546d){const _0x358093=a147_0xe4c1;if(!_0x21546d[_0x358093(0x7b)]())throw CliErrors[_0x358093(0x75)](_0x358093(0x84));let _0x50975e;try{_0x50975e=JSON[_0x358093(0x78)](_0x21546d);}catch{throw CliErrors[_0x358093(0x8c)](_0x358093(0x7c));}if(typeof _0x50975e!==_0x358093(0x83)||_0x50975e===null||Array[_0x358093(0x70)](_0x50975e)||Object[_0x358093(0x8b)](_0x50975e)[_0x358093(0x94)](_0x15cf57=>typeof _0x15cf57!==_0x358093(0x82)))throw CliErrors[_0x358093(0x8c)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x50975e;}export async function validateCustomPageContent(_0x2663c3){const _0x51c43b=a147_0xe4c1,_0x18269a=await validateCustomPageSourceFiles(_0x2663c3);if(_0x18269a[_0x51c43b(0x92)]>0x0)throw CliErrors[_0x51c43b(0x8c)](_0x51c43b(0x85)+_0x18269a[_0x51c43b(0x86)](_0x143950=>_0x143950[_0x51c43b(0x71)]+':\x20'+_0x143950[_0x51c43b(0x89)])[_0x51c43b(0x7e)](';\x20'));}export function readCustomPageId(_0x5c2c04){const _0x464c12=a147_0xe4c1,_0x4e081d=_0x5c2c04[_0x464c12(0x8d)]('id');if(!Number[_0x464c12(0x8a)](_0x4e081d)||_0x4e081d<=0x0)throw CliErrors[_0x464c12(0x8c)](_0x464c12(0x8e));return _0x4e081d;}
@@ -1 +1 @@
1
- const a148_0x458718=a148_0x4552;function a148_0x4552(_0x33fddc,_0x4d41a9){_0x33fddc=_0x33fddc-0x75;const _0x440d37=a148_0x440d();let _0x4552b3=_0x440d37[_0x33fddc];return _0x4552b3;}(function(_0x45d114,_0x2218f0){const _0x383411=a148_0x4552,_0x39730b=_0x45d114();while(!![]){try{const _0x4de5e8=parseInt(_0x383411(0x79))/0x1*(parseInt(_0x383411(0x81))/0x2)+parseInt(_0x383411(0x8a))/0x3*(-parseInt(_0x383411(0x82))/0x4)+-parseInt(_0x383411(0x7a))/0x5*(parseInt(_0x383411(0x83))/0x6)+-parseInt(_0x383411(0x77))/0x7+parseInt(_0x383411(0x86))/0x8+parseInt(_0x383411(0x80))/0x9+-parseInt(_0x383411(0x7e))/0xa;if(_0x4de5e8===_0x2218f0)break;else _0x39730b['push'](_0x39730b['shift']());}catch(_0xc8cc8){_0x39730b['push'](_0x39730b['shift']());}}}(a148_0x440d,0x90fd0));function a148_0x440d(){const _0x1a7f38=['354dPtOpy','page-content','toLowerCase','.jsx','some','filter','1502536zoStsQ','typescript','153303STKFzz','1240250WWnWJG','message','endsWith','.tsx','2735730pLBUID','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','6974703dJpaii','2RjBOMp','17128MVKJDg','12PzCsIo','find','entries','9241592CWNwPS','trim','all','babel'];a148_0x440d=function(){return _0x1a7f38;};return a148_0x440d();}import{format}from'prettier';const SOURCE_PARSERS={'.js':a148_0x458718(0x89),'.jsx':'babel','.ts':'typescript','.tsx':a148_0x458718(0x78)},CUSTOM_PAGE_EXTENSIONS=[a148_0x458718(0x8d),a148_0x458718(0x7d)];export async function validateCustomPageSourceFiles(_0x312a95){const _0x2bd6c8=a148_0x458718,_0x2e5f4d=Object[_0x2bd6c8(0x85)](_0x312a95)[_0x2bd6c8(0x76)](([_0x58f36c])=>getParser(_0x58f36c));if(!_0x2e5f4d[_0x2bd6c8(0x75)](([_0x43240e])=>isReactSourceFile(_0x43240e)))return[{'file':_0x2bd6c8(0x8b),'message':_0x2bd6c8(0x7f)}];const _0x380ae9=await Promise[_0x2bd6c8(0x88)](_0x2e5f4d['map'](async([_0x9cdf09,_0x5bf512])=>{const _0x12c735=_0x2bd6c8;try{return await format(_0x5bf512,{'parser':getParser(_0x9cdf09)}),undefined;}catch(_0x532471){return{'file':_0x9cdf09,'message':_0x532471 instanceof Error?_0x532471[_0x12c735(0x7b)]:String(_0x532471)};}}));return _0x380ae9[_0x2bd6c8(0x76)](_0x2a6a54=>_0x2a6a54!==undefined);}function getParser(_0x243bd5){const _0x1645a9=a148_0x458718,_0xf7649f=_0x243bd5[_0x1645a9(0x87)]()[_0x1645a9(0x8c)]();return Object[_0x1645a9(0x85)](SOURCE_PARSERS)[_0x1645a9(0x84)](([_0x1a50ac])=>_0xf7649f[_0x1645a9(0x7c)](_0x1a50ac))?.[0x1];}function isReactSourceFile(_0x16dd06){const _0x9ed40a=a148_0x458718,_0x4edebf=_0x16dd06[_0x9ed40a(0x87)]()[_0x9ed40a(0x8c)]();return CUSTOM_PAGE_EXTENSIONS[_0x9ed40a(0x75)](_0x30fd97=>_0x4edebf['endsWith'](_0x30fd97));}
1
+ const a148_0x885996=a148_0x15bb;(function(_0x103dc1,_0x382546){const _0x3b3156=a148_0x15bb,_0x26b22f=_0x103dc1();while(!![]){try{const _0x5c6a7d=-parseInt(_0x3b3156(0x10c))/0x1*(-parseInt(_0x3b3156(0x10b))/0x2)+-parseInt(_0x3b3156(0x104))/0x3+-parseInt(_0x3b3156(0x10e))/0x4+-parseInt(_0x3b3156(0x108))/0x5+-parseInt(_0x3b3156(0x107))/0x6+parseInt(_0x3b3156(0x10f))/0x7+parseInt(_0x3b3156(0x111))/0x8;if(_0x5c6a7d===_0x382546)break;else _0x26b22f['push'](_0x26b22f['shift']());}catch(_0x59e06c){_0x26b22f['push'](_0x26b22f['shift']());}}}(a148_0x336b,0xcc338));function a148_0x336b(){const _0x2bfcd3=['4979852sedZBg','3479553WzhvzA','babel','25069864BfDiem','toLowerCase','some','trim','filter','page-content','.jsx','message','.tsx','1322760mlydIx','entries','find','7584378eaXTEc','4926925ygGcxb','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','typescript','2qfSloZ','1140927mKgijm','all'];a148_0x336b=function(){return _0x2bfcd3;};return a148_0x336b();}import{format}from'prettier';function a148_0x15bb(_0x1d1266,_0x4cf0d0){_0x1d1266=_0x1d1266-0xfd;const _0x336bcd=a148_0x336b();let _0x15bb55=_0x336bcd[_0x1d1266];return _0x15bb55;}const SOURCE_PARSERS={'.js':'babel','.jsx':a148_0x885996(0x110),'.ts':'typescript','.tsx':a148_0x885996(0x10a)},CUSTOM_PAGE_EXTENSIONS=[a148_0x885996(0x101),a148_0x885996(0x103)];export async function validateCustomPageSourceFiles(_0x3436fe){const _0x9ad6fa=a148_0x885996,_0x51eea5=Object[_0x9ad6fa(0x105)](_0x3436fe)[_0x9ad6fa(0xff)](([_0x376967])=>getParser(_0x376967));if(!_0x51eea5['some'](([_0x5df294])=>isReactSourceFile(_0x5df294)))return[{'file':_0x9ad6fa(0x100),'message':_0x9ad6fa(0x109)}];const _0x3d2e8d=await Promise[_0x9ad6fa(0x10d)](_0x51eea5['map'](async([_0x2cbd2a,_0x44cacf])=>{const _0x5b5f53=_0x9ad6fa;try{return await format(_0x44cacf,{'parser':getParser(_0x2cbd2a)}),undefined;}catch(_0x4655e6){return{'file':_0x2cbd2a,'message':_0x4655e6 instanceof Error?_0x4655e6[_0x5b5f53(0x102)]:String(_0x4655e6)};}}));return _0x3d2e8d[_0x9ad6fa(0xff)](_0x5dcb2b=>_0x5dcb2b!==undefined);}function getParser(_0x403d45){const _0x1bd941=a148_0x885996,_0x2c6366=_0x403d45[_0x1bd941(0xfe)]()[_0x1bd941(0x112)]();return Object[_0x1bd941(0x105)](SOURCE_PARSERS)[_0x1bd941(0x106)](([_0x84e068])=>_0x2c6366['endsWith'](_0x84e068))?.[0x1];}function isReactSourceFile(_0x3aef3e){const _0x513773=a148_0x885996,_0x407fd0=_0x3aef3e[_0x513773(0xfe)]()[_0x513773(0x112)]();return CUSTOM_PAGE_EXTENSIONS[_0x513773(0xfd)](_0x381cf9=>_0x407fd0['endsWith'](_0x381cf9));}
@@ -1 +1 @@
1
- (function(_0x16bc9e,_0x5bdca9){const _0x1e6226=a149_0xeebd,_0x190844=_0x16bc9e();while(!![]){try{const _0x1a09db=-parseInt(_0x1e6226(0x178))/0x1*(-parseInt(_0x1e6226(0x175))/0x2)+-parseInt(_0x1e6226(0x16c))/0x3*(-parseInt(_0x1e6226(0x17c))/0x4)+-parseInt(_0x1e6226(0x179))/0x5+-parseInt(_0x1e6226(0x171))/0x6+-parseInt(_0x1e6226(0x174))/0x7+-parseInt(_0x1e6226(0x176))/0x8*(-parseInt(_0x1e6226(0x16f))/0x9)+parseInt(_0x1e6226(0x16e))/0xa*(parseInt(_0x1e6226(0x163))/0xb);if(_0x1a09db===_0x5bdca9)break;else _0x190844['push'](_0x190844['shift']());}catch(_0x3feff0){_0x190844['push'](_0x190844['shift']());}}}(a149_0x4069,0x57aa6));function buildIndexFile(_0x4a7a71){const _0x1351cb=a149_0xeebd;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[_0x1351cb(0x169)](_0x4a7a71)+_0x1351cb(0x17b);}function buildStyleFile(){return'.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a';}function a149_0xeebd(_0x316f9d,_0x10dd38){_0x316f9d=_0x316f9d-0x160;const _0x4069b2=a149_0x4069();let _0xeebd20=_0x4069b2[_0x316f9d];return _0xeebd20;}function a149_0x4069(){const _0x48bc72=['zh-CN','tr-TR','join',':\x20{\x0a\x20\x20\x20\x20','stringify','pageDescription','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','179439uKNUdV','map','3897910JPKsxu','81ZiRyko',',\x0a\x20\x20}','2456196VOgVAP','export\x20const\x20locales\x20=\x20{\x0a','\x0a};\x0a','3709489rpenBj','26WXsnid','357584mkZONi','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.','15707rolkOa','1779180aQOxSa','en-US','}</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','44kidxNR','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。','ja-JP','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','11TajcRK','id-ID'];a149_0x4069=function(){return _0x48bc72;};return a149_0x4069();}function buildLocalesFile(_0x2beb79){const _0x1d846e=a149_0xeebd,_0x1ac9d7=_0x2beb79[_0x1d846e(0x16d)](_0x1bd4d5=>{const _0x3992c7=_0x1d846e;let _0x43794c='';switch(_0x1bd4d5){case _0x3992c7(0x165):_0x43794c='这是一个基础页面模板,你可以在此基础上进行开发。';break;case _0x3992c7(0x17a):_0x43794c=_0x3992c7(0x162);break;case _0x3992c7(0x161):_0x43794c=_0x3992c7(0x160);break;case _0x3992c7(0x166):_0x43794c=_0x3992c7(0x16b);break;case _0x3992c7(0x164):_0x43794c=_0x3992c7(0x177);break;default:_0x43794c=_0x3992c7(0x162);}return'\x20\x20'+JSON[_0x3992c7(0x169)](_0x1bd4d5)+_0x3992c7(0x168)+JSON['stringify'](_0x3992c7(0x16a))+':\x20'+JSON[_0x3992c7(0x169)](_0x43794c)+_0x3992c7(0x170);})[_0x1d846e(0x167)](',\x0a');return _0x1d846e(0x172)+_0x1ac9d7+_0x1d846e(0x173);}export function buildInitialFiles(_0x133cc2,_0x40b43c){return{'src/app/index.jsx':buildIndexFile(_0x133cc2),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x40b43c)};}
1
+ function a149_0x2fb9(){const _0x3c4868=['2809330xMOgsR','2239MMjPVf','16RsGETq','stringify','export\x20const\x20locales\x20=\x20{\x0a','486UjvFQK','8978688XiBqaQ','1457358GzTqwm','1932180rVNiPU','}</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','392259hExFUj','2411226EnBkLU','en-US','ja-JP','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.',',\x0a\x20\x20}','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','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}>{','zh-CN',':\x20{\x0a\x20\x20\x20\x20','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。'];a149_0x2fb9=function(){return _0x3c4868;};return a149_0x2fb9();}(function(_0x45d582,_0x4aa69c){const _0x385492=a149_0x5559,_0x4607a0=_0x45d582();while(!![]){try{const _0x2ae065=-parseInt(_0x385492(0x142))/0x1*(parseInt(_0x385492(0x146))/0x2)+parseInt(_0x385492(0x134))/0x3+parseInt(_0x385492(0x131))/0x4+-parseInt(_0x385492(0x141))/0x5+parseInt(_0x385492(0x135))/0x6+-parseInt(_0x385492(0x130))/0x7*(parseInt(_0x385492(0x143))/0x8)+parseInt(_0x385492(0x147))/0x9;if(_0x2ae065===_0x4aa69c)break;else _0x4607a0['push'](_0x4607a0['shift']());}catch(_0xde538f){_0x4607a0['push'](_0x4607a0['shift']());}}}(a149_0x2fb9,0x77dda));function a149_0x5559(_0x2f70f7,_0x1fb016){_0x2f70f7=_0x2f70f7-0x130;const _0x2fb93d=a149_0x2fb9();let _0x555931=_0x2fb93d[_0x2f70f7];return _0x555931;}function buildIndexFile(_0xdcf7b0){const _0x5c398c=a149_0x5559;return _0x5c398c(0x13c)+JSON[_0x5c398c(0x144)](_0xdcf7b0)+_0x5c398c(0x132);}function buildStyleFile(){const _0x483f5c=a149_0x5559;return _0x483f5c(0x13f);}function buildLocalesFile(_0x43420a){const _0x8cd6df=a149_0x5559,_0xf38f6c=_0x43420a['map'](_0x9d1084=>{const _0x572568=a149_0x5559;let _0x166d43='';switch(_0x9d1084){case _0x572568(0x13d):_0x166d43='这是一个基础页面模板,你可以在此基础上进行开发。';break;case _0x572568(0x136):_0x166d43=_0x572568(0x13a);break;case _0x572568(0x137):_0x166d43=_0x572568(0x140);break;case'tr-TR':_0x166d43=_0x572568(0x13b);break;case'id-ID':_0x166d43=_0x572568(0x138);break;default:_0x166d43=_0x572568(0x13a);}return'\x20\x20'+JSON[_0x572568(0x144)](_0x9d1084)+_0x572568(0x13e)+JSON[_0x572568(0x144)]('pageDescription')+':\x20'+JSON['stringify'](_0x166d43)+_0x572568(0x139);})[_0x8cd6df(0x133)](',\x0a');return _0x8cd6df(0x145)+_0xf38f6c+'\x0a};\x0a';}export function buildInitialFiles(_0x12aebe,_0x1511f9){return{'src/app/index.jsx':buildIndexFile(_0x12aebe),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x1511f9)};}
@@ -1 +1 @@
1
- const a150_0x5a7432=a150_0x3ca8;(function(_0x1709a3,_0x42aedc){const _0x341833=a150_0x3ca8,_0x551518=_0x1709a3();while(!![]){try{const _0x2c58d4=parseInt(_0x341833(0x130))/0x1*(-parseInt(_0x341833(0x128))/0x2)+parseInt(_0x341833(0x135))/0x3+parseInt(_0x341833(0x138))/0x4+-parseInt(_0x341833(0x132))/0x5+-parseInt(_0x341833(0x13c))/0x6*(-parseInt(_0x341833(0x12e))/0x7)+parseInt(_0x341833(0x134))/0x8*(-parseInt(_0x341833(0x127))/0x9)+parseInt(_0x341833(0x131))/0xa*(parseInt(_0x341833(0x133))/0xb);if(_0x2c58d4===_0x42aedc)break;else _0x551518['push'](_0x551518['shift']());}catch(_0x8e19e9){_0x551518['push'](_0x551518['shift']());}}}(a150_0x1116,0x59c84));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a150_0x3ca8(_0x2d5be6,_0x55f567){_0x2d5be6=_0x2d5be6-0x127;const _0x11165f=a150_0x1116();let _0x3ca8cf=_0x11165f[_0x2d5be6];return _0x3ca8cf;}export const pageCustomUpdate={'service':a150_0x5a7432(0x142),'command':a150_0x5a7432(0x139),'description':a150_0x5a7432(0x129),'risk':a150_0x5a7432(0x137),'defaultOutputFormat':a150_0x5a7432(0x12d),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a150_0x5a7432(0x12f),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a150_0x5a7432(0x13d),'type':'string','required':!![],'description':'Complete\x20page\x20files\x20as\x20JSON'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x31aaf0){const _0x4f9577=a150_0x5a7432;readCustomPageId(_0x31aaf0),await validateCustomPageContent(parseCustomPageContent(_0x31aaf0[_0x4f9577(0x13f)](_0x4f9577(0x13d))));},async 'dryRun'(_0x58b7ae){const _0x3c1ee7=a150_0x5a7432,_0x5230ac=await readInput(_0x58b7ae);return{'method':'POST','url':'/smartapi/webcode/page/update/content','body':{'id':_0x5230ac[_0x3c1ee7(0x13e)],'codeContent':_0x5230ac['pageContent']},'description':_0x3c1ee7(0x13b)+_0x5230ac[_0x3c1ee7(0x13e)]+'.'};},async 'execute'(_0x3e5764){const _0x59039b=a150_0x5a7432,_0x31d016=await readInput(_0x3e5764),_0xcbb024=await updateCustomPageContent({'pageId':_0x31d016['pageId'],'pageContent':_0x31d016[_0x59039b(0x12c)]});if(!Number['isInteger'](_0xcbb024['newVersion'])||_0xcbb024[_0x59039b(0x12b)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x1a26c7=buildCustomPageEditUrl(_0x31d016[_0x59039b(0x136)],_0x31d016[_0x59039b(0x13e)]),_0xd066a9=await resolveCustomPageDevelopmentUrl(_0x31d016[_0x59039b(0x136)],_0x31d016[_0x59039b(0x13e)],_0x3e5764['cookie']);return{'ok':!![],'data':buildMutationData(_0x31d016,_0xcbb024,_0xd066a9,_0x1a26c7,_0xd066a9?[]:['Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']),'message':_0x59039b(0x140)+_0x31d016[_0x59039b(0x13e)]+'.'};}};function a150_0x1116(){const _0x26edca=['page.custom-update','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','246IxHskK','page-content','pageId','str','Updated\x20Custom\x20Page\x20','trim','page','27GQYHNa','87650mbWsdg','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','appcode','newVersion','pageContent','compress','22848emVqNn','number','12CYZzrm','7970dPqdPC','1919710aczGfz','5357KwuaVz','233912JKEDjI','345501DcaSlx','appCode','write','2912708AAolsz','custom-update'];a150_0x1116=function(){return _0x26edca;};return a150_0x1116();}async function readInput(_0x5b7331){const _0x1ce53b=a150_0x5a7432,_0x35e847=readCustomPageId(_0x5b7331),_0x4b2332=_0x5b7331[_0x1ce53b(0x13f)](_0x1ce53b(0x12a))[_0x1ce53b(0x141)]()||(await getCustomPageSource(_0x35e847))['appCode']?.[_0x1ce53b(0x141)]();if(!_0x4b2332)throw CliErrors['validation']('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x35e847+'.');return{'appCode':_0x4b2332,'pageId':_0x35e847,'pageContent':parseCustomPageContent(_0x5b7331[_0x1ce53b(0x13f)](_0x1ce53b(0x13d)))};}function buildMutationData(_0xca4ac6,_0x49b6ac,_0x23161b,_0x11199e,_0x85fb31=[]){const _0x3bb783=a150_0x5a7432;return{'operation':_0x3bb783(0x13a),'selector':{'appCode':_0xca4ac6[_0x3bb783(0x136)],'pageId':_0xca4ac6[_0x3bb783(0x13e)]},'before':null,'after':{'pageId':_0x49b6ac?.[_0x3bb783(0x13e)]??_0xca4ac6[_0x3bb783(0x13e)],'version':_0x49b6ac?.[_0x3bb783(0x12b)]??null,'pageContent':_0xca4ac6[_0x3bb783(0x12c)]},'dryRun':_0x49b6ac===undefined,'request':_0xca4ac6,..._0x23161b?{'pageUrl':_0x23161b}:{},..._0x11199e?{'editPageUrl':_0x11199e}:{},'warnings':_0x85fb31};}
1
+ const a150_0x34c7c1=a150_0x11bd;(function(_0x2d0612,_0x67890){const _0x2d44a9=a150_0x11bd,_0x5203d5=_0x2d0612();while(!![]){try{const _0x237509=-parseInt(_0x2d44a9(0x7c))/0x1+parseInt(_0x2d44a9(0x80))/0x2+-parseInt(_0x2d44a9(0x91))/0x3+-parseInt(_0x2d44a9(0x8c))/0x4+parseInt(_0x2d44a9(0x92))/0x5+parseInt(_0x2d44a9(0x8e))/0x6+parseInt(_0x2d44a9(0x85))/0x7;if(_0x237509===_0x67890)break;else _0x5203d5['push'](_0x5203d5['shift']());}catch(_0xf7032e){_0x5203d5['push'](_0x5203d5['shift']());}}}(a150_0xa32f,0x5a239));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a150_0xa32f(){const _0x212477=['Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','Complete\x20page\x20files\x20as\x20JSON','664620gkEzsG','179830rFZAng','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','POST','cookie','compress','page-content','page','newVersion','206069NRwleE','write','str','pageId','59884gEwtKH','validation','Custom\x20Page\x20ID','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','3292247oOUspN','appcode','Updated\x20Custom\x20Page\x20','isInteger','trim','/smartapi/webcode/page/update/content','appCode','1691428DwauOY','pageContent','4100676nByGmx'];a150_0xa32f=function(){return _0x212477;};return a150_0xa32f();}function a150_0x11bd(_0x2ad0a1,_0xda4a4d){_0x2ad0a1=_0x2ad0a1-0x77;const _0xa32f53=a150_0xa32f();let _0x11bd99=_0xa32f53[_0x2ad0a1];return _0x11bd99;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a150_0x34c7c1(0x7a),'command':'custom-update','description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a150_0x34c7c1(0x7d),'defaultOutputFormat':a150_0x34c7c1(0x78),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a150_0x34c7c1(0x82)},{'name':a150_0x34c7c1(0x79),'type':'string','required':!![],'description':a150_0x34c7c1(0x90)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e0b27){const _0x4b2063=a150_0x34c7c1;readCustomPageId(_0x1e0b27),await validateCustomPageContent(parseCustomPageContent(_0x1e0b27['str'](_0x4b2063(0x79))));},async 'dryRun'(_0x1040ef){const _0x166b16=a150_0x34c7c1,_0x4dfd85=await readInput(_0x1040ef);return{'method':_0x166b16(0x94),'url':_0x166b16(0x8a),'body':{'id':_0x4dfd85[_0x166b16(0x7f)],'codeContent':_0x4dfd85[_0x166b16(0x8d)]},'description':_0x166b16(0x8f)+_0x4dfd85[_0x166b16(0x7f)]+'.'};},async 'execute'(_0x58f868){const _0x2d5acd=a150_0x34c7c1,_0x36b034=await readInput(_0x58f868),_0x2760a9=await updateCustomPageContent({'pageId':_0x36b034['pageId'],'pageContent':_0x36b034[_0x2d5acd(0x8d)]});if(!Number[_0x2d5acd(0x88)](_0x2760a9['newVersion'])||_0x2760a9[_0x2d5acd(0x7b)]<=0x0)throw CliErrors['apiError'](_0x2d5acd(0x93));const _0x5a34ae=buildCustomPageEditUrl(_0x36b034[_0x2d5acd(0x8b)],_0x36b034[_0x2d5acd(0x7f)]),_0x6c71b9=await resolveCustomPageDevelopmentUrl(_0x36b034[_0x2d5acd(0x8b)],_0x36b034['pageId'],_0x58f868[_0x2d5acd(0x77)]);return{'ok':!![],'data':buildMutationData(_0x36b034,_0x2760a9,_0x6c71b9,_0x5a34ae,_0x6c71b9?[]:[_0x2d5acd(0x83)]),'message':_0x2d5acd(0x87)+_0x36b034[_0x2d5acd(0x7f)]+'.'};}};async function readInput(_0x1b6786){const _0x1bb39f=a150_0x34c7c1,_0x543435=readCustomPageId(_0x1b6786),_0x46a5fc=_0x1b6786[_0x1bb39f(0x7e)](_0x1bb39f(0x86))[_0x1bb39f(0x89)]()||(await getCustomPageSource(_0x543435))[_0x1bb39f(0x8b)]?.['trim']();if(!_0x46a5fc)throw CliErrors[_0x1bb39f(0x81)](_0x1bb39f(0x84)+_0x543435+'.');return{'appCode':_0x46a5fc,'pageId':_0x543435,'pageContent':parseCustomPageContent(_0x1b6786[_0x1bb39f(0x7e)]('page-content'))};}function buildMutationData(_0x99b31,_0x1d1a24,_0x43c7ac,_0x2a495a,_0x175c42=[]){const _0x2e926e=a150_0x34c7c1;return{'operation':'page.custom-update','selector':{'appCode':_0x99b31[_0x2e926e(0x8b)],'pageId':_0x99b31[_0x2e926e(0x7f)]},'before':null,'after':{'pageId':_0x1d1a24?.[_0x2e926e(0x7f)]??_0x99b31['pageId'],'version':_0x1d1a24?.[_0x2e926e(0x7b)]??null,'pageContent':_0x99b31[_0x2e926e(0x8d)]},'dryRun':_0x1d1a24===undefined,'request':_0x99b31,..._0x43c7ac?{'pageUrl':_0x43c7ac}:{},..._0x2a495a?{'editPageUrl':_0x2a495a}:{},'warnings':_0x175c42};}
@@ -1 +1 @@
1
- const a151_0x20cac9=a151_0x1a6e;(function(_0x26de20,_0x372fa9){const _0x4f9071=a151_0x1a6e,_0x5a2578=_0x26de20();while(!![]){try{const _0x33b59e=-parseInt(_0x4f9071(0x18d))/0x1*(parseInt(_0x4f9071(0x19f))/0x2)+-parseInt(_0x4f9071(0x199))/0x3+-parseInt(_0x4f9071(0x190))/0x4+-parseInt(_0x4f9071(0x19b))/0x5*(parseInt(_0x4f9071(0x1a4))/0x6)+-parseInt(_0x4f9071(0x198))/0x7*(parseInt(_0x4f9071(0x1a2))/0x8)+parseInt(_0x4f9071(0x191))/0x9+parseInt(_0x4f9071(0x18e))/0xa*(parseInt(_0x4f9071(0x1a3))/0xb);if(_0x33b59e===_0x372fa9)break;else _0x5a2578['push'](_0x5a2578['shift']());}catch(_0x11584b){_0x5a2578['push'](_0x5a2578['shift']());}}}(a151_0x3004,0xddd59));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':a151_0x20cac9(0x194),'command':a151_0x20cac9(0x193),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a151_0x20cac9(0x1a5),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a151_0x20cac9(0x1a1),'description':a151_0x20cac9(0x196)}],async 'validate'(_0x4697e1){validateDatasetSelector(_0x4697e1);},async 'dryRun'(_0x559bd6){const _0x1af7c6=a151_0x20cac9,_0x5f1db8=await loadDatasetDetailForPage(_0x559bd6);return{'method':_0x1af7c6(0x1a0),'url':'/smartapi/lovrabet/dataset/'+_0x5f1db8[_0x1af7c6(0x197)]+_0x1af7c6(0x192)+encodeURIComponent(_0x559bd6['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x5f1db8['id'],'code':_0x5f1db8[_0x1af7c6(0x197)],'name':_0x5f1db8[_0x1af7c6(0x19c)]},'action':_0x1af7c6(0x19d)})};},async 'execute'(_0x1305ac){const _0x45c1f1=a151_0x20cac9,_0x51ff6d=await loadDatasetDetailForPage(_0x1305ac),_0x5075c0=await loadDataListPageStatusForGenerate(_0x1305ac,_0x51ff6d['code']),_0x24c23e=getUndeletedRelatedPages(_0x51ff6d),_0x47432c=assessDataListPageState(_0x51ff6d[_0x45c1f1(0x197)],_0x5075c0,{'fallbackUndeletedPages':_0x24c23e});return{'ok':!![],'data':{'datasetCode':_0x51ff6d['code'],'precheckSource':_0x5075c0?.['source']??_0x45c1f1(0x195),'status':_0x47432c['status'],'manualResolutionRequired':_0x47432c['manualResolutionRequired'],'nextAction':_0x47432c[_0x45c1f1(0x19a)],'dataListPageStatus':_0x5075c0,'relatedPages':{'total':_0x51ff6d[_0x45c1f1(0x19e)][_0x45c1f1(0x18f)],'undeletedCount':_0x24c23e[_0x45c1f1(0x18f)]}}};}};function a151_0x1a6e(_0x228143,_0x46db6f){_0x228143=_0x228143-0x18d;const _0x300408=a151_0x3004();let _0x1a6ee6=_0x300408[_0x228143];return _0x1a6ee6;}function a151_0x3004(){const _0x5f0084=['Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','code','2262043Gysnmy','2988429yXZkGP','nextAction','185HSUBNv','name','query-data-list-status','relatedPages','143270uBOIcr','GET','string','8NOhQjG','27793777PpaWgk','225102GyYfKB','read','2pEGZLh','10mLtWma','length','797528RTZYsr','12887991LAitNr','/standard-page-status?appCode=','data-list-status','page','related-pages-fallback'];a151_0x3004=function(){return _0x5f0084;};return a151_0x3004();}
1
+ function a151_0x8c18(_0x4308a3,_0x6072fa){_0x4308a3=_0x4308a3-0x150;const _0x5136d8=a151_0x5136();let _0x8c1810=_0x5136d8[_0x4308a3];return _0x8c1810;}const a151_0x439e1c=a151_0x8c18;(function(_0x46e4f6,_0x224620){const _0x578acc=a151_0x8c18,_0x37569d=_0x46e4f6();while(!![]){try{const _0x35191b=-parseInt(_0x578acc(0x151))/0x1*(-parseInt(_0x578acc(0x168))/0x2)+-parseInt(_0x578acc(0x167))/0x3*(-parseInt(_0x578acc(0x15e))/0x4)+parseInt(_0x578acc(0x15b))/0x5+parseInt(_0x578acc(0x161))/0x6+-parseInt(_0x578acc(0x154))/0x7+parseInt(_0x578acc(0x157))/0x8+-parseInt(_0x578acc(0x160))/0x9*(parseInt(_0x578acc(0x156))/0xa);if(_0x35191b===_0x224620)break;else _0x37569d['push'](_0x37569d['shift']());}catch(_0x5b4ddb){_0x37569d['push'](_0x37569d['shift']());}}}(a151_0x5136,0x24610));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':a151_0x439e1c(0x159),'command':'data-list-status','description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a151_0x439e1c(0x163),'defaultOutputFormat':a151_0x439e1c(0x152),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a151_0x439e1c(0x162),'type':a151_0x439e1c(0x165),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x20436a){validateDatasetSelector(_0x20436a);},async 'dryRun'(_0x71b55b){const _0xef571=a151_0x439e1c,_0x37a5e2=await loadDatasetDetailForPage(_0x71b55b);return{'method':_0xef571(0x153),'url':_0xef571(0x15c)+_0x37a5e2[_0xef571(0x158)]+'/standard-page-status?appCode='+encodeURIComponent(_0x71b55b[_0xef571(0x164)]),'description':serializeDryRunDescription({'dataset':{'id':_0x37a5e2['id'],'code':_0x37a5e2['code'],'name':_0x37a5e2[_0xef571(0x150)]},'action':_0xef571(0x15d)})};},async 'execute'(_0x3e17d4){const _0x29039e=a151_0x439e1c,_0x50eee3=await loadDatasetDetailForPage(_0x3e17d4),_0x69052f=await loadDataListPageStatusForGenerate(_0x3e17d4,_0x50eee3[_0x29039e(0x158)]),_0x35807e=getUndeletedRelatedPages(_0x50eee3),_0x2a0d84=assessDataListPageState(_0x50eee3[_0x29039e(0x158)],_0x69052f,{'fallbackUndeletedPages':_0x35807e});return{'ok':!![],'data':{'datasetCode':_0x50eee3[_0x29039e(0x158)],'precheckSource':_0x69052f?.[_0x29039e(0x166)]??_0x29039e(0x15a),'status':_0x2a0d84['status'],'manualResolutionRequired':_0x2a0d84['manualResolutionRequired'],'nextAction':_0x2a0d84['nextAction'],'dataListPageStatus':_0x69052f,'relatedPages':{'total':_0x50eee3[_0x29039e(0x15f)][_0x29039e(0x155)],'undeletedCount':_0x35807e[_0x29039e(0x155)]}}};}};function a151_0x5136(){const _0x351e5f=['query-data-list-status','5384EyyOAh','relatedPages','9846ydqjCy','249888HNdBQF','alias','read','appCode','string','source','33CYKaEn','6DucwfI','name','86230vGskiu','compress','GET','288470wHAaIC','length','4450wXjOhs','2176008AGYiOO','code','page','related-pages-fallback','449515Xdsvfn','/smartapi/lovrabet/dataset/'];a151_0x5136=function(){return _0x351e5f;};return a151_0x5136();}
@@ -1 +1 @@
1
- const a152_0x194907=a152_0x5819;(function(_0x11583c,_0x21b244){const _0x98f528=a152_0x5819,_0x652300=_0x11583c();while(!![]){try{const _0x24d7a1=parseInt(_0x98f528(0x1f0))/0x1*(-parseInt(_0x98f528(0x21a))/0x2)+-parseInt(_0x98f528(0x201))/0x3*(parseInt(_0x98f528(0x1f3))/0x4)+parseInt(_0x98f528(0x20f))/0x5+parseInt(_0x98f528(0x216))/0x6+parseInt(_0x98f528(0x1e5))/0x7+parseInt(_0x98f528(0x208))/0x8*(parseInt(_0x98f528(0x1e8))/0x9)+-parseInt(_0x98f528(0x1ee))/0xa;if(_0x24d7a1===_0x21b244)break;else _0x652300['push'](_0x652300['shift']());}catch(_0x3d7982){_0x652300['push'](_0x652300['shift']());}}}(a152_0x3d03,0xb176d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a152_0x3d03(){const _0x349591=['generate-start','related-pages-fallback','4638480SDTYKt','appCode','1UHTHpZ','clientOperationId','currentStep','257396NhKeCu','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','fieldCount','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','progressRate','allowGenerate','code','dataset','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','/smartapi/lovrabet/dataset/','PARTIAL_SUCCESS','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','number','33oKGAEf','write','dataListPageStatus','page','operationId','name','page-type','24STjlLQ','compress','apply','string','alias','Submitted\x20a\x20generate\x20task','POST','6078780MUknJF','message','DATA_LIST','status','taskId','reused','precheck','4708848zRtFmu','source','CRUD_PAGE_SET','/generate-standard-pages/start','1777870MOrWRy','nextAction','boolean','4811079GrPVnV','dryRun','Reusing\x20an\x20existing\x20generate\x20task','298962vUEdTd','bool','SUCCESS','manualResolutionRequired'];a152_0x3d03=function(){return _0x349591;};return a152_0x3d03();}import{startGenerateDataListPages}from'../../core/api-client.js';function a152_0x5819(_0x3f6b49,_0x219cc6){_0x3f6b49=_0x3f6b49-0x1e5;const _0x3d0321=a152_0x3d03();let _0x5819c8=_0x3d0321[_0x3f6b49];return _0x5819c8;}export const pageGenerateStart={'service':a152_0x194907(0x204),'command':a152_0x194907(0x1ec),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a152_0x194907(0x202),'defaultOutputFormat':a152_0x194907(0x209),'rejectedFlags':[{'name':a152_0x194907(0x207),'message':a152_0x194907(0x1f4),'hint':a152_0x194907(0x1f6)},{'name':'page-pattern','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':a152_0x194907(0x1fb)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a152_0x194907(0x20c),'type':a152_0x194907(0x20b),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a152_0x194907(0x20a),'type':a152_0x194907(0x21c),'description':a152_0x194907(0x1ff)}],async 'validate'(_0x234e78){validateDatasetSelector(_0x234e78);},async 'dryRun'(_0x50453b){const _0x4cafd8=a152_0x194907,_0x4d5f4=await prepare(_0x50453b);return{'method':_0x4cafd8(0x20e),'url':_0x4cafd8(0x1fd)+_0x4d5f4[_0x4cafd8(0x1fa)][_0x4cafd8(0x1f9)]+_0x4cafd8(0x219),'body':{'appCode':_0x50453b[_0x4cafd8(0x1ef)],'clientOperationId':_0x4d5f4['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x4d5f4[_0x4cafd8(0x1fa)]['id'],'code':_0x4d5f4[_0x4cafd8(0x1fa)][_0x4cafd8(0x1f9)],'name':_0x4d5f4[_0x4cafd8(0x1fa)][_0x4cafd8(0x206)],'fieldCount':_0x4d5f4[_0x4cafd8(0x1fa)][_0x4cafd8(0x1f5)]},'precheckSource':_0x4d5f4[_0x4cafd8(0x203)]?.[_0x4cafd8(0x217)]??'related-pages-fallback','action':_0x4cafd8(0x1ec),'clientOperationId':_0x4d5f4['clientOperationId'],'plannedStatus':_0x4d5f4[_0x4cafd8(0x215)][_0x4cafd8(0x212)],'reason':_0x4d5f4[_0x4cafd8(0x215)][_0x4cafd8(0x210)]})};},async 'execute'(_0x1f9bf8){const _0xaf571c=a152_0x194907;if(!_0x1f9bf8[_0xaf571c(0x1e9)](_0xaf571c(0x20a))){const _0x1a5905=await pageGenerateStart[_0xaf571c(0x1e6)](_0x1f9bf8);return{'ok':!![],'message':_0xaf571c(0x1fc),'data':_0x1a5905};}const _0x3e97df=await prepare(_0x1f9bf8);if(!_0x3e97df[_0xaf571c(0x215)][_0xaf571c(0x1f8)])return{'ok':![],'message':_0x3e97df[_0xaf571c(0x215)][_0xaf571c(0x210)],'data':{'datasetCode':_0x3e97df[_0xaf571c(0x1fa)][_0xaf571c(0x1f9)],'pageType':'DATA_LIST','pagePattern':_0xaf571c(0x218),'clientOperationId':_0x3e97df['clientOperationId'],'precheckSource':_0x3e97df[_0xaf571c(0x203)]?.[_0xaf571c(0x217)]??_0xaf571c(0x1ed),'status':_0x3e97df['precheck'][_0xaf571c(0x212)],'manualResolutionRequired':_0x3e97df[_0xaf571c(0x215)][_0xaf571c(0x1eb)],'nextAction':_0x3e97df[_0xaf571c(0x215)][_0xaf571c(0x21b)],'query':{'command':buildDataListPageStatusQueryCommand(_0x3e97df[_0xaf571c(0x1fa)]['code'],_0x1f9bf8[_0xaf571c(0x1ef)])},'dataListPageStatus':_0x3e97df[_0xaf571c(0x203)]}};const _0xf44b73=await startGenerateDataListPages(_0x1f9bf8[_0xaf571c(0x1ef)],_0x3e97df[_0xaf571c(0x1fa)][_0xaf571c(0x1f9)],{'clientOperationId':_0x3e97df[_0xaf571c(0x1f1)]}),_0x2afb55=_0xf44b73[_0xaf571c(0x212)]===_0xaf571c(0x1ea)||_0xf44b73[_0xaf571c(0x212)]===_0xaf571c(0x1fe)?await loadDataListPageStatusForGenerate(_0x1f9bf8,_0x3e97df['dataset'][_0xaf571c(0x1f9)]):null,_0x481932=assessGenerateOperationState(_0x3e97df['dataset'][_0xaf571c(0x1f9)],_0xf44b73[_0xaf571c(0x212)],_0x2afb55);return{'ok':!![],'message':_0xf44b73[_0xaf571c(0x214)]?_0xaf571c(0x1e7):_0xaf571c(0x20d),'data':{'datasetCode':_0x3e97df['dataset']['code'],'appCode':_0x1f9bf8[_0xaf571c(0x1ef)],'pageType':_0xaf571c(0x211),'pagePattern':_0xaf571c(0x218),'taskId':_0xf44b73[_0xaf571c(0x213)]??null,'operationId':_0xf44b73[_0xaf571c(0x205)]??null,'clientOperationId':_0x3e97df[_0xaf571c(0x1f1)],'jobStatus':_0xf44b73[_0xaf571c(0x212)]??null,'progressRate':typeof _0xf44b73['progressRate']===_0xaf571c(0x200)?_0xf44b73[_0xaf571c(0x1f7)]:null,'currentStep':_0xf44b73[_0xaf571c(0x1f2)]??null,'reused':_0xf44b73[_0xaf571c(0x214)]===!![],'status':_0x481932[_0xaf571c(0x212)],'manualResolutionRequired':_0x481932['manualResolutionRequired'],'nextAction':_0x481932[_0xaf571c(0x21b)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3e97df[_0xaf571c(0x1fa)]['code'],{'appCode':_0x1f9bf8[_0xaf571c(0x1ef)],'taskId':_0xf44b73[_0xaf571c(0x213)],'operationId':_0xf44b73[_0xaf571c(0x205)],'clientOperationId':_0x3e97df[_0xaf571c(0x1f1)]})},'dataListPageStatus':_0x2afb55}};}};async function prepare(_0x69f02d){const _0x412b71=a152_0x194907,_0x23fb1a=await loadDatasetDetailForPage(_0x69f02d),_0x4843f9=await loadDataListPageStatusForGenerate(_0x69f02d,_0x23fb1a['code']),_0x27654b=getUndeletedRelatedPages(_0x23fb1a);return{'dataset':_0x23fb1a,'dataListPageStatus':_0x4843f9,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x23fb1a[_0x412b71(0x1f9)],_0x4843f9,{'fallbackUndeletedPages':_0x27654b})};}
1
+ const a152_0x2cb193=a152_0x1eb5;(function(_0x41955e,_0x55efea){const _0x620dd1=a152_0x1eb5,_0x339b38=_0x41955e();while(!![]){try{const _0x6d98b2=-parseInt(_0x620dd1(0xb2))/0x1*(-parseInt(_0x620dd1(0x88))/0x2)+parseInt(_0x620dd1(0xb1))/0x3*(parseInt(_0x620dd1(0x8a))/0x4)+-parseInt(_0x620dd1(0x91))/0x5+-parseInt(_0x620dd1(0x8d))/0x6+parseInt(_0x620dd1(0x82))/0x7*(-parseInt(_0x620dd1(0x83))/0x8)+-parseInt(_0x620dd1(0xa2))/0x9+parseInt(_0x620dd1(0xab))/0xa;if(_0x6d98b2===_0x55efea)break;else _0x339b38['push'](_0x339b38['shift']());}catch(_0x27fc9a){_0x339b38['push'](_0x339b38['shift']());}}}(a152_0x4d24,0xa973c));function a152_0x4d24(){const _0x5df1b3=['page-type','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','Submitted\x20a\x20generate\x20task','PARTIAL_SUCCESS','4385550tPCtzc','Reusing\x20an\x20existing\x20generate\x20task','page','write','reused','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','2782209GtmWWJ','2FLLZJX','compress','code','related-pages-fallback','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','SUCCESS','7XnYbTL','7061048blyEli','manualResolutionRequired','currentStep','number','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','1056426LXOiDG','precheck','4sarYuW','fieldCount','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','601428rWBzCQ','status','dataset','DATA_LIST','181550UivuYI','nextAction','progressRate','/generate-standard-pages/start','message','appCode','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','page-pattern','taskId','CRUD_PAGE_SET','clientOperationId','allowGenerate','string','alias','operationId','source','POST','6382161bkTTzt','name','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','apply','generate-start'];a152_0x4d24=function(){return _0x5df1b3;};return a152_0x4d24();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a152_0x2cb193(0xad),'command':a152_0x2cb193(0xa6),'description':a152_0x2cb193(0x87),'risk':a152_0x2cb193(0xae),'defaultOutputFormat':a152_0x2cb193(0xb3),'rejectedFlags':[{'name':a152_0x2cb193(0xa7),'message':a152_0x2cb193(0x8c),'hint':a152_0x2cb193(0xa4)},{'name':a152_0x2cb193(0x98),'message':a152_0x2cb193(0xb0),'hint':a152_0x2cb193(0x80)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a152_0x2cb193(0x9e),'type':a152_0x2cb193(0x9d),'description':a152_0x2cb193(0x97)},{'name':a152_0x2cb193(0xa5),'type':'boolean','description':a152_0x2cb193(0xa8)}],async 'validate'(_0x4200a4){validateDatasetSelector(_0x4200a4);},async 'dryRun'(_0x39632a){const _0x34a38d=a152_0x2cb193,_0x28f20=await prepare(_0x39632a);return{'method':_0x34a38d(0xa1),'url':'/smartapi/lovrabet/dataset/'+_0x28f20[_0x34a38d(0x8f)]['code']+_0x34a38d(0x94),'body':{'appCode':_0x39632a[_0x34a38d(0x96)],'clientOperationId':_0x28f20[_0x34a38d(0x9b)]},'description':serializeDryRunDescription({'dataset':{'id':_0x28f20[_0x34a38d(0x8f)]['id'],'code':_0x28f20['dataset'][_0x34a38d(0xb4)],'name':_0x28f20[_0x34a38d(0x8f)][_0x34a38d(0xa3)],'fieldCount':_0x28f20[_0x34a38d(0x8f)][_0x34a38d(0x8b)]},'precheckSource':_0x28f20['dataListPageStatus']?.[_0x34a38d(0xa0)]??_0x34a38d(0xb5),'action':'generate-start','clientOperationId':_0x28f20[_0x34a38d(0x9b)],'plannedStatus':_0x28f20['precheck'][_0x34a38d(0x8e)],'reason':_0x28f20[_0x34a38d(0x89)][_0x34a38d(0x95)]})};},async 'execute'(_0x48bfb9){const _0x10ca18=a152_0x2cb193;if(!_0x48bfb9['bool']('apply')){const _0x393636=await pageGenerateStart['dryRun'](_0x48bfb9);return{'ok':!![],'message':_0x10ca18(0x7f),'data':_0x393636};}const _0x1d2aab=await prepare(_0x48bfb9);if(!_0x1d2aab[_0x10ca18(0x89)][_0x10ca18(0x9c)])return{'ok':![],'message':_0x1d2aab[_0x10ca18(0x89)]['message'],'data':{'datasetCode':_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],'pageType':'DATA_LIST','pagePattern':_0x10ca18(0x9a),'clientOperationId':_0x1d2aab['clientOperationId'],'precheckSource':_0x1d2aab['dataListPageStatus']?.[_0x10ca18(0xa0)]??'related-pages-fallback','status':_0x1d2aab['precheck']['status'],'manualResolutionRequired':_0x1d2aab['precheck']['manualResolutionRequired'],'nextAction':_0x1d2aab[_0x10ca18(0x89)][_0x10ca18(0x92)],'query':{'command':buildDataListPageStatusQueryCommand(_0x1d2aab[_0x10ca18(0x8f)]['code'],_0x48bfb9[_0x10ca18(0x96)])},'dataListPageStatus':_0x1d2aab['dataListPageStatus']}};const _0x56e43e=await startGenerateDataListPages(_0x48bfb9[_0x10ca18(0x96)],_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],{'clientOperationId':_0x1d2aab[_0x10ca18(0x9b)]}),_0x27cb84=_0x56e43e['status']===_0x10ca18(0x81)||_0x56e43e['status']===_0x10ca18(0xaa)?await loadDataListPageStatusForGenerate(_0x48bfb9,_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)]):null,_0x186b83=assessGenerateOperationState(_0x1d2aab[_0x10ca18(0x8f)]['code'],_0x56e43e[_0x10ca18(0x8e)],_0x27cb84);return{'ok':!![],'message':_0x56e43e[_0x10ca18(0xaf)]?_0x10ca18(0xac):_0x10ca18(0xa9),'data':{'datasetCode':_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],'appCode':_0x48bfb9[_0x10ca18(0x96)],'pageType':_0x10ca18(0x90),'pagePattern':_0x10ca18(0x9a),'taskId':_0x56e43e[_0x10ca18(0x99)]??null,'operationId':_0x56e43e[_0x10ca18(0x9f)]??null,'clientOperationId':_0x1d2aab[_0x10ca18(0x9b)],'jobStatus':_0x56e43e[_0x10ca18(0x8e)]??null,'progressRate':typeof _0x56e43e[_0x10ca18(0x93)]===_0x10ca18(0x86)?_0x56e43e[_0x10ca18(0x93)]:null,'currentStep':_0x56e43e[_0x10ca18(0x85)]??null,'reused':_0x56e43e[_0x10ca18(0xaf)]===!![],'status':_0x186b83['status'],'manualResolutionRequired':_0x186b83[_0x10ca18(0x84)],'nextAction':_0x186b83[_0x10ca18(0x92)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1d2aab[_0x10ca18(0x8f)][_0x10ca18(0xb4)],{'appCode':_0x48bfb9[_0x10ca18(0x96)],'taskId':_0x56e43e[_0x10ca18(0x99)],'operationId':_0x56e43e[_0x10ca18(0x9f)],'clientOperationId':_0x1d2aab[_0x10ca18(0x9b)]})},'dataListPageStatus':_0x27cb84}};}};function a152_0x1eb5(_0x3cdcf7,_0x4d5db3){_0x3cdcf7=_0x3cdcf7-0x7f;const _0x4d245c=a152_0x4d24();let _0x1eb56b=_0x4d245c[_0x3cdcf7];return _0x1eb56b;}async function prepare(_0x5c3b1b){const _0x571e40=a152_0x2cb193,_0x178171=await loadDatasetDetailForPage(_0x5c3b1b),_0x1803e6=await loadDataListPageStatusForGenerate(_0x5c3b1b,_0x178171[_0x571e40(0xb4)]),_0x5bdff3=getUndeletedRelatedPages(_0x178171);return{'dataset':_0x178171,'dataListPageStatus':_0x1803e6,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x178171[_0x571e40(0xb4)],_0x1803e6,{'fallbackUndeletedPages':_0x5bdff3})};}