@lovrabet/rabetbase-cli 2.5.12 → 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
- function a199_0x34e4(){const _0x4d2024=['6KBYuhP','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','compress','332464OifebT','BLANK','write','files','parentMenuId','keys','create','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','menuPath','../../../templates/custom-pages','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Would\x20create\x20Custom\x20Page\x20','1130331UqtVzr','5899616zSGowA','/smartapi/webcode/page/create','number','appCode','Custom_page_','10566689IaFwmG','utf8','CUSTOM','version','DASHBOARD','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','page-content','apiError','page','240780uNRBbk','12MeFTQI','str','isInteger','6051429wYNTMr','page-dir','createMenu','Custom\x20Page\x20pattern\x20not\x20found:\x20','\x20and\x20its\x20menu\x20entry.','.json','num','220996ZuvOvI','name','trim','page-type','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','now','pageName','page.create','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','parent-menu-id','page-pattern','Invalid\x20Custom\x20Page\x20pattern:\x20','length','toLowerCase','page\x20create\x20does\x20not\x20accept\x20--page-type.','menuId','object','pageId','string','validation','includes','values'];a199_0x34e4=function(){return _0x4d2024;};return a199_0x34e4();}const a199_0x36c169=a199_0x1cb0;(function(_0xf2c3ac,_0x45233f){const _0x4fd0ba=a199_0x1cb0,_0x55a984=_0xf2c3ac();while(!![]){try{const _0x4151d4=parseInt(_0x4fd0ba(0x115))/0x1+-parseInt(_0x4fd0ba(0xec))/0x2*(-parseInt(_0x4fd0ba(0x125))/0x3)+-parseInt(_0x4fd0ba(0x116))/0x4+-parseInt(_0x4fd0ba(0x124))/0x5+parseInt(_0x4fd0ba(0x104))/0x6*(parseInt(_0x4fd0ba(0x11b))/0x7)+-parseInt(_0x4fd0ba(0x107))/0x8+-parseInt(_0x4fd0ba(0x128))/0x9;if(_0x4151d4===_0x45233f)break;else _0x55a984['push'](_0x55a984['shift']());}catch(_0x5300f5){_0x55a984['push'](_0x55a984['shift']());}}}(a199_0x34e4,0xce433));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';function a199_0x1cb0(_0x4d84f8,_0x1ed216){_0x4d84f8=_0x4d84f8-0xec;const _0x34e4ee=a199_0x34e4();let _0x1cb0b2=_0x34e4ee[_0x4d84f8];return _0x1cb0b2;}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_0x36c169(0x108),'ONEPAGE',a199_0x36c169(0x11f)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x36c169(0x112));export const pageCreate={'service':a199_0x36c169(0x123),'command':a199_0x36c169(0x10d),'description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':a199_0x36c169(0x109),'defaultOutputFormat':a199_0x36c169(0x106),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x36c169(0xef),'message':a199_0x36c169(0xfc),'hint':a199_0x36c169(0x113)},{'name':a199_0x36c169(0x121),'message':'page\x20create\x20no\x20longer\x20accepts\x20--page-content.','hint':a199_0x36c169(0x10f)}],'flags':[{'name':a199_0x36c169(0xed),'type':a199_0x36c169(0x100),'description':a199_0x36c169(0xf0)},{'name':a199_0x36c169(0xf7),'type':a199_0x36c169(0x118),'description':a199_0x36c169(0xf1)},{'name':a199_0x36c169(0xf8),'type':a199_0x36c169(0x100),'description':a199_0x36c169(0xf6),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x36c169(0x129),'type':a199_0x36c169(0x100),'description':a199_0x36c169(0x120)},APPCODE_FLAG],async 'validate'(_0x55699f){await readValidatedPageSource(_0x55699f);},async 'dryRun'(_0x15c429){const _0x57af17=a199_0x36c169,_0xfd04d3=readInput(_0x15c429,await readValidatedPageSource(_0x15c429));return{'method':'POST','url':_0x57af17(0x117),'body':{'appCode':_0xfd04d3[_0x57af17(0x119)],'pageName':_0xfd04d3[_0x57af17(0xf3)],..._0xfd04d3[_0x57af17(0x10b)]!=null?{'parentMenuId':_0xfd04d3[_0x57af17(0x10b)]}:{},'createMenu':_0xfd04d3[_0x57af17(0x12a)],'codeContent':_0xfd04d3[_0x57af17(0x10a)]},'description':_0x57af17(0x114)+JSON['stringify'](_0xfd04d3['pageName'])+_0x57af17(0x12c)};},async 'execute'(_0x1505ce){const _0x412077=a199_0x36c169,_0x4fcc1c=readInput(_0x1505ce,await readValidatedPageSource(_0x1505ce)),_0x208c62=await createCustomPage(_0x4fcc1c);if(!Number[_0x412077(0x127)](_0x208c62[_0x412077(0xff)])||_0x208c62[_0x412077(0xff)]<=0x0)throw CliErrors[_0x412077(0x122)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x5790ef=buildCustomPageDevelopmentUrl(_0x4fcc1c[_0x412077(0x119)],_0x208c62[_0x412077(0x111)]),_0x76d52d=buildCustomPageEditUrl(_0x4fcc1c[_0x412077(0x119)],_0x208c62[_0x412077(0xff)]);return{'ok':!![],'data':{'operation':_0x412077(0xf4),'pageType':_0x412077(0x11d),'pagePattern':readPagePattern(_0x1505ce),'selector':{'appCode':_0x4fcc1c['appCode'],'pageName':_0x4fcc1c[_0x412077(0xf3)]},'before':null,'after':{'pageId':_0x208c62[_0x412077(0xff)],'pageName':_0x208c62[_0x412077(0xf3)],'appCode':_0x208c62[_0x412077(0x119)],'version':_0x208c62[_0x412077(0x11e)],'menuId':_0x208c62[_0x412077(0xfd)],'menuPath':_0x208c62[_0x412077(0x111)],'files':_0x208c62[_0x412077(0x10a)]??Object['keys'](_0x4fcc1c[_0x412077(0x10a)])},'dryRun':![],'request':_0x4fcc1c,..._0x5790ef?{'pageUrl':_0x5790ef}:{},..._0x76d52d?{'editPageUrl':_0x76d52d}:{},'warnings':_0x5790ef?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':'Created\x20Custom\x20Page\x20'+_0x208c62[_0x412077(0xff)]+'.'};}};function readPagePattern(_0x2a9736){const _0x1da48a=a199_0x36c169,_0x52486f=_0x2a9736[_0x1da48a(0x126)](_0x1da48a(0xf8))[_0x1da48a(0xee)](),_0xcf2680=_0x2a9736[_0x1da48a(0x126)]('page-dir')[_0x1da48a(0xee)]();if(_0x52486f&&_0xcf2680)throw CliErrors['validation'](_0x1da48a(0xf5));if(_0xcf2680)return null;if(!_0x52486f)throw CliErrors[_0x1da48a(0x101)](_0x1da48a(0x10e));if(!CUSTOM_PAGE_PATTERNS[_0x1da48a(0x102)](_0x52486f))throw CliErrors[_0x1da48a(0x101)]('--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.');return _0x52486f;}async function readPageSource(_0x83aa66){const _0x1fdc69=a199_0x36c169,_0x3c7889=_0x83aa66[_0x1fdc69(0x126)]('page-dir')[_0x1fdc69(0xee)](),_0x9537ee=readPagePattern(_0x83aa66);if(_0x9537ee===null){const _0x62e8f=await readCustomPageDirectory(_0x3c7889);if(Object[_0x1fdc69(0x10c)](_0x62e8f)[_0x1fdc69(0xfa)]===0x0)throw CliErrors[_0x1fdc69(0x101)](_0x1fdc69(0x110));return _0x62e8f;}let _0x4f076d;try{_0x4f076d=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x9537ee[_0x1fdc69(0xfb)]()+_0x1fdc69(0x12d)),_0x1fdc69(0x11c));}catch{throw CliErrors[_0x1fdc69(0x101)](_0x1fdc69(0x12b)+_0x9537ee+'.');}let _0x3bf29a;try{_0x3bf29a=JSON['parse'](_0x4f076d);}catch{throw CliErrors[_0x1fdc69(0x101)](_0x1fdc69(0xf9)+_0x9537ee+'.');}if(!_0x3bf29a||typeof _0x3bf29a!==_0x1fdc69(0xfe)||Array['isArray'](_0x3bf29a)||Object[_0x1fdc69(0x103)](_0x3bf29a)['some'](_0x21c010=>typeof _0x21c010!==_0x1fdc69(0x100)))throw CliErrors[_0x1fdc69(0x101)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x9537ee+'.');return _0x3bf29a;}async function readValidatedPageSource(_0x5c7bdc){const _0xd02377=await readPageSource(_0x5c7bdc);return await validateCustomPageContent(_0xd02377),_0xd02377;}function readInput(_0x279373,_0x51b096){const _0x4015c4=a199_0x36c169,_0x46c093=_0x279373[_0x4015c4(0x126)](_0x4015c4(0xed))[_0x4015c4(0xee)]()||_0x4015c4(0x11a)+Date[_0x4015c4(0xf2)]();if(_0x46c093['length']>0x64)throw CliErrors[_0x4015c4(0x101)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0xabed60=_0x279373[_0x4015c4(0x12e)](_0x4015c4(0xf7),NaN),_0x54a3d4=!Number['isNaN'](_0xabed60);if(_0x54a3d4&&(!Number[_0x4015c4(0x127)](_0xabed60)||_0xabed60<=0x0))throw CliErrors[_0x4015c4(0x101)](_0x4015c4(0x105));return{'appCode':_0x279373['appCode'],'pageName':_0x46c093,..._0x54a3d4?{'parentMenuId':_0xabed60}:{},'createMenu':!![],'files':_0x51b096};}
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_0xdc7219=a200_0x2254;(function(_0x124878,_0x54d489){const _0x1c6b4a=a200_0x2254,_0x163005=_0x124878();while(!![]){try{const _0x2ef9cf=parseInt(_0x1c6b4a(0x154))/0x1+-parseInt(_0x1c6b4a(0x15e))/0x2*(-parseInt(_0x1c6b4a(0x150))/0x3)+-parseInt(_0x1c6b4a(0x15b))/0x4*(parseInt(_0x1c6b4a(0x14a))/0x5)+-parseInt(_0x1c6b4a(0x158))/0x6+parseInt(_0x1c6b4a(0x162))/0x7+parseInt(_0x1c6b4a(0x149))/0x8*(-parseInt(_0x1c6b4a(0x159))/0x9)+-parseInt(_0x1c6b4a(0x15f))/0xa*(-parseInt(_0x1c6b4a(0x157))/0xb);if(_0x2ef9cf===_0x54d489)break;else _0x163005['push'](_0x163005['shift']());}catch(_0x28c05c){_0x163005['push'](_0x163005['shift']());}}}(a200_0x453a,0x944ba));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0xdc7219(0x153),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0xdc7219(0x14c),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0xdc7219(0x164),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x383570){readCustomPageId(_0x383570);},async 'execute'(_0x1c9577){const _0x2d6bde=a200_0xdc7219,_0x48313a=readCustomPageId(_0x1c9577),_0x1d5c97=await getCustomPageSource(_0x48313a),{bundle:_0x570d9d,createTime:_0x5b381f,updateTime:_0x3e97fb,..._0x4123f5}=_0x1d5c97,_0x235455=_0x1d5c97['id']??_0x48313a,_0xe72106=_0x1d5c97[_0x2d6bde(0x161)]?.['trim']()||_0x1c9577[_0x2d6bde(0x151)]('appcode')[_0x2d6bde(0x15a)](),_0x29d788=buildCustomPageRuntimeUrl(_0xe72106,_0x1d5c97[_0x2d6bde(0x155)]),_0x5884bb=buildCustomPageEditUrl(_0xe72106,_0x235455),_0x136519=await resolveCustomPageDevelopmentUrl(_0xe72106,_0x235455,_0x1c9577[_0x2d6bde(0x14f)]);return{'ok':!![],'data':{..._0x4123f5,..._0x29d788?{'runtimePageUrl':_0x29d788}:{},..._0x136519?{'pageUrl':_0x136519}:{},..._0x5884bb?{'editPageUrl':_0x5884bb}:{},..._0x5b381f==null?{}:{'createTime':formatTime(_0x5b381f)},..._0x3e97fb==null?{}:{'updateTime':formatTime(_0x3e97fb)}},'message':_0x2d6bde(0x15d)+_0x48313a+'.'};}};function formatTime(_0x2c9cbd){const _0x64b535=a200_0xdc7219,_0x58da40=new Date(_0x2c9cbd);if(Number[_0x64b535(0x14e)](_0x58da40[_0x64b535(0x15c)]()))return String(_0x2c9cbd);const _0x4fe1af=[_0x58da40[_0x64b535(0x165)](),String(_0x58da40[_0x64b535(0x156)]()+0x1)[_0x64b535(0x160)](0x2,'0'),String(_0x58da40[_0x64b535(0x14b)]())['padStart'](0x2,'0')]['join']('-'),_0x41df0b=[String(_0x58da40['getHours']())[_0x64b535(0x160)](0x2,'0'),String(_0x58da40[_0x64b535(0x163)]())[_0x64b535(0x160)](0x2,'0'),String(_0x58da40[_0x64b535(0x14d)]())['padStart'](0x2,'0')][_0x64b535(0x152)](':');return _0x4fe1af+'\x20'+_0x41df0b;}function a200_0x2254(_0x59e003,_0x6d0bd2){_0x59e003=_0x59e003-0x149;const _0x453acb=a200_0x453a();let _0x2254ad=_0x453acb[_0x59e003];return _0x2254ad;}function a200_0x453a(){const _0x1d2fc7=['cookie','1443588nQxALQ','str','join','custom-detail','122972cKcxKi','pageCode','getMonth','264dpYDOD','1512450fZhJpl','2529htLJYo','trim','571084xdFkaz','getTime','Retrieved\x20Custom\x20Page\x20','2puumRh','179590moAVec','padStart','appCode','8195026qlxFRw','getMinutes','number','getFullYear','13944INufQM','30rXQznz','getDate','read','getSeconds','isNaN'];a200_0x453a=function(){return _0x1d2fc7;};return a200_0x453a();}
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_0x4f907f=a201_0x8d9f;(function(_0x24e7b1,_0x44996e){const _0x84ce09=a201_0x8d9f,_0x59e6ca=_0x24e7b1();while(!![]){try{const _0x232764=-parseInt(_0x84ce09(0x10b))/0x1+parseInt(_0x84ce09(0x107))/0x2+-parseInt(_0x84ce09(0xf7))/0x3*(parseInt(_0x84ce09(0x106))/0x4)+parseInt(_0x84ce09(0x10d))/0x5+-parseInt(_0x84ce09(0xfd))/0x6+-parseInt(_0x84ce09(0x105))/0x7+-parseInt(_0x84ce09(0xf8))/0x8*(-parseInt(_0x84ce09(0x101))/0x9);if(_0x232764===_0x44996e)break;else _0x59e6ca['push'](_0x59e6ca['shift']());}catch(_0x36c25e){_0x59e6ca['push'](_0x59e6ca['shift']());}}}(a201_0x4c6e,0x722ca));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a201_0x8d9f(_0x292825,_0x2a8334){_0x292825=_0x292825-0xf6;const _0x4c6ed9=a201_0x4c6e();let _0x8d9f9=_0x4c6ed9[_0x292825];return _0x8d9f9;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x4f907f(0xff),'command':a201_0x4f907f(0xfa),'description':a201_0x4f907f(0x10c),'risk':a201_0x4f907f(0xfb),'defaultOutputFormat':a201_0x4f907f(0x10a),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4fa004){const _0x1c2d5d=a201_0x4f907f,_0x51d4c8=(await fetchMenuSnapshot(_0x4fa004[_0x1c2d5d(0x103)],_0x4fa004['cookie']))['menus']['flatMap'](_0x16c553=>{const _0xa678a0=_0x1c2d5d;if(_0x16c553[_0xa678a0(0xf6)]!==_0xa678a0(0x109)||_0x16c553['pageId']==null)return[];const _0x4c0836=buildCustomPageDevelopmentUrl(_0x4fa004[_0xa678a0(0x103)],_0x16c553[_0xa678a0(0x102)]),_0x790df0=buildCustomPageRuntimeUrl(_0x4fa004[_0xa678a0(0x103)],_0x16c553['path']),_0x89f5ca=buildCustomPageEditUrl(_0x4fa004[_0xa678a0(0x103)],_0x16c553[_0xa678a0(0xfe)]);return[{'pageId':_0x16c553['pageId'],'label':_0x16c553[_0xa678a0(0xfc)],'path':_0x16c553[_0xa678a0(0x102)],..._0x4c0836?{'pageUrl':_0x4c0836}:{},..._0x790df0?{'runtimePageUrl':_0x790df0}:{},..._0x89f5ca?{'editPageUrl':_0x89f5ca}:{}}];});return{'ok':!![],'data':{'pages':_0x51d4c8},'message':_0x51d4c8[_0x1c2d5d(0x104)]===0x0?_0x1c2d5d(0xf9):_0x1c2d5d(0x108)+_0x51d4c8[_0x1c2d5d(0x104)]+_0x1c2d5d(0x100)};}};function a201_0x4c6e(){const _0x33aab8=['19950YujEUJ','type','9TeJCZu','8zhuFem','No\x20Custom\x20Pages\x20found.','custom-list','read','label','4738398hthdLv','pageId','page','\x20Custom\x20Page(s).','26862309EBJocp','path','appCode','length','5047742JhEwcC','1078084OuhNPv','1020790XzaRQb','Found\x20','react','compress','712026glhGxl','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app'];a201_0x4c6e=function(){return _0x33aab8;};return a201_0x4c6e();}
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
- const a202_0x1db5cf=a202_0x29b0;(function(_0x84539c,_0x5df27c){const _0x1326b8=a202_0x29b0,_0x259097=_0x84539c();while(!![]){try{const _0x4eade4=-parseInt(_0x1326b8(0x194))/0x1+-parseInt(_0x1326b8(0x1b2))/0x2*(parseInt(_0x1326b8(0x199))/0x3)+parseInt(_0x1326b8(0x1a4))/0x4+parseInt(_0x1326b8(0x1ad))/0x5*(-parseInt(_0x1326b8(0x18f))/0x6)+-parseInt(_0x1326b8(0x190))/0x7+parseInt(_0x1326b8(0x1b1))/0x8+-parseInt(_0x1326b8(0x1af))/0x9*(-parseInt(_0x1326b8(0x19e))/0xa);if(_0x4eade4===_0x5df27c)break;else _0x259097['push'](_0x259097['shift']());}catch(_0x2279f2){_0x259097['push'](_0x259097['shift']());}}}(a202_0x317b,0x53988));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a202_0x317b(){const _0x26d3b9=['FORMAL','isInteger','runtimePageUrl','appCode','Optional\x20publish\x20remark','4255yiVDKK','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','945YRmbXq','pageId','521232AHMJep','2tJkZNy','str','remark','3096qFiUNV','4338096AjbCFi','/smartapi/webcode/file/publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','unknown','606115ekFvUS','write','compress','push','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','1587318UcjaEK','trim','number','status','pageCode','233050sRXJzt','apiError','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','warnings','Custom\x20Page\x20ID','Would\x20publish\x20Custom\x20Page\x20','97176EFOJxq','Published\x20Custom\x20Page\x20','string','POST'];a202_0x317b=function(){return _0x26d3b9;};return a202_0x317b();}export const pageCustomPublish={'service':'page','command':'custom-publish','description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a202_0x1db5cf(0x195),'defaultOutputFormat':a202_0x1db5cf(0x196),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x1db5cf(0x19b),'required':!![],'description':a202_0x1db5cf(0x1a2)},{'name':a202_0x1db5cf(0x18e),'type':a202_0x1db5cf(0x1a6),'description':a202_0x1db5cf(0x1ac)}],async 'validate'(_0x5cf8de){readCustomPageId(_0x5cf8de);},async 'dryRun'(_0x45da85){const _0x3ac119=a202_0x1db5cf,_0x58922f=readInput(_0x45da85);return{'method':_0x3ac119(0x1a7),'url':_0x3ac119(0x191),'body':{'id':_0x58922f['pageId'],..._0x58922f[_0x3ac119(0x18e)]?{'remark':_0x58922f[_0x3ac119(0x18e)]}:{}},'description':_0x3ac119(0x1a3)+_0x58922f['pageId']+'.'};},async 'execute'(_0x1fc9c5){const _0x8dc86a=a202_0x1db5cf,_0x265180=readInput(_0x1fc9c5);await getCustomPageSource(_0x265180['pageId']);const _0x317a26=await publishCustomPage(_0x265180);if(!Number[_0x8dc86a(0x1a9)](_0x317a26)||_0x317a26!==_0x265180['pageId'])throw CliErrors[_0x8dc86a(0x19f)](_0x8dc86a(0x1a0));const _0x16abcf=await getCustomPageSource(_0x265180[_0x8dc86a(0x1b0)]);if(_0x16abcf[_0x8dc86a(0x19c)]!==_0x8dc86a(0x1a8))throw CliErrors['apiError'](_0x8dc86a(0x192)+(_0x16abcf[_0x8dc86a(0x19c)]??_0x8dc86a(0x193))+'.');const _0x5424c5=_0x16abcf['appCode']?.[_0x8dc86a(0x19a)](),_0x36bda6=buildCustomPageEditUrl(_0x5424c5,_0x265180[_0x8dc86a(0x1b0)]),_0x68287e=await resolveCustomPageDevelopmentUrl(_0x5424c5,_0x265180[_0x8dc86a(0x1b0)],_0x1fc9c5['cookie']),_0x34beec=buildMutationData(_0x265180,!![],_0x68287e,_0x36bda6);_0x5424c5&&!_0x68287e&&_0x34beec[_0x8dc86a(0x1a1)][_0x8dc86a(0x197)](_0x8dc86a(0x1ae));const _0x17c863=buildCustomPageRuntimeUrl(_0x16abcf[_0x8dc86a(0x1ab)],_0x16abcf[_0x8dc86a(0x19d)]);return _0x17c863?_0x34beec[_0x8dc86a(0x1aa)]=_0x17c863:_0x34beec['warnings'][_0x8dc86a(0x197)](_0x8dc86a(0x198)),{'ok':!![],'data':_0x34beec,'message':_0x8dc86a(0x1a5)+_0x265180[_0x8dc86a(0x1b0)]+'.'};}};function readInput(_0x5ab6c0){const _0x106a30=a202_0x1db5cf,_0x39e9bd=readCustomPageId(_0x5ab6c0),_0x53f62b=_0x5ab6c0[_0x106a30(0x18d)](_0x106a30(0x18e))['trim']();return{'pageId':_0x39e9bd,..._0x53f62b?{'remark':_0x53f62b}:{}};}function a202_0x29b0(_0x32dd39,_0x2dda53){_0x32dd39=_0x32dd39-0x18d;const _0x317bb8=a202_0x317b();let _0x29b05c=_0x317bb8[_0x32dd39];return _0x29b05c;}function buildMutationData(_0x45e08a,_0x3ecb92=![],_0x4ee2da,_0x1a07a3){const _0x310c4c=a202_0x1db5cf;return{'operation':'page.custom-publish','selector':{'pageId':_0x45e08a[_0x310c4c(0x1b0)]},'before':null,'after':{'pageId':_0x45e08a['pageId'],'status':_0x310c4c(0x1a8)},'dryRun':!_0x3ecb92,'request':_0x45e08a,..._0x4ee2da?{'pageUrl':_0x4ee2da}:{},..._0x1a07a3?{'editPageUrl':_0x1a07a3}:{},'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_0x6a6018=a203_0xbc5e;(function(_0x64c820,_0x1c8710){const _0xf531c2=a203_0xbc5e,_0x1a388b=_0x64c820();while(!![]){try{const _0x45294c=parseInt(_0xf531c2(0x1e8))/0x1+-parseInt(_0xf531c2(0x1fc))/0x2*(-parseInt(_0xf531c2(0x1f1))/0x3)+parseInt(_0xf531c2(0x1ea))/0x4*(parseInt(_0xf531c2(0x1ec))/0x5)+parseInt(_0xf531c2(0x1fd))/0x6*(parseInt(_0xf531c2(0x1fa))/0x7)+-parseInt(_0xf531c2(0x1f0))/0x8+-parseInt(_0xf531c2(0x1ed))/0x9+-parseInt(_0xf531c2(0x1f8))/0xa;if(_0x45294c===_0x1c8710)break;else _0x1a388b['push'](_0x1a388b['shift']());}catch(_0x4e0565){_0x1a388b['push'](_0x1a388b['shift']());}}}(a203_0x4378,0x4daec));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';function a203_0xbc5e(_0x327838,_0x571161){_0x327838=_0x327838-0x1e7;const _0x437817=a203_0x4378();let _0xbc5ee0=_0x437817[_0x327838];return _0xbc5ee0;}function a203_0x4378(){const _0x76e7c9=['/pages/','map','react','pageId','file','7955580BzfjDe','join','182atJeYB','validation','93354RmRNLI','80400FTmWzP','trim','find','num','434617aHHFXy','type','1912DhxxXo','/ide/','6420eCHOAX','5648535euIeuI','--id\x20must\x20be\x20a\x20positive\x20integer.','menus','2097672pNfVif','39imbPmm','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'];a203_0x4378=function(){return _0x76e7c9;};return a203_0x4378();}import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x6a6018(0x1f2)};function trimOptional(_0x227095){const _0x47982f=a203_0x6a6018;return _0x227095?.[_0x47982f(0x1fe)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x3a6ade,_0xa2f18b){const _0x31cd3b=trimOptional(_0x3a6ade),_0x3c5ae6=trimOptional(_0xa2f18b);if(!_0x31cd3b||!_0x3c5ae6)return undefined;return getPublishedAppDomain(_0x31cd3b)+'/'+encodeURIComponent(_0x3c5ae6);}export function buildCustomPageDevelopmentUrl(_0x2e6590,_0x21a801){const _0x2f0799=a203_0x6a6018,_0x1f18c6=trimOptional(_0x2e6590),_0x483d6b=trimOptional(_0x21a801);if(!_0x1f18c6||!_0x483d6b)return undefined;return getAppBaseUrl(_0x1f18c6)+_0x2f0799(0x1f3)+encodeURIComponent(_0x483d6b);}export async function resolveCustomPageDevelopmentUrl(_0x1f5f11,_0xb2e923,_0x401531){const _0x3630fc=a203_0x6a6018,_0x123472=trimOptional(_0x1f5f11);if(!_0x123472)return undefined;try{const _0x727109=(await fetchMenuSnapshot(_0x123472,_0x401531))[_0x3630fc(0x1ef)][_0x3630fc(0x1ff)](_0x10a868=>_0x10a868[_0x3630fc(0x1e9)]===_0x3630fc(0x1f5)&&_0x10a868[_0x3630fc(0x1f6)]===_0xb2e923);return buildCustomPageDevelopmentUrl(_0x123472,_0x727109?.['path']);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x126e64,_0x344328){const _0x47e97a=a203_0x6a6018,_0x3b44f9=trimOptional(_0x126e64);if(!_0x3b44f9)return;const _0x32e407=trimOptional(String(_0x344328??''));if(!_0x32e407)return;return getAppBaseUrl(_0x3b44f9)+_0x47e97a(0x1eb)+encodeURIComponent(_0x32e407);}export async function validateCustomPageContent(_0x1cee02){const _0xaa6450=a203_0x6a6018,_0x1ba7d8=await validateCustomPageSourceFiles(_0x1cee02);if(_0x1ba7d8['length']>0x0)throw CliErrors[_0xaa6450(0x1fb)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x1ba7d8[_0xaa6450(0x1f4)](_0x4fba63=>_0x4fba63[_0xaa6450(0x1f7)]+':\x20'+_0x4fba63['message'])[_0xaa6450(0x1f9)](';\x20'));}export function readCustomPageId(_0x2dfe72){const _0x45bb69=a203_0x6a6018,_0x1a8ae5=_0x2dfe72[_0x45bb69(0x1e7)]('id');if(!Number['isInteger'](_0x1a8ae5)||_0x1a8ae5<=0x0)throw CliErrors[_0x45bb69(0x1fb)](_0x45bb69(0x1ee));return _0x1a8ae5;}
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
- function a204_0x59b1(_0x390f8d,_0x2b3f43){_0x390f8d=_0x390f8d-0xc6;const _0x24f38d=a204_0x24f3();let _0x59b189=_0x24f38d[_0x390f8d];return _0x59b189;}const a204_0x669421=a204_0x59b1;(function(_0x1a2edc,_0x212943){const _0x499f45=a204_0x59b1,_0x5d0558=_0x1a2edc();while(!![]){try{const _0x33e662=-parseInt(_0x499f45(0xdb))/0x1+parseInt(_0x499f45(0xd8))/0x2*(-parseInt(_0x499f45(0xc8))/0x3)+-parseInt(_0x499f45(0xd3))/0x4+-parseInt(_0x499f45(0xd4))/0x5+-parseInt(_0x499f45(0xc6))/0x6*(-parseInt(_0x499f45(0xc9))/0x7)+parseInt(_0x499f45(0xce))/0x8*(parseInt(_0x499f45(0xda))/0x9)+parseInt(_0x499f45(0xd6))/0xa*(parseInt(_0x499f45(0xd2))/0xb);if(_0x33e662===_0x212943)break;else _0x5d0558['push'](_0x5d0558['shift']());}catch(_0x6603cc){_0x5d0558['push'](_0x5d0558['shift']());}}}(a204_0x24f3,0x9ba9e));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x669421(0xc7),'.jsx':'babel','.ts':'typescript','.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=[a204_0x669421(0xdd),a204_0x669421(0xcb)];export async function validateCustomPageSourceFiles(_0x1fee54){const _0x571c43=a204_0x669421,_0x2916e1=Object[_0x571c43(0xcc)](_0x1fee54)['filter'](([_0x37d403])=>getParser(_0x37d403));if(!_0x2916e1[_0x571c43(0xca)](([_0x286338])=>isReactSourceFile(_0x286338)))return[{'file':_0x571c43(0xd7),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x1ebd75=await Promise['all'](_0x2916e1[_0x571c43(0xd9)](async([_0x26b8cd,_0x26e1f1])=>{const _0x2c59a9=_0x571c43;try{return await format(_0x26e1f1,{'parser':getParser(_0x26b8cd)}),undefined;}catch(_0xfe1347){return{'file':_0x26b8cd,'message':_0xfe1347 instanceof Error?_0xfe1347[_0x2c59a9(0xcf)]:String(_0xfe1347)};}}));return _0x1ebd75[_0x571c43(0xcd)](_0xba5bfd=>_0xba5bfd!==undefined);}function a204_0x24f3(){const _0x17b71d=['.tsx','entries','filter','16136WtwUcH','message','endsWith','toLowerCase','33DUsXaP','3776456hWrWwj','4039590DxvnZo','find','6972470oKxpOr','page\x20files','44mfqsLu','map','4581srttDs','842787ObjXts','trim','.jsx','18LKSSXP','babel','75270YeDrff','1554007aNFzze','some'];a204_0x24f3=function(){return _0x17b71d;};return a204_0x24f3();}function getParser(_0x4d53f8){const _0x188f7e=a204_0x669421,_0x594bc8=_0x4d53f8[_0x188f7e(0xdc)]()[_0x188f7e(0xd1)]();return Object['entries'](SOURCE_PARSERS)[_0x188f7e(0xd5)](([_0x4217d6])=>_0x594bc8[_0x188f7e(0xd0)](_0x4217d6))?.[0x1];}function isReactSourceFile(_0x4042bf){const _0x398fa0=a204_0x669421,_0x41550a=_0x4042bf[_0x398fa0(0xdc)]()[_0x398fa0(0xd1)]();return CUSTOM_PAGE_EXTENSIONS[_0x398fa0(0xca)](_0xfc6eae=>_0x41550a[_0x398fa0(0xd0)](_0xfc6eae));}
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_0x32683f=a205_0x3521;function a205_0x39ee(){const _0x27ab12=['trim','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page.custom-update','2405530zzaXBP','str','16slStev','pageId','page-dir','write','492450wNGaKY','805580ifJljM','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','appCode','950463dohDPc','pageContent','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','1gWapLQ','558204EofrIO','page-content','newVersion','862365mHqXjd','10QwakJv','/smartapi/webcode/page/update/content','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','page','string','cookie','Custom\x20Page\x20ID','11157BDybxN','appcode'];a205_0x39ee=function(){return _0x27ab12;};return a205_0x39ee();}(function(_0x18531b,_0x285c98){const _0x203e12=a205_0x3521,_0x11db1c=_0x18531b();while(!![]){try{const _0x3a9ba1=parseInt(_0x203e12(0x18c))/0x1*(parseInt(_0x203e12(0x18d))/0x2)+parseInt(_0x203e12(0x17a))/0x3+-parseInt(_0x203e12(0x186))/0x4+-parseInt(_0x203e12(0x173))/0x5*(-parseInt(_0x203e12(0x185))/0x6)+-parseInt(_0x203e12(0x172))/0x7+-parseInt(_0x203e12(0x181))/0x8*(parseInt(_0x203e12(0x189))/0x9)+parseInt(_0x203e12(0x17f))/0xa;if(_0x3a9ba1===_0x285c98)break;else _0x11db1c['push'](_0x11db1c['shift']());}catch(_0x330d2a){_0x11db1c['push'](_0x11db1c['shift']());}}}(a205_0x39ee,0x250a8));function a205_0x3521(_0x412a6b,_0x2d7a21){_0x412a6b=_0x412a6b-0x171;const _0x39eea4=a205_0x39ee();let _0x3521dc=_0x39eea4[_0x412a6b];return _0x3521dc;}import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0x32683f(0x176),'command':'custom-update','description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a205_0x32683f(0x184),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x32683f(0x18e),'message':a205_0x32683f(0x187),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':'number','required':!![],'description':a205_0x32683f(0x179)},{'name':'page-dir','type':a205_0x32683f(0x177),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x22d601){readCustomPageId(_0x22d601),await readValidatedPageContent(_0x22d601);},async 'dryRun'(_0xc1a292){const _0xef0ce1=a205_0x32683f,_0x344c92=await readInput(_0xc1a292);return{'method':'POST','url':_0xef0ce1(0x174),'body':{'id':_0x344c92['pageId'],'codeContent':_0x344c92[_0xef0ce1(0x18a)]},'description':_0xef0ce1(0x175)+_0x344c92['pageId']+'.'};},async 'execute'(_0x20ae21){const _0x4ee73c=a205_0x32683f,_0x5a2bc4=await readInput(_0x20ae21),_0x4a1ddd=await updateCustomPageContent({'pageId':_0x5a2bc4[_0x4ee73c(0x182)],'pageContent':_0x5a2bc4['pageContent']});if(!Number['isInteger'](_0x4a1ddd[_0x4ee73c(0x171)])||_0x4a1ddd[_0x4ee73c(0x171)]<=0x0)throw CliErrors['apiError'](_0x4ee73c(0x17d));const _0x543346=buildCustomPageEditUrl(_0x5a2bc4['appCode'],_0x5a2bc4[_0x4ee73c(0x182)]),_0x4d36a6=await resolveCustomPageDevelopmentUrl(_0x5a2bc4[_0x4ee73c(0x188)],_0x5a2bc4[_0x4ee73c(0x182)],_0x20ae21[_0x4ee73c(0x178)]);return{'ok':!![],'data':{'operation':_0x4ee73c(0x17e),'selector':{'appCode':_0x5a2bc4['appCode'],'pageId':_0x5a2bc4[_0x4ee73c(0x182)]},'before':null,'after':{'pageId':_0x4a1ddd['pageId'],'version':_0x4a1ddd[_0x4ee73c(0x171)],'pageContent':_0x5a2bc4[_0x4ee73c(0x18a)]},'dryRun':![],'request':_0x5a2bc4,..._0x4d36a6?{'pageUrl':_0x4d36a6}:{},..._0x543346?{'editPageUrl':_0x543346}:{},'warnings':_0x4d36a6?[]:[_0x4ee73c(0x18b)]},'message':'Updated\x20Custom\x20Page\x20'+_0x5a2bc4[_0x4ee73c(0x182)]+'.'};}};async function readInput(_0x1a425e){const _0x194b77=a205_0x32683f,_0x55faff=readCustomPageId(_0x1a425e),_0x48fdcf=_0x1a425e[_0x194b77(0x180)](_0x194b77(0x17b))[_0x194b77(0x17c)]()||(await getCustomPageSource(_0x55faff))['appCode']?.[_0x194b77(0x17c)]();if(!_0x48fdcf)throw CliErrors['validation']('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x55faff+'.');return{'appCode':_0x48fdcf,'pageId':_0x55faff,'pageContent':await readValidatedPageContent(_0x1a425e)};}async function readValidatedPageContent(_0x1c55da){const _0x4805cf=a205_0x32683f,_0x1bfba4=await readCustomPageDirectory(_0x1c55da[_0x4805cf(0x180)](_0x4805cf(0x183)));return await validateCustomPageContent(_0x1bfba4),_0x1bfba4;}
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_0x5a02aa=a206_0x1083;(function(_0x344808,_0x5a9023){const _0x2e83b7=a206_0x1083,_0x5199bd=_0x344808();while(!![]){try{const _0x46bc98=parseInt(_0x2e83b7(0x1e3))/0x1*(-parseInt(_0x2e83b7(0x1e5))/0x2)+-parseInt(_0x2e83b7(0x1de))/0x3*(parseInt(_0x2e83b7(0x1f1))/0x4)+-parseInt(_0x2e83b7(0x1e2))/0x5+parseInt(_0x2e83b7(0x1e8))/0x6+parseInt(_0x2e83b7(0x1ee))/0x7+-parseInt(_0x2e83b7(0x1ef))/0x8*(-parseInt(_0x2e83b7(0x1ea))/0x9)+-parseInt(_0x2e83b7(0x1f2))/0xa;if(_0x46bc98===_0x5a9023)break;else _0x5199bd['push'](_0x5199bd['shift']());}catch(_0x3fdb14){_0x5199bd['push'](_0x5199bd['shift']());}}}(a206_0x4165,0xa19ff));function a206_0x1083(_0x5e5d9c,_0x5f0dab){_0x5e5d9c=_0x5e5d9c-0x1db;const _0x416595=a206_0x4165();let _0x10834b=_0x416595[_0x5e5d9c];return _0x10834b;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x5a02aa(0x1ec),'command':a206_0x5a02aa(0x1ed),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x5a02aa(0x1dc),'type':a206_0x5a02aa(0x1dd),'description':a206_0x5a02aa(0x1db)}],async 'validate'(_0x342448){validateDatasetSelector(_0x342448);},async 'dryRun'(_0x1b0409){const _0x566270=a206_0x5a02aa,_0x222078=await loadDatasetDetailForPage(_0x1b0409);return{'method':_0x566270(0x1e1),'url':_0x566270(0x1e4)+_0x222078[_0x566270(0x1eb)]+'/standard-page-status?appCode='+encodeURIComponent(_0x1b0409['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x222078['id'],'code':_0x222078['code'],'name':_0x222078[_0x566270(0x1df)]},'action':'query-data-list-status'})};},async 'execute'(_0x703733){const _0x400be1=a206_0x5a02aa,_0x2e2400=await loadDatasetDetailForPage(_0x703733),_0x49a8b2=await loadDataListPageStatusForGenerate(_0x703733,_0x2e2400[_0x400be1(0x1eb)]),_0x354789=getUndeletedRelatedPages(_0x2e2400),_0xc9136c=assessDataListPageState(_0x2e2400[_0x400be1(0x1eb)],_0x49a8b2,{'fallbackUndeletedPages':_0x354789});return{'ok':!![],'data':{'datasetCode':_0x2e2400[_0x400be1(0x1eb)],'precheckSource':_0x49a8b2?.['source']??_0x400be1(0x1e7),'status':_0xc9136c['status'],'manualResolutionRequired':_0xc9136c[_0x400be1(0x1f0)],'nextAction':_0xc9136c[_0x400be1(0x1e9)],'dataListPageStatus':_0x49a8b2,'relatedPages':{'total':_0x2e2400[_0x400be1(0x1e6)][_0x400be1(0x1e0)],'undeletedCount':_0x354789[_0x400be1(0x1e0)]}}};}};function a206_0x4165(){const _0x518143=['Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','alias','string','3ufxRaf','name','length','GET','2043185DWJgEP','1QQOLYV','/smartapi/lovrabet/dataset/','1091544IQofZT','relatedPages','related-pages-fallback','2594622CTsHjW','nextAction','1961793qHGRXz','code','page','data-list-status','7812399EBJvRz','32DmTihe','manualResolutionRequired','2375388AQGxoS','2101310gDKSgD'];a206_0x4165=function(){return _0x518143;};return a206_0x4165();}
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_0x904f23=a207_0x5255;(function(_0x591e56,_0x121d3b){const _0x489b72=a207_0x5255,_0x361c46=_0x591e56();while(!![]){try{const _0x33d5bf=parseInt(_0x489b72(0x119))/0x1+parseInt(_0x489b72(0x11d))/0x2*(-parseInt(_0x489b72(0xf4))/0x3)+-parseInt(_0x489b72(0x109))/0x4+parseInt(_0x489b72(0xfe))/0x5+-parseInt(_0x489b72(0x10c))/0x6*(parseInt(_0x489b72(0x11f))/0x7)+parseInt(_0x489b72(0xf7))/0x8+parseInt(_0x489b72(0x105))/0x9*(-parseInt(_0x489b72(0x118))/0xa);if(_0x33d5bf===_0x121d3b)break;else _0x361c46['push'](_0x361c46['shift']());}catch(_0x367089){_0x361c46['push'](_0x361c46['shift']());}}}(a207_0x1ff0,0x28098));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a207_0x1ff0(){const _0x32ef57=['1730704HSmysm','page','fieldCount','CRUD_PAGE_SET','compress','name','precheck','925180qolxhC','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','string','bool','dataListPageStatus','alias','message','116352xAHpzF','currentStep','code','write','765056SviXDM','status','SUCCESS','138IkEZCf','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','/smartapi/lovrabet/dataset/','page-type','page-pattern','PARTIAL_SUCCESS','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','number','taskId','appCode','manualResolutionRequired','/generate-standard-pages/start','170CGKNuu','305418xSRohk','allowGenerate','nextAction','Reusing\x20an\x20existing\x20generate\x20task','4YXAvVw','dataset','27762ooNrVR','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','boolean','progressRate','DATA_LIST','dryRun','POST','clientOperationId','60813KoFnIj','related-pages-fallback','source'];a207_0x1ff0=function(){return _0x32ef57;};return a207_0x1ff0();}import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';function a207_0x5255(_0x1aa465,_0x573ff5){_0x1aa465=_0x1aa465-0xef;const _0x1ff0a0=a207_0x1ff0();let _0x525509=_0x1ff0a0[_0x1aa465];return _0x525509;}export const pageGenerateStart={'service':a207_0x904f23(0xf8),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a207_0x904f23(0x108),'defaultOutputFormat':a207_0x904f23(0xfb),'rejectedFlags':[{'name':a207_0x904f23(0x10f),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':a207_0x904f23(0x112)},{'name':a207_0x904f23(0x110),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':'DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.'}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x904f23(0x103),'type':a207_0x904f23(0x100),'description':a207_0x904f23(0x120)},{'name':'apply','type':a207_0x904f23(0x121),'description':a207_0x904f23(0xff)}],async 'validate'(_0x3c26ec){validateDatasetSelector(_0x3c26ec);},async 'dryRun'(_0xca4abe){const _0x40bf76=a207_0x904f23,_0x3fd532=await prepare(_0xca4abe);return{'method':_0x40bf76(0xf2),'url':_0x40bf76(0x10e)+_0x3fd532[_0x40bf76(0x11e)][_0x40bf76(0x107)]+_0x40bf76(0x117),'body':{'appCode':_0xca4abe['appCode'],'clientOperationId':_0x3fd532[_0x40bf76(0xf3)]},'description':serializeDryRunDescription({'dataset':{'id':_0x3fd532[_0x40bf76(0x11e)]['id'],'code':_0x3fd532[_0x40bf76(0x11e)][_0x40bf76(0x107)],'name':_0x3fd532['dataset'][_0x40bf76(0xfc)],'fieldCount':_0x3fd532['dataset'][_0x40bf76(0xf9)]},'precheckSource':_0x3fd532[_0x40bf76(0x102)]?.[_0x40bf76(0xf6)]??_0x40bf76(0xf5),'action':'generate-start','clientOperationId':_0x3fd532[_0x40bf76(0xf3)],'plannedStatus':_0x3fd532[_0x40bf76(0xfd)][_0x40bf76(0x10a)],'reason':_0x3fd532[_0x40bf76(0xfd)]['message']})};},async 'execute'(_0x5c7ee0){const _0x52a2bd=a207_0x904f23;if(!_0x5c7ee0[_0x52a2bd(0x101)]('apply')){const _0x4e0f99=await pageGenerateStart[_0x52a2bd(0xf1)](_0x5c7ee0);return{'ok':!![],'message':_0x52a2bd(0x10d),'data':_0x4e0f99};}const _0x546579=await prepare(_0x5c7ee0);if(!_0x546579['precheck'][_0x52a2bd(0x11a)])return{'ok':![],'message':_0x546579[_0x52a2bd(0xfd)][_0x52a2bd(0x104)],'data':{'datasetCode':_0x546579[_0x52a2bd(0x11e)][_0x52a2bd(0x107)],'pageType':'DATA_LIST','pagePattern':_0x52a2bd(0xfa),'clientOperationId':_0x546579[_0x52a2bd(0xf3)],'precheckSource':_0x546579[_0x52a2bd(0x102)]?.[_0x52a2bd(0xf6)]??_0x52a2bd(0xf5),'status':_0x546579[_0x52a2bd(0xfd)]['status'],'manualResolutionRequired':_0x546579[_0x52a2bd(0xfd)][_0x52a2bd(0x116)],'nextAction':_0x546579[_0x52a2bd(0xfd)][_0x52a2bd(0x11b)],'query':{'command':buildDataListPageStatusQueryCommand(_0x546579[_0x52a2bd(0x11e)][_0x52a2bd(0x107)],_0x5c7ee0[_0x52a2bd(0x115)])},'dataListPageStatus':_0x546579[_0x52a2bd(0x102)]}};const _0x56ff98=await startGenerateDataListPages(_0x5c7ee0[_0x52a2bd(0x115)],_0x546579[_0x52a2bd(0x11e)][_0x52a2bd(0x107)],{'clientOperationId':_0x546579['clientOperationId']}),_0x5c3fcf=_0x56ff98[_0x52a2bd(0x10a)]===_0x52a2bd(0x10b)||_0x56ff98[_0x52a2bd(0x10a)]===_0x52a2bd(0x111)?await loadDataListPageStatusForGenerate(_0x5c7ee0,_0x546579[_0x52a2bd(0x11e)][_0x52a2bd(0x107)]):null,_0x2a612a=assessGenerateOperationState(_0x546579['dataset'][_0x52a2bd(0x107)],_0x56ff98['status'],_0x5c3fcf);return{'ok':!![],'message':_0x56ff98['reused']?_0x52a2bd(0x11c):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x546579[_0x52a2bd(0x11e)][_0x52a2bd(0x107)],'appCode':_0x5c7ee0[_0x52a2bd(0x115)],'pageType':_0x52a2bd(0xf0),'pagePattern':_0x52a2bd(0xfa),'taskId':_0x56ff98[_0x52a2bd(0x114)]??null,'operationId':_0x56ff98['operationId']??null,'clientOperationId':_0x546579[_0x52a2bd(0xf3)],'jobStatus':_0x56ff98['status']??null,'progressRate':typeof _0x56ff98[_0x52a2bd(0xef)]===_0x52a2bd(0x113)?_0x56ff98[_0x52a2bd(0xef)]:null,'currentStep':_0x56ff98[_0x52a2bd(0x106)]??null,'reused':_0x56ff98['reused']===!![],'status':_0x2a612a[_0x52a2bd(0x10a)],'manualResolutionRequired':_0x2a612a['manualResolutionRequired'],'nextAction':_0x2a612a['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x546579['dataset'][_0x52a2bd(0x107)],{'appCode':_0x5c7ee0[_0x52a2bd(0x115)],'taskId':_0x56ff98[_0x52a2bd(0x114)],'operationId':_0x56ff98['operationId'],'clientOperationId':_0x546579[_0x52a2bd(0xf3)]})},'dataListPageStatus':_0x5c3fcf}};}};async function prepare(_0x2f2f0e){const _0x3ee6f1=a207_0x904f23,_0xf1317d=await loadDatasetDetailForPage(_0x2f2f0e),_0x3ad5bd=await loadDataListPageStatusForGenerate(_0x2f2f0e,_0xf1317d[_0x3ee6f1(0x107)]),_0xa6b729=getUndeletedRelatedPages(_0xf1317d);return{'dataset':_0xf1317d,'dataListPageStatus':_0x3ad5bd,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0xf1317d[_0x3ee6f1(0x107)],_0x3ad5bd,{'fallbackUndeletedPages':_0xa6b729})};}
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_0x3422(){const _0x59ccec=['clientOperationId','client-operation-id','status','set','task-id','12xAejDs','SUCCESS','taskId','7114432RTkxzY','4rpgJSp','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','message','appCode','page','currentStep','428277hxTpbX','string','3190923vsuaUf','operation-id','query-generate-operation-status','PARTIAL_SUCCESS','read','/smartapi/lovrabet/dataset/','nextAction','code','progressRate','manualResolutionRequired','2890875MuALWO','compress','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','number','str','3328758ndynbF','result','generate-status','431506zVBbSn','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','GET','name','operationId','1427342GrRJMM','alias'];a208_0x3422=function(){return _0x59ccec;};return a208_0x3422();}const a208_0x5c4501=a208_0x1fae;(function(_0x1b3d3c,_0x442d8a){const _0xd85c3a=a208_0x1fae,_0x4267cc=_0x1b3d3c();while(!![]){try{const _0x4063b6=parseInt(_0xd85c3a(0x168))/0x1*(parseInt(_0xd85c3a(0x179))/0x2)+-parseInt(_0xd85c3a(0x17f))/0x3*(parseInt(_0xd85c3a(0x175))/0x4)+-parseInt(_0xd85c3a(0x18b))/0x5+-parseInt(_0xd85c3a(0x165))/0x6+parseInt(_0xd85c3a(0x16e))/0x7+parseInt(_0xd85c3a(0x178))/0x8+parseInt(_0xd85c3a(0x181))/0x9;if(_0x4063b6===_0x442d8a)break;else _0x4267cc['push'](_0x4267cc['shift']());}catch(_0x5d55a9){_0x4267cc['push'](_0x4267cc['shift']());}}}(a208_0x3422,0xb6fd4));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0x1fae(_0x31f839,_0x406363){_0x31f839=_0x31f839-0x161;const _0x3422f8=a208_0x3422();let _0x1faeaa=_0x3422f8[_0x31f839];return _0x1faeaa;}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x5c4501(0x17d),'command':a208_0x5c4501(0x167),'description':a208_0x5c4501(0x169),'risk':a208_0x5c4501(0x185),'defaultOutputFormat':a208_0x5c4501(0x161),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x5c4501(0x16f),'type':a208_0x5c4501(0x180),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x5c4501(0x174),'type':'string','description':a208_0x5c4501(0x162)},{'name':a208_0x5c4501(0x182),'type':a208_0x5c4501(0x180),'description':a208_0x5c4501(0x17a)},{'name':a208_0x5c4501(0x171),'type':a208_0x5c4501(0x180),'description':a208_0x5c4501(0x16a)}],async 'validate'(_0xaab23f){validateDatasetSelector(_0xaab23f),validateGenerateOperationSelector(_0xaab23f);},async 'dryRun'(_0x30f14c){const _0x509704=a208_0x5c4501,_0x56ecd0=await loadDatasetDetailForPage(_0x30f14c),_0x146149=_0x30f14c['str'](_0x509704(0x174)),_0x40820f=_0x30f14c[_0x509704(0x164)](_0x509704(0x182)),_0x5a70a1=_0x30f14c['str'](_0x509704(0x171)),_0xbc8f84=new URLSearchParams({'appCode':_0x30f14c[_0x509704(0x17c)]});return _0x146149&&_0xbc8f84['set'](_0x509704(0x177),_0x146149),_0x40820f&&_0xbc8f84[_0x509704(0x173)](_0x509704(0x16d),_0x40820f),_0x5a70a1&&_0xbc8f84[_0x509704(0x173)]('clientOperationId',_0x5a70a1),{'method':_0x509704(0x16b),'url':_0x509704(0x186)+_0x56ecd0[_0x509704(0x188)]+'/generate-standard-pages/status?'+_0xbc8f84['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x56ecd0['id'],'code':_0x56ecd0[_0x509704(0x188)],'name':_0x56ecd0[_0x509704(0x16c)]},'action':_0x509704(0x183),'taskId':_0x146149||undefined,'operationId':_0x40820f||undefined,'clientOperationId':_0x5a70a1||undefined})};},async 'execute'(_0x52e4e4){const _0xe9408a=a208_0x5c4501,_0x29a9cd=await loadDatasetDetailForPage(_0x52e4e4),_0x273a08=_0x52e4e4[_0xe9408a(0x164)](_0xe9408a(0x174)),_0x4a1303=_0x52e4e4[_0xe9408a(0x164)]('operation-id'),_0x45aa27=_0x52e4e4['str'](_0xe9408a(0x171)),_0xc69462=await getGenerateDataListPagesStatus(_0x52e4e4[_0xe9408a(0x17c)],_0x29a9cd[_0xe9408a(0x188)],{'taskId':_0x273a08||undefined,'operationId':_0x4a1303||undefined,'clientOperationId':_0x45aa27||undefined}),_0x3f5b51=_0xc69462['status']===_0xe9408a(0x176)||_0xc69462[_0xe9408a(0x172)]===_0xe9408a(0x184),_0x24fa8f=_0x3f5b51?await loadDataListPageStatusForGenerate(_0x52e4e4,_0x29a9cd[_0xe9408a(0x188)]):null,_0x30dd5b=assessGenerateOperationState(_0x29a9cd[_0xe9408a(0x188)],_0xc69462[_0xe9408a(0x172)],_0x24fa8f),_0x2fa277=_0xc69462['taskId']??_0x273a08??undefined,_0x3a1508=_0xc69462[_0xe9408a(0x16d)]??_0x4a1303??undefined,_0x407122=_0xc69462[_0xe9408a(0x170)]??_0x45aa27??undefined;return{'ok':!![],'message':_0x30dd5b[_0xe9408a(0x172)]==='operation_failed'?_0xc69462['errorMsg']||_0x30dd5b[_0xe9408a(0x17b)]:_0x30dd5b[_0xe9408a(0x17b)],'data':{'datasetCode':_0x29a9cd['code'],'appCode':_0x52e4e4[_0xe9408a(0x17c)],'taskId':_0x2fa277,'operationId':_0x3a1508,'clientOperationId':_0x407122,'jobStatus':_0xc69462[_0xe9408a(0x172)]??null,'progressRate':typeof _0xc69462[_0xe9408a(0x189)]===_0xe9408a(0x163)?_0xc69462[_0xe9408a(0x189)]:null,'currentStep':_0xc69462[_0xe9408a(0x17e)]??null,'errorMsg':_0xc69462['errorMsg']??null,'status':_0x30dd5b[_0xe9408a(0x172)],'manualResolutionRequired':_0x30dd5b[_0xe9408a(0x18a)],'nextAction':_0x30dd5b[_0xe9408a(0x187)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x29a9cd[_0xe9408a(0x188)],{'appCode':_0x52e4e4[_0xe9408a(0x17c)],'taskId':_0x2fa277,'operationId':_0x3a1508,'clientOperationId':_0x407122})},'dataListPageStatus':_0x24fa8f,'result':_0xc69462[_0xe9408a(0x166)]??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(_0x9b1632,_0x530174){const _0xcc256f=a209_0x3979,_0x4e2edf=_0x9b1632();while(!![]){try{const _0x7ccd8f=-parseInt(_0xcc256f(0x12c))/0x1*(-parseInt(_0xcc256f(0x130))/0x2)+parseInt(_0xcc256f(0x12d))/0x3+parseInt(_0xcc256f(0x12f))/0x4+-parseInt(_0xcc256f(0x134))/0x5*(-parseInt(_0xcc256f(0x131))/0x6)+-parseInt(_0xcc256f(0x12e))/0x7+parseInt(_0xcc256f(0x132))/0x8+-parseInt(_0xcc256f(0x133))/0x9;if(_0x7ccd8f===_0x530174)break;else _0x4e2edf['push'](_0x4e2edf['shift']());}catch(_0x4c232e){_0x4e2edf['push'](_0x4e2edf['shift']());}}}(a209_0x445e,0x255f1));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';import{pagePull}from'../../commands/page/pull.js';function a209_0x445e(){const _0x1a9faf=['4fIxFir','1068DdXyKR','935840emRjac','1979748TEYiAG','580TWoHtT','115881ZXiYAm','541272PMRWyw','1497377JHbMfY','148568tTWWmA'];a209_0x445e=function(){return _0x1a9faf;};return a209_0x445e();}import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a209_0x3979(_0x2c6440,_0x2b8a62){_0x2c6440=_0x2c6440-0x12c;const _0x445e56=a209_0x445e();let _0x3979ad=_0x445e56[_0x2c6440];return _0x3979ad;}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_0x34a6cf=a210_0x4882;(function(_0x9475af,_0x836974){const _0x52221a=a210_0x4882,_0x3db5ff=_0x9475af();while(!![]){try{const _0x2a0ea5=-parseInt(_0x52221a(0x1f4))/0x1*(-parseInt(_0x52221a(0x204))/0x2)+parseInt(_0x52221a(0x1d6))/0x3+-parseInt(_0x52221a(0x1e3))/0x4*(parseInt(_0x52221a(0x1e8))/0x5)+-parseInt(_0x52221a(0x1c9))/0x6+-parseInt(_0x52221a(0x1f9))/0x7*(-parseInt(_0x52221a(0x1f3))/0x8)+parseInt(_0x52221a(0x1d1))/0x9*(-parseInt(_0x52221a(0x1f2))/0xa)+-parseInt(_0x52221a(0x1e1))/0xb*(-parseInt(_0x52221a(0x1d9))/0xc);if(_0x2a0ea5===_0x836974)break;else _0x3db5ff['push'](_0x3db5ff['shift']());}catch(_0x28cb00){_0x3db5ff['push'](_0x3db5ff['shift']());}}}(a210_0x1d74,0x53486));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':a210_0x34a6cf(0x1fc),'command':a210_0x34a6cf(0x1fb),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':'read','defaultOutputFormat':a210_0x34a6cf(0x1f0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a210_0x34a6cf(0x1ea),'description':a210_0x34a6cf(0x1d2)},{'name':a210_0x34a6cf(0x1d7),'type':a210_0x34a6cf(0x1ea),'description':a210_0x34a6cf(0x1de)},{'name':a210_0x34a6cf(0x1cb),'type':'boolean','description':a210_0x34a6cf(0x203)}],async 'validate'(_0x3e3790){validatePageTargetSelector(_0x3e3790);},async 'dryRun'(_0x5cbdaf){const _0x3851a0=a210_0x34a6cf,_0x25117c=await buildPullPlan(_0x5cbdaf);return{'method':_0x3851a0(0x1e5),'url':_0x25117c[_0x3851a0(0x1e2)]===_0x3851a0(0x1dd)?_0x3851a0(0x1df)+(_0x25117c['items'][0x0]?.[_0x3851a0(0x1d0)][_0x3851a0(0x1f5)]??''):_0x3851a0(0x1e6),'body':{'appCode':_0x5cbdaf['appCode'],'mode':_0x25117c[_0x3851a0(0x1e2)],'targetDatasetCode':_0x25117c[_0x3851a0(0x202)]??null,'pages':_0x25117c['items'][_0x3851a0(0x1d4)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x25117c[_0x3851a0(0x1e2)],'datasetCode':_0x25117c[_0x3851a0(0x202)]??null,'totalCandidates':_0x25117c['items'][_0x3851a0(0x1ec)],'totalWouldPull':_0x25117c[_0x3851a0(0x201)][_0x3851a0(0x1da)](_0x566162=>_0x566162[_0x3851a0(0x1eb)]==='would_pull')[_0x3851a0(0x1ec)],'totalConflicts':_0x25117c['items']['filter'](_0x54d3d1=>_0x54d3d1['status']===_0x3851a0(0x1dc))[_0x3851a0(0x1ec)]})};},async 'execute'(_0x155152){const _0x56067a=a210_0x34a6cf,_0x5a3f44=loadPageProjectConfig(_0x155152[_0x56067a(0x1f8)]),_0x5a58a4=await readPageLockFile(_0x5a3f44['lockFilePath']),{lockData:_0x49b5b0,appLock:_0x1d3156}=ensurePageLockScope(_0x5a58a4??createEmptyPageLock(),_0x155152[_0x56067a(0x1f8)]),_0x20b256=await buildPullPlan(_0x155152),_0x42b051=_0x155152[_0x56067a(0x1ce)](_0x56067a(0x1cb));if(_0x20b256[_0x56067a(0x1e2)]===_0x56067a(0x1dd)&&_0x20b256[_0x56067a(0x201)][0x0]?.['status']===_0x56067a(0x1dc)&&!_0x42b051)throw CliErrors[_0x56067a(0x1e7)](_0x56067a(0x1c6)+_0x20b256[_0x56067a(0x201)][0x0][_0x56067a(0x1fa)],_0x56067a(0x1cd));const _0x458625=[],_0x68a4ad=[];for(const _0x3f9623 of _0x20b256['items']){if(_0x3f9623[_0x56067a(0x1eb)]===_0x56067a(0x1dc)&&!_0x42b051){_0x68a4ad['push']({'pageId':_0x3f9623['detail'][_0x56067a(0x1f5)],'type':_0x3f9623[_0x56067a(0x1d0)][_0x56067a(0x1c8)],'title':_0x3f9623[_0x56067a(0x1d0)][_0x56067a(0x1c7)],'localPath':_0x3f9623[_0x56067a(0x1fa)],'reason':_0x3f9623[_0x56067a(0x1cc)]??_0x56067a(0x1db)});continue;}await ensureParentDirectory(_0x3f9623[_0x56067a(0x1fa)]);const _0x2667b2=serializePageSchemaForFile(_0x3f9623[_0x56067a(0x1d0)]['code']);await writeFile(_0x3f9623[_0x56067a(0x1fa)],_0x2667b2,_0x56067a(0x1ff)),_0x1d3156[_0x56067a(0x1ed)][String(_0x3f9623['detail'][_0x56067a(0x1f5)])]=buildLockEntry(_0x3f9623[_0x56067a(0x1d0)],_0x2667b2),_0x458625['push']({'pageId':_0x3f9623[_0x56067a(0x1d0)]['pageId'],'type':_0x3f9623[_0x56067a(0x1d0)]['type'],'title':_0x3f9623[_0x56067a(0x1d0)]['name'],'localPath':_0x3f9623['localPath']});}return _0x1d3156[_0x56067a(0x1e4)]=new Date()[_0x56067a(0x1ca)](),await writePageLockFile(_0x5a3f44[_0x56067a(0x1cf)],_0x49b5b0),{'ok':!![],'message':_0x56067a(0x1e0)+_0x458625[_0x56067a(0x1ec)]+_0x56067a(0x200)+_0x68a4ad[_0x56067a(0x1ec)]+_0x56067a(0x1d5),'data':{'appCode':_0x155152[_0x56067a(0x1f8)],'pulledPages':_0x458625,'skippedPages':_0x68a4ad,'totalPulled':_0x458625[_0x56067a(0x1ec)],'totalSkipped':_0x68a4ad[_0x56067a(0x1ec)]}};}};async function buildPullPlan(_0x35d494){const _0x14591b=a210_0x34a6cf,_0x5b943a=loadPageProjectConfig(_0x35d494[_0x14591b(0x1f8)]),_0x5da498=await readPageLockFile(_0x5b943a[_0x14591b(0x1cf)]),{appLock:_0x262bbe}=ensurePageLockScope(_0x5da498??createEmptyPageLock(),_0x35d494['appCode']),_0x5c23cd=getPageIdFlag(_0x35d494);if(_0x5c23cd!==undefined){const _0x139509=await loadPageDetailForPage(_0x35d494,_0x5c23cd);return{'mode':_0x14591b(0x1dd),'items':[await inspectPullTarget(_0x5b943a,_0x262bbe[_0x14591b(0x1ed)][String(_0x139509[_0x14591b(0x1f5)])],_0x139509)]};}const _0x467caf=await loadDatasetDetailForPage(_0x35d494),_0xfa1801=_0x467caf[_0x14591b(0x1ef)]['filter'](_0xd2774d=>!_0xd2774d['deleted']);if(_0xfa1801[_0x14591b(0x1ec)]===0x0)throw CliErrors[_0x14591b(0x1e7)](_0x14591b(0x1f7)+_0x467caf[_0x14591b(0x1f1)]+_0x14591b(0x1d3));const _0x46b98f=await Promise[_0x14591b(0x1ee)](_0xfa1801[_0x14591b(0x1d4)](_0x1ea460=>loadPageDetailForPage(_0x35d494,_0x1ea460['id']))),_0x540cb4=selectVersionTagGroup(_0x46b98f,_0x604a39=>_0x604a39[_0x14591b(0x1e9)],_0x35d494[_0x14591b(0x1fe)](_0x14591b(0x1d7)));return{'mode':'batch','datasetCode':_0x467caf[_0x14591b(0x1f1)],'items':await Promise[_0x14591b(0x1ee)](_0x540cb4[_0x14591b(0x201)][_0x14591b(0x1d4)](_0x1c8874=>inspectPullTarget(_0x5b943a,_0x262bbe[_0x14591b(0x1ed)][String(_0x1c8874[_0x14591b(0x1f5)])],_0x1c8874)))};}async function inspectPullTarget(_0x21e80a,_0x2359a6,_0x42640e){const _0x4e89a5=a210_0x34a6cf,_0x2692a5=resolvePageFilePath(_0x21e80a,_0x42640e['pageId'],_0x42640e[_0x4e89a5(0x1c8)]),_0x3662ad=await fileExists(_0x2692a5);if(!_0x3662ad){const _0x3d0a80=serializePageSchemaForFile(_0x42640e[_0x4e89a5(0x1f1)]);return{'detail':_0x42640e,'localPath':_0x2692a5,'localHash':computePageContentHash(_0x3d0a80),'status':_0x4e89a5(0x1f6)};}const _0x9794b1=await computePageFileHash(_0x2692a5);if(!_0x2359a6||_0x9794b1!==_0x2359a6[_0x4e89a5(0x1fd)])return{'detail':_0x42640e,'localPath':_0x2692a5,'localHash':_0x9794b1,'status':_0x4e89a5(0x1dc),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x42640e,'localPath':_0x2692a5,'localHash':_0x9794b1,'status':_0x4e89a5(0x1f6)};}function a210_0x4882(_0x14549e,_0x1ee892){_0x14549e=_0x14549e-0x1c6;const _0x1d74c1=a210_0x1d74();let _0x4882ba=_0x1d74c1[_0x14549e];return _0x4882ba;}function buildLockEntry(_0x2137bc,_0x4b9ea7){const _0x3abd80=a210_0x34a6cf;return{'hash':computePageContentHash(_0x4b9ea7),'pageId':_0x2137bc['pageId'],'pageVersion':_0x2137bc['pageVersion'],'type':_0x2137bc[_0x3abd80(0x1c8)],'title':_0x2137bc[_0x3abd80(0x1c7)],'datasetIds':_0x2137bc[_0x3abd80(0x1d8)],'versionTag':_0x2137bc['versionTag']};}function toPreviewItem(_0xa0fb7f){const _0x246b1c=a210_0x34a6cf;return{'pageId':_0xa0fb7f[_0x246b1c(0x1d0)][_0x246b1c(0x1f5)],'type':_0xa0fb7f[_0x246b1c(0x1d0)]['type'],'title':_0xa0fb7f[_0x246b1c(0x1d0)][_0x246b1c(0x1c7)],'localPath':_0xa0fb7f[_0x246b1c(0x1fa)],'status':_0xa0fb7f[_0x246b1c(0x1eb)],..._0xa0fb7f['reason']?{'reason':_0xa0fb7f[_0x246b1c(0x1cc)]}:{}};}function a210_0x1d74(){const _0x244ae3=['conflict','single','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','/smartapi/lovrabet/detail?pageId=','Pull\x20complete:\x20','11DaLrxC','mode','3236vWTaKB','lastSync','GET','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','validation','515QZvGfT','versionTag','string','status','length','pages','all','relatedPages','compress','code','137170CUXtXu','16RhwfDU','1pXtLKS','pageId','would_pull','Dataset\x20\x22','appCode','461111KQwpLj','localPath','pull','page','hash','str','utf8','\x20pulled,\x20','items','datasetCode','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','273566sYQHcO','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','name','type','980964ZdjHKx','toISOString','force','reason','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','bool','lockFilePath','detail','9AumODH','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','map','\x20skipped','863928okzuuF','version-tag','datasetIds','541908cCaYvl','filter','local\x20unsynced\x20changes'];a210_0x1d74=function(){return _0x244ae3;};return a210_0x1d74();}
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)]}:{}};}