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

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 (376) 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-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
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
+ const a199_0x1bef01=a199_0x578c;(function(_0x5020ba,_0x2b70da){const _0x27ac5e=a199_0x578c,_0x20ddae=_0x5020ba();while(!![]){try{const _0x585b38=-parseInt(_0x27ac5e(0xad))/0x1*(parseInt(_0x27ac5e(0x9b))/0x2)+-parseInt(_0x27ac5e(0x91))/0x3+parseInt(_0x27ac5e(0xa3))/0x4+-parseInt(_0x27ac5e(0x9c))/0x5+-parseInt(_0x27ac5e(0xa7))/0x6*(parseInt(_0x27ac5e(0x7e))/0x7)+-parseInt(_0x27ac5e(0x83))/0x8+parseInt(_0x27ac5e(0x94))/0x9;if(_0x585b38===_0x2b70da)break;else _0x20ddae['push'](_0x20ddae['shift']());}catch(_0x123713){_0x20ddae['push'](_0x20ddae['shift']());}}}(a199_0x5a76,0xf0b8d));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';function a199_0x578c(_0x3ee1f4,_0x2bbcf8){_0x3ee1f4=_0x3ee1f4-0x7d;const _0x5a76c8=a199_0x5a76();let _0x578cc2=_0x5a76c8[_0x3ee1f4];return _0x578cc2;}const CUSTOM_PAGE_PATTERNS=['BLANK',a199_0x1bef01(0x9e),a199_0x1bef01(0xa9)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x1bef01(0xa8));export const pageCreate={'service':a199_0x1bef01(0xa2),'command':a199_0x1bef01(0xaa),'description':a199_0x1bef01(0xb5),'risk':a199_0x1bef01(0x84),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a199_0x1bef01(0x7f),'message':a199_0x1bef01(0xba),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':a199_0x1bef01(0x7d),'message':'page\x20create\x20no\x20longer\x20accepts\x20--page-content.','hint':a199_0x1bef01(0xa4)}],'flags':[{'name':a199_0x1bef01(0x80),'type':a199_0x1bef01(0x8e),'description':a199_0x1bef01(0x95)},{'name':a199_0x1bef01(0x8b),'type':'number','description':a199_0x1bef01(0x8f)},{'name':'page-pattern','type':'string','description':a199_0x1bef01(0x98),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x1bef01(0x9d),'type':a199_0x1bef01(0x8e),'description':a199_0x1bef01(0xb6)},APPCODE_FLAG],async 'validate'(_0x5df044){await readValidatedPageSource(_0x5df044);},async 'dryRun'(_0x33f261){const _0x42039e=a199_0x1bef01,_0x331538=readInput(_0x33f261,await readValidatedPageSource(_0x33f261));return{'method':'POST','url':_0x42039e(0xbb),'body':{'appCode':_0x331538[_0x42039e(0xb4)],'pageName':_0x331538[_0x42039e(0x90)],..._0x331538['parentMenuId']!=null?{'parentMenuId':_0x331538[_0x42039e(0xa6)]}:{},'createMenu':_0x331538[_0x42039e(0x9f)],'codeContent':_0x331538[_0x42039e(0xa5)]},'description':_0x42039e(0xb7)+JSON[_0x42039e(0x89)](_0x331538['pageName'])+_0x42039e(0xb1)};},async 'execute'(_0x1aa2c1){const _0x342538=a199_0x1bef01,_0x49846d=readInput(_0x1aa2c1,await readValidatedPageSource(_0x1aa2c1)),_0x561fc6=await createCustomPage(_0x49846d);if(!Number['isInteger'](_0x561fc6[_0x342538(0xb2)])||_0x561fc6[_0x342538(0xb2)]<=0x0)throw CliErrors[_0x342538(0xb0)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x21a55a=buildCustomPageDevelopmentUrl(_0x49846d[_0x342538(0xb4)],_0x561fc6[_0x342538(0x81)]),_0x501e28=buildCustomPageEditUrl(_0x49846d['appCode'],_0x561fc6['pageId']);return{'ok':!![],'data':{'operation':_0x342538(0x96),'pageType':_0x342538(0xb8),'pagePattern':readPagePattern(_0x1aa2c1),'selector':{'appCode':_0x49846d[_0x342538(0xb4)],'pageName':_0x49846d[_0x342538(0x90)]},'before':null,'after':{'pageId':_0x561fc6[_0x342538(0xb2)],'pageName':_0x561fc6[_0x342538(0x90)],'appCode':_0x561fc6[_0x342538(0xb4)],'version':_0x561fc6['version'],'menuId':_0x561fc6[_0x342538(0x86)],'menuPath':_0x561fc6['menuPath'],'files':_0x561fc6[_0x342538(0xa5)]??Object[_0x342538(0xab)](_0x49846d[_0x342538(0xa5)])},'dryRun':![],'request':_0x49846d,..._0x21a55a?{'pageUrl':_0x21a55a}:{},..._0x501e28?{'editPageUrl':_0x501e28}:{},'warnings':_0x21a55a?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x342538(0x8d)+_0x561fc6['pageId']+'.'};}};function readPagePattern(_0x5b40d4){const _0x1c95d6=a199_0x1bef01,_0x16c77e=_0x5b40d4[_0x1c95d6(0x87)]('page-pattern')[_0x1c95d6(0x82)](),_0x2504ec=_0x5b40d4[_0x1c95d6(0x87)](_0x1c95d6(0x9d))[_0x1c95d6(0x82)]();if(_0x16c77e&&_0x2504ec)throw CliErrors[_0x1c95d6(0xa0)](_0x1c95d6(0x85));if(_0x2504ec)return null;if(!_0x16c77e)throw CliErrors[_0x1c95d6(0xa0)]('Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.');if(!CUSTOM_PAGE_PATTERNS['includes'](_0x16c77e))throw CliErrors['validation'](_0x1c95d6(0x99));return _0x16c77e;}async function readPageSource(_0x5ad9b9){const _0xab7a75=a199_0x1bef01,_0x33e352=_0x5ad9b9[_0xab7a75(0x87)](_0xab7a75(0x9d))[_0xab7a75(0x82)](),_0x41d09b=readPagePattern(_0x5ad9b9);if(_0x41d09b===null){const _0x326065=await readCustomPageDirectory(_0x33e352);if(Object[_0xab7a75(0xab)](_0x326065)[_0xab7a75(0x88)]===0x0)throw CliErrors[_0xab7a75(0xa0)](_0xab7a75(0x9a));return _0x326065;}let _0x454ddd;try{_0x454ddd=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x41d09b[_0xab7a75(0x97)]()+_0xab7a75(0xb9)),_0xab7a75(0xac));}catch{throw CliErrors[_0xab7a75(0xa0)](_0xab7a75(0xbc)+_0x41d09b+'.');}let _0x3c907f;try{_0x3c907f=JSON[_0xab7a75(0xa1)](_0x454ddd);}catch{throw CliErrors[_0xab7a75(0xa0)](_0xab7a75(0xae)+_0x41d09b+'.');}if(!_0x3c907f||typeof _0x3c907f!==_0xab7a75(0xbd)||Array['isArray'](_0x3c907f)||Object[_0xab7a75(0xb3)](_0x3c907f)[_0xab7a75(0x92)](_0x2c333a=>typeof _0x2c333a!==_0xab7a75(0x8e)))throw CliErrors['validation'](_0xab7a75(0xae)+_0x41d09b+'.');return _0x3c907f;}async function readValidatedPageSource(_0x14c127){const _0x3ed640=await readPageSource(_0x14c127);return await validateCustomPageContent(_0x3ed640),_0x3ed640;}function a199_0x5a76(){const _0x2d332e=['str','length','stringify','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','parent-menu-id','now','Created\x20Custom\x20Page\x20','string','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','pageName','3799392LOxNeH','some','Custom_page_','65846925GUpOwo','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','page.create','toLowerCase','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','394jTLxQk','9199345fauUdC','page-dir','ONEPAGE','createMenu','validation','parse','page','5527772hEhRVC','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','files','parentMenuId','222fnGFSq','../../../templates/custom-pages','DASHBOARD','create','keys','utf8','9326RwYqrz','Invalid\x20Custom\x20Page\x20pattern:\x20','isNaN','apiError','\x20and\x20its\x20menu\x20entry.','pageId','values','appCode','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','Would\x20create\x20Custom\x20Page\x20','CUSTOM','.json','page\x20create\x20does\x20not\x20accept\x20--page-type.','/smartapi/webcode/page/create','Custom\x20Page\x20pattern\x20not\x20found:\x20','object','page-content','197435LwhMDm','page-type','name','menuPath','trim','13801048jfwKou','write','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','menuId'];a199_0x5a76=function(){return _0x2d332e;};return a199_0x5a76();}function readInput(_0x824f61,_0x41aada){const _0x5dfe9a=a199_0x1bef01,_0x5a7c0c=_0x824f61[_0x5dfe9a(0x87)](_0x5dfe9a(0x80))['trim']()||_0x5dfe9a(0x93)+Date[_0x5dfe9a(0x8c)]();if(_0x5a7c0c['length']>0x64)throw CliErrors[_0x5dfe9a(0xa0)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x215f56=_0x824f61['num'](_0x5dfe9a(0x8b),NaN),_0x30c6ed=!Number[_0x5dfe9a(0xaf)](_0x215f56);if(_0x30c6ed&&(!Number['isInteger'](_0x215f56)||_0x215f56<=0x0))throw CliErrors[_0x5dfe9a(0xa0)](_0x5dfe9a(0x8a));return{'appCode':_0x824f61[_0x5dfe9a(0xb4)],'pageName':_0x5a7c0c,..._0x30c6ed?{'parentMenuId':_0x215f56}:{},'createMenu':!![],'files':_0x41aada};}
@@ -1 +1 @@
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
+ const a200_0x4814cd=a200_0x4bde;(function(_0x4ad882,_0x4f2b6e){const _0x3f847b=a200_0x4bde,_0x3a9d03=_0x4ad882();while(!![]){try{const _0x1f875e=parseInt(_0x3f847b(0x16a))/0x1+-parseInt(_0x3f847b(0x168))/0x2+-parseInt(_0x3f847b(0x158))/0x3+-parseInt(_0x3f847b(0x155))/0x4*(-parseInt(_0x3f847b(0x15f))/0x5)+parseInt(_0x3f847b(0x16d))/0x6*(parseInt(_0x3f847b(0x15e))/0x7)+parseInt(_0x3f847b(0x160))/0x8*(parseInt(_0x3f847b(0x15d))/0x9)+-parseInt(_0x3f847b(0x16c))/0xa*(-parseInt(_0x3f847b(0x16b))/0xb);if(_0x1f875e===_0x4f2b6e)break;else _0x3a9d03['push'](_0x3a9d03['shift']());}catch(_0x1bc3a7){_0x3a9d03['push'](_0x3a9d03['shift']());}}}(a200_0x1e90,0x8935a));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x1e90(){const _0x4a0a85=['getSeconds','831027XmWpRj','Custom\x20Page\x20ID','join','trim','cookie','108FJRTvK','7zbpVRT','254645WZEfxG','561360ZSdeYi','isNaN','Retrieved\x20Custom\x20Page\x20','getFullYear','number','getTime','getHours','custom-detail','1535678BdxzAv','appcode','79453EGyDQT','44MKboog','36590anuOCY','2802078PsemsS','padStart','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','str','getMonth','compress','16eOaaid','page'];a200_0x1e90=function(){return _0x4a0a85;};return a200_0x1e90();}function a200_0x4bde(_0x22f6da,_0x5453b0){_0x22f6da=_0x22f6da-0x152;const _0x1e90b2=a200_0x1e90();let _0x4bdef5=_0x1e90b2[_0x22f6da];return _0x4bdef5;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x4814cd(0x156),'command':a200_0x4814cd(0x167),'description':a200_0x4814cd(0x16f),'risk':'read','defaultOutputFormat':a200_0x4814cd(0x154),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x4814cd(0x164),'required':!![],'description':a200_0x4814cd(0x159)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2c737e){readCustomPageId(_0x2c737e);},async 'execute'(_0x378bca){const _0x1e733f=a200_0x4814cd,_0x28ba9a=readCustomPageId(_0x378bca),_0x213bc9=await getCustomPageSource(_0x28ba9a),{bundle:_0x26c97e,createTime:_0x20b7bf,updateTime:_0x138d31,..._0x13cbb5}=_0x213bc9,_0x52b5b7=_0x213bc9['id']??_0x28ba9a,_0x10817c=_0x213bc9['appCode']?.[_0x1e733f(0x15b)]()||_0x378bca[_0x1e733f(0x152)](_0x1e733f(0x169))[_0x1e733f(0x15b)](),_0x3bda69=buildCustomPageRuntimeUrl(_0x10817c,_0x213bc9['pageCode']),_0x40b7aa=buildCustomPageEditUrl(_0x10817c,_0x52b5b7),_0x54e5e0=await resolveCustomPageDevelopmentUrl(_0x10817c,_0x52b5b7,_0x378bca[_0x1e733f(0x15c)]);return{'ok':!![],'data':{..._0x13cbb5,..._0x3bda69?{'runtimePageUrl':_0x3bda69}:{},..._0x54e5e0?{'pageUrl':_0x54e5e0}:{},..._0x40b7aa?{'editPageUrl':_0x40b7aa}:{},..._0x20b7bf==null?{}:{'createTime':formatTime(_0x20b7bf)},..._0x138d31==null?{}:{'updateTime':formatTime(_0x138d31)}},'message':_0x1e733f(0x162)+_0x28ba9a+'.'};}};function formatTime(_0x121bb0){const _0x4c9758=a200_0x4814cd,_0x2879c8=new Date(_0x121bb0);if(Number[_0x4c9758(0x161)](_0x2879c8[_0x4c9758(0x165)]()))return String(_0x121bb0);const _0x5a4a3a=[_0x2879c8[_0x4c9758(0x163)](),String(_0x2879c8[_0x4c9758(0x153)]()+0x1)[_0x4c9758(0x16e)](0x2,'0'),String(_0x2879c8['getDate']())['padStart'](0x2,'0')]['join']('-'),_0xc055d1=[String(_0x2879c8[_0x4c9758(0x166)]())[_0x4c9758(0x16e)](0x2,'0'),String(_0x2879c8['getMinutes']())[_0x4c9758(0x16e)](0x2,'0'),String(_0x2879c8[_0x4c9758(0x157)]())[_0x4c9758(0x16e)](0x2,'0')][_0x4c9758(0x15a)](':');return _0x5a4a3a+'\x20'+_0xc055d1;}
@@ -1 +1 @@
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
+ const a201_0x3e804e=a201_0x5373;function a201_0x4fc1(){const _0x47a883=['compress','6257wwrIqk','read','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','pageId','custom-list','label','854420PFmvOT','126959BnrYJi','644214BzhSRi','322220BFMZCo','1128690srhhFf','15ySGfen','length','8ibWDZn','cookie','48iKDjTH','react','flatMap','page','menus','1289295kGLhTm','Found\x20','appCode','path'];a201_0x4fc1=function(){return _0x47a883;};return a201_0x4fc1();}(function(_0x4a834c,_0x4c0099){const _0x6746b6=a201_0x5373,_0x868cab=_0x4a834c();while(!![]){try{const _0x543fec=-parseInt(_0x6746b6(0x16e))/0x1*(parseInt(_0x6746b6(0x164))/0x2)+parseInt(_0x6746b6(0x15f))/0x3+parseInt(_0x6746b6(0x15e))/0x4+parseInt(_0x6746b6(0x160))/0x5*(-parseInt(_0x6746b6(0x15d))/0x6)+-parseInt(_0x6746b6(0x15c))/0x7*(parseInt(_0x6746b6(0x162))/0x8)+parseInt(_0x6746b6(0x169))/0x9+parseInt(_0x6746b6(0x15b))/0xa;if(_0x543fec===_0x4c0099)break;else _0x868cab['push'](_0x868cab['shift']());}catch(_0x18d043){_0x868cab['push'](_0x868cab['shift']());}}}(a201_0x4fc1,0x2f9fe));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x5373(_0x5ba8b8,_0x590d1d){_0x5ba8b8=_0x5ba8b8-0x159;const _0x4fc1f6=a201_0x4fc1();let _0x537333=_0x4fc1f6[_0x5ba8b8];return _0x537333;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x3e804e(0x167),'command':a201_0x3e804e(0x159),'description':a201_0x3e804e(0x170),'risk':a201_0x3e804e(0x16f),'defaultOutputFormat':a201_0x3e804e(0x16d),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x40cdb9){const _0x551b27=a201_0x3e804e,_0x906505=(await fetchMenuSnapshot(_0x40cdb9[_0x551b27(0x16b)],_0x40cdb9[_0x551b27(0x163)]))[_0x551b27(0x168)][_0x551b27(0x166)](_0xc42435=>{const _0x20410a=_0x551b27;if(_0xc42435['type']!==_0x20410a(0x165)||_0xc42435['pageId']==null)return[];const _0x4998e4=buildCustomPageDevelopmentUrl(_0x40cdb9[_0x20410a(0x16b)],_0xc42435[_0x20410a(0x16c)]),_0x363383=buildCustomPageRuntimeUrl(_0x40cdb9[_0x20410a(0x16b)],_0xc42435[_0x20410a(0x16c)]),_0x5362bf=buildCustomPageEditUrl(_0x40cdb9[_0x20410a(0x16b)],_0xc42435[_0x20410a(0x171)]);return[{'pageId':_0xc42435[_0x20410a(0x171)],'label':_0xc42435[_0x20410a(0x15a)],'path':_0xc42435[_0x20410a(0x16c)],..._0x4998e4?{'pageUrl':_0x4998e4}:{},..._0x363383?{'runtimePageUrl':_0x363383}:{},..._0x5362bf?{'editPageUrl':_0x5362bf}:{}}];});return{'ok':!![],'data':{'pages':_0x906505},'message':_0x906505[_0x551b27(0x161)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x551b27(0x16a)+_0x906505[_0x551b27(0x161)]+'\x20Custom\x20Page(s).'};}};
@@ -1 +1 @@
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
+ const a202_0x56ddc5=a202_0x1c73;function a202_0x1c73(_0x2dc1ee,_0x47fed4){_0x2dc1ee=_0x2dc1ee-0x16f;const _0x5ea4fe=a202_0x5ea4();let _0x1c7318=_0x5ea4fe[_0x2dc1ee];return _0x1c7318;}(function(_0x42aa1f,_0x47a0b4){const _0x15fb48=a202_0x1c73,_0x40784c=_0x42aa1f();while(!![]){try{const _0x47a66d=-parseInt(_0x15fb48(0x17f))/0x1+-parseInt(_0x15fb48(0x187))/0x2+-parseInt(_0x15fb48(0x191))/0x3+-parseInt(_0x15fb48(0x192))/0x4*(-parseInt(_0x15fb48(0x178))/0x5)+-parseInt(_0x15fb48(0x18f))/0x6+-parseInt(_0x15fb48(0x18d))/0x7*(-parseInt(_0x15fb48(0x17d))/0x8)+-parseInt(_0x15fb48(0x17a))/0x9*(-parseInt(_0x15fb48(0x170))/0xa);if(_0x47a66d===_0x47a0b4)break;else _0x40784c['push'](_0x40784c['shift']());}catch(_0x9637a1){_0x40784c['push'](_0x40784c['shift']());}}}(a202_0x5ea4,0x63464));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':'page','command':a202_0x56ddc5(0x17b),'description':a202_0x56ddc5(0x177),'risk':a202_0x56ddc5(0x18c),'defaultOutputFormat':a202_0x56ddc5(0x18a),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a202_0x56ddc5(0x190)},{'name':a202_0x56ddc5(0x188),'type':'string','description':a202_0x56ddc5(0x173)}],async 'validate'(_0xeffc0f){readCustomPageId(_0xeffc0f);},async 'dryRun'(_0x3efe2b){const _0x35e2cc=a202_0x56ddc5,_0x1efa53=readInput(_0x3efe2b);return{'method':_0x35e2cc(0x17c),'url':_0x35e2cc(0x181),'body':{'id':_0x1efa53[_0x35e2cc(0x18b)],..._0x1efa53[_0x35e2cc(0x188)]?{'remark':_0x1efa53[_0x35e2cc(0x188)]}:{}},'description':_0x35e2cc(0x174)+_0x1efa53[_0x35e2cc(0x18b)]+'.'};},async 'execute'(_0x43d211){const _0x2fd83f=a202_0x56ddc5,_0x22e873=readInput(_0x43d211);await getCustomPageSource(_0x22e873[_0x2fd83f(0x18b)]);const _0x2ee725=await publishCustomPage(_0x22e873);if(!Number[_0x2fd83f(0x185)](_0x2ee725)||_0x2ee725!==_0x22e873[_0x2fd83f(0x18b)])throw CliErrors[_0x2fd83f(0x176)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x20d437=await getCustomPageSource(_0x22e873[_0x2fd83f(0x18b)]);if(_0x20d437[_0x2fd83f(0x179)]!==_0x2fd83f(0x182))throw CliErrors[_0x2fd83f(0x176)](_0x2fd83f(0x189)+(_0x20d437[_0x2fd83f(0x179)]??'unknown')+'.');const _0x3b26db=_0x20d437['appCode']?.[_0x2fd83f(0x171)](),_0x475af4=buildCustomPageEditUrl(_0x3b26db,_0x22e873[_0x2fd83f(0x18b)]),_0x43339f=await resolveCustomPageDevelopmentUrl(_0x3b26db,_0x22e873[_0x2fd83f(0x18b)],_0x43d211['cookie']),_0x467fe1=buildMutationData(_0x22e873,!![],_0x43339f,_0x475af4);_0x3b26db&&!_0x43339f&&_0x467fe1[_0x2fd83f(0x175)][_0x2fd83f(0x172)](_0x2fd83f(0x17e));const _0x527ead=buildCustomPageRuntimeUrl(_0x20d437[_0x2fd83f(0x184)],_0x20d437[_0x2fd83f(0x16f)]);return _0x527ead?_0x467fe1['runtimePageUrl']=_0x527ead:_0x467fe1[_0x2fd83f(0x175)]['push'](_0x2fd83f(0x183)),{'ok':!![],'data':_0x467fe1,'message':_0x2fd83f(0x18e)+_0x22e873['pageId']+'.'};}};function readInput(_0x405ad7){const _0x84f7f1=a202_0x56ddc5,_0x36d623=readCustomPageId(_0x405ad7),_0x4e0eac=_0x405ad7[_0x84f7f1(0x180)]('remark')['trim']();return{'pageId':_0x36d623,..._0x4e0eac?{'remark':_0x4e0eac}:{}};}function a202_0x5ea4(){const _0x1c627b=['trim','push','Optional\x20publish\x20remark','Would\x20publish\x20Custom\x20Page\x20','warnings','apiError','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','110RLWDsK','status','8006130izovRX','custom-publish','POST','636360MzEydS','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','803299SvtEcX','str','/smartapi/webcode/file/publish','FORMAL','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','appCode','isInteger','page.custom-publish','364302PJFbyk','remark','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','compress','pageId','write','35eLwwwQ','Published\x20Custom\x20Page\x20','359412MaqHxe','Custom\x20Page\x20ID','3651fxSePp','30164JBFZyo','pageCode','10kZBeQp'];a202_0x5ea4=function(){return _0x1c627b;};return a202_0x5ea4();}function buildMutationData(_0x4a5fea,_0x409209=![],_0x3e3153,_0x4ac0cd){const _0x29de81=a202_0x56ddc5;return{'operation':_0x29de81(0x186),'selector':{'pageId':_0x4a5fea[_0x29de81(0x18b)]},'before':null,'after':{'pageId':_0x4a5fea['pageId'],'status':_0x29de81(0x182)},'dryRun':!_0x409209,'request':_0x4a5fea,..._0x3e3153?{'pageUrl':_0x3e3153}:{},..._0x4ac0cd?{'editPageUrl':_0x4ac0cd}:{},'warnings':[]};}
@@ -1 +1 @@
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
+ const a203_0x206600=a203_0x513f;(function(_0x36d4a7,_0x2990c4){const _0x3de257=a203_0x513f,_0x4333ea=_0x36d4a7();while(!![]){try{const _0x3c067e=parseInt(_0x3de257(0x142))/0x1+parseInt(_0x3de257(0x139))/0x2*(parseInt(_0x3de257(0x140))/0x3)+-parseInt(_0x3de257(0x13c))/0x4*(parseInt(_0x3de257(0x13e))/0x5)+-parseInt(_0x3de257(0x147))/0x6*(-parseInt(_0x3de257(0x13f))/0x7)+parseInt(_0x3de257(0x152))/0x8+parseInt(_0x3de257(0x141))/0x9*(-parseInt(_0x3de257(0x148))/0xa)+parseInt(_0x3de257(0x143))/0xb;if(_0x3c067e===_0x2990c4)break;else _0x4333ea['push'](_0x4333ea['shift']());}catch(_0xbdf30c){_0x4333ea['push'](_0x4333ea['shift']());}}}(a203_0x2f10,0x53df4));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_0x206600(0x14e)};function a203_0x513f(_0x47111b,_0x176105){_0x47111b=_0x47111b-0x139;const _0x2f1072=a203_0x2f10();let _0x513f16=_0x2f1072[_0x47111b];return _0x513f16;}function a203_0x2f10(){const _0x4e5f69=['trim','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','type','message','/ide/','2341120biDpTh','react','num','map','120002Yrunrr','Invalid\x20Custom\x20Page\x20content:\x20','validation','4LXsQMp','isInteger','979230uzngNS','63uxANyI','6kIQBwr','18AUJIcI','172791cbsnsk','172590AbQzpv','path','join','menus','83838Vqzyqh','937470XFMZkv','file','pageId','length','--id\x20must\x20be\x20a\x20positive\x20integer.'];a203_0x2f10=function(){return _0x4e5f69;};return a203_0x2f10();}function trimOptional(_0x190679){const _0x1f7039=a203_0x206600;return _0x190679?.[_0x1f7039(0x14d)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x44a0e1,_0x1f8a3a){const _0x40e358=trimOptional(_0x44a0e1),_0x3efd33=trimOptional(_0x1f8a3a);if(!_0x40e358||!_0x3efd33)return undefined;return getPublishedAppDomain(_0x40e358)+'/'+encodeURIComponent(_0x3efd33);}export function buildCustomPageDevelopmentUrl(_0x5d3104,_0x2e629d){const _0x33cd49=trimOptional(_0x5d3104),_0x288d7e=trimOptional(_0x2e629d);if(!_0x33cd49||!_0x288d7e)return undefined;return getAppBaseUrl(_0x33cd49)+'/pages/'+encodeURIComponent(_0x288d7e);}export async function resolveCustomPageDevelopmentUrl(_0x20463f,_0x199112,_0xcfb584){const _0x2346d8=a203_0x206600,_0x39e30e=trimOptional(_0x20463f);if(!_0x39e30e)return undefined;try{const _0x42ac24=(await fetchMenuSnapshot(_0x39e30e,_0xcfb584))[_0x2346d8(0x146)]['find'](_0x3e2d14=>_0x3e2d14[_0x2346d8(0x14f)]===_0x2346d8(0x153)&&_0x3e2d14[_0x2346d8(0x14a)]===_0x199112);return buildCustomPageDevelopmentUrl(_0x39e30e,_0x42ac24?.[_0x2346d8(0x144)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x122c61,_0x2dfc24){const _0x59c5e6=a203_0x206600,_0x2f0109=trimOptional(_0x122c61);if(!_0x2f0109)return;const _0x12baaf=trimOptional(String(_0x2dfc24??''));if(!_0x12baaf)return;return getAppBaseUrl(_0x2f0109)+_0x59c5e6(0x151)+encodeURIComponent(_0x12baaf);}export async function validateCustomPageContent(_0x32ceb5){const _0x1e5ba2=a203_0x206600,_0x51dcc7=await validateCustomPageSourceFiles(_0x32ceb5);if(_0x51dcc7[_0x1e5ba2(0x14b)]>0x0)throw CliErrors[_0x1e5ba2(0x13b)](_0x1e5ba2(0x13a)+_0x51dcc7[_0x1e5ba2(0x155)](_0x83a226=>_0x83a226[_0x1e5ba2(0x149)]+':\x20'+_0x83a226[_0x1e5ba2(0x150)])[_0x1e5ba2(0x145)](';\x20'));}export function readCustomPageId(_0x55425c){const _0x11885f=a203_0x206600,_0xa40a17=_0x55425c[_0x11885f(0x154)]('id');if(!Number[_0x11885f(0x13d)](_0xa40a17)||_0xa40a17<=0x0)throw CliErrors[_0x11885f(0x13b)](_0x11885f(0x14c));return _0xa40a17;}
@@ -1 +1 @@
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
+ const a204_0x4812a1=a204_0x39c8;(function(_0x1642ae,_0x380a65){const _0x2c3db1=a204_0x39c8,_0x35aa63=_0x1642ae();while(!![]){try{const _0x15332=parseInt(_0x2c3db1(0x1ce))/0x1+parseInt(_0x2c3db1(0x1de))/0x2+parseInt(_0x2c3db1(0x1d9))/0x3+parseInt(_0x2c3db1(0x1dc))/0x4+parseInt(_0x2c3db1(0x1e0))/0x5*(parseInt(_0x2c3db1(0x1df))/0x6)+-parseInt(_0x2c3db1(0x1d4))/0x7*(-parseInt(_0x2c3db1(0x1db))/0x8)+parseInt(_0x2c3db1(0x1d6))/0x9*(-parseInt(_0x2c3db1(0x1d0))/0xa);if(_0x15332===_0x380a65)break;else _0x35aa63['push'](_0x35aa63['shift']());}catch(_0x2cc8cd){_0x35aa63['push'](_0x35aa63['shift']());}}}(a204_0x413a,0xb43aa));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x4812a1(0x1cd),'.jsx':'babel','.ts':a204_0x4812a1(0x1dd),'.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=[a204_0x4812a1(0x1d1),a204_0x4812a1(0x1d5)];function a204_0x39c8(_0x5127f4,_0x51e130){_0x5127f4=_0x5127f4-0x1cc;const _0x413a00=a204_0x413a();let _0x39c81c=_0x413a00[_0x5127f4];return _0x39c81c;}export async function validateCustomPageSourceFiles(_0x4990e){const _0x23801c=a204_0x4812a1,_0x5de6ce=Object['entries'](_0x4990e)[_0x23801c(0x1cc)](([_0x34925d])=>getParser(_0x34925d));if(!_0x5de6ce[_0x23801c(0x1e1)](([_0x445439])=>isReactSourceFile(_0x445439)))return[{'file':'page\x20files','message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x53a831=await Promise['all'](_0x5de6ce['map'](async([_0x3cdc2f,_0x27c95f])=>{const _0x540782=_0x23801c;try{return await format(_0x27c95f,{'parser':getParser(_0x3cdc2f)}),undefined;}catch(_0xc25083){return{'file':_0x3cdc2f,'message':_0xc25083 instanceof Error?_0xc25083[_0x540782(0x1d3)]:String(_0xc25083)};}}));return _0x53a831[_0x23801c(0x1cc)](_0x14f374=>_0x14f374!==undefined);}function getParser(_0x1a2880){const _0x4a0f64=a204_0x4812a1,_0x472a77=_0x1a2880[_0x4a0f64(0x1d7)]()[_0x4a0f64(0x1cf)]();return Object[_0x4a0f64(0x1d8)](SOURCE_PARSERS)[_0x4a0f64(0x1da)](([_0x63be0])=>_0x472a77[_0x4a0f64(0x1d2)](_0x63be0))?.[0x1];}function isReactSourceFile(_0x392ebc){const _0x2c35e6=a204_0x4812a1,_0x3f4482=_0x392ebc['trim']()[_0x2c35e6(0x1cf)]();return CUSTOM_PAGE_EXTENSIONS[_0x2c35e6(0x1e1)](_0x5e9a62=>_0x3f4482['endsWith'](_0x5e9a62));}function a204_0x413a(){const _0x3aef90=['.tsx','56178mrheAu','trim','entries','3019356eRNnHS','find','8NJISSq','3727992HcazbP','typescript','187610IPKSql','21990VZuvau','1325zrtKMD','some','filter','babel','221313wsekrU','toLowerCase','4330NobBge','.jsx','endsWith','message','1513477OTSnXr'];a204_0x413a=function(){return _0x3aef90;};return a204_0x413a();}
@@ -1 +1 @@
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
+ function a205_0x1a9d(){const _0x1d602f=['apiError','number','page','appCode','appcode','newVersion','2032968DpkVWx','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','942188dAlSmc','compress','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','pageContent','page-content','page-dir','426880hieOFP','/smartapi/webcode/page/update/content','pageId','POST','str','28wgEKQW','isInteger','136gEFwJm','page.custom-update','267639OlDwJq','6012405hQyIjX','6rjrISY','Custom\x20Page\x20ID','17755770ZoYdrv','710541TDkMlz','write'];a205_0x1a9d=function(){return _0x1d602f;};return a205_0x1a9d();}const a205_0x26b7d3=a205_0x2520;(function(_0x1b3de8,_0xa73710){const _0x3e1be2=a205_0x2520,_0x45187c=_0x1b3de8();while(!![]){try{const _0x50936f=parseInt(_0x3e1be2(0x104))/0x1+-parseInt(_0x3e1be2(0x102))/0x2+-parseInt(_0x3e1be2(0x114))/0x3*(parseInt(_0x3e1be2(0x110))/0x4)+parseInt(_0x3e1be2(0x10b))/0x5+parseInt(_0x3e1be2(0x116))/0x6*(parseInt(_0x3e1be2(0x115))/0x7)+-parseInt(_0x3e1be2(0x112))/0x8*(parseInt(_0x3e1be2(0x119))/0x9)+parseInt(_0x3e1be2(0x118))/0xa;if(_0x50936f===_0xa73710)break;else _0x45187c['push'](_0x45187c['shift']());}catch(_0x3a0d97){_0x45187c['push'](_0x45187c['shift']());}}}(a205_0x1a9d,0xa5c24));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_0x26b7d3(0xfe),'command':'custom-update','description':a205_0x26b7d3(0x103),'risk':a205_0x26b7d3(0xfb),'defaultOutputFormat':a205_0x26b7d3(0x105),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x26b7d3(0x109),'message':'page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':a205_0x26b7d3(0xfd),'required':!![],'description':a205_0x26b7d3(0x117)},{'name':a205_0x26b7d3(0x10a),'type':'string','required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2f7f69){readCustomPageId(_0x2f7f69),await readValidatedPageContent(_0x2f7f69);},async 'dryRun'(_0x472fff){const _0x1f5e32=a205_0x26b7d3,_0x42ee18=await readInput(_0x472fff);return{'method':_0x1f5e32(0x10e),'url':_0x1f5e32(0x10c),'body':{'id':_0x42ee18[_0x1f5e32(0x10d)],'codeContent':_0x42ee18[_0x1f5e32(0x108)]},'description':'Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20'+_0x42ee18[_0x1f5e32(0x10d)]+'.'};},async 'execute'(_0x5c38ea){const _0x41df5f=a205_0x26b7d3,_0x2bc56=await readInput(_0x5c38ea),_0x3c4a89=await updateCustomPageContent({'pageId':_0x2bc56['pageId'],'pageContent':_0x2bc56[_0x41df5f(0x108)]});if(!Number[_0x41df5f(0x111)](_0x3c4a89[_0x41df5f(0x101)])||_0x3c4a89['newVersion']<=0x0)throw CliErrors[_0x41df5f(0xfc)](_0x41df5f(0x106));const _0xf52db8=buildCustomPageEditUrl(_0x2bc56[_0x41df5f(0xff)],_0x2bc56[_0x41df5f(0x10d)]),_0x3e235f=await resolveCustomPageDevelopmentUrl(_0x2bc56[_0x41df5f(0xff)],_0x2bc56[_0x41df5f(0x10d)],_0x5c38ea['cookie']);return{'ok':!![],'data':{'operation':_0x41df5f(0x113),'selector':{'appCode':_0x2bc56[_0x41df5f(0xff)],'pageId':_0x2bc56[_0x41df5f(0x10d)]},'before':null,'after':{'pageId':_0x3c4a89[_0x41df5f(0x10d)],'version':_0x3c4a89[_0x41df5f(0x101)],'pageContent':_0x2bc56[_0x41df5f(0x108)]},'dryRun':![],'request':_0x2bc56,..._0x3e235f?{'pageUrl':_0x3e235f}:{},..._0xf52db8?{'editPageUrl':_0xf52db8}:{},'warnings':_0x3e235f?[]:[_0x41df5f(0x107)]},'message':'Updated\x20Custom\x20Page\x20'+_0x2bc56[_0x41df5f(0x10d)]+'.'};}};async function readInput(_0x118a47){const _0x146dd0=a205_0x26b7d3,_0x4cf067=readCustomPageId(_0x118a47),_0x3f3143=_0x118a47[_0x146dd0(0x10f)](_0x146dd0(0x100))['trim']()||(await getCustomPageSource(_0x4cf067))[_0x146dd0(0xff)]?.['trim']();if(!_0x3f3143)throw CliErrors['validation']('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x4cf067+'.');return{'appCode':_0x3f3143,'pageId':_0x4cf067,'pageContent':await readValidatedPageContent(_0x118a47)};}function a205_0x2520(_0x4254a6,_0x3b7e18){_0x4254a6=_0x4254a6-0xfb;const _0x1a9d71=a205_0x1a9d();let _0x2520e8=_0x1a9d71[_0x4254a6];return _0x2520e8;}async function readValidatedPageContent(_0x555afd){const _0x2afaa1=a205_0x26b7d3,_0x49de00=await readCustomPageDirectory(_0x555afd[_0x2afaa1(0x10f)](_0x2afaa1(0x10a)));return await validateCustomPageContent(_0x49de00),_0x49de00;}
@@ -1 +1 @@
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
+ const a206_0x3ec9ad=a206_0x55ea;function a206_0x55ea(_0x12fd9b,_0x5d24ff){_0x12fd9b=_0x12fd9b-0x13e;const _0x9a941f=a206_0x9a94();let _0x55ead8=_0x9a941f[_0x12fd9b];return _0x55ead8;}(function(_0x3f05e6,_0x576a8b){const _0x3c4572=a206_0x55ea,_0x256f1a=_0x3f05e6();while(!![]){try{const _0x1e49b9=parseInt(_0x3c4572(0x148))/0x1+parseInt(_0x3c4572(0x14e))/0x2+-parseInt(_0x3c4572(0x150))/0x3+-parseInt(_0x3c4572(0x144))/0x4+parseInt(_0x3c4572(0x143))/0x5+-parseInt(_0x3c4572(0x14b))/0x6+-parseInt(_0x3c4572(0x152))/0x7;if(_0x1e49b9===_0x576a8b)break;else _0x256f1a['push'](_0x256f1a['shift']());}catch(_0x114b2a){_0x256f1a['push'](_0x256f1a['shift']());}}}(a206_0x9a94,0x2aa52));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_0x3ec9ad(0x147),'command':'data-list-status','description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a206_0x3ec9ad(0x140),'defaultOutputFormat':a206_0x3ec9ad(0x14d),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x3ec9ad(0x145),'type':a206_0x3ec9ad(0x149),'description':a206_0x3ec9ad(0x153)}],async 'validate'(_0x3b6465){validateDatasetSelector(_0x3b6465);},async 'dryRun'(_0x53cb68){const _0x3742b0=a206_0x3ec9ad,_0x55d852=await loadDatasetDetailForPage(_0x53cb68);return{'method':_0x3742b0(0x146),'url':'/smartapi/lovrabet/dataset/'+_0x55d852[_0x3742b0(0x14a)]+_0x3742b0(0x142)+encodeURIComponent(_0x53cb68[_0x3742b0(0x13e)]),'description':serializeDryRunDescription({'dataset':{'id':_0x55d852['id'],'code':_0x55d852[_0x3742b0(0x14a)],'name':_0x55d852['name']},'action':_0x3742b0(0x14f)})};},async 'execute'(_0x1d28a3){const _0x2f5029=a206_0x3ec9ad,_0x307fb5=await loadDatasetDetailForPage(_0x1d28a3),_0x148177=await loadDataListPageStatusForGenerate(_0x1d28a3,_0x307fb5[_0x2f5029(0x14a)]),_0x4cb516=getUndeletedRelatedPages(_0x307fb5),_0xcf504c=assessDataListPageState(_0x307fb5['code'],_0x148177,{'fallbackUndeletedPages':_0x4cb516});return{'ok':!![],'data':{'datasetCode':_0x307fb5[_0x2f5029(0x14a)],'precheckSource':_0x148177?.['source']??_0x2f5029(0x141),'status':_0xcf504c[_0x2f5029(0x13f)],'manualResolutionRequired':_0xcf504c[_0x2f5029(0x151)],'nextAction':_0xcf504c[_0x2f5029(0x14c)],'dataListPageStatus':_0x148177,'relatedPages':{'total':_0x307fb5['relatedPages']['length'],'undeletedCount':_0x4cb516['length']}}};}};function a206_0x9a94(){const _0xda4c13=['275486AnGGVU','query-data-list-status','224814jiCWxf','manualResolutionRequired','352828bVIkZo','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','appCode','status','read','related-pages-fallback','/standard-page-status?appCode=','350660sBWugr','107776tkCYze','alias','GET','page','131192bLaZSJ','string','code','72642ULtLIL','nextAction','compress'];a206_0x9a94=function(){return _0xda4c13;};return a206_0x9a94();}
@@ -1 +1 @@
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
+ const a207_0x316b72=a207_0x40e8;(function(_0x1a79aa,_0x36d8c2){const _0x3b3458=a207_0x40e8,_0x5740a7=_0x1a79aa();while(!![]){try{const _0x46cf24=-parseInt(_0x3b3458(0x7d))/0x1*(-parseInt(_0x3b3458(0xa2))/0x2)+-parseInt(_0x3b3458(0xa6))/0x3+parseInt(_0x3b3458(0x87))/0x4*(parseInt(_0x3b3458(0x7a))/0x5)+-parseInt(_0x3b3458(0xa9))/0x6*(parseInt(_0x3b3458(0x99))/0x7)+parseInt(_0x3b3458(0x82))/0x8*(parseInt(_0x3b3458(0x93))/0x9)+-parseInt(_0x3b3458(0xa5))/0xa*(parseInt(_0x3b3458(0x77))/0xb)+-parseInt(_0x3b3458(0x85))/0xc;if(_0x46cf24===_0x36d8c2)break;else _0x5740a7['push'](_0x5740a7['shift']());}catch(_0x3b1e2c){_0x5740a7['push'](_0x5740a7['shift']());}}}(a207_0x283f,0xd534b));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a207_0x283f(){const _0x16cbc3=['90891VgrEGp','dataListPageStatus','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','manualResolutionRequired','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','code','448xNVWxV','number','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','source','boolean','message','allowGenerate','PARTIAL_SUCCESS','nextAction','137014wJKKDg','name','CRUD_PAGE_SET','117830OsBKCL','1854654bHleNE','reused','/smartapi/lovrabet/dataset/','86124sjiLOG','operationId','page','page-type','946OmDFqo','generate-start','string','1735msCNDH','POST','alias','23SYizAD','appCode','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','dryRun','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','840cyEnYe','clientOperationId','apply','10121436LmQgnh','progressRate','18800gPghFo','taskId','Submitted\x20a\x20generate\x20task','dataset','page-pattern','status','precheck','DATA_LIST','/generate-standard-pages/start','Reusing\x20an\x20existing\x20generate\x20task','currentStep','bool'];a207_0x283f=function(){return _0x16cbc3;};return a207_0x283f();}function a207_0x40e8(_0x3b57b3,_0xf1f4bd){_0x3b57b3=_0x3b57b3-0x76;const _0x283f5f=a207_0x283f();let _0x40e82a=_0x283f5f[_0x3b57b3];return _0x40e82a;}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a207_0x316b72(0xab),'command':a207_0x316b72(0x78),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':'write','defaultOutputFormat':'compress','rejectedFlags':[{'name':a207_0x316b72(0x76),'message':a207_0x316b72(0x81),'hint':a207_0x316b72(0x9b)},{'name':a207_0x316b72(0x8b),'message':a207_0x316b72(0x7f),'hint':a207_0x316b72(0x95)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x316b72(0x7c),'type':a207_0x316b72(0x79),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'apply','type':a207_0x316b72(0x9d),'description':a207_0x316b72(0x97)}],async 'validate'(_0x4cda4f){validateDatasetSelector(_0x4cda4f);},async 'dryRun'(_0x44af50){const _0x4d1f43=a207_0x316b72,_0x5d1baf=await prepare(_0x44af50);return{'method':_0x4d1f43(0x7b),'url':_0x4d1f43(0xa8)+_0x5d1baf[_0x4d1f43(0x8a)][_0x4d1f43(0x98)]+_0x4d1f43(0x8f),'body':{'appCode':_0x44af50[_0x4d1f43(0x7e)],'clientOperationId':_0x5d1baf[_0x4d1f43(0x83)]},'description':serializeDryRunDescription({'dataset':{'id':_0x5d1baf[_0x4d1f43(0x8a)]['id'],'code':_0x5d1baf[_0x4d1f43(0x8a)][_0x4d1f43(0x98)],'name':_0x5d1baf[_0x4d1f43(0x8a)][_0x4d1f43(0xa3)],'fieldCount':_0x5d1baf['dataset']['fieldCount']},'precheckSource':_0x5d1baf[_0x4d1f43(0x94)]?.[_0x4d1f43(0x9c)]??'related-pages-fallback','action':_0x4d1f43(0x78),'clientOperationId':_0x5d1baf[_0x4d1f43(0x83)],'plannedStatus':_0x5d1baf[_0x4d1f43(0x8d)][_0x4d1f43(0x8c)],'reason':_0x5d1baf[_0x4d1f43(0x8d)][_0x4d1f43(0x9e)]})};},async 'execute'(_0x3e7dfe){const _0x28e47e=a207_0x316b72;if(!_0x3e7dfe[_0x28e47e(0x92)](_0x28e47e(0x84))){const _0x8f840f=await pageGenerateStart[_0x28e47e(0x80)](_0x3e7dfe);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x8f840f};}const _0x130440=await prepare(_0x3e7dfe);if(!_0x130440['precheck'][_0x28e47e(0x9f)])return{'ok':![],'message':_0x130440['precheck'][_0x28e47e(0x9e)],'data':{'datasetCode':_0x130440['dataset'][_0x28e47e(0x98)],'pageType':_0x28e47e(0x8e),'pagePattern':_0x28e47e(0xa4),'clientOperationId':_0x130440[_0x28e47e(0x83)],'precheckSource':_0x130440[_0x28e47e(0x94)]?.[_0x28e47e(0x9c)]??'related-pages-fallback','status':_0x130440[_0x28e47e(0x8d)]['status'],'manualResolutionRequired':_0x130440[_0x28e47e(0x8d)]['manualResolutionRequired'],'nextAction':_0x130440[_0x28e47e(0x8d)][_0x28e47e(0xa1)],'query':{'command':buildDataListPageStatusQueryCommand(_0x130440['dataset'][_0x28e47e(0x98)],_0x3e7dfe[_0x28e47e(0x7e)])},'dataListPageStatus':_0x130440[_0x28e47e(0x94)]}};const _0x50fe31=await startGenerateDataListPages(_0x3e7dfe[_0x28e47e(0x7e)],_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],{'clientOperationId':_0x130440[_0x28e47e(0x83)]}),_0x5b8ecc=_0x50fe31['status']==='SUCCESS'||_0x50fe31[_0x28e47e(0x8c)]===_0x28e47e(0xa0)?await loadDataListPageStatusForGenerate(_0x3e7dfe,_0x130440['dataset']['code']):null,_0x487894=assessGenerateOperationState(_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],_0x50fe31['status'],_0x5b8ecc);return{'ok':!![],'message':_0x50fe31[_0x28e47e(0xa7)]?_0x28e47e(0x90):_0x28e47e(0x89),'data':{'datasetCode':_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],'appCode':_0x3e7dfe[_0x28e47e(0x7e)],'pageType':'DATA_LIST','pagePattern':_0x28e47e(0xa4),'taskId':_0x50fe31[_0x28e47e(0x88)]??null,'operationId':_0x50fe31['operationId']??null,'clientOperationId':_0x130440[_0x28e47e(0x83)],'jobStatus':_0x50fe31[_0x28e47e(0x8c)]??null,'progressRate':typeof _0x50fe31[_0x28e47e(0x86)]===_0x28e47e(0x9a)?_0x50fe31[_0x28e47e(0x86)]:null,'currentStep':_0x50fe31[_0x28e47e(0x91)]??null,'reused':_0x50fe31[_0x28e47e(0xa7)]===!![],'status':_0x487894['status'],'manualResolutionRequired':_0x487894[_0x28e47e(0x96)],'nextAction':_0x487894[_0x28e47e(0xa1)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x130440[_0x28e47e(0x8a)][_0x28e47e(0x98)],{'appCode':_0x3e7dfe['appCode'],'taskId':_0x50fe31['taskId'],'operationId':_0x50fe31[_0x28e47e(0xaa)],'clientOperationId':_0x130440['clientOperationId']})},'dataListPageStatus':_0x5b8ecc}};}};async function prepare(_0x2f2966){const _0x4d8c04=a207_0x316b72,_0x19aa04=await loadDatasetDetailForPage(_0x2f2966),_0x2699e2=await loadDataListPageStatusForGenerate(_0x2f2966,_0x19aa04[_0x4d8c04(0x98)]),_0x150e4c=getUndeletedRelatedPages(_0x19aa04);return{'dataset':_0x19aa04,'dataListPageStatus':_0x2699e2,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x19aa04[_0x4d8c04(0x98)],_0x2699e2,{'fallbackUndeletedPages':_0x150e4c})};}
@@ -1 +1 @@
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
+ function a208_0x5f4b(_0x40aed6,_0x11628c){_0x40aed6=_0x40aed6-0x92;const _0x587c79=a208_0x587c();let _0x5f4b69=_0x587c79[_0x40aed6];return _0x5f4b69;}function a208_0x587c(){const _0x424b8a=['appCode','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','manualResolutionRequired','nextAction','message','operationId','11853413VTpEMV','status','string','set','1315167QtyyXm','SUCCESS','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','GET','3375200trLIVG','client-operation-id','6kNSkTk','errorMsg','227779ODHVDI','taskId','operation-id','toString','page','code','currentStep','35WcQDCV','number','PARTIAL_SUCCESS','operation_failed','250wZBbFT','clientOperationId','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','289065HEtBEl','generate-status','compress','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','str','query-generate-operation-status','/smartapi/lovrabet/dataset/','226216ewbehb','progressRate','157383vLJAVH','task-id','10CwAbAE','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','alias'];a208_0x587c=function(){return _0x424b8a;};return a208_0x587c();}const a208_0x255966=a208_0x5f4b;(function(_0x2f61f9,_0x331cba){const _0x222d57=a208_0x5f4b,_0x1c02f0=_0x2f61f9();while(!![]){try{const _0x39e477=parseInt(_0x222d57(0xa5))/0x1+parseInt(_0x222d57(0xbe))/0x2*(-parseInt(_0x222d57(0xb3))/0x3)+-parseInt(_0x222d57(0xba))/0x4*(parseInt(_0x222d57(0xac))/0x5)+-parseInt(_0x222d57(0xa3))/0x6*(parseInt(_0x222d57(0x9c))/0x7)+-parseInt(_0x222d57(0xa1))/0x8+parseInt(_0x222d57(0xbc))/0x9*(parseInt(_0x222d57(0xb0))/0xa)+parseInt(_0x222d57(0x98))/0xb;if(_0x39e477===_0x331cba)break;else _0x1c02f0['push'](_0x1c02f0['shift']());}catch(_0x27570b){_0x1c02f0['push'](_0x1c02f0['shift']());}}}(a208_0x587c,0x3e47f));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x255966(0xa9),'command':a208_0x255966(0xb4),'description':a208_0x255966(0xb2),'risk':'read','defaultOutputFormat':a208_0x255966(0xb5),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x255966(0xc0),'type':a208_0x255966(0x9a),'description':a208_0x255966(0x9e)},{'name':a208_0x255966(0xbd),'type':'string','description':a208_0x255966(0xbf)},{'name':'operation-id','type':a208_0x255966(0x9a),'description':a208_0x255966(0x93)},{'name':a208_0x255966(0xa2),'type':a208_0x255966(0x9a),'description':a208_0x255966(0xb6)}],async 'validate'(_0x33ea7b){validateDatasetSelector(_0x33ea7b),validateGenerateOperationSelector(_0x33ea7b);},async 'dryRun'(_0x22de69){const _0x1ba301=a208_0x255966,_0x209a0c=await loadDatasetDetailForPage(_0x22de69),_0x33554e=_0x22de69[_0x1ba301(0xb7)](_0x1ba301(0xbd)),_0x4a57d5=_0x22de69[_0x1ba301(0xb7)](_0x1ba301(0xa7)),_0x9896b0=_0x22de69[_0x1ba301(0xb7)](_0x1ba301(0xa2)),_0x575ae0=new URLSearchParams({'appCode':_0x22de69[_0x1ba301(0x92)]});return _0x33554e&&_0x575ae0[_0x1ba301(0x9b)](_0x1ba301(0xa6),_0x33554e),_0x4a57d5&&_0x575ae0[_0x1ba301(0x9b)](_0x1ba301(0x97),_0x4a57d5),_0x9896b0&&_0x575ae0['set'](_0x1ba301(0xb1),_0x9896b0),{'method':_0x1ba301(0xa0),'url':_0x1ba301(0xb9)+_0x209a0c[_0x1ba301(0xaa)]+'/generate-standard-pages/status?'+_0x575ae0[_0x1ba301(0xa8)](),'description':serializeDryRunDescription({'dataset':{'id':_0x209a0c['id'],'code':_0x209a0c[_0x1ba301(0xaa)],'name':_0x209a0c[_0x1ba301(0x9f)]},'action':_0x1ba301(0xb8),'taskId':_0x33554e||undefined,'operationId':_0x4a57d5||undefined,'clientOperationId':_0x9896b0||undefined})};},async 'execute'(_0x5983c3){const _0x2ca1be=a208_0x255966,_0x147b64=await loadDatasetDetailForPage(_0x5983c3),_0x25153a=_0x5983c3[_0x2ca1be(0xb7)](_0x2ca1be(0xbd)),_0x570802=_0x5983c3[_0x2ca1be(0xb7)](_0x2ca1be(0xa7)),_0xa80b47=_0x5983c3['str']('client-operation-id'),_0x520eec=await getGenerateDataListPagesStatus(_0x5983c3['appCode'],_0x147b64[_0x2ca1be(0xaa)],{'taskId':_0x25153a||undefined,'operationId':_0x570802||undefined,'clientOperationId':_0xa80b47||undefined}),_0x518926=_0x520eec[_0x2ca1be(0x99)]===_0x2ca1be(0x9d)||_0x520eec[_0x2ca1be(0x99)]===_0x2ca1be(0xae),_0x40b316=_0x518926?await loadDataListPageStatusForGenerate(_0x5983c3,_0x147b64[_0x2ca1be(0xaa)]):null,_0x20344e=assessGenerateOperationState(_0x147b64[_0x2ca1be(0xaa)],_0x520eec[_0x2ca1be(0x99)],_0x40b316),_0x51b386=_0x520eec['taskId']??_0x25153a??undefined,_0x172373=_0x520eec['operationId']??_0x570802??undefined,_0xbd684a=_0x520eec[_0x2ca1be(0xb1)]??_0xa80b47??undefined;return{'ok':!![],'message':_0x20344e[_0x2ca1be(0x99)]===_0x2ca1be(0xaf)?_0x520eec[_0x2ca1be(0xa4)]||_0x20344e[_0x2ca1be(0x96)]:_0x20344e[_0x2ca1be(0x96)],'data':{'datasetCode':_0x147b64['code'],'appCode':_0x5983c3[_0x2ca1be(0x92)],'taskId':_0x51b386,'operationId':_0x172373,'clientOperationId':_0xbd684a,'jobStatus':_0x520eec[_0x2ca1be(0x99)]??null,'progressRate':typeof _0x520eec[_0x2ca1be(0xbb)]===_0x2ca1be(0xad)?_0x520eec['progressRate']:null,'currentStep':_0x520eec[_0x2ca1be(0xab)]??null,'errorMsg':_0x520eec[_0x2ca1be(0xa4)]??null,'status':_0x20344e[_0x2ca1be(0x99)],'manualResolutionRequired':_0x20344e[_0x2ca1be(0x94)],'nextAction':_0x20344e[_0x2ca1be(0x95)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x147b64[_0x2ca1be(0xaa)],{'appCode':_0x5983c3[_0x2ca1be(0x92)],'taskId':_0x51b386,'operationId':_0x172373,'clientOperationId':_0xbd684a})},'dataListPageStatus':_0x40b316,'result':_0x520eec['result']??null}};}};
@@ -1 +1 @@
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
+ (function(_0x49429e,_0x1e6294){const _0x286db8=a209_0x32be,_0x4cd702=_0x49429e();while(!![]){try{const _0x57cde5=parseInt(_0x286db8(0x1d0))/0x1+-parseInt(_0x286db8(0x1d3))/0x2*(parseInt(_0x286db8(0x1d1))/0x3)+parseInt(_0x286db8(0x1cc))/0x4+parseInt(_0x286db8(0x1d4))/0x5*(-parseInt(_0x286db8(0x1cb))/0x6)+parseInt(_0x286db8(0x1ce))/0x7*(parseInt(_0x286db8(0x1cf))/0x8)+parseInt(_0x286db8(0x1ca))/0x9*(-parseInt(_0x286db8(0x1cd))/0xa)+parseInt(_0x286db8(0x1d2))/0xb*(parseInt(_0x286db8(0x1c9))/0xc);if(_0x57cde5===_0x1e6294)break;else _0x4cd702['push'](_0x4cd702['shift']());}catch(_0x208427){_0x4cd702['push'](_0x4cd702['shift']());}}}(a209_0x2126,0x89574));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';function a209_0x2126(){const _0x17ed40=['19254SWGtoi','1507284EmENaG','10qvhPvQ','7UjvPKI','5716536brZjEq','540375SucEiI','2973adhFey','11BmUdNv','1900FOyLPb','615WZMPxz','11044524VTUcfT','5880915YgDFfi'];a209_0x2126=function(){return _0x17ed40;};return a209_0x2126();}import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';function a209_0x32be(_0x5b5ac9,_0x46087a){_0x5b5ac9=_0x5b5ac9-0x1c9;const _0x21262b=a209_0x2126();let _0x32be8d=_0x21262b[_0x5b5ac9];return _0x32be8d;}import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
@@ -1 +1 @@
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)]}:{}};}
1
+ function a210_0x11a0(_0x51891d,_0x5658aa){_0x51891d=_0x51891d-0x1f4;const _0x271fa1=a210_0x271f();let _0x11a0d7=_0x271fa1[_0x51891d];return _0x11a0d7;}const a210_0x5a5d5b=a210_0x11a0;(function(_0x583251,_0x4f1d2f){const _0x5f53d5=a210_0x11a0,_0x5c9580=_0x583251();while(!![]){try{const _0x227c5e=parseInt(_0x5f53d5(0x204))/0x1+parseInt(_0x5f53d5(0x1f9))/0x2+-parseInt(_0x5f53d5(0x227))/0x3*(-parseInt(_0x5f53d5(0x203))/0x4)+-parseInt(_0x5f53d5(0x21d))/0x5*(parseInt(_0x5f53d5(0x20e))/0x6)+-parseInt(_0x5f53d5(0x222))/0x7*(parseInt(_0x5f53d5(0x20f))/0x8)+-parseInt(_0x5f53d5(0x217))/0x9+-parseInt(_0x5f53d5(0x20d))/0xa*(-parseInt(_0x5f53d5(0x21b))/0xb);if(_0x227c5e===_0x4f1d2f)break;else _0x5c9580['push'](_0x5c9580['shift']());}catch(_0xc3ed99){_0x5c9580['push'](_0x5c9580['shift']());}}}(a210_0x271f,0x76aeb));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';function a210_0x271f(){const _0x1bfb51=['number','items','filter','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','code','version-tag','utf8','string','lockFilePath','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','mode','pageVersion','length','push','/smartapi/lovrabet/detail?pageId=','1348530nurWXB','compress','local\x20unsynced\x20changes','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','validation','force','status','str','single','Pull\x20page\x20schema\x20to\x20local\x20files','12PSOwBd','165948JNTQSE','relatedPages','all','boolean','conflict','read','deleted','type','datasetIds','3660FEaBpg','364476vrZppA','8QkleLq','versionTag','reason','\x20skipped','Dataset\x20\x22','datasetCode','toISOString','hash','465768aUJgqf','pull','\x20pulled,\x20','pages','36014mAadTt','pageId','65oSQSML','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','localPath','map','alias','5132939EgXxQN','name','detail','would_pull','appCode','22353SXqlMn'];a210_0x271f=function(){return _0x1bfb51;};return a210_0x271f();}import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x5a5d5b(0x218),'description':a210_0x5a5d5b(0x202),'risk':a210_0x5a5d5b(0x209),'defaultOutputFormat':a210_0x5a5d5b(0x1fa),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x5a5d5b(0x228),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x5a5d5b(0x221),'type':a210_0x5a5d5b(0x22f),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a210_0x5a5d5b(0x22d),'type':'string','description':a210_0x5a5d5b(0x22b)},{'name':a210_0x5a5d5b(0x1fe),'type':a210_0x5a5d5b(0x207),'description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x594b42){validatePageTargetSelector(_0x594b42);},async 'dryRun'(_0x303b71){const _0x35be15=a210_0x5a5d5b,_0x1f4b51=await buildPullPlan(_0x303b71);return{'method':'GET','url':_0x1f4b51[_0x35be15(0x1f4)]===_0x35be15(0x201)?_0x35be15(0x1f8)+(_0x1f4b51[_0x35be15(0x229)][0x0]?.[_0x35be15(0x224)][_0x35be15(0x21c)]??''):_0x35be15(0x1fc),'body':{'appCode':_0x303b71['appCode'],'mode':_0x1f4b51['mode'],'targetDatasetCode':_0x1f4b51[_0x35be15(0x214)]??null,'pages':_0x1f4b51[_0x35be15(0x229)][_0x35be15(0x220)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x1f4b51[_0x35be15(0x1f4)],'datasetCode':_0x1f4b51[_0x35be15(0x214)]??null,'totalCandidates':_0x1f4b51[_0x35be15(0x229)][_0x35be15(0x1f6)],'totalWouldPull':_0x1f4b51[_0x35be15(0x229)][_0x35be15(0x22a)](_0x5e7db2=>_0x5e7db2[_0x35be15(0x1ff)]===_0x35be15(0x225))[_0x35be15(0x1f6)],'totalConflicts':_0x1f4b51[_0x35be15(0x229)]['filter'](_0x41fdaf=>_0x41fdaf[_0x35be15(0x1ff)]===_0x35be15(0x208))['length']})};},async 'execute'(_0x260928){const _0x258a65=a210_0x5a5d5b,_0x5d400d=loadPageProjectConfig(_0x260928[_0x258a65(0x226)]),_0x1f0aa3=await readPageLockFile(_0x5d400d['lockFilePath']),{lockData:_0x38d06f,appLock:_0x2581e3}=ensurePageLockScope(_0x1f0aa3??createEmptyPageLock(),_0x260928['appCode']),_0x57833b=await buildPullPlan(_0x260928),_0x5a6803=_0x260928['bool'](_0x258a65(0x1fe));if(_0x57833b[_0x258a65(0x1f4)]==='single'&&_0x57833b['items'][0x0]?.['status']===_0x258a65(0x208)&&!_0x5a6803)throw CliErrors[_0x258a65(0x1fd)]('Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20'+_0x57833b['items'][0x0]['localPath'],_0x258a65(0x231));const _0x4ce8f7=[],_0x3f02ae=[];for(const _0x2ce999 of _0x57833b[_0x258a65(0x229)]){if(_0x2ce999[_0x258a65(0x1ff)]===_0x258a65(0x208)&&!_0x5a6803){_0x3f02ae[_0x258a65(0x1f7)]({'pageId':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x21c)],'type':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x20b)],'title':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x223)],'localPath':_0x2ce999['localPath'],'reason':_0x2ce999[_0x258a65(0x211)]??_0x258a65(0x1fb)});continue;}await ensureParentDirectory(_0x2ce999[_0x258a65(0x21f)]);const _0x3e6201=serializePageSchemaForFile(_0x2ce999[_0x258a65(0x224)][_0x258a65(0x22c)]);await writeFile(_0x2ce999['localPath'],_0x3e6201,_0x258a65(0x22e)),_0x2581e3[_0x258a65(0x21a)][String(_0x2ce999[_0x258a65(0x224)][_0x258a65(0x21c)])]=buildLockEntry(_0x2ce999[_0x258a65(0x224)],_0x3e6201),_0x4ce8f7[_0x258a65(0x1f7)]({'pageId':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x21c)],'type':_0x2ce999[_0x258a65(0x224)][_0x258a65(0x20b)],'title':_0x2ce999['detail'][_0x258a65(0x223)],'localPath':_0x2ce999[_0x258a65(0x21f)]});}return _0x2581e3['lastSync']=new Date()[_0x258a65(0x215)](),await writePageLockFile(_0x5d400d['lockFilePath'],_0x38d06f),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x4ce8f7[_0x258a65(0x1f6)]+_0x258a65(0x219)+_0x3f02ae[_0x258a65(0x1f6)]+_0x258a65(0x212),'data':{'appCode':_0x260928[_0x258a65(0x226)],'pulledPages':_0x4ce8f7,'skippedPages':_0x3f02ae,'totalPulled':_0x4ce8f7[_0x258a65(0x1f6)],'totalSkipped':_0x3f02ae[_0x258a65(0x1f6)]}};}};async function buildPullPlan(_0x568037){const _0x42d4b4=a210_0x5a5d5b,_0x521d28=loadPageProjectConfig(_0x568037[_0x42d4b4(0x226)]),_0x544fe1=await readPageLockFile(_0x521d28[_0x42d4b4(0x230)]),{appLock:_0x29e11f}=ensurePageLockScope(_0x544fe1??createEmptyPageLock(),_0x568037['appCode']),_0x48eff9=getPageIdFlag(_0x568037);if(_0x48eff9!==undefined){const _0x993929=await loadPageDetailForPage(_0x568037,_0x48eff9);return{'mode':_0x42d4b4(0x201),'items':[await inspectPullTarget(_0x521d28,_0x29e11f[_0x42d4b4(0x21a)][String(_0x993929[_0x42d4b4(0x21c)])],_0x993929)]};}const _0x262de5=await loadDatasetDetailForPage(_0x568037),_0x4ae365=_0x262de5[_0x42d4b4(0x205)][_0x42d4b4(0x22a)](_0x1728f4=>!_0x1728f4[_0x42d4b4(0x20a)]);if(_0x4ae365[_0x42d4b4(0x1f6)]===0x0)throw CliErrors['validation'](_0x42d4b4(0x213)+_0x262de5[_0x42d4b4(0x22c)]+_0x42d4b4(0x21e));const _0x5951f8=await Promise[_0x42d4b4(0x206)](_0x4ae365[_0x42d4b4(0x220)](_0x508f9e=>loadPageDetailForPage(_0x568037,_0x508f9e['id']))),_0x2b6727=selectVersionTagGroup(_0x5951f8,_0x1ac1cb=>_0x1ac1cb[_0x42d4b4(0x210)],_0x568037[_0x42d4b4(0x200)]('version-tag'));return{'mode':'batch','datasetCode':_0x262de5[_0x42d4b4(0x22c)],'items':await Promise[_0x42d4b4(0x206)](_0x2b6727['items'][_0x42d4b4(0x220)](_0x33ff40=>inspectPullTarget(_0x521d28,_0x29e11f[_0x42d4b4(0x21a)][String(_0x33ff40['pageId'])],_0x33ff40)))};}async function inspectPullTarget(_0x2443db,_0x1072b9,_0x52ebe3){const _0x79a3fb=a210_0x5a5d5b,_0x1ab1ac=resolvePageFilePath(_0x2443db,_0x52ebe3['pageId'],_0x52ebe3['type']),_0x2d6cd4=await fileExists(_0x1ab1ac);if(!_0x2d6cd4){const _0x5bd963=serializePageSchemaForFile(_0x52ebe3['code']);return{'detail':_0x52ebe3,'localPath':_0x1ab1ac,'localHash':computePageContentHash(_0x5bd963),'status':_0x79a3fb(0x225)};}const _0x4f1ec0=await computePageFileHash(_0x1ab1ac);if(!_0x1072b9||_0x4f1ec0!==_0x1072b9[_0x79a3fb(0x216)])return{'detail':_0x52ebe3,'localPath':_0x1ab1ac,'localHash':_0x4f1ec0,'status':_0x79a3fb(0x208),'reason':_0x79a3fb(0x1fb)};return{'detail':_0x52ebe3,'localPath':_0x1ab1ac,'localHash':_0x4f1ec0,'status':_0x79a3fb(0x225)};}function buildLockEntry(_0x1b72fe,_0x18c52f){const _0x20d044=a210_0x5a5d5b;return{'hash':computePageContentHash(_0x18c52f),'pageId':_0x1b72fe[_0x20d044(0x21c)],'pageVersion':_0x1b72fe[_0x20d044(0x1f5)],'type':_0x1b72fe['type'],'title':_0x1b72fe['name'],'datasetIds':_0x1b72fe[_0x20d044(0x20c)],'versionTag':_0x1b72fe['versionTag']};}function toPreviewItem(_0x5e2691){const _0x5f0d07=a210_0x5a5d5b;return{'pageId':_0x5e2691[_0x5f0d07(0x224)][_0x5f0d07(0x21c)],'type':_0x5e2691[_0x5f0d07(0x224)][_0x5f0d07(0x20b)],'title':_0x5e2691[_0x5f0d07(0x224)][_0x5f0d07(0x223)],'localPath':_0x5e2691[_0x5f0d07(0x21f)],'status':_0x5e2691[_0x5f0d07(0x1ff)],..._0x5e2691[_0x5f0d07(0x211)]?{'reason':_0x5e2691[_0x5f0d07(0x211)]}:{}};}