@lovrabet/rabetbase-cli 2.5.10-beta.1 → 2.5.10-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.d.ts +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.js +1 -1
  278. package/lib/constant/env.js +1 -1
  279. package/lib/constant/output.js +1 -1
  280. package/lib/constant/paths.js +1 -1
  281. package/lib/constant/region.js +1 -1
  282. package/lib/constant/risk.js +1 -1
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.d.ts +0 -28
  290. package/lib/core/api-client.js +1 -1
  291. package/lib/core/bff/config.js +1 -1
  292. package/lib/core/bff/file-system.js +1 -1
  293. package/lib/core/bff/hash.js +1 -1
  294. package/lib/core/bff/hook-directory.js +1 -1
  295. package/lib/core/bff/lock.js +1 -1
  296. package/lib/core/bff/utils.js +1 -1
  297. package/lib/core/cross-db-analysis.js +1 -1
  298. package/lib/core/cross-db-relation.js +1 -1
  299. package/lib/core/db-resolver.js +1 -1
  300. package/lib/core/flow-config.js +1 -1
  301. package/lib/core/instant-api-policy/config.js +1 -1
  302. package/lib/core/instant-api-policy/endpoints.d.ts +8 -0
  303. package/lib/core/instant-api-policy/endpoints.js +1 -0
  304. package/lib/core/kb-management-client.d.ts +3 -9
  305. package/lib/core/kb-management-client.js +1 -1
  306. package/lib/core/kb-search-client.d.ts +1 -4
  307. package/lib/core/kb-search-client.js +1 -1
  308. package/lib/core/page/file-system.js +1 -1
  309. package/lib/core/page/hash.js +1 -1
  310. package/lib/core/page/lock.js +1 -1
  311. package/lib/core/page/lr-smart-jsx.js +1 -1
  312. package/lib/core/sql-index-auditor.js +1 -1
  313. package/lib/core/sql-sync/config.js +1 -1
  314. package/lib/core/sql-sync/file-system.js +1 -1
  315. package/lib/core/sql-sync/hash.js +1 -1
  316. package/lib/core/sql-sync/lock.js +1 -1
  317. package/lib/core/sql-sync/utils.js +1 -1
  318. package/lib/core/sql-validator.js +1 -1
  319. package/lib/errors.js +1 -1
  320. package/lib/framework/build-all-flags.js +1 -1
  321. package/lib/framework/error-output.js +1 -1
  322. package/lib/framework/explicit-yes.js +1 -1
  323. package/lib/framework/flags.js +1 -1
  324. package/lib/framework/help.js +1 -1
  325. package/lib/framework/index.js +1 -1
  326. package/lib/framework/output.js +1 -1
  327. package/lib/framework/response.js +1 -1
  328. package/lib/framework/runner-alias.js +1 -1
  329. package/lib/framework/runner.js +1 -1
  330. package/lib/framework/schema-export.js +1 -1
  331. package/lib/framework/supported-flags.js +1 -1
  332. package/lib/framework/types.js +1 -1
  333. package/lib/generated/build-info.d.ts +4 -4
  334. package/lib/generated/build-info.js +1 -1
  335. package/lib/generated/official-routing.js +1 -1
  336. package/lib/generated/routing-contract.js +1 -1
  337. package/lib/help.js +1 -1
  338. package/lib/postinstall.js +1 -1
  339. package/lib/runtime/confirmation.js +1 -1
  340. package/lib/runtime/event.js +1 -1
  341. package/lib/runtime/index.js +1 -1
  342. package/lib/runtime/queue.js +1 -1
  343. package/lib/runtime/resolve.js +1 -1
  344. package/lib/services/dataset-design/checkpoint.js +1 -1
  345. package/lib/services/dataset-design/commands.js +1 -1
  346. package/lib/services/dataset-design/contract.js +1 -1
  347. package/lib/skills/builtin-skill.js +1 -1
  348. package/lib/skills/main.js +1 -1
  349. package/lib/skills/npx-skills-add.js +1 -1
  350. package/lib/skills/skill-presence.js +1 -1
  351. package/lib/telemetry/cli-command-trace.js +1 -1
  352. package/lib/telemetry/cli-help-trace.js +1 -1
  353. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  354. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  355. package/lib/telemetry/send-cli-trace-log.js +1 -1
  356. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  357. package/lib/utils/ai_config.js +1 -1
  358. package/lib/utils/apply-jq-filter.js +1 -1
  359. package/lib/utils/cdn-config.js +1 -1
  360. package/lib/utils/check-sdk-version.js +1 -1
  361. package/lib/utils/cli-version-check.js +1 -1
  362. package/lib/utils/cli-version-policy.js +1 -1
  363. package/lib/utils/config.js +1 -1
  364. package/lib/utils/entity-with-id.js +1 -1
  365. package/lib/utils/file-utils.js +1 -1
  366. package/lib/utils/guides-cdn.js +1 -1
  367. package/lib/utils/http-client.js +1 -1
  368. package/lib/utils/is-non-interactive.js +1 -1
  369. package/lib/utils/logger.js +1 -1
  370. package/lib/utils/params.js +1 -1
  371. package/lib/utils/platform.js +1 -1
  372. package/lib/utils/sleep.js +1 -1
  373. package/lib/utils/template-replacer.js +1 -1
  374. package/lib/utils/update-notice.js +1 -1
  375. package/lib/utils/version.js +1 -1
  376. package/lib/utils/with-active-cookie.js +1 -1
  377. package/lib/utils/write-cli-side-channel.js +1 -1
  378. package/package.json +2 -1
  379. package/skills/rabetbase/SKILL.md +1 -1
  380. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  381. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  382. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a198_0x354c86=a198_0x4c56;(function(_0x5e76d4,_0x5e77e7){const _0xa6506f=a198_0x4c56,_0x61195f=_0x5e76d4();while(!![]){try{const _0x50221f=parseInt(_0xa6506f(0x10b))/0x1+parseInt(_0xa6506f(0x112))/0x2+parseInt(_0xa6506f(0x108))/0x3*(-parseInt(_0xa6506f(0xec))/0x4)+-parseInt(_0xa6506f(0x11a))/0x5+parseInt(_0xa6506f(0xfa))/0x6+-parseInt(_0xa6506f(0xf4))/0x7*(-parseInt(_0xa6506f(0xee))/0x8)+parseInt(_0xa6506f(0x102))/0x9*(parseInt(_0xa6506f(0x11c))/0xa);if(_0x50221f===_0x5e77e7)break;else _0x61195f['push'](_0x61195f['shift']());}catch(_0x3a938c){_0x61195f['push'](_0x61195f['shift']());}}}(a198_0x39e0,0xc965c));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';function a198_0x39e0(){const _0x27b68c=['Invoice','image-url','filter','Publicly\x20accessible\x20image\x20or\x20file\x20URL','824682VRWuIy','Unsupported\x20OCR\x20scene:\x20','scene','appCode','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','fileUrl','image-file','7982400ZcmXkx','filePath','999730MHGfjD','recognize','/smartapi/ocr/recognize-text','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','toLowerCase','1864glLKDf','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','24ZLgbTS','General','Table','IdCard','idcard','/smartapi/common/queryFileUrl','885717JOrBKP','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','str','apiError','ocr','File\x20URL\x20response\x20missing\x20fileUrl.','3622896CtAJez','/smartapi/ocr/recognize-text?','GET','general','string','join','imageUrl','toString','45eKgytr','form','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','read','trim','invoice','2559VJzLQR','POST','fileName','923287SEDYbE','validation','Preview:\x20recognize\x20'];a198_0x39e0=function(){return _0x27b68c;};return a198_0x39e0();}import{CliErrors}from'../../errors.js';function a198_0x4c56(_0x443cd1,_0x2eb73c){_0x443cd1=_0x443cd1-0xe9;const _0x39e05f=a198_0x39e0();let _0x4c567c=_0x39e05f[_0x443cd1];return _0x4c567c;}const SUPPORTED_SCENES=['invoice',a198_0x354c86(0xfd),'form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a198_0x354c86(0x10e),'general':a198_0x354c86(0xef),'form':a198_0x354c86(0xf0),'idCard':a198_0x354c86(0xf1)},SCENE_FLAG={'name':a198_0x354c86(0x114),'type':a198_0x354c86(0xfe),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a198_0x354c86(0xf5)},IMAGE_FILE_FLAG={'name':a198_0x354c86(0x119),'type':a198_0x354c86(0xfe),'description':a198_0x354c86(0x116)},IMAGE_URL_FLAG={'name':a198_0x354c86(0x10f),'type':a198_0x354c86(0xfe),'description':a198_0x354c86(0x111)};function normalizeScene(_0x450e3f){const _0x4f5c58=a198_0x354c86,_0x375d70=_0x450e3f['trim']()[_0x4f5c58(0xeb)]();if(_0x375d70===_0x4f5c58(0xf2))return'idCard';if(_0x375d70===_0x4f5c58(0x107)||_0x375d70===_0x4f5c58(0xfd)||_0x375d70===_0x4f5c58(0x103))return _0x375d70;throw CliErrors[_0x4f5c58(0x10c)](_0x4f5c58(0x113)+_0x450e3f+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x4f5c58(0xff)](',\x20'));}function selectedInputs(_0x35591b){const _0x823614=a198_0x354c86,_0x150fec=_0x35591b[_0x823614(0xf6)](_0x823614(0x119))[_0x823614(0x106)](),_0xdfaf9=_0x35591b[_0x823614(0xf6)](_0x823614(0x10f))['trim']();return{'imageFile':_0x150fec,'imageUrl':_0xdfaf9,'count':[_0x150fec,_0xdfaf9][_0x823614(0x110)](Boolean)['length']};}function validateInputSelection(_0x3a26a3){const _0x31dfa3=a198_0x354c86,_0x3f48f3=selectedInputs(_0x3a26a3);if(_0x3f48f3['count']!==0x1)throw CliErrors[_0x31dfa3(0x10c)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x3f48f3;}function withScene(_0xc672d2,_0x2e2ba0,_0xed6bda){const _0xdc1b99=a198_0x354c86;return{..._0xc672d2,'scene':_0x2e2ba0,..._0xed6bda?{'sourceFile':{'fileName':_0xed6bda[_0xdc1b99(0x10a)],'filePath':_0xed6bda[_0xdc1b99(0x11b)]}}:{}};}const ocrRecognize={'service':a198_0x354c86(0xf8),'command':a198_0x354c86(0x11d),'description':a198_0x354c86(0x104),'risk':a198_0x354c86(0x105),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x216a89){const _0x35e410=a198_0x354c86,_0x959b37=normalizeScene(_0x216a89[_0x35e410(0xf6)](_0x35e410(0x114))),_0x2df831=SCENE_TO_LEGACY_TYPE[_0x959b37],_0x864804=validateInputSelection(_0x216a89);if(_0x864804[_0x35e410(0x100)]){const _0xbe9e93=new URLSearchParams({'url':_0x864804[_0x35e410(0x100)],'type':_0x2df831,'appCode':_0x216a89[_0x35e410(0x115)]});return{'method':_0x35e410(0xfc),'url':_0x35e410(0xfb)+_0xbe9e93[_0x35e410(0x101)](),'description':_0x35e410(0x10d)+_0x959b37+'\x20OCR\x20from\x20URL'};}const _0x485584=requireDevelopmentUploadFile(_0x864804['imageFile'],'image-file');return{'method':_0x35e410(0x109),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':_0x35e410(0x109),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x216a89[_0x35e410(0x115)],'multipart':{'file':_0x485584}}},{'method':_0x35e410(0x109),'url':_0x35e410(0xf3),'body':{'filePath':_0x35e410(0xed),'downloadFlag':![]}},{'method':_0x35e410(0xfc),'url':_0x35e410(0xe9),'query':{'appCode':_0x216a89[_0x35e410(0x115)],'url':_0x35e410(0xea),'type':_0x2df831}}]},'description':'Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x959b37+'\x20OCR'};},async 'execute'(_0x87eb7b){const _0x129135=a198_0x354c86,_0x59a63c=normalizeScene(_0x87eb7b['str']('scene')),_0x49ccc2=SCENE_TO_LEGACY_TYPE[_0x59a63c],_0x5a915c=validateInputSelection(_0x87eb7b);if(_0x5a915c[_0x129135(0x100)]){const _0x2a0af=await recognizeDevelopmentOcr(_0x87eb7b[_0x129135(0x115)],{'url':_0x5a915c['imageUrl'],'type':_0x49ccc2});return{'ok':!![],'data':withScene(_0x2a0af,_0x59a63c)};}const _0x6b6afe=requireDevelopmentUploadFile(_0x5a915c['imageFile'],_0x129135(0x119)),_0x23efbe=await uploadDevelopmentFile(_0x87eb7b[_0x129135(0x115)],_0x6b6afe['path']);if(!_0x23efbe[_0x129135(0x11b)])throw CliErrors['apiError'](_0x129135(0x117));const _0x4742b4=await queryDevelopmentFileUrl(_0x23efbe[_0x129135(0x11b)],{'download':![]});if(!_0x4742b4[_0x129135(0x118)])throw CliErrors[_0x129135(0xf7)](_0x129135(0xf9));const _0x4927eb=await recognizeDevelopmentOcr(_0x87eb7b[_0x129135(0x115)],{'url':_0x4742b4['fileUrl'],'type':_0x49ccc2});return{'ok':!![],'data':withScene(_0x4927eb,_0x59a63c,_0x23efbe)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a198_0x1be700=a198_0x25a5;(function(_0x3cd19b,_0x460707){const _0x3ed610=a198_0x25a5,_0x2d290f=_0x3cd19b();while(!![]){try{const _0xb4daf1=-parseInt(_0x3ed610(0x91))/0x1+parseInt(_0x3ed610(0x9b))/0x2*(-parseInt(_0x3ed610(0x74))/0x3)+parseInt(_0x3ed610(0x9d))/0x4*(parseInt(_0x3ed610(0x8f))/0x5)+-parseInt(_0x3ed610(0x71))/0x6+-parseInt(_0x3ed610(0x79))/0x7*(-parseInt(_0x3ed610(0x9e))/0x8)+parseInt(_0x3ed610(0x7e))/0x9+-parseInt(_0x3ed610(0x82))/0xa;if(_0xb4daf1===_0x460707)break;else _0x2d290f['push'](_0x2d290f['shift']());}catch(_0xcb13b3){_0x2d290f['push'](_0x2d290f['shift']());}}}(a198_0x1ee2,0x5ab38));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a198_0x25a5(_0x28eb4d,_0x58ee59){_0x28eb4d=_0x28eb4d-0x6a;const _0x1ee25c=a198_0x1ee2();let _0x25a531=_0x1ee25c[_0x28eb4d];return _0x25a531;}const SUPPORTED_SCENES=[a198_0x1be700(0x6a),'general',a198_0x1be700(0x6b),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a198_0x1be700(0x9f),'general':a198_0x1be700(0x8a),'form':a198_0x1be700(0x8d),'idCard':a198_0x1be700(0x78)},SCENE_FLAG={'name':a198_0x1be700(0x88),'type':a198_0x1be700(0x72),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a198_0x1be700(0x76)},IMAGE_FILE_FLAG={'name':a198_0x1be700(0x9c),'type':'string','description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a198_0x1be700(0x81),'type':'string','description':a198_0x1be700(0x7a)};function normalizeScene(_0x5c5d8f){const _0x9ad28f=a198_0x1be700,_0x430deb=_0x5c5d8f[_0x9ad28f(0x9a)]()[_0x9ad28f(0x8b)]();if(_0x430deb===_0x9ad28f(0x85))return _0x9ad28f(0x97);if(_0x430deb===_0x9ad28f(0x6a)||_0x430deb===_0x9ad28f(0x73)||_0x430deb===_0x9ad28f(0x6b))return _0x430deb;throw CliErrors[_0x9ad28f(0x87)]('Unsupported\x20OCR\x20scene:\x20'+_0x5c5d8f+_0x9ad28f(0x86)+SUPPORTED_SCENES[_0x9ad28f(0x7f)](',\x20'));}function selectedInputs(_0x4a1a15){const _0x386759=a198_0x1be700,_0x1d8094=_0x4a1a15[_0x386759(0x84)](_0x386759(0x9c))[_0x386759(0x9a)](),_0x195419=_0x4a1a15[_0x386759(0x84)](_0x386759(0x81))[_0x386759(0x9a)]();return{'imageFile':_0x1d8094,'imageUrl':_0x195419,'count':[_0x1d8094,_0x195419][_0x386759(0x95)](Boolean)['length']};}function validateInputSelection(_0x5ef523){const _0x3127a5=a198_0x1be700,_0x2b5e50=selectedInputs(_0x5ef523);if(_0x2b5e50[_0x3127a5(0xa1)]!==0x1)throw CliErrors[_0x3127a5(0x87)](_0x3127a5(0x6e));return _0x2b5e50;}function withScene(_0x8d2196,_0x30e5b0,_0x11fdda){const _0xde9bb4=a198_0x1be700;return{..._0x8d2196,'scene':_0x30e5b0,..._0x11fdda?{'sourceFile':{'fileName':_0x11fdda[_0xde9bb4(0x80)],'filePath':_0x11fdda['filePath']}}:{}};}const ocrRecognize={'service':'ocr','command':a198_0x1be700(0x83),'description':a198_0x1be700(0x6f),'risk':a198_0x1be700(0x75),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xcebf56){const _0x2202a7=a198_0x1be700,_0x10c927=normalizeScene(_0xcebf56[_0x2202a7(0x84)]('scene')),_0x1b7563=SCENE_TO_LEGACY_TYPE[_0x10c927],_0x350daa=validateInputSelection(_0xcebf56);if(_0x350daa[_0x2202a7(0xa0)]){const _0x518510=new URLSearchParams({'url':_0x350daa[_0x2202a7(0xa0)],'type':_0x1b7563,'appCode':_0xcebf56[_0x2202a7(0x89)]});return{'method':_0x2202a7(0x92),'url':'/smartapi/ocr/recognize-text?'+_0x518510[_0x2202a7(0x94)](),'description':_0x2202a7(0x96)+_0x10c927+_0x2202a7(0x99)};}const _0x1816ba=requireDevelopmentUploadFile(_0x350daa[_0x2202a7(0x7c)],_0x2202a7(0x9c));return{'method':_0x2202a7(0x7d),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0xcebf56[_0x2202a7(0x89)],'multipart':{'file':_0x1816ba}}},{'method':_0x2202a7(0x7d),'url':_0x2202a7(0x70),'body':{'filePath':_0x2202a7(0x93),'downloadFlag':![]}},{'method':_0x2202a7(0x92),'url':_0x2202a7(0xa2),'query':{'appCode':_0xcebf56[_0x2202a7(0x89)],'url':_0x2202a7(0x8c),'type':_0x1b7563}}]},'description':_0x2202a7(0x90)+_0x10c927+_0x2202a7(0x7b)};},async 'execute'(_0x4d1fa8){const _0x473fa7=a198_0x1be700,_0x216409=normalizeScene(_0x4d1fa8[_0x473fa7(0x84)]('scene')),_0xb644e0=SCENE_TO_LEGACY_TYPE[_0x216409],_0x43b2f9=validateInputSelection(_0x4d1fa8);if(_0x43b2f9[_0x473fa7(0xa0)]){const _0x2de00e=await recognizeDevelopmentOcr(_0x4d1fa8[_0x473fa7(0x89)],{'url':_0x43b2f9[_0x473fa7(0xa0)],'type':_0xb644e0});return{'ok':!![],'data':withScene(_0x2de00e,_0x216409)};}const _0x45d241=requireDevelopmentUploadFile(_0x43b2f9['imageFile'],'image-file'),_0x3d0b0c=await uploadDevelopmentFile(_0x4d1fa8[_0x473fa7(0x89)],_0x45d241[_0x473fa7(0x6d)]);if(!_0x3d0b0c[_0x473fa7(0x98)])throw CliErrors[_0x473fa7(0x6c)](_0x473fa7(0x77));const _0x43f83c=await queryDevelopmentFileUrl(_0x3d0b0c[_0x473fa7(0x98)],{'download':![]});if(!_0x43f83c['fileUrl'])throw CliErrors['apiError'](_0x473fa7(0x8e));const _0x174c0c=await recognizeDevelopmentOcr(_0x4d1fa8['appCode'],{'url':_0x43f83c['fileUrl'],'type':_0xb644e0});return{'ok':!![],'data':withScene(_0x174c0c,_0x216409,_0x3d0b0c)};}};export const ocrDefinitions=[ocrRecognize];function a198_0x1ee2(){const _0xa12ebe=['general','41859MfNvOF','read','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','File\x20upload\x20response\x20missing\x20filePath.','IdCard','14007FHSsEM','Publicly\x20accessible\x20image\x20or\x20file\x20URL','\x20OCR','imageFile','POST','2719170TbATQt','join','fileName','image-url','221750zYayDp','recognize','str','idcard','.\x20Supported\x20scenes:\x20','validation','scene','appCode','General','toLowerCase','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','Table','File\x20URL\x20response\x20missing\x20fileUrl.','221245rLmLEO','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','266339SuRYeH','GET','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','toString','filter','Preview:\x20recognize\x20','idCard','filePath','\x20OCR\x20from\x20URL','trim','12gVtKnw','image-file','28TUIxqy','1288wokEFt','Invoice','imageUrl','count','/smartapi/ocr/recognize-text','invoice','form','apiError','path','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','/smartapi/common/queryFileUrl','1141740fRCtqi','string'];a198_0x1ee2=function(){return _0xa12ebe;};return a198_0x1ee2();}
@@ -1 +1 @@
1
- const a199_0x469a86=a199_0x5995;(function(_0x1e5875,_0x52b856){const _0x21a9a1=a199_0x5995,_0x292948=_0x1e5875();while(!![]){try{const _0x2310dc=-parseInt(_0x21a9a1(0x14b))/0x1+parseInt(_0x21a9a1(0x13d))/0x2+parseInt(_0x21a9a1(0x15d))/0x3*(-parseInt(_0x21a9a1(0x13e))/0x4)+-parseInt(_0x21a9a1(0x14f))/0x5+-parseInt(_0x21a9a1(0x146))/0x6*(-parseInt(_0x21a9a1(0x13f))/0x7)+-parseInt(_0x21a9a1(0x135))/0x8+parseInt(_0x21a9a1(0x133))/0x9;if(_0x2310dc===_0x52b856)break;else _0x292948['push'](_0x292948['shift']());}catch(_0x2b7d60){_0x292948['push'](_0x292948['shift']());}}}(a199_0x153c,0xdbf5d));function a199_0x153c(){const _0x4133e3=['DASHBOARD','31494780GgdJhA','Invalid\x20Custom\x20Page\x20pattern:\x20','13044808HXEAlN','parentMenuId','apiError','\x20and\x20its\x20menu\x20entry.','length','parent-menu-id','files','string','606392Smccyz','24dsInXK','1012767kBvWSA','../../../templates/custom-pages','page-type','write','Created\x20Custom\x20Page\x20','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','24epsFfB','num','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','name','page-dir','670243lVTcqU','isInteger','.json','some','2275555lfugaL','trim','values','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','compress','version','page.create','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','keys','pageName','toLowerCase','stringify','str','362214wjdPRg','Custom\x20Page\x20pattern\x20not\x20found:\x20','now','BLANK','includes','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','page\x20create\x20does\x20not\x20accept\x20--page-type.','menuPath','page-content','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','pageId','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page-pattern','Would\x20create\x20Custom\x20Page\x20','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','appCode','validation','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.'];a199_0x153c=function(){return _0x4133e3;};return a199_0x153c();}import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';function a199_0x5995(_0x5221d4,_0x46a8bd){_0x5221d4=_0x5221d4-0x128;const _0x153c02=a199_0x153c();let _0x599575=_0x153c02[_0x5221d4];return _0x599575;}import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x469a86(0x160),'ONEPAGE',a199_0x469a86(0x132)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x469a86(0x140));export const pageCreate={'service':'page','command':'create','description':a199_0x469a86(0x163),'risk':a199_0x469a86(0x142),'defaultOutputFormat':a199_0x469a86(0x154),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x469a86(0x141),'message':a199_0x469a86(0x164),'hint':a199_0x469a86(0x152)},{'name':a199_0x469a86(0x166),'message':a199_0x469a86(0x148),'hint':a199_0x469a86(0x162)}],'flags':[{'name':a199_0x469a86(0x149),'type':a199_0x469a86(0x13c),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a199_0x469a86(0x13a),'type':'number','description':a199_0x469a86(0x145)},{'name':'page-pattern','type':a199_0x469a86(0x13c),'description':a199_0x469a86(0x144),'enum':CUSTOM_PAGE_PATTERNS},{'name':'page-dir','type':a199_0x469a86(0x13c),'description':a199_0x469a86(0x128)},APPCODE_FLAG],async 'validate'(_0x5ad4c9){await readValidatedPageSource(_0x5ad4c9);},async 'dryRun'(_0x48079e){const _0x4c067a=a199_0x469a86,_0x4ecf29=readInput(_0x48079e,await readValidatedPageSource(_0x48079e));return{'method':'POST','url':'/smartapi/webcode/page/create','body':{'appCode':_0x4ecf29[_0x4c067a(0x12f)],'pageName':_0x4ecf29[_0x4c067a(0x159)],..._0x4ecf29[_0x4c067a(0x136)]!=null?{'parentMenuId':_0x4ecf29[_0x4c067a(0x136)]}:{},'createMenu':_0x4ecf29['createMenu'],'codeContent':_0x4ecf29[_0x4c067a(0x13b)]},'description':_0x4c067a(0x12d)+JSON[_0x4c067a(0x15b)](_0x4ecf29[_0x4c067a(0x159)])+_0x4c067a(0x138)};},async 'execute'(_0x4df733){const _0x9fd68b=a199_0x469a86,_0x35022d=readInput(_0x4df733,await readValidatedPageSource(_0x4df733)),_0x59d169=await createCustomPage(_0x35022d);if(!Number[_0x9fd68b(0x14c)](_0x59d169[_0x9fd68b(0x12a)])||_0x59d169[_0x9fd68b(0x12a)]<=0x0)throw CliErrors[_0x9fd68b(0x137)](_0x9fd68b(0x131));const _0xb0b8f9=buildCustomPageDevelopmentUrl(_0x35022d[_0x9fd68b(0x12f)],_0x59d169[_0x9fd68b(0x165)]),_0x225b34=buildCustomPageEditUrl(_0x35022d[_0x9fd68b(0x12f)],_0x59d169[_0x9fd68b(0x12a)]);return{'ok':!![],'data':{'operation':_0x9fd68b(0x156),'pageType':'CUSTOM','pagePattern':readPagePattern(_0x4df733),'selector':{'appCode':_0x35022d['appCode'],'pageName':_0x35022d[_0x9fd68b(0x159)]},'before':null,'after':{'pageId':_0x59d169[_0x9fd68b(0x12a)],'pageName':_0x59d169[_0x9fd68b(0x159)],'appCode':_0x59d169['appCode'],'version':_0x59d169[_0x9fd68b(0x155)],'menuId':_0x59d169['menuId'],'menuPath':_0x59d169[_0x9fd68b(0x165)],'files':_0x59d169[_0x9fd68b(0x13b)]??Object[_0x9fd68b(0x158)](_0x35022d['files'])},'dryRun':![],'request':_0x35022d,..._0xb0b8f9?{'pageUrl':_0xb0b8f9}:{},..._0x225b34?{'editPageUrl':_0x225b34}:{},'warnings':_0xb0b8f9?[]:[_0x9fd68b(0x12b)]},'message':_0x9fd68b(0x143)+_0x59d169['pageId']+'.'};}};function readPagePattern(_0x2957e3){const _0x473696=a199_0x469a86,_0x1efd73=_0x2957e3[_0x473696(0x15c)](_0x473696(0x12c))[_0x473696(0x150)](),_0x33f936=_0x2957e3[_0x473696(0x15c)](_0x473696(0x14a))[_0x473696(0x150)]();if(_0x1efd73&&_0x33f936)throw CliErrors['validation'](_0x473696(0x129));if(_0x33f936)return null;if(!_0x1efd73)throw CliErrors[_0x473696(0x130)](_0x473696(0x153));if(!CUSTOM_PAGE_PATTERNS[_0x473696(0x161)](_0x1efd73))throw CliErrors[_0x473696(0x130)](_0x473696(0x12e));return _0x1efd73;}async function readPageSource(_0x4b86a3){const _0x44dee3=a199_0x469a86,_0x38056f=_0x4b86a3[_0x44dee3(0x15c)](_0x44dee3(0x14a))[_0x44dee3(0x150)](),_0x173940=readPagePattern(_0x4b86a3);if(_0x173940===null){const _0x53ae5c=await readCustomPageDirectory(_0x38056f);if(Object[_0x44dee3(0x158)](_0x53ae5c)[_0x44dee3(0x139)]===0x0)throw CliErrors[_0x44dee3(0x130)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x53ae5c;}let _0x4fc3fa;try{_0x4fc3fa=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x173940[_0x44dee3(0x15a)]()+_0x44dee3(0x14d)),'utf8');}catch{throw CliErrors[_0x44dee3(0x130)](_0x44dee3(0x15e)+_0x173940+'.');}let _0x2a8d8e;try{_0x2a8d8e=JSON['parse'](_0x4fc3fa);}catch{throw CliErrors['validation'](_0x44dee3(0x134)+_0x173940+'.');}if(!_0x2a8d8e||typeof _0x2a8d8e!=='object'||Array['isArray'](_0x2a8d8e)||Object[_0x44dee3(0x151)](_0x2a8d8e)[_0x44dee3(0x14e)](_0x55fbf0=>typeof _0x55fbf0!=='string'))throw CliErrors['validation'](_0x44dee3(0x134)+_0x173940+'.');return _0x2a8d8e;}async function readValidatedPageSource(_0x14e7ae){const _0x420c34=await readPageSource(_0x14e7ae);return await validateCustomPageContent(_0x420c34),_0x420c34;}function readInput(_0x5cdd94,_0x806413){const _0x573cb2=a199_0x469a86,_0x5874f4=_0x5cdd94['str'](_0x573cb2(0x149))[_0x573cb2(0x150)]()||'Custom_page_'+Date[_0x573cb2(0x15f)]();if(_0x5874f4[_0x573cb2(0x139)]>0x64)throw CliErrors['validation']('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x33e5b0=_0x5cdd94[_0x573cb2(0x147)](_0x573cb2(0x13a),NaN),_0x4ae861=!Number['isNaN'](_0x33e5b0);if(_0x4ae861&&(!Number['isInteger'](_0x33e5b0)||_0x33e5b0<=0x0))throw CliErrors[_0x573cb2(0x130)](_0x573cb2(0x157));return{'appCode':_0x5cdd94[_0x573cb2(0x12f)],'pageName':_0x5874f4,..._0x4ae861?{'parentMenuId':_0x33e5b0}:{},'createMenu':!![],'files':_0x806413};}
1
+ const a199_0x2734df=a199_0xacc1;(function(_0x498f9f,_0x160b5b){const _0x4a7503=a199_0xacc1,_0x55fdff=_0x498f9f();while(!![]){try{const _0x45fe03=parseInt(_0x4a7503(0x11d))/0x1*(-parseInt(_0x4a7503(0x100))/0x2)+parseInt(_0x4a7503(0x11c))/0x3+-parseInt(_0x4a7503(0xe8))/0x4+-parseInt(_0x4a7503(0x10f))/0x5*(parseInt(_0x4a7503(0xe4))/0x6)+parseInt(_0x4a7503(0xf5))/0x7+-parseInt(_0x4a7503(0x110))/0x8*(parseInt(_0x4a7503(0x11e))/0x9)+-parseInt(_0x4a7503(0x108))/0xa*(-parseInt(_0x4a7503(0x116))/0xb);if(_0x45fe03===_0x160b5b)break;else _0x55fdff['push'](_0x55fdff['shift']());}catch(_0x4cd907){_0x55fdff['push'](_0x55fdff['shift']());}}}(a199_0x4c12,0xefc7e));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a199_0x4c12(){const _0x1b1d10=['parent-menu-id','page-pattern','str','createMenu','2sfGjBm','Invalid\x20Custom\x20Page\x20pattern:\x20','length','appCode','\x20and\x20its\x20menu\x20entry.','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','CUSTOM','page-dir','3442720kLDfmc','string','Custom_page_','isInteger','compress','create','POST','85URjLEX','9513544zIlARW','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Custom\x20Page\x20pattern\x20not\x20found:\x20','pageName\x20cannot\x20exceed\x20100\x20characters.','menuId','validation','99SrOpjg','DASHBOARD','Created\x20Custom\x20Page\x20','apiError','utf8','pageName','4271409zLDhJI','1896607JqXBTf','9kkZhkT','now','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','menuPath','page.create','Would\x20create\x20Custom\x20Page\x20','pageId','page','107436qFyzvL','isNaN','.json','num','5873320DhAKcF','/smartapi/webcode/page/create','version','number','trim','stringify','parse','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','files','parentMenuId','BLANK','page-type','9228961pClqUl','page-content','page\x20create\x20does\x20not\x20accept\x20--page-type.','name','keys','some','isArray'];a199_0x4c12=function(){return _0x1b1d10;};return a199_0x4c12();}import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x2734df(0xf3),'ONEPAGE',a199_0x2734df(0x117)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');export const pageCreate={'service':a199_0x2734df(0x125),'command':a199_0x2734df(0x10d),'description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':a199_0x2734df(0x10c),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x2734df(0xf4),'message':a199_0x2734df(0xf7),'hint':a199_0x2734df(0x111)},{'name':a199_0x2734df(0xf6),'message':a199_0x2734df(0x105),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a199_0x2734df(0x109),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a199_0x2734df(0xfc),'type':a199_0x2734df(0xeb),'description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a199_0x2734df(0xfd),'type':a199_0x2734df(0x109),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x2734df(0x107),'type':a199_0x2734df(0x109),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x319a00){await readValidatedPageSource(_0x319a00);},async 'dryRun'(_0x3cfc9e){const _0xa10e90=a199_0x2734df,_0x369b0a=readInput(_0x3cfc9e,await readValidatedPageSource(_0x3cfc9e));return{'method':_0xa10e90(0x10e),'url':_0xa10e90(0xe9),'body':{'appCode':_0x369b0a['appCode'],'pageName':_0x369b0a[_0xa10e90(0x11b)],..._0x369b0a['parentMenuId']!=null?{'parentMenuId':_0x369b0a[_0xa10e90(0xf2)]}:{},'createMenu':_0x369b0a[_0xa10e90(0xff)],'codeContent':_0x369b0a[_0xa10e90(0xf1)]},'description':_0xa10e90(0x123)+JSON[_0xa10e90(0xed)](_0x369b0a[_0xa10e90(0x11b)])+_0xa10e90(0x104)};},async 'execute'(_0x299e05){const _0x488267=a199_0x2734df,_0x57f427=readInput(_0x299e05,await readValidatedPageSource(_0x299e05)),_0x1c54e7=await createCustomPage(_0x57f427);if(!Number[_0x488267(0x10b)](_0x1c54e7[_0x488267(0x124)])||_0x1c54e7[_0x488267(0x124)]<=0x0)throw CliErrors[_0x488267(0x119)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x5a9635=buildCustomPageDevelopmentUrl(_0x57f427['appCode'],_0x1c54e7[_0x488267(0x121)]),_0x425b4a=buildCustomPageEditUrl(_0x57f427[_0x488267(0x103)],_0x1c54e7[_0x488267(0x124)]);return{'ok':!![],'data':{'operation':_0x488267(0x122),'pageType':_0x488267(0x106),'pagePattern':readPagePattern(_0x299e05),'selector':{'appCode':_0x57f427['appCode'],'pageName':_0x57f427['pageName']},'before':null,'after':{'pageId':_0x1c54e7[_0x488267(0x124)],'pageName':_0x1c54e7[_0x488267(0x11b)],'appCode':_0x1c54e7[_0x488267(0x103)],'version':_0x1c54e7[_0x488267(0xea)],'menuId':_0x1c54e7[_0x488267(0x114)],'menuPath':_0x1c54e7[_0x488267(0x121)],'files':_0x1c54e7[_0x488267(0xf1)]??Object[_0x488267(0xf9)](_0x57f427['files'])},'dryRun':![],'request':_0x57f427,..._0x5a9635?{'pageUrl':_0x5a9635}:{},..._0x425b4a?{'editPageUrl':_0x425b4a}:{},'warnings':_0x5a9635?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x488267(0x118)+_0x1c54e7['pageId']+'.'};}};function readPagePattern(_0x5b9eab){const _0x80cd5=a199_0x2734df,_0x6212ea=_0x5b9eab[_0x80cd5(0xfe)](_0x80cd5(0xfd))[_0x80cd5(0xec)](),_0x3d1c00=_0x5b9eab[_0x80cd5(0xfe)]('page-dir')[_0x80cd5(0xec)]();if(_0x6212ea&&_0x3d1c00)throw CliErrors['validation']('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x3d1c00)return null;if(!_0x6212ea)throw CliErrors[_0x80cd5(0x115)](_0x80cd5(0xf0));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x6212ea))throw CliErrors[_0x80cd5(0x115)](_0x80cd5(0x120));return _0x6212ea;}function a199_0xacc1(_0x85438d,_0x490c8b){_0x85438d=_0x85438d-0xe4;const _0x4c123e=a199_0x4c12();let _0xacc169=_0x4c123e[_0x85438d];return _0xacc169;}async function readPageSource(_0x4d2858){const _0xbab1dc=a199_0x2734df,_0x4f258f=_0x4d2858[_0xbab1dc(0xfe)](_0xbab1dc(0x107))[_0xbab1dc(0xec)](),_0x2981a8=readPagePattern(_0x4d2858);if(_0x2981a8===null){const _0x393cf4=await readCustomPageDirectory(_0x4f258f);if(Object[_0xbab1dc(0xf9)](_0x393cf4)[_0xbab1dc(0x102)]===0x0)throw CliErrors[_0xbab1dc(0x115)](_0xbab1dc(0xef));return _0x393cf4;}let _0x55d867;try{_0x55d867=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x2981a8['toLowerCase']()+_0xbab1dc(0xe6)),_0xbab1dc(0x11a));}catch{throw CliErrors[_0xbab1dc(0x115)](_0xbab1dc(0x112)+_0x2981a8+'.');}let _0x55f828;try{_0x55f828=JSON[_0xbab1dc(0xee)](_0x55d867);}catch{throw CliErrors['validation'](_0xbab1dc(0x101)+_0x2981a8+'.');}if(!_0x55f828||typeof _0x55f828!=='object'||Array[_0xbab1dc(0xfb)](_0x55f828)||Object['values'](_0x55f828)[_0xbab1dc(0xfa)](_0x172a1c=>typeof _0x172a1c!==_0xbab1dc(0x109)))throw CliErrors[_0xbab1dc(0x115)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x2981a8+'.');return _0x55f828;}async function readValidatedPageSource(_0x6c8025){const _0x462113=await readPageSource(_0x6c8025);return await validateCustomPageContent(_0x462113),_0x462113;}function readInput(_0x1e5750,_0x4fd9fb){const _0x579bfb=a199_0x2734df,_0x5bd7cb=_0x1e5750[_0x579bfb(0xfe)](_0x579bfb(0xf8))[_0x579bfb(0xec)]()||_0x579bfb(0x10a)+Date[_0x579bfb(0x11f)]();if(_0x5bd7cb[_0x579bfb(0x102)]>0x64)throw CliErrors['validation'](_0x579bfb(0x113));const _0x5a8c27=_0x1e5750[_0x579bfb(0xe7)](_0x579bfb(0xfc),NaN),_0x1c75db=!Number[_0x579bfb(0xe5)](_0x5a8c27);if(_0x1c75db&&(!Number[_0x579bfb(0x10b)](_0x5a8c27)||_0x5a8c27<=0x0))throw CliErrors[_0x579bfb(0x115)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x1e5750['appCode'],'pageName':_0x5bd7cb,..._0x1c75db?{'parentMenuId':_0x5a8c27}:{},'createMenu':!![],'files':_0x4fd9fb};}
@@ -1 +1 @@
1
- const a200_0x52929c=a200_0x4c01;(function(_0x5586b3,_0x30c9b5){const _0x194703=a200_0x4c01,_0x407f9d=_0x5586b3();while(!![]){try{const _0x3378cb=parseInt(_0x194703(0x7c))/0x1*(parseInt(_0x194703(0x8a))/0x2)+-parseInt(_0x194703(0x82))/0x3*(-parseInt(_0x194703(0x7f))/0x4)+parseInt(_0x194703(0x79))/0x5+parseInt(_0x194703(0x83))/0x6+-parseInt(_0x194703(0x70))/0x7+-parseInt(_0x194703(0x7b))/0x8*(parseInt(_0x194703(0x71))/0x9)+-parseInt(_0x194703(0x6e))/0xa;if(_0x3378cb===_0x30c9b5)break;else _0x407f9d['push'](_0x407f9d['shift']());}catch(_0x5b4720){_0x407f9d['push'](_0x407f9d['shift']());}}}(a200_0x29b3,0x588f2));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x4c01(_0x5b1ba8,_0x46f592){_0x5b1ba8=_0x5b1ba8-0x6e;const _0x29b353=a200_0x29b3();let _0x4c0155=_0x29b353[_0x5b1ba8];return _0x4c0155;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x52929c(0x7a),'command':'custom-detail','description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0x52929c(0x72),'defaultOutputFormat':a200_0x52929c(0x86),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x52929c(0x77),'required':!![],'description':a200_0x52929c(0x89)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xa9e0ac){readCustomPageId(_0xa9e0ac);},async 'execute'(_0x4a92a7){const _0x345c5e=a200_0x52929c,_0x5b8b9b=readCustomPageId(_0x4a92a7),_0x146a87=await getCustomPageSource(_0x5b8b9b),{bundle:_0x45504d,createTime:_0x5b5b66,updateTime:_0x574657,..._0x291936}=_0x146a87,_0xf77974=_0x146a87['id']??_0x5b8b9b,_0x2930db=_0x146a87[_0x345c5e(0x76)]?.[_0x345c5e(0x73)]()||_0x4a92a7['str'](_0x345c5e(0x87))[_0x345c5e(0x73)](),_0x4f0aba=buildCustomPageRuntimeUrl(_0x2930db,_0x146a87[_0x345c5e(0x6f)]),_0x5c10bc=buildCustomPageEditUrl(_0x2930db,_0xf77974),_0x274aaa=await resolveCustomPageDevelopmentUrl(_0x2930db,_0xf77974,_0x4a92a7[_0x345c5e(0x7e)]);return{'ok':!![],'data':{..._0x291936,..._0x4f0aba?{'runtimePageUrl':_0x4f0aba}:{},..._0x274aaa?{'pageUrl':_0x274aaa}:{},..._0x5c10bc?{'editPageUrl':_0x5c10bc}:{},..._0x5b5b66==null?{}:{'createTime':formatTime(_0x5b5b66)},..._0x574657==null?{}:{'updateTime':formatTime(_0x574657)}},'message':_0x345c5e(0x81)+_0x5b8b9b+'.'};}};function formatTime(_0x58385c){const _0x1cb6e6=a200_0x52929c,_0xca9eed=new Date(_0x58385c);if(Number[_0x1cb6e6(0x80)](_0xca9eed[_0x1cb6e6(0x85)]()))return String(_0x58385c);const _0x388ebe=[_0xca9eed['getFullYear'](),String(_0xca9eed[_0x1cb6e6(0x84)]()+0x1)['padStart'](0x2,'0'),String(_0xca9eed[_0x1cb6e6(0x7d)]())[_0x1cb6e6(0x75)](0x2,'0')][_0x1cb6e6(0x88)]('-'),_0xdd4af8=[String(_0xca9eed[_0x1cb6e6(0x78)]())[_0x1cb6e6(0x75)](0x2,'0'),String(_0xca9eed[_0x1cb6e6(0x74)]())[_0x1cb6e6(0x75)](0x2,'0'),String(_0xca9eed['getSeconds']())[_0x1cb6e6(0x75)](0x2,'0')][_0x1cb6e6(0x88)](':');return _0x388ebe+'\x20'+_0xdd4af8;}function a200_0x29b3(){const _0x4ce8be=['getHours','967815wZsIFj','page','2168KTlIJl','5XFJIqd','getDate','cookie','2600028XCQcBh','isNaN','Retrieved\x20Custom\x20Page\x20','3lkLgWe','1394820sSMvPl','getMonth','getTime','compress','appcode','join','Custom\x20Page\x20ID','79642SzXriq','2332780DDtFxd','pageCode','2741186zNZJjK','9549XxMDBV','read','trim','getMinutes','padStart','appCode','number'];a200_0x29b3=function(){return _0x4ce8be;};return a200_0x29b3();}
1
+ function a200_0x3b57(_0x51cf5f,_0x353187){_0x51cf5f=_0x51cf5f-0xed;const _0xc779ad=a200_0xc779();let _0x3b5706=_0xc779ad[_0x51cf5f];return _0x3b5706;}const a200_0x38b4dd=a200_0x3b57;(function(_0x201b6f,_0xc11895){const _0x3774c7=a200_0x3b57,_0x25cf8e=_0x201b6f();while(!![]){try{const _0x5c9be4=-parseInt(_0x3774c7(0x101))/0x1+parseInt(_0x3774c7(0x100))/0x2+parseInt(_0x3774c7(0xfd))/0x3*(-parseInt(_0x3774c7(0x108))/0x4)+-parseInt(_0x3774c7(0xf7))/0x5+-parseInt(_0x3774c7(0xff))/0x6*(parseInt(_0x3774c7(0x107))/0x7)+parseInt(_0x3774c7(0x102))/0x8*(parseInt(_0x3774c7(0x106))/0x9)+parseInt(_0x3774c7(0xf5))/0xa;if(_0x5c9be4===_0xc11895)break;else _0x25cf8e['push'](_0x25cf8e['shift']());}catch(_0x52dcca){_0x25cf8e['push'](_0x25cf8e['shift']());}}}(a200_0xc779,0x5e797));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x38b4dd(0xf8),'command':a200_0x38b4dd(0x10a),'description':a200_0x38b4dd(0xef),'risk':a200_0x38b4dd(0x109),'defaultOutputFormat':a200_0x38b4dd(0xee),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x38b4dd(0xf0),'required':!![],'description':a200_0x38b4dd(0xed)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4cdf25){readCustomPageId(_0x4cdf25);},async 'execute'(_0x411d68){const _0x5b559d=a200_0x38b4dd,_0x5cb06a=readCustomPageId(_0x411d68),_0x4aa540=await getCustomPageSource(_0x5cb06a),{bundle:_0x25f842,createTime:_0x294b78,updateTime:_0x4721c9,..._0xe1ffb7}=_0x4aa540,_0x16d1de=_0x4aa540['id']??_0x5cb06a,_0x3687e9=_0x4aa540[_0x5b559d(0xfc)]?.[_0x5b559d(0x105)]()||_0x411d68['str']('appcode')[_0x5b559d(0x105)](),_0x4e5dfc=buildCustomPageRuntimeUrl(_0x3687e9,_0x4aa540[_0x5b559d(0xf1)]),_0x1504c8=buildCustomPageEditUrl(_0x3687e9,_0x16d1de),_0x8e3e3d=await resolveCustomPageDevelopmentUrl(_0x3687e9,_0x16d1de,_0x411d68[_0x5b559d(0x10b)]);return{'ok':!![],'data':{..._0xe1ffb7,..._0x4e5dfc?{'runtimePageUrl':_0x4e5dfc}:{},..._0x8e3e3d?{'pageUrl':_0x8e3e3d}:{},..._0x1504c8?{'editPageUrl':_0x1504c8}:{},..._0x294b78==null?{}:{'createTime':formatTime(_0x294b78)},..._0x4721c9==null?{}:{'updateTime':formatTime(_0x4721c9)}},'message':_0x5b559d(0xf6)+_0x5cb06a+'.'};}};function formatTime(_0x506b76){const _0x259066=a200_0x38b4dd,_0x282a02=new Date(_0x506b76);if(Number[_0x259066(0xf4)](_0x282a02[_0x259066(0xfa)]()))return String(_0x506b76);const _0x3ef685=[_0x282a02[_0x259066(0xfb)](),String(_0x282a02[_0x259066(0xf2)]()+0x1)[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0xf3)]())[_0x259066(0xfe)](0x2,'0')][_0x259066(0x103)]('-'),_0x98d58c=[String(_0x282a02['getHours']())[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0xf9)]())[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0x104)]())[_0x259066(0xfe)](0x2,'0')][_0x259066(0x103)](':');return _0x3ef685+'\x20'+_0x98d58c;}function a200_0xc779(){const _0x5292dc=['page','getMinutes','getTime','getFullYear','appCode','223569Bbzqqs','padStart','84amYzvB','838050kRZIhs','401835jIUCFg','56HNslxR','join','getSeconds','trim','149706WSzBPT','116893nFppPQ','8sXJQTP','read','custom-detail','cookie','Custom\x20Page\x20ID','compress','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','number','pageCode','getMonth','getDate','isNaN','11992310sRnQJA','Retrieved\x20Custom\x20Page\x20','2815300OeIjlW'];a200_0xc779=function(){return _0x5292dc;};return a200_0xc779();}
@@ -1 +1 @@
1
- const a201_0x572aac=a201_0x3c5f;(function(_0x65bc3c,_0x26bf0b){const _0x54a23a=a201_0x3c5f,_0x2e099f=_0x65bc3c();while(!![]){try{const _0x457985=-parseInt(_0x54a23a(0x179))/0x1*(-parseInt(_0x54a23a(0x17b))/0x2)+-parseInt(_0x54a23a(0x188))/0x3*(-parseInt(_0x54a23a(0x17d))/0x4)+-parseInt(_0x54a23a(0x177))/0x5+-parseInt(_0x54a23a(0x185))/0x6+parseInt(_0x54a23a(0x182))/0x7+parseInt(_0x54a23a(0x178))/0x8*(parseInt(_0x54a23a(0x180))/0x9)+parseInt(_0x54a23a(0x17f))/0xa*(-parseInt(_0x54a23a(0x17c))/0xb);if(_0x457985===_0x26bf0b)break;else _0x2e099f['push'](_0x2e099f['shift']());}catch(_0x54c139){_0x2e099f['push'](_0x2e099f['shift']());}}}(a201_0x3992,0xd02c7));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a201_0x3992(){const _0x12d9dd=['4YFYejl','Found\x20','6314440NsoRnj','25191ULmBOl','label','561092SksHjQ','path','type','3356478KFVQXW','appCode','custom-list','2674440NoRUdF','react','page','flatMap','No\x20Custom\x20Pages\x20found.','cookie','compress','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','6341975jvGGjw','1944jEcFSy','5666BShWfO','pageId','586iWBVqG','11AuqDDd'];a201_0x3992=function(){return _0x12d9dd;};return a201_0x3992();}function a201_0x3c5f(_0x3e3b2e,_0x1aff55){_0x3e3b2e=_0x3e3b2e-0x176;const _0x399252=a201_0x3992();let _0x3c5f67=_0x399252[_0x3e3b2e];return _0x3c5f67;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x572aac(0x18a),'command':a201_0x572aac(0x187),'description':a201_0x572aac(0x176),'risk':'read','defaultOutputFormat':a201_0x572aac(0x18e),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1071df){const _0x3da875=a201_0x572aac,_0x16061f=(await fetchMenuSnapshot(_0x1071df[_0x3da875(0x186)],_0x1071df[_0x3da875(0x18d)]))['menus'][_0x3da875(0x18b)](_0x830c14=>{const _0x70bb61=_0x3da875;if(_0x830c14[_0x70bb61(0x184)]!==_0x70bb61(0x189)||_0x830c14['pageId']==null)return[];const _0x2b9c6f=buildCustomPageDevelopmentUrl(_0x1071df[_0x70bb61(0x186)],_0x830c14[_0x70bb61(0x183)]),_0x5ec4c2=buildCustomPageRuntimeUrl(_0x1071df[_0x70bb61(0x186)],_0x830c14[_0x70bb61(0x183)]),_0x3a26fe=buildCustomPageEditUrl(_0x1071df[_0x70bb61(0x186)],_0x830c14['pageId']);return[{'pageId':_0x830c14[_0x70bb61(0x17a)],'label':_0x830c14[_0x70bb61(0x181)],'path':_0x830c14[_0x70bb61(0x183)],..._0x2b9c6f?{'pageUrl':_0x2b9c6f}:{},..._0x5ec4c2?{'runtimePageUrl':_0x5ec4c2}:{},..._0x3a26fe?{'editPageUrl':_0x3a26fe}:{}}];});return{'ok':!![],'data':{'pages':_0x16061f},'message':_0x16061f['length']===0x0?_0x3da875(0x18c):_0x3da875(0x17e)+_0x16061f['length']+'\x20Custom\x20Page(s).'};}};
1
+ const a201_0x5f0659=a201_0x1bf7;function a201_0x1bf7(_0x297160,_0x41f4b9){_0x297160=_0x297160-0xc7;const _0x5dee3f=a201_0x5dee();let _0x1bf774=_0x5dee3f[_0x297160];return _0x1bf774;}(function(_0x250c5a,_0x436961){const _0x1446d6=a201_0x1bf7,_0x5e4156=_0x250c5a();while(!![]){try{const _0x267940=-parseInt(_0x1446d6(0xc9))/0x1*(parseInt(_0x1446d6(0xcd))/0x2)+parseInt(_0x1446d6(0xce))/0x3+parseInt(_0x1446d6(0xcb))/0x4*(parseInt(_0x1446d6(0xd7))/0x5)+-parseInt(_0x1446d6(0xd6))/0x6+parseInt(_0x1446d6(0xca))/0x7*(-parseInt(_0x1446d6(0xda))/0x8)+-parseInt(_0x1446d6(0xc7))/0x9+parseInt(_0x1446d6(0xd5))/0xa;if(_0x267940===_0x436961)break;else _0x5e4156['push'](_0x5e4156['shift']());}catch(_0x1a9579){_0x5e4156['push'](_0x5e4156['shift']());}}}(a201_0x5dee,0x45442));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x5dee(){const _0x3323f5=['appCode','cookie','custom-list','page','pageId','menus','8744580GddQBm','963234rloBib','25kgRaSE','react','length','8SnQSXh','flatMap','compress','3471696vXGuOk','path','603idBaTk','1561357oAJaAO','217148SLQdtp','label','1664CZnfVi','1226553BNybbp'];a201_0x5dee=function(){return _0x3323f5;};return a201_0x5dee();}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x5f0659(0xd2),'command':a201_0x5f0659(0xd1),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':'read','defaultOutputFormat':a201_0x5f0659(0xdc),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4815c7){const _0x5abf6b=a201_0x5f0659,_0x3e107b=(await fetchMenuSnapshot(_0x4815c7[_0x5abf6b(0xcf)],_0x4815c7[_0x5abf6b(0xd0)]))[_0x5abf6b(0xd4)][_0x5abf6b(0xdb)](_0x273384=>{const _0x268f05=_0x5abf6b;if(_0x273384['type']!==_0x268f05(0xd8)||_0x273384['pageId']==null)return[];const _0x462dc8=buildCustomPageDevelopmentUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xc8)]),_0x3d85bb=buildCustomPageRuntimeUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xc8)]),_0x36c4d1=buildCustomPageEditUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xd3)]);return[{'pageId':_0x273384[_0x268f05(0xd3)],'label':_0x273384[_0x268f05(0xcc)],'path':_0x273384['path'],..._0x462dc8?{'pageUrl':_0x462dc8}:{},..._0x3d85bb?{'runtimePageUrl':_0x3d85bb}:{},..._0x36c4d1?{'editPageUrl':_0x36c4d1}:{}}];});return{'ok':!![],'data':{'pages':_0x3e107b},'message':_0x3e107b['length']===0x0?'No\x20Custom\x20Pages\x20found.':'Found\x20'+_0x3e107b[_0x5abf6b(0xd9)]+'\x20Custom\x20Page(s).'};}};
@@ -1 +1 @@
1
- const a202_0x4dca26=a202_0x5c4f;(function(_0x4356bd,_0x3a5411){const _0xe4800=a202_0x5c4f,_0xa767eb=_0x4356bd();while(!![]){try{const _0x39158d=-parseInt(_0xe4800(0x89))/0x1+parseInt(_0xe4800(0x7d))/0x2+-parseInt(_0xe4800(0x83))/0x3+parseInt(_0xe4800(0x70))/0x4+-parseInt(_0xe4800(0x88))/0x5*(-parseInt(_0xe4800(0x6d))/0x6)+-parseInt(_0xe4800(0x80))/0x7+parseInt(_0xe4800(0x7a))/0x8*(parseInt(_0xe4800(0x8a))/0x9);if(_0x39158d===_0x3a5411)break;else _0xa767eb['push'](_0xa767eb['shift']());}catch(_0x58e77c){_0xa767eb['push'](_0xa767eb['shift']());}}}(a202_0x14cc,0xc919b));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0x5c4f(_0x3599da,_0x41d2c3){_0x3599da=_0x3599da-0x6b;const _0x14ccb8=a202_0x14cc();let _0x5c4f4c=_0x14ccb8[_0x3599da];return _0x5c4f4c;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':'page','command':a202_0x4dca26(0x85),'description':a202_0x4dca26(0x81),'risk':'write','defaultOutputFormat':a202_0x4dca26(0x75),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x4dca26(0x82),'required':!![],'description':a202_0x4dca26(0x7c)},{'name':a202_0x4dca26(0x74),'type':a202_0x4dca26(0x87),'description':a202_0x4dca26(0x84)}],async 'validate'(_0x42b8a4){readCustomPageId(_0x42b8a4);},async 'dryRun'(_0x5a40b6){const _0x4c4da8=a202_0x4dca26,_0x29af21=readInput(_0x5a40b6);return{'method':'POST','url':'/smartapi/webcode/file/publish','body':{'id':_0x29af21[_0x4c4da8(0x77)],..._0x29af21[_0x4c4da8(0x74)]?{'remark':_0x29af21[_0x4c4da8(0x74)]}:{}},'description':_0x4c4da8(0x6c)+_0x29af21[_0x4c4da8(0x77)]+'.'};},async 'execute'(_0x40ea05){const _0xb0b353=a202_0x4dca26,_0x43723c=readInput(_0x40ea05);await getCustomPageSource(_0x43723c['pageId']);const _0x479696=await publishCustomPage(_0x43723c);if(!Number[_0xb0b353(0x8b)](_0x479696)||_0x479696!==_0x43723c['pageId'])throw CliErrors[_0xb0b353(0x7b)](_0xb0b353(0x6f));const _0x1746ad=await getCustomPageSource(_0x43723c[_0xb0b353(0x77)]);if(_0x1746ad['status']!==_0xb0b353(0x73))throw CliErrors[_0xb0b353(0x7b)](_0xb0b353(0x6b)+(_0x1746ad[_0xb0b353(0x7e)]??'unknown')+'.');const _0x5c1ae5=_0x1746ad[_0xb0b353(0x86)]?.[_0xb0b353(0x71)](),_0x2ac679=buildCustomPageEditUrl(_0x5c1ae5,_0x43723c[_0xb0b353(0x77)]),_0x2adde3=await resolveCustomPageDevelopmentUrl(_0x5c1ae5,_0x43723c[_0xb0b353(0x77)],_0x40ea05['cookie']),_0x4d62d2=buildMutationData(_0x43723c,!![],_0x2adde3,_0x2ac679);_0x5c1ae5&&!_0x2adde3&&_0x4d62d2[_0xb0b353(0x79)][_0xb0b353(0x72)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x2d4067=buildCustomPageRuntimeUrl(_0x1746ad['appCode'],_0x1746ad[_0xb0b353(0x76)]);return _0x2d4067?_0x4d62d2[_0xb0b353(0x6e)]=_0x2d4067:_0x4d62d2['warnings']['push'](_0xb0b353(0x7f)),{'ok':!![],'data':_0x4d62d2,'message':'Published\x20Custom\x20Page\x20'+_0x43723c['pageId']+'.'};}};function a202_0x14cc(){const _0x5b9ea8=['runtimePageUrl','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','4807492lXsGLU','trim','push','FORMAL','remark','compress','pageCode','pageId','str','warnings','2169976UDHlNN','apiError','Custom\x20Page\x20ID','422252fjAFsm','status','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','6833652MhMNYb','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','number','3589428fJmYom','Optional\x20publish\x20remark','custom-publish','appCode','string','1682885iPiHIL','240052sudrJn','27keZUnQ','isInteger','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Would\x20publish\x20Custom\x20Page\x20','18vVUyJQ'];a202_0x14cc=function(){return _0x5b9ea8;};return a202_0x14cc();}function readInput(_0x5a1038){const _0x194e50=a202_0x4dca26,_0x476c74=readCustomPageId(_0x5a1038),_0x1f8675=_0x5a1038[_0x194e50(0x78)](_0x194e50(0x74))['trim']();return{'pageId':_0x476c74,..._0x1f8675?{'remark':_0x1f8675}:{}};}function buildMutationData(_0xfb03be,_0x4364ea=![],_0xc17f50,_0x204912){const _0x367c26=a202_0x4dca26;return{'operation':'page.custom-publish','selector':{'pageId':_0xfb03be['pageId']},'before':null,'after':{'pageId':_0xfb03be[_0x367c26(0x77)],'status':_0x367c26(0x73)},'dryRun':!_0x4364ea,'request':_0xfb03be,..._0xc17f50?{'pageUrl':_0xc17f50}:{},..._0x204912?{'editPageUrl':_0x204912}:{},'warnings':[]};}
1
+ function a202_0x3aa4(_0x478d80,_0x3f91e2){_0x478d80=_0x478d80-0xbc;const _0x44899e=a202_0x4489();let _0x3aa4df=_0x44899e[_0x478d80];return _0x3aa4df;}const a202_0x3a2510=a202_0x3aa4;(function(_0x35eb95,_0x1da13e){const _0x1851b8=a202_0x3aa4,_0x59c49e=_0x35eb95();while(!![]){try{const _0x4850aa=-parseInt(_0x1851b8(0xdd))/0x1*(-parseInt(_0x1851b8(0xda))/0x2)+parseInt(_0x1851b8(0xcd))/0x3*(-parseInt(_0x1851b8(0xc0))/0x4)+-parseInt(_0x1851b8(0xc7))/0x5*(-parseInt(_0x1851b8(0xe0))/0x6)+parseInt(_0x1851b8(0xd3))/0x7+parseInt(_0x1851b8(0xc4))/0x8*(parseInt(_0x1851b8(0xbf))/0x9)+-parseInt(_0x1851b8(0xc2))/0xa*(parseInt(_0x1851b8(0xd0))/0xb)+parseInt(_0x1851b8(0xc1))/0xc*(parseInt(_0x1851b8(0xcf))/0xd);if(_0x4850aa===_0x1da13e)break;else _0x59c49e['push'](_0x59c49e['shift']());}catch(_0x1ddc4b){_0x59c49e['push'](_0x59c49e['shift']());}}}(a202_0x4489,0x6841c));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0x4489(){const _0x53a84b=['page','pageId','page.custom-publish','push','33498jhrzqL','16vxTxDM','84852WAIcno','10pDFsNk','cookie','736NTwtCH','apiError','Custom\x20Page\x20ID','5QrSjCT','status','appCode','runtimePageUrl','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','POST','379632KHyvhR','number','481AXPKdZ','8553358poTVhj','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','trim','5881631CHrHlY','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','Would\x20publish\x20Custom\x20Page\x20','warnings','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','compress','FORMAL','6DuPrMA','custom-publish','str','40376dYyzys','/smartapi/webcode/file/publish','Published\x20Custom\x20Page\x20','872268HdCPyX','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','string','remark','isInteger'];a202_0x4489=function(){return _0x53a84b;};return a202_0x4489();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x3a2510(0xe5),'command':a202_0x3a2510(0xdb),'description':a202_0x3a2510(0xd4),'risk':'write','defaultOutputFormat':a202_0x3a2510(0xd8),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x3a2510(0xce),'required':!![],'description':a202_0x3a2510(0xc6)},{'name':a202_0x3a2510(0xe3),'type':a202_0x3a2510(0xe2),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x23e450){readCustomPageId(_0x23e450);},async 'dryRun'(_0x59b4cf){const _0x221cbb=a202_0x3a2510,_0xb68a3f=readInput(_0x59b4cf);return{'method':_0x221cbb(0xcc),'url':_0x221cbb(0xde),'body':{'id':_0xb68a3f['pageId'],..._0xb68a3f[_0x221cbb(0xe3)]?{'remark':_0xb68a3f[_0x221cbb(0xe3)]}:{}},'description':_0x221cbb(0xd5)+_0xb68a3f[_0x221cbb(0xbc)]+'.'};},async 'execute'(_0x475e99){const _0x19747a=a202_0x3a2510,_0x4f26ab=readInput(_0x475e99);await getCustomPageSource(_0x4f26ab[_0x19747a(0xbc)]);const _0x2b43aa=await publishCustomPage(_0x4f26ab);if(!Number[_0x19747a(0xe4)](_0x2b43aa)||_0x2b43aa!==_0x4f26ab[_0x19747a(0xbc)])throw CliErrors[_0x19747a(0xc5)](_0x19747a(0xd1));const _0x8cbe1a=await getCustomPageSource(_0x4f26ab[_0x19747a(0xbc)]);if(_0x8cbe1a[_0x19747a(0xc8)]!==_0x19747a(0xd9))throw CliErrors[_0x19747a(0xc5)](_0x19747a(0xd7)+(_0x8cbe1a[_0x19747a(0xc8)]??'unknown')+'.');const _0x24aa2a=_0x8cbe1a[_0x19747a(0xc9)]?.[_0x19747a(0xd2)](),_0x199df8=buildCustomPageEditUrl(_0x24aa2a,_0x4f26ab['pageId']),_0x15f2ea=await resolveCustomPageDevelopmentUrl(_0x24aa2a,_0x4f26ab[_0x19747a(0xbc)],_0x475e99[_0x19747a(0xc3)]),_0x1d0d90=buildMutationData(_0x4f26ab,!![],_0x15f2ea,_0x199df8);_0x24aa2a&&!_0x15f2ea&&_0x1d0d90[_0x19747a(0xd6)][_0x19747a(0xbe)](_0x19747a(0xcb));const _0x14bf99=buildCustomPageRuntimeUrl(_0x8cbe1a['appCode'],_0x8cbe1a['pageCode']);return _0x14bf99?_0x1d0d90[_0x19747a(0xca)]=_0x14bf99:_0x1d0d90['warnings'][_0x19747a(0xbe)](_0x19747a(0xe1)),{'ok':!![],'data':_0x1d0d90,'message':_0x19747a(0xdf)+_0x4f26ab[_0x19747a(0xbc)]+'.'};}};function readInput(_0x4e8c40){const _0x2c7eb8=a202_0x3a2510,_0x25cf25=readCustomPageId(_0x4e8c40),_0x264a8c=_0x4e8c40[_0x2c7eb8(0xdc)](_0x2c7eb8(0xe3))['trim']();return{'pageId':_0x25cf25,..._0x264a8c?{'remark':_0x264a8c}:{}};}function buildMutationData(_0x22da6b,_0x5ea7e2=![],_0x53bb7d,_0x5aca82){const _0x3b4a37=a202_0x3a2510;return{'operation':_0x3b4a37(0xbd),'selector':{'pageId':_0x22da6b[_0x3b4a37(0xbc)]},'before':null,'after':{'pageId':_0x22da6b[_0x3b4a37(0xbc)],'status':_0x3b4a37(0xd9)},'dryRun':!_0x5ea7e2,'request':_0x22da6b,..._0x53bb7d?{'pageUrl':_0x53bb7d}:{},..._0x5aca82?{'editPageUrl':_0x5aca82}:{},'warnings':[]};}
@@ -1 +1 @@
1
- function a203_0x3821(_0x1b2261,_0x15030c){_0x1b2261=_0x1b2261-0x195;const _0x17e600=a203_0x17e6();let _0x382102=_0x17e600[_0x1b2261];return _0x382102;}const a203_0x3b9810=a203_0x3821;(function(_0x35bd86,_0x5d89e8){const _0x5878fd=a203_0x3821,_0x84c293=_0x35bd86();while(!![]){try{const _0x4d1de4=parseInt(_0x5878fd(0x1a8))/0x1*(parseInt(_0x5878fd(0x196))/0x2)+parseInt(_0x5878fd(0x1a4))/0x3+-parseInt(_0x5878fd(0x19e))/0x4+-parseInt(_0x5878fd(0x1a7))/0x5*(-parseInt(_0x5878fd(0x198))/0x6)+-parseInt(_0x5878fd(0x195))/0x7+-parseInt(_0x5878fd(0x1aa))/0x8+-parseInt(_0x5878fd(0x1a6))/0x9;if(_0x4d1de4===_0x5d89e8)break;else _0x84c293['push'](_0x84c293['shift']());}catch(_0x3cf3c8){_0x84c293['push'](_0x84c293['shift']());}}}(a203_0x17e6,0xaaeac));function a203_0x17e6(){const _0x45f624=['11pQQofp','path','2824600VvDDoQ','validation','/ide/','type','3654756muJmEX','201466PmZUJS','num','15654birKaQ','/pages/','map','join','isInteger','react','138560EmEnvy','file','length','find','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','Invalid\x20Custom\x20Page\x20content:\x20','2674215IUmxDW','menus','9658143NEtWia','1310ZNoHkp'];a203_0x17e6=function(){return _0x45f624;};return a203_0x17e6();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x3b9810(0x1a2)};function trimOptional(_0x15f0c0){return _0x15f0c0?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x1abddd,_0x57f072){const _0x101a59=trimOptional(_0x1abddd),_0x1c251a=trimOptional(_0x57f072);if(!_0x101a59||!_0x1c251a)return undefined;return getPublishedAppDomain(_0x101a59)+'/'+encodeURIComponent(_0x1c251a);}export function buildCustomPageDevelopmentUrl(_0x497c42,_0x14d551){const _0x52f82c=a203_0x3b9810,_0x463ffd=trimOptional(_0x497c42),_0x4d36f5=trimOptional(_0x14d551);if(!_0x463ffd||!_0x4d36f5)return undefined;return getAppBaseUrl(_0x463ffd)+_0x52f82c(0x199)+encodeURIComponent(_0x4d36f5);}export async function resolveCustomPageDevelopmentUrl(_0x463aca,_0x35fcfa,_0x2f2145){const _0x5ee93e=a203_0x3b9810,_0x161ad8=trimOptional(_0x463aca);if(!_0x161ad8)return undefined;try{const _0x520684=(await fetchMenuSnapshot(_0x161ad8,_0x2f2145))[_0x5ee93e(0x1a5)][_0x5ee93e(0x1a1)](_0x45f358=>_0x45f358[_0x5ee93e(0x1ad)]===_0x5ee93e(0x19d)&&_0x45f358['pageId']===_0x35fcfa);return buildCustomPageDevelopmentUrl(_0x161ad8,_0x520684?.[_0x5ee93e(0x1a9)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x432ed0,_0x1b7ebc){const _0x128ed1=a203_0x3b9810,_0x5abb8c=trimOptional(_0x432ed0);if(!_0x5abb8c)return;const _0x2b8dc8=trimOptional(String(_0x1b7ebc??''));if(!_0x2b8dc8)return;return getAppBaseUrl(_0x5abb8c)+_0x128ed1(0x1ac)+encodeURIComponent(_0x2b8dc8);}export async function validateCustomPageContent(_0x11f8f4){const _0x2eb97f=a203_0x3b9810,_0x15ecc1=await validateCustomPageSourceFiles(_0x11f8f4);if(_0x15ecc1[_0x2eb97f(0x1a0)]>0x0)throw CliErrors[_0x2eb97f(0x1ab)](_0x2eb97f(0x1a3)+_0x15ecc1[_0x2eb97f(0x19a)](_0x3b82f4=>_0x3b82f4[_0x2eb97f(0x19f)]+':\x20'+_0x3b82f4['message'])[_0x2eb97f(0x19b)](';\x20'));}export function readCustomPageId(_0x5725f1){const _0x28d56c=a203_0x3b9810,_0x99df3=_0x5725f1[_0x28d56c(0x197)]('id');if(!Number[_0x28d56c(0x19c)](_0x99df3)||_0x99df3<=0x0)throw CliErrors['validation']('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x99df3;}
1
+ const a203_0x41ae30=a203_0x4c28;(function(_0x30fcc9,_0x1aba05){const _0x194879=a203_0x4c28,_0x4e34f1=_0x30fcc9();while(!![]){try{const _0x5c7310=-parseInt(_0x194879(0x140))/0x1+-parseInt(_0x194879(0x14d))/0x2+parseInt(_0x194879(0x146))/0x3+parseInt(_0x194879(0x13a))/0x4*(-parseInt(_0x194879(0x141))/0x5)+-parseInt(_0x194879(0x13b))/0x6+-parseInt(_0x194879(0x13d))/0x7+parseInt(_0x194879(0x148))/0x8;if(_0x5c7310===_0x1aba05)break;else _0x4e34f1['push'](_0x4e34f1['shift']());}catch(_0x322a83){_0x4e34f1['push'](_0x4e34f1['shift']());}}}(a203_0xf4fe,0x84f9f));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x41ae30(0x149)};function trimOptional(_0x49aeeb){const _0x9e1fbd=a203_0x41ae30;return _0x49aeeb?.[_0x9e1fbd(0x14e)]()||undefined;}function a203_0xf4fe(){const _0xac252d=['pageId','validation','/pages/','4XOhRcT','1708428SebxHm','type','708624ObnUaB','--id\x20must\x20be\x20a\x20positive\x20integer.','react','527231tDjvoz','1998620qDvjXy','find','menus','/ide/','path','3130905fEkJPI','num','9481480GPPOFr','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','map','Invalid\x20Custom\x20Page\x20content:\x20','isInteger','742448lXACLp','trim','file'];a203_0xf4fe=function(){return _0xac252d;};return a203_0xf4fe();}export function buildCustomPageRuntimeUrl(_0x53d8a2,_0x49f777){const _0x54cc60=trimOptional(_0x53d8a2),_0x2d713c=trimOptional(_0x49f777);if(!_0x54cc60||!_0x2d713c)return undefined;return getPublishedAppDomain(_0x54cc60)+'/'+encodeURIComponent(_0x2d713c);}export function buildCustomPageDevelopmentUrl(_0x1dd2da,_0x20718d){const _0x46068b=a203_0x41ae30,_0xe82854=trimOptional(_0x1dd2da),_0x174551=trimOptional(_0x20718d);if(!_0xe82854||!_0x174551)return undefined;return getAppBaseUrl(_0xe82854)+_0x46068b(0x152)+encodeURIComponent(_0x174551);}function a203_0x4c28(_0x384164,_0x4820cb){_0x384164=_0x384164-0x13a;const _0xf4fe1c=a203_0xf4fe();let _0x4c2878=_0xf4fe1c[_0x384164];return _0x4c2878;}export async function resolveCustomPageDevelopmentUrl(_0x5252ce,_0x55f237,_0x6ae2ed){const _0x45ca07=a203_0x41ae30,_0x46491d=trimOptional(_0x5252ce);if(!_0x46491d)return undefined;try{const _0x48033d=(await fetchMenuSnapshot(_0x46491d,_0x6ae2ed))[_0x45ca07(0x143)][_0x45ca07(0x142)](_0x24eae7=>_0x24eae7[_0x45ca07(0x13c)]===_0x45ca07(0x13f)&&_0x24eae7[_0x45ca07(0x150)]===_0x55f237);return buildCustomPageDevelopmentUrl(_0x46491d,_0x48033d?.[_0x45ca07(0x145)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x5ec083,_0x18d22c){const _0x5ce0fc=a203_0x41ae30,_0x1048b9=trimOptional(_0x5ec083);if(!_0x1048b9)return;const _0x437bc6=trimOptional(String(_0x18d22c??''));if(!_0x437bc6)return;return getAppBaseUrl(_0x1048b9)+_0x5ce0fc(0x144)+encodeURIComponent(_0x437bc6);}export async function validateCustomPageContent(_0x1648da){const _0x2c6f7c=a203_0x41ae30,_0x244362=await validateCustomPageSourceFiles(_0x1648da);if(_0x244362['length']>0x0)throw CliErrors[_0x2c6f7c(0x151)](_0x2c6f7c(0x14b)+_0x244362[_0x2c6f7c(0x14a)](_0x1e417d=>_0x1e417d[_0x2c6f7c(0x14f)]+':\x20'+_0x1e417d['message'])['join'](';\x20'));}export function readCustomPageId(_0x571738){const _0x1381f4=a203_0x41ae30,_0x33f5e4=_0x571738[_0x1381f4(0x147)]('id');if(!Number[_0x1381f4(0x14c)](_0x33f5e4)||_0x33f5e4<=0x0)throw CliErrors['validation'](_0x1381f4(0x13e));return _0x33f5e4;}
@@ -1 +1 @@
1
- function a204_0x4293(_0x175964,_0x4d648c){_0x175964=_0x175964-0x1e8;const _0x22b130=a204_0x22b1();let _0x4293dc=_0x22b130[_0x175964];return _0x4293dc;}const a204_0x59534f=a204_0x4293;(function(_0x23b4be,_0x509027){const _0x1f6929=a204_0x4293,_0x4d3ea3=_0x23b4be();while(!![]){try{const _0x22e8bd=parseInt(_0x1f6929(0x1f3))/0x1+parseInt(_0x1f6929(0x1f0))/0x2*(parseInt(_0x1f6929(0x1f5))/0x3)+parseInt(_0x1f6929(0x1fd))/0x4+-parseInt(_0x1f6929(0x1ff))/0x5+-parseInt(_0x1f6929(0x1e9))/0x6*(parseInt(_0x1f6929(0x201))/0x7)+parseInt(_0x1f6929(0x1ea))/0x8*(-parseInt(_0x1f6929(0x202))/0x9)+parseInt(_0x1f6929(0x1fe))/0xa*(parseInt(_0x1f6929(0x1ee))/0xb);if(_0x22e8bd===_0x509027)break;else _0x4d3ea3['push'](_0x4d3ea3['shift']());}catch(_0x1896bf){_0x4d3ea3['push'](_0x4d3ea3['shift']());}}}(a204_0x22b1,0xf0847));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x59534f(0x1e8),'.jsx':a204_0x59534f(0x1e8),'.ts':a204_0x59534f(0x1f8),'.tsx':a204_0x59534f(0x1f8)},CUSTOM_PAGE_EXTENSIONS=[a204_0x59534f(0x1f6),a204_0x59534f(0x1f1)];function a204_0x22b1(){const _0x589638=['all','entries','find','23551WUVvOb','some','62RlHGCb','.tsx','page\x20files','1830738EzjeZW','filter','158577BCGjUh','.jsx','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','typescript','endsWith','message','trim','toLowerCase','4977412SyCdZU','2730vXBSDw','8506230AOlqzc','map','6701800vXgcDr','702FZkAUu','babel','12iBvMTJ','71488TtNKbh'];a204_0x22b1=function(){return _0x589638;};return a204_0x22b1();}export async function validateCustomPageSourceFiles(_0x32d7f9){const _0x22ed0c=a204_0x59534f,_0x149346=Object[_0x22ed0c(0x1ec)](_0x32d7f9)[_0x22ed0c(0x1f4)](([_0x279681])=>getParser(_0x279681));if(!_0x149346[_0x22ed0c(0x1ef)](([_0x54a7d3])=>isReactSourceFile(_0x54a7d3)))return[{'file':_0x22ed0c(0x1f2),'message':_0x22ed0c(0x1f7)}];const _0x5d0c3b=await Promise[_0x22ed0c(0x1eb)](_0x149346[_0x22ed0c(0x200)](async([_0xde304a,_0x39f442])=>{const _0x2b1db3=_0x22ed0c;try{return await format(_0x39f442,{'parser':getParser(_0xde304a)}),undefined;}catch(_0x257dfb){return{'file':_0xde304a,'message':_0x257dfb instanceof Error?_0x257dfb[_0x2b1db3(0x1fa)]:String(_0x257dfb)};}}));return _0x5d0c3b['filter'](_0x3ccbfd=>_0x3ccbfd!==undefined);}function getParser(_0x5c95e5){const _0x2884e7=a204_0x59534f,_0xc9d3ce=_0x5c95e5[_0x2884e7(0x1fb)]()[_0x2884e7(0x1fc)]();return Object[_0x2884e7(0x1ec)](SOURCE_PARSERS)[_0x2884e7(0x1ed)](([_0x5f5c49])=>_0xc9d3ce[_0x2884e7(0x1f9)](_0x5f5c49))?.[0x1];}function isReactSourceFile(_0x4fd779){const _0x5784ea=a204_0x59534f,_0x1e390e=_0x4fd779['trim']()[_0x5784ea(0x1fc)]();return CUSTOM_PAGE_EXTENSIONS[_0x5784ea(0x1ef)](_0x1764a4=>_0x1e390e[_0x5784ea(0x1f9)](_0x1764a4));}
1
+ const a204_0x2bca10=a204_0x11c0;function a204_0x11c0(_0x451913,_0x586196){_0x451913=_0x451913-0xe9;const _0x309477=a204_0x3094();let _0x11c0c5=_0x309477[_0x451913];return _0x11c0c5;}function a204_0x3094(){const _0x324305=['all','.jsx','toLowerCase','trim','page\x20files','9086392RSJWAn','40CsCHkH','8qoyqYA','14416038EOoYiy','map','57038750neWDtF','message','some','typescript','entries','endsWith','1085070yCEkLK','2178486oMebkM','188920ZdUOIt','babel','213751XMeSAR','8ibJtNu','.tsx','filter'];a204_0x3094=function(){return _0x324305;};return a204_0x3094();}(function(_0x180e76,_0x1fcb4d){const _0x20040d=a204_0x11c0,_0x1bf3fb=_0x180e76();while(!![]){try{const _0x4900b3=parseInt(_0x20040d(0xeb))/0x1*(-parseInt(_0x20040d(0xf6))/0x2)+-parseInt(_0x20040d(0xff))/0x3+-parseInt(_0x20040d(0xe9))/0x4*(parseInt(_0x20040d(0xf5))/0x5)+-parseInt(_0x20040d(0x100))/0x6+-parseInt(_0x20040d(0xf4))/0x7*(parseInt(_0x20040d(0xec))/0x8)+-parseInt(_0x20040d(0xf7))/0x9+parseInt(_0x20040d(0xf9))/0xa;if(_0x4900b3===_0x1fcb4d)break;else _0x1bf3fb['push'](_0x1bf3fb['shift']());}catch(_0x4439fa){_0x1bf3fb['push'](_0x1bf3fb['shift']());}}}(a204_0x3094,0xcea56));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a204_0x2bca10(0xea),'.ts':a204_0x2bca10(0xfc),'.tsx':a204_0x2bca10(0xfc)},CUSTOM_PAGE_EXTENSIONS=[a204_0x2bca10(0xf0),a204_0x2bca10(0xed)];export async function validateCustomPageSourceFiles(_0x5d3801){const _0x447629=a204_0x2bca10,_0x5b153b=Object['entries'](_0x5d3801)[_0x447629(0xee)](([_0x3ed1b3])=>getParser(_0x3ed1b3));if(!_0x5b153b[_0x447629(0xfb)](([_0x54eb8a])=>isReactSourceFile(_0x54eb8a)))return[{'file':_0x447629(0xf3),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x598f1c=await Promise[_0x447629(0xef)](_0x5b153b[_0x447629(0xf8)](async([_0x1e94c0,_0x13cf1e])=>{const _0xfbb00b=_0x447629;try{return await format(_0x13cf1e,{'parser':getParser(_0x1e94c0)}),undefined;}catch(_0x431342){return{'file':_0x1e94c0,'message':_0x431342 instanceof Error?_0x431342[_0xfbb00b(0xfa)]:String(_0x431342)};}}));return _0x598f1c['filter'](_0x43ba4a=>_0x43ba4a!==undefined);}function getParser(_0x3f902c){const _0x50387c=a204_0x2bca10,_0xdb83a9=_0x3f902c[_0x50387c(0xf2)]()['toLowerCase']();return Object[_0x50387c(0xfd)](SOURCE_PARSERS)['find'](([_0x2c0517])=>_0xdb83a9[_0x50387c(0xfe)](_0x2c0517))?.[0x1];}function isReactSourceFile(_0x1e7269){const _0x1206ba=a204_0x2bca10,_0x3df5c9=_0x1e7269['trim']()[_0x1206ba(0xf1)]();return CUSTOM_PAGE_EXTENSIONS[_0x1206ba(0xfb)](_0x1d1f0f=>_0x3df5c9[_0x1206ba(0xfe)](_0x1d1f0f));}
@@ -1 +1 @@
1
- const a205_0x2594d2=a205_0x2562;(function(_0x322594,_0x551834){const _0x15513c=a205_0x2562,_0x2e4ad5=_0x322594();while(!![]){try{const _0xdb701d=parseInt(_0x15513c(0x1f8))/0x1*(-parseInt(_0x15513c(0x1f5))/0x2)+parseInt(_0x15513c(0x1f7))/0x3+parseInt(_0x15513c(0x208))/0x4+parseInt(_0x15513c(0x1ed))/0x5*(parseInt(_0x15513c(0x1ef))/0x6)+parseInt(_0x15513c(0x1f2))/0x7+parseInt(_0x15513c(0x207))/0x8+-parseInt(_0x15513c(0x1e6))/0x9*(parseInt(_0x15513c(0x202))/0xa);if(_0xdb701d===_0x551834)break;else _0x2e4ad5['push'](_0x2e4ad5['shift']());}catch(_0x53432d){_0x2e4ad5['push'](_0x2e4ad5['shift']());}}}(a205_0x4384,0x9ba74));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x2562(_0x3960de,_0x1ce486){_0x3960de=_0x3960de-0x1e6;const _0x43847a=a205_0x4384();let _0x2562e5=_0x43847a[_0x3960de];return _0x2562e5;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0x2594d2(0x204),'command':'custom-update','description':a205_0x2594d2(0x1fe),'risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x2594d2(0x1f0),'message':a205_0x2594d2(0x1fc),'hint':a205_0x2594d2(0x1fa)}],'flags':[{'name':'id','type':a205_0x2594d2(0x200),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a205_0x2594d2(0x1eb),'type':a205_0x2594d2(0x1ee),'required':!![],'description':a205_0x2594d2(0x1f6)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x48d28a){readCustomPageId(_0x48d28a),await readValidatedPageContent(_0x48d28a);},async 'dryRun'(_0x4e4299){const _0x3a20a3=a205_0x2594d2,_0x517c37=await readInput(_0x4e4299);return{'method':_0x3a20a3(0x1ff),'url':_0x3a20a3(0x203),'body':{'id':_0x517c37[_0x3a20a3(0x1f3)],'codeContent':_0x517c37[_0x3a20a3(0x1fd)]},'description':_0x3a20a3(0x1f9)+_0x517c37[_0x3a20a3(0x1f3)]+'.'};},async 'execute'(_0x1f4a61){const _0x2b64d3=a205_0x2594d2,_0x41888c=await readInput(_0x1f4a61),_0x24d1ba=await updateCustomPageContent({'pageId':_0x41888c[_0x2b64d3(0x1f3)],'pageContent':_0x41888c[_0x2b64d3(0x1fd)]});if(!Number['isInteger'](_0x24d1ba[_0x2b64d3(0x1f4)])||_0x24d1ba[_0x2b64d3(0x1f4)]<=0x0)throw CliErrors[_0x2b64d3(0x1e7)](_0x2b64d3(0x1e8));const _0x8e064b=buildCustomPageEditUrl(_0x41888c[_0x2b64d3(0x205)],_0x41888c[_0x2b64d3(0x1f3)]),_0x25a87f=await resolveCustomPageDevelopmentUrl(_0x41888c[_0x2b64d3(0x205)],_0x41888c[_0x2b64d3(0x1f3)],_0x1f4a61['cookie']);return{'ok':!![],'data':{'operation':_0x2b64d3(0x1e9),'selector':{'appCode':_0x41888c[_0x2b64d3(0x205)],'pageId':_0x41888c[_0x2b64d3(0x1f3)]},'before':null,'after':{'pageId':_0x24d1ba[_0x2b64d3(0x1f3)],'version':_0x24d1ba[_0x2b64d3(0x1f4)],'pageContent':_0x41888c[_0x2b64d3(0x1fd)]},'dryRun':![],'request':_0x41888c,..._0x25a87f?{'pageUrl':_0x25a87f}:{},..._0x8e064b?{'editPageUrl':_0x8e064b}:{},'warnings':_0x25a87f?[]:[_0x2b64d3(0x1ec)]},'message':_0x2b64d3(0x1fb)+_0x41888c[_0x2b64d3(0x1f3)]+'.'};}};async function readInput(_0x292815){const _0x25f6f9=a205_0x2594d2,_0x2bcbe8=readCustomPageId(_0x292815),_0x3e5099=_0x292815['str'](_0x25f6f9(0x206))['trim']()||(await getCustomPageSource(_0x2bcbe8))[_0x25f6f9(0x205)]?.[_0x25f6f9(0x1ea)]();if(!_0x3e5099)throw CliErrors[_0x25f6f9(0x201)](_0x25f6f9(0x1f1)+_0x2bcbe8+'.');return{'appCode':_0x3e5099,'pageId':_0x2bcbe8,'pageContent':await readValidatedPageContent(_0x292815)};}function a205_0x4384(){const _0x1d63a2=['5932856pEsOyl','5013584YEfLjj','25024185VounTW','apiError','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page.custom-update','trim','page-dir','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','10sjoEnm','string','3327864qHllKU','page-content','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','7828401oHsgbr','pageId','newVersion','6898JatNvN','Directory\x20containing\x20all\x20complete\x20page\x20files','835119cUJMxI','314loFpmL','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Updated\x20Custom\x20Page\x20','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','pageContent','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','POST','number','validation','10uvpDYT','/smartapi/webcode/page/update/content','page','appCode','appcode'];a205_0x4384=function(){return _0x1d63a2;};return a205_0x4384();}async function readValidatedPageContent(_0x5bc08f){const _0x433a0e=await readCustomPageDirectory(_0x5bc08f['str']('page-dir'));return await validateCustomPageContent(_0x433a0e),_0x433a0e;}
1
+ const a205_0xa85d97=a205_0x59c9;function a205_0x59c9(_0x4c176c,_0x104503){_0x4c176c=_0x4c176c-0x147;const _0x26c2b3=a205_0x26c2();let _0x59c9eb=_0x26c2b3[_0x4c176c];return _0x59c9eb;}(function(_0x414eeb,_0x26a21f){const _0x18d44d=a205_0x59c9,_0x5ba916=_0x414eeb();while(!![]){try{const _0x5d43f3=parseInt(_0x18d44d(0x14f))/0x1*(parseInt(_0x18d44d(0x163))/0x2)+-parseInt(_0x18d44d(0x14c))/0x3*(parseInt(_0x18d44d(0x166))/0x4)+-parseInt(_0x18d44d(0x153))/0x5+parseInt(_0x18d44d(0x157))/0x6+parseInt(_0x18d44d(0x151))/0x7*(-parseInt(_0x18d44d(0x14d))/0x8)+-parseInt(_0x18d44d(0x154))/0x9+parseInt(_0x18d44d(0x15f))/0xa;if(_0x5d43f3===_0x26a21f)break;else _0x5ba916['push'](_0x5ba916['shift']());}catch(_0x29517d){_0x5ba916['push'](_0x5ba916['shift']());}}}(a205_0x26c2,0x62618));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x26c2(){const _0x34af15=['compress','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','validation','apiError','page-dir','12159030zwPlFT','page.custom-update','Directory\x20containing\x20all\x20complete\x20page\x20files','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','82PxxDYp','page-content','Custom\x20Page\x20ID','81288fVderf','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','newVersion','pageId','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page','pageContent','appCode','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','6xxuuTd','24HdPgut','number','2833CWVzAs','write','49315kCZKbO','Updated\x20Custom\x20Page\x20','1550880gHNpaF','6431688olXZgv','cookie','str','944994IYpkOA','string','custom-update'];a205_0x26c2=function(){return _0x34af15;};return a205_0x26c2();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0xa85d97(0x148),'command':a205_0xa85d97(0x159),'description':a205_0xa85d97(0x14b),'risk':a205_0xa85d97(0x150),'defaultOutputFormat':a205_0xa85d97(0x15a),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0xa85d97(0x164),'message':a205_0xa85d97(0x15b),'hint':a205_0xa85d97(0x147)}],'flags':[{'name':'id','type':a205_0xa85d97(0x14e),'required':!![],'description':a205_0xa85d97(0x165)},{'name':a205_0xa85d97(0x15e),'type':a205_0xa85d97(0x158),'required':!![],'description':a205_0xa85d97(0x161)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf2b76a){readCustomPageId(_0xf2b76a),await readValidatedPageContent(_0xf2b76a);},async 'dryRun'(_0x143e74){const _0xc2dc14=a205_0xa85d97,_0x5e92b0=await readInput(_0x143e74);return{'method':'POST','url':'/smartapi/webcode/page/update/content','body':{'id':_0x5e92b0[_0xc2dc14(0x169)],'codeContent':_0x5e92b0[_0xc2dc14(0x149)]},'description':_0xc2dc14(0x167)+_0x5e92b0[_0xc2dc14(0x169)]+'.'};},async 'execute'(_0x334773){const _0x18be60=a205_0xa85d97,_0x18a218=await readInput(_0x334773),_0x1eb32a=await updateCustomPageContent({'pageId':_0x18a218['pageId'],'pageContent':_0x18a218[_0x18be60(0x149)]});if(!Number['isInteger'](_0x1eb32a[_0x18be60(0x168)])||_0x1eb32a[_0x18be60(0x168)]<=0x0)throw CliErrors[_0x18be60(0x15d)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x231001=buildCustomPageEditUrl(_0x18a218[_0x18be60(0x14a)],_0x18a218[_0x18be60(0x169)]),_0x5a56d5=await resolveCustomPageDevelopmentUrl(_0x18a218[_0x18be60(0x14a)],_0x18a218[_0x18be60(0x169)],_0x334773[_0x18be60(0x155)]);return{'ok':!![],'data':{'operation':_0x18be60(0x160),'selector':{'appCode':_0x18a218[_0x18be60(0x14a)],'pageId':_0x18a218['pageId']},'before':null,'after':{'pageId':_0x1eb32a[_0x18be60(0x169)],'version':_0x1eb32a[_0x18be60(0x168)],'pageContent':_0x18a218[_0x18be60(0x149)]},'dryRun':![],'request':_0x18a218,..._0x5a56d5?{'pageUrl':_0x5a56d5}:{},..._0x231001?{'editPageUrl':_0x231001}:{},'warnings':_0x5a56d5?[]:['Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x18be60(0x152)+_0x18a218[_0x18be60(0x169)]+'.'};}};async function readInput(_0x244fa0){const _0x25eb3f=a205_0xa85d97,_0x392566=readCustomPageId(_0x244fa0),_0x440a0b=_0x244fa0[_0x25eb3f(0x156)]('appcode')['trim']()||(await getCustomPageSource(_0x392566))[_0x25eb3f(0x14a)]?.['trim']();if(!_0x440a0b)throw CliErrors[_0x25eb3f(0x15c)](_0x25eb3f(0x162)+_0x392566+'.');return{'appCode':_0x440a0b,'pageId':_0x392566,'pageContent':await readValidatedPageContent(_0x244fa0)};}async function readValidatedPageContent(_0x2b0661){const _0x43ed32=a205_0xa85d97,_0x2256b2=await readCustomPageDirectory(_0x2b0661[_0x43ed32(0x156)](_0x43ed32(0x15e)));return await validateCustomPageContent(_0x2256b2),_0x2256b2;}
@@ -1 +1 @@
1
- const a206_0x29f951=a206_0x1537;(function(_0x103688,_0x5111cd){const _0x3c93e5=a206_0x1537,_0x29a230=_0x103688();while(!![]){try{const _0x48ab6d=-parseInt(_0x3c93e5(0x1a5))/0x1+-parseInt(_0x3c93e5(0x19f))/0x2+parseInt(_0x3c93e5(0x19a))/0x3*(-parseInt(_0x3c93e5(0x1a3))/0x4)+parseInt(_0x3c93e5(0x1a1))/0x5*(-parseInt(_0x3c93e5(0x197))/0x6)+parseInt(_0x3c93e5(0x198))/0x7*(-parseInt(_0x3c93e5(0x1a8))/0x8)+-parseInt(_0x3c93e5(0x1ab))/0x9+parseInt(_0x3c93e5(0x1ad))/0xa;if(_0x48ab6d===_0x5111cd)break;else _0x29a230['push'](_0x29a230['shift']());}catch(_0x38cbbc){_0x29a230['push'](_0x29a230['shift']());}}}(a206_0x267f,0xd2002));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a206_0x267f(){const _0x53a956=['compress','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','27440UljuUg','name','/standard-page-status?appCode=','7103160giVRth','status','43381520pptXRL','appCode','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','GET','page','59808mdbMhD','518ahwzXP','length','8628jwPCWs','read','related-pages-fallback','data-list-status','code','1238634NUQrIS','nextAction','85kdsGaz','relatedPages','1824oiKcdV','string','334701eiIiWK'];a206_0x267f=function(){return _0x53a956;};return a206_0x267f();}function a206_0x1537(_0x28741c,_0x2c5ef4){_0x28741c=_0x28741c-0x193;const _0x267fa6=a206_0x267f();let _0x1537f5=_0x267fa6[_0x28741c];return _0x1537f5;}export const pageDataListStatus={'service':a206_0x29f951(0x196),'command':a206_0x29f951(0x19d),'description':a206_0x29f951(0x1a7),'risk':a206_0x29f951(0x19b),'defaultOutputFormat':a206_0x29f951(0x1a6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a206_0x29f951(0x1a4),'description':a206_0x29f951(0x194)}],async 'validate'(_0x3415a5){validateDatasetSelector(_0x3415a5);},async 'dryRun'(_0x3d539c){const _0x3432ff=a206_0x29f951,_0x1f0d04=await loadDatasetDetailForPage(_0x3d539c);return{'method':_0x3432ff(0x195),'url':'/smartapi/lovrabet/dataset/'+_0x1f0d04[_0x3432ff(0x19e)]+_0x3432ff(0x1aa)+encodeURIComponent(_0x3d539c[_0x3432ff(0x193)]),'description':serializeDryRunDescription({'dataset':{'id':_0x1f0d04['id'],'code':_0x1f0d04[_0x3432ff(0x19e)],'name':_0x1f0d04[_0x3432ff(0x1a9)]},'action':'query-data-list-status'})};},async 'execute'(_0x5f3140){const _0x1c83fe=a206_0x29f951,_0x115cc1=await loadDatasetDetailForPage(_0x5f3140),_0x8a2ff9=await loadDataListPageStatusForGenerate(_0x5f3140,_0x115cc1[_0x1c83fe(0x19e)]),_0x15e43f=getUndeletedRelatedPages(_0x115cc1),_0x89ec96=assessDataListPageState(_0x115cc1[_0x1c83fe(0x19e)],_0x8a2ff9,{'fallbackUndeletedPages':_0x15e43f});return{'ok':!![],'data':{'datasetCode':_0x115cc1['code'],'precheckSource':_0x8a2ff9?.['source']??_0x1c83fe(0x19c),'status':_0x89ec96[_0x1c83fe(0x1ac)],'manualResolutionRequired':_0x89ec96['manualResolutionRequired'],'nextAction':_0x89ec96[_0x1c83fe(0x1a0)],'dataListPageStatus':_0x8a2ff9,'relatedPages':{'total':_0x115cc1[_0x1c83fe(0x1a2)][_0x1c83fe(0x199)],'undeletedCount':_0x15e43f[_0x1c83fe(0x199)]}}};}};
1
+ const a206_0x57d1ca=a206_0x4d97;(function(_0x3713cb,_0x324798){const _0xec9e71=a206_0x4d97,_0x4b17bf=_0x3713cb();while(!![]){try{const _0x554aad=-parseInt(_0xec9e71(0xdb))/0x1*(-parseInt(_0xec9e71(0xc5))/0x2)+-parseInt(_0xec9e71(0xc8))/0x3*(-parseInt(_0xec9e71(0xd2))/0x4)+parseInt(_0xec9e71(0xd8))/0x5+-parseInt(_0xec9e71(0xdc))/0x6+parseInt(_0xec9e71(0xcb))/0x7+-parseInt(_0xec9e71(0xca))/0x8+-parseInt(_0xec9e71(0xcc))/0x9;if(_0x554aad===_0x324798)break;else _0x4b17bf['push'](_0x4b17bf['shift']());}catch(_0xc8264b){_0x4b17bf['push'](_0x4b17bf['shift']());}}}(a206_0x2597,0xb3080));function a206_0x2597(){const _0x4fb7ee=['4324642ywDeYA','4079394ZdeYQX','nextAction','status','page','GET','data-list-status','320XtIOWK','manualResolutionRequired','read','length','/smartapi/lovrabet/dataset/','alias','4740610GCmxgf','/standard-page-status?appCode=','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','1265333wAHExM','5422968evBJpv','source','relatedPages','query-data-list-status','related-pages-fallback','2fAuOOR','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','12681YrOZxc','code','8632120gatOcF'];a206_0x2597=function(){return _0x4fb7ee;};return a206_0x2597();}function a206_0x4d97(_0x1b70bb,_0xde1720){_0x1b70bb=_0x1b70bb-0xc4;const _0x259746=a206_0x2597();let _0x4d973c=_0x259746[_0x1b70bb];return _0x4d973c;}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':a206_0x57d1ca(0xcf),'command':a206_0x57d1ca(0xd1),'description':a206_0x57d1ca(0xda),'risk':a206_0x57d1ca(0xd4),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x57d1ca(0xd7),'type':'string','description':a206_0x57d1ca(0xc6)}],async 'validate'(_0x59c9c6){validateDatasetSelector(_0x59c9c6);},async 'dryRun'(_0x19db95){const _0x3f549b=a206_0x57d1ca,_0x159fd1=await loadDatasetDetailForPage(_0x19db95);return{'method':_0x3f549b(0xd0),'url':_0x3f549b(0xd6)+_0x159fd1[_0x3f549b(0xc9)]+_0x3f549b(0xd9)+encodeURIComponent(_0x19db95['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x159fd1['id'],'code':_0x159fd1[_0x3f549b(0xc9)],'name':_0x159fd1[_0x3f549b(0xc7)]},'action':_0x3f549b(0xdf)})};},async 'execute'(_0x5a7226){const _0x500f8d=a206_0x57d1ca,_0x426d7a=await loadDatasetDetailForPage(_0x5a7226),_0xa35c1=await loadDataListPageStatusForGenerate(_0x5a7226,_0x426d7a[_0x500f8d(0xc9)]),_0x2191fd=getUndeletedRelatedPages(_0x426d7a),_0x1df420=assessDataListPageState(_0x426d7a[_0x500f8d(0xc9)],_0xa35c1,{'fallbackUndeletedPages':_0x2191fd});return{'ok':!![],'data':{'datasetCode':_0x426d7a['code'],'precheckSource':_0xa35c1?.[_0x500f8d(0xdd)]??_0x500f8d(0xc4),'status':_0x1df420[_0x500f8d(0xce)],'manualResolutionRequired':_0x1df420[_0x500f8d(0xd3)],'nextAction':_0x1df420[_0x500f8d(0xcd)],'dataListPageStatus':_0xa35c1,'relatedPages':{'total':_0x426d7a[_0x500f8d(0xde)][_0x500f8d(0xd5)],'undeletedCount':_0x2191fd[_0x500f8d(0xd5)]}}};}};
@@ -1 +1 @@
1
- const a207_0x2a31e1=a207_0x31e3;function a207_0x31e3(_0x12ef33,_0x34b864){_0x12ef33=_0x12ef33-0xb9;const _0x29c04c=a207_0x29c0();let _0x31e3e2=_0x29c04c[_0x12ef33];return _0x31e3e2;}(function(_0x44c12a,_0x271664){const _0x197af0=a207_0x31e3,_0x41a7cc=_0x44c12a();while(!![]){try{const _0x482bb5=-parseInt(_0x197af0(0xe3))/0x1+-parseInt(_0x197af0(0xe5))/0x2*(-parseInt(_0x197af0(0xcf))/0x3)+parseInt(_0x197af0(0xc9))/0x4*(parseInt(_0x197af0(0xd3))/0x5)+-parseInt(_0x197af0(0xe7))/0x6*(-parseInt(_0x197af0(0xd7))/0x7)+-parseInt(_0x197af0(0xde))/0x8+parseInt(_0x197af0(0xbc))/0x9*(-parseInt(_0x197af0(0xbb))/0xa)+parseInt(_0x197af0(0xd0))/0xb;if(_0x482bb5===_0x271664)break;else _0x41a7cc['push'](_0x41a7cc['shift']());}catch(_0x5bd622){_0x41a7cc['push'](_0x41a7cc['shift']());}}}(a207_0x29c0,0x1cde7));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':'page','command':a207_0x2a31e1(0xb9),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a207_0x2a31e1(0xc1),'defaultOutputFormat':a207_0x2a31e1(0xe0),'rejectedFlags':[{'name':a207_0x2a31e1(0xcb),'message':a207_0x2a31e1(0xbe),'hint':a207_0x2a31e1(0xd6)},{'name':'page-pattern','message':a207_0x2a31e1(0xce),'hint':a207_0x2a31e1(0xc5)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a207_0x2a31e1(0xda),'type':'boolean','description':a207_0x2a31e1(0xc8)}],async 'validate'(_0x4e92be){validateDatasetSelector(_0x4e92be);},async 'dryRun'(_0xfe081f){const _0x5efc44=a207_0x2a31e1,_0x52f17d=await prepare(_0xfe081f);return{'method':'POST','url':_0x5efc44(0xdf)+_0x52f17d[_0x5efc44(0xc2)][_0x5efc44(0xd2)]+_0x5efc44(0xd1),'body':{'appCode':_0xfe081f[_0x5efc44(0xe9)],'clientOperationId':_0x52f17d[_0x5efc44(0xe2)]},'description':serializeDryRunDescription({'dataset':{'id':_0x52f17d[_0x5efc44(0xc2)]['id'],'code':_0x52f17d['dataset'][_0x5efc44(0xd2)],'name':_0x52f17d[_0x5efc44(0xc2)][_0x5efc44(0xba)],'fieldCount':_0x52f17d['dataset'][_0x5efc44(0xcc)]},'precheckSource':_0x52f17d[_0x5efc44(0xea)]?.['source']??_0x5efc44(0xca),'action':_0x5efc44(0xb9),'clientOperationId':_0x52f17d['clientOperationId'],'plannedStatus':_0x52f17d[_0x5efc44(0xbf)][_0x5efc44(0xd8)],'reason':_0x52f17d[_0x5efc44(0xbf)]['message']})};},async 'execute'(_0x1cdef7){const _0x2d9123=a207_0x2a31e1;if(!_0x1cdef7[_0x2d9123(0xe6)](_0x2d9123(0xda))){const _0x5306ac=await pageGenerateStart[_0x2d9123(0xc4)](_0x1cdef7);return{'ok':!![],'message':_0x2d9123(0xe1),'data':_0x5306ac};}const _0xa7a9cb=await prepare(_0x1cdef7);if(!_0xa7a9cb[_0x2d9123(0xbf)][_0x2d9123(0xdd)])return{'ok':![],'message':_0xa7a9cb['precheck'][_0x2d9123(0xd4)],'data':{'datasetCode':_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],'pageType':'DATA_LIST','pagePattern':_0x2d9123(0xe4),'clientOperationId':_0xa7a9cb[_0x2d9123(0xe2)],'precheckSource':_0xa7a9cb['dataListPageStatus']?.['source']??_0x2d9123(0xca),'status':_0xa7a9cb[_0x2d9123(0xbf)][_0x2d9123(0xd8)],'manualResolutionRequired':_0xa7a9cb['precheck'][_0x2d9123(0xc6)],'nextAction':_0xa7a9cb[_0x2d9123(0xbf)][_0x2d9123(0xd9)],'query':{'command':buildDataListPageStatusQueryCommand(_0xa7a9cb['dataset'][_0x2d9123(0xd2)],_0x1cdef7[_0x2d9123(0xe9)])},'dataListPageStatus':_0xa7a9cb[_0x2d9123(0xea)]}};const _0x348138=await startGenerateDataListPages(_0x1cdef7[_0x2d9123(0xe9)],_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],{'clientOperationId':_0xa7a9cb[_0x2d9123(0xe2)]}),_0x37fbc2=_0x348138[_0x2d9123(0xd8)]==='SUCCESS'||_0x348138['status']===_0x2d9123(0xe8)?await loadDataListPageStatusForGenerate(_0x1cdef7,_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)]):null,_0x403fc8=assessGenerateOperationState(_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],_0x348138[_0x2d9123(0xd8)],_0x37fbc2);return{'ok':!![],'message':_0x348138[_0x2d9123(0xc3)]?_0x2d9123(0xdb):_0x2d9123(0xc0),'data':{'datasetCode':_0xa7a9cb[_0x2d9123(0xc2)]['code'],'appCode':_0x1cdef7[_0x2d9123(0xe9)],'pageType':_0x2d9123(0xd5),'pagePattern':_0x2d9123(0xe4),'taskId':_0x348138['taskId']??null,'operationId':_0x348138[_0x2d9123(0xdc)]??null,'clientOperationId':_0xa7a9cb['clientOperationId'],'jobStatus':_0x348138[_0x2d9123(0xd8)]??null,'progressRate':typeof _0x348138[_0x2d9123(0xbd)]==='number'?_0x348138['progressRate']:null,'currentStep':_0x348138[_0x2d9123(0xc7)]??null,'reused':_0x348138[_0x2d9123(0xc3)]===!![],'status':_0x403fc8[_0x2d9123(0xd8)],'manualResolutionRequired':_0x403fc8[_0x2d9123(0xc6)],'nextAction':_0x403fc8[_0x2d9123(0xd9)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],{'appCode':_0x1cdef7[_0x2d9123(0xe9)],'taskId':_0x348138[_0x2d9123(0xcd)],'operationId':_0x348138[_0x2d9123(0xdc)],'clientOperationId':_0xa7a9cb['clientOperationId']})},'dataListPageStatus':_0x37fbc2}};}};function a207_0x29c0(){const _0xe5b46f=['apply','Reusing\x20an\x20existing\x20generate\x20task','operationId','allowGenerate','581504JVUMML','/smartapi/lovrabet/dataset/','compress','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','clientOperationId','43843DqkpAM','CRUD_PAGE_SET','205486nYpVit','bool','6BZcmyp','PARTIAL_SUCCESS','appCode','dataListPageStatus','generate-start','name','20fLURnK','1022319SoDZer','progressRate','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','precheck','Submitted\x20a\x20generate\x20task','write','dataset','reused','dryRun','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','manualResolutionRequired','currentStep','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','12GJLNEQ','related-pages-fallback','page-type','fieldCount','taskId','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','3ZStEwG','1281269YuxxSk','/generate-standard-pages/start','code','72645mCFZWu','message','DATA_LIST','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','1394057lCYDih','status','nextAction'];a207_0x29c0=function(){return _0xe5b46f;};return a207_0x29c0();}async function prepare(_0xc1e372){const _0x1b0ee2=a207_0x2a31e1,_0x2a8e96=await loadDatasetDetailForPage(_0xc1e372),_0x27b3a2=await loadDataListPageStatusForGenerate(_0xc1e372,_0x2a8e96['code']),_0x280753=getUndeletedRelatedPages(_0x2a8e96);return{'dataset':_0x2a8e96,'dataListPageStatus':_0x27b3a2,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x2a8e96[_0x1b0ee2(0xd2)],_0x27b3a2,{'fallbackUndeletedPages':_0x280753})};}
1
+ function a207_0x3d80(_0x2ea8b0,_0xcaf35){_0x2ea8b0=_0x2ea8b0-0x148;const _0x24873b=a207_0x2487();let _0x3d8047=_0x24873b[_0x2ea8b0];return _0x3d8047;}const a207_0x5bc296=a207_0x3d80;function a207_0x2487(){const _0x211199=['dataset','source','write','clientOperationId','string','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','status','appCode','nextAction','apply','48154mZkyGx','CRUD_PAGE_SET','SUCCESS','code','taskId','manualResolutionRequired','2783120gdlOVr','153880jtNgCZ','1799zBlcOb','/generate-standard-pages/start','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','Submitted\x20a\x20generate\x20task','message','name','3148pneSSi','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','/smartapi/lovrabet/dataset/','related-pages-fallback','15ufouKZ','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','precheck','number','dataListPageStatus','DATA_LIST','allowGenerate','dryRun','fieldCount','progressRate','bool','4536801FXJUdU','operationId','Reusing\x20an\x20existing\x20generate\x20task','2457968UyABfh','POST','generate-start','currentStep','reused','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','6054kWnnPb','alias','55FmTcIe','1395mNTmRm','page-type'];a207_0x2487=function(){return _0x211199;};return a207_0x2487();}(function(_0x4b6667,_0xc4834){const _0x16301b=a207_0x3d80,_0x1da91b=_0x4b6667();while(!![]){try{const _0x2922d4=-parseInt(_0x16301b(0x16a))/0x1*(-parseInt(_0x16301b(0x158))/0x2)+parseInt(_0x16301b(0x14a))/0x3*(-parseInt(_0x16301b(0x166))/0x4)+parseInt(_0x16301b(0x15e))/0x5+parseInt(_0x16301b(0x17e))/0x6*(-parseInt(_0x16301b(0x160))/0x7)+-parseInt(_0x16301b(0x178))/0x8+parseInt(_0x16301b(0x175))/0x9+parseInt(_0x16301b(0x15f))/0xa*(-parseInt(_0x16301b(0x149))/0xb);if(_0x2922d4===_0xc4834)break;else _0x1da91b['push'](_0x1da91b['shift']());}catch(_0x21a5b9){_0x1da91b['push'](_0x1da91b['shift']());}}}(a207_0x2487,0x64afe));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':'page','command':a207_0x5bc296(0x17a),'description':a207_0x5bc296(0x16b),'risk':a207_0x5bc296(0x14e),'defaultOutputFormat':'compress','rejectedFlags':[{'name':a207_0x5bc296(0x14b),'message':a207_0x5bc296(0x151),'hint':a207_0x5bc296(0x153)},{'name':'page-pattern','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':a207_0x5bc296(0x167)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x5bc296(0x148),'type':a207_0x5bc296(0x150),'description':a207_0x5bc296(0x152)},{'name':a207_0x5bc296(0x157),'type':'boolean','description':a207_0x5bc296(0x162)}],async 'validate'(_0x282fb4){validateDatasetSelector(_0x282fb4);},async 'dryRun'(_0x3490a3){const _0x1e4928=a207_0x5bc296,_0x2b2e8f=await prepare(_0x3490a3);return{'method':_0x1e4928(0x179),'url':_0x1e4928(0x168)+_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x15b)]+_0x1e4928(0x161),'body':{'appCode':_0x3490a3[_0x1e4928(0x155)],'clientOperationId':_0x2b2e8f[_0x1e4928(0x14f)]},'description':serializeDryRunDescription({'dataset':{'id':_0x2b2e8f[_0x1e4928(0x14c)]['id'],'code':_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x15b)],'name':_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x165)],'fieldCount':_0x2b2e8f['dataset'][_0x1e4928(0x172)]},'precheckSource':_0x2b2e8f[_0x1e4928(0x16e)]?.[_0x1e4928(0x14d)]??_0x1e4928(0x169),'action':'generate-start','clientOperationId':_0x2b2e8f[_0x1e4928(0x14f)],'plannedStatus':_0x2b2e8f[_0x1e4928(0x16c)][_0x1e4928(0x154)],'reason':_0x2b2e8f[_0x1e4928(0x16c)]['message']})};},async 'execute'(_0x207da7){const _0x3a745b=a207_0x5bc296;if(!_0x207da7[_0x3a745b(0x174)]('apply')){const _0x5aedc0=await pageGenerateStart[_0x3a745b(0x171)](_0x207da7);return{'ok':!![],'message':_0x3a745b(0x17d),'data':_0x5aedc0};}const _0x178a17=await prepare(_0x207da7);if(!_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x170)])return{'ok':![],'message':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x164)],'data':{'datasetCode':_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],'pageType':'DATA_LIST','pagePattern':_0x3a745b(0x159),'clientOperationId':_0x178a17[_0x3a745b(0x14f)],'precheckSource':_0x178a17[_0x3a745b(0x16e)]?.[_0x3a745b(0x14d)]??_0x3a745b(0x169),'status':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x154)],'manualResolutionRequired':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x15d)],'nextAction':_0x178a17['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],_0x207da7['appCode'])},'dataListPageStatus':_0x178a17[_0x3a745b(0x16e)]}};const _0x473567=await startGenerateDataListPages(_0x207da7['appCode'],_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],{'clientOperationId':_0x178a17[_0x3a745b(0x14f)]}),_0x2b6931=_0x473567['status']===_0x3a745b(0x15a)||_0x473567[_0x3a745b(0x154)]==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x207da7,_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)]):null,_0x30b52a=assessGenerateOperationState(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],_0x473567[_0x3a745b(0x154)],_0x2b6931);return{'ok':!![],'message':_0x473567['reused']?_0x3a745b(0x177):_0x3a745b(0x163),'data':{'datasetCode':_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],'appCode':_0x207da7[_0x3a745b(0x155)],'pageType':_0x3a745b(0x16f),'pagePattern':'CRUD_PAGE_SET','taskId':_0x473567[_0x3a745b(0x15c)]??null,'operationId':_0x473567[_0x3a745b(0x176)]??null,'clientOperationId':_0x178a17[_0x3a745b(0x14f)],'jobStatus':_0x473567['status']??null,'progressRate':typeof _0x473567['progressRate']===_0x3a745b(0x16d)?_0x473567[_0x3a745b(0x173)]:null,'currentStep':_0x473567[_0x3a745b(0x17b)]??null,'reused':_0x473567[_0x3a745b(0x17c)]===!![],'status':_0x30b52a[_0x3a745b(0x154)],'manualResolutionRequired':_0x30b52a[_0x3a745b(0x15d)],'nextAction':_0x30b52a[_0x3a745b(0x156)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],{'appCode':_0x207da7[_0x3a745b(0x155)],'taskId':_0x473567['taskId'],'operationId':_0x473567[_0x3a745b(0x176)],'clientOperationId':_0x178a17[_0x3a745b(0x14f)]})},'dataListPageStatus':_0x2b6931}};}};async function prepare(_0x44ecdd){const _0x1e3d28=a207_0x5bc296,_0x50c429=await loadDatasetDetailForPage(_0x44ecdd),_0x4f9ef0=await loadDataListPageStatusForGenerate(_0x44ecdd,_0x50c429[_0x1e3d28(0x15b)]),_0x3b57c3=getUndeletedRelatedPages(_0x50c429);return{'dataset':_0x50c429,'dataListPageStatus':_0x4f9ef0,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x50c429[_0x1e3d28(0x15b)],_0x4f9ef0,{'fallbackUndeletedPages':_0x3b57c3})};}
@@ -1 +1 @@
1
- const a208_0x203408=a208_0x15cf;function a208_0x4985(){const _0x4dc808=['code','client-operation-id','task-id','page','errorMsg','2096166pyZKdq','appCode','taskId','GET','/generate-standard-pages/status?','11481930nZmpqv','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','/smartapi/lovrabet/dataset/','1358592sbNmLt','generate-status','operation-id','currentStep','toString','query-generate-operation-status','status','message','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','PARTIAL_SUCCESS','str','SUCCESS','143944TCdADh','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','3rlmSzS','string','name','2480492LadxmF','set','number','4598105mjcjNN','operationId','progressRate','alias','217qfUboJ','clientOperationId','751922cWEFNW','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'];a208_0x4985=function(){return _0x4dc808;};return a208_0x4985();}function a208_0x15cf(_0x4fa2bf,_0x1d8e2e){_0x4fa2bf=_0x4fa2bf-0x139;const _0x498589=a208_0x4985();let _0x15cf7d=_0x498589[_0x4fa2bf];return _0x15cf7d;}(function(_0x350d5b,_0x1697fc){const _0x36c2e6=a208_0x15cf,_0x369cb6=_0x350d5b();while(!![]){try{const _0x2fcaa9=parseInt(_0x36c2e6(0x15f))/0x1*(-parseInt(_0x36c2e6(0x142))/0x2)+-parseInt(_0x36c2e6(0x149))/0x3+parseInt(_0x36c2e6(0x139))/0x4+parseInt(_0x36c2e6(0x13c))/0x5+parseInt(_0x36c2e6(0x151))/0x6+parseInt(_0x36c2e6(0x140))/0x7*(-parseInt(_0x36c2e6(0x15d))/0x8)+parseInt(_0x36c2e6(0x14e))/0x9;if(_0x2fcaa9===_0x1697fc)break;else _0x369cb6['push'](_0x369cb6['shift']());}catch(_0x4c131e){_0x369cb6['push'](_0x369cb6['shift']());}}}(a208_0x4985,0xa0896));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x203408(0x147),'command':a208_0x203408(0x152),'description':a208_0x203408(0x159),'risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x203408(0x13f),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x203408(0x146),'type':a208_0x203408(0x160),'description':a208_0x203408(0x143)},{'name':a208_0x203408(0x153),'type':a208_0x203408(0x160),'description':a208_0x203408(0x14f)},{'name':'client-operation-id','type':a208_0x203408(0x160),'description':a208_0x203408(0x15e)}],async 'validate'(_0x3e462a){validateDatasetSelector(_0x3e462a),validateGenerateOperationSelector(_0x3e462a);},async 'dryRun'(_0x440f8f){const _0x5ea8ea=a208_0x203408,_0x2569ca=await loadDatasetDetailForPage(_0x440f8f),_0x376605=_0x440f8f[_0x5ea8ea(0x15b)]('task-id'),_0x1bf5bb=_0x440f8f[_0x5ea8ea(0x15b)](_0x5ea8ea(0x153)),_0x4626b7=_0x440f8f[_0x5ea8ea(0x15b)](_0x5ea8ea(0x145)),_0x46c7ba=new URLSearchParams({'appCode':_0x440f8f[_0x5ea8ea(0x14a)]});return _0x376605&&_0x46c7ba[_0x5ea8ea(0x13a)]('taskId',_0x376605),_0x1bf5bb&&_0x46c7ba['set'](_0x5ea8ea(0x13d),_0x1bf5bb),_0x4626b7&&_0x46c7ba['set'](_0x5ea8ea(0x141),_0x4626b7),{'method':_0x5ea8ea(0x14c),'url':_0x5ea8ea(0x150)+_0x2569ca[_0x5ea8ea(0x144)]+_0x5ea8ea(0x14d)+_0x46c7ba[_0x5ea8ea(0x155)](),'description':serializeDryRunDescription({'dataset':{'id':_0x2569ca['id'],'code':_0x2569ca[_0x5ea8ea(0x144)],'name':_0x2569ca[_0x5ea8ea(0x161)]},'action':_0x5ea8ea(0x156),'taskId':_0x376605||undefined,'operationId':_0x1bf5bb||undefined,'clientOperationId':_0x4626b7||undefined})};},async 'execute'(_0x43061b){const _0x4b2037=a208_0x203408,_0x1cb936=await loadDatasetDetailForPage(_0x43061b),_0x4a3749=_0x43061b[_0x4b2037(0x15b)](_0x4b2037(0x146)),_0x5b5884=_0x43061b['str'](_0x4b2037(0x153)),_0x1fab90=_0x43061b[_0x4b2037(0x15b)](_0x4b2037(0x145)),_0x235cfd=await getGenerateDataListPagesStatus(_0x43061b[_0x4b2037(0x14a)],_0x1cb936[_0x4b2037(0x144)],{'taskId':_0x4a3749||undefined,'operationId':_0x5b5884||undefined,'clientOperationId':_0x1fab90||undefined}),_0xe3ad9f=_0x235cfd['status']===_0x4b2037(0x15c)||_0x235cfd['status']===_0x4b2037(0x15a),_0x594981=_0xe3ad9f?await loadDataListPageStatusForGenerate(_0x43061b,_0x1cb936[_0x4b2037(0x144)]):null,_0x4288ff=assessGenerateOperationState(_0x1cb936[_0x4b2037(0x144)],_0x235cfd['status'],_0x594981),_0x2db609=_0x235cfd[_0x4b2037(0x14b)]??_0x4a3749??undefined,_0x4910c9=_0x235cfd[_0x4b2037(0x13d)]??_0x5b5884??undefined,_0x42e8c3=_0x235cfd['clientOperationId']??_0x1fab90??undefined;return{'ok':!![],'message':_0x4288ff[_0x4b2037(0x157)]==='operation_failed'?_0x235cfd[_0x4b2037(0x148)]||_0x4288ff[_0x4b2037(0x158)]:_0x4288ff[_0x4b2037(0x158)],'data':{'datasetCode':_0x1cb936['code'],'appCode':_0x43061b[_0x4b2037(0x14a)],'taskId':_0x2db609,'operationId':_0x4910c9,'clientOperationId':_0x42e8c3,'jobStatus':_0x235cfd[_0x4b2037(0x157)]??null,'progressRate':typeof _0x235cfd[_0x4b2037(0x13e)]===_0x4b2037(0x13b)?_0x235cfd[_0x4b2037(0x13e)]:null,'currentStep':_0x235cfd[_0x4b2037(0x154)]??null,'errorMsg':_0x235cfd[_0x4b2037(0x148)]??null,'status':_0x4288ff['status'],'manualResolutionRequired':_0x4288ff['manualResolutionRequired'],'nextAction':_0x4288ff['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1cb936[_0x4b2037(0x144)],{'appCode':_0x43061b[_0x4b2037(0x14a)],'taskId':_0x2db609,'operationId':_0x4910c9,'clientOperationId':_0x42e8c3})},'dataListPageStatus':_0x594981,'result':_0x235cfd['result']??null}};}};
1
+ const a208_0x527061=a208_0x276d;(function(_0x83071a,_0x2bfe0d){const _0x473280=a208_0x276d,_0x29da59=_0x83071a();while(!![]){try{const _0x5a9723=parseInt(_0x473280(0x67))/0x1*(-parseInt(_0x473280(0x69))/0x2)+-parseInt(_0x473280(0x74))/0x3+parseInt(_0x473280(0x64))/0x4+-parseInt(_0x473280(0x8a))/0x5+-parseInt(_0x473280(0x78))/0x6*(parseInt(_0x473280(0x8e))/0x7)+-parseInt(_0x473280(0x6d))/0x8*(parseInt(_0x473280(0x6b))/0x9)+-parseInt(_0x473280(0x72))/0xa*(-parseInt(_0x473280(0x7d))/0xb);if(_0x5a9723===_0x2bfe0d)break;else _0x29da59['push'](_0x29da59['shift']());}catch(_0x4e5f01){_0x29da59['push'](_0x29da59['shift']());}}}(a208_0x3e9e,0x27a5d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0x276d(_0x466283,_0x2f40b7){_0x466283=_0x466283-0x64;const _0x3e9eb2=a208_0x3e9e();let _0x276d07=_0x3e9eb2[_0x466283];return _0x276d07;}function a208_0x3e9e(){const _0x499827=['manualResolutionRequired','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','progressRate','1226050VWylNw','taskId','number','alias','77DEMqeu','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','1016532kzbSAV','str','/smartapi/lovrabet/dataset/','2pGymAv','name','294608OxGHOY','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','18ldGHIH','page','891736bcevNj','client-operation-id','compress','operation-id','GET','7069950zecUxt','operationId','52794TKxftx','/generate-standard-pages/status?','clientOperationId','status','10026TwEwrV','toString','string','task-id','operation_failed','11QVvGJu','generate-status','read','code','currentStep','errorMsg','query-generate-operation-status','set','message','appCode'];a208_0x3e9e=function(){return _0x499827;};return a208_0x3e9e();}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x527061(0x6c),'command':a208_0x527061(0x7e),'description':a208_0x527061(0x88),'risk':a208_0x527061(0x7f),'defaultOutputFormat':a208_0x527061(0x6f),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x527061(0x8d),'type':a208_0x527061(0x7a),'description':a208_0x527061(0x6a)},{'name':a208_0x527061(0x7b),'type':a208_0x527061(0x7a),'description':'Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x527061(0x70),'type':a208_0x527061(0x7a),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x527061(0x6e),'type':a208_0x527061(0x7a),'description':a208_0x527061(0x8f)}],async 'validate'(_0x2484e9){validateDatasetSelector(_0x2484e9),validateGenerateOperationSelector(_0x2484e9);},async 'dryRun'(_0x33773f){const _0x4253b4=a208_0x527061,_0x21ac94=await loadDatasetDetailForPage(_0x33773f),_0x104d74=_0x33773f[_0x4253b4(0x65)](_0x4253b4(0x7b)),_0x2e8ad7=_0x33773f[_0x4253b4(0x65)]('operation-id'),_0x337859=_0x33773f[_0x4253b4(0x65)](_0x4253b4(0x6e)),_0xa6f0=new URLSearchParams({'appCode':_0x33773f['appCode']});return _0x104d74&&_0xa6f0[_0x4253b4(0x84)](_0x4253b4(0x8b),_0x104d74),_0x2e8ad7&&_0xa6f0['set'](_0x4253b4(0x73),_0x2e8ad7),_0x337859&&_0xa6f0['set'](_0x4253b4(0x76),_0x337859),{'method':_0x4253b4(0x71),'url':_0x4253b4(0x66)+_0x21ac94[_0x4253b4(0x80)]+_0x4253b4(0x75)+_0xa6f0[_0x4253b4(0x79)](),'description':serializeDryRunDescription({'dataset':{'id':_0x21ac94['id'],'code':_0x21ac94[_0x4253b4(0x80)],'name':_0x21ac94[_0x4253b4(0x68)]},'action':_0x4253b4(0x83),'taskId':_0x104d74||undefined,'operationId':_0x2e8ad7||undefined,'clientOperationId':_0x337859||undefined})};},async 'execute'(_0x23432b){const _0x267842=a208_0x527061,_0x205364=await loadDatasetDetailForPage(_0x23432b),_0x49d252=_0x23432b[_0x267842(0x65)](_0x267842(0x7b)),_0x294c2d=_0x23432b['str'](_0x267842(0x70)),_0x26a67a=_0x23432b[_0x267842(0x65)]('client-operation-id'),_0xa9c918=await getGenerateDataListPagesStatus(_0x23432b[_0x267842(0x86)],_0x205364[_0x267842(0x80)],{'taskId':_0x49d252||undefined,'operationId':_0x294c2d||undefined,'clientOperationId':_0x26a67a||undefined}),_0x3872c6=_0xa9c918['status']==='SUCCESS'||_0xa9c918[_0x267842(0x77)]==='PARTIAL_SUCCESS',_0x323584=_0x3872c6?await loadDataListPageStatusForGenerate(_0x23432b,_0x205364[_0x267842(0x80)]):null,_0x301785=assessGenerateOperationState(_0x205364['code'],_0xa9c918[_0x267842(0x77)],_0x323584),_0x42bc20=_0xa9c918['taskId']??_0x49d252??undefined,_0x457d1b=_0xa9c918[_0x267842(0x73)]??_0x294c2d??undefined,_0xe8a409=_0xa9c918[_0x267842(0x76)]??_0x26a67a??undefined;return{'ok':!![],'message':_0x301785['status']===_0x267842(0x7c)?_0xa9c918[_0x267842(0x82)]||_0x301785[_0x267842(0x85)]:_0x301785[_0x267842(0x85)],'data':{'datasetCode':_0x205364[_0x267842(0x80)],'appCode':_0x23432b['appCode'],'taskId':_0x42bc20,'operationId':_0x457d1b,'clientOperationId':_0xe8a409,'jobStatus':_0xa9c918[_0x267842(0x77)]??null,'progressRate':typeof _0xa9c918[_0x267842(0x89)]===_0x267842(0x8c)?_0xa9c918[_0x267842(0x89)]:null,'currentStep':_0xa9c918[_0x267842(0x81)]??null,'errorMsg':_0xa9c918[_0x267842(0x82)]??null,'status':_0x301785['status'],'manualResolutionRequired':_0x301785[_0x267842(0x87)],'nextAction':_0x301785['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x205364[_0x267842(0x80)],{'appCode':_0x23432b['appCode'],'taskId':_0x42bc20,'operationId':_0x457d1b,'clientOperationId':_0xe8a409})},'dataListPageStatus':_0x323584,'result':_0xa9c918['result']??null}};}};
@@ -1 +1 @@
1
- (function(_0x34ffe9,_0x1938e0){const _0x536310=a209_0x3d3a,_0x37c46e=_0x34ffe9();while(!![]){try{const _0x3bcdca=-parseInt(_0x536310(0x1f5))/0x1*(-parseInt(_0x536310(0x1fd))/0x2)+parseInt(_0x536310(0x1f9))/0x3*(parseInt(_0x536310(0x1f7))/0x4)+parseInt(_0x536310(0x1fa))/0x5+parseInt(_0x536310(0x1fc))/0x6+parseInt(_0x536310(0x1f4))/0x7+parseInt(_0x536310(0x1f8))/0x8+-parseInt(_0x536310(0x1f6))/0x9*(parseInt(_0x536310(0x1fb))/0xa);if(_0x3bcdca===_0x1938e0)break;else _0x37c46e['push'](_0x37c46e['shift']());}catch(_0x8d3098){_0x37c46e['push'](_0x37c46e['shift']());}}}(a209_0x39e6,0x6cf21));import{pageGenerateStart}from'../../commands/page/generate-start.js';function a209_0x39e6(){const _0x104e9a=['5117070pwiGmm','1tZDEZq','38790gddIaZ','1024636xOMPHB','6359360zPiRwU','3wzJybM','837495eAMvoG','6130KQgkcy','3098166yscJEo','1244644SOsvmd'];a209_0x39e6=function(){return _0x104e9a;};return a209_0x39e6();}import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';function a209_0x3d3a(_0x262e50,_0x3a2545){_0x262e50=_0x262e50-0x1f4;const _0x39e69a=a209_0x39e6();let _0x3d3adc=_0x39e69a[_0x262e50];return _0x3d3adc;}import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
1
+ (function(_0x5de13e,_0x253914){const _0x42534d=a209_0x2154,_0x2b7cbe=_0x5de13e();while(!![]){try{const _0x2b49fe=parseInt(_0x42534d(0x143))/0x1+parseInt(_0x42534d(0x148))/0x2*(-parseInt(_0x42534d(0x149))/0x3)+parseInt(_0x42534d(0x144))/0x4+-parseInt(_0x42534d(0x142))/0x5*(-parseInt(_0x42534d(0x147))/0x6)+parseInt(_0x42534d(0x14a))/0x7+-parseInt(_0x42534d(0x145))/0x8*(-parseInt(_0x42534d(0x146))/0x9)+-parseInt(_0x42534d(0x14b))/0xa;if(_0x2b49fe===_0x253914)break;else _0x2b7cbe['push'](_0x2b7cbe['shift']());}catch(_0x1ef39f){_0x2b7cbe['push'](_0x2b7cbe['shift']());}}}(a209_0x2820,0xd216e));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';function a209_0x2154(_0x483f0e,_0x53b3b6){_0x483f0e=_0x483f0e-0x142;const _0x2820bb=a209_0x2820();let _0x215409=_0x2820bb[_0x483f0e];return _0x215409;}import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a209_0x2820(){const _0x3e5e08=['43385qANIRG','1419672xIGiuK','3230944bfZMiE','4695112pMwwuH','18sRyGiF','840TeoWzy','435588lmFxlw','9oyLKWp','7820848WOQHSG','42193220HIXlDj'];a209_0x2820=function(){return _0x3e5e08;};return a209_0x2820();}import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
@@ -1 +1 @@
1
- const a210_0x186cba=a210_0x2953;(function(_0x4411af,_0x1cfccd){const _0x2d0f24=a210_0x2953,_0x13b454=_0x4411af();while(!![]){try{const _0x42790e=-parseInt(_0x2d0f24(0x11a))/0x1*(parseInt(_0x2d0f24(0x12f))/0x2)+-parseInt(_0x2d0f24(0x114))/0x3+-parseInt(_0x2d0f24(0x12a))/0x4+-parseInt(_0x2d0f24(0x116))/0x5+parseInt(_0x2d0f24(0x10a))/0x6+parseInt(_0x2d0f24(0x117))/0x7+parseInt(_0x2d0f24(0x124))/0x8;if(_0x42790e===_0x1cfccd)break;else _0x13b454['push'](_0x13b454['shift']());}catch(_0x3da4c0){_0x13b454['push'](_0x13b454['shift']());}}}(a210_0x1a3b,0xe6a46));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';function a210_0x2953(_0x3a6b8e,_0x5b5472){_0x3a6b8e=_0x3a6b8e-0xf6;const _0x1a3bd8=a210_0x1a3b();let _0x29531e=_0x1a3bd8[_0x3a6b8e];return _0x29531e;}function a210_0x1a3b(){const _0x39fda0=['hash','4400324gwTXWZ','versionTag','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','pages','all','1124034NWpytr','name','type','datasetIds','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','would_pull','local\x20unsynced\x20changes','GET','utf8','alias','length','map','lastSync','single','items','datasetCode','batch','string','boolean','Pull\x20complete:\x20','filter','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','3758610jQfXKm','\x20pulled,\x20','str','reason','lockFilePath','deleted','localPath','appCode','page','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','907854WfgCMN','/smartapi/lovrabet/detail?pageId=','4112235HsqwcS','1718983PycYUd','validation','conflict','3yfeUKc','detail','code','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','status','pageId','compress','Pull\x20page\x20schema\x20to\x20local\x20files','version-tag','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','31871224EZynOA','toISOString','force','mode','read'];a210_0x1a3b=function(){return _0x39fda0;};return a210_0x1a3b();}import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a210_0x186cba(0x112),'command':'pull','description':a210_0x186cba(0x121),'risk':a210_0x186cba(0x128),'defaultOutputFormat':a210_0x186cba(0x120),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x186cba(0xfd),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'version-tag','type':a210_0x186cba(0x105),'description':a210_0x186cba(0x12c)},{'name':a210_0x186cba(0x126),'type':a210_0x186cba(0x106),'description':a210_0x186cba(0x113)}],async 'validate'(_0x54cbc8){validatePageTargetSelector(_0x54cbc8);},async 'dryRun'(_0x215dde){const _0x52487b=a210_0x186cba,_0x29e521=await buildPullPlan(_0x215dde);return{'method':_0x52487b(0xfb),'url':_0x29e521[_0x52487b(0x127)]===_0x52487b(0x101)?_0x52487b(0x115)+(_0x29e521[_0x52487b(0x102)][0x0]?.[_0x52487b(0x11b)][_0x52487b(0x11f)]??''):_0x52487b(0xf8),'body':{'appCode':_0x215dde[_0x52487b(0x111)],'mode':_0x29e521['mode'],'targetDatasetCode':_0x29e521[_0x52487b(0x103)]??null,'pages':_0x29e521[_0x52487b(0x102)][_0x52487b(0xff)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x29e521[_0x52487b(0x127)],'datasetCode':_0x29e521['datasetCode']??null,'totalCandidates':_0x29e521[_0x52487b(0x102)][_0x52487b(0xfe)],'totalWouldPull':_0x29e521['items'][_0x52487b(0x108)](_0xd14527=>_0xd14527[_0x52487b(0x11e)]==='would_pull')[_0x52487b(0xfe)],'totalConflicts':_0x29e521[_0x52487b(0x102)][_0x52487b(0x108)](_0x287d19=>_0x287d19[_0x52487b(0x11e)]===_0x52487b(0x119))['length']})};},async 'execute'(_0x69407d){const _0x2aaca1=a210_0x186cba,_0xc4e26d=loadPageProjectConfig(_0x69407d[_0x2aaca1(0x111)]),_0x29f7b3=await readPageLockFile(_0xc4e26d[_0x2aaca1(0x10e)]),{lockData:_0xb7d086,appLock:_0x142eeb}=ensurePageLockScope(_0x29f7b3??createEmptyPageLock(),_0x69407d[_0x2aaca1(0x111)]),_0x4560b2=await buildPullPlan(_0x69407d),_0x37d212=_0x69407d['bool']('force');if(_0x4560b2[_0x2aaca1(0x127)]===_0x2aaca1(0x101)&&_0x4560b2[_0x2aaca1(0x102)][0x0]?.[_0x2aaca1(0x11e)]===_0x2aaca1(0x119)&&!_0x37d212)throw CliErrors['validation'](_0x2aaca1(0x123)+_0x4560b2[_0x2aaca1(0x102)][0x0][_0x2aaca1(0x110)],_0x2aaca1(0x11d));const _0x2419bb=[],_0x33a251=[];for(const _0x374195 of _0x4560b2[_0x2aaca1(0x102)]){if(_0x374195[_0x2aaca1(0x11e)]===_0x2aaca1(0x119)&&!_0x37d212){_0x33a251['push']({'pageId':_0x374195['detail']['pageId'],'type':_0x374195[_0x2aaca1(0x11b)][_0x2aaca1(0xf6)],'title':_0x374195[_0x2aaca1(0x11b)]['name'],'localPath':_0x374195[_0x2aaca1(0x110)],'reason':_0x374195[_0x2aaca1(0x10d)]??_0x2aaca1(0xfa)});continue;}await ensureParentDirectory(_0x374195[_0x2aaca1(0x110)]);const _0x36705b=serializePageSchemaForFile(_0x374195['detail'][_0x2aaca1(0x11c)]);await writeFile(_0x374195[_0x2aaca1(0x110)],_0x36705b,_0x2aaca1(0xfc)),_0x142eeb[_0x2aaca1(0x12d)][String(_0x374195[_0x2aaca1(0x11b)]['pageId'])]=buildLockEntry(_0x374195['detail'],_0x36705b),_0x2419bb['push']({'pageId':_0x374195['detail'][_0x2aaca1(0x11f)],'type':_0x374195[_0x2aaca1(0x11b)]['type'],'title':_0x374195[_0x2aaca1(0x11b)]['name'],'localPath':_0x374195[_0x2aaca1(0x110)]});}return _0x142eeb[_0x2aaca1(0x100)]=new Date()[_0x2aaca1(0x125)](),await writePageLockFile(_0xc4e26d[_0x2aaca1(0x10e)],_0xb7d086),{'ok':!![],'message':_0x2aaca1(0x107)+_0x2419bb[_0x2aaca1(0xfe)]+_0x2aaca1(0x10b)+_0x33a251[_0x2aaca1(0xfe)]+'\x20skipped','data':{'appCode':_0x69407d['appCode'],'pulledPages':_0x2419bb,'skippedPages':_0x33a251,'totalPulled':_0x2419bb[_0x2aaca1(0xfe)],'totalSkipped':_0x33a251['length']}};}};async function buildPullPlan(_0x540c68){const _0x3eb80=a210_0x186cba,_0x430e70=loadPageProjectConfig(_0x540c68[_0x3eb80(0x111)]),_0x3f2197=await readPageLockFile(_0x430e70['lockFilePath']),{appLock:_0x1103e8}=ensurePageLockScope(_0x3f2197??createEmptyPageLock(),_0x540c68[_0x3eb80(0x111)]),_0x2832d6=getPageIdFlag(_0x540c68);if(_0x2832d6!==undefined){const _0x5a258f=await loadPageDetailForPage(_0x540c68,_0x2832d6);return{'mode':_0x3eb80(0x101),'items':[await inspectPullTarget(_0x430e70,_0x1103e8[_0x3eb80(0x12d)][String(_0x5a258f[_0x3eb80(0x11f)])],_0x5a258f)]};}const _0xa7b7a1=await loadDatasetDetailForPage(_0x540c68),_0x5504c8=_0xa7b7a1['relatedPages'][_0x3eb80(0x108)](_0x39e650=>!_0x39e650[_0x3eb80(0x10f)]);if(_0x5504c8[_0x3eb80(0xfe)]===0x0)throw CliErrors[_0x3eb80(0x118)]('Dataset\x20\x22'+_0xa7b7a1[_0x3eb80(0x11c)]+_0x3eb80(0x109));const _0x713b29=await Promise['all'](_0x5504c8[_0x3eb80(0xff)](_0x3670ad=>loadPageDetailForPage(_0x540c68,_0x3670ad['id']))),_0xccbff0=selectVersionTagGroup(_0x713b29,_0x351ca0=>_0x351ca0[_0x3eb80(0x12b)],_0x540c68[_0x3eb80(0x10c)](_0x3eb80(0x122)));return{'mode':_0x3eb80(0x104),'datasetCode':_0xa7b7a1[_0x3eb80(0x11c)],'items':await Promise[_0x3eb80(0x12e)](_0xccbff0[_0x3eb80(0x102)][_0x3eb80(0xff)](_0x2fc4c3=>inspectPullTarget(_0x430e70,_0x1103e8['pages'][String(_0x2fc4c3[_0x3eb80(0x11f)])],_0x2fc4c3)))};}async function inspectPullTarget(_0x54a937,_0x205e93,_0x102956){const _0x1e550e=a210_0x186cba,_0x1be550=resolvePageFilePath(_0x54a937,_0x102956[_0x1e550e(0x11f)],_0x102956[_0x1e550e(0xf6)]),_0x28174a=await fileExists(_0x1be550);if(!_0x28174a){const _0x174214=serializePageSchemaForFile(_0x102956['code']);return{'detail':_0x102956,'localPath':_0x1be550,'localHash':computePageContentHash(_0x174214),'status':_0x1e550e(0xf9)};}const _0x11ce26=await computePageFileHash(_0x1be550);if(!_0x205e93||_0x11ce26!==_0x205e93[_0x1e550e(0x129)])return{'detail':_0x102956,'localPath':_0x1be550,'localHash':_0x11ce26,'status':_0x1e550e(0x119),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x102956,'localPath':_0x1be550,'localHash':_0x11ce26,'status':_0x1e550e(0xf9)};}function buildLockEntry(_0x1155d7,_0x428b80){const _0x1baaa6=a210_0x186cba;return{'hash':computePageContentHash(_0x428b80),'pageId':_0x1155d7[_0x1baaa6(0x11f)],'pageVersion':_0x1155d7['pageVersion'],'type':_0x1155d7[_0x1baaa6(0xf6)],'title':_0x1155d7['name'],'datasetIds':_0x1155d7[_0x1baaa6(0xf7)],'versionTag':_0x1155d7['versionTag']};}function toPreviewItem(_0x4ed2d0){const _0x8fe12e=a210_0x186cba;return{'pageId':_0x4ed2d0['detail']['pageId'],'type':_0x4ed2d0[_0x8fe12e(0x11b)][_0x8fe12e(0xf6)],'title':_0x4ed2d0['detail'][_0x8fe12e(0x130)],'localPath':_0x4ed2d0[_0x8fe12e(0x110)],'status':_0x4ed2d0[_0x8fe12e(0x11e)],..._0x4ed2d0['reason']?{'reason':_0x4ed2d0[_0x8fe12e(0x10d)]}:{}};}
1
+ function a210_0x182a(_0x3db2a7,_0x5bedc6){_0x3db2a7=_0x3db2a7-0x1cb;const _0x4b60aa=a210_0x4b60();let _0x182a36=_0x4b60aa[_0x3db2a7];return _0x182a36;}const a210_0x28b6bd=a210_0x182a;(function(_0x22f86b,_0x5f3cc6){const _0x140edb=a210_0x182a,_0x22f8bd=_0x22f86b();while(!![]){try{const _0x58dd32=parseInt(_0x140edb(0x1f4))/0x1*(-parseInt(_0x140edb(0x1d4))/0x2)+parseInt(_0x140edb(0x1cd))/0x3+parseInt(_0x140edb(0x1df))/0x4+-parseInt(_0x140edb(0x1f9))/0x5+parseInt(_0x140edb(0x1f5))/0x6*(-parseInt(_0x140edb(0x1e6))/0x7)+-parseInt(_0x140edb(0x1ce))/0x8*(parseInt(_0x140edb(0x1dc))/0x9)+parseInt(_0x140edb(0x1ef))/0xa*(parseInt(_0x140edb(0x1fa))/0xb);if(_0x58dd32===_0x5f3cc6)break;else _0x22f8bd['push'](_0x22f8bd['shift']());}catch(_0x6355b8){_0x22f8bd['push'](_0x22f8bd['shift']());}}}(a210_0x4b60,0xa8258));import{writeFile}from'node:fs/promises';function a210_0x4b60(){const _0x85d08b=['datasetCode','1iKDXyu','15846vsfANz','name','version-tag','map','4660970YXUgel','25651054WiMsbO','pull','localPath','all','mode','utf8','conflict','deleted','lockFilePath','Pull\x20complete:\x20','would_pull','pages','filter','appCode','4107288tyQSMg','384VyLyem','/smartapi/lovrabet/detail?pageId=','items','push','compress','pageId','258742zSRzUQ','reason','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','\x20pulled,\x20','code','status','page','datasetIds','218799RmbJQO','string','relatedPages','1914436wrwMjp','hash','detail','versionTag','GET','length','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','3346nquRmc','number','alias','toISOString','type','validation','bool','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','single','10wvfpgw','pageVersion','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','Page\x20ID'];a210_0x4b60=function(){return _0x85d08b;};return a210_0x4b60();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a210_0x28b6bd(0x1da),'command':a210_0x28b6bd(0x1fb),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':'read','defaultOutputFormat':a210_0x28b6bd(0x1d2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x28b6bd(0x1e7),'description':a210_0x28b6bd(0x1f2)},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x28b6bd(0x1e8),'type':a210_0x28b6bd(0x1dd),'description':a210_0x28b6bd(0x1f1)},{'name':a210_0x28b6bd(0x1f7),'type':a210_0x28b6bd(0x1dd),'description':a210_0x28b6bd(0x1ed)},{'name':'force','type':'boolean','description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x518857){validatePageTargetSelector(_0x518857);},async 'dryRun'(_0x1ed2b0){const _0x1b927c=a210_0x28b6bd,_0x4bc641=await buildPullPlan(_0x1ed2b0);return{'method':_0x1b927c(0x1e3),'url':_0x4bc641['mode']===_0x1b927c(0x1ee)?_0x1b927c(0x1cf)+(_0x4bc641[_0x1b927c(0x1d0)][0x0]?.[_0x1b927c(0x1e1)][_0x1b927c(0x1d3)]??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0x1ed2b0[_0x1b927c(0x1cc)],'mode':_0x4bc641[_0x1b927c(0x1fe)],'targetDatasetCode':_0x4bc641[_0x1b927c(0x1f3)]??null,'pages':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1f8)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x4bc641[_0x1b927c(0x1fe)],'datasetCode':_0x4bc641[_0x1b927c(0x1f3)]??null,'totalCandidates':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1e4)],'totalWouldPull':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1cb)](_0x165628=>_0x165628[_0x1b927c(0x1d9)]===_0x1b927c(0x204))[_0x1b927c(0x1e4)],'totalConflicts':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1cb)](_0x1043da=>_0x1043da['status']===_0x1b927c(0x200))[_0x1b927c(0x1e4)]})};},async 'execute'(_0x509a01){const _0x2fe316=a210_0x28b6bd,_0x1ae625=loadPageProjectConfig(_0x509a01[_0x2fe316(0x1cc)]),_0x4d969e=await readPageLockFile(_0x1ae625[_0x2fe316(0x202)]),{lockData:_0x190633,appLock:_0x2fe5e3}=ensurePageLockScope(_0x4d969e??createEmptyPageLock(),_0x509a01[_0x2fe316(0x1cc)]),_0x414b7c=await buildPullPlan(_0x509a01),_0x7dde13=_0x509a01[_0x2fe316(0x1ec)]('force');if(_0x414b7c['mode']===_0x2fe316(0x1ee)&&_0x414b7c[_0x2fe316(0x1d0)][0x0]?.[_0x2fe316(0x1d9)]===_0x2fe316(0x200)&&!_0x7dde13)throw CliErrors[_0x2fe316(0x1eb)](_0x2fe316(0x1e5)+_0x414b7c[_0x2fe316(0x1d0)][0x0]['localPath'],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x50e20b=[],_0x1ef866=[];for(const _0x526cf3 of _0x414b7c[_0x2fe316(0x1d0)]){if(_0x526cf3[_0x2fe316(0x1d9)]===_0x2fe316(0x200)&&!_0x7dde13){_0x1ef866[_0x2fe316(0x1d1)]({'pageId':_0x526cf3[_0x2fe316(0x1e1)]['pageId'],'type':_0x526cf3['detail'][_0x2fe316(0x1ea)],'title':_0x526cf3['detail']['name'],'localPath':_0x526cf3[_0x2fe316(0x1fc)],'reason':_0x526cf3[_0x2fe316(0x1d5)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x526cf3['localPath']);const _0x5d59f7=serializePageSchemaForFile(_0x526cf3[_0x2fe316(0x1e1)][_0x2fe316(0x1d8)]);await writeFile(_0x526cf3['localPath'],_0x5d59f7,_0x2fe316(0x1ff)),_0x2fe5e3[_0x2fe316(0x205)][String(_0x526cf3[_0x2fe316(0x1e1)][_0x2fe316(0x1d3)])]=buildLockEntry(_0x526cf3[_0x2fe316(0x1e1)],_0x5d59f7),_0x50e20b['push']({'pageId':_0x526cf3[_0x2fe316(0x1e1)]['pageId'],'type':_0x526cf3['detail']['type'],'title':_0x526cf3['detail'][_0x2fe316(0x1f6)],'localPath':_0x526cf3[_0x2fe316(0x1fc)]});}return _0x2fe5e3['lastSync']=new Date()[_0x2fe316(0x1e9)](),await writePageLockFile(_0x1ae625[_0x2fe316(0x202)],_0x190633),{'ok':!![],'message':_0x2fe316(0x203)+_0x50e20b['length']+_0x2fe316(0x1d7)+_0x1ef866[_0x2fe316(0x1e4)]+'\x20skipped','data':{'appCode':_0x509a01[_0x2fe316(0x1cc)],'pulledPages':_0x50e20b,'skippedPages':_0x1ef866,'totalPulled':_0x50e20b['length'],'totalSkipped':_0x1ef866[_0x2fe316(0x1e4)]}};}};async function buildPullPlan(_0x2473dd){const _0xb918d2=a210_0x28b6bd,_0x434797=loadPageProjectConfig(_0x2473dd[_0xb918d2(0x1cc)]),_0x2e5657=await readPageLockFile(_0x434797[_0xb918d2(0x202)]),{appLock:_0x4bb310}=ensurePageLockScope(_0x2e5657??createEmptyPageLock(),_0x2473dd[_0xb918d2(0x1cc)]),_0x5a9466=getPageIdFlag(_0x2473dd);if(_0x5a9466!==undefined){const _0x49e978=await loadPageDetailForPage(_0x2473dd,_0x5a9466);return{'mode':'single','items':[await inspectPullTarget(_0x434797,_0x4bb310[_0xb918d2(0x205)][String(_0x49e978[_0xb918d2(0x1d3)])],_0x49e978)]};}const _0x5264f6=await loadDatasetDetailForPage(_0x2473dd),_0x10e070=_0x5264f6[_0xb918d2(0x1de)]['filter'](_0x129ef5=>!_0x129ef5[_0xb918d2(0x201)]);if(_0x10e070['length']===0x0)throw CliErrors['validation']('Dataset\x20\x22'+_0x5264f6[_0xb918d2(0x1d8)]+_0xb918d2(0x1d6));const _0x42fd67=await Promise[_0xb918d2(0x1fd)](_0x10e070[_0xb918d2(0x1f8)](_0x5daa4d=>loadPageDetailForPage(_0x2473dd,_0x5daa4d['id']))),_0x5d6c48=selectVersionTagGroup(_0x42fd67,_0x1b87d9=>_0x1b87d9['versionTag'],_0x2473dd['str'](_0xb918d2(0x1f7)));return{'mode':'batch','datasetCode':_0x5264f6['code'],'items':await Promise['all'](_0x5d6c48[_0xb918d2(0x1d0)][_0xb918d2(0x1f8)](_0x15f9ac=>inspectPullTarget(_0x434797,_0x4bb310[_0xb918d2(0x205)][String(_0x15f9ac[_0xb918d2(0x1d3)])],_0x15f9ac)))};}async function inspectPullTarget(_0x1ecb75,_0x191765,_0x59acca){const _0x1b79a1=a210_0x28b6bd,_0xb87a55=resolvePageFilePath(_0x1ecb75,_0x59acca[_0x1b79a1(0x1d3)],_0x59acca['type']),_0x5eacb0=await fileExists(_0xb87a55);if(!_0x5eacb0){const _0x36de92=serializePageSchemaForFile(_0x59acca[_0x1b79a1(0x1d8)]);return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':computePageContentHash(_0x36de92),'status':_0x1b79a1(0x204)};}const _0x524793=await computePageFileHash(_0xb87a55);if(!_0x191765||_0x524793!==_0x191765[_0x1b79a1(0x1e0)])return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':_0x524793,'status':_0x1b79a1(0x200),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':_0x524793,'status':_0x1b79a1(0x204)};}function buildLockEntry(_0x29696a,_0x1baeb3){const _0x9a08dc=a210_0x28b6bd;return{'hash':computePageContentHash(_0x1baeb3),'pageId':_0x29696a[_0x9a08dc(0x1d3)],'pageVersion':_0x29696a[_0x9a08dc(0x1f0)],'type':_0x29696a[_0x9a08dc(0x1ea)],'title':_0x29696a[_0x9a08dc(0x1f6)],'datasetIds':_0x29696a[_0x9a08dc(0x1db)],'versionTag':_0x29696a[_0x9a08dc(0x1e2)]};}function toPreviewItem(_0x355d73){const _0x16a771=a210_0x28b6bd;return{'pageId':_0x355d73[_0x16a771(0x1e1)][_0x16a771(0x1d3)],'type':_0x355d73[_0x16a771(0x1e1)][_0x16a771(0x1ea)],'title':_0x355d73[_0x16a771(0x1e1)]['name'],'localPath':_0x355d73[_0x16a771(0x1fc)],'status':_0x355d73[_0x16a771(0x1d9)],..._0x355d73[_0x16a771(0x1d5)]?{'reason':_0x355d73[_0x16a771(0x1d5)]}:{}};}