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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
  375. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
  376. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  377. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  378. package/skills/rabetbase.manifest.json +3 -3
  379. package/templates/custom-pages/blank.json +1 -1
  380. package/templates/custom-pages/dashboard.json +1 -1
@@ -1 +1 @@
1
- const a199_0x5901aa=a199_0x47ec;(function(_0x275543,_0x1ddfa6){const _0x34e473=a199_0x47ec,_0x44e414=_0x275543();while(!![]){try{const _0x45dd89=-parseInt(_0x34e473(0x1bd))/0x1+-parseInt(_0x34e473(0x1f2))/0x2*(parseInt(_0x34e473(0x1d7))/0x3)+-parseInt(_0x34e473(0x1f1))/0x4*(parseInt(_0x34e473(0x1b6))/0x5)+-parseInt(_0x34e473(0x1d8))/0x6*(-parseInt(_0x34e473(0x1c4))/0x7)+parseInt(_0x34e473(0x1e0))/0x8*(-parseInt(_0x34e473(0x1e6))/0x9)+-parseInt(_0x34e473(0x1d9))/0xa*(parseInt(_0x34e473(0x1af))/0xb)+parseInt(_0x34e473(0x1ea))/0xc;if(_0x45dd89===_0x1ddfa6)break;else _0x44e414['push'](_0x44e414['shift']());}catch(_0x525a6b){_0x44e414['push'](_0x44e414['shift']());}}}(a199_0x3831,0x31d26));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x5901aa(0x1e5),a199_0x5901aa(0x1e9),a199_0x5901aa(0x1cd)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x5901aa(0x1e4));export const pageCreate={'service':a199_0x5901aa(0x1d0),'command':'create','description':a199_0x5901aa(0x1b4),'risk':a199_0x5901aa(0x1f3),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a199_0x5901aa(0x1cf),'hint':a199_0x5901aa(0x1c9)},{'name':a199_0x5901aa(0x1ba),'message':a199_0x5901aa(0x1c8),'hint':a199_0x5901aa(0x1eb)}],'flags':[{'name':a199_0x5901aa(0x1d1),'type':a199_0x5901aa(0x1f5),'description':a199_0x5901aa(0x1d3)},{'name':'parent-menu-id','type':a199_0x5901aa(0x1b1),'description':a199_0x5901aa(0x1d6)},{'name':'page-pattern','type':a199_0x5901aa(0x1f5),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':'page-dir','type':a199_0x5901aa(0x1f5),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x585f06){await readValidatedPageSource(_0x585f06);},async 'dryRun'(_0x4ced52){const _0x524b66=a199_0x5901aa,_0x3406b4=readInput(_0x4ced52,await readValidatedPageSource(_0x4ced52));return{'method':_0x524b66(0x1d2),'url':_0x524b66(0x1dd),'body':{'appCode':_0x3406b4['appCode'],'pageName':_0x3406b4[_0x524b66(0x1b9)],..._0x3406b4[_0x524b66(0x1ec)]!=null?{'parentMenuId':_0x3406b4[_0x524b66(0x1ec)]}:{},'createMenu':_0x3406b4['createMenu'],'codeContent':_0x3406b4['files']},'description':_0x524b66(0x1e2)+JSON[_0x524b66(0x1b8)](_0x3406b4[_0x524b66(0x1b9)])+_0x524b66(0x1b7)};},async 'execute'(_0x5ba5d3){const _0x497d6e=a199_0x5901aa,_0x573bbe=readInput(_0x5ba5d3,await readValidatedPageSource(_0x5ba5d3)),_0x550f2c=await createCustomPage(_0x573bbe);if(!Number[_0x497d6e(0x1cc)](_0x550f2c['pageId'])||_0x550f2c[_0x497d6e(0x1c1)]<=0x0)throw CliErrors[_0x497d6e(0x1b2)](_0x497d6e(0x1da));const _0x342bb4=buildCustomPageDevelopmentUrl(_0x573bbe['appCode'],_0x550f2c[_0x497d6e(0x1d5)]),_0x35db3a=buildCustomPageEditUrl(_0x573bbe['appCode'],_0x550f2c[_0x497d6e(0x1c1)]);return{'ok':!![],'data':{'operation':_0x497d6e(0x1b5),'pageType':_0x497d6e(0x1ed),'pagePattern':readPagePattern(_0x5ba5d3),'selector':{'appCode':_0x573bbe[_0x497d6e(0x1f0)],'pageName':_0x573bbe['pageName']},'before':null,'after':{'pageId':_0x550f2c[_0x497d6e(0x1c1)],'pageName':_0x550f2c[_0x497d6e(0x1b9)],'appCode':_0x550f2c['appCode'],'version':_0x550f2c[_0x497d6e(0x1c7)],'menuId':_0x550f2c['menuId'],'menuPath':_0x550f2c['menuPath'],'files':_0x550f2c[_0x497d6e(0x1f4)]??Object[_0x497d6e(0x1b0)](_0x573bbe['files'])},'dryRun':![],'request':_0x573bbe,..._0x342bb4?{'pageUrl':_0x342bb4}:{},..._0x35db3a?{'editPageUrl':_0x35db3a}:{},'warnings':_0x342bb4?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x497d6e(0x1c6)+_0x550f2c['pageId']+'.'};}};function a199_0x3831(){const _0x5b5d39=['values','object','parent-menu-id','pageId','page-dir','Custom\x20Page\x20pattern\x20not\x20found:\x20','252308EmTxyx','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','Created\x20Custom\x20Page\x20','version','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Invalid\x20Custom\x20Page\x20pattern:\x20','.json','isInteger','DASHBOARD','validation','page\x20create\x20does\x20not\x20accept\x20--page-type.','page','name','POST','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','trim','menuPath','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','282NvxBWb','18GCqnpE','1680VzRTqP','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','now','page-pattern','/smartapi/webcode/page/create','Custom_page_','utf8','248LNaJYB','includes','Would\x20create\x20Custom\x20Page\x20','isNaN','../../../templates/custom-pages','BLANK','13950qeTWQn','some','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','ONEPAGE','10548564QIllgh','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','parentMenuId','CUSTOM','str','isArray','appCode','7340NEsZyS','3236TZkdiq','write','files','string','25696NkquGw','keys','number','apiError','length','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','page.create','505PrmEgO','\x20and\x20its\x20menu\x20entry.','stringify','pageName','page-content','parse','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','5184gyXGeR'];a199_0x3831=function(){return _0x5b5d39;};return a199_0x3831();}function a199_0x47ec(_0x241187,_0x50fb2c){_0x241187=_0x241187-0x1af;const _0x383178=a199_0x3831();let _0x47ecf0=_0x383178[_0x241187];return _0x47ecf0;}function readPagePattern(_0x4f8d28){const _0x4458a0=a199_0x5901aa,_0x596227=_0x4f8d28['str'](_0x4458a0(0x1dc))['trim'](),_0x320c45=_0x4f8d28[_0x4458a0(0x1ee)](_0x4458a0(0x1c2))['trim']();if(_0x596227&&_0x320c45)throw CliErrors[_0x4458a0(0x1ce)]('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x320c45)return null;if(!_0x596227)throw CliErrors['validation'](_0x4458a0(0x1bc));if(!CUSTOM_PAGE_PATTERNS[_0x4458a0(0x1e1)](_0x596227))throw CliErrors[_0x4458a0(0x1ce)](_0x4458a0(0x1c5));return _0x596227;}async function readPageSource(_0x4d6152){const _0x54db0f=a199_0x5901aa,_0x1efabc=_0x4d6152[_0x54db0f(0x1ee)](_0x54db0f(0x1c2))[_0x54db0f(0x1d4)](),_0x4f0174=readPagePattern(_0x4d6152);if(_0x4f0174===null){const _0x390186=await readCustomPageDirectory(_0x1efabc);if(Object[_0x54db0f(0x1b0)](_0x390186)['length']===0x0)throw CliErrors[_0x54db0f(0x1ce)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x390186;}let _0x5b16db;try{_0x5b16db=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x4f0174['toLowerCase']()+_0x54db0f(0x1cb)),_0x54db0f(0x1df));}catch{throw CliErrors[_0x54db0f(0x1ce)](_0x54db0f(0x1c3)+_0x4f0174+'.');}let _0x606e2a;try{_0x606e2a=JSON[_0x54db0f(0x1bb)](_0x5b16db);}catch{throw CliErrors[_0x54db0f(0x1ce)](_0x54db0f(0x1ca)+_0x4f0174+'.');}if(!_0x606e2a||typeof _0x606e2a!==_0x54db0f(0x1bf)||Array[_0x54db0f(0x1ef)](_0x606e2a)||Object[_0x54db0f(0x1be)](_0x606e2a)[_0x54db0f(0x1e7)](_0x312a96=>typeof _0x312a96!==_0x54db0f(0x1f5)))throw CliErrors['validation'](_0x54db0f(0x1ca)+_0x4f0174+'.');return _0x606e2a;}async function readValidatedPageSource(_0x34cd93){const _0x133a27=await readPageSource(_0x34cd93);return await validateCustomPageContent(_0x133a27),_0x133a27;}function readInput(_0x4e7117,_0x87aa00){const _0x42d8c9=a199_0x5901aa,_0x258654=_0x4e7117[_0x42d8c9(0x1ee)](_0x42d8c9(0x1d1))[_0x42d8c9(0x1d4)]()||_0x42d8c9(0x1de)+Date[_0x42d8c9(0x1db)]();if(_0x258654[_0x42d8c9(0x1b3)]>0x64)throw CliErrors[_0x42d8c9(0x1ce)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x23b988=_0x4e7117['num'](_0x42d8c9(0x1c0),NaN),_0x39f785=!Number[_0x42d8c9(0x1e3)](_0x23b988);if(_0x39f785&&(!Number['isInteger'](_0x23b988)||_0x23b988<=0x0))throw CliErrors[_0x42d8c9(0x1ce)](_0x42d8c9(0x1e8));return{'appCode':_0x4e7117['appCode'],'pageName':_0x258654,..._0x39f785?{'parentMenuId':_0x23b988}:{},'createMenu':!![],'files':_0x87aa00};}
1
+ const a199_0x49bd84=a199_0x22e7;(function(_0x4737a6,_0x5199c8){const _0x4e9c69=a199_0x22e7,_0x2bdf52=_0x4737a6();while(!![]){try{const _0x5ed92b=parseInt(_0x4e9c69(0x105))/0x1*(-parseInt(_0x4e9c69(0x123))/0x2)+parseInt(_0x4e9c69(0xf5))/0x3+-parseInt(_0x4e9c69(0x119))/0x4*(-parseInt(_0x4e9c69(0x112))/0x5)+-parseInt(_0x4e9c69(0x11f))/0x6+-parseInt(_0x4e9c69(0x130))/0x7+-parseInt(_0x4e9c69(0x12b))/0x8*(parseInt(_0x4e9c69(0x102))/0x9)+parseInt(_0x4e9c69(0x100))/0xa*(parseInt(_0x4e9c69(0x12c))/0xb);if(_0x5ed92b===_0x5199c8)break;else _0x2bdf52['push'](_0x2bdf52['shift']());}catch(_0x4c727a){_0x2bdf52['push'](_0x2bdf52['shift']());}}}(a199_0x4b3e,0xcc752));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a199_0x22e7(_0x5f3a13,_0x4304e5){_0x5f3a13=_0x5f3a13-0xf2;const _0x4b3eef=a199_0x4b3e();let _0x22e775=_0x4b3eef[_0x5f3a13];return _0x22e775;}import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';function a199_0x4b3e(){const _0x13289b=['num','34MfMwNp','name','Custom_page_','page-pattern','number','/smartapi/webcode/page/create','Would\x20create\x20Custom\x20Page\x20','isNaN','8FakdAe','11lHyVUm','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','BLANK','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','1855063jPhfgp','page.create','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','\x20and\x20its\x20menu\x20entry.','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','write','1980351fYaJcr','menuId','pageName','validation','files','CUSTOM','string','includes','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','apiError','appCode','29430770qKuoxu','values','12974382kMPwnv','pageId','str','52627fjgbkk','length','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','page-content','createMenu','now','toLowerCase','Created\x20Custom\x20Page\x20','parse','isArray','Invalid\x20Custom\x20Page\x20pattern:\x20','keys','ONEPAGE','16535tckVqh','menuPath','parentMenuId','object','isInteger','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','page\x20create\x20does\x20not\x20accept\x20--page-type.','756ZSVSVQ','Custom\x20Page\x20pattern\x20not\x20found:\x20','DASHBOARD','trim','version','../../../templates/custom-pages','4736958NLYiHl','page-dir','parent-menu-id'];a199_0x4b3e=function(){return _0x13289b;};return a199_0x4b3e();}import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x49bd84(0x12e),a199_0x49bd84(0x111),a199_0x49bd84(0x11b)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x49bd84(0x11e));export const pageCreate={'service':'page','command':'create','description':a199_0x49bd84(0x134),'risk':a199_0x49bd84(0xf4),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a199_0x49bd84(0x118),'hint':a199_0x49bd84(0x12d)},{'name':a199_0x49bd84(0x108),'message':a199_0x49bd84(0xfd),'hint':a199_0x49bd84(0x135)}],'flags':[{'name':'name','type':a199_0x49bd84(0xfb),'description':a199_0x49bd84(0x117)},{'name':a199_0x49bd84(0x121),'type':a199_0x49bd84(0x127),'description':a199_0x49bd84(0x132)},{'name':a199_0x49bd84(0x126),'type':a199_0x49bd84(0xfb),'description':a199_0x49bd84(0xf3),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x49bd84(0x120),'type':a199_0x49bd84(0xfb),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x21877b){await readValidatedPageSource(_0x21877b);},async 'dryRun'(_0x321484){const _0x4f90d2=a199_0x49bd84,_0x49a2ed=readInput(_0x321484,await readValidatedPageSource(_0x321484));return{'method':'POST','url':_0x4f90d2(0x128),'body':{'appCode':_0x49a2ed[_0x4f90d2(0xff)],'pageName':_0x49a2ed[_0x4f90d2(0xf7)],..._0x49a2ed[_0x4f90d2(0x114)]!=null?{'parentMenuId':_0x49a2ed[_0x4f90d2(0x114)]}:{},'createMenu':_0x49a2ed[_0x4f90d2(0x109)],'codeContent':_0x49a2ed[_0x4f90d2(0xf9)]},'description':_0x4f90d2(0x129)+JSON['stringify'](_0x49a2ed[_0x4f90d2(0xf7)])+_0x4f90d2(0x133)};},async 'execute'(_0x158f50){const _0x32f46e=a199_0x49bd84,_0x5c58c5=readInput(_0x158f50,await readValidatedPageSource(_0x158f50)),_0x180f83=await createCustomPage(_0x5c58c5);if(!Number[_0x32f46e(0x116)](_0x180f83[_0x32f46e(0x103)])||_0x180f83[_0x32f46e(0x103)]<=0x0)throw CliErrors[_0x32f46e(0xfe)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x3c5a17=buildCustomPageDevelopmentUrl(_0x5c58c5[_0x32f46e(0xff)],_0x180f83[_0x32f46e(0x113)]),_0x11f82e=buildCustomPageEditUrl(_0x5c58c5['appCode'],_0x180f83[_0x32f46e(0x103)]);return{'ok':!![],'data':{'operation':_0x32f46e(0x131),'pageType':_0x32f46e(0xfa),'pagePattern':readPagePattern(_0x158f50),'selector':{'appCode':_0x5c58c5[_0x32f46e(0xff)],'pageName':_0x5c58c5['pageName']},'before':null,'after':{'pageId':_0x180f83[_0x32f46e(0x103)],'pageName':_0x180f83[_0x32f46e(0xf7)],'appCode':_0x180f83[_0x32f46e(0xff)],'version':_0x180f83[_0x32f46e(0x11d)],'menuId':_0x180f83[_0x32f46e(0xf6)],'menuPath':_0x180f83[_0x32f46e(0x113)],'files':_0x180f83[_0x32f46e(0xf9)]??Object[_0x32f46e(0x110)](_0x5c58c5['files'])},'dryRun':![],'request':_0x5c58c5,..._0x3c5a17?{'pageUrl':_0x3c5a17}:{},..._0x11f82e?{'editPageUrl':_0x11f82e}:{},'warnings':_0x3c5a17?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x32f46e(0x10c)+_0x180f83[_0x32f46e(0x103)]+'.'};}};function readPagePattern(_0xfb6a7d){const _0x25f703=a199_0x49bd84,_0x139692=_0xfb6a7d[_0x25f703(0x104)](_0x25f703(0x126))[_0x25f703(0x11c)](),_0x3ffc9d=_0xfb6a7d[_0x25f703(0x104)](_0x25f703(0x120))[_0x25f703(0x11c)]();if(_0x139692&&_0x3ffc9d)throw CliErrors[_0x25f703(0xf8)](_0x25f703(0x107));if(_0x3ffc9d)return null;if(!_0x139692)throw CliErrors[_0x25f703(0xf8)](_0x25f703(0x12f));if(!CUSTOM_PAGE_PATTERNS[_0x25f703(0xfc)](_0x139692))throw CliErrors[_0x25f703(0xf8)](_0x25f703(0xf2));return _0x139692;}async function readPageSource(_0x15b6fd){const _0x29c8e2=a199_0x49bd84,_0x1d4ff6=_0x15b6fd['str'](_0x29c8e2(0x120))['trim'](),_0x10f8ea=readPagePattern(_0x15b6fd);if(_0x10f8ea===null){const _0x2fa712=await readCustomPageDirectory(_0x1d4ff6);if(Object[_0x29c8e2(0x110)](_0x2fa712)[_0x29c8e2(0x106)]===0x0)throw CliErrors[_0x29c8e2(0xf8)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x2fa712;}let _0x493faa;try{_0x493faa=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x10f8ea[_0x29c8e2(0x10b)]()+'.json'),'utf8');}catch{throw CliErrors[_0x29c8e2(0xf8)](_0x29c8e2(0x11a)+_0x10f8ea+'.');}let _0x17835c;try{_0x17835c=JSON[_0x29c8e2(0x10d)](_0x493faa);}catch{throw CliErrors[_0x29c8e2(0xf8)](_0x29c8e2(0x10f)+_0x10f8ea+'.');}if(!_0x17835c||typeof _0x17835c!==_0x29c8e2(0x115)||Array[_0x29c8e2(0x10e)](_0x17835c)||Object[_0x29c8e2(0x101)](_0x17835c)['some'](_0x2f4eb3=>typeof _0x2f4eb3!==_0x29c8e2(0xfb)))throw CliErrors[_0x29c8e2(0xf8)](_0x29c8e2(0x10f)+_0x10f8ea+'.');return _0x17835c;}async function readValidatedPageSource(_0x2b7214){const _0x2e1647=await readPageSource(_0x2b7214);return await validateCustomPageContent(_0x2e1647),_0x2e1647;}function readInput(_0x268255,_0x4a243f){const _0x560b22=a199_0x49bd84,_0x29f241=_0x268255[_0x560b22(0x104)](_0x560b22(0x124))[_0x560b22(0x11c)]()||_0x560b22(0x125)+Date[_0x560b22(0x10a)]();if(_0x29f241[_0x560b22(0x106)]>0x64)throw CliErrors[_0x560b22(0xf8)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x335966=_0x268255[_0x560b22(0x122)]('parent-menu-id',NaN),_0x266227=!Number[_0x560b22(0x12a)](_0x335966);if(_0x266227&&(!Number[_0x560b22(0x116)](_0x335966)||_0x335966<=0x0))throw CliErrors[_0x560b22(0xf8)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x268255[_0x560b22(0xff)],'pageName':_0x29f241,..._0x266227?{'parentMenuId':_0x335966}:{},'createMenu':!![],'files':_0x4a243f};}
@@ -1 +1 @@
1
- const a200_0x4bd664=a200_0x2277;(function(_0x3afebc,_0x3b700b){const _0x1f78a9=a200_0x2277,_0x3f8466=_0x3afebc();while(!![]){try{const _0x5a8b50=-parseInt(_0x1f78a9(0x1fb))/0x1*(parseInt(_0x1f78a9(0x1f8))/0x2)+parseInt(_0x1f78a9(0x1ec))/0x3+-parseInt(_0x1f78a9(0x203))/0x4*(parseInt(_0x1f78a9(0x1fa))/0x5)+parseInt(_0x1f78a9(0x1fe))/0x6+-parseInt(_0x1f78a9(0x1ea))/0x7+parseInt(_0x1f78a9(0x202))/0x8*(-parseInt(_0x1f78a9(0x1f0))/0x9)+-parseInt(_0x1f78a9(0x1ee))/0xa*(-parseInt(_0x1f78a9(0x1ed))/0xb);if(_0x5a8b50===_0x3b700b)break;else _0x3f8466['push'](_0x3f8466['shift']());}catch(_0x4ab376){_0x3f8466['push'](_0x3f8466['shift']());}}}(a200_0x519d,0xcc95c));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x2277(_0x14cb0a,_0x38b823){_0x14cb0a=_0x14cb0a-0x1e7;const _0x519d04=a200_0x519d();let _0x2277cc=_0x519d04[_0x14cb0a];return _0x2277cc;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x4bd664(0x204),'command':a200_0x4bd664(0x1e8),'description':a200_0x4bd664(0x1f3),'risk':a200_0x4bd664(0x1e7),'defaultOutputFormat':a200_0x4bd664(0x1ff),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x4bd664(0x201),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x418c7b){readCustomPageId(_0x418c7b);},async 'execute'(_0x20920a){const _0x376a0c=a200_0x4bd664,_0x59829b=readCustomPageId(_0x20920a),_0x56cd37=await getCustomPageSource(_0x59829b),{bundle:_0x360462,createTime:_0xd0a6ca,updateTime:_0x170a7d,..._0x1cd03d}=_0x56cd37,_0x262916=_0x56cd37['id']??_0x59829b,_0x3fa884=_0x56cd37['appCode']?.[_0x376a0c(0x1f4)]()||_0x20920a[_0x376a0c(0x1e9)](_0x376a0c(0x1f6))['trim'](),_0x2f0ded=buildCustomPageRuntimeUrl(_0x3fa884,_0x56cd37[_0x376a0c(0x1f2)]),_0xace919=buildCustomPageEditUrl(_0x3fa884,_0x262916),_0x5924ff=await resolveCustomPageDevelopmentUrl(_0x3fa884,_0x262916,_0x20920a[_0x376a0c(0x1ef)]);return{'ok':!![],'data':{..._0x1cd03d,..._0x2f0ded?{'runtimePageUrl':_0x2f0ded}:{},..._0x5924ff?{'pageUrl':_0x5924ff}:{},..._0xace919?{'editPageUrl':_0xace919}:{},..._0xd0a6ca==null?{}:{'createTime':formatTime(_0xd0a6ca)},..._0x170a7d==null?{}:{'updateTime':formatTime(_0x170a7d)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x59829b+'.'};}};function a200_0x519d(){const _0x3db676=['appcode','isNaN','414472YVIWyo','join','580qhmGts','1qhXOjb','padStart','getSeconds','1586064YaBabo','compress','getMinutes','number','128KiQvey','26608cywiNW','page','read','custom-detail','str','9308530pZroiv','getHours','30gDRXQf','2420zkBSCM','205490uWMBRA','cookie','921654LRRCVK','getDate','pageCode','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','trim','getTime'];a200_0x519d=function(){return _0x3db676;};return a200_0x519d();}function formatTime(_0x29fef2){const _0x393ea8=a200_0x4bd664,_0x1a7b80=new Date(_0x29fef2);if(Number[_0x393ea8(0x1f7)](_0x1a7b80[_0x393ea8(0x1f5)]()))return String(_0x29fef2);const _0x2a0f0e=[_0x1a7b80['getFullYear'](),String(_0x1a7b80['getMonth']()+0x1)[_0x393ea8(0x1fc)](0x2,'0'),String(_0x1a7b80[_0x393ea8(0x1f1)]())[_0x393ea8(0x1fc)](0x2,'0')][_0x393ea8(0x1f9)]('-'),_0x250756=[String(_0x1a7b80[_0x393ea8(0x1eb)]())[_0x393ea8(0x1fc)](0x2,'0'),String(_0x1a7b80[_0x393ea8(0x200)]())[_0x393ea8(0x1fc)](0x2,'0'),String(_0x1a7b80[_0x393ea8(0x1fd)]())[_0x393ea8(0x1fc)](0x2,'0')]['join'](':');return _0x2a0f0e+'\x20'+_0x250756;}
1
+ const a200_0x250496=a200_0xf9c6;(function(_0x219717,_0x500c2f){const _0x316754=a200_0xf9c6,_0x2040ea=_0x219717();while(!![]){try{const _0x54e51f=parseInt(_0x316754(0x102))/0x1+parseInt(_0x316754(0x119))/0x2*(-parseInt(_0x316754(0x117))/0x3)+-parseInt(_0x316754(0x108))/0x4+parseInt(_0x316754(0x118))/0x5+parseInt(_0x316754(0xff))/0x6+-parseInt(_0x316754(0x10f))/0x7+parseInt(_0x316754(0x104))/0x8*(parseInt(_0x316754(0x106))/0x9);if(_0x54e51f===_0x500c2f)break;else _0x2040ea['push'](_0x2040ea['shift']());}catch(_0x1c234c){_0x2040ea['push'](_0x2040ea['shift']());}}}(a200_0xca5e,0xba795));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0xf9c6(_0x319996,_0x32e2db){_0x319996=_0x319996-0xfd;const _0xca5ef3=a200_0xca5e();let _0xf9c69c=_0xca5ef3[_0x319996];return _0xf9c69c;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x250496(0x10c),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0x250496(0x100),'defaultOutputFormat':a200_0x250496(0x105),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x250496(0xfe),'required':!![],'description':a200_0x250496(0x101)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cf247){readCustomPageId(_0x3cf247);},async 'execute'(_0x1f5d61){const _0x4c3037=a200_0x250496,_0x3be617=readCustomPageId(_0x1f5d61),_0x11ab0c=await getCustomPageSource(_0x3be617),{bundle:_0x3b2563,createTime:_0x548556,updateTime:_0x1d7b3c,..._0x4aaba6}=_0x11ab0c,_0x3f9958=_0x11ab0c['id']??_0x3be617,_0x2ebc2b=_0x11ab0c[_0x4c3037(0xfd)]?.[_0x4c3037(0x112)]()||_0x1f5d61[_0x4c3037(0x115)]('appcode')[_0x4c3037(0x112)](),_0x590a21=buildCustomPageRuntimeUrl(_0x2ebc2b,_0x11ab0c[_0x4c3037(0x110)]),_0x10a909=buildCustomPageEditUrl(_0x2ebc2b,_0x3f9958),_0xf4d86f=await resolveCustomPageDevelopmentUrl(_0x2ebc2b,_0x3f9958,_0x1f5d61[_0x4c3037(0x10d)]);return{'ok':!![],'data':{..._0x4aaba6,..._0x590a21?{'runtimePageUrl':_0x590a21}:{},..._0xf4d86f?{'pageUrl':_0xf4d86f}:{},..._0x10a909?{'editPageUrl':_0x10a909}:{},..._0x548556==null?{}:{'createTime':formatTime(_0x548556)},..._0x1d7b3c==null?{}:{'updateTime':formatTime(_0x1d7b3c)}},'message':_0x4c3037(0x109)+_0x3be617+'.'};}};function a200_0xca5e(){const _0x5ea515=['Custom\x20Page\x20ID','101413LJJVTq','getMinutes','8hLgPQR','compress','30351771AioKZx','getFullYear','5496488fzqfTL','Retrieved\x20Custom\x20Page\x20','getMonth','padStart','custom-detail','cookie','getHours','9312226ENgMBl','pageCode','getSeconds','trim','isNaN','join','str','getTime','3HNObaM','1961645mdOvAL','1715630EePCAt','appCode','number','2759346fHtDHG','read'];a200_0xca5e=function(){return _0x5ea515;};return a200_0xca5e();}function formatTime(_0x278fc8){const _0x22c883=a200_0x250496,_0x548b75=new Date(_0x278fc8);if(Number[_0x22c883(0x113)](_0x548b75[_0x22c883(0x116)]()))return String(_0x278fc8);const _0x4e765b=[_0x548b75[_0x22c883(0x107)](),String(_0x548b75[_0x22c883(0x10a)]()+0x1)[_0x22c883(0x10b)](0x2,'0'),String(_0x548b75['getDate']())[_0x22c883(0x10b)](0x2,'0')][_0x22c883(0x114)]('-'),_0x351e7a=[String(_0x548b75[_0x22c883(0x10e)]())[_0x22c883(0x10b)](0x2,'0'),String(_0x548b75[_0x22c883(0x103)]())[_0x22c883(0x10b)](0x2,'0'),String(_0x548b75[_0x22c883(0x111)]())[_0x22c883(0x10b)](0x2,'0')][_0x22c883(0x114)](':');return _0x4e765b+'\x20'+_0x351e7a;}
@@ -1 +1 @@
1
- const a201_0x1a86f1=a201_0x36ba;function a201_0x36ba(_0x2665e0,_0x240e0a){_0x2665e0=_0x2665e0-0x180;const _0x5d68b5=a201_0x5d68();let _0x36ba32=_0x5d68b5[_0x2665e0];return _0x36ba32;}function a201_0x5d68(){const _0x4ba8d8=['273505MqRcVB','Found\x20','426144AnUKLX','183774RAifAe','4LQRsne','read','label','No\x20Custom\x20Pages\x20found.','11458mpJRzD','length','754752gWIddf','compress','appCode','14QhSCKd','cookie','custom-list','521658cFyCXz','30RvqJkj','3862089zZRFbo','page','type','react','14lRPBTZ','pageId','flatMap','path'];a201_0x5d68=function(){return _0x4ba8d8;};return a201_0x5d68();}(function(_0x1153ec,_0x205931){const _0x52ad2f=a201_0x36ba,_0x1c68b7=_0x1153ec();while(!![]){try{const _0x1540b3=-parseInt(_0x52ad2f(0x18e))/0x1*(-parseInt(_0x52ad2f(0x182))/0x2)+-parseInt(_0x52ad2f(0x189))/0x3+-parseInt(_0x52ad2f(0x18a))/0x4*(parseInt(_0x52ad2f(0x186))/0x5)+parseInt(_0x52ad2f(0x190))/0x6+parseInt(_0x52ad2f(0x193))/0x7*(-parseInt(_0x52ad2f(0x188))/0x8)+-parseInt(_0x52ad2f(0x196))/0x9*(parseInt(_0x52ad2f(0x197))/0xa)+parseInt(_0x52ad2f(0x198))/0xb;if(_0x1540b3===_0x205931)break;else _0x1c68b7['push'](_0x1c68b7['shift']());}catch(_0x4775a0){_0x1c68b7['push'](_0x1c68b7['shift']());}}}(a201_0x5d68,0x273cc));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x1a86f1(0x199),'command':a201_0x1a86f1(0x195),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a201_0x1a86f1(0x18b),'defaultOutputFormat':a201_0x1a86f1(0x191),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0xcbd705){const _0x456f90=a201_0x1a86f1,_0xeffa56=(await fetchMenuSnapshot(_0xcbd705[_0x456f90(0x192)],_0xcbd705[_0x456f90(0x194)]))['menus'][_0x456f90(0x184)](_0x36de07=>{const _0x1477fe=_0x456f90;if(_0x36de07[_0x1477fe(0x180)]!==_0x1477fe(0x181)||_0x36de07[_0x1477fe(0x183)]==null)return[];const _0x1a7464=buildCustomPageDevelopmentUrl(_0xcbd705['appCode'],_0x36de07[_0x1477fe(0x185)]),_0xb9b7ce=buildCustomPageRuntimeUrl(_0xcbd705[_0x1477fe(0x192)],_0x36de07[_0x1477fe(0x185)]),_0x336758=buildCustomPageEditUrl(_0xcbd705[_0x1477fe(0x192)],_0x36de07[_0x1477fe(0x183)]);return[{'pageId':_0x36de07[_0x1477fe(0x183)],'label':_0x36de07[_0x1477fe(0x18c)],'path':_0x36de07['path'],..._0x1a7464?{'pageUrl':_0x1a7464}:{},..._0xb9b7ce?{'runtimePageUrl':_0xb9b7ce}:{},..._0x336758?{'editPageUrl':_0x336758}:{}}];});return{'ok':!![],'data':{'pages':_0xeffa56},'message':_0xeffa56[_0x456f90(0x18f)]===0x0?_0x456f90(0x18d):_0x456f90(0x187)+_0xeffa56[_0x456f90(0x18f)]+'\x20Custom\x20Page(s).'};}};
1
+ function a201_0x4820(_0x54b262,_0x139d85){_0x54b262=_0x54b262-0xc1;const _0x5ed400=a201_0x5ed4();let _0x48202f=_0x5ed400[_0x54b262];return _0x48202f;}function a201_0x5ed4(){const _0x21e7ba=['compress','554855jKyBLt','329541mhivwD','4jsRlyp','label','915399RSNpEX','Found\x20','246056jcNnYH','\x20Custom\x20Page(s).','appCode','6cZJpNo','25117ILtmyc','page','739739MNywvH','length','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','No\x20Custom\x20Pages\x20found.','path','cookie','flatMap','type','998790kwLsni','pageId','read'];a201_0x5ed4=function(){return _0x21e7ba;};return a201_0x5ed4();}const a201_0x437ff5=a201_0x4820;(function(_0x5e34a3,_0x47c44e){const _0x2e9256=a201_0x4820,_0x25a9d0=_0x5e34a3();while(!![]){try{const _0x11a5d4=parseInt(_0x2e9256(0xc4))/0x1*(parseInt(_0x2e9256(0xc3))/0x2)+-parseInt(_0x2e9256(0xd3))/0x3*(-parseInt(_0x2e9256(0xd4))/0x4)+parseInt(_0x2e9256(0xd2))/0x5+-parseInt(_0x2e9256(0xce))/0x6+parseInt(_0x2e9256(0xc6))/0x7+-parseInt(_0x2e9256(0xd8))/0x8+-parseInt(_0x2e9256(0xd6))/0x9;if(_0x11a5d4===_0x47c44e)break;else _0x25a9d0['push'](_0x25a9d0['shift']());}catch(_0x166521){_0x25a9d0['push'](_0x25a9d0['shift']());}}}(a201_0x5ed4,0x19201));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x437ff5(0xc5),'command':'custom-list','description':a201_0x437ff5(0xc8),'risk':a201_0x437ff5(0xd0),'defaultOutputFormat':a201_0x437ff5(0xd1),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a1117){const _0x1d7fd8=a201_0x437ff5,_0x180101=(await fetchMenuSnapshot(_0x1a1117['appCode'],_0x1a1117[_0x1d7fd8(0xcb)]))['menus'][_0x1d7fd8(0xcc)](_0x5ded69=>{const _0x203650=_0x1d7fd8;if(_0x5ded69[_0x203650(0xcd)]!=='react'||_0x5ded69['pageId']==null)return[];const _0x2c8e9e=buildCustomPageDevelopmentUrl(_0x1a1117[_0x203650(0xc2)],_0x5ded69[_0x203650(0xca)]),_0x103648=buildCustomPageRuntimeUrl(_0x1a1117['appCode'],_0x5ded69[_0x203650(0xca)]),_0x2917ce=buildCustomPageEditUrl(_0x1a1117[_0x203650(0xc2)],_0x5ded69['pageId']);return[{'pageId':_0x5ded69[_0x203650(0xcf)],'label':_0x5ded69[_0x203650(0xd5)],'path':_0x5ded69['path'],..._0x2c8e9e?{'pageUrl':_0x2c8e9e}:{},..._0x103648?{'runtimePageUrl':_0x103648}:{},..._0x2917ce?{'editPageUrl':_0x2917ce}:{}}];});return{'ok':!![],'data':{'pages':_0x180101},'message':_0x180101['length']===0x0?_0x1d7fd8(0xc9):_0x1d7fd8(0xd7)+_0x180101[_0x1d7fd8(0xc7)]+_0x1d7fd8(0xc1)};}};
@@ -1 +1 @@
1
- function a202_0x1fe6(){const _0x5d2ce6=['Would\x20publish\x20Custom\x20Page\x20','remark','trim','isInteger','3850272qBJeQR','unknown','1080375rQnqmC','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','pageId','1054832HuJvoJ','push','Custom\x20Page\x20ID','appCode','2568051cKzgcl','warnings','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','status','runtimePageUrl','6311094Grgpdk','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','string','compress','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Published\x20Custom\x20Page\x20','number','82744nGiUcH','566647TTLsoD','FORMAL','apiError','/smartapi/webcode/file/publish','page.custom-publish','str','page','14IWiwSx','cookie'];a202_0x1fe6=function(){return _0x5d2ce6;};return a202_0x1fe6();}const a202_0x4ef2e2=a202_0xb03d;(function(_0x484fb4,_0x3d1999){const _0x7f7bb7=a202_0xb03d,_0x1059b4=_0x484fb4();while(!![]){try{const _0x31c6a6=-parseInt(_0x7f7bb7(0x119))/0x1+parseInt(_0x7f7bb7(0x107))/0x2+parseInt(_0x7f7bb7(0x10b))/0x3+parseInt(_0x7f7bb7(0x102))/0x4+-parseInt(_0x7f7bb7(0x104))/0x5+-parseInt(_0x7f7bb7(0x110))/0x6+parseInt(_0x7f7bb7(0xfc))/0x7*(parseInt(_0x7f7bb7(0x118))/0x8);if(_0x31c6a6===_0x3d1999)break;else _0x1059b4['push'](_0x1059b4['shift']());}catch(_0x5f0332){_0x1059b4['push'](_0x1059b4['shift']());}}}(a202_0x1fe6,0x81e94));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x4ef2e2(0xfb),'command':'custom-publish','description':a202_0x4ef2e2(0x10d),'risk':'write','defaultOutputFormat':a202_0x4ef2e2(0x114),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x4ef2e2(0x117),'required':!![],'description':a202_0x4ef2e2(0x109)},{'name':'remark','type':a202_0x4ef2e2(0x113),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x3707fd){readCustomPageId(_0x3707fd);},async 'dryRun'(_0x4b0b27){const _0x4f4f66=a202_0x4ef2e2,_0x35bbc1=readInput(_0x4b0b27);return{'method':'POST','url':_0x4f4f66(0xf8),'body':{'id':_0x35bbc1['pageId'],..._0x35bbc1['remark']?{'remark':_0x35bbc1['remark']}:{}},'description':_0x4f4f66(0xfe)+_0x35bbc1[_0x4f4f66(0x106)]+'.'};},async 'execute'(_0x5f0032){const _0x2a6394=a202_0x4ef2e2,_0x520b30=readInput(_0x5f0032);await getCustomPageSource(_0x520b30[_0x2a6394(0x106)]);const _0x490111=await publishCustomPage(_0x520b30);if(!Number[_0x2a6394(0x101)](_0x490111)||_0x490111!==_0x520b30[_0x2a6394(0x106)])throw CliErrors[_0x2a6394(0xf7)](_0x2a6394(0x105));const _0x38be05=await getCustomPageSource(_0x520b30[_0x2a6394(0x106)]);if(_0x38be05[_0x2a6394(0x10e)]!==_0x2a6394(0x11a))throw CliErrors['apiError'](_0x2a6394(0x112)+(_0x38be05['status']??_0x2a6394(0x103))+'.');const _0x1ea9ba=_0x38be05[_0x2a6394(0x10a)]?.[_0x2a6394(0x100)](),_0x13dbb7=buildCustomPageEditUrl(_0x1ea9ba,_0x520b30[_0x2a6394(0x106)]),_0x24938c=await resolveCustomPageDevelopmentUrl(_0x1ea9ba,_0x520b30['pageId'],_0x5f0032[_0x2a6394(0xfd)]),_0x30b5be=buildMutationData(_0x520b30,!![],_0x24938c,_0x13dbb7);_0x1ea9ba&&!_0x24938c&&_0x30b5be[_0x2a6394(0x10c)][_0x2a6394(0x108)](_0x2a6394(0x115));const _0x551499=buildCustomPageRuntimeUrl(_0x38be05[_0x2a6394(0x10a)],_0x38be05['pageCode']);return _0x551499?_0x30b5be[_0x2a6394(0x10f)]=_0x551499:_0x30b5be['warnings'][_0x2a6394(0x108)](_0x2a6394(0x111)),{'ok':!![],'data':_0x30b5be,'message':_0x2a6394(0x116)+_0x520b30[_0x2a6394(0x106)]+'.'};}};function a202_0xb03d(_0x36fe53,_0x276e78){_0x36fe53=_0x36fe53-0xf7;const _0x1fe62=a202_0x1fe6();let _0xb03d7f=_0x1fe62[_0x36fe53];return _0xb03d7f;}function readInput(_0x2d92b2){const _0x6fd117=a202_0x4ef2e2,_0x2d5e1=readCustomPageId(_0x2d92b2),_0x2bf7d8=_0x2d92b2[_0x6fd117(0xfa)](_0x6fd117(0xff))[_0x6fd117(0x100)]();return{'pageId':_0x2d5e1,..._0x2bf7d8?{'remark':_0x2bf7d8}:{}};}function buildMutationData(_0x1931c6,_0x3b0252=![],_0xb73b6f,_0x1e847f){const _0x3c367c=a202_0x4ef2e2;return{'operation':_0x3c367c(0xf9),'selector':{'pageId':_0x1931c6[_0x3c367c(0x106)]},'before':null,'after':{'pageId':_0x1931c6['pageId'],'status':_0x3c367c(0x11a)},'dryRun':!_0x3b0252,'request':_0x1931c6,..._0xb73b6f?{'pageUrl':_0xb73b6f}:{},..._0x1e847f?{'editPageUrl':_0x1e847f}:{},'warnings':[]};}
1
+ function a202_0x47bb(){const _0x4dfe7d=['page.custom-publish','316kcoVyO','30035GxorpK','78nZjZaK','write','str','trim','warnings','812580WPqqWQ','isInteger','page','1389ucHjpG','compress','847952NYZReb','status','Optional\x20publish\x20remark','custom-publish','3701992olPKxI','1220418WScZKT','cookie','string','6580bjIwKx','pageId','pageCode','FORMAL','remark','appCode','runtimePageUrl','number','unknown','6075vZQIYU','apiError','/smartapi/webcode/file/publish','Custom\x20Page\x20ID','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a202_0x47bb=function(){return _0x4dfe7d;};return a202_0x47bb();}const a202_0x1697f5=a202_0x599b;(function(_0x4065cb,_0x1ee7df){const _0x2fb6bc=a202_0x599b,_0x24353f=_0x4065cb();while(!![]){try{const _0xb1b216=parseInt(_0x2fb6bc(0x72))/0x1+-parseInt(_0x2fb6bc(0x8b))/0x2+-parseInt(_0x2fb6bc(0x8e))/0x3*(parseInt(_0x2fb6bc(0x84))/0x4)+parseInt(_0x2fb6bc(0x85))/0x5*(parseInt(_0x2fb6bc(0x86))/0x6)+-parseInt(_0x2fb6bc(0x90))/0x7+-parseInt(_0x2fb6bc(0x71))/0x8+-parseInt(_0x2fb6bc(0x7e))/0x9*(-parseInt(_0x2fb6bc(0x75))/0xa);if(_0xb1b216===_0x1ee7df)break;else _0x24353f['push'](_0x24353f['shift']());}catch(_0x2ab269){_0x24353f['push'](_0x24353f['shift']());}}}(a202_0x47bb,0xaec83));function a202_0x599b(_0x1b7619,_0x592cd6){_0x1b7619=_0x1b7619-0x6f;const _0x47bb07=a202_0x47bb();let _0x599b71=_0x47bb07[_0x1b7619];return _0x599b71;}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x1697f5(0x8d),'command':a202_0x1697f5(0x70),'description':a202_0x1697f5(0x82),'risk':a202_0x1697f5(0x87),'defaultOutputFormat':a202_0x1697f5(0x8f),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x1697f5(0x7c),'required':!![],'description':a202_0x1697f5(0x81)},{'name':a202_0x1697f5(0x79),'type':a202_0x1697f5(0x74),'description':a202_0x1697f5(0x6f)}],async 'validate'(_0x3f0886){readCustomPageId(_0x3f0886);},async 'dryRun'(_0x636f1c){const _0x3e05ee=a202_0x1697f5,_0x587fdd=readInput(_0x636f1c);return{'method':'POST','url':_0x3e05ee(0x80),'body':{'id':_0x587fdd[_0x3e05ee(0x76)],..._0x587fdd[_0x3e05ee(0x79)]?{'remark':_0x587fdd['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x587fdd[_0x3e05ee(0x76)]+'.'};},async 'execute'(_0xb34de9){const _0x987b69=a202_0x1697f5,_0x3f2b89=readInput(_0xb34de9);await getCustomPageSource(_0x3f2b89[_0x987b69(0x76)]);const _0x1480f1=await publishCustomPage(_0x3f2b89);if(!Number[_0x987b69(0x8c)](_0x1480f1)||_0x1480f1!==_0x3f2b89['pageId'])throw CliErrors['apiError']('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x1a2d7f=await getCustomPageSource(_0x3f2b89[_0x987b69(0x76)]);if(_0x1a2d7f[_0x987b69(0x91)]!==_0x987b69(0x78))throw CliErrors[_0x987b69(0x7f)]('Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20'+(_0x1a2d7f[_0x987b69(0x91)]??_0x987b69(0x7d))+'.');const _0x460836=_0x1a2d7f[_0x987b69(0x7a)]?.['trim'](),_0x589976=buildCustomPageEditUrl(_0x460836,_0x3f2b89[_0x987b69(0x76)]),_0x3a370f=await resolveCustomPageDevelopmentUrl(_0x460836,_0x3f2b89[_0x987b69(0x76)],_0xb34de9[_0x987b69(0x73)]),_0x254f9e=buildMutationData(_0x3f2b89,!![],_0x3a370f,_0x589976);_0x460836&&!_0x3a370f&&_0x254f9e[_0x987b69(0x8a)]['push']('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x3c2164=buildCustomPageRuntimeUrl(_0x1a2d7f[_0x987b69(0x7a)],_0x1a2d7f[_0x987b69(0x77)]);return _0x3c2164?_0x254f9e[_0x987b69(0x7b)]=_0x3c2164:_0x254f9e['warnings']['push']('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x254f9e,'message':'Published\x20Custom\x20Page\x20'+_0x3f2b89[_0x987b69(0x76)]+'.'};}};function readInput(_0x53f01b){const _0x5be0ac=a202_0x1697f5,_0x3f6627=readCustomPageId(_0x53f01b),_0x4b845c=_0x53f01b[_0x5be0ac(0x88)](_0x5be0ac(0x79))[_0x5be0ac(0x89)]();return{'pageId':_0x3f6627,..._0x4b845c?{'remark':_0x4b845c}:{}};}function buildMutationData(_0x1526f3,_0x474afd=![],_0x21376d,_0x936593){const _0x321a34=a202_0x1697f5;return{'operation':_0x321a34(0x83),'selector':{'pageId':_0x1526f3['pageId']},'before':null,'after':{'pageId':_0x1526f3[_0x321a34(0x76)],'status':_0x321a34(0x78)},'dryRun':!_0x474afd,'request':_0x1526f3,..._0x21376d?{'pageUrl':_0x21376d}:{},..._0x936593?{'editPageUrl':_0x936593}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a203_0x34d4fa=a203_0x1828;(function(_0x5665ff,_0x716aa7){const _0xaf3dd9=a203_0x1828,_0x44354d=_0x5665ff();while(!![]){try{const _0xa5821d=-parseInt(_0xaf3dd9(0x10c))/0x1*(parseInt(_0xaf3dd9(0xfe))/0x2)+-parseInt(_0xaf3dd9(0x10e))/0x3+-parseInt(_0xaf3dd9(0x10d))/0x4+-parseInt(_0xaf3dd9(0x100))/0x5+parseInt(_0xaf3dd9(0x107))/0x6*(parseInt(_0xaf3dd9(0x104))/0x7)+-parseInt(_0xaf3dd9(0x103))/0x8*(-parseInt(_0xaf3dd9(0x101))/0x9)+parseInt(_0xaf3dd9(0xfb))/0xa;if(_0xa5821d===_0x716aa7)break;else _0x44354d['push'](_0x44354d['shift']());}catch(_0x1dd4c1){_0x44354d['push'](_0x44354d['shift']());}}}(a203_0x5a2f,0x33762));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x34d4fa(0x113)};function trimOptional(_0x6b2de2){const _0x2384aa=a203_0x34d4fa;return _0x6b2de2?.[_0x2384aa(0xfd)]()||undefined;}export function buildCustomPageRuntimeUrl(_0xac37ec,_0x44e28b){const _0x17393d=trimOptional(_0xac37ec),_0x545e88=trimOptional(_0x44e28b);if(!_0x17393d||!_0x545e88)return undefined;return getPublishedAppDomain(_0x17393d)+'/'+encodeURIComponent(_0x545e88);}function a203_0x1828(_0x9f8d36,_0x3ead6a){_0x9f8d36=_0x9f8d36-0xfa;const _0x5a2f26=a203_0x5a2f();let _0x182837=_0x5a2f26[_0x9f8d36];return _0x182837;}export function buildCustomPageDevelopmentUrl(_0x997506,_0x48aa65){const _0xcfb046=a203_0x34d4fa,_0x29a7eb=trimOptional(_0x997506),_0x2a635d=trimOptional(_0x48aa65);if(!_0x29a7eb||!_0x2a635d)return undefined;return getAppBaseUrl(_0x29a7eb)+_0xcfb046(0x114)+encodeURIComponent(_0x2a635d);}export async function resolveCustomPageDevelopmentUrl(_0x1ee8ae,_0x1cb2aa,_0x3bf4f3){const _0x40e613=a203_0x34d4fa,_0x35a964=trimOptional(_0x1ee8ae);if(!_0x35a964)return undefined;try{const _0x4e1adb=(await fetchMenuSnapshot(_0x35a964,_0x3bf4f3))[_0x40e613(0x10b)][_0x40e613(0xfa)](_0x483d33=>_0x483d33[_0x40e613(0xfc)]===_0x40e613(0x111)&&_0x483d33[_0x40e613(0xff)]===_0x1cb2aa);return buildCustomPageDevelopmentUrl(_0x35a964,_0x4e1adb?.[_0x40e613(0x112)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x591fe8,_0x497aa8){const _0x7284dd=trimOptional(_0x591fe8);if(!_0x7284dd)return;const _0xb4ddb=trimOptional(String(_0x497aa8??''));if(!_0xb4ddb)return;return getAppBaseUrl(_0x7284dd)+'/ide/'+encodeURIComponent(_0xb4ddb);}export async function validateCustomPageContent(_0x16fcf0){const _0x4ffc77=a203_0x34d4fa,_0x321512=await validateCustomPageSourceFiles(_0x16fcf0);if(_0x321512[_0x4ffc77(0x10f)]>0x0)throw CliErrors[_0x4ffc77(0x105)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x321512[_0x4ffc77(0x109)](_0x43c8f7=>_0x43c8f7[_0x4ffc77(0x110)]+':\x20'+_0x43c8f7[_0x4ffc77(0x106)])[_0x4ffc77(0x102)](';\x20'));}function a203_0x5a2f(){const _0x34a8f6=['1165428FOewSC','568110IUTZMS','length','file','react','path','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','/pages/','find','9265710GGanZb','type','trim','279226cZBsYk','pageId','1647990tRdBdu','493209zIYHUw','join','32tLJcBE','231gIQfdQ','validation','message','2718WNxdMh','isInteger','map','--id\x20must\x20be\x20a\x20positive\x20integer.','menus','1KEwNwv'];a203_0x5a2f=function(){return _0x34a8f6;};return a203_0x5a2f();}export function readCustomPageId(_0x1d615f){const _0x4665e3=a203_0x34d4fa,_0x37513b=_0x1d615f['num']('id');if(!Number[_0x4665e3(0x108)](_0x37513b)||_0x37513b<=0x0)throw CliErrors[_0x4665e3(0x105)](_0x4665e3(0x10a));return _0x37513b;}
1
+ const a203_0x5c7c96=a203_0x42ea;function a203_0x4bc4(){const _0x67bb3a=['740448oCzLOU','495HhJXKE','86728LiorGN','path','validation','length','Invalid\x20Custom\x20Page\x20content:\x20','isInteger','1268474serPBX','/pages/','5555394lkvrLL','type','2571850KvWGeH','1TditBs','93261fNkNnO','696620wgWpFh','react','344vEOCDo','/ide/','trim','find','195XUZarc','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','join','num','file','--id\x20must\x20be\x20a\x20positive\x20integer.','map'];a203_0x4bc4=function(){return _0x67bb3a;};return a203_0x4bc4();}(function(_0x5ab6a5,_0x1c46f4){const _0x501902=a203_0x42ea,_0x656aeb=_0x5ab6a5();while(!![]){try{const _0x3d688e=-parseInt(_0x501902(0x165))/0x1*(-parseInt(_0x501902(0x160))/0x2)+-parseInt(_0x501902(0x151))/0x3*(-parseInt(_0x501902(0x15a))/0x4)+parseInt(_0x501902(0x164))/0x5+parseInt(_0x501902(0x158))/0x6+parseInt(_0x501902(0x166))/0x7*(parseInt(_0x501902(0x14d))/0x8)+parseInt(_0x501902(0x162))/0x9+-parseInt(_0x501902(0x14b))/0xa*(parseInt(_0x501902(0x159))/0xb);if(_0x3d688e===_0x1c46f4)break;else _0x656aeb['push'](_0x656aeb['shift']());}catch(_0x3efd73){_0x656aeb['push'](_0x656aeb['shift']());}}}(a203_0x4bc4,0xb3dc6));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_0x5c7c96(0x152)};function trimOptional(_0x283889){const _0x401e34=a203_0x5c7c96;return _0x283889?.[_0x401e34(0x14f)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x329e40,_0x1c6575){const _0x33e7f4=trimOptional(_0x329e40),_0x3661eb=trimOptional(_0x1c6575);if(!_0x33e7f4||!_0x3661eb)return undefined;return getPublishedAppDomain(_0x33e7f4)+'/'+encodeURIComponent(_0x3661eb);}export function buildCustomPageDevelopmentUrl(_0x501441,_0x28efee){const _0x1e96cc=a203_0x5c7c96,_0x3f84ce=trimOptional(_0x501441),_0x56f2e3=trimOptional(_0x28efee);if(!_0x3f84ce||!_0x56f2e3)return undefined;return getAppBaseUrl(_0x3f84ce)+_0x1e96cc(0x161)+encodeURIComponent(_0x56f2e3);}export async function resolveCustomPageDevelopmentUrl(_0x44239d,_0x414194,_0x19211a){const _0x293630=a203_0x5c7c96,_0x4cf848=trimOptional(_0x44239d);if(!_0x4cf848)return undefined;try{const _0x20141f=(await fetchMenuSnapshot(_0x4cf848,_0x19211a))['menus'][_0x293630(0x150)](_0x2736fd=>_0x2736fd[_0x293630(0x163)]===_0x293630(0x14c)&&_0x2736fd['pageId']===_0x414194);return buildCustomPageDevelopmentUrl(_0x4cf848,_0x20141f?.[_0x293630(0x15b)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x338d7f,_0x2e3b8f){const _0x4f6830=a203_0x5c7c96,_0x34e589=trimOptional(_0x338d7f);if(!_0x34e589)return;const _0x55c417=trimOptional(String(_0x2e3b8f??''));if(!_0x55c417)return;return getAppBaseUrl(_0x34e589)+_0x4f6830(0x14e)+encodeURIComponent(_0x55c417);}export async function validateCustomPageContent(_0x38fc1c){const _0x2d4f12=a203_0x5c7c96,_0x5571d1=await validateCustomPageSourceFiles(_0x38fc1c);if(_0x5571d1[_0x2d4f12(0x15d)]>0x0)throw CliErrors[_0x2d4f12(0x15c)](_0x2d4f12(0x15e)+_0x5571d1[_0x2d4f12(0x157)](_0x5063c3=>_0x5063c3[_0x2d4f12(0x155)]+':\x20'+_0x5063c3['message'])[_0x2d4f12(0x153)](';\x20'));}function a203_0x42ea(_0x1a7207,_0x53bc67){_0x1a7207=_0x1a7207-0x14b;const _0x4bc41a=a203_0x4bc4();let _0x42eaae=_0x4bc41a[_0x1a7207];return _0x42eaae;}export function readCustomPageId(_0x56ade4){const _0x5b18c8=a203_0x5c7c96,_0x43cede=_0x56ade4[_0x5b18c8(0x154)]('id');if(!Number[_0x5b18c8(0x15f)](_0x43cede)||_0x43cede<=0x0)throw CliErrors['validation'](_0x5b18c8(0x156));return _0x43cede;}
@@ -1 +1 @@
1
- const a204_0x5151ed=a204_0x5e78;(function(_0x505ede,_0x467645){const _0x18c044=a204_0x5e78,_0x13300f=_0x505ede();while(!![]){try{const _0x5ca039=parseInt(_0x18c044(0x118))/0x1+parseInt(_0x18c044(0x11b))/0x2*(parseInt(_0x18c044(0x11f))/0x3)+-parseInt(_0x18c044(0x120))/0x4+-parseInt(_0x18c044(0x10c))/0x5+-parseInt(_0x18c044(0x117))/0x6*(parseInt(_0x18c044(0x11d))/0x7)+-parseInt(_0x18c044(0x123))/0x8*(parseInt(_0x18c044(0x113))/0x9)+-parseInt(_0x18c044(0x121))/0xa*(-parseInt(_0x18c044(0x11e))/0xb);if(_0x5ca039===_0x467645)break;else _0x13300f['push'](_0x13300f['shift']());}catch(_0x59b13a){_0x13300f['push'](_0x13300f['shift']());}}}(a204_0x3e3f,0x4e70d));function a204_0x3e3f(){const _0x4ee8d9=['all','toLowerCase','filter','find','18eetTVx','.jsx','map','some','3948MsTxec','388090ORajCX','page\x20files','endsWith','2hpGtaF','.tsx','3423PiddLA','11FFIaVu','398007aYIMFV','1683340eIhabf','16816620UkdCAB','typescript','2186024zqqfXd','babel','2960125FmrKoY','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','trim'];a204_0x3e3f=function(){return _0x4ee8d9;};return a204_0x3e3f();}import{format}from'prettier';function a204_0x5e78(_0x27a9a4,_0x25dbb4){_0x27a9a4=_0x27a9a4-0x10c;const _0x3e3fbe=a204_0x3e3f();let _0x5e784d=_0x3e3fbe[_0x27a9a4];return _0x5e784d;}const SOURCE_PARSERS={'.js':a204_0x5151ed(0x124),'.jsx':'babel','.ts':a204_0x5151ed(0x122),'.tsx':a204_0x5151ed(0x122)},CUSTOM_PAGE_EXTENSIONS=[a204_0x5151ed(0x114),a204_0x5151ed(0x11c)];export async function validateCustomPageSourceFiles(_0x306519){const _0xb063d6=a204_0x5151ed,_0x2ced70=Object['entries'](_0x306519)[_0xb063d6(0x111)](([_0x11a08f])=>getParser(_0x11a08f));if(!_0x2ced70[_0xb063d6(0x116)](([_0x771d4b])=>isReactSourceFile(_0x771d4b)))return[{'file':_0xb063d6(0x119),'message':_0xb063d6(0x10d)}];const _0x240d33=await Promise[_0xb063d6(0x10f)](_0x2ced70[_0xb063d6(0x115)](async([_0x3efc92,_0x3e6061])=>{try{return await format(_0x3e6061,{'parser':getParser(_0x3efc92)}),undefined;}catch(_0x3f38a3){return{'file':_0x3efc92,'message':_0x3f38a3 instanceof Error?_0x3f38a3['message']:String(_0x3f38a3)};}}));return _0x240d33[_0xb063d6(0x111)](_0xbf3c7c=>_0xbf3c7c!==undefined);}function getParser(_0x23bf84){const _0xe782fc=a204_0x5151ed,_0x3159b6=_0x23bf84[_0xe782fc(0x10e)]()[_0xe782fc(0x110)]();return Object['entries'](SOURCE_PARSERS)[_0xe782fc(0x112)](([_0x2bc424])=>_0x3159b6['endsWith'](_0x2bc424))?.[0x1];}function isReactSourceFile(_0x346d7e){const _0x233040=a204_0x5151ed,_0x484f3a=_0x346d7e[_0x233040(0x10e)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x233040(0x116)](_0x2c80bb=>_0x484f3a[_0x233040(0x11a)](_0x2c80bb));}
1
+ function a204_0x4f2b(){const _0x39b5be=['entries','filter','34639eAjhfd','message','all','find','465VtvjFL','410BJInpB','page\x20files','36VAlGfR','8796624lnNDeZ','8cQFCAl','some','toLowerCase','5565889oTQlBr','map','11iYmzaW','8659350mVRyrw','89538AKiNwN','endsWith','trim','46746siEXvn','babel','183940QjYDHv','typescript','.jsx'];a204_0x4f2b=function(){return _0x39b5be;};return a204_0x4f2b();}const a204_0x1ae0c0=a204_0x3ae0;(function(_0x15aaeb,_0x50dc90){const _0x2f2ea4=a204_0x3ae0,_0xb19875=_0x15aaeb();while(!![]){try{const _0xdde4e0=parseInt(_0x2f2ea4(0x148))/0x1*(parseInt(_0x2f2ea4(0x14f))/0x2)+-parseInt(_0x2f2ea4(0x14a))/0x3*(parseInt(_0x2f2ea4(0x141))/0x4)+-parseInt(_0x2f2ea4(0x13e))/0x5*(-parseInt(_0x2f2ea4(0x14d))/0x6)+-parseInt(_0x2f2ea4(0x146))/0x7*(parseInt(_0x2f2ea4(0x143))/0x8)+-parseInt(_0x2f2ea4(0x149))/0x9+-parseInt(_0x2f2ea4(0x13f))/0xa*(-parseInt(_0x2f2ea4(0x154))/0xb)+parseInt(_0x2f2ea4(0x142))/0xc;if(_0xdde4e0===_0x50dc90)break;else _0xb19875['push'](_0xb19875['shift']());}catch(_0x11735e){_0xb19875['push'](_0xb19875['shift']());}}}(a204_0x4f2b,0x8bc57));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a204_0x1ae0c0(0x14e),'.ts':a204_0x1ae0c0(0x150),'.tsx':a204_0x1ae0c0(0x150)},CUSTOM_PAGE_EXTENSIONS=[a204_0x1ae0c0(0x151),'.tsx'];export async function validateCustomPageSourceFiles(_0x6c7616){const _0x54ab94=a204_0x1ae0c0,_0x152e5c=Object[_0x54ab94(0x152)](_0x6c7616)['filter'](([_0x12df90])=>getParser(_0x12df90));if(!_0x152e5c[_0x54ab94(0x144)](([_0x3e42eb])=>isReactSourceFile(_0x3e42eb)))return[{'file':_0x54ab94(0x140),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x4a46e0=await Promise[_0x54ab94(0x13c)](_0x152e5c[_0x54ab94(0x147)](async([_0x199de3,_0x780514])=>{const _0x5a9afb=_0x54ab94;try{return await format(_0x780514,{'parser':getParser(_0x199de3)}),undefined;}catch(_0xe9995f){return{'file':_0x199de3,'message':_0xe9995f instanceof Error?_0xe9995f[_0x5a9afb(0x155)]:String(_0xe9995f)};}}));return _0x4a46e0[_0x54ab94(0x153)](_0x467f01=>_0x467f01!==undefined);}function getParser(_0x28dfd0){const _0x103a8e=a204_0x1ae0c0,_0x1c9c8a=_0x28dfd0[_0x103a8e(0x14c)]()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)[_0x103a8e(0x13d)](([_0x1ca054])=>_0x1c9c8a[_0x103a8e(0x14b)](_0x1ca054))?.[0x1];}function a204_0x3ae0(_0x499ee3,_0x520155){_0x499ee3=_0x499ee3-0x13c;const _0x4f2bd9=a204_0x4f2b();let _0x3ae071=_0x4f2bd9[_0x499ee3];return _0x3ae071;}function isReactSourceFile(_0x10b86f){const _0x1686ec=a204_0x1ae0c0,_0x1df10f=_0x10b86f[_0x1686ec(0x14c)]()[_0x1686ec(0x145)]();return CUSTOM_PAGE_EXTENSIONS['some'](_0x2bf378=>_0x1df10f[_0x1686ec(0x14b)](_0x2bf378));}
@@ -1 +1 @@
1
- const a205_0x19bd37=a205_0x1d9a;(function(_0x27aa15,_0x5ddfc2){const _0x1d0b93=a205_0x1d9a,_0x5cc9e6=_0x27aa15();while(!![]){try{const _0x2c9985=parseInt(_0x1d0b93(0xbe))/0x1*(-parseInt(_0x1d0b93(0xbd))/0x2)+-parseInt(_0x1d0b93(0xbb))/0x3*(parseInt(_0x1d0b93(0xb8))/0x4)+parseInt(_0x1d0b93(0xbf))/0x5+parseInt(_0x1d0b93(0xae))/0x6+parseInt(_0x1d0b93(0xc3))/0x7+-parseInt(_0x1d0b93(0xac))/0x8*(-parseInt(_0x1d0b93(0xaa))/0x9)+-parseInt(_0x1d0b93(0xc7))/0xa;if(_0x2c9985===_0x5ddfc2)break;else _0x5cc9e6['push'](_0x5cc9e6['shift']());}catch(_0x39e154){_0x5cc9e6['push'](_0x5cc9e6['shift']());}}}(a205_0x4026,0xe0b7b));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x1d9a(_0x1d404f,_0x3929ce){_0x1d404f=_0x1d404f-0xaa;const _0x4026d8=a205_0x4026();let _0x1d9a9f=_0x4026d8[_0x1d404f];return _0x1d9a9f;}function a205_0x4026(){const _0x1ba2f1=['Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','apiError','appCode','write','/smartapi/webcode/page/update/content','Directory\x20containing\x20all\x20complete\x20page\x20files','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','page-content','40tvWPvD','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','trim','494133JNIMwg','appcode','2617204FgRWlx','1TeOnPQ','3423885LrbqqK','isInteger','validation','page-dir','5864922cIfUib','newVersion','page','str','7106910cbMHOY','pageId','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','28233kVXKLG','Updated\x20Custom\x20Page\x20','3928myFddA','pageContent','9143736lcoipp','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.'];a205_0x4026=function(){return _0x1ba2f1;};return a205_0x4026();}export const pageCustomUpdate={'service':a205_0x19bd37(0xc5),'command':'custom-update','description':a205_0x19bd37(0xb6),'risk':a205_0x19bd37(0xb3),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x19bd37(0xb7),'message':a205_0x19bd37(0xc9),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':'number','required':!![],'description':'Custom\x20Page\x20ID'},{'name':a205_0x19bd37(0xc2),'type':'string','required':!![],'description':a205_0x19bd37(0xb5)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x226413){readCustomPageId(_0x226413),await readValidatedPageContent(_0x226413);},async 'dryRun'(_0x28aed8){const _0x332bc6=a205_0x19bd37,_0x5605ee=await readInput(_0x28aed8);return{'method':'POST','url':_0x332bc6(0xb4),'body':{'id':_0x5605ee[_0x332bc6(0xc8)],'codeContent':_0x5605ee[_0x332bc6(0xad)]},'description':_0x332bc6(0xb0)+_0x5605ee[_0x332bc6(0xc8)]+'.'};},async 'execute'(_0x1d5163){const _0x343e32=a205_0x19bd37,_0x510960=await readInput(_0x1d5163),_0x14da6d=await updateCustomPageContent({'pageId':_0x510960[_0x343e32(0xc8)],'pageContent':_0x510960[_0x343e32(0xad)]});if(!Number[_0x343e32(0xc0)](_0x14da6d[_0x343e32(0xc4)])||_0x14da6d[_0x343e32(0xc4)]<=0x0)throw CliErrors[_0x343e32(0xb1)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x22569e=buildCustomPageEditUrl(_0x510960['appCode'],_0x510960[_0x343e32(0xc8)]),_0x1250ed=await resolveCustomPageDevelopmentUrl(_0x510960[_0x343e32(0xb2)],_0x510960[_0x343e32(0xc8)],_0x1d5163['cookie']);return{'ok':!![],'data':{'operation':'page.custom-update','selector':{'appCode':_0x510960[_0x343e32(0xb2)],'pageId':_0x510960[_0x343e32(0xc8)]},'before':null,'after':{'pageId':_0x14da6d[_0x343e32(0xc8)],'version':_0x14da6d['newVersion'],'pageContent':_0x510960['pageContent']},'dryRun':![],'request':_0x510960,..._0x1250ed?{'pageUrl':_0x1250ed}:{},..._0x22569e?{'editPageUrl':_0x22569e}:{},'warnings':_0x1250ed?[]:[_0x343e32(0xaf)]},'message':_0x343e32(0xab)+_0x510960[_0x343e32(0xc8)]+'.'};}};async function readInput(_0x139459){const _0x26087=a205_0x19bd37,_0x2890e1=readCustomPageId(_0x139459),_0x384fd8=_0x139459[_0x26087(0xc6)](_0x26087(0xbc))['trim']()||(await getCustomPageSource(_0x2890e1))[_0x26087(0xb2)]?.[_0x26087(0xba)]();if(!_0x384fd8)throw CliErrors[_0x26087(0xc1)](_0x26087(0xb9)+_0x2890e1+'.');return{'appCode':_0x384fd8,'pageId':_0x2890e1,'pageContent':await readValidatedPageContent(_0x139459)};}async function readValidatedPageContent(_0x4fd48e){const _0x5b37b2=a205_0x19bd37,_0x2bae9e=await readCustomPageDirectory(_0x4fd48e[_0x5b37b2(0xc6)]('page-dir'));return await validateCustomPageContent(_0x2bae9e),_0x2bae9e;}
1
+ const a205_0x1c5791=a205_0x158e;(function(_0x2e05e0,_0x49d519){const _0x17dde3=a205_0x158e,_0x4ee49c=_0x2e05e0();while(!![]){try{const _0x47f855=-parseInt(_0x17dde3(0x150))/0x1*(parseInt(_0x17dde3(0x136))/0x2)+-parseInt(_0x17dde3(0x141))/0x3*(-parseInt(_0x17dde3(0x14d))/0x4)+parseInt(_0x17dde3(0x142))/0x5*(parseInt(_0x17dde3(0x154))/0x6)+parseInt(_0x17dde3(0x156))/0x7*(-parseInt(_0x17dde3(0x14a))/0x8)+parseInt(_0x17dde3(0x139))/0x9+-parseInt(_0x17dde3(0x152))/0xa*(-parseInt(_0x17dde3(0x148))/0xb)+parseInt(_0x17dde3(0x159))/0xc*(-parseInt(_0x17dde3(0x145))/0xd);if(_0x47f855===_0x49d519)break;else _0x4ee49c['push'](_0x4ee49c['shift']());}catch(_0x3f077c){_0x4ee49c['push'](_0x4ee49c['shift']());}}}(a205_0x2708,0x63539));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x158e(_0x3631e1,_0x45374a){_0x3631e1=_0x3631e1-0x135;const _0x27088e=a205_0x2708();let _0x158e64=_0x27088e[_0x3631e1];return _0x158e64;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0x1c5791(0x147),'command':'custom-update','description':a205_0x1c5791(0x137),'risk':'write','defaultOutputFormat':a205_0x1c5791(0x13b),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x1c5791(0x144),'message':a205_0x1c5791(0x140),'hint':a205_0x1c5791(0x13c)}],'flags':[{'name':'id','type':a205_0x1c5791(0x146),'required':!![],'description':a205_0x1c5791(0x13a)},{'name':a205_0x1c5791(0x13e),'type':a205_0x1c5791(0x14b),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x148783){readCustomPageId(_0x148783),await readValidatedPageContent(_0x148783);},async 'dryRun'(_0x3602db){const _0x5a5c77=a205_0x1c5791,_0x15d297=await readInput(_0x3602db);return{'method':_0x5a5c77(0x14c),'url':_0x5a5c77(0x157),'body':{'id':_0x15d297[_0x5a5c77(0x153)],'codeContent':_0x15d297[_0x5a5c77(0x13f)]},'description':_0x5a5c77(0x149)+_0x15d297[_0x5a5c77(0x153)]+'.'};},async 'execute'(_0x101e92){const _0x19b822=a205_0x1c5791,_0x4290df=await readInput(_0x101e92),_0x1b9979=await updateCustomPageContent({'pageId':_0x4290df[_0x19b822(0x153)],'pageContent':_0x4290df['pageContent']});if(!Number[_0x19b822(0x135)](_0x1b9979['newVersion'])||_0x1b9979[_0x19b822(0x155)]<=0x0)throw CliErrors[_0x19b822(0x151)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x556029=buildCustomPageEditUrl(_0x4290df[_0x19b822(0x13d)],_0x4290df[_0x19b822(0x153)]),_0x7727d5=await resolveCustomPageDevelopmentUrl(_0x4290df[_0x19b822(0x13d)],_0x4290df[_0x19b822(0x153)],_0x101e92['cookie']);return{'ok':!![],'data':{'operation':_0x19b822(0x14f),'selector':{'appCode':_0x4290df[_0x19b822(0x13d)],'pageId':_0x4290df['pageId']},'before':null,'after':{'pageId':_0x1b9979[_0x19b822(0x153)],'version':_0x1b9979[_0x19b822(0x155)],'pageContent':_0x4290df[_0x19b822(0x13f)]},'dryRun':![],'request':_0x4290df,..._0x7727d5?{'pageUrl':_0x7727d5}:{},..._0x556029?{'editPageUrl':_0x556029}:{},'warnings':_0x7727d5?[]:[_0x19b822(0x14e)]},'message':_0x19b822(0x138)+_0x4290df[_0x19b822(0x153)]+'.'};}};async function readInput(_0x99a587){const _0x3ac2ea=a205_0x1c5791,_0x577058=readCustomPageId(_0x99a587),_0x40890d=_0x99a587[_0x3ac2ea(0x143)]('appcode')[_0x3ac2ea(0x158)]()||(await getCustomPageSource(_0x577058))[_0x3ac2ea(0x13d)]?.[_0x3ac2ea(0x158)]();if(!_0x40890d)throw CliErrors['validation']('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x577058+'.');return{'appCode':_0x40890d,'pageId':_0x577058,'pageContent':await readValidatedPageContent(_0x99a587)};}function a205_0x2708(){const _0x5880af=['36071vByiQI','/smartapi/webcode/page/update/content','trim','3624jwKtul','isInteger','242Qxsdiw','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','Updated\x20Custom\x20Page\x20','3770334HACaWG','Custom\x20Page\x20ID','compress','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','appCode','page-dir','pageContent','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','16959esMXEC','274180wXbGrg','str','page-content','26585PfLLsF','number','page','11cIoIhE','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','1064XLQDZl','string','POST','244oONaAc','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page.custom-update','241UbFWLm','apiError','8106740qdNeEq','pageId','18MeKkQO','newVersion'];a205_0x2708=function(){return _0x5880af;};return a205_0x2708();}async function readValidatedPageContent(_0x10d29c){const _0x244272=a205_0x1c5791,_0x4e386a=await readCustomPageDirectory(_0x10d29c[_0x244272(0x143)](_0x244272(0x13e)));return await validateCustomPageContent(_0x4e386a),_0x4e386a;}
@@ -1 +1 @@
1
- const a206_0x2bd040=a206_0x5a33;(function(_0x480dff,_0x6cc9d3){const _0x360220=a206_0x5a33,_0x1d18f7=_0x480dff();while(!![]){try{const _0x27cf91=parseInt(_0x360220(0x1fa))/0x1+-parseInt(_0x360220(0x1df))/0x2+-parseInt(_0x360220(0x1e4))/0x3*(parseInt(_0x360220(0x1e3))/0x4)+-parseInt(_0x360220(0x1e7))/0x5*(-parseInt(_0x360220(0x1f3))/0x6)+-parseInt(_0x360220(0x1e0))/0x7+parseInt(_0x360220(0x1ed))/0x8*(-parseInt(_0x360220(0x1f5))/0x9)+parseInt(_0x360220(0x1e5))/0xa*(parseInt(_0x360220(0x1f6))/0xb);if(_0x27cf91===_0x6cc9d3)break;else _0x1d18f7['push'](_0x1d18f7['shift']());}catch(_0x405f16){_0x1d18f7['push'](_0x1d18f7['shift']());}}}(a206_0x59fb,0x3f2e2));function a206_0x5a33(_0x48fd4d,_0x1d55bd){_0x48fd4d=_0x48fd4d-0x1df;const _0x59fbcc=a206_0x59fb();let _0x5a331a=_0x59fbcc[_0x48fd4d];return _0x5a331a;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a206_0x59fb(){const _0x112947=['181741cgcJVZ','relatedPages','/smartapi/lovrabet/dataset/','33208RUaRzt','21YlCSTI','95350FYKkUc','data-list-status','5yoCXZg','source','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','GET','related-pages-fallback','code','109784RqlopZ','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','status','read','nextAction','manualResolutionRequired','908988YlXqJZ','length','81yEUlGa','121eiOiRP','string','name','query-data-list-status','318479xeJUVP','216984QeziNk'];a206_0x59fb=function(){return _0x112947;};return a206_0x59fb();}export const pageDataListStatus={'service':'page','command':a206_0x2bd040(0x1e6),'description':a206_0x2bd040(0x1e9),'risk':a206_0x2bd040(0x1f0),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a206_0x2bd040(0x1f7),'description':a206_0x2bd040(0x1ee)}],async 'validate'(_0x1dcf89){validateDatasetSelector(_0x1dcf89);},async 'dryRun'(_0x34adb9){const _0x524d09=a206_0x2bd040,_0x24b653=await loadDatasetDetailForPage(_0x34adb9);return{'method':_0x524d09(0x1ea),'url':_0x524d09(0x1e2)+_0x24b653[_0x524d09(0x1ec)]+'/standard-page-status?appCode='+encodeURIComponent(_0x34adb9['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x24b653['id'],'code':_0x24b653[_0x524d09(0x1ec)],'name':_0x24b653[_0x524d09(0x1f8)]},'action':_0x524d09(0x1f9)})};},async 'execute'(_0x2e01be){const _0x3e3fa2=a206_0x2bd040,_0x2c2b97=await loadDatasetDetailForPage(_0x2e01be),_0x1cfda6=await loadDataListPageStatusForGenerate(_0x2e01be,_0x2c2b97['code']),_0x24f2bb=getUndeletedRelatedPages(_0x2c2b97),_0x1ebddd=assessDataListPageState(_0x2c2b97[_0x3e3fa2(0x1ec)],_0x1cfda6,{'fallbackUndeletedPages':_0x24f2bb});return{'ok':!![],'data':{'datasetCode':_0x2c2b97[_0x3e3fa2(0x1ec)],'precheckSource':_0x1cfda6?.[_0x3e3fa2(0x1e8)]??_0x3e3fa2(0x1eb),'status':_0x1ebddd[_0x3e3fa2(0x1ef)],'manualResolutionRequired':_0x1ebddd[_0x3e3fa2(0x1f2)],'nextAction':_0x1ebddd[_0x3e3fa2(0x1f1)],'dataListPageStatus':_0x1cfda6,'relatedPages':{'total':_0x2c2b97[_0x3e3fa2(0x1e1)][_0x3e3fa2(0x1f4)],'undeletedCount':_0x24f2bb[_0x3e3fa2(0x1f4)]}}};}};
1
+ const a206_0x38abaf=a206_0x1a90;(function(_0x3de7c4,_0x8f7747){const _0x390d9a=a206_0x1a90,_0x545012=_0x3de7c4();while(!![]){try{const _0x213c93=-parseInt(_0x390d9a(0x68))/0x1*(-parseInt(_0x390d9a(0x71))/0x2)+parseInt(_0x390d9a(0x74))/0x3+parseInt(_0x390d9a(0x6f))/0x4*(parseInt(_0x390d9a(0x65))/0x5)+parseInt(_0x390d9a(0x7b))/0x6+-parseInt(_0x390d9a(0x67))/0x7+parseInt(_0x390d9a(0x75))/0x8+-parseInt(_0x390d9a(0x66))/0x9;if(_0x213c93===_0x8f7747)break;else _0x545012['push'](_0x545012['shift']());}catch(_0x5eec60){_0x545012['push'](_0x545012['shift']());}}}(a206_0x5090,0x5d377));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_0x1a90(_0x37ab8f,_0x38b712){_0x37ab8f=_0x37ab8f-0x65;const _0x50903d=a206_0x5090();let _0x1a90ec=_0x50903d[_0x37ab8f];return _0x1a90ec;}export const pageDataListStatus={'service':a206_0x38abaf(0x79),'command':a206_0x38abaf(0x6c),'description':a206_0x38abaf(0x73),'risk':a206_0x38abaf(0x76),'defaultOutputFormat':a206_0x38abaf(0x69),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x38abaf(0x6a),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x299b5d){validateDatasetSelector(_0x299b5d);},async 'dryRun'(_0x5f2938){const _0x3f6c80=a206_0x38abaf,_0x208493=await loadDatasetDetailForPage(_0x5f2938);return{'method':_0x3f6c80(0x78),'url':'/smartapi/lovrabet/dataset/'+_0x208493[_0x3f6c80(0x6d)]+_0x3f6c80(0x70)+encodeURIComponent(_0x5f2938['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x208493['id'],'code':_0x208493[_0x3f6c80(0x6d)],'name':_0x208493['name']},'action':_0x3f6c80(0x7a)})};},async 'execute'(_0x500e0a){const _0x536dd7=a206_0x38abaf,_0x12725d=await loadDatasetDetailForPage(_0x500e0a),_0x9786a4=await loadDataListPageStatusForGenerate(_0x500e0a,_0x12725d['code']),_0x1032ac=getUndeletedRelatedPages(_0x12725d),_0x42854a=assessDataListPageState(_0x12725d['code'],_0x9786a4,{'fallbackUndeletedPages':_0x1032ac});return{'ok':!![],'data':{'datasetCode':_0x12725d[_0x536dd7(0x6d)],'precheckSource':_0x9786a4?.[_0x536dd7(0x72)]??'related-pages-fallback','status':_0x42854a['status'],'manualResolutionRequired':_0x42854a[_0x536dd7(0x77)],'nextAction':_0x42854a[_0x536dd7(0x6b)],'dataListPageStatus':_0x9786a4,'relatedPages':{'total':_0x12725d[_0x536dd7(0x7c)]['length'],'undeletedCount':_0x1032ac[_0x536dd7(0x6e)]}}};}};function a206_0x5090(){const _0x332055=['code','length','959460LSDdMu','/standard-page-status?appCode=','6bNuhaE','source','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','1020678UfaecL','5589232PtXPgi','read','manualResolutionRequired','GET','page','query-data-list-status','693432yBJiuy','relatedPages','10LxKznR','9018927mDEwbg','3268069Jjiqzm','72201xDzxgb','compress','alias','nextAction','data-list-status'];a206_0x5090=function(){return _0x332055;};return a206_0x5090();}
@@ -1 +1 @@
1
- const a207_0x4b0514=a207_0xf34c;function a207_0x25db(){const _0xd3a9fe=['9LgEZHB','name','alias','6WpSPsy','precheck','5605117Ujdgsf','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','related-pages-fallback','currentStep','POST','compress','Reusing\x20an\x20existing\x20generate\x20task','PARTIAL_SUCCESS','string','page-type','CRUD_PAGE_SET','message','598948KkNYfW','code','number','reused','2264199aGnnzE','page-pattern','1467772XYgxkE','allowGenerate','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','write','status','manualResolutionRequired','fieldCount','source','generate-start','1820980iJkmPX','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','apply','appCode','dataset','page','clientOperationId','dataListPageStatus','20859752RXEUKC','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','progressRate','operationId','SUCCESS','nextAction','315190BlHnwK','bool'];a207_0x25db=function(){return _0xd3a9fe;};return a207_0x25db();}(function(_0x10087c,_0x42ed2f){const _0x5c12d9=a207_0xf34c,_0x224ebe=_0x10087c();while(!![]){try{const _0x1a120a=parseInt(_0x5c12d9(0x20d))/0x1+parseInt(_0x5c12d9(0x1f5))/0x2+parseInt(_0x5c12d9(0x1f3))/0x3+parseInt(_0x5c12d9(0x1ef))/0x4+parseInt(_0x5c12d9(0x1ff))/0x5+-parseInt(_0x5c12d9(0x1e0))/0x6*(-parseInt(_0x5c12d9(0x1e2))/0x7)+-parseInt(_0x5c12d9(0x207))/0x8*(parseInt(_0x5c12d9(0x1dd))/0x9);if(_0x1a120a===_0x42ed2f)break;else _0x224ebe['push'](_0x224ebe['shift']());}catch(_0x2710d5){_0x224ebe['push'](_0x224ebe['shift']());}}}(a207_0x25db,0x7cc1c));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a207_0xf34c(_0x1bd08e,_0x1c2a1e){_0x1bd08e=_0x1bd08e-0x1dd;const _0x25db8a=a207_0x25db();let _0xf34c78=_0x25db8a[_0x1bd08e];return _0xf34c78;}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a207_0x4b0514(0x204),'command':a207_0x4b0514(0x1fe),'description':a207_0x4b0514(0x200),'risk':a207_0x4b0514(0x1f9),'defaultOutputFormat':a207_0x4b0514(0x1e8),'rejectedFlags':[{'name':a207_0x4b0514(0x1ec),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':a207_0x4b0514(0x1f8)},{'name':a207_0x4b0514(0x1f4),'message':a207_0x4b0514(0x1e4),'hint':a207_0x4b0514(0x1f7)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x4b0514(0x1df),'type':a207_0x4b0514(0x1eb),'description':a207_0x4b0514(0x1e3)},{'name':a207_0x4b0514(0x201),'type':'boolean','description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x4d264f){validateDatasetSelector(_0x4d264f);},async 'dryRun'(_0x360328){const _0x8af7fd=a207_0x4b0514,_0xec2b8b=await prepare(_0x360328);return{'method':_0x8af7fd(0x1e7),'url':'/smartapi/lovrabet/dataset/'+_0xec2b8b[_0x8af7fd(0x203)][_0x8af7fd(0x1f0)]+'/generate-standard-pages/start','body':{'appCode':_0x360328[_0x8af7fd(0x202)],'clientOperationId':_0xec2b8b['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0xec2b8b[_0x8af7fd(0x203)]['id'],'code':_0xec2b8b[_0x8af7fd(0x203)][_0x8af7fd(0x1f0)],'name':_0xec2b8b['dataset'][_0x8af7fd(0x1de)],'fieldCount':_0xec2b8b['dataset'][_0x8af7fd(0x1fc)]},'precheckSource':_0xec2b8b[_0x8af7fd(0x206)]?.[_0x8af7fd(0x1fd)]??_0x8af7fd(0x1e5),'action':'generate-start','clientOperationId':_0xec2b8b[_0x8af7fd(0x205)],'plannedStatus':_0xec2b8b[_0x8af7fd(0x1e1)][_0x8af7fd(0x1fa)],'reason':_0xec2b8b['precheck'][_0x8af7fd(0x1ee)]})};},async 'execute'(_0x576316){const _0x4b2712=a207_0x4b0514;if(!_0x576316[_0x4b2712(0x20e)](_0x4b2712(0x201))){const _0x534127=await pageGenerateStart['dryRun'](_0x576316);return{'ok':!![],'message':_0x4b2712(0x208),'data':_0x534127};}const _0x43964c=await prepare(_0x576316);if(!_0x43964c['precheck'][_0x4b2712(0x1f6)])return{'ok':![],'message':_0x43964c['precheck']['message'],'data':{'datasetCode':_0x43964c[_0x4b2712(0x203)][_0x4b2712(0x1f0)],'pageType':'DATA_LIST','pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x43964c[_0x4b2712(0x205)],'precheckSource':_0x43964c[_0x4b2712(0x206)]?.[_0x4b2712(0x1fd)]??_0x4b2712(0x1e5),'status':_0x43964c[_0x4b2712(0x1e1)][_0x4b2712(0x1fa)],'manualResolutionRequired':_0x43964c[_0x4b2712(0x1e1)][_0x4b2712(0x1fb)],'nextAction':_0x43964c[_0x4b2712(0x1e1)][_0x4b2712(0x20c)],'query':{'command':buildDataListPageStatusQueryCommand(_0x43964c['dataset'][_0x4b2712(0x1f0)],_0x576316[_0x4b2712(0x202)])},'dataListPageStatus':_0x43964c[_0x4b2712(0x206)]}};const _0x9b3c32=await startGenerateDataListPages(_0x576316[_0x4b2712(0x202)],_0x43964c[_0x4b2712(0x203)][_0x4b2712(0x1f0)],{'clientOperationId':_0x43964c['clientOperationId']}),_0x28dce7=_0x9b3c32[_0x4b2712(0x1fa)]===_0x4b2712(0x20b)||_0x9b3c32[_0x4b2712(0x1fa)]===_0x4b2712(0x1ea)?await loadDataListPageStatusForGenerate(_0x576316,_0x43964c[_0x4b2712(0x203)][_0x4b2712(0x1f0)]):null,_0x6982fd=assessGenerateOperationState(_0x43964c[_0x4b2712(0x203)][_0x4b2712(0x1f0)],_0x9b3c32['status'],_0x28dce7);return{'ok':!![],'message':_0x9b3c32[_0x4b2712(0x1f2)]?_0x4b2712(0x1e9):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x43964c[_0x4b2712(0x203)]['code'],'appCode':_0x576316[_0x4b2712(0x202)],'pageType':'DATA_LIST','pagePattern':_0x4b2712(0x1ed),'taskId':_0x9b3c32['taskId']??null,'operationId':_0x9b3c32[_0x4b2712(0x20a)]??null,'clientOperationId':_0x43964c[_0x4b2712(0x205)],'jobStatus':_0x9b3c32[_0x4b2712(0x1fa)]??null,'progressRate':typeof _0x9b3c32[_0x4b2712(0x209)]===_0x4b2712(0x1f1)?_0x9b3c32[_0x4b2712(0x209)]:null,'currentStep':_0x9b3c32[_0x4b2712(0x1e6)]??null,'reused':_0x9b3c32[_0x4b2712(0x1f2)]===!![],'status':_0x6982fd[_0x4b2712(0x1fa)],'manualResolutionRequired':_0x6982fd[_0x4b2712(0x1fb)],'nextAction':_0x6982fd[_0x4b2712(0x20c)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x43964c[_0x4b2712(0x203)][_0x4b2712(0x1f0)],{'appCode':_0x576316['appCode'],'taskId':_0x9b3c32['taskId'],'operationId':_0x9b3c32['operationId'],'clientOperationId':_0x43964c[_0x4b2712(0x205)]})},'dataListPageStatus':_0x28dce7}};}};async function prepare(_0x5125dd){const _0x38fbeb=a207_0x4b0514,_0x1f0cc2=await loadDatasetDetailForPage(_0x5125dd),_0x577ba2=await loadDataListPageStatusForGenerate(_0x5125dd,_0x1f0cc2['code']),_0x1e7858=getUndeletedRelatedPages(_0x1f0cc2);return{'dataset':_0x1f0cc2,'dataListPageStatus':_0x577ba2,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x1f0cc2[_0x38fbeb(0x1f0)],_0x577ba2,{'fallbackUndeletedPages':_0x1e7858})};}
1
+ function a207_0x5655(_0xfc9576,_0x2b2897){_0xfc9576=_0xfc9576-0x94;const _0x2f5f94=a207_0x2f5f();let _0x565542=_0x2f5f94[_0xfc9576];return _0x565542;}const a207_0x1bdc2b=a207_0x5655;function a207_0x2f5f(){const _0x15b170=['reused','progressRate','clientOperationId','PARTIAL_SUCCESS','source','dataListPageStatus','number','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','compress','/smartapi/lovrabet/dataset/','/generate-standard-pages/start','CRUD_PAGE_SET','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','4370855NwZEZT','6945008oIzdQf','boolean','apply','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','SUCCESS','precheck','operationId','allowGenerate','status','page-type','currentStep','15971470yRbevr','alias','bool','519270EJmYVd','code','related-pages-fallback','message','appCode','dataset','342vwWHwa','POST','name','DATA_LIST','Reusing\x20an\x20existing\x20generate\x20task','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','nextAction','Submitted\x20a\x20generate\x20task','4EpGVjb','32bfcarW','4268334VinHzc','taskId','845603OdrDhx','page','fieldCount','178912MBzdIc'];a207_0x2f5f=function(){return _0x15b170;};return a207_0x2f5f();}(function(_0x426d20,_0x5aeb84){const _0x270314=a207_0x5655,_0x34a771=_0x426d20();while(!![]){try{const _0x461230=-parseInt(_0x270314(0xb7))/0x1*(parseInt(_0x270314(0xb3))/0x2)+parseInt(_0x270314(0xa4))/0x3*(parseInt(_0x270314(0xb4))/0x4)+-parseInt(_0x270314(0x95))/0x5+parseInt(_0x270314(0xb5))/0x6+-parseInt(_0x270314(0x96))/0x7+parseInt(_0x270314(0xba))/0x8*(parseInt(_0x270314(0xaa))/0x9)+parseInt(_0x270314(0xa1))/0xa;if(_0x461230===_0x5aeb84)break;else _0x34a771['push'](_0x34a771['shift']());}catch(_0x5e0a09){_0x34a771['push'](_0x34a771['shift']());}}}(a207_0x2f5f,0xf09df));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':a207_0x1bdc2b(0xb8),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':'write','defaultOutputFormat':a207_0x1bdc2b(0xc3),'rejectedFlags':[{'name':a207_0x1bdc2b(0x9f),'message':a207_0x1bdc2b(0xc2),'hint':a207_0x1bdc2b(0x99)},{'name':'page-pattern','message':a207_0x1bdc2b(0xc7),'hint':a207_0x1bdc2b(0xaf)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x1bdc2b(0xa2),'type':'string','description':a207_0x1bdc2b(0xb0)},{'name':'apply','type':a207_0x1bdc2b(0x97),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x30adfd){validateDatasetSelector(_0x30adfd);},async 'dryRun'(_0x15c94f){const _0x2d7f65=a207_0x1bdc2b,_0x5de598=await prepare(_0x15c94f);return{'method':_0x2d7f65(0xab),'url':_0x2d7f65(0xc4)+_0x5de598[_0x2d7f65(0xa9)][_0x2d7f65(0xa5)]+_0x2d7f65(0xc5),'body':{'appCode':_0x15c94f['appCode'],'clientOperationId':_0x5de598[_0x2d7f65(0xbd)]},'description':serializeDryRunDescription({'dataset':{'id':_0x5de598[_0x2d7f65(0xa9)]['id'],'code':_0x5de598[_0x2d7f65(0xa9)]['code'],'name':_0x5de598['dataset'][_0x2d7f65(0xac)],'fieldCount':_0x5de598[_0x2d7f65(0xa9)][_0x2d7f65(0xb9)]},'precheckSource':_0x5de598[_0x2d7f65(0xc0)]?.[_0x2d7f65(0xbf)]??_0x2d7f65(0xa6),'action':'generate-start','clientOperationId':_0x5de598[_0x2d7f65(0xbd)],'plannedStatus':_0x5de598[_0x2d7f65(0x9b)][_0x2d7f65(0x9e)],'reason':_0x5de598[_0x2d7f65(0x9b)][_0x2d7f65(0xa7)]})};},async 'execute'(_0x12cf2e){const _0x37e4c3=a207_0x1bdc2b;if(!_0x12cf2e[_0x37e4c3(0xa3)](_0x37e4c3(0x98))){const _0x1459f9=await pageGenerateStart['dryRun'](_0x12cf2e);return{'ok':!![],'message':_0x37e4c3(0x94),'data':_0x1459f9};}const _0x30ff42=await prepare(_0x12cf2e);if(!_0x30ff42[_0x37e4c3(0x9b)][_0x37e4c3(0x9d)])return{'ok':![],'message':_0x30ff42[_0x37e4c3(0x9b)][_0x37e4c3(0xa7)],'data':{'datasetCode':_0x30ff42['dataset']['code'],'pageType':_0x37e4c3(0xad),'pagePattern':_0x37e4c3(0xc6),'clientOperationId':_0x30ff42['clientOperationId'],'precheckSource':_0x30ff42[_0x37e4c3(0xc0)]?.[_0x37e4c3(0xbf)]??_0x37e4c3(0xa6),'status':_0x30ff42[_0x37e4c3(0x9b)][_0x37e4c3(0x9e)],'manualResolutionRequired':_0x30ff42['precheck']['manualResolutionRequired'],'nextAction':_0x30ff42['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x30ff42['dataset'][_0x37e4c3(0xa5)],_0x12cf2e[_0x37e4c3(0xa8)])},'dataListPageStatus':_0x30ff42[_0x37e4c3(0xc0)]}};const _0x2061d3=await startGenerateDataListPages(_0x12cf2e[_0x37e4c3(0xa8)],_0x30ff42[_0x37e4c3(0xa9)][_0x37e4c3(0xa5)],{'clientOperationId':_0x30ff42[_0x37e4c3(0xbd)]}),_0x408c56=_0x2061d3[_0x37e4c3(0x9e)]===_0x37e4c3(0x9a)||_0x2061d3[_0x37e4c3(0x9e)]===_0x37e4c3(0xbe)?await loadDataListPageStatusForGenerate(_0x12cf2e,_0x30ff42['dataset'][_0x37e4c3(0xa5)]):null,_0x2d92dc=assessGenerateOperationState(_0x30ff42['dataset'][_0x37e4c3(0xa5)],_0x2061d3[_0x37e4c3(0x9e)],_0x408c56);return{'ok':!![],'message':_0x2061d3[_0x37e4c3(0xbb)]?_0x37e4c3(0xae):_0x37e4c3(0xb2),'data':{'datasetCode':_0x30ff42[_0x37e4c3(0xa9)][_0x37e4c3(0xa5)],'appCode':_0x12cf2e[_0x37e4c3(0xa8)],'pageType':_0x37e4c3(0xad),'pagePattern':'CRUD_PAGE_SET','taskId':_0x2061d3[_0x37e4c3(0xb6)]??null,'operationId':_0x2061d3[_0x37e4c3(0x9c)]??null,'clientOperationId':_0x30ff42[_0x37e4c3(0xbd)],'jobStatus':_0x2061d3['status']??null,'progressRate':typeof _0x2061d3[_0x37e4c3(0xbc)]===_0x37e4c3(0xc1)?_0x2061d3[_0x37e4c3(0xbc)]:null,'currentStep':_0x2061d3[_0x37e4c3(0xa0)]??null,'reused':_0x2061d3['reused']===!![],'status':_0x2d92dc[_0x37e4c3(0x9e)],'manualResolutionRequired':_0x2d92dc['manualResolutionRequired'],'nextAction':_0x2d92dc[_0x37e4c3(0xb1)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x30ff42['dataset'][_0x37e4c3(0xa5)],{'appCode':_0x12cf2e[_0x37e4c3(0xa8)],'taskId':_0x2061d3['taskId'],'operationId':_0x2061d3['operationId'],'clientOperationId':_0x30ff42[_0x37e4c3(0xbd)]})},'dataListPageStatus':_0x408c56}};}};async function prepare(_0x368ca7){const _0x4348db=a207_0x1bdc2b,_0x3cbf14=await loadDatasetDetailForPage(_0x368ca7),_0x5d9e4b=await loadDataListPageStatusForGenerate(_0x368ca7,_0x3cbf14[_0x4348db(0xa5)]),_0x305b3e=getUndeletedRelatedPages(_0x3cbf14);return{'dataset':_0x3cbf14,'dataListPageStatus':_0x5d9e4b,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3cbf14['code'],_0x5d9e4b,{'fallbackUndeletedPages':_0x305b3e})};}
@@ -1 +1 @@
1
- function a208_0x5756(){const _0xffa63=['/smartapi/lovrabet/dataset/','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','903mwBTAe','number','appCode','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','2576970hTIASw','client-operation-id','clientOperationId','791360uwkfGb','errorMsg','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','query-generate-operation-status','1539130jKYtdT','54uOFuDs','string','SUCCESS','message','progressRate','read','466SuwEWB','compress','status','set','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','nextAction','GET','code','toString','352056sHQbwA','page','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','manualResolutionRequired','/generate-standard-pages/status?','str','226387CYoRLC','alias','taskId','operationId','operation_failed','operation-id','currentStep','367662jbThHH','task-id'];a208_0x5756=function(){return _0xffa63;};return a208_0x5756();}const a208_0xf70a1e=a208_0x8d33;(function(_0x555eaf,_0x4af509){const _0x1a41a0=a208_0x8d33,_0x31309c=_0x555eaf();while(!![]){try{const _0x1bfd6f=-parseInt(_0x1a41a0(0x1bf))/0x1*(parseInt(_0x1a41a0(0x1a5))/0x2)+parseInt(_0x1a41a0(0x1bb))/0x3+parseInt(_0x1a41a0(0x1ae))/0x4+parseInt(_0x1a41a0(0x1ca))/0x5+-parseInt(_0x1a41a0(0x1cb))/0x6*(-parseInt(_0x1a41a0(0x1b4))/0x7)+-parseInt(_0x1a41a0(0x1c6))/0x8+-parseInt(_0x1a41a0(0x1c3))/0x9;if(_0x1bfd6f===_0x4af509)break;else _0x31309c['push'](_0x31309c['shift']());}catch(_0x127a01){_0x31309c['push'](_0x31309c['shift']());}}}(a208_0x5756,0x34336));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';function a208_0x8d33(_0x2c35ed,_0x51552a){_0x2c35ed=_0x2c35ed-0x1a0;const _0x5756f3=a208_0x5756();let _0x8d332a=_0x5756f3[_0x2c35ed];return _0x8d332a;}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0xf70a1e(0x1af),'command':'generate-status','description':a208_0xf70a1e(0x1a9),'risk':a208_0xf70a1e(0x1a4),'defaultOutputFormat':a208_0xf70a1e(0x1a6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0xf70a1e(0x1b5),'type':a208_0xf70a1e(0x1a0),'description':a208_0xf70a1e(0x1be)},{'name':a208_0xf70a1e(0x1bc),'type':a208_0xf70a1e(0x1a0),'description':a208_0xf70a1e(0x1b0)},{'name':a208_0xf70a1e(0x1b9),'type':a208_0xf70a1e(0x1a0),'description':a208_0xf70a1e(0x1c2)},{'name':a208_0xf70a1e(0x1c4),'type':a208_0xf70a1e(0x1a0),'description':a208_0xf70a1e(0x1c8)}],async 'validate'(_0x25c967){validateDatasetSelector(_0x25c967),validateGenerateOperationSelector(_0x25c967);},async 'dryRun'(_0x3a3272){const _0x35d5e9=a208_0xf70a1e,_0x2ce916=await loadDatasetDetailForPage(_0x3a3272),_0x1dcf5a=_0x3a3272[_0x35d5e9(0x1b3)](_0x35d5e9(0x1bc)),_0x4a8ec6=_0x3a3272[_0x35d5e9(0x1b3)](_0x35d5e9(0x1b9)),_0x4bdff2=_0x3a3272[_0x35d5e9(0x1b3)]('client-operation-id'),_0x4b9276=new URLSearchParams({'appCode':_0x3a3272['appCode']});return _0x1dcf5a&&_0x4b9276[_0x35d5e9(0x1a8)]('taskId',_0x1dcf5a),_0x4a8ec6&&_0x4b9276[_0x35d5e9(0x1a8)](_0x35d5e9(0x1b7),_0x4a8ec6),_0x4bdff2&&_0x4b9276['set']('clientOperationId',_0x4bdff2),{'method':_0x35d5e9(0x1ab),'url':_0x35d5e9(0x1bd)+_0x2ce916[_0x35d5e9(0x1ac)]+_0x35d5e9(0x1b2)+_0x4b9276[_0x35d5e9(0x1ad)](),'description':serializeDryRunDescription({'dataset':{'id':_0x2ce916['id'],'code':_0x2ce916[_0x35d5e9(0x1ac)],'name':_0x2ce916['name']},'action':_0x35d5e9(0x1c9),'taskId':_0x1dcf5a||undefined,'operationId':_0x4a8ec6||undefined,'clientOperationId':_0x4bdff2||undefined})};},async 'execute'(_0x27544e){const _0x178536=a208_0xf70a1e,_0x321d5e=await loadDatasetDetailForPage(_0x27544e),_0x47c2af=_0x27544e[_0x178536(0x1b3)]('task-id'),_0x1001ed=_0x27544e['str'](_0x178536(0x1b9)),_0x4c0783=_0x27544e['str'](_0x178536(0x1c4)),_0x5e1b43=await getGenerateDataListPagesStatus(_0x27544e[_0x178536(0x1c1)],_0x321d5e['code'],{'taskId':_0x47c2af||undefined,'operationId':_0x1001ed||undefined,'clientOperationId':_0x4c0783||undefined}),_0x37e14b=_0x5e1b43[_0x178536(0x1a7)]===_0x178536(0x1a1)||_0x5e1b43['status']==='PARTIAL_SUCCESS',_0x53281d=_0x37e14b?await loadDataListPageStatusForGenerate(_0x27544e,_0x321d5e['code']):null,_0x591b12=assessGenerateOperationState(_0x321d5e[_0x178536(0x1ac)],_0x5e1b43['status'],_0x53281d),_0x1818d3=_0x5e1b43[_0x178536(0x1b6)]??_0x47c2af??undefined,_0x3506f7=_0x5e1b43[_0x178536(0x1b7)]??_0x1001ed??undefined,_0x85f5cd=_0x5e1b43[_0x178536(0x1c5)]??_0x4c0783??undefined;return{'ok':!![],'message':_0x591b12[_0x178536(0x1a7)]===_0x178536(0x1b8)?_0x5e1b43[_0x178536(0x1c7)]||_0x591b12['message']:_0x591b12[_0x178536(0x1a2)],'data':{'datasetCode':_0x321d5e['code'],'appCode':_0x27544e[_0x178536(0x1c1)],'taskId':_0x1818d3,'operationId':_0x3506f7,'clientOperationId':_0x85f5cd,'jobStatus':_0x5e1b43[_0x178536(0x1a7)]??null,'progressRate':typeof _0x5e1b43[_0x178536(0x1a3)]===_0x178536(0x1c0)?_0x5e1b43['progressRate']:null,'currentStep':_0x5e1b43[_0x178536(0x1ba)]??null,'errorMsg':_0x5e1b43[_0x178536(0x1c7)]??null,'status':_0x591b12['status'],'manualResolutionRequired':_0x591b12[_0x178536(0x1b1)],'nextAction':_0x591b12[_0x178536(0x1aa)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x321d5e['code'],{'appCode':_0x27544e[_0x178536(0x1c1)],'taskId':_0x1818d3,'operationId':_0x3506f7,'clientOperationId':_0x85f5cd})},'dataListPageStatus':_0x53281d,'result':_0x5e1b43['result']??null}};}};
1
+ const a208_0x26d92b=a208_0x58e3;function a208_0x2cc4(){const _0x18796c=['str','686658KpWDzB','PARTIAL_SUCCESS','operationId','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','read','1387755dGEsoQ','/smartapi/lovrabet/dataset/','page','result','operation_failed','1914200lbQSYo','alias','set','1055pLdzwj','taskId','client-operation-id','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','string','message','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','code','2836AKpGqb','progressRate','381568nRNden','clientOperationId','7ntuZio','operation-id','status','manualResolutionRequired','generate-status','query-generate-operation-status','errorMsg','appCode','38052MYADjy','compress','nextAction','currentStep','109335wzoWXB','task-id'];a208_0x2cc4=function(){return _0x18796c;};return a208_0x2cc4();}(function(_0x243966,_0x373289){const _0x4735a0=a208_0x58e3,_0xb10875=_0x243966();while(!![]){try{const _0x1765db=parseInt(_0x4735a0(0xbb))/0x1+parseInt(_0x4735a0(0xd9))/0x2+parseInt(_0x4735a0(0xbf))/0x3+-parseInt(_0x4735a0(0xd7))/0x4*(-parseInt(_0x4735a0(0xcf))/0x5)+-parseInt(_0x4735a0(0xc2))/0x6*(parseInt(_0x4735a0(0xdb))/0x7)+-parseInt(_0x4735a0(0xcc))/0x8+parseInt(_0x4735a0(0xc7))/0x9;if(_0x1765db===_0x373289)break;else _0xb10875['push'](_0xb10875['shift']());}catch(_0x3339ed){_0xb10875['push'](_0xb10875['shift']());}}}(a208_0x2cc4,0x3493d));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';function a208_0x58e3(_0x23d4d0,_0x150a6e){_0x23d4d0=_0x23d4d0-0xb8;const _0x2cc4fd=a208_0x2cc4();let _0x58e3c9=_0x2cc4fd[_0x23d4d0];return _0x58e3c9;}export const pageGenerateStatus={'service':a208_0x26d92b(0xc9),'command':a208_0x26d92b(0xdf),'description':a208_0x26d92b(0xd5),'risk':a208_0x26d92b(0xc6),'defaultOutputFormat':a208_0x26d92b(0xbc),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x26d92b(0xcd),'type':'string','description':a208_0x26d92b(0xd2)},{'name':a208_0x26d92b(0xc0),'type':a208_0x26d92b(0xd3),'description':a208_0x26d92b(0xc5)},{'name':a208_0x26d92b(0xdc),'type':a208_0x26d92b(0xd3),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x26d92b(0xd1),'type':a208_0x26d92b(0xd3),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x5842a4){validateDatasetSelector(_0x5842a4),validateGenerateOperationSelector(_0x5842a4);},async 'dryRun'(_0x214c61){const _0x3518f3=a208_0x26d92b,_0x1d969e=await loadDatasetDetailForPage(_0x214c61),_0x4727b7=_0x214c61['str']('task-id'),_0x50cf9b=_0x214c61['str'](_0x3518f3(0xdc)),_0x41c01d=_0x214c61[_0x3518f3(0xc1)]('client-operation-id'),_0xce7eb4=new URLSearchParams({'appCode':_0x214c61[_0x3518f3(0xba)]});return _0x4727b7&&_0xce7eb4[_0x3518f3(0xce)]('taskId',_0x4727b7),_0x50cf9b&&_0xce7eb4[_0x3518f3(0xce)](_0x3518f3(0xc4),_0x50cf9b),_0x41c01d&&_0xce7eb4[_0x3518f3(0xce)](_0x3518f3(0xda),_0x41c01d),{'method':'GET','url':_0x3518f3(0xc8)+_0x1d969e[_0x3518f3(0xd6)]+'/generate-standard-pages/status?'+_0xce7eb4['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x1d969e['id'],'code':_0x1d969e[_0x3518f3(0xd6)],'name':_0x1d969e['name']},'action':_0x3518f3(0xb8),'taskId':_0x4727b7||undefined,'operationId':_0x50cf9b||undefined,'clientOperationId':_0x41c01d||undefined})};},async 'execute'(_0x25c799){const _0x363805=a208_0x26d92b,_0x5b3691=await loadDatasetDetailForPage(_0x25c799),_0xe865bb=_0x25c799[_0x363805(0xc1)](_0x363805(0xc0)),_0x248807=_0x25c799[_0x363805(0xc1)](_0x363805(0xdc)),_0x203f02=_0x25c799[_0x363805(0xc1)](_0x363805(0xd1)),_0x1fab71=await getGenerateDataListPagesStatus(_0x25c799[_0x363805(0xba)],_0x5b3691['code'],{'taskId':_0xe865bb||undefined,'operationId':_0x248807||undefined,'clientOperationId':_0x203f02||undefined}),_0x5082fe=_0x1fab71[_0x363805(0xdd)]==='SUCCESS'||_0x1fab71[_0x363805(0xdd)]===_0x363805(0xc3),_0x20e451=_0x5082fe?await loadDataListPageStatusForGenerate(_0x25c799,_0x5b3691[_0x363805(0xd6)]):null,_0x2ec839=assessGenerateOperationState(_0x5b3691[_0x363805(0xd6)],_0x1fab71[_0x363805(0xdd)],_0x20e451),_0x17ac9f=_0x1fab71[_0x363805(0xd0)]??_0xe865bb??undefined,_0x44c7ec=_0x1fab71['operationId']??_0x248807??undefined,_0x4c73a7=_0x1fab71[_0x363805(0xda)]??_0x203f02??undefined;return{'ok':!![],'message':_0x2ec839[_0x363805(0xdd)]===_0x363805(0xcb)?_0x1fab71[_0x363805(0xb9)]||_0x2ec839[_0x363805(0xd4)]:_0x2ec839[_0x363805(0xd4)],'data':{'datasetCode':_0x5b3691['code'],'appCode':_0x25c799['appCode'],'taskId':_0x17ac9f,'operationId':_0x44c7ec,'clientOperationId':_0x4c73a7,'jobStatus':_0x1fab71[_0x363805(0xdd)]??null,'progressRate':typeof _0x1fab71[_0x363805(0xd8)]==='number'?_0x1fab71[_0x363805(0xd8)]:null,'currentStep':_0x1fab71[_0x363805(0xbe)]??null,'errorMsg':_0x1fab71[_0x363805(0xb9)]??null,'status':_0x2ec839[_0x363805(0xdd)],'manualResolutionRequired':_0x2ec839[_0x363805(0xde)],'nextAction':_0x2ec839[_0x363805(0xbd)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x5b3691[_0x363805(0xd6)],{'appCode':_0x25c799['appCode'],'taskId':_0x17ac9f,'operationId':_0x44c7ec,'clientOperationId':_0x4c73a7})},'dataListPageStatus':_0x20e451,'result':_0x1fab71[_0x363805(0xca)]??null}};}};
@@ -1 +1 @@
1
- (function(_0x5559cd,_0x311d23){const _0x4c8ba4=a209_0x4fd7,_0x2d3c88=_0x5559cd();while(!![]){try{const _0x2f247b=-parseInt(_0x4c8ba4(0xc1))/0x1+-parseInt(_0x4c8ba4(0xbc))/0x2*(-parseInt(_0x4c8ba4(0xbd))/0x3)+parseInt(_0x4c8ba4(0xba))/0x4+-parseInt(_0x4c8ba4(0xbe))/0x5*(-parseInt(_0x4c8ba4(0xc0))/0x6)+parseInt(_0x4c8ba4(0xc2))/0x7+-parseInt(_0x4c8ba4(0xbf))/0x8*(parseInt(_0x4c8ba4(0xc3))/0x9)+-parseInt(_0x4c8ba4(0xbb))/0xa;if(_0x2f247b===_0x311d23)break;else _0x2d3c88['push'](_0x2d3c88['shift']());}catch(_0x4a81e3){_0x2d3c88['push'](_0x2d3c88['shift']());}}}(a209_0x4f01,0xbb1db));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';function a209_0x4fd7(_0x506c36,_0x46b0e2){_0x506c36=_0x506c36-0xba;const _0x4f01d6=a209_0x4f01();let _0x4fd760=_0x4f01d6[_0x506c36];return _0x4fd760;}import{pageDataListStatus}from'../../commands/page/data-list-status.js';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';function a209_0x4f01(){const _0x31327a=['3FJsJAE','10CfozOX','11123192zaUaLW','2058798Xvywkt','1058873lOaDyG','10219496QCuTDP','9sBfiAI','4641316wfnZvH','8473250VKbfCo','1513002PtjpTM'];a209_0x4f01=function(){return _0x31327a;};return a209_0x4f01();}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(_0x212a16,_0x26a977){const _0x400e8c=a209_0x2d3c,_0x43cf87=_0x212a16();while(!![]){try{const _0x1bc9d7=-parseInt(_0x400e8c(0x14a))/0x1+parseInt(_0x400e8c(0x14c))/0x2*(parseInt(_0x400e8c(0x14b))/0x3)+parseInt(_0x400e8c(0x143))/0x4*(parseInt(_0x400e8c(0x144))/0x5)+parseInt(_0x400e8c(0x145))/0x6+parseInt(_0x400e8c(0x146))/0x7+parseInt(_0x400e8c(0x148))/0x8+-parseInt(_0x400e8c(0x147))/0x9*(parseInt(_0x400e8c(0x149))/0xa);if(_0x1bc9d7===_0x26a977)break;else _0x43cf87['push'](_0x43cf87['shift']());}catch(_0x278997){_0x43cf87['push'](_0x43cf87['shift']());}}}(a209_0x3d33,0x66e61));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';import{pageSync}from'../../commands/page/sync.js';function a209_0x2d3c(_0x1ca319,_0x511684){_0x1ca319=_0x1ca319-0x143;const _0x3d33ea=a209_0x3d33();let _0x2d3c4c=_0x3d33ea[_0x1ca319];return _0x2d3c4c;}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';function a209_0x3d33(){const _0x57c65f=['1190CCwgPH','648071wSjOjh','18TjFEAe','212716mRmIrK','103636HwspOr','105oBBxyI','572196pFotFs','4885139lEFenX','130833owpbxo','6591736ZpMvRT'];a209_0x3d33=function(){return _0x57c65f;};return a209_0x3d33();}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 +1 @@
1
- const a210_0x392211=a210_0x3b1f;(function(_0x15930e,_0x49c1bb){const _0x18c172=a210_0x3b1f,_0x731278=_0x15930e();while(!![]){try{const _0x53fc16=parseInt(_0x18c172(0x1d2))/0x1+-parseInt(_0x18c172(0x1bc))/0x2+parseInt(_0x18c172(0x1dd))/0x3*(-parseInt(_0x18c172(0x1c0))/0x4)+-parseInt(_0x18c172(0x1dc))/0x5*(-parseInt(_0x18c172(0x1b0))/0x6)+-parseInt(_0x18c172(0x1ab))/0x7+parseInt(_0x18c172(0x1d4))/0x8+-parseInt(_0x18c172(0x1d9))/0x9*(-parseInt(_0x18c172(0x1c3))/0xa);if(_0x53fc16===_0x49c1bb)break;else _0x731278['push'](_0x731278['shift']());}catch(_0x583e30){_0x731278['push'](_0x731278['shift']());}}}(a210_0x5594,0x338ae));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';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':'page','command':'pull','description':a210_0x392211(0x1c2),'risk':a210_0x392211(0x1b4),'defaultOutputFormat':a210_0x392211(0x1d7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x392211(0x1bf),'description':a210_0x392211(0x1aa)},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a210_0x392211(0x1ca)},{'name':'version-tag','type':'string','description':a210_0x392211(0x1a9)},{'name':a210_0x392211(0x1d8),'type':a210_0x392211(0x1b1),'description':a210_0x392211(0x1b7)}],async 'validate'(_0x2c903b){validatePageTargetSelector(_0x2c903b);},async 'dryRun'(_0x2df7c5){const _0x278014=a210_0x392211,_0x3b8059=await buildPullPlan(_0x2df7c5);return{'method':'GET','url':_0x3b8059[_0x278014(0x1db)]===_0x278014(0x1cd)?_0x278014(0x1b3)+(_0x3b8059[_0x278014(0x1cf)][0x0]?.[_0x278014(0x1ac)][_0x278014(0x1ba)]??''):_0x278014(0x1b6),'body':{'appCode':_0x2df7c5[_0x278014(0x1d3)],'mode':_0x3b8059['mode'],'targetDatasetCode':_0x3b8059[_0x278014(0x1c1)]??null,'pages':_0x3b8059[_0x278014(0x1cf)]['map'](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x3b8059[_0x278014(0x1db)],'datasetCode':_0x3b8059['datasetCode']??null,'totalCandidates':_0x3b8059['items'][_0x278014(0x1c9)],'totalWouldPull':_0x3b8059['items']['filter'](_0x5006b4=>_0x5006b4[_0x278014(0x1df)]==='would_pull')[_0x278014(0x1c9)],'totalConflicts':_0x3b8059[_0x278014(0x1cf)][_0x278014(0x1e0)](_0x4d97d5=>_0x4d97d5[_0x278014(0x1df)]==='conflict')[_0x278014(0x1c9)]})};},async 'execute'(_0x3549fb){const _0x549801=a210_0x392211,_0x2c114b=loadPageProjectConfig(_0x3549fb[_0x549801(0x1d3)]),_0x3c6b28=await readPageLockFile(_0x2c114b[_0x549801(0x1bb)]),{lockData:_0x29a15b,appLock:_0x4c4406}=ensurePageLockScope(_0x3c6b28??createEmptyPageLock(),_0x3549fb[_0x549801(0x1d3)]),_0x3a2b57=await buildPullPlan(_0x3549fb),_0x363dee=_0x3549fb[_0x549801(0x1b9)](_0x549801(0x1d8));if(_0x3a2b57[_0x549801(0x1db)]===_0x549801(0x1cd)&&_0x3a2b57[_0x549801(0x1cf)][0x0]?.['status']===_0x549801(0x1e1)&&!_0x363dee)throw CliErrors[_0x549801(0x1d6)](_0x549801(0x1c6)+_0x3a2b57[_0x549801(0x1cf)][0x0][_0x549801(0x1e2)],_0x549801(0x1cc));const _0x2296f7=[],_0x5b82b7=[];for(const _0x451e46 of _0x3a2b57[_0x549801(0x1cf)]){if(_0x451e46[_0x549801(0x1df)]===_0x549801(0x1e1)&&!_0x363dee){_0x5b82b7[_0x549801(0x1c4)]({'pageId':_0x451e46[_0x549801(0x1ac)][_0x549801(0x1ba)],'type':_0x451e46[_0x549801(0x1ac)]['type'],'title':_0x451e46[_0x549801(0x1ac)]['name'],'localPath':_0x451e46[_0x549801(0x1e2)],'reason':_0x451e46[_0x549801(0x1a8)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x451e46[_0x549801(0x1e2)]);const _0x31d10a=serializePageSchemaForFile(_0x451e46[_0x549801(0x1ac)][_0x549801(0x1de)]);await writeFile(_0x451e46[_0x549801(0x1e2)],_0x31d10a,_0x549801(0x1ad)),_0x4c4406[_0x549801(0x1d5)][String(_0x451e46['detail'][_0x549801(0x1ba)])]=buildLockEntry(_0x451e46['detail'],_0x31d10a),_0x2296f7[_0x549801(0x1c4)]({'pageId':_0x451e46['detail'][_0x549801(0x1ba)],'type':_0x451e46[_0x549801(0x1ac)][_0x549801(0x1bd)],'title':_0x451e46['detail']['name'],'localPath':_0x451e46['localPath']});}return _0x4c4406['lastSync']=new Date()['toISOString'](),await writePageLockFile(_0x2c114b[_0x549801(0x1bb)],_0x29a15b),{'ok':!![],'message':_0x549801(0x1b8)+_0x2296f7[_0x549801(0x1c9)]+'\x20pulled,\x20'+_0x5b82b7['length']+'\x20skipped','data':{'appCode':_0x3549fb[_0x549801(0x1d3)],'pulledPages':_0x2296f7,'skippedPages':_0x5b82b7,'totalPulled':_0x2296f7[_0x549801(0x1c9)],'totalSkipped':_0x5b82b7['length']}};}};function a210_0x3b1f(_0x518630,_0x6f2497){_0x518630=_0x518630-0x1a7;const _0x559427=a210_0x5594();let _0x3b1f3e=_0x559427[_0x518630];return _0x3b1f3e;}async function buildPullPlan(_0x412c41){const _0x3fe59b=a210_0x392211,_0x2f8ef1=loadPageProjectConfig(_0x412c41['appCode']),_0x2b11f6=await readPageLockFile(_0x2f8ef1['lockFilePath']),{appLock:_0x137bc9}=ensurePageLockScope(_0x2b11f6??createEmptyPageLock(),_0x412c41[_0x3fe59b(0x1d3)]),_0x27b627=getPageIdFlag(_0x412c41);if(_0x27b627!==undefined){const _0x2c9db3=await loadPageDetailForPage(_0x412c41,_0x27b627);return{'mode':_0x3fe59b(0x1cd),'items':[await inspectPullTarget(_0x2f8ef1,_0x137bc9[_0x3fe59b(0x1d5)][String(_0x2c9db3['pageId'])],_0x2c9db3)]};}const _0x3b75ae=await loadDatasetDetailForPage(_0x412c41),_0x494c5b=_0x3b75ae[_0x3fe59b(0x1ae)][_0x3fe59b(0x1e0)](_0xdbcff9=>!_0xdbcff9[_0x3fe59b(0x1ce)]);if(_0x494c5b['length']===0x0)throw CliErrors[_0x3fe59b(0x1d6)](_0x3fe59b(0x1c8)+_0x3b75ae[_0x3fe59b(0x1de)]+'\x22\x20has\x20no\x20undeleted\x20related\x20pages.');const _0x14b452=await Promise[_0x3fe59b(0x1d0)](_0x494c5b['map'](_0x339b2b=>loadPageDetailForPage(_0x412c41,_0x339b2b['id']))),_0x51131d=selectVersionTagGroup(_0x14b452,_0x549269=>_0x549269[_0x3fe59b(0x1cb)],_0x412c41[_0x3fe59b(0x1be)](_0x3fe59b(0x1da)));return{'mode':_0x3fe59b(0x1b2),'datasetCode':_0x3b75ae[_0x3fe59b(0x1de)],'items':await Promise[_0x3fe59b(0x1d0)](_0x51131d[_0x3fe59b(0x1cf)][_0x3fe59b(0x1c7)](_0x38fb29=>inspectPullTarget(_0x2f8ef1,_0x137bc9['pages'][String(_0x38fb29[_0x3fe59b(0x1ba)])],_0x38fb29)))};}async function inspectPullTarget(_0x4ff8c8,_0x3e150c,_0x5157e6){const _0x3c509f=a210_0x392211,_0x16d3b7=resolvePageFilePath(_0x4ff8c8,_0x5157e6[_0x3c509f(0x1ba)],_0x5157e6[_0x3c509f(0x1bd)]),_0x343dfa=await fileExists(_0x16d3b7);if(!_0x343dfa){const _0x3d040d=serializePageSchemaForFile(_0x5157e6[_0x3c509f(0x1de)]);return{'detail':_0x5157e6,'localPath':_0x16d3b7,'localHash':computePageContentHash(_0x3d040d),'status':_0x3c509f(0x1b5)};}const _0x1464e9=await computePageFileHash(_0x16d3b7);if(!_0x3e150c||_0x1464e9!==_0x3e150c[_0x3c509f(0x1d1)])return{'detail':_0x5157e6,'localPath':_0x16d3b7,'localHash':_0x1464e9,'status':_0x3c509f(0x1e1),'reason':_0x3c509f(0x1af)};return{'detail':_0x5157e6,'localPath':_0x16d3b7,'localHash':_0x1464e9,'status':_0x3c509f(0x1b5)};}function buildLockEntry(_0x31b1f7,_0x451511){const _0x2c7088=a210_0x392211;return{'hash':computePageContentHash(_0x451511),'pageId':_0x31b1f7[_0x2c7088(0x1ba)],'pageVersion':_0x31b1f7['pageVersion'],'type':_0x31b1f7[_0x2c7088(0x1bd)],'title':_0x31b1f7[_0x2c7088(0x1c5)],'datasetIds':_0x31b1f7[_0x2c7088(0x1a7)],'versionTag':_0x31b1f7['versionTag']};}function toPreviewItem(_0x39b66e){const _0xb252bc=a210_0x392211;return{'pageId':_0x39b66e[_0xb252bc(0x1ac)][_0xb252bc(0x1ba)],'type':_0x39b66e[_0xb252bc(0x1ac)][_0xb252bc(0x1bd)],'title':_0x39b66e[_0xb252bc(0x1ac)][_0xb252bc(0x1c5)],'localPath':_0x39b66e[_0xb252bc(0x1e2)],'status':_0x39b66e[_0xb252bc(0x1df)],..._0x39b66e[_0xb252bc(0x1a8)]?{'reason':_0x39b66e['reason']}:{}};}function a210_0x5594(){const _0x3a1512=['datasetCode','Pull\x20page\x20schema\x20to\x20local\x20files','923690ToCsyl','push','name','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','map','Dataset\x20\x22','length','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','versionTag','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','single','deleted','items','all','hash','195678bYIQVv','appCode','2113920VrTxEc','pages','validation','compress','force','18yWVZmd','version-tag','mode','1149520vWvLHu','352599LOyagL','code','status','filter','conflict','localPath','datasetIds','reason','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Page\x20ID','270991cHJKNa','detail','utf8','relatedPages','local\x20unsynced\x20changes','6qbmEwF','boolean','batch','/smartapi/lovrabet/detail?pageId=','read','would_pull','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','Pull\x20complete:\x20','bool','pageId','lockFilePath','779326ZLdEeP','type','str','number','8gzGCtR'];a210_0x5594=function(){return _0x3a1512;};return a210_0x5594();}
1
+ function a210_0x35eb(){const _0xb9f1e=['1022XnNIeF','bool','would_pull','12KdrDPd','6906vYEtNN','conflict','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','string','3126erhOHC','number','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','force','562OZJBVs','lockFilePath','relatedPages','Page\x20ID','items','2876iTYgmd','map','/smartapi/lovrabet/detail?pageId=','detail','type','push','448RCYjPO','filter','utf8','localPath','read','mode','status','single','length','Dataset\x20\x22','Pull\x20page\x20schema\x20to\x20local\x20files','lastSync','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','deleted','toISOString','3524114Mtqutm','pageVersion','code','\x20skipped','hash','appCode','1567125JFDIPJ','compress','377200CpueJi','validation','pages','local\x20unsynced\x20changes','pageId','GET','datasetIds','versionTag','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','Pull\x20complete:\x20','8NlShho','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','pull','all','name','datasetCode','6299703mqIrFO','alias','reason'];a210_0x35eb=function(){return _0xb9f1e;};return a210_0x35eb();}const a210_0x269def=a210_0xbcb7;(function(_0x28a229,_0x5e5e54){const _0x46010d=a210_0xbcb7,_0x202a86=_0x28a229();while(!![]){try{const _0x142c65=-parseInt(_0x46010d(0x14b))/0x1*(-parseInt(_0x46010d(0x150))/0x2)+parseInt(_0x46010d(0x186))/0x3*(parseInt(_0x46010d(0x156))/0x4)+-parseInt(_0x46010d(0x16b))/0x5+-parseInt(_0x46010d(0x18a))/0x6*(-parseInt(_0x46010d(0x182))/0x7)+parseInt(_0x46010d(0x179))/0x8*(-parseInt(_0x46010d(0x17f))/0x9)+-parseInt(_0x46010d(0x16d))/0xa+parseInt(_0x46010d(0x165))/0xb*(parseInt(_0x46010d(0x185))/0xc);if(_0x142c65===_0x5e5e54)break;else _0x202a86['push'](_0x202a86['shift']());}catch(_0x21974a){_0x202a86['push'](_0x202a86['shift']());}}}(a210_0x35eb,0x646ac));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';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';function a210_0xbcb7(_0x5aa77e,_0x2447b6){_0x5aa77e=_0x5aa77e-0x149;const _0x35eb67=a210_0x35eb();let _0xbcb75b=_0x35eb67[_0x5aa77e];return _0xbcb75b;}import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x269def(0x17b),'description':a210_0x269def(0x160),'risk':a210_0x269def(0x15a),'defaultOutputFormat':a210_0x269def(0x16c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x269def(0x18b),'description':a210_0x269def(0x14e)},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x269def(0x180),'type':'string','description':a210_0x269def(0x162)},{'name':'version-tag','type':a210_0x269def(0x189),'description':a210_0x269def(0x175)},{'name':a210_0x269def(0x14a),'type':'boolean','description':a210_0x269def(0x177)}],async 'validate'(_0x53fcc4){validatePageTargetSelector(_0x53fcc4);},async 'dryRun'(_0x47fda3){const _0x1a5730=a210_0x269def,_0x3be19f=await buildPullPlan(_0x47fda3);return{'method':_0x1a5730(0x172),'url':_0x3be19f[_0x1a5730(0x15b)]===_0x1a5730(0x15d)?_0x1a5730(0x152)+(_0x3be19f['items'][0x0]?.['detail'][_0x1a5730(0x171)]??''):_0x1a5730(0x188),'body':{'appCode':_0x47fda3[_0x1a5730(0x16a)],'mode':_0x3be19f[_0x1a5730(0x15b)],'targetDatasetCode':_0x3be19f['datasetCode']??null,'pages':_0x3be19f[_0x1a5730(0x14f)][_0x1a5730(0x151)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x3be19f[_0x1a5730(0x15b)],'datasetCode':_0x3be19f[_0x1a5730(0x17e)]??null,'totalCandidates':_0x3be19f[_0x1a5730(0x14f)]['length'],'totalWouldPull':_0x3be19f[_0x1a5730(0x14f)][_0x1a5730(0x157)](_0x3b9947=>_0x3b9947[_0x1a5730(0x15c)]===_0x1a5730(0x184))[_0x1a5730(0x15e)],'totalConflicts':_0x3be19f[_0x1a5730(0x14f)][_0x1a5730(0x157)](_0x421677=>_0x421677[_0x1a5730(0x15c)]===_0x1a5730(0x187))['length']})};},async 'execute'(_0x274c6e){const _0x1a397b=a210_0x269def,_0x1cbb77=loadPageProjectConfig(_0x274c6e['appCode']),_0x1ad7e0=await readPageLockFile(_0x1cbb77[_0x1a397b(0x14c)]),{lockData:_0x3c8326,appLock:_0xc1a074}=ensurePageLockScope(_0x1ad7e0??createEmptyPageLock(),_0x274c6e[_0x1a397b(0x16a)]),_0x3baa6f=await buildPullPlan(_0x274c6e),_0x340390=_0x274c6e[_0x1a397b(0x183)](_0x1a397b(0x14a));if(_0x3baa6f[_0x1a397b(0x15b)]===_0x1a397b(0x15d)&&_0x3baa6f['items'][0x0]?.[_0x1a397b(0x15c)]===_0x1a397b(0x187)&&!_0x340390)throw CliErrors[_0x1a397b(0x16e)](_0x1a397b(0x17a)+_0x3baa6f[_0x1a397b(0x14f)][0x0][_0x1a397b(0x159)],_0x1a397b(0x176));const _0x1eab68=[],_0x2bc497=[];for(const _0x1cd168 of _0x3baa6f['items']){if(_0x1cd168[_0x1a397b(0x15c)]===_0x1a397b(0x187)&&!_0x340390){_0x2bc497[_0x1a397b(0x155)]({'pageId':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x171)],'type':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x154)],'title':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x17d)],'localPath':_0x1cd168[_0x1a397b(0x159)],'reason':_0x1cd168[_0x1a397b(0x181)]??_0x1a397b(0x170)});continue;}await ensureParentDirectory(_0x1cd168[_0x1a397b(0x159)]);const _0x5a2294=serializePageSchemaForFile(_0x1cd168[_0x1a397b(0x153)]['code']);await writeFile(_0x1cd168[_0x1a397b(0x159)],_0x5a2294,_0x1a397b(0x158)),_0xc1a074[_0x1a397b(0x16f)][String(_0x1cd168[_0x1a397b(0x153)]['pageId'])]=buildLockEntry(_0x1cd168['detail'],_0x5a2294),_0x1eab68[_0x1a397b(0x155)]({'pageId':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x171)],'type':_0x1cd168[_0x1a397b(0x153)][_0x1a397b(0x154)],'title':_0x1cd168[_0x1a397b(0x153)]['name'],'localPath':_0x1cd168[_0x1a397b(0x159)]});}return _0xc1a074[_0x1a397b(0x161)]=new Date()[_0x1a397b(0x164)](),await writePageLockFile(_0x1cbb77[_0x1a397b(0x14c)],_0x3c8326),{'ok':!![],'message':_0x1a397b(0x178)+_0x1eab68[_0x1a397b(0x15e)]+'\x20pulled,\x20'+_0x2bc497[_0x1a397b(0x15e)]+_0x1a397b(0x168),'data':{'appCode':_0x274c6e[_0x1a397b(0x16a)],'pulledPages':_0x1eab68,'skippedPages':_0x2bc497,'totalPulled':_0x1eab68[_0x1a397b(0x15e)],'totalSkipped':_0x2bc497['length']}};}};async function buildPullPlan(_0x3ad4ea){const _0x45b062=a210_0x269def,_0x2abf8a=loadPageProjectConfig(_0x3ad4ea[_0x45b062(0x16a)]),_0x4a9c4f=await readPageLockFile(_0x2abf8a['lockFilePath']),{appLock:_0x347343}=ensurePageLockScope(_0x4a9c4f??createEmptyPageLock(),_0x3ad4ea[_0x45b062(0x16a)]),_0xd52654=getPageIdFlag(_0x3ad4ea);if(_0xd52654!==undefined){const _0x1d3f0e=await loadPageDetailForPage(_0x3ad4ea,_0xd52654);return{'mode':_0x45b062(0x15d),'items':[await inspectPullTarget(_0x2abf8a,_0x347343[_0x45b062(0x16f)][String(_0x1d3f0e[_0x45b062(0x171)])],_0x1d3f0e)]};}const _0x1ef037=await loadDatasetDetailForPage(_0x3ad4ea),_0x58a7a6=_0x1ef037[_0x45b062(0x14d)][_0x45b062(0x157)](_0x5e118d=>!_0x5e118d[_0x45b062(0x163)]);if(_0x58a7a6[_0x45b062(0x15e)]===0x0)throw CliErrors[_0x45b062(0x16e)](_0x45b062(0x15f)+_0x1ef037[_0x45b062(0x167)]+_0x45b062(0x149));const _0x2119eb=await Promise[_0x45b062(0x17c)](_0x58a7a6[_0x45b062(0x151)](_0x337370=>loadPageDetailForPage(_0x3ad4ea,_0x337370['id']))),_0x156ba2=selectVersionTagGroup(_0x2119eb,_0x127225=>_0x127225[_0x45b062(0x174)],_0x3ad4ea['str']('version-tag'));return{'mode':'batch','datasetCode':_0x1ef037[_0x45b062(0x167)],'items':await Promise[_0x45b062(0x17c)](_0x156ba2[_0x45b062(0x14f)][_0x45b062(0x151)](_0x5cdaba=>inspectPullTarget(_0x2abf8a,_0x347343[_0x45b062(0x16f)][String(_0x5cdaba[_0x45b062(0x171)])],_0x5cdaba)))};}async function inspectPullTarget(_0x3cb333,_0x170c7d,_0xcff171){const _0x1b7f45=a210_0x269def,_0xc97740=resolvePageFilePath(_0x3cb333,_0xcff171[_0x1b7f45(0x171)],_0xcff171[_0x1b7f45(0x154)]),_0x3e856a=await fileExists(_0xc97740);if(!_0x3e856a){const _0x2f0395=serializePageSchemaForFile(_0xcff171[_0x1b7f45(0x167)]);return{'detail':_0xcff171,'localPath':_0xc97740,'localHash':computePageContentHash(_0x2f0395),'status':_0x1b7f45(0x184)};}const _0x273d69=await computePageFileHash(_0xc97740);if(!_0x170c7d||_0x273d69!==_0x170c7d[_0x1b7f45(0x169)])return{'detail':_0xcff171,'localPath':_0xc97740,'localHash':_0x273d69,'status':_0x1b7f45(0x187),'reason':'local\x20unsynced\x20changes'};return{'detail':_0xcff171,'localPath':_0xc97740,'localHash':_0x273d69,'status':_0x1b7f45(0x184)};}function buildLockEntry(_0x30a3d5,_0x1533fa){const _0x4cc94d=a210_0x269def;return{'hash':computePageContentHash(_0x1533fa),'pageId':_0x30a3d5[_0x4cc94d(0x171)],'pageVersion':_0x30a3d5[_0x4cc94d(0x166)],'type':_0x30a3d5[_0x4cc94d(0x154)],'title':_0x30a3d5[_0x4cc94d(0x17d)],'datasetIds':_0x30a3d5[_0x4cc94d(0x173)],'versionTag':_0x30a3d5[_0x4cc94d(0x174)]};}function toPreviewItem(_0x116ea8){const _0x4c0fa9=a210_0x269def;return{'pageId':_0x116ea8[_0x4c0fa9(0x153)][_0x4c0fa9(0x171)],'type':_0x116ea8[_0x4c0fa9(0x153)][_0x4c0fa9(0x154)],'title':_0x116ea8[_0x4c0fa9(0x153)][_0x4c0fa9(0x17d)],'localPath':_0x116ea8[_0x4c0fa9(0x159)],'status':_0x116ea8[_0x4c0fa9(0x15c)],..._0x116ea8['reason']?{'reason':_0x116ea8[_0x4c0fa9(0x181)]}:{}};}